1 2002-10-28 David Carlton <carlton@math.stanford.edu>
3 * symtab.c (find_addr_symbol): Delete. (It was already commented
5 * symtab.h: Delete prototype for find_addr_symbol.
7 2002-10-26 Andrew Cagney <cagney@redhat.com>
9 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
11 gdbarch.h, gdbarch.c: Re-generate.
12 * infcmd.c (default_print_registers_info): Update reference.
13 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
14 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
15 * sh-tdep.c (sh_gdbarch_init): Ditto.
16 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
17 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
19 2002-10-26 Mark Kettenis <kettenis@gnu.org>
21 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
22 cfi_init_extra_frame_info.
23 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
24 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
26 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
27 target where necessary. Add more comments and remove the ones
28 that don't provide any useful information.
30 * i386-tdep.c (i386_frame_saved_pc): Replace call to
31 deprecated_read_register_dummy with
32 frame_unwind_unsigned_register.
34 * i386-tdep.c (i386_extract_struct_value_address): Use
35 regcache_raw_read_unsigned instead of
36 regcache_cooked_read_unsigned since we know that the register
37 we're reading isn't a pseudo register. Rename variable 'val' into
38 the more descriptive 'addr'.
40 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
41 (x86_64_push_return_address): Add comment.
42 (x86_64_pop_frame): Make static.
43 (examine_argument): Clarify comment.
44 (x86_64_skip_prologue): Make prolog_expact variable static.
46 * dwarf2cfi.c: Fix some formatting problems.
47 (context_cpy, read_encoded_pointer): Clarify comments.
49 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
50 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
51 i386 target back into x86_64_gdbarch_init. Add some comments and
52 remove meaningless ones.
54 2002-10-25 Andrew Cagney <cagney@redhat.com>
56 * complaints.h (struct deprecated_complaint): Rename `struct
58 * complaints.c (complain): Update.
59 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
60 incorrect comment indicating that "symfile.h" was being included
61 for the `struct complaint' definition.
62 * remote-vx.c: Update.
63 * objc-lang.c: Update.
64 * xcoffread.c: Update.
66 * mdebugread.c: Update.
67 * stabsread.c: Update.
68 * dwarf2read.c: Update.
69 * dwarfread.c: Update.
72 * stabsread.h: Update.
78 2002-10-25 Mark Kettenis <kettenis@gnu.org>
80 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
81 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
82 (x86_64_init_abi): ...new function.
84 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
85 * i386v-nat.c: Include "i386-tdep.h".
87 2002-10-25 Andrew Cagney <cagney@redhat.com>
89 * gdbtypes.c (address_space_name_to_int): Update.
90 (address_space_int_to_name): Update.
91 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
93 (address_class_name_to_type_flags): Ditto.
94 * gdbarch.h, gdbarch.c: Re-generate.
96 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
98 2002-10-24 Martin M. Hunt <hunt@redhat.com>
100 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
102 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
104 * symtab.h (INIT_SAL): Delete macro.
106 * symtab.c (init_sal): New function.
108 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
109 to init_sal function call.
110 (find_sal_from_funcs_and_line): Ditto.
111 (all_sals_for_line): Ditto.
112 * breakpoint.c (create_internal_breakpoint): Ditto.
113 (create_fork_vfork_event_catchpoint): Ditto.
114 (create_exec_event_catchpoint): Ditto.
115 (parse_breakpoint_sals): Ditto.
116 (watch_command_1): Ditto.
117 (handle_gnu_4_16_catch_command): Ditto.
118 (clear_command): Ditto.
119 * hppa-tdep.c (child_enable_exception_callback): Ditto.
120 * infcmd.c (run_stack_dummy): Ditto.
121 * infrun.c (process_event_stop_test): Ditto.
122 (check_sigtramp2): Ditto.
123 (step_over_function): Ditto.
124 * linespec.c (decode_line_2): Ditto.
125 (decode_line_1): Ditto.
126 * source.c (line_info): Ditto.
127 * symtab.c (find_pc_sect_line): Ditto.
129 2002-10-24 Michal Ludvig <mludvig@suse.cz>
131 * dwarf2cfi.c (struct context)
132 (struct context_reg): Moved to dwarf2cfi.h
133 (context_alloc, frame_state_alloc, context_cpy):
134 Made extern instead of static, removed prototypes.
135 * dwarf2cfi.h (struct context)
136 (struct context_reg): New, moved from dwarf2cfi.c
137 (context_alloc, frame_state_alloc, context_cpy):
139 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
140 Changed from static to extern.
141 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
142 (LINUX_SIGCONTEXT_FP_OFFSET)
143 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
144 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
145 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
146 * x86-64-tdep.c (x86_64_gdbarch_init): Several
147 set_gdbarch_*() calls now use x86-64 specific functions
148 instead of DWARF2 CFI ones.
149 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
150 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
151 (x86_64_init_extra_frame_info): New prototypes.
153 2002-10-23 David Carlton <carlton@math.stanford.edu>
155 * linespec.c: #include "parser-defs.h".
156 Delete prototype for find_template_name_end.
157 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
159 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
161 * NEWS: add recent mi fixes.
162 * varobj.c (struct varobj): Add new "updated" flag.
163 (new_variable): Default "updated" flag to 0.
164 (varobj_set_value): Set "updated" flag to 1 if value
166 (varobj_update): Check varobj "updated" flag before
167 comparing old and refreshed values. Fix for
170 2002-10-23 David Carlton <carlton@math.stanford.edu>
172 * parse.c (parse_exp_1): Use BLOCK_START.
173 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
175 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
177 2002-10-23 David Carlton <carlton@math.stanford.edu>
179 * symtab.c: Delete cplusplus_hint.
180 Delete prototype for find_template_name_end.
182 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
184 * symtab.h: Update comment.
186 2002-10-23 Michael Snyder <msnyder@redhat.com>
188 * printcmd.c (address_info): Restore quotes in output.
189 * valops.c (value_of_local): Restore quotes in error message.
191 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
193 * symtab.c (symbol_demangled_name): New function.
194 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
195 turning most of it into a function.
196 (symbol_demangled_name): Export.
198 2002-10-23 Michael Snyder <msnyder@redhat.com>
200 * valops.c (value_of_local): Restore quotes in error message.
202 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
204 * symtab.c (symbol_init_language_specific): New function.
205 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
206 turning most of it into a function.
207 (symbol_init_language_specific): Export.
209 2002-10-23 David Carlton <carlton@math.stanford.edu>
211 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
212 (dwarf_attr_name): Ditto.
213 (dwarf_type_encoding_name): Ditto.
214 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
215 (process_die): Handle DW_TAG_namespace,
216 DW_TAG_imported_declaration, DW_TAG_imported_module.
217 (read_namespace): New function.
219 2002-10-22 Joel Brobecker <brobecker@gnat.com>
221 * configure.in: Define NEW_PROC_API on Interix too.
222 * configure: Regenerate.
224 2002-10-21 Joel Brobecker <brobecker@gnat.com>
226 * configure: Regenerate using the proper version of autoconf.
228 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
230 * findvar.c (read_var_value): Temporarily disable TLS code, until
231 complete TLS support is added.
233 2002-10-21 Jim Blandy <jimb@redhat.com>
234 Elena Zannoni <ezannoni@redhat.com>
236 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
237 for thread local storage locations.
238 (struct symbol): Add objfile field.
239 (SYMBOL_OBJFILE): Define.
240 * dwarf2read.c (is_thread_local): New static variable.
241 (new_symbol): If variable is in thread local fill in address class
242 and objfile appropriately.
243 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
245 * printcmd.c (address_info): Print the information for thread
246 local storage variable.
247 * findvar.c (read_var_value): In case of thread local variable,
248 defer to the target vector code to compute address.
250 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
252 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
253 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
255 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
257 * symtab.h (address_class): Rename
258 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
259 * hpread.c (hpread_process_one_debug_symbol): Ditto.
260 * printcmd.c (address_info): Ditto.
261 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
263 2002-10-20 Mark Kettenis <kettenis@gnu.org>
265 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
266 DBREG_DRX macro to acces debug registers.
268 * Makefile.in (i386obsd-tdep.o): New target.
270 * solib-sunos.c: Include "bcache.h" and "regcache.h".
271 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
273 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
274 * config/i386/obsd.mt: New file.
275 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
276 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
277 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
278 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
279 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
280 * i386obsd-tdep.c: New file.
282 2002-10-19 Adam Fedor <fedor@gnu.org>
284 * objc-exp.y (name_not_typename): Fix invalid comment.
286 2002-10-20 Mark Kettenis <kettenis@gnu.org>
288 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
289 to allocate partial syms and macro byte caches.
291 2002-10-18 David Carlton <carlton@math.stanford.edu>
293 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
295 2002-10-18 Adam Fedor <fedor@gnu.org>
297 * stabsread.c (find_name_end): New function.
298 (define_symbol): Use it.
300 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
302 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
303 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
304 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
305 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
307 2002-10-17 David Carlton <carlton@math.stanford.edu>
309 * symfile.h: Add opaque declaration for struct obstack.
310 Declare obsavestring to take a const char *.
311 * symfile.c (obsavestring): Make first argument a const char *.
313 2002-10-16 Adam Fedor <fedor@gnu.org>
315 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
316 names when matching breakpoints in current file.
318 2002-10-16 Kevin Buettner <kevinb@redhat.com>
320 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
321 (read_tag_pointer_type): Add address class support.
322 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
323 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
325 * gdbarch.h, gdbarch.c: Regenerate.
326 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
327 (make_type_with_address_space, recursive_type_dump): Add address
329 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
330 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
331 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
333 2002-10-16 Klee Dienes <kdienes@apple.com>
335 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
336 to get the last character of a char[] buffer, not
337 name[sizeof(vptr_name)-1].
339 2002-10-14 Adam Fedor <fedor@gnu.org>
341 * symtab.h: New objc_specific struct.
342 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
343 (SYMBOL_DEMANGLED_NAME): Likewise.
345 2002-10-14 Adam Fedor <fedor@gnu.org>
347 * symfile.c (init_filename_language_table): Add ObjC file extension.
349 2002-10-14 Adam Fedor <fedor@gnu.org>
351 * utils.c (puts_filtered_tabular): New function.
352 (fprintf_symbol_filtered): Get ObjC demangled name.
353 * defs.h (puts_filtered_tabular): Declared.
355 2002-10-14 Kevin Buettner <kevinb@redhat.com>
357 * c-lang.h (c_type_print_varspec_prefix): Delete.
358 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
359 ``need_post_space'' parameter. Adjust all callers.
361 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
363 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
364 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
365 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
366 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
368 2002-10-13 Adam Fedor <fedor@gnu.org>
370 * source.c (print_source_lines): Update comments.
372 2002-10-13 Adam Fedor <fedor@gnu.org>
374 * valops.c (value_of_local): New function.
375 (value_of_this): Use it.
376 * value.h (value_of_local): Declared.
378 2002-10-13 Adam Fedor <fedor@gnu.org>
380 * parse.c: (length_of_subexp, prefixify_subexp): Handle
381 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
383 2002-10-12 Adam Fedor <fedor@gnu.org>
385 * language.c (binop_result_type): Add language_objc to case.
386 (integral_type): Likewise.
387 (character_type): Likewise.
388 (string_type): Likewise.
389 (boolean_type): Likewise.
390 (structured_type): Likewise.
391 (binop_type_check): Likewise.
393 2002-10-11 Adam Fedor <fedor@gnu.org>
395 * printcmd.c (address_info): Print 'self' for ObjC.
397 2002-10-11 Adam Fedor <fedor@gnu.org>
399 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
402 2002-10-11 Adam Fedor <fedor@gnu.org>
404 * language.h (CAST_IS_CONVERSION): Add language_objc.
406 2002-10-11 Adam Fedor <fedor@gnu.org>
408 * defs.h (enum language): Add language_objc.
410 2002-10-11 Klee Dienes <kdienes@apple.com>
412 * findvar.c (read_memory_typed_address): New function.
413 * gdbcore.h (read_memory_typed_address): Add prototype.
414 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
415 to read a value destined for a CORE_ADDR, not read_memory_integer.
416 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
417 (f77_get_dynamic_lowerbound): Ditto.
419 2002-10-11 Martin M. Hunt <hunt@redhat.com>
421 * utils.c (string_to_core_addr): After turning string into
422 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
423 which will do necessary sign-extension, etc.
425 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
427 * c-exp.y (THIS): Delete token and grammar rule.
428 (yylex): Don't return THIS.
429 * cp-valprint.c (vtbl_ptr_name_old): Delete.
430 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
431 * demangle.c (cplus_markers): Update comment. Put '$'
432 first. Remove CPLUS_MARKER.
433 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
434 * jv-exp.y (THIS): Delete token and grammar rule.
435 (yylex): Don't return THIS.
436 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
437 * objc-exp.y (THIS): Delete token and grammar rule.
438 (yylex): Don't return THIS.
439 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
440 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
441 (read_member_functions): Likewise for opname.
442 (read_tilde_fields): Use is_cplus_marker.
444 * defs.h (CPLUS_MARKER): Don't define.
445 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
446 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
447 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
448 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
449 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
451 * config/i386/tm-i386v4.h: Delete file.
452 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
453 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
454 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
455 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
456 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
457 * config/i386/i386sco5.mt (TM_FILE): Likewise.
458 * config/i386/i386v4.mt (TM_FILE): Likewise.
459 * config/i386/ncr3000.mt (TM_FILE): Likewise.
461 2002-10-10 Marko Mlinar <markom@opencores.org>
463 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
464 accidentially not commited 2002-10-09
465 * gdbarch.h, gdbarch.c: Re-generate.
467 2002-10-09 Marko Mlinar <markom@opencores.org>
469 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
470 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
471 * gdbarch.h, gdbarch.c: Re-generate.
473 2002-10-08 Petr Sorfa <petrs@caldera.com>
475 Revised and re-submitted by John Wolfe <jlw@caldera.com>
477 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
478 so we can work on more than one compilation unit at a time. This
479 helps prepare GDB to handle inter-CU die references.
480 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
481 the code to be defined before struct comp_unit_head.
482 (comp_unit_head): Added new members - offset, cu_head,
483 begin_die, next and dwarf2_abbrevs.
484 (dwarf2_abbrevs): Removed single static var; now member of
485 struct comp_unit_head.
486 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
488 (psymtab_to_symtab_1): Changed to work with the new
489 struct comp_unit_head.
490 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
491 constructs the dwarf2_abbrevs[] inside the cu_header.
492 (dwarf2_empty_abbrev_table): Now expects a ptr to a
493 dwarf2_abbrev table to clean up.
494 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
495 handling of dwarf2_abbrevs inside the cu_header.
496 (read_partial_die): Now supports the call to the new
497 dwarf2_lookup_abbrev.
498 (read_full_die): Now supports the call to the new
499 dwarf2_lookup_abbrev.
501 2002-10-06 Christopher Faylor <cgf@redhat.com>
503 * Makefile.in (install-gdbtk): Add missing continuation backslash to
504 insure that shell variables, such as "transformed_name" are propagated
505 to later shell statements in rule.
507 2002-10-06 Mark Kettenis <kettenis@gnu.org>
509 * config/i386/nm-i386sco.h: Add protection against
510 multiple-inclusion. Include "i386/nm-i386v.h".
511 (REGISTER_U_ADDR): Remove define.
512 (i386_register_u_addr): Remove prototype.
514 2002-10-04 Michael Snyder <msnyder@redhat.com>
516 * m32r-stub.c (handle_exception): Make sure exception is "trap"
517 before treating it as a single-step event.
519 2002-10-03 Adam Fedor <fedor@gnu.org>
521 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
522 (objc_demangle): Remove assignment in if statements, Replace
524 (add_msglist): Likewise.
525 (end_msglist): Likewise.
526 (complare_selectors): Likewise.
527 (selectors_info): Likewise.
528 (compare_classes): Likewise.
529 (classes_info): Likewise.
530 (print_object_command): Likewise.
531 (find_objc_msgcall_submethod): Replace PTR with void *.
532 * objc-lang.h: Remove check for __STDC__.
534 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
536 * ui-out.h (ui_out_field_fmt_int): New prototype.
537 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
538 of field width and alignment.
539 * stack.c (print_frame_info_base): When printing frame level, use
540 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
543 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
545 * MAINTAINERS: Add self to Write After Approval list.
547 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
549 * infcmd.c (interrupt_target_command_wrapper): Delete.
550 (interrupt_target_command): Make non static.
551 (nofp_registers_info): Make static.
552 * stack.c (return_command_wrapper): Delete.
553 (return_command): Make non static.
555 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
557 * event-top.c (gdb_setup_readline): New function. Code moved from
558 _initialize_event_loop().
559 (_initialize_event_loop): Call gdb_setup_readline().
561 2002-10-02 Andrew Cagney <ac131313@redhat.com>
563 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
564 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
565 * gdbarch.h, gdbarch.c: Re-generate.
567 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
570 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
572 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
573 of fill_in_vptr_fieldno.
575 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
577 * inferior.h (registers_info, stepi_command, nexti_command,
578 continue_command, interrupt_target_command): Export from infcmd.c.
579 * frame.h (args_info, selected_frame_level_changed_hook,
580 return_command): Export from stack.c.
581 * v850ice.c (stepi_command, nexti_command, continue_command): use
582 prototypes from inferior.h.
583 * tracepoint.c (registers_info, args_info, locals_info): Use
584 prototypes from frame.h and inferior.h.
585 * Makefile.in (mi-main.o): Add dependency on frame.h.
587 2002-10-02 Andrew Cagney <ac131313@redhat.com>
589 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
590 value in register 3 adjusted by ppc_gp0_regnum.
592 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
594 2002-10-02 Marko Mlinar <markom@opencores.org>
596 * MAINTAINERS: Add myself to the Write After Approval list.
598 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
600 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
601 of the section for the N64 ABI, fixed.
603 * config/mips/tm-irix6.h: Include solib.h.
605 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
607 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
610 2002-10-01 Andrew Cagney <ac131313@redhat.com>
612 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
613 and that "mi0" syntax has been removed.
615 2002-09-30 David Carlton <carlton@math.stanford.edu>
617 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
618 * ppc-sysv-tdep.c: #include "gdb_string.h".
619 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
622 2002-10-01 Andrew Cagney <ac131313@redhat.com>
624 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
625 "vrsave"'s register number.
627 2002-09-30 Andrew Cagney <ac131313@redhat.com>
629 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
630 use frame_unwind_signed_register to obtain the PC.
631 (mips_frame_chain): Handle a generic dummy frame.
632 (mips_init_extra_frame_info): When a generic dummy frame, don't
633 re-compute the frame base.
634 (mips_pop_frame): Handle generic dummy frames.
635 (mips_gdbarch_init): When generic dummy frames, set
636 use_generic_dummy_frames, push_dummy_frame to
637 generic_push_dummy_frame, pc_in_call_dummy to
638 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
639 generic_save_dummy_frame_tos.
641 2002-09-30 Andrew Cagney <ac131313@redhat.com>
643 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
644 against TOP when TOP was explictly set.
645 (generic_push_dummy_frame): Set TOP to zero.
647 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
649 * event-loop.c (start_event_loop): Rename variable 'result' to
650 'gdb_result', to avoid conflicts with upcoming intepreters changes.
652 2002-09-30 Keith Seitz <keiths@redhat.com>
654 * gdb-events.sh (selected_thread_changed): New event.
655 * gdb-events.c: Regenerated.
656 * gdb-events.h: Regenerated.
658 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
660 * MAINTAINERS: Add self to Write After Approval list.
662 2002-09-30 Fernando Nasser <fnasser@redhat.com>
664 * disasm.c: New file.
665 * disasm.h: New file.
666 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
667 (compare_lines): Ditto.
669 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
671 (do_assembly_only): Ditto.
672 (do_disassembly): Renamed to gdb_disassembly and moved to
673 disasm.c. Sdded uiout argument.
674 * Makefile.in: Add new files. Reorder SFILES list. Update
675 dependencies. Include libgdb.a later in the insight executable.
677 2002-09-29 Andrew Cagney <ac131313@redhat.com>
679 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
680 bfd/elf64-alpha-fbsd.c.
682 2002-09-29 Andrew Cagney <ac131313@redhat.com>
684 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
687 2002-09-29 Andrew Cagney <ac131313@redhat.com>
689 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
691 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
693 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
694 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
695 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
696 (S_msg_sig_post_reply): Ditto.
698 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
700 * sh-tdep.c (sh_use_struct_convention): Use definition according
702 (sh_push_arguments): Store in register with correct endianess.
703 (sh_default_store_return_value): Ditto.
704 (sh_gdbarch_init): Set sizeof long double to 8.
706 2002-09-27 Mark Kettenis <kettenis@gnu.org>
708 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
709 Fix some whitespace problems.
711 2002-09-27 David Carlton <carlton@math.stanford.edu>
713 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
714 (mcore-tdep.o): Ditto.
715 (ns32k-tdep.o): Ditto.
716 (ns32knbsd-tdep.o): Ditto.
719 * cris-tdep.c: #include "gdb_string.h"
720 * mcore-tdep.c: Ditto.
721 * ns32k-tdep.c: Ditto.
722 * ns32knbsd-tdep.c: Ditto.
726 2002-09-27 David Carlton <carlton@math.stanford.edu>
728 * config/djgpp/fnchange.lst: Add entries for
729 gdb/testsuite/gdb.c++/m-static files.
731 2002-09-27 Jim Wilson <wilson@redhat.com>
733 * MAINTAINERS: Add myself to the Write After Approval list.
735 2002-09-26 Martin M. Hunt <hunt@redhat.com>
737 * mips-tdep.c (find_proc_desc): Initialize startaddr.
740 2002-09-26 Andrew Cagney <ac131313@redhat.com>
742 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
745 2002-09-26 Andrew Cagney <ac131313@redhat.com>
747 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
748 (rs6000_struct_return_address): Delete variable.
749 (rs6000_store_struct_return): Update.
750 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
751 deprecated_extract_struct_value_address.
752 (rs6000_frame_align): New function.
753 (rs6000_gdbarch_init): Set frame_align.
755 2002-09-26 Andrew Cagney <ac131313@redhat.com>
757 From Grace Sainsbury <graces@redhat.com>:
758 * Makefile.in (gdbtk-main.o): New target.
761 (main.o): Update dependencies.
762 (gdb$(EXEEXT)): Add gdb.o.
763 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
764 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
765 (SUBDIR_GDBTK_CLEAN): Set.
766 (install-gdbtk): Install the insight binary.
767 (uninstall-gdbtk): New target.
768 (all-gdbtk, clean-gdbtk): New rule.
769 * top.c (use_windows): Default to zero.
770 * main.c: Include "main.h".
772 (struct captured_main_args): Delete.
773 (gdb_main): New function.
777 2002-09-25 Andrew Cagney <cagney@redhat.com>
779 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
780 (frame_map_regnum_to_name): New function.
781 (frame_map_name_to_regnum): New function.
782 * frame.h (frame_map_name_to_regnum): Declare.
783 (frame_map_regnum_to_name): Declare.
784 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
785 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
786 * parse.c: Do not include "builtin-regs.h".
787 (target_map_name_to_register): Delete function.
788 (write_dollar_variable): Use frame_map_name_to_regnum.
789 * parser-defs.h (target_map_name_to_register): Delete declaration.
790 * expprint.c: Include "frame.h".
791 (print_subexp): Use frame_map_regnum_to_name.
792 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
793 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
795 2002-09-25 Andrew Cagney <ac131313@redhat.com>
797 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
798 wasn't saved, and the next innermost frame is a dummy, return the
799 dummy frame's link register.
801 2002-09-24 Jim Blandy <jimb@redhat.com>
804 * main.c (captured_main): Add a `break' after the case for 'b'.
806 2002-09-24 Keith Seitz <keiths@redhat.com>
808 * varobj.c (c_type_of_child): Use get_target_type instead
811 2002-09-22 Fernando Nasser <fnasser@redhat.com>
813 * source.c (get_current_or_default_source_symtab_and_line): Remove
815 (set_default_source_symtab_and_line): New function. Attempts to
816 determine a source file to list lines from if one is not currently
818 (get_current_source_symtab_and_line): Initialize sal.pc and
820 (set_current_source_symtab_and_line): Mark argument as const.
821 * source.h: Update declarations and comments.
822 * linespec.c (decode_line_1): Replace call to removed routine above.
823 * stack.c (print_frame_info_base): Ditto.
824 * cli/cli-cmds.c (edit_command): Ditto.
825 (list_command): Ditto.
827 2002-09-22 Fernando Nasser <fnasser@redhat.com>
829 * source.c (get_current_or_default_source_symtab_and_line): Initialize
830 sal.pc and sal.end fields.
831 (get_current_or_default_source_symtab_and_line): Ditto.
832 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
833 so we do not cause a new source symtab to be searched for (reverting an
834 unintentional change from the 2002-09-20 patch).
835 * scm-lang.c (scm_unpac): Ditto.
837 2002-09-21 Andrew Cagney <cagney@redhat.com>
839 * complaints.c (symfile_explanations): Remove new-line from
840 ``isolated_message''.
841 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
842 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
844 2002-09-20 Nick Clifton <nickc@redhat.com>
846 * NEWS: Announce that V850EA ISA is no longer supported.
847 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
849 2002-09-20 David Carlton <carlton@math.stanford.edu>
851 * Makefile.in (c-lang.o): Correct dependencies.
852 (utils.o): Gather dependencies.
854 * c-lang.c: #include "gdb_string.h"
856 2002-09-20 Fernando Nasser <fnasser@redhat.com>
858 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
859 * cli/cli-cmds.c (list_command): New function. Implements the new
861 (_init_cli_cmds): Add new command definition.
862 * gdb.1: Document edit command.
863 * doc/gdb.texinfo: Document edit command.
865 2002-09-20 Fernando Nasser <fnasser@redhat.com>
867 * source.c: Make global variables current_source_symtab and
868 current_source_line static.
869 (list_command): Moved to cli/cli-cmds.c.
870 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
871 (get_first_line_listed): New accessor function.
872 (get_lines_to_list): New accessor function.
873 (get_current_source_symtab_and_line): New function. Retrieves the
874 position in the source code that we consider current.
875 (get_current_or_default_source_symtab_and_line): New function.
876 Like the above but attempts to determine a default position if one
877 is not currently defined.
878 (set_current_source_symtab_and_line): New function. Sets the source
879 code position considered current and returns the previously set one.
880 (clear_current_source_symtab_and_line): Reset stored information about
881 a current source line.
882 (_initialize_source): Remove registration for the "list" command and
884 * source.h: Add declarations for the new functions above.
885 * symtab.h: Remove declarations for the global variables mentioned
887 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
888 obtain current source line.
889 * linespec.c (decode_line_1): Ditto.
890 * macroscope.c (default_macro_scope): Ditto.
891 * scm-lang.c (scm_unpac): Ditto.
892 * stack.c (print_frame_info_base): Ditto.
893 * symfile.c (clear_symtab_users): Ditto.
894 * symtab.c (decode_line_spec): Ditto.
895 * cli/cli-cmds.c (list_command): Moved here from source.c.
896 (ambiguous_line_spec): Moved here from source.c.
897 (_init_cli_cmds): Add definition for "list" and its alias.
898 * Makefile.in: Update dependencies.
900 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
902 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
903 with what gcc thinks is correct.
905 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
907 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
908 multiple register push instruction.
910 2002-09-19 Jim Blandy <jimb@redhat.com>
912 Add support for distinct host and target character sets.
913 * charset.c, charset.h: New files.
914 * c-exp.y: #include "charset.h".
915 (yylex): Convert character and string literals to the target
916 character set, before returning them as the semantic value of the
918 * c-lang.c: #include "charset.h".
919 (c_emit_char): Use charset-specific methods to recognize
920 characters with backslash escape forms, to decide which characters
921 to print literally and which to print using numeric escape
922 sequences, and to convert target characters to host characters
924 * utils.c: #include "charset.h".
925 (no_control_char_error): New function.
926 (parse_escape): Use charset-specific methods to recognize
927 backslash escapes, parse `control character' notation, and convert
928 characters from the host character set to the target character set.
929 * configure.in: Set the default host character set.
930 Check where to find iconv, and what its argument types might be.
931 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
932 * Makefile.in (SFILES): List charset.c.
933 (COMMON_OBS): List charset.o.
934 (charset.o): New rule.
935 (charset_h): New header dependency variable.
936 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
937 (LIBICONV): New variable, set by configure.
938 (CLIBS): Include $(LIBICONV) here.
939 * aclocal.m4, config.in, configure: Regenerated.
941 2002-09-19 Joel Brobecker <brobecker@gnat.com>
943 * ada-exp.y: Add missing semicolons to end rules. Fixes a
946 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
948 * gdb_mbuild.sh: New file.
950 2002-09-19 Andrew Cagney <ac131313@redhat.com>
952 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
954 2002-09-18 Andrew Cagney <ac131313@redhat.com>
956 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
957 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
958 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
959 valops.c, value.h: Revert previous change.
961 2002-09-18 Michael Snyder <msnyder@redhat.com>
963 Preliminary support for Objective-C:
964 * defs.h (language_objc): New enum value.
965 (puts_filtered_tabular): Declaration only, exported from utils.c.
966 (skip_quoted): Delete, declared in completer.h.
967 * c-exp.y: Include completer.h.
970 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
971 New operator enum values.
972 * language.h (CAST_IS_CONVERSION): Test for language_objc.
973 * language.c (binop_result_type): Handle language_objc case.
974 (integral_type, character_type, string_type, boolean_type,
975 structured_type, binop_type_check): Ditto.
976 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
977 (struct objc_specific): Add to general_symbol_info.
978 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
979 (SYMBOL_DEMANGLED_NAME): Handle objc case.
980 * parser-defs.h (struct objc_class_str): New struct type.
981 (start_msglist, end_msglist, add_msglist): Declaration only,
982 exported from objc-lang.c.
983 * value.h (value_of_local, value_nsstring,
984 call_function_by_hand_expecting_type): Exported from valops.c.
985 * valops.c (find_function_addr): Export.
986 (call_function_by_hand_expecting_type): New function.
987 (value_of_local): New function.
988 * symfile.c (init_filename_language_table): Add ".m" extension
990 * utils.c (puts_filtered_tabular): New function.
991 (fprintf_symbol_filtered): Add objc demangling support (disabled).
992 (set/show demangle): Extend help-string to refer to ObjC.
993 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
994 * stabsread.c (symbol_reference_defined): Objective-C symbols
995 may contain colons: make allowances when scanning stabs strings
997 (objc_find_colon): New function.
998 * printcmd.c (address_info): If language == objc then print
999 "self" instead of "this".
1000 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1001 OP_NSSTRING, and OP_SELF.
1002 (prefixify_subexp): Ditto.
1003 * source.c (print_source_lines): Mention objc in comment.
1004 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1007 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1009 * complaints.h: Update copyright.
1010 (struct complaints): Declare.
1011 (struct complaint): Make `message' constant.
1012 (internal_complaint): Declare.
1013 (complaint): Declare.
1014 (complaint_root): Delete declaration.
1015 (symfile_complaints): Delete declaration.
1016 (struct complaints): Add opaque declaration.
1017 (clear_complaints): Add a complaints parameter.
1018 * complaints.c: Update copyright.
1019 (enum complaint_series): Define.
1020 (complaint_root): Delete.
1021 (struct complaints): Define.
1022 (complaint_sentinel, symfile_complaint_book): New variables.
1023 (symfile_explanations, symfile_complaints): New variables.
1025 (get_complaints): New function.
1026 (vcomplaint): New function.
1027 (complaint): New function.
1028 (internal_complaint): New function.
1029 (complain): Call vcomplain with symfile_complaint.
1030 (clear_complaints): Rewrite.
1031 (_initialize_complaints): Use add_setshow_command.
1032 * Makefile.in (complaints.o): Update dependencies.
1033 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1034 to call to clear_complaints.
1035 (new_symfile_objfile, reread_symbols): Ditto.
1036 (oldsyms_complaint): Delete.
1037 (empty_symtab_complaint, unknown_option_complaint): Delete.
1038 (free_named_symtabs): Use complaint instead of complain.
1040 2002-09-18 Michael Snyder <msnyder@redhat.com>
1042 Contributed by Apple Computer, Inc. Merged with current sources
1043 by Adam Fedor <fedor@doc.com> [cagney].
1045 * objc-lang.c: First clean-up round: comments, indentation.
1046 * objc-lang.h: Ditto.
1047 * objc-lang.y: Ditto.
1049 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1051 * maint.c (maintenance_internal_error): Print the parameter as the
1053 (maintenance_internal_warning): New function.
1054 (_initialize_maint_cmds): Add command `maint internal-warning'.
1056 * defs.h (internal_warning, internal_vwarning): Declare.
1057 * utils.c (struct internal_problem): Define.
1058 (internal_vproblem): New function.
1059 (internal_warning): New function.
1060 (internal_vwarning): New function.
1061 (internal_warning_problem, internal_error_problem): New variables.
1062 (internal_verror): Just call internal_vproblem.
1064 2002-09-18 Michael Snyder <msnyder@redhat.com>
1066 * objc-lang.c: New file, support for Objective-C.
1067 Preliminary check-in, not yet integrated into gdb.
1068 * objc-lang.h: New file.
1069 * objc-exp.y: New file.
1071 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1073 * infrun.c (signal_stop_update): Convert definition to ISO C.
1074 (signal_print_update): Ditto.
1075 (signal_pass_update): Ditto.
1076 * inflow.c (terminal_save_ours): Ditto.
1078 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1081 * config/djgpp/fnchange.lst: Handle name clashes between
1082 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1085 * i386-linux-tdep.h: Fix tipo.
1087 2002-09-18 Adam Fedor <fedor@gnu.org>
1089 * MAINTAINERS: Add myself to the Write After Approval list.
1091 2002-09-18 Jim Blandy <jimb@redhat.com>
1093 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1094 texthigh and textlow to reader-specific structs caused
1095 objfile_relocate to miss them. This is fixable, but the work that
1096 the change was supposed to prepare GDB for never got done anyway.
1098 2002-09-18 David Carlton <carlton@math.stanford.edu>
1100 * MAINTAINERS: Alphabetize Write After Approval list.
1102 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1105 * values.c (value_static_field): Call read_var_value.
1107 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1109 * valops.c (hand_function_call): Align the initial stack pointer
1110 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1111 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1113 * mips-tdep.c (mips_frame_align): New function.
1114 (mips_gdbarch_init): Set frame_align.
1115 * gdbarch.sh (FRAME_ALIGN): New method.
1116 * gdbarch.h, gdbarch.c: Re-generate.
1118 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1120 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1123 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1125 * NEWS: Mention that MIPS $fp behavior changed.
1126 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1127 reference to FP_REGNUM.
1128 (mipsnbsd_cannot_store_register): Ditto.
1129 * mips-linux-nat.c: Update copyright.
1130 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1131 (mips_linux_cannot_store_register): Ditto.
1132 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1133 * config/mips/tm-mips.h: Update copyright.
1134 (FP_REGNUM): Delete macro.
1135 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1136 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1137 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1138 (mips_r3041_reg_names, mips_r3051_reg_names)
1139 (mips_r3081_reg_names): Replace "fp" with "".
1142 2002-09-17 Theodore A. Roth <troth@verinet.com>
1144 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1145 generic_read_register_dummy() (PR gdb/703).
1146 (avr_push_return_address): #if 0 out unused vars.
1147 (avr_gdbarch_init): Enable use of avr_push_return_address().
1149 2002-09-17 Michael Snyder <msnyder@redhat.com>
1151 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1152 RTE will take care of it.
1154 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1156 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1157 invalid, return SP_REGNUM.
1159 2002-09-17 Michael Snyder <msnyder@redhat.com>
1161 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1162 point registers without sign extension.
1164 2002-09-17 Andrew Cagney <cagney@redhat.com>
1166 * blockframe.c (deprecated_read_register_dummy): Rename
1167 generic_read_register_dummy.
1168 * frame.c (frame_unwind_signed_register): New function.
1169 (frame_unwind_unsigned_register): New function.
1170 * frame.h (frame_unwind_signed_register): Declare.
1171 (frame_unwind_unsigned_register): Declare.
1172 (deprecated_read_register_dummy): Rename
1173 generic_read_register_dummy.
1175 * h8300-tdep.c (h8300_frame_chain): Update.
1176 (h8300_frame_saved_pc): Update.
1177 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1178 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1179 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1180 (s390_frame_chain): Update.
1181 * v850-tdep.c (v850_find_callers_reg): Update.
1182 (v850_frame_saved_pc): Update.
1183 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1184 (m32r_find_callers_reg): Update.
1185 (m32r_frame_saved_pc): Update.
1186 * sh-tdep.c (sh_find_callers_reg): Update.
1187 (sh64_get_saved_pr): Update.
1188 (sh_init_extra_frame_info): Update.
1189 (sh_init_extra_frame_info): Update.
1190 (sh64_init_extra_frame_info): Update.
1191 (sh64_init_extra_frame_info): Update.
1192 * mcore-tdep.c (mcore_find_callers_reg): Update.
1193 (mcore_frame_saved_pc): Update.
1194 (mcore_init_extra_frame_info): Update.
1195 * i386-tdep.c (i386_frame_saved_pc): Update.
1196 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1197 (ia64_init_extra_frame_info): Update.
1198 (ia64_init_extra_frame_info): Update.
1199 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1200 * cris-tdep.c (cris_init_extra_frame_info): Update.
1201 * avr-tdep.c (avr_frame_chain): Update.
1202 (avr_init_extra_frame_info): Update.
1203 (avr_frame_saved_pc): Update.
1204 * arm-tdep.c (arm_find_callers_reg): Update.
1205 (arm_init_extra_frame_info): Update.
1206 (arm_frame_saved_pc): Update.
1208 2002-09-17 Tom Tromey <tromey@redhat.com>
1210 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1213 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1215 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1216 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1218 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1221 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1223 * osfsolib.c: Remove file, replaced by solib-osf.c.
1224 * Makefile.in: Remove compilation rules for osfsolib.c.
1226 2002-09-16 David Carlton <carlton@math.stanford.edu>
1228 * cp-valprint.c (cp_print_class_method): Correct args to
1229 check_stub_method_group.
1231 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1233 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1234 `set architecture'. Unify naming convention of functions.
1235 (h8300_skip_prologue): Improve prologue analysis.
1236 (h8300_push_arguments): Rewritten to more closely match GCC's
1237 bizarre argument-passing behavior, along with the comment describing
1239 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1240 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1241 sim, remote-e7000.c, remote-hms.c and remote.c
1243 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1245 * i386-tdep.c (gdb_print_insn_i386): Removed.
1246 (i386_print_insn): New function.
1247 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1248 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1251 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1253 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1256 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1258 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1259 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1260 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1262 2002-09-13 Christopher Faylor <cgf@redhat.com>
1264 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1266 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1268 * gdbtypes.c (check_stub_method): Make static.
1269 (check_stub_method_group): New function.
1270 * gdbtypes.h: Update prototypes.
1271 * cp-support.c: New file.
1272 * cp-support.h: New file.
1274 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1275 (update_method_name_from_physname): New function.
1276 (read_member_functions): Correct method names for operators
1277 and v3 constructors/destructors. Separate v2 constructors and
1279 * Makefile.in (stabsread.o): Update dependencies.
1280 (SFILES): Add cp-support.c.
1281 (COMMON_OBS): Add cp-support.o.
1282 (cp_support_h, cp-support.o): Add.
1284 * cp-valprint.c (cp_print_class_method): Call
1285 check_stub_method_group instead of check_stub_method. Remove
1287 * p-valprint.c (pascal_object_print_class_method): Likewise.
1288 * valops.c (search_struct_method): Likewise.
1289 (find_method_list, value_struct_elt_for_reference): Likewise.
1291 2002-09-13 Andrew Cagney <cagney@redhat.com>
1293 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1294 * gdbarch.h, gdbarch.c: Regenerate.
1296 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1298 * frame.c (find_saved_register): Delete function.
1299 * frame.h (find_saved_register): Delete declaration.
1302 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1304 * mips-tdep.c (read_next_frame_reg): Re-hack using
1305 frame_register_unwind.
1307 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1309 * mips-tdep.c (mips_get_saved_register): Re-hack using
1310 frame_register_unwind.
1312 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1314 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1315 vector. Will be useful for Interix.
1316 * gdbarch.h, gdbarch.c: Regenerate.
1318 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1319 name of the malloc function by NAME_OF_MALLOC.
1321 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1323 * value.h (find_function_in_inferior): Add const keyword to
1324 one of the parameters. Allows us to invoke this function with
1326 * valops.c (find_function_in_inferior): Likewise.
1328 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1330 * exec.c (xfer_memory): Fix compilation warning with old versions
1332 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1334 2002-09-12 David Carlton <carlton@math.stanford.edu>
1336 * symtab.h: Run through gdb_indent.h.
1337 Add 2002 to Copyright year list.
1339 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1341 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1343 * MAINTAINERS: Add myself to write after approval list.
1345 2002-09-11 J. Brobecker <brobecker@gnat.com>
1347 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1349 2002-09-11 J. Brobecker <brobecker@gnat.com>
1351 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1354 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1356 * procfs.c (do_detach): Clear current signal, not just fault.
1357 Corrects problem with breakpoint trap signal leaking to detached
1360 2002-09-10 Michael Snyder <msnyder@redhat.com>
1362 * buildsym.c (finish_block): Protect against null pointer.
1364 2002-09-10 Andrew Cagney <cagney@redhat.com>
1366 * infcmd.c (default_print_registers_info): Send all output to
1367 ``file'' instead of ``gdb_stdout''.
1369 2002-09-10 Michael Snyder <msnyder@redhat.com>
1371 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1372 LONGEST, and use signed register read (addresses are sign-
1375 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1377 * event-loop.c (gdb_do_one_event): Make public.
1378 * event-loop.h (gdb_do_one_event): Declare.
1380 2002-09-10 Jeff Law <law@redhat.com>
1382 * infttrace.c (child_resume): Simplify and rework to avoid
1385 2002-09-09 Fred Fish <fnf@intrinsity.com>
1387 * printcmd.c (print_scalar_formatted): "len" is the number of
1388 target bytes, NOT the number of target bits.
1390 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1392 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1393 * top.c (init_main): Set rl_terminal_name.
1395 2002-09-08 Aidan Skinner <aidan@velvet.net>
1397 * ada-lang.c (ada_array_bound, ada_type_match,
1398 _initialize_ada_language): Fix K&R definitions.
1399 * ada-tasks.c (get_current_task): Fix K&R definitions.
1400 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1402 2002-09-07 Christopher Faylor <cgf@redhat.com>
1404 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1407 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1409 * i386-tdep.c (i386_register_virtual_type,
1410 i386_register_convertible, i386_register_convert_to_virtual,
1411 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1412 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1413 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1414 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1415 Don't set push_arguments twice.
1417 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1418 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1419 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1420 sigtramp_end to NULL.
1421 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1423 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1425 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1428 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1429 * gdbarch.h, gdbarch.c: Re-generate.
1430 * blockframe.c (find_pc_sect_partial_function): Convert to use
1431 SIGTRAMP_START_P predicate.
1433 2002-09-05 Michael Snyder <msnyder@redhat.com>
1435 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1436 generic_dummy_frame method and old method. Also distinguish
1437 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1438 (arm_extract_return_value): Use new regcache method.
1440 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1441 adjustment that doesn't conform to the ABI.
1442 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1443 saved regcache, not from current regcache.
1445 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1447 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1450 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1452 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1453 if arm_apcs_32 is false.
1455 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1457 GDB 5.3 branch created.
1459 2002-09-03 Theodore A. Roth <troth@verinet.com>
1461 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1462 generic_unwind_get_saved_register.
1464 2002-09-03 David Carlton <carlton@math.stanford.edu>
1466 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1467 argument (PR gdb/653). Update call to smash_to_method_type.
1468 (read_structure_scope): Update call to dwarf2_add_member_fn.
1470 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1472 * x86-64-linux-tdep.c: Include gdb_string.h
1473 * x86-64-linux-nat.c: Ditto.
1475 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1477 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1478 when YYDEBUG is set to 1.
1479 * c-exp.y: Likewise.
1480 * f-exp.y: Likewise.
1481 * jv-exp.y: Likewise.
1482 * m2-exp.y: Likewise.
1483 * p-exp.y: Likewise.
1485 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1487 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1489 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1490 solib_svr4_fetch_link_map_offsets to
1491 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1492 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1493 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1494 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1495 solib-svr4.o, and solib-legacy.o.
1496 * config/i386/tm-nbsd.h: Include solib.h.
1498 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1500 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1501 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1502 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1503 comment noting that this needs its own target configuration.
1504 * config/i386/nbsd.mt: New file.
1505 * config/i386/nbsdaout.mt: Remove.
1506 * config/i386/nbsdelf.mt: Ditto.
1507 * config/i386/tm-nbsdaout.h: Ditto.
1509 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1511 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1512 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1513 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1515 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1516 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1517 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1519 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1521 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1522 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1523 * i386-tdep.h (i386bsd_init_abi): New prototype.
1524 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1525 function declaration.
1526 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1527 for NetBSD-a.out or NetBSD-ELF.
1528 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1529 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1530 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1531 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1533 (i386nbsd_pc_in_sigtramp): New function.
1534 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1535 i386nbsd_pc_in_sigtramp.
1536 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1537 and i386nbsdelf_init_abi OS ABI handlers.
1538 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1539 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1541 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1543 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1544 registers if the target really has them.
1546 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1548 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1551 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1553 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1555 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1556 (alphanbsd_skip_sigtramp_frame): New functions.
1557 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1558 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1559 to alphanbsd_sigcontext_addr.
1561 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1563 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1565 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1566 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1567 nbsd_pc_in_sigtramp.
1568 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1569 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1570 * nbsd-tdep.c: Include gdb_string.h.
1571 (nbsd_pc_in_sigtramp): New function.
1572 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1573 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1574 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1575 ppcnbsd_pc_in_sigtramp.
1576 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1577 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1578 shnbsd_pc_in_sigtramp.
1579 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1580 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1581 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1583 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1585 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1586 watchpoints to NULL.
1587 (insert_breakpoints): set val field of watchpoints if NULL.
1590 2002-08-29 Jim Blandy <jimb@redhat.com>
1592 * symtab.c (lookup_symbol_aux): In the cases where we find a
1593 minimal symbol of an appropriate name and use its address to
1594 select a symtab to read and search, use `name' (as passed to us)
1595 as the demangled name when searching the symtab's global and
1596 static blocks, not the minsym's name.
1598 2002-08-29 Keith Seitz <keiths@redhat.com>
1600 * stack.c (print_frame_info_base): Always set current_source_symtab
1601 and current_source_line.
1603 2002-08-29 Donn Terry <donnte@microsoft.com>
1605 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1607 2002-08-28 Keith Seitz <keiths@redhat.com>
1609 * stack.c (select_frame): Add FIXME concerning selected-frame
1611 (select_frame_command): Send selected-frame-level-changed
1612 event notification, but only if the level actually changed.
1613 (up_silently_base): Add selected-frame-level-changed event
1615 (down_silently_base): Likewise.
1617 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1619 * Makefile.in: Update dependencies for all gdb/*.c files.
1621 2002-08-27 Tom Tromey <tromey@redhat.com>
1623 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1624 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1625 Update dependencies.
1626 * i387-tdep.c: Include gdb_string.h.
1627 * osabi.c: Likewise.
1628 * i386-linux-nat.c: Likewise.
1629 * lin-lwp.c: Likewise.
1630 * ax-gdb.c: Likewise.
1631 * signals/signals.c: Likewise.
1632 * jv-valprint.c: Likewise.
1633 * p-lang.c: Likewise.
1634 * c-valprint.c: Likewise.
1635 * cp-abi.c: Likewise.
1637 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1639 * cli/cli-script.h (copy_command_lines): Export.
1640 * breakpoint.c: Include cli/cli-script.h.
1641 * Makefile.in (breakpoint.o): Update dependencies.
1643 2002-08-26 Michael Snyder <msnyder@redhat.com>
1645 * breakpoint.c (insert_breakpoints): Protect all references
1646 to 'process_warning'. Shorten long lines.
1648 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1650 * cli/cli-script.c (copy_command_lines): New function.
1651 * defs.h (copy_command_lines): Export.
1652 * testsuite/gdb.base/commands.exp: New tests for commands
1653 attached to a temporary breakpoint, and for commands that
1654 delete the breakpoint they are attached to.
1656 2002-08-26 Michael Snyder <msnyder@redhat.com>
1658 * breakpoint.c (bpstat_stop_status): Instead of copying the
1659 pointer to the breakpoint commands struct, make a new copy
1660 of the struct and point to that.
1661 (bpstat_clear): Free the commands struct.
1662 (bpstat_clear_actions): Free the commands struct.
1663 (bpstat_do_actions): Free the command actions. Also execute
1664 the local cleanups, instead of deleting them.
1665 (delete_breakpoint): Leave the commands field of the bpstat
1666 chain alone -- it will be freed later.
1668 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1670 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1671 deleted in 2002-08-20 commit. This function is still used by
1674 2002-08-26 Keith Seitz <keiths@redhat.com>
1676 * gdb-events.sh: Add selected-frame-level-changed event.
1677 * gdb-events.c: Regenerated.
1678 * gdb-events.h: Regenerated.
1680 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1683 * inflow.c (terminal_save_ours): New function to save terminal
1685 * inferior.h (terminal_save_ours): Declare.
1686 * target.c (debug_to_terminal_save_ours): New function.
1687 (cleanup_target): Defaults to_terminal_save_ours.
1688 (update_current_target): Inherit to_terminal_save_ours.
1689 (setup_target_debug): Set to_terminal_save_ours.
1690 * target.h (target_terminal_save_ours): New to save terminal settings.
1691 (target_ops): New member to_terminal_save_ours.
1692 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1693 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1694 * inftarg.c (init_child_ops): Likewise.
1695 * m3-nat.c (init_m3_ops): Likewise.
1696 * procfs.c (init_procfs_ops): Likewise.
1697 * wince.c (init_child_ops): Likewise.
1698 * win32-nat.c (init_child_ops): Likewise.
1699 * sol-thread.c (init_sol_thread_ops): Likewise.
1701 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1703 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1704 use regcache_* functions.
1705 (i386_gdbarch_init): Set store_return_value instead of
1706 deprecated_store_return_value.
1708 * regcache.c (regcache_raw_write_signed,
1709 regcache_raw_write_unsigned): New functions.
1710 * regcache.h (regcache_raw_write_signed,
1711 regcache_raw_write_unsigned): New prototypes.
1713 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1715 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1716 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1717 source file dependencies. Cleanup corresponding generator rules.
1719 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1721 * regcache.h (register_offset_hack): Declare.
1722 (regcache_cooked_read_using_offset_hack): Declare.
1723 (regcache_cooked_write_using_offset_hack): Declare.
1725 * regcache.c (register_offset_hack): New function.
1726 (regcache_cooked_read_using_offset_hack): New function.
1727 (regcache_cooked_write_using_offset_hack): New function.
1728 (regcache_dump): Check that the registers, according to their
1729 offset, are packed hard against each other.
1730 (cooked_xfer_using_offset_hack): New function.
1732 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1734 * regcache.c (struct regcache_descr): Add field register_type.
1735 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1737 (init_regcache_descr): Initialize register_type. Pass the descr
1738 to init_legacy_regcache_descr. Use register_type instead of
1739 REGISTER_VIRTUAL_TYPE.
1740 (register_type): New function.
1741 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1742 * regcache.h (register_type): Declare.
1744 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1746 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1747 instead of deprecated_store_return_value. Fix fallout from
1748 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1750 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1752 * regcache.c (max_register_size): New function.
1753 (init_legacy_regcache_descr): Ensure that max_register_size is
1754 large enough for REGISTER_VIRTUAL_SIZE.
1755 * regcache.h (max_register_size): Declare.
1757 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1759 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1761 (e500_extract_return_value): Change type of valbuf pointer to
1764 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1766 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1769 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1770 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1771 long long) to prevent compiler warning on 64-bit systems.
1773 2002-08-23 Andrew Cagney <cagney@redhat.com>
1775 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1776 (DEPRECATED_STORE_RETURN_VALUE): New method.
1777 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1778 * gdbarch.h, gdbarch.c: Re-generate.
1780 * values.c (set_return_value): Pass current_regcache to
1782 * arch-utils.h (legacy_store_return_value): Declare.
1783 * arch-utils.c (legacy_store_return_value): New function.
1784 (legacy_extract_return_value): Update parameters.
1786 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1788 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1789 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1790 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1791 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1792 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1793 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1794 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1795 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1796 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1797 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1799 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1800 * i386-tdep.c (i386_extract_return_value): Update.
1801 * arch-utils.c (legacy_extract_return_value): Update.
1802 * frv-tdep.c (frv_gdbarch_init): Update.
1803 * cris-tdep.c (cris_gdbarch_init): Update.
1804 * d10v-tdep.c (d10v_gdbarch_init): Update.
1805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1806 * m68k-tdep.c (m68k_gdbarch_init): Update.
1807 * mcore-tdep.c (mcore_gdbarch_init): Update.
1808 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1809 * s390-tdep.c (s390_gdbarch_init): Update.
1810 * sparc-tdep.c (sparc_gdbarch_init): Update.
1811 * sh-tdep.c (sh_gdbarch_init): Update.
1812 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1813 * v850-tdep.c (v850_gdbarch_init): Update.
1814 * avr-tdep.c (avr_gdbarch_init): Update.
1815 * ia64-tdep.c (ia64_gdbarch_init): Update.
1816 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1817 * vax-tdep.c (vax_gdbarch_init): Update.
1818 * alpha-tdep.c (alpha_gdbarch_init): Update.
1819 * arm-tdep.c (arm_gdbarch_init): Update.
1820 * mips-tdep.c (mips_gdbarch_init): Update.
1821 * i386-tdep.c (i386_gdbarch_init): Update.
1823 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1825 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1826 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1828 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1830 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1833 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1835 * infrun.c (handle_inferior_event): Move a comment outside of a
1836 function call, in order to avoid indent reformatting this part
1837 of the code in an unreadable way.
1839 2002-08-23 Grace Sainsbury <graces@redhat.com>
1841 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1842 when breakpoints fail. Move general breakpoint error messages to
1844 * breakpoint.c (insert_breakpoints): Change warnings when
1845 breakpoints are nto inserted to specify the type. Remove call to
1846 memory_error when hardware breakpoints can't be inserted. Remove
1847 multiple calls to warning so all messages are sent to the user at
1849 (delete_breakpoints): Make insert error messsages more explicit.
1851 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1853 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1854 gdbserver/ChangeLog.
1856 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1858 * i386-tdep.c: Include "objfiles.h".
1859 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1860 skip_trampoline_code.
1861 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1862 (CPLUS_MARKER): Define to '.'.
1864 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1866 (linux_corefile_thread_callback): Increase args->num_notes.
1867 (linux_make_note_section): Initialize thread_args.num_notes, and
1868 use it to determine whether notes for any threads were created.
1870 2002-08-23 Donn Terry <donnte@microsoft.com>
1872 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1873 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1875 (write_with_trace): Conditionalize out the switch branch handling
1876 PCSHOLD if the corresponding macro is not defined. Likewise for
1877 PRSABORT and PRSTOP.
1878 This change will be needed by the Interix port.
1880 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1882 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1883 write_register wherever possible instead of manipulating the
1884 register bytes directly.
1885 Assign VALUE_CONTENTS to a variable and use that.
1886 The GPR numbers are now dependent on the architecture.
1888 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1890 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1892 (skip_prologue): Add support for BookE/e500 instructions.
1893 (e500_extract_return_value): New function.
1894 (frame_get_saved_regs): Add support for saving ev registers and
1896 (e500_store_return_value): New function.
1897 (rs6000_gdbarch_init): Move up default intializations of
1898 deprecated_extract_return_value and store_return_value. Overwrite
1899 init of store_return_value with e500 specific version.
1900 Set extract_return_value for e500.
1902 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1904 * blockframe.c (generic_call_dummy_register_unwind): Use
1905 regcache_cooked_read to catch cases in which the variable is
1906 stored in a pseudo register.
1908 2002-08-22 Andrew Cagney <cagney@redhat.com>
1910 * NEWS: Mention that the i960 has been made obsolete.
1911 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1913 (remote-nrom.o): Obsolete target.
1914 (remote-nindy.o, i960-tdep.o): Ditto.
1915 * remote-nrom.c: Make file obsolete.
1916 * remote-nindy.c, remote-vx960.c: Ditto.
1917 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1918 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1919 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1920 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1921 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1922 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1923 i960-*-vxworks* obsolete.
1924 * MAINTAINERS: Note that the i960 is obsolete.
1926 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1928 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1929 detach to allow reinitialization.
1931 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1933 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1936 2002-08-22 Jim Blandy <jimb@redhat.com>
1938 * coffread.c (coff_symfile_read): Don't try to read the line
1939 number table from disk if the image file doesn't have a symbol
1940 table; we'll never actually look at the info anyway, and Windows
1941 ships DLL's with bogus file offsets for the line number data.
1943 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1945 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1948 2002-08-21 Michael Snyder <msnyder@redhat.com>
1950 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1951 (MSYMBOL_SIZE): Replace macro with function.
1952 (DEFAULT_MIPS_TYPE): Delete unused macro.
1953 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1954 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1956 2002-08-21 Jim Blandy <jimb@redhat.com>
1958 * valops.c (value_cast): Simplify and correct logic for doing a
1959 static cast from a pointer to a base class to a pointer to a
1962 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1964 * infcmd.c (default_print_registers_info): Replace
1966 (registers_info): Use gdbarch_print_registers_info instead of
1968 * inferior.h (default_print_registers_info): Replace
1970 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1971 (DO_REGISTERS_INFO): Change to a predicate function.
1972 * gdbarch.h, gdbarch.c: Regenerate.
1974 2002-08-21 Keith Seitz <keiths@redhat.com>
1976 * gdb-events.sh: Add target-changed event.
1977 * gdb-events.c: Regenerated.
1978 * gdb-events.c: Regenerated.
1979 * valops.c (value_assign): Add target-changed event notification
1980 to inlval_register, lval_memory, and lval_reg_frame_relative.
1982 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1984 * NEWS: Add an entry regarding the improvement of the next/step
1985 operation on Alpha Tru64 multi-processor machines.
1987 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1989 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1991 * Makefile.in: Update all _h macro definitions.
1992 * Makefile.in (install-gdbtk): Move to install section.
1993 (rdi-share/libangsd.a): Move to end of file.
1995 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1997 * frame.c (frame_register_unwind): When a register, set addrp to
1998 the register's byte.
2000 2002-08-20 Michael Snyder <msnyder@redhat.com>
2002 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2003 used locally, so move them from the target machine header to here.
2004 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2005 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2007 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2009 2002-08-20 Andrew Cagney <cagney@redhat.com>
2011 * NEWS: Mention that the Apollo line was made obsolete.
2012 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2013 m68*-hp-hpux* obsolete.
2014 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2015 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2016 * buildsym.c (make_blockvector): Make static.
2017 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2018 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2019 (ALLDEPFILES): Remove dstread.c.
2020 (dstread.o): Obsolete make rule.
2021 * dstread.c: Makefile obsolete.
2023 * config/m68k/hp300hpux.mt: Ditto.
2024 * config/m68k/hp300hpux.mh: Ditto.
2025 * config/m68k/hp300bsd.mt: Ditto.
2026 * config/m68k/hp300bsd.mh: Ditto.
2027 * config/m68k/apollo68b.mt: Ditto.
2028 * config/m68k/apollo68v.mh: Ditto.
2029 * config/m68k/apollo68b.mh: Ditto.
2031 2002-08-20 Michael Snyder <msnyder@redhat.com>
2033 * mips-tdep.c (mips_in_return_stub): Make static.
2034 (mips_gdbarch_init): Set in_solib_return_trampoline.
2035 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2037 2002-08-20 Michael Snyder <msnyder@redhat.com>
2039 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2040 * gdbarch.c, gdbarch.h: Regenerate.
2041 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2043 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2045 2002-08-20 Michael Snyder <msnyder@redhat.com>
2047 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2048 (mips_gdbarch_init): Set skip_trampoline_code,
2049 in_solib_call_trampoline.
2050 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2051 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2053 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2055 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2057 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2058 vector type for ev registers.
2059 (e500_pseudo_register_read): New function.
2060 (e500_pseudo_register_write): New function.
2061 (e500_dwarf2_reg_to_regnum): New function.
2062 (PPC_UISA_NOFP_SPRS): New macro.
2063 (PPC_EV_REGS): New macro.
2064 (PPC_GPRS_PSEUDO_REGS): New macro.
2065 (registers_e500): New register set for e500.
2066 (variants): Add e500 variant.
2067 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2068 before setting architectural dependent variations. Initialize ev
2069 registers numbers. Add case for e500 architecture. Set the
2070 number of pseudo registers.
2072 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2074 * rs6000-tdep.c: Clean up comments.
2076 2002-08-20 Andrew Cagney <cagney@redhat.com>
2078 * h8300-tdep.c: Re-indent file.
2080 2002-08-20 Jim Blandy <jimb@redhat.com>
2082 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2085 2002-08-20 Keith Seitz <keiths@redhat.com>
2087 * breakpoints.c (watch_command_1): Use internal breakpoint
2088 when setting a watchpoint_scope breakpoint.
2090 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2092 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2093 (build_builtin_type_vec64i): Ditto.
2094 (build_builtin_type_vec128): Ditto.
2095 (build_builtin_type_vec128i): Ditto.
2097 2002-08-19 Michael Snyder <msnyder@redhat.com>
2099 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2100 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2101 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2102 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2103 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2104 CALL_DUMMY_ADDRESS): Delete.
2105 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2106 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2107 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2108 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2109 push_return_address.
2110 (mips_register_raw_size, mips_eabi_use_struct_convention,
2111 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2112 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2113 mips_init_extra_frame_info, mips_eabi_push_arguments,
2114 mips_n32n64_push_arguments, mips_push_return_address,
2115 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2116 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2118 2002-08-19 Michael Snyder <msnyder@redhat.com>
2120 * mips-tdep.c (mips_frame_num_args): New function.
2121 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2122 frame_saved_pc, frame_args_address, frame_locals_address,
2123 frame_num_args, and frame_args_skip.
2124 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2125 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2126 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2127 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2129 2002-08-20 Michael Snyder <msnyder@redhat.com>
2131 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2132 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2133 * mips-tdep.c (mips_store_struct_return): New function.
2134 (mips_extract_struct_value_address): New function.
2135 (mips_gdbarch_init): Set store_struct_return and
2136 extract_struct_value_address.
2138 2002-08-20 David Carlton <carlton@math.stanford.edu>
2140 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2141 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2142 (read_file_scope): Check that line_header is nonzero before
2143 decoding macro information.
2145 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2147 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2148 flag the general-purpose registers as floating-point on targets
2149 that don't support the floating-point registers.
2151 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2153 * rs6000-tdep.c (altivec_register_p): Delete.
2154 (rs6000_do_altivec_registers): Delete.
2155 (rs6000_altivec_registers_info): Delete.
2156 (rs6000_do_registers_info): Delete.
2157 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2158 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2160 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2162 * infcmd.c (do_registers_info): Print vector registers in hex
2164 (print_vector_info): Check that printing registers
2166 (print_float_info): Ditto.
2168 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2170 * mips-tdep.c (mips_gdbarch_init): Update.
2171 (mips_o32_extract_return_value): Rewrite.
2172 (mips_o32_store_return_value): Rewrite.
2173 (mips_o32_xfer_return_value): New function.
2174 (mips_xfer_register): Tweak debug print message. Allow for
2175 buf_offset when dumping the value transfered.
2177 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2179 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2180 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2181 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2182 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2183 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2185 2002-08-14 Michael Snyder <msnyder@redhat.com>
2187 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2189 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2191 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2193 (P): New macro to define a register as a pseudo register.
2194 (R, R4, R8, R16, FR32, R64, R0): Updated.
2195 (struct variant): Add new fields for number of pseudo registers
2196 and number of total registers.
2197 (tot_num_registers): New macro replacing....
2198 (num_registers): ...deleted macro.
2199 (num_registers): New function.
2200 (num_pseudo_registers): New function.
2201 (variants): Update all variants to intialize new fields correctly.
2202 Postpone initialization of number of pseudo regs and real regs.
2203 (init_variants): New function.
2204 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2207 2002-08-19 David Carlton <carlton@math.stanford.edu>
2209 * valops.c (search_struct_field): Change error message to treat
2210 return value of 0 from value_static_field as meaning that field is
2212 (value_struct_elt_for_reference): Ditto.
2213 * values.c (value_static_field): Treat an unresolved location the
2214 same as a nonexistent symbol. Fix PR gdb/635.
2215 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2216 enclosed. Fix PR gdb/574.
2217 * MAINTAINERS: Add self to Write After Approval list.
2219 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2221 * mips-tdep.c (mips_xfer_register): New function.
2222 (mips_n32n64_extract_return_value): Rewrite.
2223 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2224 instead of deprecated_extract_return_value.
2226 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2228 * rs6000-tdep.c (TDEP): Delete macro.
2229 (branch_dest): Replace use of TDEP macro with its body.
2230 (rs6000_pop_frame): Ditto.
2231 (rs6000_push_arguments): Ditto.
2232 (rs6000_skip_trampoline_code): Ditto.
2233 (rs6000_frame_saved_pc): Ditto.
2234 (rs6000_frame_chain): Ditto.
2235 (rs6000_register_name): Ditto.
2236 (rs6000_register_byte): Ditto.
2237 (rs6000_register_raw_size): Ditto.
2238 (rs6000_register_virtual_type): Ditto.
2239 (rs6000_register_convertible): Ditto.
2240 (rs6000_convert_from_func_ptr_addr): Ditto.
2242 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2244 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2246 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2247 MIPS_LINUX_JB_ELEMENT_SIZE.
2248 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2249 for MAX_REGISTER_RAW_SIZE arrays.
2250 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2251 MIPS_LINUX_JB_ELEMENT_SIZE.
2253 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2255 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2257 2002-08-19 Aidan Skinner <aidan@velvet.net>
2259 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2260 ada-valprint.c ada-tasks.c.
2261 (YYFILES): Add ada-exp.y.
2262 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2263 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2264 (ada-exp.tab.o): New target.
2266 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2268 * regcache.c (regcache_xfer_part): New function.
2269 (regcache_raw_read_part): New function.
2270 (regcache_raw_write_part): New function.
2271 (regcache_cooked_read_part): New function.
2272 (regcache_cooked_write_part): New function.
2273 * regcache.h (regcache_raw_read_part): Declare.
2274 (regcache_raw_write_part): Declare.
2275 (regcache_cooked_read_part): Declare.
2276 (regcache_cooked_write_part): Declare.
2278 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2280 * remote.c (remote_open_1): Add async_p.
2281 (remote_async_open_1): Delete.
2282 (open_remote_target): Delete.
2283 (remote_open, extended_remote_open): Update calls to remote_open_1.
2284 (remote_async_open, extended_remote_async_open): Call
2285 remote_open_1 instead of remote_async_open_1.
2287 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2289 * blockframe.c: Fix a few coding standard violations.
2291 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2293 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2295 * config/i386/tm-i386sco5.h: ... here. File removed.
2296 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2298 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2299 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2300 (TM_FILE): Set to tm-i386.h.
2301 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2302 * config/i386/tm-i386v.h: Remove file.
2303 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2304 instead of "i386/tm-i386v.h".
2305 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2306 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2308 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2309 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2312 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2314 * config/i386/nm-i386v.h: Add protection against
2316 (i386_register_u_addr): Remove prototype.
2317 (register_u_addr): New prototype.
2318 (REGISTER_U_ADDR): Redefine accordingly.
2319 * i386v-nat.c: Improve several comments.
2320 (i386_register_u_addr): Change signature and rename to
2321 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2324 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2326 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2327 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2328 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2329 deprecated_extract_return_value.
2330 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2331 rename mips_o32o64_push_arguments.
2332 (mips_gdbarch_init): Update.
2333 (mips_extract_return_value): Delete.
2334 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2335 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2336 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2337 (mips_n32n64_extract_return_value): Clone
2338 mips_extract_return_value.
2339 (mips_store_return_value): Delete.
2340 (mips_o32_store_return_value): Clone mips_store_return_value.
2341 (mips_o64_store_return_value): Clone mips_store_return_value.
2342 (mips_eabi_store_return_value): Clone mips_store_return_value.
2343 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2345 2002-08-18 Aidan Skinner <aidan@velvet.net>
2347 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2348 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2350 2002-08-18 Aidan Skinner <aidan@velvet.net>
2352 * ada-lang.c: Run through gdb_indent.sh.
2353 * ada-lang.h: Run through gdb_indent.sh.
2354 * ada-tasks.c: Run through gdb_indent.sh.
2355 * ada-typeprint.c: Run through gdb_indent.sh.
2356 * ada-valprint.c: Run through gdb_indent.sh.
2358 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2360 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2363 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2365 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2367 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2368 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2370 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2371 write_register_gen instead of write_register_bytes.
2373 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2374 i[3456]-*-osf1mk* configurations have been made obsolete.
2375 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2376 i[3456]86-*-osf1mk* hosts obsolete.
2377 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2379 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2380 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2381 config/i386/i386m3.mt, config/i386/nm-m3.h,
2382 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2383 config/i386/i386mk.mh, config/i386/i386mk.mt,
2384 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2386 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2387 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2388 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2390 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2392 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2393 (hppa_value_returned_from_stack): Declare.
2394 (hppa_extract_return_value): Declare.
2395 * config/pa/hppa.mt: New file.
2396 * configure.tgt: Recognize hppa*-*-*.
2397 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2399 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2401 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2404 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2406 * top.c (gdb_rl_operate_and_get_next): Make sure
2407 operate-and-get-next functions correctly even when the history
2408 list is completely filled.
2410 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2412 * MAINTAINERS (Target Instruction Set Architectures): Rename
2413 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2414 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2415 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2416 already listed under Host/Native.
2418 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2419 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2422 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2424 * config/ia64/ia64.mt: New file.
2425 * config/alpha/alpha.mt: New file.
2426 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2427 ia64-linux-gnu. Mention that ia64-elf is broken.
2428 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2430 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2432 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2433 generic_func_frame_valid instead of func_frame_valid.
2435 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2437 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2438 procfs appears to be broken when debugging on multi-processor
2439 machines. So enable software single stepping in order to avoid
2440 using the procfs interface to do next/step operations, using
2441 internal breakpoints instead.
2443 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2444 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2445 make this pc address equal to the value it would have if the
2446 system stepping capability was used. Also set a new flag used
2447 to ensure that we don't readjust the PC one more time later.
2449 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2450 address by DECR_PC_AFTER_BREAK when software single step is
2451 in use for this architecture, as this has already been taken
2452 care of in handle_inferior_event().
2454 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2456 * infrun.c (handle_inferior_event): Minor reformatting, to make
2457 a rather long condition expression easier to read.
2459 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2461 * Makefile.in (gdbtk.o): Move to end of file.
2462 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2463 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2464 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2465 (gdbtk-wrapper.o, gdbres.o): Ditto.
2467 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2469 * Makefile.in (copying.o): Separate out compile rule.
2470 (hpux-thread.o, procfs.o, signals.o): Ditto.
2471 (v850ice.o, z8k-tdep.o): Ditto.
2472 (tui-file.o): Move to TUI section.
2473 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2474 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2476 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2478 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2479 skip_trampoline_code, for better namespace-proofing.
2481 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2483 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2485 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2487 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2489 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2490 signal, check whether we hit a breakpoint before checking for a
2491 single step breakpoint. Otherwise, GDB fails to notice that a
2492 breakpoint has been hit when stepping onto a breakpoint.
2494 2002-08-16 Keith Seitz <keiths@redhat.com>
2496 * gdb-events.sh (clear_gdb_event_hooks): New function.
2497 * gdb-events.c: Regenerate.
2498 * gdb-events.h: Regenerate.
2500 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2502 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2503 not_a_sw_breakpoint.
2504 * breakpoint.h (bpstat_stop_status): Add parameter names.
2506 2002-08-16 Grace Sainsbury <graces@redhat.com>
2508 * remote.c (remote_insert_hw_breakpoint)
2509 (remote_remove_hw_breakpoint): Fix calculation of length field
2512 2002-08-15 Michael Snyder <msnyder@redhat.com>
2514 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2515 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2516 (supply_fpregset): Ditto.
2518 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2519 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2520 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2521 (TARGET_READ_SP): Delete.
2522 (DO_REGISTERS_INFO): Delete.
2523 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2525 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2526 from macros to functions.
2528 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2529 (mips_register_convertible, mips_register_convert_to_virtual,
2530 mips_register_convert_to_raw): Make static.
2531 (mips_read_sp): New function.
2532 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2533 (mips_do_registers_info): Make static.
2534 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2535 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2536 (mips_register_convert_from_type, mips_register_convert_to_type):
2538 (mips_gdbarch_init): Set up function_start_offset,
2539 register_virtual_size, pc_in_sigtramp.
2541 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2543 * infcmd.c (vector_info): New function.
2544 (_initialize_infcmd): Add command "info vector".
2545 (print_vector_info): New function.
2547 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2548 * gdbarch.h, gdbarch.c: Regenerate.
2550 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2552 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2553 ``print_all''. Only print vector registers when ``print_all''.
2555 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2557 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2558 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2560 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2561 Add `args' parameter.
2562 * gdbarch.h, gdbarch.c: Regenerate.
2564 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2566 * infcmd.c (float_info): Call print_float_info.
2567 (print_float_info): New function. By default, print the
2568 floating-point registers.
2570 * arch-utils.h (default_print_float_info): Delete declaration.
2571 * arch-utils.c (default_print_float_info): Delete function.
2573 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2575 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2578 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2581 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2582 * configure.host: Make i[3456]86-*-aix host obsolete.
2583 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2584 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2585 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2586 config/i386/xm-i386aix.h: Make files obsolete.
2587 * i386aix-nat.c: Make file obsolete.
2588 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2589 (i386aix-nat.o): Make target obsolete.
2591 * config/i386/nm-gnu.h: Removed.
2592 * config/i386/nm-i386gnu.h: New file.
2593 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2594 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2596 * config/i386/tm-i386gnu.h: ... here. Removed.
2597 * config/i386/xm-i386gnu.h: Removed.
2598 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2599 (NAT_FILE): Set to nm-i386gnu.h.
2600 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2601 * i386-tdep.c: New file.
2602 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2603 (i386gnu-tdep.o): Specify dependencies.
2605 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2607 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2608 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2609 Adjust a few comments to reflect reality a bit closer.
2610 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2611 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2612 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2613 target_insert_watchpoint, target_remove_watchpoint):
2615 * config/i386/nm-i386sco5.h: ... here.
2616 (kernel_u_size): Add prototype. Improve a few comments and add
2617 protection against multiple inclusion.
2619 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2622 * uw-thread.c (SP_ARG0): Define if not already defined.
2623 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2625 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2627 * config/i386/tm-i386.h: Don't include "regcache.h".
2629 * i387-tdep.h (i387_print_float_info): New prototype.
2630 * i387-tdep.c (print_i387_value, print_i387_ext,
2631 print_i387_status_word, print_i387_control_word): Add `struct
2632 ui_file *' argument and use it for output.
2633 (i387_print_float_info): Renamed from i387_float_info. Add
2634 `struct gdbarch *' and `struct ui_file *' arguments and use the
2636 * i386-tdep.c: Include "i387-tdep.h".
2637 (i386_gdbarch_init): Set print_float_info.
2638 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2639 (FLOAT_INFO): Remove define.
2641 2002-08-13 Michael Snyder <msnyder@redhat.com>
2643 * mips-tdep.c (mips_push_arguments): Rename to
2644 mips_eabi_push_arguments, and tune for EABI.
2645 (MIPS_REGS_HAVE_HOME_P): Delete.
2646 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2647 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2648 Delete references to mips_regs_have_home_p.
2650 2002-08-14 Keith Seitz <keiths@redhat.com>
2652 * Makefile.in (install-gdbtk): Create insight plugin directory.
2653 Install plugins.tcl file.
2655 2002-08-14 Keith Seitz <keiths@redhat.com>
2657 * configure.in: Move SUBDIRS to near top of the file so that
2658 --enable options may add things to it.
2659 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2660 * configure: Regenerate.
2662 2002-08-13 Michael Snyder <msnyder@redhat.com>
2664 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2665 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2666 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2668 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2670 * vax-tdep.c (vax_get_saved_register): Delete function.
2671 (vax_gdbarch_init): Update.
2672 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2673 (ns32k_gdbarch_init): Update.
2674 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2675 (alpha_gdbarch_init): Update.
2677 2002-08-13 Andrew Cagney <cagney@redhat.com>
2679 * regcache.c (init_regcache_descr): Overallocate the
2680 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2681 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2683 (set_register_cached): Add range checking assertions. Use
2686 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2688 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2689 numbers for MMX registers.
2691 2002-08-13 Andrew Cagney <cagney@redhat.com>
2693 * i386-tdep.c (i386_gdbarch_init): Use
2694 generic_unwind_get_saved_register.
2696 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2698 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2699 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2701 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2702 Delete. Add comment regarding this now-deleted target method.
2704 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2706 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2707 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2708 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2709 real PC and the page number (if it's within the memory bank window).
2710 (m68hc11_pseudo_register_write): Likewise when saving.
2711 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2712 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2713 (m68hc11_register_raw_size): And use 32-bit for it.
2714 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2715 16K memory bank is used by the prog; also use the virtual pc.
2717 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2719 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2720 (m68hc11_gdbarch_init): Install it in gdbarch.
2721 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2722 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2723 (MSYMBOL_SIZE): New for documentation.
2724 (insn_return_kind): Enum to specify how a function returns.
2725 (frame_extra_info): Cleanup and record the return mode.
2726 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2727 register in address computation.
2728 (m68hc11_get_return_insn): New to obtain the return instruction used
2730 (m68hc11_frame_init_saved_regs): Take into account the return
2731 instruction used by the function for far and interrupt functions.
2732 (m68hc11_init_extra_frame_info): Take into account page register.
2733 (m68hc11_frame_args_address): Adjust according to the return mode.
2734 (show_regs): Print page register only when it's used.
2736 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2738 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2739 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2740 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2742 (m68hc11_register_raw_size): Likewise.
2744 2002-08-13 Andrew Cagney <cagney@redhat.com>
2746 * i386-tdep.c (i386_register_name): Handle mmx registers.
2747 (mmx_regnum_p): New function.
2748 (i386_mmx_names): New array.
2749 (mmx_num_regs): New variable.
2750 (i386_pseudo_register_read): New function.
2751 (i386_pseudo_register_write): New function.
2752 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2754 * regcache.c (regcache_raw_read_unsigned): New function.
2755 (regcache_raw_read_signed): New function.
2756 * regcache.h (regcache_raw_read_unsigned): Declare.
2757 (regcache_raw_read_signed): Declare.
2759 2002-08-13 Andrew Cagney <cagney@redhat.com>
2761 * regcache.c (regcache_raw_read_as_address): Delete function.
2762 (regcache_cooked_read_signed): New function.
2763 (regcache_cooked_read_unsigned): New function.
2764 * regcache.h (regcache_cooked_read_signed): Declare.
2765 (regcache_cooked_read_unsigned): Declare.
2766 (regcache_raw_read_as_address): Delete declaration.
2768 * blockframe.c (generic_read_register_dummy): Use
2769 regcache_cooked_read_unsigned.
2770 * i386-tdep.c (i386_extract_struct_value_address): Use
2771 regcache_cooked_read_unsigned.
2773 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2776 double sizes according to ELF ABI flags.
2777 (gdbarch_tdep): Record elf_flags.
2779 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2781 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2782 (m6812_prolog): They can appear in 68HC12 function prologue.
2783 (m68hc11_frame_chain): Cleanup.
2785 2002-08-12 Andrew Cagney <cagney@redhat.com>
2787 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2789 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2790 (i386_linux_register_raw_size): Delete function.
2791 (i386_linux_init_abi): Update.
2792 * i386-tdep.c (i386_register_raw_size): Delete function.
2793 (i386_register_byte): Delete function.
2794 (i386_gdbarch_init): Update.
2795 (i386_register_size): Delete array.
2796 (i386_register_offset): Delete array.
2798 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2799 (REGISTER_RAW_SIZE): Delete macro.
2800 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2801 (REGISTER_BYTE): Delete macro.
2803 2002-08-11 Aidan Skinner <aidan@velvet.net>
2805 * ada-lang.c (ada_lookup_partial_symbol)
2806 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2807 prototype names so that grep ^func works properly.
2809 * ada-lang.c (ada_array_element_type)
2810 (ada_lookup_partial_symbol): Fix typos in parameter list.
2812 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2813 Fix prototype names so that grep ^func works properly.
2815 2002-08-10 Andrew Cagney <cagney@redhat.com>
2816 Elena Zannoni <ezannoni@redhat.com>
2817 Martin M. Hunt <hunt@redhat.com>
2819 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2820 (build_builtin_type_vec128i): Set the vector bit.
2821 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2822 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2823 (build_builtin_type_vec64): New function.
2824 (build_builtin_type_vec64i): New function.
2825 (build_gdbtypes): Initialize builtin_type_vec64 and
2826 builtin_type_vec64i.
2828 2002-08-09 Andrew Cagney <cagney@redhat.com>
2830 * regcache.c (regcache_dump): Compare the register offset
2832 * arch-utils.c (generic_register_byte): New function.
2833 * arch-utils.h (generic_register_byte): Declare.
2834 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2835 * gdbarch.h, gdbarch.c: Regenerate.
2837 2002-08-09 Andrew Cagney <cagney@redhat.com>
2839 * regcache.c: Include "gdbcmd.h"
2840 (_initialize_regcache): Add commands "maintenance print
2841 registers", "maintenance print raw-registers" and "maintenance
2842 print cooked-registers".
2843 (enum regcache_dump_what): Define.
2844 (dump_endian_bytes): New function.
2845 (regcache_dump): New function.
2846 (regcache_print): New function.
2847 (maintenance_print_registers): New function.
2848 (maintenance_print_raw_registers): New function.
2849 (maintenance_print_cooked_registers): New function.
2850 * Makefile.in (regcache.o): Update dependencies.
2852 2002-08-09 Michael Snyder <msnyder@redhat.com>
2854 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2855 (mips_push_arguments): Correct some comments. Use paddr_nz
2856 for printing addresses in debug output. Replace static
2857 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2858 (mips_n32n64_push_arguments): New function, cloned from
2859 mips_push_arguments and tuned for the n32/n64 ABI.
2860 (mips_push_register): Buffer needs dynamic allocation.
2861 (mips_print_register): Ditto.
2862 (do_gp_register_row): Ditto.
2863 (mips_store_return_value): Ditto.
2864 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2866 2002-08-09 Don Howard <dhoward@redhat.com>
2868 * memattr.c (mem_info_command): Print special case of upper bound
2869 as max CORE_ADDR + 1.
2871 2002-08-08 Michael Snyder <msnyder@redhat.com>
2873 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2874 returns structs by ref if they're too big to fit in two registers.
2876 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2878 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2880 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2881 mips_find_saved_regs().
2882 (mips_pop_frame): Likewise.
2884 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2886 * blockframe.c (frame_saved_regs_register_unwind): Revise
2887 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2890 2002-08-09 Grace Sainsbury <graces@redhat.com>
2892 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2893 T-packets; the 'a' is not taken as a register number.
2894 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2895 (remote_stopped_data_address): New functions; add to target
2897 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2898 prototypes to match other implementations of this
2899 function. replace integer argument with pointer -- the length
2900 field in the Z-packet is the length of what is pointed to or 1 if
2901 pointer is null. Add to target vector.
2902 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2906 * remote.c (remote_wait): Add support to extract optional
2907 watchpoint information from T-packet. Ignore unrecognized
2908 optional info in T-packet.
2909 (remote_async_wait): Ditto.
2911 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2913 * cli/cli-dump.c: Change fopen modes to use binary open modes
2914 as defined in include/fopen-bin.h throughout.
2916 2002-08-08 Michael Snyder <msnyder@redhat.com>
2918 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2920 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2922 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2923 assertion failure by returning early after a warning.
2925 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2927 * mips-tdep.c (mips_find_saved_regs): Make static.
2928 (mips_frame_init_saved_regs): New function.
2929 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2930 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2931 (mips_find_saved_regs): Delete declaration.
2933 2002-08-08 Grace Sainsbury <graces@redhat.com>
2935 * remote.c (remote_wait, remote_async_wait): Change
2936 thread_num from int to ULONGEST.
2937 (unpack_varlen_hex): Change result parameter from
2938 int * to ULONGEST *.
2940 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2942 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2943 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2945 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2947 2002-08-08 Andrew Cagney <cagney@redhat.com>
2949 * gcore.c (override_derive_stack_segment): Delete variable.
2950 (preempt_derive_stack_segment): Delete function.
2951 (derive_stack_segment): Delete function.
2952 (default_derive_stack_segment): Renamed to derive_stack_segment.
2953 (override_derive_heap_segment): Delete variable.
2954 (preempt_derive_heap_segment): Delete function.
2955 (derive_heap_segment): Delete function.
2956 (default_derive_heap_segment): Rename to derive_heap_segment.
2958 2002-08-06 Michael Snyder <msnyder@redhat.com>
2960 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2961 * mips-tdep.c (mips_EABI_use_struct_convention,
2962 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2963 New functions. (mips_use_struct_convention): Delete.
2964 (mips_gdbarch_init): set use_gdbarch_convention.
2966 2002-08-06 Michael Snyder <msnyder@redhat.com>
2968 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2969 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2970 mips_o32_reg_struct_has_addr): New functions.
2971 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2973 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2975 * regcache.c (pseudo_register): Delete function.
2976 (fetch_register): Delete function.
2977 (store_register): Delete function.
2978 (regcache_raw_read, legacy_read_register_gen): Use
2979 target_fetch_registers instead of fetch_register.
2980 (legacy_write_register_gen, regcache_raw_write): Use
2981 target_store_register instead of store_register.
2982 (write_register_bytes): Ditto.
2984 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2985 (STORE_PSEUDO_REGISTER): Delete.
2986 * gdbarch.h, gdbarch.c: Regenerate.
2988 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2990 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2991 write dump file binary.
2993 2002-08-05 Michael Snyder <msnyder@redhat.com>
2995 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2996 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2997 (mips_gdbarch_init): Set N32 target to be mips64.
2999 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3001 * frame.c (find_saved_register): Break out of loop once saved
3002 register address is found. Don't mention sparc in loop comment
3005 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3007 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3008 mips_default_saved_regsize to 8.
3010 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3012 * gcore.c: Do not include <sys/procfs.h>.
3013 * Makefile.in (gcore.o): Update dependencies.
3015 2002-08-06 Andrew Cagney <cagney@redhat.com>
3017 * configure.tgt: Make arc-*-* obsolete.
3018 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3019 * MAINTAINERS: Make arc-elf obsolete.
3020 * arc-tdep.c: Make file obsolete.
3021 * config/arc/arc.mt: Ditto.
3022 * config/arc/tm-arc.h: Ditto.
3024 2002-08-05 Theodore A. Roth <troth@verinet.com>
3026 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3028 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3030 * mcore-tdep.c (mcore_gdbarch_init): Use
3031 generic_unwind_get_saved_register instead of
3032 generic_get_saved_register.
3033 * v850-tdep.c (v850_gdbarch_init): Ditto.
3034 * frv-tdep.c (frv_gdbarch_init): Ditto.
3035 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3036 * s390-tdep.c (s390_gdbarch_init): Ditto.
3037 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3038 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3039 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3041 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3043 * objfiles.h: Add missing #include "symfile.h"
3045 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3047 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3049 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3050 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3053 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3055 * NEWS: Cleanup and nitpick.
3057 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3059 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3061 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3063 * Makefile.in (gdbtk-bp.o): Update dependencies.
3064 (gdbtk-register.o): Ditto.
3065 (gdbtk-varobj.o): Ditto.
3067 2002-08-03 Andrew Cagney <cagney@redhat.com>
3069 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3070 m68hc11_fetch_pseudo_register.
3071 (m68hc11_pseudo_register_write): Replace
3072 m68hc11_store_pseudo_register.
3073 (m68hc11_gdbarch_init): Update.
3075 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3077 * gdbarch.sh: Include "gdb_string.h".
3078 * gdbarch.c: Regenerate.
3080 * regcache.c: Include "gdb_string.h".
3081 * ax-general.c: Ditto.
3083 * std-regs.c: Ditto.
3084 * fbsd-proc.c: Ditto.
3087 * Makefile.in (regcache.o): Update dependencies.
3088 (thread.o, gdbarch.o): Ditto.
3089 (ax-general.o, gdbarch.o): Ditto.
3090 (varobj.o, std-regs.o): Ditto.
3091 (fbsd-proc.o): Specify dependencies.
3093 2002-08-02 Andrew Cagney <cagney@redhat.com>
3095 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3097 (regcache_cooked_write): Ditto.
3099 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3101 * regcache.c (regcache_cooked_read): New function.
3102 (regcache_cooked_write): New function.
3103 (read_register_gen): Rewrite using regcache_cooked_read.
3104 (write_register_gen): Rewrite using regcache_cooked_write.
3106 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3109 2002-08-02 Andrew Cagney <cagney@redhat.com>
3111 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3112 Replace the architecture methods register_read and register_write.
3113 * gdbarch.h, gdbarch.c: Regenerate.
3114 * regcache.c (init_regcache_descr): Update.
3115 (read_register_gen): Update.
3116 (write_register_gen): Update.
3117 (supply_register): Update comment.
3119 * sh-tdep.c (sh_gdbarch_init): Update.
3120 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3121 `regcache' and `gdbarch' parameters. Make `buffer' a void
3122 pointer. Update code.
3123 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3124 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3125 void pointer. Update code.
3126 (sh64_register_write): Delete.
3127 (sh4_register_read): Delete.
3128 (sh64_register_read): Delete.
3129 (sh4_register_write): Delete.
3130 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3131 void pointer, `to' parameter a void pointer.
3132 (sh_sh64_register_convert_to_raw): Ditto.
3134 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3136 * mips-tdep.c (mips_register_virtual_type): Use architecture
3137 invariant return values.
3139 2002-08-01 Andrew Cagney <cagney@redhat.com>
3141 * linux-proc.c: Include "gdb_string.h".
3142 * Makefile.in (linux-proc.o): Update dependency list.
3144 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3146 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3149 2002-08-01 Grace Sainsbury <graces@redhat.com>
3151 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3152 to_insert_watchpoint, to_remove_watchpoint,
3153 to_stopped_by_watchpoint, to_stopped_data_address,
3154 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3155 target vecctor. Define their corresponding macros so they call
3158 * target.c: Add default and debug versions of for
3159 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3160 to_insert_watchpoint, to_remove_watchpoint,
3161 to_stopped_by_watchpoint, to_stopped_data_address,
3162 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3164 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3166 * mips-tdep.c (mips_register_virtual_type): New function.
3167 (mips_gdbarch_init): Register mips_register_virtual_type()
3168 with gdbarch machinery.
3169 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3170 this file instead of tm-bigmips.h.
3171 (MIPS_REGSIZE): Delete this macro.
3172 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3173 multiarch version in mips-tdep.c will be found.
3175 2002-08-01 Andrew Cagney <cagney@redhat.com>
3177 * NEWS: Menion that CHILL has been made obsolete.
3179 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3180 * stabsread.c (read_range_type): Ditto.
3181 * gdbtypes.h: Ditto.
3182 * language.c (binop_type_check): Ditto.
3183 (binop_result_type): Ditto.
3184 (integral_type): Ditto.
3185 (character_type): Ditto.
3186 (string_type): Ditto.
3187 (boolean_type): Ditto.
3188 (structured_type): Ditto.
3189 (lang_bool_type): Ditto.
3190 (binop_type_check): Ditto.
3191 * language.h (_LANG_chill): Ditto.
3192 * dwarfread.c (set_cu_language): Ditto.
3193 * dwarfread.c (CHILL_PRODUCER): Ditto.
3194 * dwarfread.c (handle_producer): Ditto.
3195 * expression.h (enum exp_opcode): Ditto.
3196 * eval.c: Ditto for comments.
3197 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3198 * expprint.c (print_subexp): Ditto.
3199 (print_subexp): Ditto.
3200 * valops.c (value_cast): Ditto.
3201 (search_struct_field): Ditto.
3202 * value.h (COERCE_VARYING_ARRAY): Ditto.
3203 * symfile.c (init_filename_language_table): Ditto.
3204 (add_psymbol_with_dem_name_to_list): Ditto.
3205 * valarith.c (value_binop): Ditto.
3207 * valops.c (value_slice): Ditto.
3208 * symtab.h (union language_specific): Ditto.
3209 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3210 (SYMBOL_DEMANGLED_NAME): Ditto.
3211 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3212 * defs.h (enum language): Ditto.
3213 * symtab.c (got_symtab): Ditto.
3214 * utils.c (fprintf_symbol_filtered): Ditto.
3216 * ch-typeprint.c: Make file obsolete.
3217 * ch-valprint.c: Make file obsolete.
3218 * ch-lang.h: Make file obsolete.
3219 * ch-exp.c: Make file obsolete.
3220 * ch-lang.c: Make file obsolete.
3222 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3224 (TARGET_FLAGS_TO_PASS): Ditto.
3225 (CHILLFLAGS): Obsolete.
3227 (CHILL_FOR_TARGET): Obsolete.
3228 (CHILL_LIB): Obsolete.
3229 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3231 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3232 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3234 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3237 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3239 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3240 This does not change anything at the moment, but will be helpful
3241 later when full Ada support is integrated.
3243 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3245 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3248 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3250 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3251 and save it in a local variable. Use variable in later test.
3253 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3255 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3256 test. (Thanks to Daniel Jacobowitz.)
3258 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3260 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3261 (mips_abi_strings): Add "n64".
3262 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3264 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3266 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3267 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3269 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3271 * utils.c (host_pointer_to_address, address_to_host_pointer):
3272 Use gdb_assert() instead of explicit call to internal_error().
3274 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3276 * Makefile.in (rs6000-nat.o): Update dependencies.
3278 From Nicholas Duffek:
3279 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3280 (aix-thread.o): New rule.
3281 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3282 * config/powerpc/aix432.mh: New file.
3284 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3286 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3287 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3288 (fetch_core_registers, ppc_linux_supply_gregset)
3289 (ppc_linux_supply_fpregset): New functions.
3290 (ppc_linux_regset_core_fns): New.
3291 (_initialize_ppc_linux_tdep): Call add_core_fns.
3292 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3293 and ppc_linux_supply_gregset.
3294 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3295 (supply_fpregset): Call ppc_linux_supply_fpregset.
3296 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3298 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3300 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3302 * symtab.c (lookup_symbol): Demangle before lowercasing.
3304 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3306 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3308 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3309 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3310 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3311 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3313 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3314 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3315 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3316 (avr-tdep.o, mon960-rom.o): Ditto.
3317 (aout_stabs_gnu_h): Define.
3318 (symtab_h): Remove $(gdb_obstack_h).
3320 2002-07-30 Jim Blandy <jimb@redhat.com>
3322 Patch from David Carlton <carlton@math.stanford.edu>:
3323 * gdbinit.in: Move the `dir' commands that add GDB's own source
3324 directory to the search path to the end, so that the `gdb' source
3325 directory will be searched first.
3327 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3329 * gdb_obstack.h: New file.
3330 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3331 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3332 * objfiles.h: Include "gdb_obstack.h".
3333 * Makefile.in (gdb_obstack_h): Define.
3334 (symtab_h): Add $(gdb_obstack_h).
3335 (objfiles_h): Add $(gdb_obstack_h).
3337 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3338 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3339 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3340 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3341 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3342 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3343 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3344 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3346 * Makefile.in (bcache.o): Update dependencies.
3347 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3348 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3349 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3350 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3351 (stabsread.o, symfile.o, symmisc.o): Ditto.
3352 (symtab.o, typeprint.o, macroexp.o): Ditto.
3353 (macrotab.o, mdebugread.o): Ditto.
3354 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3355 (coff_ecoff_h, aout_aout64_h): Define.
3356 (aout_stabs_gnu_h, libaout_h): Define.
3358 2002-07-29 Andrew Cagney <cagney@redhat.com>
3360 * regcache.c (struct regcache_descr): Rename nr_registers to
3361 nr_cooked_registers. Revise comments describing the structure
3363 (init_regcache_descr): Update.
3364 (init_legacy_regcache_descr): Update.
3365 (read_register_gen, write_register_gen): When a cooked register in
3366 the raw register range, directly access the value from the raw
3369 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3371 * z8k-tdep.c: Do not include "obstack.h".
3372 * h8300-tdep.c, h8500-tdep.c: Ditto.
3373 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3374 * valprint.c, v850-tdep.c: Ditto.
3375 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3376 * mn10200-tdep.c: Ditto.
3378 * Makefile.in (z8k-tdep.o): Update dependencies.
3379 (m68hc11-tdep.o, valprint.o): Ditto.
3380 (v850-tdep.o, d10v-tdep.o): Ditto.
3381 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3382 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3383 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3384 (sh_opc_h, gdb_sim_sh_h): Define.
3385 (elf_sh_h, elf_bfd_h): Define.
3386 (opcode_m68hc11_h): Define.
3387 (OPCODES_SRC, OPCODES_DIR): define.
3388 (OPCODES): Use $(OPCODES_DIR).
3389 (gdb_sim_d10v_h): Rename sim_d10v_h.
3390 (gdb_sim_arm_h): Rename sim_arm_h.
3392 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3394 * utils.c (host_pointer_to_address, address_to_host_pointer):
3395 Change internal_error() message to indicate function responsible
3398 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3400 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3401 calls to local_hex_string_custom().
3403 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3405 * irix5-nat.c: Move IRIX shared library support from here...
3406 * solib-irix.c: ...to here. Revised substantially to work with
3407 generic solib framework.
3409 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3410 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3411 * mips-irix-tdep.c: New file.
3413 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3414 (mips-irix-tdep.o, solib-irix.o): New rules.
3415 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3417 * config/mips/irix6.mt (TDEPFILES): Likewise.
3418 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3420 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3422 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3423 disabled (via ``#if 0'') includes.
3425 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3427 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3428 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3429 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3430 Add support for the fpscr register.
3431 * rs6000-nat.c (regmap, fetch_inferior_registers)
3432 (store_inferior_registers, fetch_core_registers): Likewise.
3434 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3436 * rs6000-nat.c (language.h): Include.
3437 (special_regs): Delete this array.
3438 (regmap): New function.
3439 (fetch_register, store_register): Use regmap() to map gdb
3440 register numbers to ptrace register numbers. Also, use
3441 outputs from regmap() to make decisions regarding type of
3442 ptrace() call to make. In particular, don't compare against
3443 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3444 (fetch_inferior_registers, store_inferior_registers): Where
3445 possible, obtain register numbers from tdep struct. Don't
3446 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3447 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3448 (LAST_UISA_SP_REGNUM): Delete.
3450 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3452 * rs6000-nat.c (ppc-tdep.h): Include.
3453 (fetch_registers, store_register, fetch_core_registers): Don't
3454 access registers[] directly. Instead, use supply_register() or
3455 regcache_collect() as appropriate.
3456 (find_toc_address): Format hex address with local_hex_string().
3458 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3460 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3463 2002-07-24 Tom Tromey <tromey@redhat.com>
3465 * jv-exp.y: Marked all strings with _().
3466 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3468 (MethodInvocation, CastExpression, parse_number, yyerror,
3469 java_type_from_name, push_expression_name, yylex): Typo fixes.
3471 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3473 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3474 (tee_file_flush, tee_file_write, tee_file_fputs)
3475 (tee_file_isatty): New.
3476 * ui-file.h (tee_file_new): Add prototype.
3478 2002-07-24 Aidan Skinner <aidan@velvet.net>
3480 * ada-lang.c: Change k&r style function definitions to prototyped
3482 * ada-typeprint.c: Change k&r style function definitions to prototyped
3484 * ada-valprint.c: Change k&r style function definitions to prototyped
3487 2002-07-24 Andrew Cagney <cagney@redhat.com>
3489 * README: Remove reference to remote-bug.
3490 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3492 (m88k-nat.o): Delete rule.
3493 (m88k-tdep.o): Delete rule.
3494 (remote-bug.o): Delete rule.
3495 * MAINTAINERS: Mark as obsolete.
3496 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3497 * m88k-tdep.c: Make file obsolete.
3498 * config/m88k/m88k.mh: Ditto.
3499 * config/m88k/delta88v4.mh: Ditto.
3500 * config/m88k/delta88v4.mt: Ditto.
3501 * config/m88k/delta88.mt: Ditto.
3502 * config/m88k/delta88.mh: Ditto.
3503 * remote-bug.c: Ditto.
3504 * config/m88k/tm-delta88.h: Ditto.
3505 * config/m88k/nm-delta88v4.h: Ditto.
3506 * config/m88k/xm-delta88.h: Ditto.
3507 * config/m88k/xm-dgux.h: Ditto.
3508 * config/m88k/tm-m88k.h: Ditto.
3509 * config/m88k/nm-m88k.h: Ditto.
3510 * config/m88k/tm-delta88v4.h: Ditto.
3511 * m88k-nat.c: Ditto.
3512 * cxux-nat.c: Ditto.
3513 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3514 and m88*-*-* obsolete.
3515 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3518 2002-07-24 Andrew Cagney <cagney@redhat.com>
3520 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3521 constant. Same for local pointer variables.
3522 (extract_signed_integer): Ditto.
3523 * defs.h (extract_unsigned_integer): Update.
3524 (extract_signed_integer): Update.
3526 2002-07-24 Andrew Cagney <cagney@redhat.com>
3528 * regcache.c (regcache_raw_write): Change buf parameter to a
3529 constant void pointer.
3530 (regcache_raw_read): Change buf parameter to a void pointer.
3531 (legacy_write_register_gen): Change myaddr parameter a constant
3533 (supply_register): Change val parameter to a const void pointer.
3534 * regcache.h (regcache_raw_write): Update declaration.
3535 (regcache_raw_read): Update declaration.
3536 (supply_register): Update declaration.
3538 2002-07-24 Tom Tromey <tromey@redhat.com>
3540 * defs.h (gdb_readline_wrapper): Declare.
3541 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3542 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3543 * top.c (gdb_readline_wrapper): New function.
3544 (command_line_input): Use it.
3546 2002-07-24 Andrew Cagney <cagney@redhat.com>
3548 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3549 regcache_read and regcache_write.
3550 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3551 * regcache.c: Update.
3552 * sh-tdep.c (sh64_push_arguments): Update comment.
3553 (sh_pseudo_register_read): Update.
3554 (sh_pseudo_register_write): Update.
3555 (sh4_register_read): Update.
3556 (sh4_register_write): Update.
3557 (sh64_pseudo_register_read): Update.
3558 (sh64_pseudo_register_write): Update.
3559 (sh64_register_read): Update.
3560 (sh64_register_write): Update.
3561 * i386-tdep.c (i386_extract_return_value): Update.
3562 (i386_extract_struct_value_address): Update.
3563 (i386_extract_return_value): Update.
3564 * blockframe.c (generic_read_register_dummy): Update.
3565 (generic_call_dummy_register_unwind): Update
3566 * infrun.c (write_inferior_status_register): Update.
3568 2002-07-23 Jim Blandy <jimb@redhat.com>
3570 * parser-defs.h (expression_context_pc): Make this extern.
3571 (Thanks to Michael Snyder.)
3573 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3575 GDB 5.2.1 released from 5.2 branch.
3576 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3577 * README: Update to mention 5.2.1.
3579 2002-07-23 Mark Salter <msalter@redhat.com>
3581 * remote.c (remote_read_bytes): Fix check for error.
3583 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3585 * aix-thread.c (language.h): Include.
3586 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3587 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3588 Print newlines at end of debug messages.
3589 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3590 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3592 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3594 * aix-thread.c (ppc-tdep.h): Include.
3595 (special_register_p): New function.
3596 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3597 (store_regs_user_thread): Use register number information from
3598 gdbarch_tdep struct instead of hardcoded offsets relative to
3599 FIRST_UISA_SP_REGNUM.
3600 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3601 special_register_p() instead of using FPLAST_REGNUM and
3602 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3603 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3604 will be MQ's register number.
3606 2002-07-22 Michael Snyder <msnyder@redhat.com>
3608 * aix-thread.c (ops): Rename to aix_thread_ops.
3609 (base_ops): Rename to base_target.
3610 (ops_attach): Rename to aix_thread_attach.
3611 (ops_detach): Rename to aix_thread_detach.
3612 (ops_resume): Rename to aix_thread_detach.
3613 (ops_wait): Rename to aix_thread_wait.
3614 (ops_kill): Rename to aix_thread_kill.
3615 (init_ops): Rename to init_aix_thread_ops.
3616 (ops_fetch_register): Rename to aix_thread_fetch_register.
3617 (ops_store_register): Rename to aix_thread_store_register.
3618 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3619 (ops_thread_alive): Rename to aix_thread_thread_alive.
3620 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3621 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3622 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3623 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3624 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3625 (store_regs_lib): Rename to store_regs_user_thread.
3626 (store_regs_kern): Rename to store_regs_kernel_thread.
3628 2002-07-22 Michael Snyder <msnyder@redhat.com>
3630 * aix-thread.c (ops_prepare_to_store): Eliminate.
3631 (init_ops): Don't initialize ops.prepare_to_store.
3632 (store_regs_kern): Pre-fetch register buffers from child,
3633 because some registers may not be in the cache. Copy
3634 regs from register cache only if they are cached.
3635 (store_regs_lib): Copy regs from register cache only
3637 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3638 fill_gprs64): Ditto.
3640 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3642 * aix-thread.c (gdb_assert.h): Include.
3643 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3644 register sizes (from register cache) match size of buffer holding
3646 (fill_sprs32): Change parameter types to match those in the ptrace()
3648 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3649 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3651 2002-07-22 Michael Snyder <msnyder@redhat.com>
3653 * aix-thread.c (supply_sprs64): Cosmetic change.
3654 (supply_sprs32): Cosmetic change.
3655 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3656 (fill_sprs64): Use regcache_collect instead of read_register.
3657 (store_regs_lib): Use regcache_collect instead of
3658 read_register. Use fill_sprs32 instead of fill_sprs64,
3659 if debugging a 32-bit architecture.
3660 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3661 out of the register cache, instead of passing a pointer into
3662 the register cache directly to ptrace. Use regcache_collect
3663 insteaad of read_register.
3664 (ops_prepare_to_store): Use target_read_registers instead
3665 of read_register_bytes.
3667 2002-07-20 Aidan Skinner <aidan@velvet.net>
3669 * MAINTAINERS: Add self under write after approval.
3671 2002-07-20 Aidan Skinner <aidan@velvet.net>
3673 * ada-tasks.c: Change k&r style function definitions to prototyped
3676 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3678 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3679 * x86-64-tdep.c: Include "objfiles.h".
3680 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3681 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3683 2002-07-17 Michal Ludvig <michal@suse.cz>
3685 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3686 (update_context): Initialise cfa variable.
3688 2002-07-17 Michael Snyder <msnyder@redhat.com>
3690 * aix-thread.c: Shorten some long lines.
3691 Bring comments into line with code spec.
3693 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3695 * infrun.c: Re-indent using gdb_indent.sh.
3697 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3699 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3700 Leave the indentation temporarily untouched, to minimize the diffs.
3702 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3704 * stabsread.c: Make os9k sections of the code obsolete,
3706 * stabsread.h: Make os9k sections of the code obsolete.
3708 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3710 * linux-low.c (regsets_store_inferior_registers): Add free()
3711 at the end of a loop to prevent memory leak.
3712 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3713 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3714 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3716 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3718 2002-07-17 Jim Blandy <jimb@redhat.com>
3720 * macrocmd.c (info_macro_command): Remove newline from error
3723 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3725 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3726 (sh_gdbarch_init): Use it for sh-dsp.
3728 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3730 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3731 64-bit DWARF2 format.
3733 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3735 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3736 <sys/proc.h> when not available.
3738 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3740 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3741 * stabsread.c: Make os9k sections of the code obsolete.
3742 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3743 * config/i386/i386os9k.mt: Make file obsolete.
3744 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3745 (COMMON_OBS): Remove os9kread.o
3746 (SFILES): Remove os9kread.c.
3747 (os9kread.o, remote-os9k.o): Make target obsolete.
3748 * remote-os9k.c: Make file obsolete.
3749 * os9kread.c: Make file obsolete.
3752 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3754 * NEWS: Mention that the FR30 has been made obsolete.
3755 * fr30-tdep.c: Make file obsolete.
3756 * config/fr30/tm-fr30.h: Ditto.
3757 * config/fr30/fr30.mt: Ditto.
3758 * configure.tgt: Make fr30-*-elf obsolete.
3759 * MAINTAINERS: Make fr30-elf obsolete.
3761 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3763 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3764 found is not inside a section.
3766 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3768 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3770 (pdc_realloc): Use xrealloc() instead of realloc().
3772 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3774 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3775 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3776 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3779 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3781 * aix-thread.c (ptrace_check): Eliminate goto.
3782 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3785 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3787 * aix-thread.c (gdbcmd.h): Include.
3788 (DEBUG, DBG, DBG2, dbg): Eliminate.
3789 (debug_aix_thread): New static global.
3790 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3791 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3792 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3793 invocations to DBG and DBG2 macros to test against
3794 ``debug_aix_thread'' and call fprintf_unfiltered().
3795 (_initialize_aix_thread): Add new command "set debug aix-thread".
3797 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3799 From Gerhard Tonn <TON@de.ibm.com>:
3800 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3801 instead of supply_register.
3803 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3805 * dwarf2cfi.c: Include "gdb_assert.h".
3806 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3808 (update_context): Do not use __func__. Add missing ``break''.
3809 (update_context): Do not use __func__.
3811 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3813 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3814 and its setting. Set gdbarch instruction printing functions
3815 directly. For non-rs6000 case use new function
3816 gdb_print_insn_powerpc.
3817 (gdb_print_insn_powerpc): New function.
3819 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3821 * NEWS: Mention that the d30v has been marked obsolete.
3822 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3823 * configure.tgt: Mark d30v-*-* as obsolete.
3824 * d30v-tdep.c: Mark file as obsolete.
3825 * config/d30v/d30v.mt: Ditto.
3826 * config/d30v/tm-d30v.h: Ditto.
3828 2002-07-13 Aidan Skinner <aidan@velvet.net>
3830 * ada-tasks.c (add_task_entry): replace calls to
3831 malloc() with xmalloc
3832 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3834 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3835 ada_finish_decode_line_1, all_sals_for_line
3836 ada_breakpoint_rewrite): replace calls to free() with xfree()
3838 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3840 From Nicholas Duffek (with minor changes by Martin Hunt,
3841 Louis Hamilton, and Kevin Buettner):
3842 * aix-thread.c: New file.
3844 2002-07-12 Petr Sorfa <petrs@caldera.com>
3846 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3847 complaint for invalid attribute class or form.
3848 (read_func_scope): DW_AT_frame_base
3849 better handling of DW_AT_block*.
3850 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3851 better handling of DW_AT_block*.
3852 (read_common_block): DW_AT_location
3853 better handling of DW_AT_block*.
3854 (read_partial_die): DW_AT_location better handling
3856 (new_symbol): DW_AT_external better handling of
3857 DW_AT_block*. Proper initialization of variable
3859 (attr_form_is_block): New function that returns true
3860 if the attribute's form is of DW_FORM_block*.
3862 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3864 * valops.c (find_method_list): Remove comment about
3865 removed STATIC_MEMFUNCP argument.
3866 (value_find_oload_method_list): Likewise.
3868 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3870 From Nicholas Duffek:
3871 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3872 target_new_objfile_hook.
3874 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3876 From Nicholas Duffek:
3877 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3880 2002-07-12 Andrew Cagney <cagney@redhat.com>
3882 * MAINTAINERS: Mention --enable-sim-build-warnings.
3883 (m68hc11-elf): Disable sim build warnings.
3884 (m32r-elf): Mark as broken obsolete candidate.
3885 (x86_64-linux-gnu): Mark as buildable with -Werror.
3886 (arm-elf): Change -w to ``,'' which enables warnings but not
3889 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3891 * bcache.h: Update copyright.
3892 (struct bstring, struct bcache): Move definition to "bcache.c".
3893 Replaced by opaque declaration.
3894 (bcache_xfree): Replace free_bcache.
3895 (bcache_xmalloc, bcache_memory_used): Declare.
3897 * bcache.c: Update copyright.
3898 (struct bstring, struct bcache): Moved to here from "bcache.h".
3900 (bcache_xmalloc, bcache_memory_used): New functions.
3901 (bcache_xfree): Replace function free_bcache.
3903 * Makefile.in (objfiles.o): Add $(bcache_h).
3904 (objfiles_h): Remove $(bcache_h).
3905 (symfile.o): Add $(bcache_h).
3907 * symmisc.c: Update copyright.
3908 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3909 (print_objfile_statistics): Use bcache_memory_used.
3911 * symfile.c: Include "bcache.h".
3912 (reread_symbols): Use bcache_xfree.
3913 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3914 (add_psymbol_to_list): Pass psymbol_cache by value.
3915 (add_psymbol_with_dem_name_to_list): Ditto.
3917 * objfiles.h: Update copyright.
3918 (struct bcache): Declare opaque. Do not include "bcache.h".
3919 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3921 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3923 * objfiles.c: Include "bcache.h". Update copyright.
3924 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3926 (free_objfile): Use bcache_xfree.
3928 2002-07-11 Grace Sainsbury <graces@redhat.com>
3930 * monitor.c (monitor_fetch_register): Make name a constant.
3931 (monitor_store_register): Same.
3933 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3935 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3936 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3937 (finish_block) For non-function blocks, hash the symbol table. For
3938 function blocks, mark the symbol table as unhashed.
3939 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3940 (msymbol_hash_iw): Likewise.
3941 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3943 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3944 (lookup_minimal_symbol): Likewise for both.
3945 * symtab.h (struct block): Add `hashtable' flag. Comment the
3947 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3948 (ALL_BLOCK_SYMBOLS): Update.
3949 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3950 (struct symbol): Add `hash_next' pointer.
3951 * symtab.c (lookup_block_symbol): Search using the hash table when
3953 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3954 (search_symbols, find_addr_symbol): Likewise.
3956 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3957 (read_dst_symtab): Likewise.
3958 * jv-lang.c (get_java_class_symtab): Likewise.
3959 * mdebugread.c: Include "gdb_assert.h".
3960 (shrink_block): Assert that the block being modified is not hashed.
3961 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3962 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3964 (dump_symtab): Recognize hashed blocks.
3965 * printcmd.c (print_frame_args): Assert that function blocks do not
3966 have hashed symbol tables.
3967 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3968 (fill_in_ada_prototype, debug_print_block): Likewise.
3969 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3971 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3973 * stack.c (print_frame): Use result of frame_address_in_block()
3974 instead of fi->pc when evaluating symbols.
3975 (backtrace_command_1): Ditto.
3977 2002-07-11 Andrew Cagney <cagney@redhat.com>
3979 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3982 * arm-tdep.c (arm_register_name): Make return type constant.
3984 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3986 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3988 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3989 * s390-tdep.c (s390_fp_regnum): Ditto.
3990 (s390_read_fp): Ditto.
3991 (s390_pop_frame): Ditto.
3992 (_initialize_s390_tdep): Ditto.
3993 * remote.c (get_remote_state): Ditto.
3994 * procfs.c (mappingflags): Ditto.
3995 * memattr.c (_initialize_mem): Ditto.
3996 * mcore-tdep.c (mcore_pop_frame): Ditto.
3997 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3998 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3999 * language.c (set_case_str): Ditto.
4000 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4001 * frv-tdep.c (new_variant): Ditto.
4002 (frv_stopped_data_address): Ditto.
4003 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4004 (context_alloc): Ditto.
4005 (frame_state_alloc): Ditto.
4006 (unwind_tmp_obstack_init): Ditto.
4007 (unwind_tmp_obstack_free): Ditto.
4008 (cfi_read_fp): Ditto.
4009 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4010 (cris_pop_frame): Ditto.
4011 * c-lang.c (scanning_macro_expansion): Ditto.
4012 (finished_macro_expansion): Ditto.
4013 (c_preprocess_and_parse): Ditto.
4014 * gdbarch.sh: Ditto.
4015 * gdbarch.h, gdbarch.c: Regenerate.
4016 * config/mn10200/tm-mn10200.h: Adjust indentation.
4017 * target.c: Adjust indentation.
4018 * symtab.h: Adjust indentation.
4019 * stabsread.h: Adjust indentation.
4020 * remote-es.c: Adjust indentation.
4021 * os9kread.c: Adjust indentation.
4023 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4025 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4026 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4028 2002-07-10 Grace Sainsbury <graces@redhat.com>
4030 * NEWS: Mention m68k, mcore multi-arching.
4031 * MAINTAINERS: Change status of m68k, mcore to reflect
4034 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4036 * valops.c (find_overload_match): Free oload_syms.
4038 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4040 Define HAVE_SYS_PROC_H if sys/proc.h exists
4041 * configure.in: Add check for sys/proc.h
4042 * config.in: Regenerate.
4043 * configure: Regenerate.
4045 2002-07-09 Grace Sainsbury <graces@redhat.com>
4047 * config/m68k/tm-m68k.h: Remove macros wrapped in
4048 #if !GDB_MULTI_ARCH.
4050 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4052 * config.in, configure: Regenerate.
4054 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4056 * dwarf2cfi.c: Include "gcore.h".
4057 (execute_stack_op): Fix implementation of the
4058 DW_OP_deref and DW_OP_deref_size operators by letting do their
4059 lookup in the target.
4061 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4063 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4064 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4067 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4069 Fix PR gdb/595, gdb/602
4070 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4071 Don't call value_cast, just read the vtable pointer; update comments
4074 2002-07-05 Grace Sainsbury <graces@redhat.com>
4076 * config/mcore/tm-mcore.h: Remove file.
4077 * config/mcore/mcore.mt: Remove definition of TM_FILE
4078 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4080 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4082 * i386bsd-tdep.c: Include "gdb_string.h".
4084 2002-07-04 Grace Sainsbury <graces@redhat.com>
4086 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4087 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4089 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4090 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4091 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4092 (RETVAL_REGNUM): Move macros from tm-mcore.h
4093 (mcore_reg_struct_has_addr): New function.
4094 (mcore_gdbarch_init): Added initializations for the macros removed
4097 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4099 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4100 traditonal string branding within the ELF header.
4102 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4104 * symtab.c (remove_params): New function.
4105 (make_symbol_overload_list): Use it instead of cplus_demangle.
4106 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4108 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4110 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4112 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4114 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4115 and tdep->sigtramp_end.
4116 * i386obsd-nat.c: New file.
4117 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4119 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4120 Don't call get_current_frame().
4122 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4124 * i386-nat.c (child_post_startup_inferior): New function
4125 calling i386_cleanup_dregs if
4126 I386_USE_GENERIC_WATCHPOINTS is defined.
4127 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4128 conditional to acknowledge that i386-nat.c has its
4129 own child_post_startup_inferior function.
4131 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4133 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4134 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4135 instead of MAX_REGISTER_RAW_SIZE.
4136 (i386_extract_return_value, i386_extract_struct_value_address):
4137 Convert to use regcache.
4138 (i386_gdbarch_init): Set max_register_raw_size and
4139 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4140 Set extract_return_value and extract_struct_value_address instead
4141 of their deprecated variants.
4143 Convert i386 target to generic dummy frames.
4144 * i386-tdep.c: Include "symfile.h".
4145 (i386_frameless_signal_p): Consider a function to be frameless if
4146 the pc points at the first instruction of the function.
4147 (i386_frame_chain): Handle (generic) call dummies.
4148 (i386_frame_saved_pc): Likewise.
4149 (i386_frame_init_saved_regs): Remove code dealing with call
4150 dummies on the stack.
4151 (i386_push_dummy_frame): Removed.
4152 (i386_call_dummy_words): Removed.
4153 (i386_fix_call_dummy): Removed.
4154 (i386_push_return_address): New function.
4155 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4156 parameter, and don't call get_current_frame.
4157 (i386_pop_frame): New function.
4158 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4159 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4160 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4161 call_dummy_length to 0, set call_dummy_words to NULL, set
4162 sizeof_call_dummy_words to 0, set fix_call_dummy to
4163 generic_fix_call_dummy, set pc_in_call_dummy to
4164 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4165 generic_push_dummy_frame, set push_return_address to
4166 i386_push_return_address and set frame_chain_valid to
4167 generic_file_frame_chain_valid.
4169 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4171 * gdbarch.sh (struct regcache): Add opaque declaration.
4172 (EXTRACT_RETURN_VALUE): New architecture method.
4173 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4174 * gdbarch.h, gdbarch.c: Regenerate.
4175 * arch-utils.c (legacy_extract_return_value): New function.
4176 * arch-utils.h (legacy_extract_return_value): Declare.
4177 * values.c (value_being_returned): Re-enable code handling
4178 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4179 deprecated_grub_regcache_for_registers call to block handling
4180 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4181 (EXTRACT_RETURN_VALUE): Do not define.
4183 2002-07-03 Grace Sainsbury <graces@redhat.com>
4185 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4186 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4187 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4188 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4189 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4190 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4191 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4192 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4193 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4194 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4195 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4196 argument so the function fits the prototype in the architecture
4198 (mcore_pop_frame): Remove argument so the function fits the
4199 prototype. Use get_current_frame instead of the argument.
4200 (mcore_push_arguments): Change type of struct_return so the
4201 function can be used in the architecture vector.
4202 (mcore_store_struct_return): Add.
4203 (mcore_frame_init_saved_regs): Add.
4204 (mcore_gdbarch_init): Add function calls to replace the macros
4205 removed from tm-mcore.h
4207 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4209 * infcmd.c (print_return_value): Remove compatibility code calling
4210 deprecated_grub_regcache_for_registers.
4212 * values.c: Include "regcache.h".
4213 (value_being_returned): Update. Use
4214 deprecated_grub_regcache_for_registers to extract the register
4216 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4217 ``struct regcache''.
4218 * Makefile.in (values.o): Add dependency on $(regcache_h).
4220 * inferior.h (run_stack_dummy): Change type of second parameter to
4221 a ``struct regcache''.
4222 * valops.c (hand_function_call): Change type of retbuf to ``struct
4223 regcache''. Allocate using regcache_xmalloc, clean using
4224 make_cleanup_regcache_xfree.
4225 * infcmd.c (run_stack_dummy): Update. Use
4226 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4228 * regcache.c (do_regcache_xfree): New function.
4229 (make_cleanup_regcache_xfree): New function.
4230 * regcache.h (make_cleanup_regcache_xfree): Declare.
4232 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4234 * event-top.c (command_line_handler): Don't read past
4235 beginning of buffer.
4237 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4239 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4241 (varobj_create): Store frame_id for root.
4242 (varobj_gen_name): Use xasprintf.
4243 (varobj_update): Save and restore frame using get_frame_id() and
4245 (create_child): Use xasprintf.
4246 (new_root_variable): Initialize frame_id.
4247 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4248 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4249 to prevent memory leak.
4251 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4253 * valops.c (hand_function_call): Move declaration of retbuf to
4254 start of function, allocate using malloc, add a cleanup but before
4255 the inf_status cleanup, cleanup the buffer. Rename local variable
4256 old_chain to inf_status_cleanup.
4258 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4260 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4262 * cli/cli-decode.c (cmd_func_p): New function.
4263 (cmd_func): New function.
4265 * command.h: Add cmd_func() and cmd_func_p().
4267 2002-07-03 Grace Sainsbury <graces@redhat.com>
4269 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4270 (REGISTER_SIZE): Remove.
4271 (MAX_REGISTER_RAW_SIZE): Remove.
4272 (REGISTER_VIRTUAL_TYPE): Remove.
4273 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4274 (REGISTER_NAME): Remove.
4275 (USE_GENERIC_DUMMY_FRAMES): Remove.
4276 (CALL_DUMMY): Remove.
4277 (CALL_DUMMY_START_OFFSET): Remove.
4278 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4279 (CALL_DUMMY_LOCATION): Remove.
4280 (FIX_CALL_DUMMY): Remove.
4281 (CALL_DUMMY_ADDRESS): Remove.
4282 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4283 (SAVE_DUMMY_FRAME_TOS): Remove.
4284 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4285 (mcore_register_virtual_type): New function.
4286 (mcore_register_byte): New function.
4287 (mcore_register_size): New function.
4288 (mcore_register_name): New function.
4289 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4290 macros removed from tm-mcore.h.
4291 (mcore_dump_tdep): Add.
4292 (_initialize_mcore_tdep): Add gdbarch_register call.
4294 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4296 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4297 frameless_look_for_prologue, such that we actually call this
4300 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4302 * frame.h (frame_address_in_block): New function.
4304 * blockframe.c (frame_address_in_block): New function extracted
4305 from get_frame_block().
4306 (get_frame_block): Use frame_address_in_block().
4307 (block_innermost_frame): Use frame_address_in_block() to match
4308 the frame pc address against the block boundaries rather than
4309 the frame pc directly. This prevents a failure when a frame pc
4310 is actually a return-address pointing immediately after the end
4313 2002-07-02 Grace Sainsbury <graces@redhat.com>
4315 * MAINTAINERS: Add self under write after approval.
4317 2002-07-02 Grace Sainsbury <graces@redhat.com>
4319 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4320 used in architecture vector. The default is
4321 m68k_local_breakpoint_from_pc.
4322 (m68k_local_breakpoint_from_pc): Add.
4323 (enum): Add register numbers from tm-m68k.h.
4324 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4326 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4327 GDB_MULTI_ARCH_PARTIAL.
4328 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4329 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4331 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4332 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4333 to enum in m68k-tdep.c
4335 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4337 * solib-osf.c (open_map): Compute the list of shared libraries
4338 loaded by the inferior, rather than the list of libraries loaded
4339 by GDB itself. Otherwise, GDB ends up reading the symbols from
4340 the wrong shared libraries...
4342 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4344 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4345 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4347 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4349 (FRAMELESS_SIGNAL): Remove function.
4350 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4351 i386_linux_saved_pc_after_call): Removed.
4352 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4353 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4354 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4356 * i386-tdep.c (i386_frameless_signal_p): New function.
4357 (i386_frame_chain): Deal with frameless signals.
4358 (i386_sigtramp_saved_sp): New function.
4359 (i386_frame_saved_pc): Deal with frameless signals.
4360 (i386_saved_pc_after_call): Make sure the correct value is
4361 returned just after entry into a sigtramp.
4362 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4363 i386fbsd4_sc_sp_offset): New variables.
4364 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4365 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4366 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4367 similiar to what we already did for sc_pc_offset.
4368 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4371 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4373 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4375 * config/i386/tm-x86-64linux.h: New.
4376 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4378 * config/i386/nm-x86-64.h: Rename to ...
4379 * config/i386/nm-x86-64linux.h: ... this one.
4380 * config/i386/x86-64linux.mh: Reflect the above change.
4382 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4384 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4385 with sigcontext_addr. Add sc_sp_offset.
4386 (i386bsd_sigtramp_saved_pc): Remove prototype.
4387 (i386bsd_sicontext_addr): Add prototype.
4388 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4389 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4390 (i386_svr4_sigtramp_saved_pc): Removed.
4391 (i386_svr4_sigcontext_addr): New function.
4392 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4393 Initialize tdep->sigcontext_addr instead. Initialize
4394 tdep->sc_pc_offset and tdep->sc_sp_offset.
4395 (i386_gdbarch_init): Likewise.
4396 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4398 (i386bsd_sigtramp_saved_pc): Remove function.
4399 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4400 Initialize tdep->sigcontext_addr instead. Initialize
4402 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4403 of tdep->sigtramp_saved_pc.
4404 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4405 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4408 * i386-tdep.c (i386_frameless_function_invocation,
4409 i386_frame_num_args, i386_frame_init_saved_regs,
4410 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4411 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4412 i386_extract_return_value, i386_store_return_value,
4413 i386_extract_struct_value_address, i386_register_virtual_type,
4414 i386_register_convertible, i386_register_convert_to_virtual,
4415 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4416 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4419 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4421 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4423 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4424 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4425 this macro. Include "value.h".
4427 2002-06-30 Aidan Skinner <aidan@velvet.net>
4429 * ada-exp.tab.c: remove as it's a generated file
4430 * ada-lex.c: remove as it's a generated file
4432 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4434 * config/i386/tm-i386.h (struct frame_info, struct
4435 frame_saved_regs, struct value, struct type): Remove forward
4438 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4439 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4440 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4441 (FILL_FPXREGSET): Define.
4443 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4445 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4446 i[3456]86-*-netbsd* case.
4447 * config/i386/tm-obsd.h: Removed.
4448 * config/i386/obsd.mt: Removed.
4449 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4451 (MH_CFLAGS): Add -DYYDEBUG=0.
4453 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4454 i386nbsd_sc_pc_offset on OpenBSD too.
4456 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4457 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4458 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4460 * i386bsd-tdep.c: Include "arch-utils.h".
4461 (i386bsd_aout_in_solib_call_trampoline): New function.
4462 (i386bsd_init_abi): Set in_solib_call_trampoline to
4463 i386bsd_aout_in_solib_call_trampoline.
4464 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4465 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4467 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4469 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4470 (struct obstack, struct bcache): Add opaque declarations.
4471 * Makefile.in (macrotab_h): Update
4473 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4475 * blockframe.c (generic_find_dummy_frame): Change return type to
4476 ``struct regcache''.
4477 (struct dummy_frame): Replace field ``registers'' with regcache, a
4478 struct regcache object.
4479 (generic_find_dummy_frame): Update.
4480 (generic_push_dummy_frame): Update. Use regcache_xfree,
4481 regcache_xmalloc and regcache_cpy.
4482 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4484 (deprecated_generic_find_dummy_frame): Update.
4485 (generic_read_register_dummy): Update. Use
4486 regcache_read_as_address.
4487 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4488 (generic_get_saved_register): Update. Use regcache_read.
4490 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4492 * Makefile.in (objfiles_h): Add $(bcache_h).
4493 * objfiles.h: Include "bcache.h".
4495 * Makefile.in (symtab_h): Remove $(bcache_h).
4496 * symtab.h: Do not include "bcache.h".
4498 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4500 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4501 generic_func_frame_chain_valid.
4503 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4505 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4506 * config/i386/tm-fbsd.h: Likewise.
4508 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4510 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4511 generic_unwind_get_saved_register.
4513 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4515 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4516 * regcache.c (supply_register): Add missing argument to
4517 register_buffer call.
4519 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4521 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4522 Solaris /bin/grep does not not like it. From Peter Schauer.
4524 2002-06-26 Tom Tromey <tromey@redhat.com>
4526 * command.h (add_setshow_cmd): Declare.
4527 (add_setshow_cmd_full): Declare.
4528 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4529 returns void. Use add_setshow_cmd_full.
4530 (add_setshow_cmd_full): New function.
4531 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4532 (add_setshow_boolean_cmd): Likewise.
4534 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4536 * config/vax/tm-vax.h: Protect from multiple inclusion.
4537 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4538 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4539 * config/vax/tm-vaxbsd.h: ...here. New file.
4540 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4542 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4544 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4545 (BELIEVE_PCC_PROMOTION): Remove.
4546 (AP_REGNUM): Move to...
4547 * config/vax/nm-vax.h: ...here.
4548 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4549 (vax_breakpoint_from_pc): New function.
4550 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4551 and gdbarch_believe_pcc_promotion.
4553 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4555 * Makefile.in (vax_tdep_h): Define.
4556 (vax-tdep.o): Use $(vax_tdep_h).
4557 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4558 (vax_dump_tdep): New function.
4559 (_initialize_vax_tdep): Register vax_dump_tdep.
4560 * vax-tdep.h: Include osabi.h.
4561 (struct gdbarch_tdep): New.
4563 2002-06-26 Andrew Cagney <cagney@redhat.com>
4565 * frame.h (deprecated_generic_find_dummy_frame): Rename
4566 generic_find_dummy_frame.
4567 * blockframe.c (generic_find_dummy_frame): Make static.
4568 (deprecated_generic_find_dummy_frame): New function.
4569 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4570 generic_find_dummy_frame with deprecated_find_dummy_frame.
4571 (sh64_nofp_frame_init_saved_regs): Ditto.
4572 (sh_fp_frame_init_saved_regs): Ditto.
4573 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4574 (s390_frame_chain): Ditto.
4575 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4577 2002-06-26 Grace Sainsbury <graces@redhat.com>
4579 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4580 gdbarch vector are at the top.
4582 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4583 (FRAME_ARGS_ADDRESS): Remove.
4584 (FRAME_LOCALS_ADDRESS): Remove.
4585 (FRAME_NUM_ARGS): Remove.
4586 (FRAME_ARGS_SKIP): Remove.
4587 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4588 (m68k_gdbarch_init): Add gdbarch initializations for macros
4589 undefined in tm-m68k.h
4591 2002-06-26 Grace Sainsbury <graces@redhat.com>
4593 * monitor.h: Add the function regname to monitor_ops
4594 structure. This way NUM_REGS does not have to be a constant.
4595 * monitor.c (monitor_fetch_register): Added support for regname
4596 function. The function is called if the array regnames is NULL.
4597 (monitor_store_register): Same.
4598 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4600 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4601 cpu32bug_cmds.regname to point to new function.
4602 * abug-rom.c (abug_regname): Same as above.
4603 (init_abug_cmds): Same.
4604 * dbug-rom.c (dbug_regname): Same as above.
4605 (init_dbug_cmds): Same.
4606 * remote-est.c (est_regname): Same.
4607 (init_est_cmds): Same.
4608 * rom68k-rom.c (rom68k_regname): Same.
4609 (init_rom68k_cmds): Same.
4611 2002-06-25 Tom Tromey <tromey@redhat.com>
4613 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4615 2002-06-25 Andrew Cagney <cagney@redhat.com>
4617 * infrun.c (stop_registers): Change variable's type to ``struct
4619 (xmalloc_inferior_status): Delete function.
4620 (free_inferior_status): Delete function.
4621 (normal_stop): Use regcache_cpy.
4622 (struct inferior_status): Change type of fields ``stop_registers''
4623 and ``registers'' to ``struct regcache''.
4624 (write_inferior_status_register): Use regcache_write.
4625 (save_inferior_status): Instead of calling
4626 xmalloc_inferior_status, allocate the inf_status buffer directly.
4627 Use regcache_dup_no_passthrough and regcache_dup to save the
4629 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4630 Replace the stop_registers regcache instead of overriding it. Use
4631 regcache_xfree. Instead of calling free_inferior_status, xfree
4632 the buffer directly.
4633 (discard_inferior_status): Use regcache_xfree. Instead of calling
4634 free_inferior_status, xfree the buffer directly.
4635 (build_infrun): Use regcache_xmalloc.
4636 (_initialize_infrun): Delete redundant call to build_infrun.
4638 * Makefile.in (infcmd.o): Add $(regcache_h).
4640 * infcmd.c: Include "regcache.h".
4641 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4642 obtain the address of `stop_registers' register buffer.
4643 (print_return_value): Ditto.
4645 * inferior.h (struct regcache): Add opaque declaration.
4646 (stop_registers): Change variable's declared type to ``struct
4649 2002-06-24 Tom Tromey <tromey@redhat.com>
4651 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4652 * target.c (initialize_targets): Fixed typo in
4653 trust-readonly-sections `show' documentation.
4655 * main.c: Marked all strings with _().
4657 2002-06-24 Don Howard <dhoward@redhat.com>
4659 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4660 that means max CORE_ADDR+1.
4661 (lookup_mem_region): Ditto.
4662 (mem_info_command): Ditto.
4664 2002-06-24 Grace Sainsbury <graces@redhat.com>
4666 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4667 (REGISTER_BYTES_OK): Remove.
4668 (REGISTER_BYTES): Remove.
4669 (STORE_STRUCT_RETURN): Remove.
4670 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4671 (STORE_RETURN_VALUE): Remove.
4672 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4673 (FRAME_CHAIN): Remove.
4674 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4675 (FRAME_SAVED_PC): Remove.
4676 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4677 (m68k_store_struct_return): Add.
4678 (m68k_deprecated_extract_return_value): Add.
4679 (m68k_deprecated_extract_struct_value_address): Add.
4680 (m68k_store_return_value): Add.
4681 (m68k_frame_chain): Add.
4682 (m68k_frameless_function_invocation): Add.
4683 (m68k_frame_saved_pc): Add.
4684 (m68k_gdbarch_init): added set_gdbarch calls for new
4685 functions and deleted macros.
4687 2002-06-23 Tom Tromey <tromey@redhat.com>
4689 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4690 (ALLDEPFILES): Likewise.
4691 (udiheaders): Removed.
4692 (udip2soc.o): Likewise.
4693 (udi2go32.o): Likewise.
4695 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4697 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4699 * infrun.c (_initialize_infrun): Delete unnecessary call to
4702 * regcache.h: Update comments describing the regcache_cpy family
4704 (regcache_save, regcache_restore): Delete declaration.
4705 (regcache_save_no_passthrough): Delete declaration.
4706 (regcache_restore_no_passthrough): Delete declaration.
4707 * regcache.c (regcache_save): Delete function.
4708 (regcache_save_no_passthrough): Delete function.
4709 (regcache_restore): Delete function.
4710 (regcache_restore_no_passthrough): Delete function.
4712 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4714 * config/m68k/tm-m68k.h: Fix typo.
4715 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4716 (m68k_frame_init_saved_regs): Declare.
4718 2002-06-21 Jim Blandy <jimb@redhat.com>
4720 Remove some vestiges of Harris 88k support.
4721 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4722 register numbering quirk.
4723 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4724 odd symbols occurring in Harris 88k ELF targets.
4726 2002-06-21 Tom Tromey <tromey@redhat.com>
4728 * gdb_locale.h: New file.
4729 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4730 (defs_h): Added gdb_locale.h.
4731 * configure, config.in: Rebuilt.
4732 * configure.in (PACKAGE): Define.
4733 * defs.h: Include gdb_locale.h.
4734 * main.c (captured_main): Call setlocale, bindtextdomain,
4737 2002-06-21 Dave Brolley <brolley@redhat.com>
4739 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4740 * config/frv/frv.mt: New file.
4741 * config/frv/tm-frv.h: New file.
4742 * configure.tgt: Support frv-*-*.
4743 * Makefile.in (frv-tdep.o): New target.
4744 * frv-tdep.c: New file.
4745 * NEWS: Mention frv.
4747 2002-06-21 Dave Brolley <brolley@redhat.com>
4749 * MAINTAINERS: Add self to "Write After Approval" list.
4751 2002-06-21 Grace Sainsbury <graces@redhat.com>
4753 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4754 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4755 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4756 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4757 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4759 * m68k-tdep.c: Include arch-utils.h
4760 (m68k_register_raw_size): Add.
4761 (m68k_register_virtual_size): Add.
4762 (m68k_register_virtual_type): Add.
4763 (m68k_register_name): Add.
4764 (m68k_stack_align): Add.
4765 (m68k_register_byte): Add.
4766 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4769 2002-06-21 Grace Sainsbury <graces@redhat.com>
4771 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4772 m68k_find_saved_regs.
4773 (m68k_pop_frame): Removed saved_regs structure, and replaced
4774 references to it with frame->saved_regs.
4775 (m68k_gdbarch_init): Added function calls to initialize the
4777 (m68k_fix_call_dummy): Add.
4778 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4779 (CALL_DUMMY): Remove.
4780 (CALL_DUMMY_LENGTH): Remove.
4781 (CALL_DUMMY_START_OFFSET): Remove.
4782 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4783 (FIX_CALL_DUMMY): Remove.
4784 (PUSH_DUMMY_FRAME): Remove.
4785 (POP_FRAME): Remove.
4787 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4789 * parse.c (parse_fprintf): New function used to avoid calls to
4790 fprintf in bison parser generated debug code.
4791 * parser-defs.h: Declaration of new parse_fprintf function.
4792 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4793 Set YYDEBUG to 1 by default.
4794 Set YYFPRINTF as parse_fprintf.
4796 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4798 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4800 (pointer_encoding, enum ptr_encoding): New.
4801 (execute_cfa_program): Take care about pointer encoding.
4802 (dwarf2_build_frame_info): Only call parse_frame_info for
4803 .debug_frame and .eh_frame.
4804 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4805 fixed augmentation handling, added relative addressing,
4806 ignore duplicate FDEs. Added comments.
4807 * dwarf2cfi.c: Reindented.
4809 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4811 * event-top.c (command_handler): Don't use space_at_cmd_start
4812 unless there is sbrk() on the host. Assign time and space data
4813 to union fields of the appropriate length.
4815 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4817 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4818 x86_64_register_name. Return type changed to 'const char *'.
4819 (x86_64_register_name2nr): Rename to x86_64_register_number.
4820 (x86_64_gdbarch_init): Update to reflect the change.
4821 * x86-64-tdep.h: Ditto.
4822 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4823 (supply_fpregset): Ditto.
4825 2002-06-19 Andrew Cagney <cagney@redhat.com>
4827 * regcache.h: Update copyright.
4828 (struct regcache, struct gdbarch): Add opaque declarations.
4829 (current_regcache): Declare global variable.
4830 (regcache_read, regcache_write): Add gdbarch parameter.
4831 (regcache_save, regcache_save_no_passthrough)
4832 (regcache_restore, regcache_restore_no_passthrough)
4833 (regcache_dup, regcache_dup_no_passthrough)
4834 (regcache_cpy, regcache_cpy_no_passthrough)
4835 (deprecated_grub_regcache_for_registers)
4836 (deprecated_grub_regcache_for_register_valid)
4837 (regcache_valid_p): Add function declarations.
4839 * regcache.c: Update copyright.
4840 (regcache_descr_handle): New global variable.
4841 (struct regcache_descr): Define.
4842 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4843 (regcache_descr, xfree_regcache_descr): New functions.
4844 (struct regcache): Define.
4845 (regcache_xmalloc, regcache_xfree): New functions.
4846 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4847 (regcache_dup, regcache_dup_no_passthrough): New functions.
4848 (regcache_valid_p, regcache_read_as_address): New functions.
4849 (deprecated_grub_regcache_for_registers): New function.
4850 (deprecated_grub_regcache_for_register_valid): New function.
4851 (current_regcache): New global variable.
4852 (register_buffer): Add regcache parameter. Update calls.
4853 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4854 (read_register_gen, write_register_gen): Update register_buffer
4855 call. Test for legacy_p instead of gdbarch_register_read_p or
4856 gdbarch_register_write_p.
4857 (regcache_collect): Update register_buffer call.
4858 (build_regcache): Rewrite. Use deprecated grub functions.
4859 (regcache_save, regcache_save_no_passthrough): New functions.
4860 (regcache_restore, regcache_restore_no_passthrough): New
4862 (_initialize_regcache): Create the regcache_data_handle. Swap
4863 current_regcache global variable.
4865 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4866 parameter to regcache_read and regcache_write calls.
4867 (sh4_register_read): Ditto.
4868 (sh64_pseudo_register_read): Ditto.
4869 (sh64_register_read): Ditto.
4870 (sh_pseudo_register_write): Ditto.
4871 (sh4_register_write): Ditto.
4872 (sh64_pseudo_register_write): Ditto.
4873 (sh64_register_write): Ditto.
4875 * defs.h (XCALLOC): Define.
4877 2002-06-19 Grace Sainsbury <graces@redhat.com>
4879 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4880 * m68k-tdep.c (m68k_gdbarch_init): Added.
4881 (m68k_dump_tdep): Added.
4883 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4885 * ada-lang.c (fill_in_ada_prototype): Update comment.
4887 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4889 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4891 (mips_abi_string, mips_abi_strings): New.
4892 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4893 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4894 tdep->mips_abi_string. Honor mips_abi_string. Default to
4895 O32 if no ABI is found.
4896 (mips_dump_tdep): Use mips_abi_strings.
4897 (mips_abi_update): New function.
4898 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4899 ``set mips abi'' and ``show mips abi''. Check the size of
4902 2002-06-19 Andrew Cagney <cagney@redhat.com>
4904 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4907 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4909 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4910 current frame using only the first stack size adjustment. All
4911 subsequent size adjustments are not considered to be part of
4912 the "static" part of the current frame.
4913 Compute the address of the saved registers relative to the
4914 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4915 in use in this frame.
4917 2002-06-18 Don Howard <dhoward@redhat.com>
4919 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4920 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4921 suggesting this solution.
4923 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4925 * config/romp/xm-rtbsd.h: Delete file.
4926 * config/romp/rtbsd.mh: Delete file.
4928 2002-06-18 Keith Seitz <keiths@redhat.com>
4930 * breakpoint.c (condition_command): Post breakpoint_modify
4931 when a condition is added to an existing breakpoint.
4932 (commands_command): Likewise for commands.
4933 (set_ignore_count): Likewise for ignore counts.
4934 If no tty, do not simply return, still need to send event
4936 (ignore_command): Only print a newline if the command came
4938 Don't call breakpoints_changed, since this is now properly
4939 handled by set_ignore_count.
4941 2002-06-18 Andrew Cagney <cagney@redhat.com>
4943 * MAINTAINERS: Note that cris-elf target can be compiled with
4945 * cris-tdep.c (cris_register_name): Make return type constant.
4946 (cris_breakpoint_from_pc): Ditto.
4948 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4950 * frame.h (struct frame_info): Change type of context to
4953 2002-06-17 Andrew Cagney <cagney@redhat.com>
4955 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4957 * gdbarch.h, gdbarch.c: Regenerate.
4958 * config/mips/tm-mips.h (mips_register_name): Update.
4959 * i386-tdep.h (i386_register_name): Update.
4960 * mips-tdep.c (mips_register_name): Update
4961 * alpha-tdep.c (alpha_register_name): Update.
4962 * arch-utils.c (legacy_register_name): Update.
4963 * arch-utils.h (legacy_register_name): Update.
4964 * avr-tdep.c (avr_register_name): Update.
4965 * ia64-tdep.c (ia64_register_name): Update.
4966 * i386-tdep.c (i386_register_name): Update.
4967 * sparc-tdep.c (sparc32_register_name): Update.
4968 (sparc64_register_name): Update.
4969 (sparclite_register_name): Update.
4970 (sparclet_register_name): Update.
4971 * sh-tdep.c (sh_generic_register_name): Update.
4972 (sh_sh_register_name): Update.
4973 (sh_sh3_register_name): Update.
4974 (sh_sh3e_register_name): Update.
4975 (sh_sh_dsp_register_name): Update.
4976 (sh_sh3_dsp_register_name): Update.
4977 (sh_sh4_register_name): Update.
4978 (sh_sh64_register_name): Update.
4979 * s390-tdep.c (s390_register_name): Update.
4980 * rs6000-tdep.c (rs6000_register_name): Update.
4981 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4982 (ns32k_register_name_32382): Update.
4983 * d10v-tdep.c (d10v_ts2_register_name): Update.
4984 (d10v_ts3_register_name): Update.
4985 * xstormy16-tdep.c (xstormy16_register_name): Update.
4986 * vax-tdep.c (vax_register_name): Update.
4987 * v850-tdep.c (v850_register_name): Update.
4988 * m68hc11-tdep.c (m68hc11_register_name): Update.
4989 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4990 (am33_register_name): Update.
4992 2002-06-17 Grace Sainsbury <graces@redhat.com>
4994 * m68k-tdep.c: Reindented.
4996 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4998 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4999 list of predefined types.
5001 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5003 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5004 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5005 REGISTER_CONVERT_TO_RAW): Remove defines.
5006 (i386_register_virtual_type, i386_register_convertible,
5007 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5009 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5010 macros mentioned above.
5012 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5013 (i386lynx_saved_pc_after_call): Remove prototype.
5014 * i386ly-tdep.c: Include "i386-tdep.h".
5015 (i386lynx_saved_pc_after_call): Make static. Use
5016 read_memory_nobpt instead of read_memory. Use
5017 read_memory_unsigned_integer instead of read_memory_integer.
5018 (i386lynx_init_abi): New function.
5019 (i386lynx_coff_osabi_sniffer): New function.
5020 (_initialize_i386bsd_tdep): New function.
5022 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5023 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5024 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5025 (i386_fix_call_dummy): Remove prototype.
5026 * i386-tdep.c (i386_call_dummy_words): New variable.
5027 (i386_gdbarch_init): Adjust for removal of the
5028 macros mentioned above.
5030 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5032 * command.h (add_setshow_auto_boolean_cmd): Replace
5033 add_set_auto_boolean_cmd.
5034 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5035 add_set_auto_boolean_cmd.
5036 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5037 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5038 mask-address'' command.
5039 (show_mask_address): Add cmd parameter.
5040 * remote.c (add_packet_config_cmd): Update. Change type of
5041 set_func and show_func to cmd_sfunc_ftype.
5042 (_initialize_remote): Update `set remote Z-packet'
5043 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5044 (show_remote_protocol_e_packet_cmd): Ditto.
5045 (show_remote_protocol_E_packet_cmd): Ditto.
5046 (show_remote_protocol_P_packet_cmd): Ditto.
5047 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5048 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5049 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5050 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5051 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5052 (show_remote_protocol_Z_packet_cmd): Ditto.
5053 (show_remote_protocol_binary_download_cmd): Ditto.
5054 (show_remote_cmd): Pass NULL to all of above.
5056 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5058 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5059 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5060 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5061 POP_FRAME): Remove defines.
5062 (i386_push_arguments, i386_store_struct_return,
5063 i386_extract_return_value, i386_store_return_value,
5064 i386_extract_struct_value_address, i386_push_dummy_frame,
5065 i386_pop_frame): Renove prototypes.
5066 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5067 macros mentioned above.
5069 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5071 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5072 add_set_boolean_cmd.
5073 (add_setshow_cmd): New function.
5074 * command.h (add_setshow_boolean_cmd): Replace
5075 add_set_boolean_cmd.
5076 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5077 and ``set rdiromatzero''.
5078 * maint.c (_initialize_maint_cmds): Update commented out code.
5079 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5080 * target.c (initialize_targets): Update `set
5081 trust-readonly-sections'.
5082 * remote.c (_initialize_remote): Update `set remotebreak'.
5084 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5086 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5087 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5088 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5089 fit into multi-arch framework.
5090 (i386_breakpoint_from_pc): New function.
5091 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5094 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5095 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5096 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5097 (i386_frameless_function_invocation, i386_frame_num_args,
5098 i386_frame_init_saved_regs): Remove prototypes.
5099 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5100 macros mentioned above.
5102 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5104 * cli/cli-decode.c (set_cmd_cfunc): Update.
5105 (set_cmd_sfunc): Update.
5106 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5107 (set_cmd_sfunc, set_cmd_cfunc): Update.
5108 * cli/cli-decode.h: Update.
5110 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5112 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5113 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5115 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5117 * defs.h (auto_boolean): Declare enum.
5118 * command.h (cmd_auto_boolean): Delete enum.
5119 * mips-tdep.c (mask_address_var): Update.
5120 (mips_mask_address_p): Update.
5121 (show_mask_address): Update.
5122 * remote.c (struct packet_config): Update.
5123 (update_packet_config): Update.
5124 (show_packet_config_cmd): Update.
5125 (packet_ok): Update.
5126 (add_packet_config_cmd): Update.
5127 (_initialize_remote):
5128 * command.h: Update.
5129 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5130 (do_setshow_command): Update.
5131 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5132 * cli/cli-decode.h: Update.
5134 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5136 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5137 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5138 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5139 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5140 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5141 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5143 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5144 list of DJGPP COFF targets.
5146 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5147 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5148 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5149 (FP0_REGNUM): Remove define.
5150 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5151 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5152 (i386_register_virtual_size): Remove protoype.
5153 * i386-tdep.c (i386_register_virtual_size): Removed.
5154 (i386_extract_return_value, i386_store_return_value): Use
5155 FP0_REGNUM instead of NUM_FREGS to determine whether the
5156 floating-point registers are available.
5157 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5158 Adjust for removal of macros mentioned above.
5160 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5162 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5164 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5166 (supply_gregset, fill_gregset): Remove use of register keyword and
5167 remove declaration for regmap. Use I386_NUM_GREGS instead of
5168 NUM_REGS and NUM_FREGS.
5169 (FPREGSET_FSAVE_OFFSET): Remove.
5170 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5171 NUM_FREGS to determine whether the floating-point registers are
5174 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5175 gnu_store_registers): Replace usage of NUM_GREGS with
5178 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5179 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5180 usage of NUM_GREGS with I386_NUM_GREGS.
5182 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5184 * i386bsd-nat.c: Include "i386-tdep.h".
5185 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5188 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5189 and associated comment. They no longer make any sense, since we
5190 don't use this file anymore on Linux.
5192 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5193 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5194 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5195 elements in these arrays.
5196 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5199 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5201 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5202 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5204 2002-06-14 Andrew Cagney <cagney@redhat.com>
5206 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5207 EXTRACT_RETURN_VALUE.
5208 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5209 EXTRACT_STRUCT_VALUE_ADDRESS.
5210 * gdbarch.h, gdbarch.c: Regenerate.
5212 * values.c (value_being_returned): Handle
5213 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5214 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5216 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5217 * arm-tdep.c (arm_gdbarch_init): Update.
5218 * avr-tdep.c (avr_gdbarch_init): Update.
5219 * cris-tdep.c (cris_gdbarch_init): Update.
5220 * d10v-tdep.c (d10v_gdbarch_init): Update.
5221 * ia64-tdep.c (ia64_gdbarch_init): Update.
5222 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5223 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5224 * s390-tdep.c (s390_gdbarch_init): Update.
5225 * sh-tdep.c (sh_gdbarch_init): Update.
5226 * s390-tdep.c (s390_gdbarch_init): Update.
5227 * sparc-tdep.c (sparc_gdbarch_init): Update.
5228 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5229 * v850-tdep.c (v850_gdbarch_init): Update.
5230 * vax-tdep.c (vax_gdbarch_init): Update.
5231 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5234 * config/arc/tm-arc.h: Update.
5235 * config/d30v/tm-d30v.h: Update.
5236 * config/fr30/tm-fr30.h: Update.
5237 * config/h8300/tm-h8300.h: Update.
5238 * config/h8500/tm-h8500.h: Update.
5239 * config/i386/tm-i386.h: Update.
5240 * config/i386/tm-ptx.h: Update.
5241 * config/i386/tm-symmetry.h: Update.
5242 * config/i960/tm-i960.h: Update.
5243 * config/m32r/tm-m32r.h: Update.
5244 * config/m68k/tm-delta68.h: Update.
5245 * config/m68k/tm-linux.h: Update.
5246 * config/m68k/tm-m68k.h: Update.
5247 * config/m88k/tm-m88k.h: Update.
5248 * config/mcore/tm-mcore.h: Update.
5249 * config/mips/tm-mips.h: Update.
5250 * config/mn10200/tm-mn10200.h: Update.
5251 * config/pa/tm-hppa.h: Update.
5252 * config/pa/tm-hppa64.h: Update.
5253 * config/sparc/tm-sp64.h: Update.
5254 * config/sparc/tm-sparc.h: Update.
5255 * config/sparc/tm-sparclet.h: Update.
5256 * config/z8k/tm-z8k.h: Update.
5258 2002-06-14 Andrew Cagney <cagney@redhat.com>
5260 * Makefile.in (i386_linux_tdep_h): Define.
5261 (i386_tdep_h, i387_tdep_h): Define.
5262 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5263 $(i386_tdep_h) and $(i387_tdep_h).
5264 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5266 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5268 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5269 Already covered by the default.
5271 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5272 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5273 (i386_gdbarch_init): Initialize long_double_format and long_double
5276 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5277 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5279 * config/i386/i386sol2.mh: ... here.
5280 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5281 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5282 (SIGCONTEXT_PC_OFFSET): Remove define.
5283 (IN_SIGTRAMP): Remove define.
5284 * i386-sol2-tdep.c: New file.
5286 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5287 * config/i386/tm-i386nw.h: Removed.
5289 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5290 USE_STRUCT_CONVENTION): Remove defines.
5291 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5292 (get_longjmp_target): Remove prototype.
5293 (IN_SIGTRAMP): Remove define.
5294 (i386bsd_in_sigtramp): Remove prototype.
5295 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5296 function. Update comment accordingly
5297 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5298 (FRAME_SAVED_PC): Remove define.
5299 (i386bsd_frame_saved_pc): Remove prototype.
5300 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5301 GET_LONGJMP_TARGET): Remove defines.
5302 (get_longjmp_target): Remove prototype.
5303 (IN_SIGTRAMP): Remove define.
5304 (i386bsd_in_sigtramp): Remove prototype.
5305 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5306 function. Update comment accordingly
5307 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5308 (FRAME_SAVED_PC): Remove define.
5309 (i386bsd_frame_saved_pc): Remove prototype.
5310 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5312 (USE_STRUCT_CONVENTION): Remove prototype.
5313 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5315 (_initialize_i386bsd_nat): Revise logic to determine some
5316 constants at compile time when compiling a native GDB. Warn if
5317 things don't match up with what we expect.
5318 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5320 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5321 to use date stored in `struct gdbarch_tdep'.
5322 (i386bsd_sigcontext_offset): Remove varaible.
5323 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5324 stored in `struct gdbarch_tdep'.
5325 (i386bsd_frame_saved_pc): Make static.
5326 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5327 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5328 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5329 i386fbsd4_sc_pc_offset): New variables.
5330 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5331 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5333 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5335 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5336 Modify the value of i386fbsd_sigtramp_start and
5337 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5338 i386fbsd_sigtramp_end.
5339 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5342 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5343 define to i386-linux-tdep.h.
5344 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5345 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5347 (i386_linux_register_name, i386_linux_register_byte,
5348 i386_linux_register_raw_size): Remove prototypes.
5349 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5350 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5351 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5352 TARGET_WRITE_PC): Remove defines.
5353 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5354 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5355 i386_linux_write_pc): Remove prototypes.
5356 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5357 (get_longjmp_target): Remove prototype.
5358 * i386-linux-tdep.h: New file.
5359 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5360 * i386-linux-tdep.c: Include "i386-tdep.h" and
5361 "i386-linux-tdep.h".
5362 (i386_linux_register_name, i386_linux_register_byte,
5363 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5364 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5366 (i386_linux_init_abi): New function.
5367 (_initialize_i386_linux_tdep): New function.
5369 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5370 (i386_saved_pc_after_call): Remove prototype.
5371 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5372 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5373 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5374 (i386_register_name, i386_stab_reg_to_regnum,
5375 i386_dwarf_reg_to_regnum): Remove prototypes.
5376 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5377 SIZEOF_SSE_REGS): Remove defines.
5378 (REGISTER_BYTES): Remove define.
5379 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5380 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5381 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5382 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5383 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5384 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5385 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5386 (get_longjmp_target): Remove prototype.
5387 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5388 (sigtramp_saved_pc): Remove define.
5389 (i386v4_sigtramp_saved_pc): Remove prototype.
5390 * config/i386/tm-go32.h (FRAME_CHAIN,
5391 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5392 (i386go32_frame_saved_pc): Remove prototype.
5393 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5394 (get_longjmp_target): Remove prototype.
5395 * i386-tdep.h: Include "osabi.h".
5396 (enum i386_abi): Removed.
5397 (enum struct_return): New enum.
5398 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5399 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5400 sc_pc_offset members.
5401 (i386_gdbarch_register_os_abi): Remove prototype.
5402 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5403 I386_SSE_NUM_REGS): New defines.
5404 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5405 I386_SSE_SIZEOF_REGS): New defines.
5406 (i386_register_name, i386_register_byte, i386_register_raw_size):
5408 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5409 (i386bsd_sigtramp_saved_pc): New prototype.
5410 * i386-tdep.c: Don't include "elf-bfd.h".
5411 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5412 i386_frame_chain, i386_saved_pc_after_call): Make static.
5413 (i386_frame_saved_pc): Rewrite to call architecture dependent
5414 function to deal with signal handlers. Make static.
5415 (i386go32_frame_saved_pc): Removed.
5416 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5418 (i386_get_longjmp_target): New function.
5419 (default_struct_convention, pcc_struct_convention,
5420 reg_struct_convention, valid_conventions, struct_convention): New
5422 (i386_use_struct_convention): New function.
5423 (i386v4_sigtramp_saved_pc): Renamed to
5424 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5425 (i386_pc_in_sigtramp): New function.
5426 (i386_abi_names): Removed.
5427 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5428 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5430 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5431 i386_gdbarch_register_os_abi): Removed.
5432 (struct i386_abi_handler): Removed.
5433 (i386_abi_handler_list): Removed.
5434 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5436 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5437 i386_nw_init_abi): New functions.
5438 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5439 Use set_gdbarch_xxx() calls instead of relying on macros for a
5441 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5442 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5443 Register the various architecture variants defined in this file.
5445 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5447 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5448 (struct main_type): Remove arg_types member. Update comments for
5450 (TYPE_ARG_TYPES): Remove.
5451 (TYPE_FN_FIELD_ARGS): Update.
5452 (smash_to_method_type): Update prototype.
5454 * c-typeprint.c (cp_type_print_method_args): Take method type
5455 instead of argument list. Use new argument layout. Simplify.
5456 (c_type_print_args): Use new argument layout. Simplify.
5457 (c_type_print_base): Update call to cp_type_print_method_args.
5458 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5459 argument; use die->type instead. Update call to
5460 smash_to_method_type.
5461 (read_structure_scope): Update call to dwarf2_add_member_fn.
5462 * gdbtypes.c (allocate_stub_method): Update comment.
5463 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5464 Use new argument layout.
5465 (check_stub_method): Use new argument layout. Don't count
5466 void as an argument.
5467 (print_arg_types): Update comments. Use new argument layout.
5468 (recursive_dump_type): Don't print arg_types member.
5469 * hpread.c (hpread_read_struct_type): Use new argument layout.
5470 (fixup_class_method_type): Likewise.
5471 (hpread_type_lookup): Likewise.
5472 * stabsread.c (read_type): Update calls to read_args and
5473 smash_to_method_type.
5474 (read_args): Use new argument layout. Simplify.
5475 * valops.c (typecmp): Use new argument layout. Update parameters
5476 and comments. Simplify.
5477 (hand_function_call): Use new argument layout.
5478 (search_struct_method): Update call to typecmp.
5479 (find_overload_match): Use new argument layout.
5481 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5483 * NEWS: Mention multithreaded debug support for gdbserver.
5485 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5487 * MAINTAINERS: Mention NEWS.
5489 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5491 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5492 (struct mips_objfile_private, compare_pdr_entries): New.
5493 (non_heuristic_proc_desc): Read the ".pdr" section if it
5496 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5498 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5499 (arm_debug): New static variable.
5500 (_initialize_arm_tdep): Add ``set debug arm'' command.
5502 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5504 * Makefile.in (sim_arm_h): Define.
5505 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5506 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5507 (arm_register_sim_regno): New function, map an internal REGNUM
5508 onto a simulator register number.
5509 (arm_gdbarch_init): Set register_sim_regno.
5511 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5513 * MAINTAINERS: Add self.
5515 2002-06-11 Jim Blandy <jimb@redhat.com>
5517 * source.c (source_info): Mention whether the symtab has
5518 information about preprocessor macros.
5520 Call the command `info macro', not `show macro'.
5521 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5523 (_initialize_macrocmd): Register `info_macro_command' in
5524 `infolist', not `showlist'.
5526 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5528 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5529 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5530 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5531 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5532 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5534 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5535 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5536 (_initialize_mips_tdep): Remove dead code.
5537 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5538 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5539 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5540 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5541 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5542 MIPS_LAST_FP_ARG_REGNUM): Remove.
5544 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5546 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5547 (unwind_tmp_obstack_free, parse_frame_info)
5548 (update_context, cfi_read_fp, cfi_write_fp)
5549 (cfi_frame_chain, cfi_init_extra_frame_info)
5550 (cfi_virtual_frame_pointer): Use the above function.
5551 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5553 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5555 * v850-tdep.c (v850_type_is_scalar): New function.
5556 (v850_use_struct_convention): Match current gcc implementation
5557 as close as possible.
5558 (v850_push_arguments): Fix stack_offset handling. Don't write
5559 struct_addr into register. This is done by v850_store_struct_return.
5560 (v850_extract_return_value): Care for structs.
5561 (v850_store_return_value): Ditto.
5562 (v850_store_struct_return): Actually write address.
5564 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5566 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5567 without debug information too.
5569 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5571 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5572 Make multi-arch pure.
5573 * gdbarch.h, gdbarch.c: Re-generate.
5574 * arm-tdep.c (arm_print_float_info): Update.
5575 * arch-utils.h (default_print_float_info): Update.
5576 * arch-utils.c (default_print_float_info): Update.
5577 * infcmd.c (float_info): Update call.
5579 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5581 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5582 the front of the initialize list.
5584 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5586 * infrun.c (struct inferior_status): Replace fields
5587 selected_frame_address and selected_level with field
5589 (save_inferior_status): Update. Use get_frame_id.
5590 (struct restore_selected_frame_args): Delete.
5591 (restore_selected_frame): Update. Use frame_find_by_id.
5592 (restore_inferior_status): Update.
5594 * breakpoint.h (struct breakpoint): Change type of
5595 watchpoint_frame to frame_id.
5596 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5597 call to get_current_frame.
5598 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5600 (watchpoint_check): Use frame_find_by_id.
5602 * frame.h (record_selected_frame): Delete declaration.
5603 * stack.c (record_selected_frame): Delete function.
5605 * frame.h (struct frame_id): Define.
5606 (get_frame_id): Declare.
5607 (frame_find_by_id): Declare.
5608 * frame.c (frame_find_by_id): New function.
5609 (get_frame_id): New function.
5611 2002-06-10 Andrey Volkov <avolkov@transas.com>
5613 * ser-e7kpc.c: Fix duplicated define and call of
5614 _initialize_ser_e7000pc
5616 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5618 * signals/signals.c (target_signal_from_host): Fix #ifdef
5620 (do_target_signal_to_host): Likewise.
5622 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5624 * mips-tdep.c (mips_find_abi_section): New function.
5625 (mips_gdbarch_init): Call it.
5627 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5629 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5630 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5631 after Andrew's 2002-06-08 gdbarch change.
5633 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5635 * i386-linux-nat.c (suppy_gregset): Don't supply
5636 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5638 (fill_gregset): Don't fetch it under the same circumstances.
5640 2002-06-09 Andrew Cagney <cagney@redhat.com>
5642 * Makefile.in (callback_h): Define.
5643 (remote_sim_h): Update path to remote-sim.h.
5644 (remote-rdp.o): Add $(callback_h).
5645 (remote-sim.o): Use $(callback_h).
5646 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5647 * remote-rdp.c: Include "gdb/callback.h".
5649 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5651 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5652 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5654 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5656 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5657 * rdi-share/serpardr.c: Ditto.
5658 * rdi-share/unixcomm.c: Ditto.
5659 * rdi-share/serdrv.c: Ditto.
5660 * rdi-share/hostchan.h: Ditto.
5661 * rdi-share/hostchan.c: Ditto.
5662 * rdi-share/host.h: Ditto.
5663 * rdi-share/devsw.c: Ditto.
5665 * objfiles.h: Change type of obj_private to void pointer.
5666 * pa64solib.c: Update copyright. Don't include "assert.h", use
5667 strcmp instead of STREQ, use LONGEST, do not use PTR
5668 * somsolib.c: Ditto.
5670 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5671 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5672 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5674 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5676 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5677 (default_get_saved_register): Delete function.
5678 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5679 generic_unwind_get_saved_register.
5680 * gdbarch.h, gdbarch.c: Re-generate.
5682 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5684 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5685 generic_func_frame_chain_valid.
5686 * gdbarch.h, gdbarch.c: Re-generate.
5687 * blockframe.c (generic_func_frame_chain_valid): Only check
5688 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5689 passing FP to PC_IN_CALL_DUMMY.
5692 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5694 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5695 (register_gdbarch_data): Initialize init_p.
5696 (gdbarch_data): Initialize data pointer using the init function.
5697 (init_gdbarch_data): Delete function.
5698 (gdbarch_update_p): Update.
5699 (initialize_non_multiarch): Update.
5700 (struct gdbarch): Add field initialized_p.
5701 * gdbarch.h, gdbarch.c: Re-generate.
5703 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5705 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5706 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5707 better do the things actually here.
5708 * x86-64-tdep.c (x86_64_register_name2nr): New.
5709 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5710 (x86_64_gdbarch_init): Respect the above change.
5711 * x86-64-tdep.h (x86_64_register_name2nr)
5712 (x86_64_register_nr2name): Add prototypes.
5713 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5715 2002-06-06 Michael Snyder <msnyder@redhat.com>
5717 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5718 Delete extra braces and re-indent.
5719 (d10v_store_return_value): Char return values
5720 must be shifted over by one byte in R0.
5721 (d10v_extract_return_value): Delete extra braces, re-indent.
5723 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5725 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5726 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5727 (d10v_integer_to_address): Rewrite.
5728 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5729 the d10v specific functions which take care of converting to the
5732 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5734 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5735 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5737 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5739 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5741 * config/tm-linux.h: Ditto.
5742 * config/alpha/tm-alphalinux.h: Ditto.
5743 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5744 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5745 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5746 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5747 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5748 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5749 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5750 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5751 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5752 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5753 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5754 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5755 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5756 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5757 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5758 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5759 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5760 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5761 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5762 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5763 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5764 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5765 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5766 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5767 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5768 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5769 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5770 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5771 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5772 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5773 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5774 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5775 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5776 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5777 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5778 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5779 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5781 2002-05-04 Aidan Skinner <aidan@velvet.net>
5783 * ada-exp.tab.c: New file
5784 * ada-exp.y: New file
5785 * ada-lang.c: New file
5786 * ada-lang.h: New file
5787 * ada-lex.c: New file
5788 * ada-lex.l: New file
5789 * ada-tasks.c: New file
5790 * ada-typeprint.c: New file
5791 * ada-valprint.c: New file
5793 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5795 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5796 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5798 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5800 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5801 insetead of ppc-linux-tdep.o.
5802 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5803 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5805 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5807 2002-05-07 Christian Groessler <chris@groessler.org>
5808 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5809 bit register contents for little endian hosts.
5811 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5813 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5816 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5818 * gdbarch.h: Regenerate.
5820 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5822 * MAINTAINERS: Add everyone to write-after-approval list.
5824 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5826 * stack.c (frame_info): Use frame_register_unwind instead of
5827 saved_regs. Mention when the SP is on the stack or in a register.
5829 * frame.h (frame_register_unwind_ftype): Define. Document.
5830 (struct frame_info): Add field register_unwind and
5831 register_unwind_cache.
5832 (frame_register_unwind): Declare.
5833 (generic_unwind_get_saved_register): Declare.
5835 * frame.c (frame_register_unwind): New function.
5836 (generic_unwind_get_saved_register): New function.
5838 * blockframe.c (generic_call_dummy_register_unwind): New function.
5839 (frame_saved_regs_register_unwind): New function.
5840 (set_unwind_by_pc): New function.
5841 (create_new_frame): New function.
5842 (get_prev_frame): New function.
5844 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5846 * a29k-share/: Delete directory.
5847 * remote-vx29k.c: Delete file.
5849 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5851 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5852 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5854 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5856 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5857 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5860 (sparcnbsd-tdep.o): New dependency lists.
5861 * NEWS: Note new UltraSPARC NetBSD native configuration.
5862 * configure.host (sparc64-*-netbsd*): New host.
5863 * configure.tgt (sparc-*-netbsdelf*)
5864 (sparc-*-netbsd*): Set gdb_target to nbsd.
5865 (sparc64-*-netbsd*): New target.
5866 * sparc64nbsd-nat.c: New file.
5867 * sparcnbsd-nat.c: New file.
5868 * sparcnbsd-tdep.c: New file.
5869 * sparcnbsd-tdep.h: New file.
5870 * config/sparc/nbsd.mt: New file.
5871 * config/sparc/nbsd64.mh: New file.
5872 * config/sparc/nbsd64.mt: New file.
5873 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5874 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5876 * config/sparc/nbsdaout.mt: Remove.
5877 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5878 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5880 * config/sparc/nbsdelf.mt: Remove.
5881 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5882 sparc-nat.c compatiblity defines.
5883 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5884 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5885 * config/sparc/tm-nbsd64.h: New file.
5886 * config/sparc/tm-nbsdaout.h: Remove.
5887 * config/sparc/xm-nbsd.h: Remove.
5889 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5891 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5892 * sparc-tdep.c: Include osabi.h.
5893 (gdbarch_tdep): Add osabi member.
5894 (_initialize_sparc_tdep): Use gdbarch_register.
5895 (sparc_gdbarch_init): Use generic OS ABI framework.
5896 (sparc_dump_tdep): New function.
5898 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5900 * corefile.c (do_captured_read_memory_integer): Return non-zero
5902 (safe_read_memory_integer): Copy result of memory read when
5903 status is non-zero. Also, add comments.
5905 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5907 * Makefile.in (ppc_tdep_h): Define.
5910 (rs6000-tdep.o): Use $(ppc_tdep_h).
5913 (ppcnbsd-tdep.o): New dependency lists.
5914 * ppc-tdep.h: Use generic OS ABI framework.
5915 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5916 (ppc_linux_init_abi): New functions.
5917 (ppc_sysv_abi_broken_use_struct_convention)
5918 (ppc_sysv_abi_use_struct_convention)
5919 (ppc_sysv_abi_push_arguments): Move to...
5920 * ppc-sysv-tdep.c: ...here.
5921 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5922 * rs6000-tdep.c (process_note_abi_tag_sections)
5923 (get_elfosabi): Remove.
5924 (rs6000_gdbarch_init): Use generic OS ABI framework.
5925 (rs6000_dump_tdep): New function.
5926 (_initialize_rs6000_tdep): Use gdbarch_register.
5927 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5928 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5929 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5930 of ppc-linux-tdep.o.
5931 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5932 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5933 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5934 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5935 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5936 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5938 2002-05-29 Jim Blandy <jimb@redhat.com>
5940 * macroscope.c (default_macro_scope): Put `void' in empty argument
5943 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5945 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5946 * arch-utils.c: Include "sim-regno.h".
5947 * gdbarch.sh: Don't include "sim-regno.h".
5948 * gdbarch.h, gdbarch.c: Regenerate.
5949 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5951 * arch-utils.h (legacy_register_sim_regno): To here.
5952 * remote-sim.c (legacy_register_sim_regno): Move function from
5954 * arch-utils.c (legacy_register_sim_regno): To here.
5956 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5958 * sim-regno.h: New file.
5959 * Makefile.in (sim_regno_h): Define.
5960 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5961 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5962 (legacy_register_sim_regno): New function.
5963 (one2one_register_sim_regno): New function.
5964 (gdbsim_fetch_register): Rewrite.
5965 (gdbsim_store_register): Only store a register when
5966 REGISTER_SIM_REGNO is valid.
5967 * d10v-tdep.c: Include "sim-regno.h".
5968 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5969 (d10v_ts3_register_sim_regno): Ditto.
5970 * gdbarch.sh: Include "sim-regno.h".
5971 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5972 * gdbarch.h, gdbarch.c: Regenerate.
5973 * arch-utils.h (default_register_sim_regno): Delete declaration.
5974 * arch-utils.c (default_register_sim_regno): Delete function.
5976 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5978 * ppcnbsd-nat.c: Rewrite.
5979 * ppcnbsd-tdep.c: New file.
5980 * ppcnbsd-tdep.h: New file.
5981 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5982 solib.o, and solib-svr4.o.
5983 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5984 nbsd-tdep.o, and corelow.o.
5986 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5988 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5989 `tr' and `sed'. Mention that `broken' targets are not expected to
5992 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5994 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5995 Let PC point right after the prologue before looking up symbols.
5997 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5999 * i386-tdep.c (i386_register_virtual_type): Return
6000 builtin_type_vec128i for SSE registers.
6002 * gdbtypes.h (builtin_type_vec128i): Declare.
6004 * gdbtypes.c (build_builtin_type_vec128i): New function.
6005 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6006 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6007 (build_gdbtypes): Initialize new builtin vector types.
6008 (_initialize_gdbtypes): Register new vector types with gdbarch.
6010 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6012 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6013 since it has been multi-arch'd.
6014 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6015 Move Alpha and VAX multi-arch news entries to same section
6016 as other multi-arch news.
6018 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6020 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6021 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6022 static. Rename some register numbers to put them in ns32k-tdep
6024 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6025 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6027 (_initialize_ns32k_tdep): Use gdbarch_register.
6028 * ns32k-tdep.h: New file.
6029 * ns32knbsd-tdep.c: New file.
6030 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6031 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6032 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6033 REGISTER_BYTES, REGISTER_BYTE): Remove.
6034 * config/ns32k/tm-ns32k.h: New file.
6035 * config/ns32k/tm-umax.h: Remove.
6037 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6039 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6040 ns32k_store_struct_return, ns32k_extract_return_value,
6041 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6043 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6044 ns32k_saved_pc_after_call.
6045 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6046 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6047 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6048 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6049 ns32k_extract_struct_value_address.
6051 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6053 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6054 ns32k_fix_call_dummy): New.
6055 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6056 ns32k_call_dummy_words.
6057 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6058 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6059 CALL_DUMMY_NARGS): Remove.
6060 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6062 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6064 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6065 ns32k_frame_saved_pc, ns32k_frame_args_address,
6066 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6067 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6068 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6069 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6070 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6071 (BREAKPOINT): Remove..
6072 (FRAME_CHAIN): Define as ns32k_frame_chain.
6073 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6074 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6075 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6076 (FRAME_FIND_SAVED_REGS): Remove.
6077 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6078 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6079 (POP_FRAME): Define as ns32k_pop_frame.
6081 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6083 * ns32k-tdep.c (ns32k_register_byte_32082,
6084 ns32k_register_byte_32382, ns32k_register_raw_size,
6085 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6087 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6088 ns32k_register_byte_32382.
6089 * config/ns32k/tm-umax.h: Update copyright years.
6090 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6091 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6092 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6093 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6094 (ns32k_get_enter_addr): Fix prototype.
6096 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6098 * ns32k-tdep.c: Update copyright years.
6099 (ns32k_register_name_32082): New function.
6100 (ns32k_register_name_32382): Ditto.
6101 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6102 (REGISTER_NAME): Define as ns32k_register_name_32382.
6103 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6104 (REGISTER_NAME): Define as ns32k_register_name_32082.
6106 2002-05-24 Jim Blandy <jimb@redhat.com>
6108 * dwarf2read.c (free_line_header): Use xfree, not free.
6110 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6112 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6113 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6115 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6117 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6119 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6121 From Ross Alexander at NEC Europe:
6122 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6124 2002-05-23 Michael Snyder <msnyder@redhat.com>
6126 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6127 for input, rather than parse_and_eval_address.
6129 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6131 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6132 * Makefile.in (sim_d10v_h): Update definition.
6134 2002-05-24 Andrew Cagney <cagney@redhat.com>
6136 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6137 change `2002-05-22 Michael Snyder' below.
6138 (d10v_push_arguments): Ditto.
6139 (d10v_extract_return_value): Ditto.
6141 2002-05-23 Jim Blandy <jimb@redhat.com>
6143 * macrotab.c (check_for_redefinition): Don't complain if the new
6144 definition is the same as the previous one. Take more arguments
6145 to allow the comparison.
6146 (macro_define_object, macro_define_function): Pass more arguments
6147 to check_for_redefinition.
6149 2002-05-22 Michael Snyder <msnyder@redhat.com>
6151 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6152 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6153 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6154 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6155 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6156 Add a temp variable to save a call (and a memory read).
6157 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6158 if possible (so that PC_IN_CALL_DUMMY will work).
6160 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6162 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6164 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6166 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6168 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6169 (dwarf2_build_frame_info): Add offset to fde->initial_location
6170 so that frames of shared libraries are mapped correctly.
6171 (execute_stack_op): Change type of 'result' from ULONGEST to
6174 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6176 * config/alpha/tm-nbsd.h: Include solib.h.
6178 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6180 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6181 assumptions about the host's byte order.
6183 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6185 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6187 * alphanbsd-tdep.c: Include solib-svr4.h.
6188 * shnbsd-tdep.c: Ditto.
6190 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6192 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6193 nbsd-tdep.h to dependency list.
6194 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6195 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6196 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6197 nbsdaout.mh and nbsdelf.mh consistently.
6198 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6199 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6200 nbsdaout.mt and nbsdelf.mh consistently.
6201 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6202 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6203 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6204 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6205 a.out shared library stuff from here...
6206 * config/nm-nbsdaout.h: ...to here.
6207 * config/tm-nbsd.h: Remove.
6208 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6209 * config/arm/nbsd.mh: Remove.
6210 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6212 * config/arm/nbsdaout.mh: New file.
6213 * config/arm/nbsdelf.mh: New file.
6214 * config/arm/nm-nbsdaout.h: New file.
6215 * config/i386/nbsd.mh: Remove.
6216 * config/i386/nbsd.mt: Remove.
6217 * config/i386/nbsdaout.mh: New file.
6218 * config/i386/nbsdaout.mt: New file.
6219 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6220 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6221 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6222 i386_register_u_addr): Remove.
6223 * config/i386/nm-nbsdaout.h: New file.
6224 * config/i386/nm-nbsdelf.h: Remove.
6225 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6226 (USE_STRUCT_CONVENTION): Remove.
6227 * config/i386/tm-nbsdaout.h: New file.
6228 * config/i386/tm-nbsdelf.h: Remove.
6229 * config/m68k/nbsd.mh: Remove.
6230 * config/m68k/nbsd.mt: Remove.
6231 * config/m68k/nbsdaout.mh: New file.
6232 * config/m68k/nbsdaout.mt: New file.
6233 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6234 * config/m68k/nm-nbsdaout.h: New file.
6235 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6236 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6237 * config/ns32k/nbsd.mh: Remove.
6238 * config/ns32k/nbsd.mt: Remove.
6239 * config/ns32k/nbsdaout.mh: New file.
6240 * config/ns32k/nbsdaout.mt: New file.
6241 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6242 * config/ns32k/nm-nbsdaout.h: New file.
6243 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6244 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6245 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6246 (SVR4_SHARED_LIBS): Remove.
6247 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6248 * config/sparc/nbsd.mh: Remove.
6249 * config/sparc/nbsd.mt: Remove.
6250 * config/sparc/nbsdaout.mh: New file.
6251 * config/sparc/nbsdaout.mt: New file.
6252 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6253 * config/sparc/nbsdelf.mt: New file.
6254 * config/sparc/nm-nbsdaout.h: New file.
6255 * config/sparc/nm-nbsdelf.h: Remove.
6256 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6257 * config/sparc/tm-nbsdaout.h: New file.
6259 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6261 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6263 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6265 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6267 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6269 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6271 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6273 * NEWS: Note new MIPS NetBSD native configuration.
6274 * configure.host (mips*-*-netbsd*): New host.
6275 * configure.tgt (mips*-*-netbsd*): New target.
6276 * mipsnbsd-nat.c: New file.
6277 * mipsnbsd-tdep.c: New file.
6278 * mipsnbsd-tdep.h: New file.
6279 * config/mips/nbsd.mh: New file.
6280 * config/mips/nbsd.mt: New file.
6281 * config/mips/nm-nbsd.h: New file.
6282 * config/mips/tm-nbsd.h: New file.
6284 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6286 * Makefile.in (SFILES): Add osabi.c.
6287 (COMMON_OBS): Add osabi.o.
6288 (osabi.o): New dependency list.
6289 * osabi.c: New file.
6290 * osabi.h: New file.
6291 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6293 * Makefile.in (alpha_tdep_h): Define and use instead of
6295 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6296 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6298 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6299 * alpha-tdep.h: Include osabi.h.
6300 (alpha_abi): Remove.
6301 (gdbarch_tdep): Use generic OS ABI framework.
6302 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6303 gdbarch_register_osabi.
6304 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6305 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6306 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6308 * Makefile.in (sh_tdep_h): Add osabi.h.
6309 * sh-tdep.h (sh_osabi): Remove.
6310 (gdbarch_tdep): Use generic OS ABI framework.
6311 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6312 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6313 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6314 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6316 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6317 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6318 gdbarch_register_osabi.
6319 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6320 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6321 (get_elfosabi): Rename to...
6322 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6323 ABI framework support routines.
6324 (arm_gdbarch_init): Use generic OS ABI framework.
6325 (arm_dump_tdep): Likewise.
6326 (_initialize_arm_tdep): Likewise.
6327 * arm-tdep.h: Include osabi.h.
6329 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6331 (arm_gdbarch_register_os_abi): Remove prototype.
6332 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6333 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6335 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6336 * mips-tdep.c: Include osabi.h.
6337 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6340 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6342 * h8300-tdep.c: Fix formatting.
6344 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6346 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6347 printing vector registers.
6349 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6351 From Fernando Nasser:
6352 * remote.c (remote_async_open_1): Re-throw the exception when the
6354 (remote_cisco_open): Ditto.
6355 (remote_open_1): Ditto.
6357 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6359 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6360 (remote_start_remote): Add uiout parameter. Pass through to
6361 remote_start_remote_dummy.
6362 (remote_open_1): Use catch_exception instead of catch_errors.
6363 (remote_async_open_1): Ditto.
6364 (remote_cisco_open): Ditto.
6366 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6368 * remote.c (remote_start_remote): Replace PTR with void pointer.
6369 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6372 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6374 * gdb_indent.sh: Allow the script to be run in the sim directory.
6376 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6378 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6379 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6381 * corelow.c (core_open): Only call set_gdbarch_from_file if
6384 2002-05-17 Andrey Volkov <avolkov@transas.com>
6386 * h8300-tdep.c: Add support of EXR register
6387 * config/h8300/tm-h8300.h: Ditto.
6389 2002-05-17 Andrey Volkov <avolkov@transas.com>
6391 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6393 2002-05-17 Andrey Volkov <avolkov@transas.com>
6395 * h8300-tdep.c: Change literal regnums to REGNO.
6397 2002-05-17 Jim Blandy <jimb@redhat.com>
6399 * NEWS: Note addition of macro support.
6401 Expand preprocessor macros in C expressions.
6402 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6403 (scan_macro_expansion, scanning_macro_expansion,
6404 finished_macro_expansion): New function declarations.
6405 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6406 variable declarations.
6407 * parser-defs.h (expression_context_pc): New declaration.
6408 * parse.c (expression_context_pc): New variable.
6409 (parse_exp_1): Set expression_context_pc, as well as
6410 expression_context_block.
6411 * c-exp.y (yylex): If we're not already reading the result of a
6412 macro expansion, try to macro-expand the next token. When we're
6413 done scanning a macro expansion, switch back to the mainline text.
6414 Commas and `if's in a macro's expansion don't terminate the input.
6415 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6416 (macro_original_text, macro_expanded_text,
6417 expression_macro_lookup_func, expression_macro_lookup_baton): New
6419 (scan_macro_expansion, scanning_macro_expansion,
6420 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6421 c_preprocess_and_parse): New functions.
6422 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6423 c_preprocess_and_parse, instead of c_parse.
6424 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6425 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6427 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6429 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6430 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6431 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6433 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6435 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6437 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6439 * Makefile.in (sh_tdep_h): Define and use.
6440 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6441 register enum): Move to...
6442 * * sh-tdep.h: ...here.
6443 * sh-tdep.c: Include sh-tdep.h.
6444 * sh3-rom.c: Likewise.
6445 * shnbsd-tdep.c: Likewise.
6447 2002-05-16 Michael Snyder <msnyder@redhat.com>
6449 * arm-tdep.c: Spelling fix in comment.
6451 2002-05-16 Jim Blandy <jimb@redhat.com>
6453 Add commands for manually expanding macros and showing their
6455 * macrocmd.c, macroscope.c, macroscope.h: New files.
6456 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6457 (macroscope_h): New variable.
6458 (HFILES_NO_SRCDIR): Add macroscope.h.
6459 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6460 (macroscope.o, macrocmd.o): New rules.
6462 Teach the Dwarf 2 reader to read macro information.
6463 * dwarf2read.c: #include "macrotab.h".
6464 (dwarf_macinfo_buffer): New variable.
6465 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6467 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6468 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6469 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6470 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6471 dwarf2_macro_spaces_in_definition): New complaints.
6472 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6473 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6474 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6475 the partial symbol table.
6476 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6477 from what's recorded in the partial symbol table.
6478 (read_file_scope): If the compilation unit has a
6479 `DW_AT_macro_info' attribute, read its macro information.
6480 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6482 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6485 * ser-tcp.c: Don't include <netinet/udp.h>.
6487 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6489 * MAINTAINERS: Update my email address.
6491 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6493 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6494 include file of the same name.
6496 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6498 * configure.tgt: Mark v850 as multi-arched.
6499 * config/v850/tm-v850.h: Remove file.
6500 * config/v850/v850.mt: Eliminate TM_FILE.
6502 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6504 * v850-tdep.c: Full multi-arch.
6505 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6506 Define GDB_MULTI_ARCH to 2.
6508 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6510 * p-exp.y (current_type): New static variable.
6511 Carries the type of the expression at the position that is parsed.
6512 (push_current_type, pop_current_type): Two new functions. Used
6513 to store/restore current_type in expression on specific tokens.
6514 (search_field): New static variable. Set to one after parsing a point
6515 as at that point only a FIELDNAME token should be searched.
6516 (FIELDNAME): New token. After a point only a token belonging to
6517 current_type type definition is allowed.
6518 (all over token rules): reset and change current_type according
6520 (exp '[' rule): insert implicit array index field if
6521 exp is a pascal string type.
6523 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6525 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6526 frame info. Use frame_info's saved_regs instead of matching member
6527 in extra_frame_info throughout.
6528 (v850_frame_init_saved_regs): New function.
6529 (v850_init_extra_frame_info): Move most functionality into
6530 v850_frame_init_saved_regs().
6531 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6532 (v850_frame_find_saved_regs): Remove declaration.
6533 (FRAME_FIND_SAVED_REGS): Remove definition.
6534 (v850_frame_init_saved_regs): Add declaration.
6535 (FRAME_INIT_SAVED_REGS): Add definition.
6537 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6539 * v850-tdep.c: Begin multi-arch'ing v850.
6540 (v850_target_architecture_hook): Remove function.
6541 (v850_gdbarch_init): New function. Add code previously in
6542 v850_target_architecture_hook().
6543 (_initialize_v850_tdep): Don't set target_architecture_hook.
6544 Call register_gdbarch_init() instead.
6546 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6548 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6549 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6550 (fixup_class_method_type): Likewise.
6552 2002-05-15 Jim Blandy <jimb@redhat.com>
6554 Add macro structures to GDB's symbol tables. Nobody puts anything
6556 * symtab.h (struct symtab): New member: `macro_table'.
6557 * buildsym.h (pending_macros): New global variable.
6558 * buildsym.c: #include "macrotab.h".
6559 (buildsym_init): Initialize `pending_macros'.
6560 (end_symtab): If we found macro information while reading a CU's
6561 debugging info, do build a symtab structure for it. Make the
6562 symtab point to the macro information, and clear the
6563 `pending_macros' pointer which held it while we were reading the
6565 (really_free_pendings): Free any pending macro table.
6566 * objfiles.h (struct objfile): New member: `macro_cache'.
6567 * objfiles.c (allocate_objfile): Set allocate and free functions
6568 for the macro cache's objstack.
6569 (free_objfile): Empty the macro cache's obstack.
6570 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6571 set new allocate and free functions for it.
6572 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6573 free functions for the macro cache's objstack. (Why is this
6574 function building its own objfile?)
6575 * symmisc.c (print_objfile_statistics): Print statistics on the
6577 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6579 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6581 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6582 (REGISTER_U_ADDR): Delete definition.
6583 (arm_register_u_addr): Delete declaration.
6585 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6587 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6588 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6590 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6592 * regcache.c (register_valid): Revise comments refering to "Not
6593 available" and "unavailable".
6594 * frame.c (frame_register_read): Ditto.
6595 * findvar.c (value_of_register): Ditto.
6597 2002-05-15 Andrew Cagney <cagney@redhat.com>
6599 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6600 (remote-sim.o): Update dependencies.
6601 (d10v-tdep.o): Specify dependencies.
6602 (sim_d10v_h): Define.
6604 2002-05-14 Jim Blandy <jimb@redhat.com>
6606 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6607 * macrotab.c (macro_lookup_inclusion, find_definition,
6608 new_macro_table): Same.
6610 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6611 not `! strcmp ()'. This is a dubious improvement.
6612 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6614 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6615 although it's not necessary, to avoid a warning.
6617 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6619 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6620 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6621 TYPE_INSTANCE_FLAGS.
6622 (struct main_type): New.
6623 (struct type): Move most members to struct main_type. Change
6624 cv_type and as_type to new type_chain member. Add instance_flags.
6625 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6626 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6627 (finish_cv_type): Remove prototype.
6628 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6630 (alloc_type_instance): New function.
6631 (smash_type): New function.
6632 (make_pointer_type, make_reference_type, make_function_type)
6633 (smash_to_member_type, smash_to_method_type): Call smash_type.
6634 (make_qualified_type): New function.
6635 (make_type_with_address_space): Call make_qualified_type.
6636 (make_cv_type): Likewise.
6637 (finish_cv_type): Remove unnecessary function.
6638 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6639 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6640 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6641 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6642 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6643 * hpread.c (hpread_read_struct_type): Likewise.
6644 * stabsread.c (read_struct_type): Likewise.
6646 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6648 * configure.tgt: Add a catch all sh* target, for cases like
6649 sh[2,3,4]-elf and sh-hms.
6651 2002-05-14 Keith Seitz <keiths@redhat.com>
6653 * event-loop.c (create_file_handler): Don't do anything but
6654 update data when we are given a fd which we are already
6657 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6659 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6660 (update_context): Use __func__ in warnings.
6662 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6664 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6665 and tcp_close to net_open and net_close.
6666 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6667 using UDP if requested. Don't try to disable Nagle on UDP
6669 * remote.c (remote_serial_open): New function. Warn about UDP.
6670 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6672 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6674 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6676 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6678 * configure.tgt: Remove sh-hms target.
6679 * MAINTAINERS: Don't list sh-hms as a separate target.
6681 2002-05-13 Jim Blandy <jimb@redhat.com>
6683 Add first preprocessor macro-expansion files.
6684 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6685 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6686 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6687 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6688 (COMMON_OBS): Add macrotab.o, macroexp.o.
6689 (macroexp.o, macrotab.o): New rules.
6691 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6693 * config/m88k/tm-m88k.h: Update copyright.
6694 (m88k_target_write_pc): Declare
6695 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6696 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6697 (SHIFT_INST_REGS): Update definition.
6698 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6699 using old definition of TARGET_WRITE_PC.
6700 * regcache.c (generic_target_write_pc): Delete code handling
6702 * gdbarch.sh (NNPC_REGNUM): Delete.
6703 * gdbarch.h, gdbarch.c: Regenerate.
6705 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6707 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6710 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6712 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6713 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6714 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6716 * c-typeprint.c (cp_type_print_method_args): Likewise.
6717 (c_type_print_args): Likewise.
6718 * d10v-tdep.c (d10v_push_arguments): Likewise.
6719 (d10v_extract_return_value): Likewise.
6720 * expprint.c (print_subexp): Likewise.
6721 * gdbtypes.c (lookup_primitive_typename): Likewise.
6722 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6723 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6724 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6725 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6726 (TYPE_VECTOR): Likewise.
6727 * hpread.c (hpread_read_struct_type)
6728 (fix_static_member_physnames, fixup_class_method_type)
6729 (hpread_type_lookup): Likewise.
6730 * mdebugread.c (parse_symbol, parse_type): Likewise.
6731 * p-lang.c (is_pascal_string_type): Likewise.
6732 * valops.c (hand_function_call): Likewise.
6733 * x86-64-tdep.c (classify_argument): Likewise.
6735 * hpread.c (hpread_read_function_type)
6736 (hpread_read_doc_function_type): Call replace_type.
6737 * dstread.c (create_new_type): Delete.
6738 (decode_dst_structure, process_dst_function): Call alloc_type.
6739 Use type access macros.
6741 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6743 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6744 the're not supported by the current architecture.
6745 (i387_fill_fxsave): Likewise.
6747 2002-05-12 Fred Fish <fnf@redhat.com>
6749 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6750 sect_index_xxx members to index the first slot in section_offsets
6751 if all of the section_offsets are zero.
6753 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6755 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6756 checked in with last change.
6758 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6760 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6761 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6764 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6766 * Makefile.in: Update dependencies.
6768 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6770 * language.c (local_hex_string_custom): Simplify. Do not depend
6771 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6773 * memattr.c (mem_info_command): Replace calls to
6774 longest_local_hex_string and longest_local_hex_string_custom.
6775 * buildsym.c (make_blockvector): Ditto.
6776 * solib.c (info_sharedlibrary_command): Ditto.
6777 * tracepoint.c (tracepoints_info): Ditto.
6778 * symtab.c (print_msymbol_info): Ditto.
6780 * language.c (local_hex_string): Delete.
6781 (local_hex_string_custom): Delete.
6782 (longest_local_hex_string): Rename to local_hex_string.
6783 (longest_local_hex_string_custom): Rename to
6784 local_hex_string_custom.
6785 * language.h (local_hex_string): Change parameter type to LONGEST.
6786 (local_hex_string_custom): Ditto.
6787 (longest_local_hex_string): Delete declaration.
6788 (longest_local_hex_string_custom): Ditto.
6790 * solib.c: Update copyright.
6791 * memattr.c: Update copyright.
6793 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6795 * arch-utils.h (legacy_register_to_value): Declare.
6796 (legacy_value_to_register): Declare.
6797 (legacy_convert_register_p): Declare.
6798 * arch-utils.c (legacy_register_to_value): New function.
6799 (legacy_value_to_register): New function.
6800 (legacy_convert_register_p): New function.
6802 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6803 (VALUE_TO_REGISTER): Define.
6804 (CONVERT_REGISTER_P): Define.
6805 * gdbarch.h, gdbarch.c: Regenerate.
6807 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6809 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6812 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6813 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6815 * Makefile.in: Update dependencies for valops.c.
6816 * valops.c: Include "gdb_assert.h".
6817 (typecmp): Skip THIS parameter to methods.
6818 (find_method_list): Remove static_memfuncp argument,
6819 update callers. Check for stub methods.
6820 (find_value_oload_method_list): Don't set *static_memfuncp.
6821 (find_overload_match): Don't check for stub methods. Assert
6822 that methods are not stubbed. Handle static methods.
6823 (value_find_oload_method_list): Remove static_memfuncp argument.
6824 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6825 to the argument list for static stub methods.
6826 * value.h (value_find_oload_method_list): Update prototype.
6828 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6830 * arch-utils.h (generic_register_size): Declare.
6831 (generic_register_raw_size, generic_register_virtual_size): Delete
6833 * arch-utils.c (generic_register_raw_size): Delete.
6834 (generic_register_size): New function.
6835 (generic_register_virtual_size): Delete.
6837 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6838 default generic_register_size.
6839 * gdbarch.h, gdbarch.c: Re-generate.
6841 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6842 register_virtual_size.
6843 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6844 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6846 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6848 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6849 * gdbarch.h, gdbarch.c: Regenerate.
6850 * gnu-v3-abi.c: Update copyright.
6851 (vtable_address_point_offset): Update.
6852 (gnuv3_rtti_type): Update.
6853 (gnuv3_baseclass_offset): Update.
6854 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6855 (init_fetch_link_map_offsets): Update.
6856 * remote.c (get_remote_state): Update.
6858 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6860 * TODO: Remove value_headof/value_from_vtable_info comment.
6861 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6862 * values.c (value_headof, value_from_vtable_info): Delete.
6863 * value.h (value_from_vtable_info): Delete prototype.
6865 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6867 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6868 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6870 (gdb_assert_h): Define.
6871 (gdb_wait_h): Define.
6872 (gdb_regex_h): Define.
6874 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6876 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6877 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6879 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6881 * nbsd-tdep.c: Fix comment.
6883 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6885 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6886 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6887 (nbsd-tdep.o): New dependency list.
6888 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6890 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6891 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6892 * nbsd-tdep.c: New file.
6893 * nbsd-tdep.h: New file.
6894 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6896 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6897 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6898 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6899 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6901 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6903 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6904 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6905 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6906 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6907 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6908 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6910 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6912 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6913 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6914 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6915 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6916 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6917 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6918 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6920 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6922 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6923 fetch_elfcore_registers to...
6924 * i386nbsd-tdep.c: ...here.
6925 (i386nbsd_use_struct_convention): Rename to...
6926 (i386nbsd_aout_use_struct_convention): ...this.
6927 (i386nbsd_supply_reg): New function.
6928 (i386nbsd_fill_reg): New function.
6929 (fetch_core_registers): Use i386nbsd_supply_reg.
6930 (fetch_elfcore_registers): Likewise.
6931 (_initialize_i386nbsd_tdep): New function.
6932 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6933 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6934 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6935 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6936 (i386nbsd_aout_use_struct_convention): ...this.
6938 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6940 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6941 (store_inferior_registers): Use shnbsd_fill_reg.
6942 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6943 sh_nbsd_supply_register): Collapse into...
6944 (shnbsd_supply_reg): ...this.
6945 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6946 (shnbsd_fill_reg): ...this.
6947 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6948 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6949 (fetch_core_registers): Use shnbsd_supply_reg.
6950 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6951 (sh_nbsd_core_fns): Rename to...
6952 (shnbsd_core_fns): ...this.
6953 (sh_nbsd_elfcore_fns): Rename to...
6954 (shnbsd_elfcore_fns): ...this.
6955 (sh_nbsd_init_abi): Rename to...
6956 (shnbsd_init_abi): ...this.
6957 (_initialize_sh_nbsd_tdep): Rename to...
6958 (_initialize_shnbsd_tdep): ...this.
6959 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6960 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6961 sh_nbsd_fill_register): Remove prototypes.
6962 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6964 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6966 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6967 (i387-nat.o): Delete dependency list.
6968 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6969 (x86-64-linux-nat.o): Likewise.
6970 * i387-nat.c: Delete file, moving contents to...
6971 * i387-tdep.c: ...here.
6972 * i387-nat.h: Rename...
6973 * i387-tdep.h: ...to this.
6974 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6975 * i386-linux-nat.c: Likewise.
6976 * i386bsd-nat.c: Likewise.
6977 * i386gnu-nat.c: Likewise.
6978 * i386nbsd-nat.c: Likewise.
6979 * i386v4-nat.c: Likewise.
6980 * x86-64-linux-nat.c: Likewise.
6981 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6982 * config/i386/go32.mh (NATDEPFILES): Likewise.
6983 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6984 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6985 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6986 * config/i386/linux.mh (NATDEPFILES): Likewise.
6987 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6988 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6989 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6990 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6992 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6994 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6995 (alphanbsd-nat.o): Remove dependency list.
6996 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6997 * alphanbsd-nat.c: Delete. Contents moved to...
6998 * alphanbsd-tdep.c: ...here.
6999 (_initialize_alphanbsd_tdep): Register core functions.
7000 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7002 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7004 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7005 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7006 (alphanbsd-nat.o): Likewise.
7007 (alphabsd-tdep.o): New dependency list.
7008 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7009 (fill_gregset): Use alphabsd_fill_reg.
7010 (supply_fpregset): Use alphabsd_supply_fpreg.
7011 (fill_fpregset): Use alphabsd_fill_fpreg.
7012 (fetch_inferior_registers): Use struct reg and struct fpreg
7013 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7014 and alphabsd_supply_fpreg.
7015 (store_inferior_registers): Use struct reg and struct fpreg
7016 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7017 and alphabsd_fill_fpreg.
7018 * alphabsd-tdep.c: New file.
7019 * alphabsd-tdep.h: New file.
7020 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7021 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7022 alphabsd_supply_fpreg.
7023 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7024 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7026 2002-05-11 Eric Christopher <echristo@redhat.com>
7028 * mips-tdep.c (mips_double_register_type): Fix thinko.
7029 (mips_single_register_type): Ditto.
7030 * MAINTAINERS: Add self.
7032 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7034 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7035 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7036 right thing on architectures with different endianness and/or
7039 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7041 From Christian Limpach <chris@Pin.LU>
7042 * configure.in: Change sed expression which comments out
7043 NATDEPFILES to also comment out continuation lines.
7044 * configure: Regenerate.
7046 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7048 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7051 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7053 * sh-tdep.c: Include correct file.
7055 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7057 New support for sh64-elf (sh5) target.
7059 * configure.tgt: For sh64-elf target, default to sh-elf.
7061 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7062 (struct gdbarch_tdep): Add new fields for new registers and ABI
7065 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7066 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7067 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7068 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7069 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7070 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7071 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7072 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7073 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7074 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7075 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7076 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7077 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7078 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7079 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7080 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7081 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7082 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7083 sign_extend, sh64_nofp_frame_init_saved_regs,
7084 sh64_init_extra_frame_info, sh64_get_saved_register,
7085 sh64_extract_struct_value_address, sh64_pop_frame,
7086 sh64_push_arguments, sh64_extract_return_value,
7087 sh64_store_return_value, sh64_show_media_regs,
7088 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7089 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7090 sh_sh64_register_virtual_type,
7091 sh_sh64_register_convert_to_virtual,
7092 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7093 sh64_register_read, sh64_pseudo_register_write,
7094 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7095 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7096 sh64_do_pseudo_register, sh_compact_do_registers_info,
7097 sh64_do_registers_info, sh_gdbarch_init): New functions.
7099 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7101 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7103 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7105 * linespec.c (decode_line_1): Check for a double quote after
7106 a filename correctly.
7108 2002-05-10 Jim Blandy <jimb@redhat.com>
7110 Properly track the size of the current objfile's .debug_line section.
7111 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7112 (DWARF_LINE_SIZE): New macro.
7113 (dwarf2_build_psymtabs_hard): Record the line section's size in
7114 the partial symbol table.
7115 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7118 2002-05-10 Petr Sorfa <petrs@caldera.com>
7120 * ia64-tdep.c: Handle breakpoints on L instruction type
7121 in MLX instruction bundle by moving the breakpoint to
7122 the third slot (X instruction type) as L holds only data.
7124 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7126 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7127 (process_one_symbol): Complain about discarding local symbols
7128 due to a misplaced N_LBRAC entry.
7130 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7132 From Daniel Berlin <dan@cgsoftware.com>
7133 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7134 decrease the depth we are at, in the case of templates.
7136 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7138 * mips-tdep.c (mips_float_register_type): New function.
7139 (mips_double_register_type): New function.
7140 (mips_print_register): Use them.
7141 (do_fp_register_row): Likewise.
7143 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7145 * signals/signals.c (signals): Remove conditional compilation around
7146 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7147 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7149 2002-05-09 Michael Snyder <msnyder@redhat.com>
7151 * remote-rdp.c (remote_rdp_can_run): Remove.
7153 2002-05-09 Tom Tromey <tromey@redhat.com>
7155 * jv-valprint.c (java_val_print): Handle `char' as a special case
7158 2002-05-09 Michael Snyder <msnyder@redhat.com>
7160 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7161 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7162 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7163 str r(0123),[sp,#nn].
7164 (arm_skip_prologue): Ditto. Also make disassembly
7165 order-independent by placing it in a loop.
7167 2002-05-06 Michael Snyder <msnyder@redhat.com>
7169 * stabsread.c (read_type): Add recognition for new attribute:
7170 "@V;" means that an array type is actually a vector.
7171 This is analogous to the vector flag that's been added to dwarf2.
7173 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7175 * i386-tdep.h (i386_abi): New enum.
7176 (struct gdbarch_tdep): Replace os_ident member with abi.
7177 (i386_gdbarch_register_os_abi): New prototype.
7178 * i386-tdep.c (i386_abi_names): New array.
7179 (process_note_abi_tag_sections): Removed.
7180 (process_note_sections): New function.
7181 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7182 (struct i386_abi_handler): New struct.
7183 (i386_abi_handler_list): New variable.
7184 (i386_gdbarch_register_os_abi): New function.
7185 (i386_gdbarch_init): Adapt for the changes given above.
7187 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7189 * gregset.h: Say "GNU/Linux".
7191 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7193 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7194 (build_gdbtypes): Build builtin_type_v2_float.
7195 (_initialize_gdbtypes): Register new builtin type.
7197 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7199 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7200 (clear_gdbarch_swap): New function.
7201 (initialize_non_multiarch): Call.
7202 (gdbarch_update_p): Before calling init(), swap out and clear the
7203 existing architecture.
7204 * gdbarch.c: Regenerate.
7206 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7208 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7211 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7213 * sh-nbsd-nat.c: Rename to...
7214 * shnbsd-nat.c: ...this.
7215 * sh-nbsd-tdep.c: Rename to...
7216 * shnbsd-tdep.c: ...this.
7217 * sh-nbsd-tdep.h: Rename to...
7218 * shnbsd-tdep.h: ...this.
7219 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7220 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7222 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7224 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7225 concatenation for command help messages.
7227 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7229 * NEWS: Note new sh*-*-netbsdelf* configuration.
7230 * configure.host: Set gdb_host_cpu to sh for all sh*.
7231 (sh*-*-netbsdelf*): New host.
7232 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7233 (sh*-*-netbsdelf*): New target.
7234 * sh-nbsd-nat.c: New file.
7235 * sh-nbsd-tdep.c: New file.
7236 * sh-nbsd-tdep.h: New file.
7237 * config/sh/nbsd.mh: New file.
7238 * config/sh/nbsd.mt: New file.
7239 * config/sh/nm-nbsd.h: New file.
7240 * config/sh/tm-nbsd.h: New file.
7242 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7244 * sh-tdep.c (sh_osabi_names): Declare.
7245 (process_note_abi_tag_sections): New function.
7246 (get_elfosabi): Ditto.
7247 (sh_gdbarch_register_os_abi): Ditto.
7248 (sh_dump_tdep): Ditto.
7249 _initialize_sh_tdep): Use gdbarch_register to register
7250 sh_gdbarch_init and sh_dump_tdep.
7251 * config/sh/tm-sh.h (sh_osabi): Declare.
7252 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7254 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7256 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7257 (thumb_scan_prologue): Ditto.
7258 (arm_find_callers_reg): Ditto.
7259 (arm_frame_chain): Ditto.
7260 (arm_init_extra_frame_info): Ditto.
7261 (arm_frame_saved_pc): Ditto.
7262 (arm_pop_frame): Ditto.
7263 (arm_push_return_address): New function.
7264 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7265 call_dummy_location, call_dummy_breakpoint_offset_p,
7266 call_dummy_breakpoint_offset, call_dummy_p,
7267 call_dummy_stack_adjust_p, call_dummy_words,
7268 sizeof_call_dummy_words, call_dummy_start_offset,
7269 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7270 call_dummy_address, push_return_address and push_dummy_frame for
7271 generic dummy frames.
7273 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7275 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7276 size computation for alloca.
7277 (sh_fp_frame_init_saved_regs): Likewise.
7279 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7281 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7282 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7283 * arm-tdep.c (arm_store_return_value): Use them.
7284 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7285 * remote-rdp.c (remote_rdp_fetch_register): Use
7286 ARM_MAX_REGISTER_RAW_SIZE.
7287 (remote_rdp_store_register): Likewise.
7289 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7291 * dwarf2cfi.c: Code cleanup, removed unused variables,
7292 added default labels to switch {} statements.
7293 * x86-64-tdep.c: Ditto.
7294 * x86-64-linux-nat.c: Ditto.
7296 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7298 * solib.h: Protect against multiple inclusion.
7300 2002-05-06 Jim Blandy <jimb@redhat.com>
7302 Add first preprocessor macro-expansion files.
7303 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7304 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7305 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7306 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7307 (COMMON_OBS): Add macrotab.o, macroexp.o.
7308 (macroexp.o, macrotab.o): New rules.
7310 Separate the job of reading the line number info statement program
7311 header (...expialidocious) out into its own function.
7312 * dwarf2read.c (struct line_head, struct filenames, struct
7313 directories): Replace with...
7314 (struct line_header): New structure, containing the full
7315 contents of the statement program header, including the
7316 include directory and file name tables.
7317 (read_file_scope): If we have line number info, instead of just
7318 calling dwarf_decode_lines to do all the work, call
7319 dwarf_decode_line_header first to get a `struct line_header'
7320 containing the data in the statement program header, and then
7321 pass that to dwarf_decode_lines, which will pick up where that
7322 left off. Be sure to clean up the `struct line_header' object.
7323 (dwarf_decode_line_header, free_line_header, add_include_dir,
7324 add_file_name): New functions.
7325 (dwarf_decode_lines): Move all the code to read the statement
7326 program header into dwarf_decode_line_header. Take the line
7327 header it built as the first argument, instead of the offset to
7328 the compilation unit's line number info. Use the new `struct
7329 line_header' type instead of the old structures. No need to do
7330 cleanups here now, since we don't allocate anything.
7331 (dwarf2_statement_list_fits_in_line_number_section,
7332 dwarf2_line_header_too_long): New complaints.
7334 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7336 * gdbtypes.c (init_vector_type): New function.
7337 (build_builtin_type_vec128): Simplify the representation of SIMD
7339 (build_gdbtypes): Initialize new builtin vector types.
7340 (_initialize_gdbtypes): Register new vector types with gdbarch.
7341 (builtin_type_v4_float, builtin_type_v4_int32,
7342 builtin_type_v8_int16, builtin_type_v16_int8,
7343 builtin_type_v2_int32, builtin_type_v4_int16,
7344 builtin_type_v8_int8): New (renamed) SIMD types.
7346 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7348 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7349 (i387_fill_fxsave): Likewise.
7351 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7353 * alpha-tdep.c (alpha_extract_return_value): Don't use
7354 non-constant array size in prototype.
7356 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7358 From Brian Taylor <briant at model dot com>:
7359 * ui-out.c (ui_out_field_core_addr): Use the function
7360 longest_local_hex_string_custom'to format addresses > 32 bits
7363 * ui-out.c (ui_out_field_core_addr): Update comment.
7365 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7367 * stack.c (select_and_print_frame): Make static. Delete the
7369 (func_command): Update call.
7370 (select_frame_command): Delete code computing the frame level.
7371 * frame.h (select_and_print_frame): Delete declaration.
7373 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7375 * sparc-tdep.c (sparc_get_saved_register): Comment why
7376 get_prev_frame call is safe.
7378 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7380 * frame.h (select_frame): Delete level parameter.
7381 * stack.c (select_frame): Update. Use frame_relative_level to
7382 obtain the frame's level.
7383 (select_and_print_frame): Update call.
7384 (select_frame_command): Ditto.
7385 (up_silently_base): Ditto.
7386 (down_silently_base): Ditto.
7387 * ocd.c (ocd_start_remote): Ditto.
7388 * remote-rdp.c (remote_rdp_open): Ditto.
7389 * remote-mips.c (mips_initialize): Ditto.
7390 (common_open): Ditto.
7391 * remote-e7000.c (e7000_start_remote): Ditto.
7392 * m3-nat.c (select_thread): Ditto.
7393 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7394 (child_get_current_exception_event): Ditto.
7395 * varobj.c (varobj_create): Ditto.
7396 (varobj_update): Ditto.
7397 (c_value_of_root): Ditto.
7398 * tracepoint.c (finish_tfind_command): Ditto.
7399 * corelow.c (core_open): Ditto.
7400 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7401 * thread.c (info_threads_command): Ditto.
7402 (switch_to_thread): Ditto.
7403 * infrun.c (normal_stop): Ditto.
7404 (restore_selected_frame): Ditto.
7405 (restore_inferior_status): Ditto.
7406 * breakpoint.c (insert_breakpoints): Ditto.
7407 (watchpoint_check): Ditto.
7408 (bpstat_stop_status): Ditto.
7409 (do_enable_breakpoint): Ditto.
7410 * blockframe.c (flush_cached_frames): Ditto.
7411 (reinit_frame_cache): Ditto.
7413 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7415 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7418 2002-05-04 Jim Blandy <jimb@redhat.com>
7420 * gdbtypes.c (replace_type): Doc fix.
7422 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7424 * valprint.c (strcat_longest): Delete commented out function.
7427 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7429 * MAINTAINERS: Mark a29k as deleted.
7430 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7431 Move new configurations to the top.
7432 * configure.tgt: Remove a29k.
7433 * config/a29k/tm-vx29k.h: Delete.
7434 * config/a29k/vx29k.mt: Delete.
7435 * config/a29k/tm-a29k.h: Delete.
7436 * config/a29k/a29k-udi.mt: Delete.
7437 * config/a29k/a29k.mt: Delete.
7438 * a29k-tdep.c: Delete.
7439 * remote-udi.c: Delete.
7440 * remote-mm.c: Delete.
7441 * remote-eb.c: Delete.
7442 * remote-adapt.c: Delete.
7443 * Makefile.in: Remove obsolete code.
7444 * config/s390/s390x.mt: Ditto.
7445 * config/s390/s390.mt: Ditto.
7446 * config/sparc/sparclynx.mh: Ditto.
7447 * config/sparc/linux.mh: Ditto.
7448 * config/pa/hppaosf.mh: Ditto.
7449 * config/pa/hppabsd.mh: Ditto.
7450 * config/ns32k/nbsd.mt: Ditto.
7451 * config/mips/vr5000.mt: Ditto.
7452 * config/m68k/sun3os4.mh: Ditto.
7453 * config/m68k/nbsd.mt: Ditto.
7454 * config/m68k/m68klynx.mh: Ditto.
7455 * config/m32r/m32r.mt: Ditto.
7456 * config/i386/x86-64linux.mt: Ditto.
7457 * config/i386/nbsdelf.mt: Ditto.
7458 * config/i386/nbsd.mt: Ditto.
7459 * config/i386/i386lynx.mh: Ditto.
7461 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7463 * target.c (debug_print_register): New function. Handle oversize
7465 (debug_to_fetch_registers): Call.
7466 (debug_to_store_registers): Call.
7468 2002-05-03 Jim Blandy <jimb@redhat.com>
7470 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7471 (read_type): Doc fix.
7472 * gdbtypes.c (replace_type): Doc fix.
7474 * stabsread.c (multiply_defined_struct): New complaint.
7475 (read_struct_type): If the type we were passed isn't empty, or
7476 incomplete, don't read the new struct type into it; complain,
7477 and return the original type unchanged. Take a new `type_code'
7478 argument, which is the type code for the new type.
7479 (read_type): Rather than storing the type's type code here, pass
7480 it as an argument to read_struct_type, and let that take care of
7481 storing it. That way, we don't overwrite the original type code,
7482 so read_struct_type can use it to decide whether we're overwriting
7483 something we shouldn't.
7484 (complain_about_struct_wipeout): New function.
7486 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7488 * gdbarch.sh: Assert that gdbarch is non-NULL.
7489 * gdbarch.c: Regenerate.
7491 2002-05-03 Jason Merrill <jason@redhat.com>
7493 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7496 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7498 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7499 (x86_64_dwarf2gdb_regno_map_length),
7500 (x86_64_dwarf2_reg_to_regnum): Added.
7501 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7502 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7503 (_initialize_x86_64_tdep): Synced with the change above.
7504 (x86_64_skip_prologue): Reformulated message.
7506 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7508 * f-exp.y: Also use new prev_lexptr variable
7509 to improve error reporting. Based on Michael Snyder
7510 2002-04-24 dated patch to c-exp.y.
7511 * jv-exp.y: Likewise.
7512 * m2-exp.y: Likewise.
7514 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7516 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7517 we are dealing with vectors.
7519 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7521 * config/m68k/tm-nbsd.h: Obvious fix,
7522 correct machine name.
7524 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7526 * p-typeprint.c (pascal_type_print_base): Add support
7527 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7529 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7531 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7532 for fondamental pascal 'char' type.
7534 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7536 * p-lang.h (is_pascal_string_type): Declaration changed,
7537 new sixth argument of type char ** added.
7538 * p-lang.c (is_pascal_string_type): Implementation
7539 changed. Args length_pos, length_size, string_pos, char_size
7540 can now be NULL. New argument arrayname set to the field
7541 name of the char array. Return value set to char array
7542 field index plus one.
7543 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7544 is_pascal_string_type function.
7546 2002-05-02 Andrew Cagney <cagney@redhat.com>
7548 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7549 <cagney@redhat.com> change.
7550 * gdbarch.c: Regenerate.
7552 2002-05-02 Andrew Cagney <cagney@redhat.com>
7554 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7555 before probing for a new one. Detect errorenous gdbarch_init
7557 * gdbarch.c: Regenerate.
7559 2002-05-01 Andrew Cagney <cagney@redhat.com>
7561 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7562 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7563 * config/v850/tm-v850.h: Ditto. Update copyright.
7565 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7567 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7570 2002-04-30 Michael Snyder <msnyder@redhat.com>
7572 * arm-tdep.c: Whitespace clean-ups.
7573 (arm_skip_prologue): Fix thinko; two lines
7574 should have been removed as part of 4/24 change.
7576 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7578 * rs6000-tdep.c: Added comment describing how fpscr register
7579 numbers were chosen.
7581 2002-04-30 Michael Snyder <msnyder@redhat.com>
7583 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7585 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7587 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7588 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7589 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7591 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7593 From Louis Hamilton <hamilton@redhat.com>:
7594 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7595 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7596 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7597 not bfd-private xcoff data, to determine wordsize.
7598 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7600 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7602 GDB 5.2 released from 5.2 branch.
7604 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7606 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7607 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7608 (x86_64_register_info_table): Added comments with register numbers.
7610 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7612 * rs6000-tdep.c (rs6000_extract_return_value,
7613 rs6000_store_return_value): Handle returning vectors.
7614 (rs6000_gdbarch_init): Use
7615 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7616 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7618 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7620 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7621 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7623 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7625 * hpread.c (hpread_psymtab_to_symtab_1,
7626 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7627 with fprintf_unfiltered (gdb_stderr,...).
7629 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7631 * remote-array.c (printf_monitor, write_monitor,
7632 array_insert_breakpoint, array_remove_breakpoint ):
7633 Replace fprintf (stderr,...
7634 with fprintf_unfiltered (gdb_stderr,....
7635 * remote-es.c: Likewise.
7636 * remote-os9k.c: Likewise.
7637 * remote-st.c: Likewise.
7639 2002-04-28 Andreas Schwab <schwab@suse.de>
7641 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7642 linux-proc.o and gcore.o.
7644 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7646 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7647 code without frame pointers.
7649 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7651 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7654 2002-04-26 Ben Elliston <bje@redhat.com>
7656 * target.c (do_xfer_memory): Correct reference to the new option
7657 "trust-readonly-sections".
7659 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7661 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7662 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7663 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7665 (read_array_type): Record the fact that this array type is really a
7666 vector (i.e. are passed in by value).
7668 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7670 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7671 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7672 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7673 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7674 * alpha-linux-tdep.c: Include frame.h.
7675 (alpha_linux_sigcontext_addr): New function.
7676 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7677 alpha_linux_sigcontext_addr.
7678 * alpha-osf1-tdep.c: Include gdbcore.h.
7679 (alpha_osf1_sigcontext_addr): New function.
7680 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7681 alpha_osf1_sigcontext_addr.
7682 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7683 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7685 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7687 * stack.c (selected_frame_level):
7688 (select_frame): Do not set selected_frame_level.
7689 * frame.h (selected_frame_level): Delete declaration.
7691 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7693 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7694 convert_from_func_ptr-addr when AIX / PowerOpen.
7696 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7698 * valops.c (hand_function_call): Call
7699 generic_save_call_dummy_addr.
7700 * frame.h (generic_save_call_dummy_addr): Declare.
7701 * blockframe.c (struct dummy_frame): Add fields call_lo and
7703 (generic_find_dummy_frame): Check for PC in range call_lo to
7704 call_hi instead of entry_point_address.
7705 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7706 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7707 (generic_save_call_dummy_addr): New function.
7709 2002-04-24 David S. Miller <davem@redhat.com>
7711 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7712 sparc_skip_prologue.
7713 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7714 information to find prologue when possible.
7715 (sparc_prologue_frameless_p): Call examine_prologue directly.
7716 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7717 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7719 (SKIP_PROLOGUE): Likewise.
7721 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7723 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7724 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7725 indicate that the condition it was testing is always true.
7726 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7727 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7728 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7730 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7732 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7733 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7734 tdep->jb_pc and tdep->jb_elt_size.
7735 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7736 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7737 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7738 * alpha-nat.c (get_longjmp_target): Remove.
7739 (JB_ELEMENT_SIZE): Ditto.
7741 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7742 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7743 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7744 to alpha_get_longjmp_target.
7745 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7746 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7747 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7749 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7751 * README: Update to GDB 5.2.
7753 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7755 * gdbarch.sh (LC_ALL): Set to `c'.
7757 2002-04-25 Theodore A. Roth <troth@verinet.com>
7759 * avr-tdep.c: Ran through gdb_indent.sh.
7761 2002-04-25 Theodore A. Roth <troth@verinet.com>
7763 * MAINTAINERS: Add myself as AVR maintainer.
7764 * NEWS: Note new target avr.
7766 2002-04-25 Theodore A. Roth <troth@verinet.com>
7768 * Makefile.in: Add support for AVR target.
7769 * configure.tgt: Add support for AVR target.
7770 * avr-tdep.c: New file
7771 * config/avr/avr.mt: New file.
7773 2002-04-25 Theodore A. Roth <troth@verinet.com>
7775 * MAINTAINERS: Add myself to write-after-approval.
7777 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7779 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7780 with fprintf_unfiltered (gdb_stderr,....
7782 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7785 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7787 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7789 * p-exp.y: Also use new prev_lexptr variable
7790 to improve error reporting. Based on Michael Snyder
7791 2002-04-24 dated patch to c-exp.y.
7793 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7795 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7796 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7797 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7799 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7801 (FUNCTION_START_OFFSET): Remove.
7802 (BREAKPOINT): Ditto.
7804 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7806 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7809 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7811 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7812 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7813 alpha_linux_pc_in_sigtramp.
7814 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7815 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7816 alpha_osf1_pc_in_sigtramp.
7817 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7818 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7819 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7820 alphafbsd_pc_in_sigtramp.
7821 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7822 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7823 alphanbsd_pc_in_sigtramp.
7824 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7825 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7827 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7829 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7831 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7833 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7835 (alphanbsd-nat.o): New dependency list.
7836 (alphanbsd-tdep.o): Ditto.
7837 * NEWS: Note new native NetBSD/alpha configuration.
7838 * alphanbsd-nat.c: New file.
7839 * alphanbsd-tdep.c: Ditto.
7840 * configure.host (alpha*-*-netbsd*): New host.
7841 * configure.tgt (alpha*-*-netbsd*): New target.
7842 * config/alpha/nbsd.mh: New file.
7843 * config/alpha/nbsd.mt: Ditto.
7844 * config/alpha/nm-nbsd.h: Ditto.
7845 * config/alpha/tm-nbsd.h: Ditto.
7847 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7849 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7850 (alpha-osf1-tdep.o): New dependency list.
7851 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7852 and skip_sigtramp_frame members.
7853 * alpha-linux-tdep.c: Include gdbcore.h.
7854 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7855 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7856 * alpha-osf1-tdep.c: New file.
7857 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7859 (alpha_frame_past_sigtramp_frame): New function.
7860 (alpha_dynamic_sigtramp_offset): Ditto.
7861 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7862 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7863 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7864 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7865 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7866 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7867 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7868 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7869 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7870 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7871 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7872 to find_solib_trampoline_target.
7873 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7874 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7875 (SKIP_TRAMPOLINE_CODE): Remove.
7876 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7877 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7878 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7879 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7880 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7881 (PROC_SIGTRAMP_MAGIC): Ditto.
7882 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7883 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7884 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7885 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7886 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7888 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7890 * NEWS: Note that Alpha targets are now multi-arch.
7892 2002-04-24 Michael Snyder <msnyder@redhat.com>
7894 * parser-defs.h (prev_lexptr): New external variable.
7895 * parse.c (parse_exp_1): Set prev_lexptr to null before
7896 calling the language-specific parser.
7897 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7898 (yyerror): Use prev_lexptr in error reporting.
7900 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7902 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7903 * gregset.h: If FILL_FPXREGSET is defined, provide
7904 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7905 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7906 is defined, call fill_fpxregset.
7908 2002-04-24 Roland McGrath <roland@frob.com>
7910 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7911 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7912 (supply_gregset, supply_fpregset): New functions.
7914 * gnu-nat.c (gnu_find_memory_regions): New function.
7915 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7916 (gnu_xfer_memory): Add a cast.
7918 2002-04-24 Michael Snyder <msnyder@redhat.com>
7920 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7921 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7922 of argument regs ("str r(0123), [r11, #-nn"]).
7923 (arm_skip_prologue): Better handling for frameless functions.
7924 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7925 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7927 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7929 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7930 NUM_PSEUDO_REGS can be used.
7932 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7934 * arch-utils.h: Update copyright.
7936 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7937 * gdbarch.h, gdbarch.c: Re-generate.
7939 * inferior.h (IN_SIGTRAMP): Delete definition.
7940 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7941 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7943 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7944 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7945 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7946 (find_proc_framesize): Ditto.
7947 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7948 (alpha_init_extra_frame_info): Ditto.
7949 * infrun.c (handle_inferior_event): Ditto.
7950 (handle_inferior_event): Ditto.
7951 (check_sigtramp2): Ditto.
7952 * blockframe.c (create_new_frame): Ditto.
7953 (get_prev_frame): Ditto.
7954 * ppc-linux-tdep.c: Update comments.
7955 * i386-linux-tdep.c: Update comments.
7956 * breakpoint.c (bpstat_what): Update comment.
7958 2002-04-24 David S. Miller <davem@redhat.com>
7960 * i960-tdep.c (register_in_window_p): New function.
7961 (i960_find_saved_register): Use it instead of
7962 REGISTER_IN_WINDOW_P.
7963 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7965 * symtab.h (find_stab_function_addr): Kill extern.
7966 * minsyms.c (find_stab_function_addr): Remove from here...
7967 * dbxread.c: ... to here, and mark it static.
7969 2002-04-20 David S. Miller <davem@redhat.com>
7971 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7972 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7974 2002-04-21 David S. Miller <davem@redhat.com>
7976 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7977 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7978 (vx_write_register): Likewise.
7980 2002-04-23 J. Brobecker <brobecker@gnat.com>
7982 * source.c (is_regular_file): New function.
7983 (openp): Check wether file to open is a regular file
7984 to avoid opening directories.
7986 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7988 * findvar.c (extract_signed_integer): Cast printf argument
7989 to suppress format warning.
7990 (extract_unsigned_integer): Likewise.
7991 * infcmd.c (registers_info): Likewise.
7992 * top.c (get_prompt_1): Likewise.
7993 * valops.c (value_assign): Likewise.
7994 * valprint.c (print_decimal): Likewise.
7996 2002-04-22 H.J. Lu (hjl@gnu.org)
7998 * c-exp.y (typebase): Support
8000 [long|long long|short] [signed|unsigned] [int|]
8004 signed [long|long long|short] int
8006 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8008 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8010 * vax-tdep.h: New file.
8011 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8012 Make several routines static.
8013 (vax_get_saved_register): New function.
8014 (vax_gdbarch_init): New function.
8015 (_initialize_vax_tdep): Register vax_gdbarch_init.
8016 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8017 Remove macros now under the control of gdbarch.
8019 2002-04-22 Michael Snyder <msnyder@redhat.com>
8021 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8022 Some whitespace and coding standards tweaks.
8024 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8026 * vax-tdep.c: Include regcache.h.
8027 (vax_call_dummy_words): New.
8028 (sizeof_vax_call_dummy_words): New.
8029 (vax_fix_call_dummy): New function.
8030 (vax_saved_pc_after_call): Ditto.
8031 * config/vax/tm-vax.h: Don't include regcache.h.
8032 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8033 (CALL_DUMMY): Remove.
8034 (CALL_DUMMY_WORDS): Define.
8035 (SIZEOF_CALL_DUMMY_WORDS): Define.
8036 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8038 2002-04-18 Michael Snyder <msnyder@redhat.com>
8040 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8042 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8044 * vax-tdep.c (vax_frame_chain): New function.
8045 (vax_push_dummy_frame): Ditto.
8046 (vax_pop_frame): Ditto.
8047 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8048 (FRAMELESS_FUNCTION_INVOCATION): Use
8049 generic_frameless_function_invocation_not.
8050 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8051 (POP_FRAME): Use vax_pop_frame.
8053 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8055 * vax-tdep.c (vax_store_struct_return): New function.
8056 (vax_extract_return_value): Ditto.
8057 (vax_store_return_value): Ditto.
8058 (vax_extract_struct_value_address): Ditto.
8059 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8060 vax_store_struct_return.
8061 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8062 (STORE_RETURN_VALUE): Use vax_store_return_value.
8063 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8065 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8067 * vax-tdep.c (vax_frame_saved_pc): New function.
8068 (vax_frame_args_address_correct): Ditto.
8069 (vax_frame_args_address): Ditto.
8070 (vax_frame_locals_address): Ditto.
8071 (vax_frame_num_args): Move code to be in proximity to
8072 other frame-related functions.
8073 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8074 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8075 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8076 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8077 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8079 2002-04-22 H.J. Lu (hjl@gnu.org)
8081 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8084 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8086 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8087 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8088 (FRAME_INIT_SAVED_REGS): New macro.
8090 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8092 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8094 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8096 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8098 (fetch_osf_core_registers): Likewise.
8099 (supply_gregset): Likewise.
8101 2002-04-22 J. Brobecker <brobecker@gnat.com>
8103 * symfile.h (get_section_index): Define.
8104 * symfile.c (get_section_index): New function.
8105 * mdebugread.c (SC_IS_SBSS): New macro.
8106 (SC_IS_BSS): Return true for the scBss storage class only, as
8107 the scSBss storage class refers to the .sbss section.
8108 (parse_partial_symbols): Discard the symbols which associated
8109 section does not exist.
8110 Make sure to use the .sbss section index for symbols which
8111 storage class is scBss, rather than using the .bss section index.
8113 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8115 * vax-tdep.c: Update copyright years.
8116 (vax_register_name): New function.
8117 (vax_register_byte): Ditto.
8118 (vax_register_raw_size): Ditto.
8119 (vax_register_virtual_size): Ditto.
8120 (vax_register_virtual_type): Ditto.
8121 * config/vax/tm-vax.h: Update copyright years.
8122 (REGISTER_NAMES): Remove.
8123 (REGISTER_NAME): Define.
8124 (REGISTER_BYTE): Use vax_register_byte.
8125 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8126 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8127 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8129 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8131 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8133 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8135 2002-04-21 David S. Miller <davem@redhat.com>
8137 * arch-utils.c (generic_prologue_frameless_p): Kill
8138 SKIP_PROLOGUE_FRAMELESS_P code.
8139 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8141 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8142 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8143 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8145 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8146 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8147 (sparc_gdbarch_init): Pass it to
8148 set_gdbarch_prologue_frameless_p.
8150 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8152 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8153 (alphabsd-nat.o): New dependency list.
8155 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8157 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8159 (alpha-linux-tdep.o): New dependency list.
8160 (alphafbsd-tdep.o): Likewise.
8162 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8164 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8166 * alpha-tdep.c: ...from here.
8167 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8169 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8171 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8172 prototype from here...
8173 * alpha-tdep.h: ...to here.
8175 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8177 * frame.h (selected_frame_level): Document as deprecated.
8178 (frame_relative_level): Declare.
8179 * stack.c (frame_relative_level): New function.
8180 (selected_frame_level): Document as deprecated.
8181 (select_frame): Do not set the selected_frame_level.
8183 * stack.c (frame_info, record_selected_frame): Update.
8184 (frame_command, current_frame_command): Update.
8185 (up_silently_base, up_command, down_silently_base): Update.
8186 (down_command): Update.
8187 * inflow.c (kill_command): Update.
8188 * tracepoint.c (finish_tfind_command): Update.
8189 * corelow.c (core_open): Update.
8190 * thread.c (info_threads_command): Update.
8191 (do_captured_thread_select): Update.
8192 * infcmd.c (finish_command): Update.
8193 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8195 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8197 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8199 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8201 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8204 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8206 * alphafbsd-tdep.c: Update copyright years. Include
8208 (alphafbsd_use_struct_convention): Make static.
8209 (alphafbsd_init_abi): New function.
8210 (_initialize_alphafbsd_tdep): New function.
8211 * config/alpha/tm-fbsd.h: Update copyright years.
8212 (USE_STRUCT_CONVENTION): Remove.
8214 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8216 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8217 an Alpha ABI variant.
8218 (alpha_abi_handler_list): Declare.
8219 (alpha_gdbarch_register_os_abi): New function.
8220 (alpha_gdbarch_init): Give registered ABI variant handlers a
8221 chance to tweak the gdbarch once we have set up defaults.
8222 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8224 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8226 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8227 to standard_coerce_float_to_double.
8228 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8230 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8232 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8233 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8234 from gdbarch_tdep rather than a constant.
8235 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8236 the default text address for all Alpha Unix ABIs.
8237 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8238 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8240 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8242 * alpha-tdep.h: New file. Includes several Alpha target constants
8244 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8245 let gdbarch deal with.
8246 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8247 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8249 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8250 Alpha target register names.
8251 * alphabsd-nat.c: Likewise.
8252 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8253 Alpha target register names. Make serveral routines static.
8254 (alpha_get_saved_register): New function.
8255 (alpha_abi_names): New.
8256 (process_note_abi_tag_sections): New function.
8257 (get_elfosabi): New function.
8258 (alpha_gdbarch_init): New function.
8259 (alpha_dump_tdep): New function.
8260 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8262 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8264 * frame.c (find_saved_register): Delete #ifdef
8265 HAVE_REGISTER_WINDOWS code.
8266 * config/sparc/tm-sparc.h: Update comments.
8267 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8269 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8271 * i960-tdep.c (i960_find_saved_register): New function.
8272 (i960_get_saved_register): New function.
8273 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8274 (i960_get_saved_register): Declare.
8275 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8277 2002-04-20 David S. Miller <davem@redhat.com>
8279 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8281 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8283 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8284 instead of NUM_PSEUDO_REGS.
8286 2002-04-20 David S. Miller <davem@redhat.com>
8288 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8289 GDB_MULTI_ARCH_PARTIAL
8290 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8291 define, let tm-sp64.h do it.
8293 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8295 * frame.c (find_saved_register): Avoid a NULL pointer
8296 dereference and actually walk the frame list.
8298 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8300 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8301 sorted in most most-recent-used order. Document.
8302 * gdbarch.h, gdbarch.c: Regenerate.
8304 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8306 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8308 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8309 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8310 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8313 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8316 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8317 (build_builtin_type_vec128): Ditto.
8318 (append_composite_type_field): Fix calculation of type length in
8321 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8323 * config/djgpp/README: Update.
8325 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8328 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8330 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8331 (alpha_setup_arbitrary_frame): ...to this.
8332 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8333 for alpha_setup_arbitrary_frame.
8335 2002-04-18 Andrew Cagney <cagney@redhat.com>
8337 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8338 * gdbarch.h, gdbarch.c: Regenerate.
8340 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8341 * target.h (memory_breakpoint_from_pc): Update declaration.
8342 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8344 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8345 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8346 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8347 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8348 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8349 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8350 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8351 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8352 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8353 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8354 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8355 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8357 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8359 * monitor.c (monitor_insert_breakpoint): Ditto.
8360 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8362 * config/mcore/tm-mcore.h: Update copyright.
8363 * mem-break.c: Ditto.
8364 * xstormy16-tdep.c: Ditto.
8366 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8368 * p-exp.y: Add precedence rule for '^' token.
8369 This removes the shift/reduce conflicts.
8370 Remove the comment concerning these shift/reduce conflicts.
8372 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8374 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8375 (registers_powerpc_nofp): New register set for processors
8376 without floating point unit.
8378 2002-04-18 David S. Miller <davem@redhat.com>
8380 * MAINTAINERS: Add myself to write-after-approval.
8382 2002-04-17 Michael Snyder <msnyder@redhat.com>
8384 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8386 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8388 * rs6000-tdep.c (frame_initial_stack_address): Use
8389 frame_register_read to read the alloca_reg.
8391 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8393 * frame.c (find_saved_register): Find saved registers in the next
8397 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8399 * gdbarch.sh (LANG): Set to ``c''.
8401 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8403 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8405 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8407 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8410 * hpread.c (hpread_get_lntt): Add declaration.
8411 Also fix PR gdb/391.
8413 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8415 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8416 * aclocal.m4, configure: Re-generate.
8419 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8421 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8422 instead of tm_print_insn.
8424 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8426 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8428 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8430 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8431 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8432 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8434 2002-04-12 Don Howard <dhoward@redhat.com>
8436 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8437 max_user_call_depth.
8438 (init_cmd_lists): Initialize the new value;
8439 * cli/cli-script.c (execute_user_command): Limit the call depth of
8440 user defined commands. This avoids a core-dump when user commands
8441 are infinitly recursive.
8443 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8445 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8446 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8447 from tdep struct instead of DEFAULT_LR_SAVE.
8448 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8449 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8450 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8452 2002-04-12 Michael Snyder <msnyder@redhat.com>
8454 * Remote.c: Spelling fix.
8455 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8456 If no symbol found for "sbrk", try "_sbrk".
8457 (make_output_phdrs): Use bfd_section_name.
8458 (gcore_copy_callback): Use bfd_section_name.
8459 * eval.c: Indentation fix-ups.
8460 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8461 in case it gets applied to an address that is already
8462 in the instruction space.
8463 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8464 * symfile.c: Fix indentation, long lines.
8465 * source.c: White space fix-up.
8467 2002-04-12 Andrew Cagney <cagney@redhat.com>
8469 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8470 * frame.c (frame_register_read): New function. Return non-zero on
8472 (read_relative_register_raw_bytes_for_frame): Delete.
8473 (read_relative_register_raw_bytes): Delete.
8474 * frame.h (frame_register_read): Declare.
8475 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8477 * infcmd.c (do_registers_info): Ditto.
8478 * hppa-tdep.c: Ditto.
8479 * rs6000-tdep.c: Ditto.
8480 * h8500-tdep.c: Ditto.
8481 * mips-tdep.c: Ditto.
8482 * h8300-tdep.c: Ditto.
8483 * z8k-tdep.c: Ditto.
8485 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8487 From Jimi X <jimix@watson.ibm.com>:
8488 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8491 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8493 From Jimi X <jimix@watson.ibm.com>:
8494 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8497 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8499 From Jimi X <jimix@watson.ibm.com>:
8500 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8501 register sets for these processor variants.
8503 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8505 * regformats/reg-ppc.dat: Support FPSCR.
8507 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8509 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8510 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8511 Add fpscr as an invalid/unfetchable register.
8512 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8513 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8514 (fill_fpregset): Add support for register fpscr.
8515 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8516 (fill_gregset): Account for the fact that register ``mq'' might
8518 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8519 (registers_power): Add fpscr to register set at slot 71.
8520 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8521 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8523 2002-04-11 Michael Snyder <msnyder@redhat.com>
8525 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8526 * configure: Regenerate.
8527 * config.in: Regenerate.
8528 * acconfig.h: Add define for _SYSCALL32.
8529 * core-sol2.c: Remove #define _SYSCALL32.
8530 * solib-legacy.c: Remove #define _SYSCALL32.
8532 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8534 * stack.c (select_frame): Cleanup internal error message, do not
8537 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8539 * stack.c (select_frame): Check that selected_frame and the
8540 specified level are as expected.
8541 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8543 * frame.h (struct frame_info): Add field `level'. Update
8545 Work-in-progress PR gdb/464.
8547 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8549 * maint.c (maint_print_section_info): Rename print_section_info.
8550 (print_bfd_section_info, print_objfile_section_info): Update.
8551 * inferior.h (struct gdbarch): Add opaque declaration.
8552 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8553 * gdbarch.h: Regenerate.
8555 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8557 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8558 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8559 (kernel_u_size): Added.
8560 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8561 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8563 2002-04-04 Jim Ingham <jingham@apple.com>
8565 * valarith.c (find_size_for_pointer_math): New function, either returns
8566 the size for a pointer's target, returns 1 for void *, or errors for
8568 (value_add, value_sub): use find_size_for_pointer_math.
8570 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8572 * linux-low.c (linux_look_up_symbols): New hook.
8573 (linux_target_ops): Add linux_look_up_symbols.
8574 * remote-utils.c (decode_address): New function.
8575 (look_up_one_symbol): New function.
8576 * server.c (handle_query): Call target look_up_symbols hook.
8577 * server.h (look_up_one_symbol): Add prototype.
8578 * target.h (struct target_ops): Add look_up_symbols hook.
8580 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8582 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8583 override FP_REGNUM with frame->fp. Update copyright.
8584 * parse.c (num_std_regs, std_regs): Delete.
8585 (target_map_name_to_register): Do not search std_regs. Update
8586 function description.
8587 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8588 declarations. Update copyright.
8591 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8593 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8594 after the last symbol in a block.
8596 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8598 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8599 is non zero as a found symbol.
8601 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8603 * findvar.c: Include "builtin-regs.h".
8604 (value_of_register): Call value_of_builtin_reg when applicable.
8605 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8606 (target_map_name_to_register): Call
8607 builtin_reg_map_name_to_regnum.
8608 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8609 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8610 (builtin_regs_h): Define.
8611 (builtin-regs.o): New target.
8612 (findvar.o): Add $(builtin_regs_h).
8613 * builtin-regs.c, builtin-regs.h: New files.
8614 * std-regs.c: New file.
8615 Partial fix for PR gdb/251.
8617 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8619 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8620 it's no longer required.
8622 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8624 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8626 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8628 From Jimi X <jimix@watson.ibm.com>:
8629 * rs6000-tdep.c (rs6000_software_single_step): Use
8630 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8631 and size. Use target_insert_breakpoint() and
8632 target_remove_breakpoint() to insert and remove breakpoints
8633 instead of explicit memory reads and writes.
8635 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8637 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8638 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8639 ELF_OBJECT_FORMAT ifdef.
8641 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8643 From Jimi X <jimix@watson.ibm.com>:
8644 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8646 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8648 From Jimi X <jimix@watson.ibm.com>:
8649 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8650 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8652 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8654 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8655 s/asprintf/xasprintf/.
8656 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8658 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8660 I believe Jeff Law denies responsability for this one:
8661 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8662 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8663 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8664 Work-around for PR gdb/366.
8666 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8668 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8669 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8670 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8672 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8674 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8675 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8678 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8680 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8683 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8685 * README (Reporting Bugs in GDB): Document the bug web page as the
8686 prefered way of submitting bugs.
8689 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8691 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8693 * gdbarch.h, gdbarch.c: Re-generate.
8695 2002-04-07 Andreas Schwab <schwab@suse.de>
8697 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8698 buffer to regcache_collect.
8700 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8702 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8703 * gdbarch.c, gdbarch.h: Re-generate.
8705 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8707 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8708 declaration. Fix -Werror.
8710 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8712 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8713 * gdbarch.c: Regenerate.
8715 2002-04-05 Michael Snyder <msnyder@redhat.com>
8717 * breakpoint.c (clear_command): Rewrite middle section to
8718 combine two loops with identical control conditions.
8719 Add a cleanup to eliminate a memory leak.
8720 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8722 2002-04-05 H.J. Lu (hjl@gnu.org)
8724 * solib-svr4.c (bkpt_names): Add "__start".
8726 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8728 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8729 as test for 64 bit target.
8731 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8733 * h8500-tdep.c (h8500_write_fp): Delete function.
8734 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8735 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8736 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8737 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8738 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8739 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8741 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8742 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8743 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8744 (d10v_write_fp): Delete function.
8745 * inferior.h (write_fp, generic_target_write_fp): Delete
8747 * regcache.c (generic_target_write_fp): Delete function.
8748 (write_fp): Delete function.
8749 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8750 * gdbarch.h, gdbarch.c: Regenerate.
8751 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8752 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8753 (sparc64_write_fp): Delete declaration.
8754 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8755 (h8500_write_fp): Delete declaration.
8757 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8759 * sparc-tdep.c (sparc64_write_fp): Delete.
8760 (sparc_push_dummy_frame): Replace write_fp call with code to store
8762 (sparc_gdbarch_init): Do not initialize write_fp.
8764 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8766 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8769 2002-03-29 Jim Blandy <jimb@redhat.com>
8771 * stack.c (get_selected_block): Add new argument `addr_in_block',
8772 used to return the exact code address we used to select the block,
8774 * blockframe.c (get_frame_block, get_current_block): Same.
8775 * frame.h (get_frame_block, get_current_block,
8776 get_selected_block): Update declarations.
8777 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8778 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8780 2002-04-05 Michael Snyder <msnyder@redhat.com>
8782 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8785 2002-04-05 J. Brobecker <brobecker@gnat.com>
8787 * utils.c (xfullpath): New function.
8788 * defs.h (xfullpath): Add declaration.
8789 * source.c (openp): Use xfullpath in place of gdb_realpath to
8790 avoid resolving the basename part of filenames when the
8791 associated file is a symbolic link. This fixes a potential
8792 inconsistency between the filenames known to GDB and the
8793 filenames it prints in the annotations.
8794 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8795 to be able to match a filename with either the real filename, or
8796 the name of any symbolic link to this file.
8797 (lookup_partial_symtab): Ditto.
8799 2002-04-04 Michael Snyder <msnyder@redhat.com>
8801 * breakpoint.c: Add support for hardware breakpoints in overlays.
8802 (overlay_events_enabled): New state variable.
8803 (insert_breakpoints): Use overlay_events_enabled to decide
8804 whether to attempt to set a breakpoint at the overlay load addr.
8805 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8806 (remove_breakpoint): Use overlay_events_enabled to decide
8807 whether breakpoints need to be removed from overlay load addr.
8808 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8809 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8810 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8811 disable_overlay_breakpoints): Update overlay_events_enabled.
8813 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8815 * dwarf2read.c (struct function_range): New.
8816 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8817 (check_cu_functions): New.
8818 (read_file_scope): Initialize global function lists.
8819 Call dwarf_decode_line after processing children.
8820 (read_func_scope): Add to global function list.
8821 (dwarf_decode_lines): Call check_cu_functions everywhere
8822 record_line is called. Call record_line with a linenumber
8823 of 0 to mark sequence ends.
8825 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8827 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8828 change sync with glibc.
8830 2002-04-03 Jim Blandy <jimb@redhat.com>
8832 * configure.in: Call AC_C_INLINE.
8833 * configure: Regenerated.
8835 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8837 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8838 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8840 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8842 * NEWS: Mention gcore support on FreeBSD/i386.
8844 * fbsd-proc.c: New file.
8845 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8846 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8848 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8851 2002-03-29 Jim Blandy <jimb@redhat.com>
8853 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8854 unescaped newlines in string literals, but newer ones don't. So
8857 2002-03-26 Michael Snyder <msnyder@redhat.com>
8858 Andrew Cagney <cagney@redhat.com>
8860 * cli/cli-dump.c: New file. Dump memory to file,
8861 restore file to memory.
8862 * cli/cli-dump.h: New file.
8863 * Makefile.in: Add rules, dependencies for cli-dump.o.
8864 * NEWS: Mention new commands.
8866 2002-03-28 Michael Snyder <msnyder@redhat.com>
8868 * symfile.c (symbol_file_add): Move test for null symbols to later.
8870 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8872 From veksler at il.ibm.com:
8873 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8874 the xstrduped original path.
8877 2002-03-27 Michael Snyder <msnyder@redhat.com>
8879 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8880 * infcmd.c (_initialize_infcmd): Ditto.
8881 * language.c (_initialize_language): Ditto.
8882 * symfile.c (_initialize_symfile): Ditto.
8883 * top.c (_init_main): Ditto.
8884 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8886 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8888 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8889 vector registers handling.
8890 (skip_prologue): Handle new AltiVec instructions. Fill in new
8891 fields of frame data.
8892 (frame_get_saved_regs): Fill in information for AltiVec registers.
8894 2002-03-27 Jim Blandy <jimb@redhat.com>
8896 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8897 a function; leave this macro here to invoke that function.
8898 (symbol_init_mangled_name): Declaration for that function.
8899 * symtab.c (symbol_init_mangled_name): New function.
8901 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8903 * valarith.c: Replace strerror with safe_strerror.
8904 * tracepoint.c: Ditto.
8906 * go32-nat.c: Ditto.
8910 2002-03-27 Andreas Schwab <schwab@suse.de>
8912 * event-top.c (command_line_handler): Remove useless if.
8914 2002-03-27 Andreas Jaeger <aj@suse.de>
8916 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8919 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8921 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8922 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8923 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8924 (x86_64_linux_dr_get_status, supply_gregset),
8925 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8926 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8927 (x86_64_register_info_table): Add.
8928 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8929 (x86_64_register_raw_size, x86_64_register_virtual_type),
8930 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8931 general x86_64_register_info_table.
8932 (i386_gdbarch_init): gdbarch_register_bytes is now set
8933 dynamicaly during initialization.
8934 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8935 * gdbserver/linux-x86-64-low.c: Ditto.
8937 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8939 * gdbserver/server.c (main): Call target_signal_to_host_p
8940 and target_signal_to_host on signals received from the remote.
8941 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8942 target_signal_from_host on signals sent to the remote.
8943 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8944 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8946 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8948 * signals/signals.c: Include "server.h" in gdbserver build.
8949 (target_signal_from_name): Don't use STREQ.
8950 (_initialize_signals): Likewise. Don't include function in
8953 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8955 * signals.c: Moved to...
8956 * signals/signals.c: Here.
8957 * Makefile (signals.o): Update.
8959 2002-03-26 Jeff Law (law@redhat.com)
8961 * somread.c (som_symtab_read): Remove some commented out code and
8962 updated related comments. Do not set the minimal symbol table to
8963 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8964 in a dynamic executable.
8965 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8966 where we are unable to find the minimal symbol for the given
8969 2002-03-25 Jeff Law (law@redhat.com)
8971 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8973 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8975 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8977 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8979 * command.h: Update copyright.
8980 (struct cmd_list_element): Replace definition with opaque
8982 (enum cmd_types): Document that it will eventually be moved to
8984 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8985 (MALLOCED_REPLACEMENT): Delete macro.
8986 * Makefile.in (cli_decode_h): Add $(command_h).
8987 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8988 * top.c: Include "cli/cli-decode.h".
8989 * completer.c: Include "cli/cli-decode.h".
8990 * maint.c: Include "cli/cli-decode.h".
8991 * cli/cli-decode.h: Include "command.h".
8992 (enum command_class): Delete.
8993 (enum cmd_types): Comment out.
8994 (enum cmd_auto_boolean): Delete.
8995 (enum var_types): Delete.
8997 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8999 * cli/cli-decode.c: Include "gdb_assert.h".
9000 (add_set_or_show_cmd): New static function.
9001 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9002 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9003 all fields, such as func, from the set command.
9005 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9007 * MAINTAINERS (sh-elf): Change warning flag to -w.
9009 2002-03-23 Andrew Cagney <cagney@redhat.com>
9011 * defs.h (error): Add printf format attribute.
9012 * thread-db.c (thread_from_lwp): Fix error format string.
9013 * stack.c (parse_frame_specification): Ditto.
9014 * cli/cli-decode.c (undef_cmd_error): Ditto.
9015 * scm-lang.c (scm_lookup_name): Ditto.
9016 * tracepoint.c (trace_error): Ditto.
9017 * remote-utils.c (usage): Ditto.
9018 * remote.c (compare_sections_command): Ditto.
9021 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9023 * gdbtypes.c (append_composite_type_field): New function.
9024 (init_composite_type): New function.
9025 * gdbtypes.h (append_composite_type_field): Declare.
9026 (init_composite_type): Ditto.
9028 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9030 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9032 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9033 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9034 structure returning convention for SYSV ABI case, but not
9035 for GNU/Linux, FreeBSD, or NetBSD.
9037 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9039 * symtab.h (lookup_block_symbol): Add mangled_name argument
9042 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9043 with new mangled_name argument.
9044 * linespec.c (decode_line_1): Likewise.
9045 * valops (value_of_this): Likewise.
9046 * symtab.c (lookup_transparent_type): Likewise.
9047 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9048 (lookup_symbol): If we are given a mangled name, pass it down
9049 to lookup_symbol_aux.
9050 (lookup_block_symbol): If we are given a mangled name to check
9051 against, only return symbols which match it.
9053 2002-03-22 Christopher Faylor <cgf@redhat.com>
9055 * win32-nat.c (child_create_inferior): Check for proper shell to use
9056 here, in case the user changes it on the fly.
9057 (_initialize_inftarg): Remove shell path considerations.
9059 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9061 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9062 for gdbarch_max_register_raw_size and max_register_virtual_size.
9063 Adjust copyright year.
9065 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9067 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9068 in a function to cover the entire beginning of the function
9069 as well if it does not already.
9071 2002-03-21 Tom Rix <trix@redhat.com>
9073 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9074 (rs6000_ptrace64): Renamed from ptrace64.
9076 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9078 * gdbserver/remote-utils.c (remote_open): Don't call
9079 getprotobyname, we're all using TCP here so just use
9081 * gdbserver/gdbreplay.c (remote_open): Ditto.
9083 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9085 * regcache.c (_initialize_regcache): No need to call
9086 build_regcache() at this time; it gets called whenever
9087 the gdbarch changes.
9089 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9091 * sparc-nat.c: Include sys/param.h where possible.
9093 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9096 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9097 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9098 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9100 * stabsread.c (rs6000_builtin_type): Likewise.
9101 (read_sun_floating_type): Likewise.
9103 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9105 * stabsread.c (read_member_functions): Remove skip code for duplicate
9106 constructor/destructor methods. Use standard parsing for these
9107 methods and just do not chain them to the list of methods after
9110 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9112 * coffread.c: Remove redundant static declarations. Replace
9113 occurrences of `PTR' with `void *'.
9114 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9115 * top.h (quit_cover): Likewise.
9116 * defs.h (catch_errors): Likewise.
9118 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9120 * defs.h (XMALLOC): Define.
9121 * gdb-events.sh (XMALLOC): Delete macro.
9122 * gdb-events.c, gdb-events.h: Regenerate.
9123 * gdbarch.sh (XMALLOC): Delete macro.
9124 * gdbarch.c: Regenerate.
9125 * serial.c (XMALLOC): Delete macro.
9126 * ui-file.c (XMALLOC): Ditto.
9127 * ser-unix.h (XMALLOC): Ditto.
9128 * sh-tdep.c (XMALLOC): Ditto.
9129 * ui-out.c (XMALLOC): Ditto.
9130 * utils.c (XMALLOC): Ditto.
9131 * i386-tdep.c (XMALLOC): Ditto.
9132 * gdb-events.c (XMALLOC): Ditto.
9133 * d10v-tdep.c (XMALLOC): Ditto.
9134 * cli-out.c (XMALLOC): Ditto.
9136 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9137 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9138 * ui-file.c, ui-out.c: Ditto.
9140 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9142 * command.h (struct cmd_list_element): Add field context.
9143 (set_cmd_context, get_cmd_context): Declare.
9144 * cli/cli-decode.h: Ditto.
9145 * cli/cli-decode.c (get_cmd_context): New function.
9146 (set_cmd_context): New function.
9147 (add_cmd): Initialize context.
9148 Part of fixing PR gdb/145 and PR gdb/146.
9150 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9152 * cli/cli-decode.c (cmd_type): New function.
9153 * command.h (cmd_type): Declare.
9154 * infrun.c (set_schedlock_func): Call function cmd_type.
9155 * kod.c (kod_set_os): Call cmd_type.
9156 * cris-tdep.c (cris_version_update): Use function cmd_type.
9157 (cris_mode_update, cris_abi_update): Ditto.
9159 * command.h: (execute_cmd_post_hook): Declare.
9160 (execute_cmd_pre_hook): Declare.
9161 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9162 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9163 functions. Execute pre/post hook while ensuring that afterwords
9165 * top.c (execute_command): Use execute_cmd_post_hook, and
9166 execute_cmd_pre_hook to execute pre/post commands.
9167 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9169 (hook_stop_stub): Call execute_cmd_pre_hook.
9171 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9173 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9174 set'' and this leads to a core dump. Move xstrdup of
9175 operating_system to after check that it is not NULL.
9177 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9179 * kod.c (kod_set_os): Remove unnecessary check that
9180 ``command->type'' is set_cmd.
9182 * valprint.c (set_input_radix): Use input_radix.
9183 (set_output_radix): Use output_radix.
9184 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9187 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9189 * value.h (struct value): Delete field ``substring_addr''. Change
9190 aligner fields to force_doublest_align, force_longest_align,
9191 force_core_addr_align and force_pointer_aligh.
9193 * value.h (struct value): Fix typo in above change.
9195 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9197 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9198 to fix internal_error from ``maintenance print architecture''.
9200 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9202 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9203 for gcc versions after gcc-2.8.1.
9205 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9207 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9208 for method resolution. Restore adjustment of ``this'' pointer after
9209 calling value_struct_elt, which was accidentally removed during the
9212 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9214 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9216 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9218 * value.h (value_of_register): Update.
9220 2002-03-14 Richard Henderson <rth@redhat.com>
9222 * configure.in: Detect declaration for canonicalize_file_name.
9223 * utils.c (canonicalize_file_name): Declare, if needed.
9224 (gdb_realpath): Prefer realpath if available and usable.
9225 * config.in, configure: Rebuild.
9227 2002-03-14 Richard Henderson <rth@redhat.com>
9229 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9230 a constant array bound.
9232 * MAINTAINERS: Add myself to write-after-approval.
9234 2002-03-14 Michael Snyder <msnyder@redhat.com>
9236 * symfile.c (syms_from_objfile): Return immediately if no syms.
9237 (symbol_file_add): Return immediately if no syms.
9238 (find_sym_fns): Return immediately if no syms.
9240 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9242 * gdbserver/remote-util.c (remote_open): Print remote-side's
9243 IP address when remote debugging over the network.
9245 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9247 * config/sparc/fbsd.mh: Fix copyright.
9248 * config/sparc/fbsd.mt: Likewise.
9250 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9252 * MAINTAINERS: Fix typo in name of gdb warnings option.
9253 (x86-64): Fix formating so that this can be parsed by awk.
9255 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9257 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9258 * defs.h: Include "gdb/signals.h".
9259 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9261 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9263 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9264 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9267 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9268 Don Howard <dhoward@redhat.com>
9270 * mips-tdep.c (ST0_FR): Define.
9271 (mips2_fp_compat): New function, temporarily disabled.
9272 (mips_read_fp_register_single): New function.
9273 (mips_read_fp_register_double): New function.
9274 (mips_print_register): Use them.
9275 (do_fp_register_row): Likewise.
9277 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9279 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9282 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9284 * stabsread.c (read_member_functions): Fix is_stub test for
9285 static member functions, improve comment.
9287 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9289 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9290 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9291 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9292 commands that set boolean values.
9293 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9294 (arm_rdi_resume): Always initialize PC.
9295 (arm_rdi_open): Don't use rslt as a boolean.
9296 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9297 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9298 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9299 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9301 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9303 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9304 * configure: Rebuilt.
9306 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9308 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9309 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9311 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9313 * cli/cli-decode.c (set_cmd_completer): New function.
9314 * command.h (set_cmd_completer): Declare.
9315 * cli/cli-decode.h (set_cmd_completer): Ditto.
9317 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9318 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9319 * win32-nat.c (_initialize_inftarg): Ditto.
9320 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9321 * proc-api.c (_initialize_proc_api): Ditto.
9322 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9323 * source.c (_initialize_source): Ditto.
9324 * exec.c (_initialize_exec): Ditto.
9325 * solib.c (_initialize_solib): Ditto.
9326 * top.c (init_main): Ditto.
9327 * tracepoint.c (_initialize_tracepoint): Ditto.
9328 * symfile.c (_initialize_symfile): Ditto.
9329 * printcmd.c (_initialize_printcmd): Ditto.
9330 * infcmd.c (_initialize_infcmd): Ditto.
9331 * corefile.c (_initialize_core): Ditto.
9333 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9335 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9337 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9339 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9341 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9343 * NEWS: Update headings, 5.2 has branched.
9345 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9347 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9348 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9349 (register_addr, REGISTER_RAW_SIZE): Likewise.
9350 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9351 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9353 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9355 * MAINTAINERS (x86-64): Add myself.
9356 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9357 changed value_ptr -> struct value *
9359 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9361 * configure.host (sparc64-*-freebsd): Add.
9362 * configure.tgt: Likewise.
9363 * config/sparc/fbsd.mh: New file.
9364 * config/sparc/fbsd.mt: Likewise.
9365 * config/sparc/nm-fbsd.h: Likewise.
9366 * config/sparc/tm-fbsd.h: Likewise.
9368 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9370 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9371 regformats/reg-s390x.dat.
9373 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9375 * utils.c: Add FIXME explaining true/false problem.
9377 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9379 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9381 2002-02-28 Michael Chastain <mec@shout.net>
9383 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9385 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9387 * gdbserver/linux-s390-low.c: New file.
9388 * regformats/reg-s390.dat: New file.
9389 * regformats/reg-s390x.dat: New file.
9390 * gdbserver/configure.srv: Add S/390.
9391 * gdbserver/Makefile.in: Add S/390.
9392 * configure.tgt: Enable gdbserver for S/390.
9394 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9396 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9397 first line of the doc string for "info dos", except at the end of
9398 the sentence, since the short help stops at the first period.
9400 2002-02-28 Jason Merrill <jason@redhat.com>
9402 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9404 2002-02-27 Fred Fish <fnf@redhat.com>
9406 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9407 comment (dumy -> dummy).
9409 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9411 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9413 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9415 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9417 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9419 * gdbserver/acconfig.h: New file.
9420 * gdbserver/i387-fp.c: New file.
9421 * gdbserver/i387-fp.h: New file.
9422 * gdbserver/linux-x86-64.c: New file.
9423 * regformats/reg-x86-64.dat: New file.
9424 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9425 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9426 * gdbserver/configure.in: Add support for regsets.
9427 * gdbserver/config.in: Regenerate.
9428 * gdbserver/configure: Regenerate.
9429 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9430 * gdbserver/linux-low.h: New file.
9431 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9433 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9434 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9435 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9436 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9437 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9438 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9439 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9440 "i387-fp.h". Add PTRACE_GETREGS and friends.
9441 * gdbserver/regcache.c (supply_register): New function.
9442 (supply_register_by_name): New function.
9443 (collect_register): New function.
9444 (collect_register_by_name): New function.
9446 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9448 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9449 (config.status): Add configure.srv dependency.
9450 (server_h): Add config.h dependency.
9452 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9454 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9455 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9456 * gdbserver/configure.srv: Change i386-*-linux* to use
9459 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9461 * x86-64-tdep.c: Re-indent. Update copyright date.
9463 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9465 From Michal Ludvig <mludvig@suse.cz>:
9466 * x86-64-tdep.c (value.h): Delete.
9467 (gdb_assert.h): Include.
9468 (x86_64_register_convert_to_virtual,
9469 x86_64_register_convert_to_raw ): Add check which lets only
9470 floating-point values to be converted.
9471 (value_push): Delete.
9472 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9473 (i386_gdbarch_init): Number of register_bytes fixed.
9475 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9477 * MAINTAINERS: Add x86-64 target.
9479 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9481 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9482 * osfsolib.c (solib_map_sections): Ditto.
9483 * irix5-nat.c (solib_map_sections): Ditto.
9484 * corelow.c (gdb_check_format): Ditto.
9485 * symfile.c (symfile_bfd_open): Ditto.
9486 * solib.c (solib_map_sections): Ditto.
9489 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9491 * remote.c (_initialize_remote): By default, disable ``e'' and
9492 ``E'' step out-of-range packets.
9494 2002-02-26 Andreas Schwab <schwab@suse.de>
9496 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9497 m68k_linux_frame_saved_pc.
9498 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9500 (SIGCONTEXT_PC_OFFSET): Remove.
9501 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9502 m68k_linux_sigtramp_saved_pc): New functions.
9503 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9504 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9505 (UCONTEXT_PC_OFFSET): Define.
9506 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9507 non-RT and RT signal trampolines.
9509 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9511 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9512 (TARGET_NBPG, STACK_END_ADDR): Delete
9513 (VARIABLES_INSIDE_BLOCK): Delete.
9515 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9517 * utils.c (perror_with_name): Make string parameter constant.
9518 (print_sys_errmsg): Ditto.
9520 * defs.h (perror_with_name): Update.
9521 (print_sys_errmsg): Update.
9524 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9526 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9527 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9529 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9531 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9532 if it already matches the current architecture from the exec file.
9533 Include arch-utils.h for gdbarch_info_init prototype.
9534 * Makefile.in (rs6000-nat.o): Update dependencies.
9536 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9538 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9539 list of exported variables.
9541 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9543 * gdbserver/configure.srv: New file.
9544 * gdbserver/configure.in: Use configure.srv instead
9545 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9547 * gdbserver/configure: Regenerated.
9548 * gdbserver/terminal.h: New file.
9549 * gdbserver/Makefile.in: Update for configure changes. Remove
9550 more unneeded include paths.
9552 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9554 From wiz at danbala:
9555 * config/sparc/tm-sp64.h: Fix grammar and typos.
9558 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9560 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9561 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9562 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9563 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9564 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9565 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9566 * s390-tdep.c: Ditto.
9567 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9568 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9569 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9570 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9571 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9572 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9573 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9574 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9575 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9576 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9579 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9581 * lin-thread.c: Delete file.
9582 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9583 to gdb_proc_service.h.
9584 * configure: Re-generate.
9586 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9587 * serial.c (serial_open): Delete check for "ocd".
9590 * Makefile.in (linux-thread.o): Delete target.
9591 * linux-thread.c: Delete file.
9593 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9594 renamed SH files to be consistent.
9596 * symtab.c (sort_search_symbols): Use xfree.
9598 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9600 * arm-linux-tdep.c (arm_linux_init_abi): Register
9601 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9602 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9603 definition with undef, since we don't want the sysvr4 definition.
9604 (SKIP_TRAMPOLINE_CODE): Likewise.
9606 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9608 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9610 * configure.in: (AC_CHECK_FUNCS) Added test for
9611 canonicalize_file_name Regenerated.
9612 * config.in, configure: Regenerated.
9613 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9614 defined use canonicalize_file_name.
9616 2002-02-23 Michael Chastain <mec@shout.net>
9618 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9620 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9622 * README: Remove references to cygnus.com.
9623 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9624 dot com'' form. Remove references to cygnus.com and sourceware.
9626 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9628 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9629 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9630 1003.1-2001 no longer allows "head -1".
9631 * gdb/Makefile.in (version.c): Likewise.
9632 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9633 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9634 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9636 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9638 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9639 * command.h (cmd_cfunc_eq): Declare.
9640 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9642 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9643 ``struct cmd_list_element *''.
9644 * cli/cli-cmds.c (is_complete_command): Update. Use
9646 * top.c (execute_command): Pass the command to
9647 is_complete_command.
9648 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9650 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9652 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9653 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9654 architecture defines.
9655 * s390-tdep.c (s390_gdbarch_init): Likewise.
9657 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9659 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9660 (arm_linux_push_arguments): Likewise.
9661 (arm_linux_init_abi): Register them. Also register linux-specific
9663 (find_minsym_and_objfile): Use strcmp, not STREQ.
9664 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9665 (arm_linux_call_dummy_words): Delete declaration.
9666 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9667 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9669 (LOWEST_PC): Delete.
9671 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9673 * maint.c (print_section_info): Do not prepend `0x' to filepos
9674 output, it will be handled by local_hex_string_custom.
9676 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9678 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9679 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9680 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9682 2002-02-22 Jim Blandy <jimb@redhat.com>
9684 Indicate that the bcache functions don't change the strings
9686 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9687 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9689 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9691 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9693 2002-02-21 Christopher Faylor <cgf@redhat.com>
9695 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9696 find the complete path to a loaded DLL.
9698 2002-02-21 Fred Fish <fnf@redhat.com>
9700 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9701 that marks the end of the range of a function, enter a line number
9702 entry that has a line number of zero and a PC offset that matches
9703 the end of the function. This starts a range of PC's for which no
9704 line number information is known.
9705 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9706 PC's for which no line number info is found (line number is zero)
9707 then we didn't find any valid line information.
9708 * symtab.h: Document use of zero line number entry.
9710 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9712 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9713 (have_ptrace_getvrregs): Define for run time checks.
9714 (gdb_vrregset_t): New type for Altivec register handling.
9715 (fetch_register, store_register): Fetch/store altivec register
9717 (fetch_altivec_register, store_altivec_register): New functions.
9718 (supply_vrregset, fill_vrregset): New functions.
9719 (fetch_altivec_registers, store_altivec_registers): New functions.
9720 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9723 2002-02-21 Jiri Smid <smid@suse.cz>
9725 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9727 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9729 * Makefile.in (armnbsd-nat.o): Update dependencies.
9730 * armnbsd-nat.c (supply_gregset): New function. Common code to
9731 supply the integer register set.
9732 (supply_fparegset): New function. Similar for FPA registers.
9733 (fetch_regs, fetch_fp_regs): Use them.
9734 (fetch_core_registers): Likewise.
9735 (fetch_elfcore_registers): New function.
9736 (arm_netbsd_elfcore_fns): New core-file type specification.
9737 (_initialize_arm_netbsd_nat): Register it.
9739 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9741 * armnbsd-nat.c: Include gdbcore.h.
9742 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9743 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9744 'void' to declaration, to shut up ARI.
9745 (fetch_core_registers): Make static. Rewrite using supply_register.
9746 (arm_netbsd_core_fns): New core-file type specification.
9747 (_initialize_arm_netbsd_nat): New function.
9749 2002-02-21 Christopher Faylor <cgf@redhat.com>
9751 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9754 2002-02-20 Christopher Faylor <cgf@redhat.com>
9756 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9759 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9761 * jv-exp.y (parse_number): Change type of implicit longs
9762 to builtin_type_uint64.
9764 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9766 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9767 to be an integer instead of a `union wait'.
9769 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9771 * mips-linux-nat.c: Call the operating system GNU/Linux.
9772 * mips-linux-tdep.c: Likewise.
9773 * mips-tdep.c: Likewise.
9775 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9778 * jv-exp.y (parse_number): Handle 64-bit integers.
9780 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9782 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9783 AC_STDC_HEADERS to AC_HEADER_STDC.
9784 * gdbserver/configure: Regenerated.
9786 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9788 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9790 * sparc-tdep.c (get_longjmp_target): Likewise.
9792 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9794 * News: Add news about ARM and Multi-arch. Mention the new target
9797 2002-02-19 Jim Blandy <jimb@redhat.com>
9799 * stabsread.c (error_type_complaint): Improve error message.
9801 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9803 * gdbserver/README: Update documentation.
9804 * gdbserver/configure.in: Update configury to match documentation.
9805 * gdbserver/Makefile.in: Likewise.
9806 * gdbserver/configure: Regenerated.
9807 * gdbserver/aclocal.m4: New file, generated by aclocal.
9808 * gdbserver/config.in: New file, generated by autoheader.
9810 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9812 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9815 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9817 * arm-tdep.h (enum arm_float_model): New enum.
9818 (struct gdbarch_tdep): Add fp_model.
9819 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9820 up floating-point conversions until we know the floating-point model
9821 in use by the inferior. Don't complain about being unable to
9822 determine the ABI of the inferior when we don't have one.
9823 (arm_extract_return_value): Support different floating-point models.
9824 (arm_store_return_value): Likewise.
9825 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9827 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9829 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9831 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9832 of ``current_gdbarch''.
9834 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9836 * armnbsd-nat.c : ANSIfy all function declarations.
9837 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9838 (fetch_inferior_registers): Re-implement in terms of above.
9839 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9840 (store_inferior_registers): Re-implement in terms of above.
9842 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9844 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9846 * arm-linux-tdep.c: Likewise.
9847 * config/arm/tm-linux.h: Likewise.
9849 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9851 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9852 * config/arm/nbsd.mt (TM_FILE): Delete.
9853 * config/arm/tm-nbsd.h: Delete.
9855 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9857 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9858 Initialize CALL_DUMMY_LENGTH.
9860 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9862 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9864 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9865 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9866 defines one thing and that is incorrect for this port.
9867 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9869 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9871 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9873 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9875 * win32-nat.c (display_selector): New function. Displays information
9876 about the information returned by GetThreadSelectorEntry API function.
9877 (display_selectors): New function. Displays the infomation of
9878 the selector given as argument, or of CS, DS ans FS selectors
9879 if no argument is given.
9880 ( _initialize_inftarg): Add "w32" as info prefix command.
9881 Add "info w32 selector" as command calling display_selectors.
9883 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9885 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9886 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9889 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9891 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9893 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9895 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9896 (arm_fix_call_dummy): Call it.
9897 (arm_call_dummy_breakpoint_offset): Delete.
9898 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9899 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9901 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9903 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9904 Default to func_frame_chain_valid.
9905 * gdbarch.h, gdbarch.c: Re-generate.
9906 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9908 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9910 * ppc-linux-nat.c: Update copyright.
9911 (fetch_register, store_register): Add tid parameter, don't compute
9913 (fetch_ppc_registers, store_ppc_registers): Add tid
9914 parameter. Pass it along to callees.
9915 (fetch_inferior_registers, store_inferior_registers): Compute tid
9916 here, and pass it to calleed functions.
9917 (fill_gregset, supply_fpregset): Clean up formatting.
9919 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9921 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9922 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9924 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9926 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9927 * gdbarch.c gdbarch.h: Regenerate.
9928 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9930 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9931 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9932 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9934 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9935 * arm-tdep.c (arm_get_longjmp_target): New function.
9936 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9937 this to a positive value register arm_get_longjmp_target as the
9939 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9940 (arm_linux_init_abi): Set up longjmp description in tdep.
9941 * armnbsd-nat.c (get_longjmp_target): Delete.
9942 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9943 description in tdep.
9944 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9945 (get_longjmp_target): Delete declaration.
9946 (GET_LONGJMP_TARGET): Delete.
9947 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9948 (GET_LONGJMP_TARGET): Delete.
9950 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9952 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9953 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9954 of ``current_gdbarch''.
9956 2002-02-17 Tom Tromey <tromey@redhat.com>
9958 * cli/cli-cmds.c (compare_strings): New function.
9959 (complete_command): Only print each unique item once.
9960 * completer.h (complete_line): Declare.
9961 * completer.c (complete_line): New function.
9962 (line_completion_function): Use it.
9964 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9966 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9967 * gdbarch.h, gdbarch.c: Re-generate.
9969 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9971 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9973 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9975 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9976 * valops.c (value_arg_coerce): Don't take the address of a reference
9977 to convert an argument to a reference.
9979 2002-02-15 Christopher Faylor <cgf@redhat.com>
9981 * win32-nat.c (get_image_name): New function.
9982 (handle_load_dll): Use get_image_name function.
9983 (get_child_debug_event): Avoid registering debug events until possibly
9984 execed process is started.
9985 (child_create_inferior): Allow invocation via shell so that command
9986 line redirection, etc. works ok.
9987 (_initialize_inftarg): Add new command: "set shell" to control whether
9988 a shell is used to start a process.
9990 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9992 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9993 instead of find_register_by_number.
9994 (cannot_store_register): Likewise.
9996 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9998 * dwarf2read.c: Replace fprintf (stderr, ...) by
9999 fprintf_unfiltered (gdb_stderr, ...).
10001 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10003 * gdbserver/gdbserver.1: Document --attach.
10005 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10007 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10009 * arm-tdep.c (arm_default_arm_le_breakpoint)
10010 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10011 (arm_default_thumb_be_breakpoint): New. Initialize them from
10012 traditional breakpoint defines.
10013 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10014 (arm_gdbarch_init): Initialize new breakpoint variables.
10015 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10016 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10017 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10018 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10020 (arm_netbsd_init_abi_common): ... here; new function.
10021 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10022 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10023 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10024 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10026 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10028 * arm-tdep.h (enum arm_abi): New enum.
10029 (struct gdbarch_tdep): New structure.
10030 (LOWEST_PC): Provide a default.
10031 (arm_gdbarch_register_os_abi): Declare new function.
10032 * arm-tdep.c (arm_abi_names): New array.
10033 (process_note_abi_tag_sections): New function.
10034 (get_elfosabi): New function.
10035 (arm_gdbarch_register_os_abi): New function.
10036 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10037 support for that ABI has been built in, then call the appropriate
10038 configuration routine. Use gdbarch_num_regs() to get the number
10040 (arm_dump_tdep): New function.
10041 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10042 place-holder functions.
10043 (_initialize_arm_tdep): Register them.
10044 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10046 * armnbsd-tdep.c: New file.
10047 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10048 * config/arm/nbsd.mt (TDEPFILES): Add it.
10049 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10051 * armnbsd-nat.c: Include regcache.h.
10052 * Makefile.in (armnbsd-nat.o): Update dependency list.
10054 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10056 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10058 * gdbserver/Makefile.in: Fix typos in target rules.
10060 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10062 Fix part of PR gdb/267.
10063 * linespec.c (find_methods): Handle constructors specially for now.
10065 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10067 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10069 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10070 standard_coerce_float_to_double().
10072 2002-02-14 Christopher Faylor <cgf@redhat.com>
10074 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10077 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10079 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10080 find_variant_by_name, because it confuses the multiarch
10081 framework. Return NULL if there isn't an architecture with the
10082 user supplied name, instead of forcing a different one without
10083 recording the change with the multiarch machinery.
10084 (find_variant_by_name): Delete.
10086 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10088 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10089 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10091 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10093 * stack.c (print_frame_info_base): When calling
10094 print_frame_info_listing_hook, set current_source_symtab.
10096 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10098 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10099 and remove unused $(INCLUDE_DIR).
10100 Add regcache.c to OBS.
10101 Add generated register protocol files to clean target.
10102 Update dependencies for new objects, obsolete old target code.
10104 * gdbserver/linux-low.c: Remove all platform-specific code to
10105 new files. Remove various dead code. Update to use regcache
10107 * gdbserver/remote-utils.c (fromhex): Add return statement
10109 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10111 (input_interrupt): Add integer parameter to match prototype
10112 of a signal handler.
10113 (outreg): Use register_data ().
10114 (prepare_resume_reply): Use gdbserver_expedite_regs.
10115 * gdbserver/server.c (main): Dynamically allocate own_buf because
10116 PBUFSIZ is no longer constant. Use registers_to_string () and
10117 registers_from_string ().
10118 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10119 for error (), fatal (), and warning (). Update definition of
10120 PBUFSIZ to use regcache functionality. Add include guard.
10121 * gdbserver/utils.c (fatal): Add missing ``const''.
10122 (warning): New function.
10124 * regformats/regdat.sh: Include "regcache.h" in generated files.
10125 Provide init_registers () function.
10126 * regformats/regdef.h: Add prototype for set_register_cache ().
10129 * gdbserver/linux-arm-low.c: New file.
10130 * gdbserver/linux-i386-low.c: New file.
10131 * gdbserver/linux-ia64-low.c: New file.
10132 * gdbserver/linux-m68k-low.c: New file.
10133 * gdbserver/linux-mips-low.c: New file.
10134 * gdbserver/linux-ppc-low.c: New file.
10135 * gdbserver/linux-sh-low.c: New file.
10137 * gdbserver/regcache.c: New file.
10138 * gdbserver/regcache.h: New file.
10140 * gdbserver/low-linux.c: Removed obsolete file.
10142 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10144 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10145 * config/i386/linux.mt: Likewise.
10146 * config/ia64/linux.mt: Likewise.
10147 * config/m68k/linux.mh: Likewise.
10148 * config/powerpc/linux.mh: Likewise.
10149 * config/mips/linux.mt: Likewise.
10151 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10153 * config/i386/i386lynx.mh: Mark gdbserver variables
10154 as (currently) obsolete for this target.
10155 * config/i386/nbsd.mt: Likewise.
10156 * config/i386/nbsdelf.mt: Likewise.
10157 * config/m32r/m32r.mt: Likewise.
10158 * config/m68k/m68klynx.mh: Likewise.
10159 * config/m68k/nbsd.mt: Likewise.
10160 * config/m68k/sun3os4.mh: Likewise.
10161 * config/mips/vr5000.mt: Likewise.
10162 * config/ns32k/nbsd.mt: Likewise.
10163 * config/pa/hppabsd.mh: Likewise.
10164 * config/pa/hppaosf.mh: Likewise.
10165 * config/powerpc/nbsd.mt: Likewise.
10166 * config/rs6000/rs6000lynx.mh: Likewise.
10167 * config/s390/s390.mt: Likewise.
10168 * config/s390/s390x.mt: Likewise.
10169 * config/sparc/sparclynx.mh: Likewise.
10170 * config/sparc/sun4os4.mh: Likewise.
10171 * config/i386/x86-64linux.mt: Likewise.
10172 * config/sparc/linux.mh: Likewise.
10174 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10176 * configure.tgt: Configure gdbserver only for known working
10177 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10178 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10179 SUBDIRS if it is configured. Update comment for ${nativefile}.
10180 * configure: Regenerated.
10182 2002-02-13 Michael Snyder <msnyder@redhat.com>
10184 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10186 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10187 (default_gcore_mach): Just return 0, work around a problem in bfd.
10188 (default_gcore_target): OK to return NULL if exec_bfd is null.
10189 (make_mem_sec): Use a cast, avoid a warning.
10191 * procfs.c (find_memory_regions_callback): Use a cast instead of
10192 calling host_pointer_to_address (which complains if
10193 sizeof (host pointer) != sizeof (target pointer)).
10194 (procfs_make_note_section): Avoid overflow in psargs string.
10196 * procfs.c (procfs_make_note_section): Make the default
10197 implementation return an error.
10199 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10201 * procfs.c (procfs_make_note_section): Provide a default definition
10202 (for alpha-dec-osf4.0f). Fix typos.
10204 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10206 * linux-proc.c: Add include of regcache.h.
10207 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10209 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10211 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10212 * memattr.c (create_mem_region): Disallow useless empty region.
10213 Regions are half-open intervals, so allow [A..B) [B..C) as
10216 2002-02-13 Michael Chastain <mec@shout.net>
10218 * defs.h: Kill CONST_PTR.
10219 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10220 * c-lang.c (c_builtin_types): Likewise.
10221 * ch-lang.c (ch_builtin_types): Likewise.
10222 * f-lang.c (f_builtin_types): Likewise.
10223 * language.c (unknown_builtin_types): Likewise.
10224 * m2-lang.c (m2_builtin_types): Likewise.
10225 * p-lang.c (pascal_builtin_types): Likewise.
10226 * scm-lang.c (c_builtin_types): Likewise.
10228 2002-02-13 Keith Seitz <keiths@redhat.com>
10230 * arm-tdep.h (arm_get_next_pc): Add declaration.
10232 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10234 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10235 with other related struct-returning functions.
10236 (arm_extract_struct_value_address): New function.
10237 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10238 initialize float_format, double_format and long_double_format as
10239 appropriate to the endianness of the target.
10240 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10241 (arm_use_struct_convention): Delete declaration.
10242 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10244 2002-02-13 Keith Seitz <keiths@redhat.com>
10246 * defs.h (core_addr_to_string_nz): New function.
10248 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10250 Apply missing bits of 2002-01-15 patch.
10251 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10252 (fill_fpregset): Use i387_fill_fsave.
10254 2002-02-12 Keith Seitz <keiths@redhat.com>
10256 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10257 (core_addr_to_string_nz): New function.
10259 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10261 * arm-linux-nat.c: Really include arm-tdep.h.
10262 * config/arm/tm-linux.h (struct type, struct value): Declare.
10264 2002-02-11 Michael Snyder <msnyder@redhat.com>
10266 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10267 (gcore section): Ifdef for Solaris and Unixware only.
10268 (procfs_do_thread_registers): Unixware needs one lwpstatus
10269 per thread (not one prstatus or pstatus).
10270 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10271 not over all gdb threads. For unixware, call elfcore_write_pstatus
10272 once before iterating over threads.
10274 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10276 * arm-tdep.h: New file.
10277 * arm-tdep.c: Include arm-tdep.h.
10278 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10279 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10280 (arm_print_float_info, arm_register_type, convert_to_extended)
10281 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10282 (arm_extract_return_value, arm_register_name): Make static.
10283 (arm_software_single_step): Similarly. Fix types in declaration.
10284 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10285 (arm_store_return_value, arm_store_struct_return): New functions.
10286 (arm_gdbarch_init): Register the above functions. Also register
10287 call_dummy_start_offset, sizeof_call_dummy_words,
10288 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10289 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10290 max_register_virtual_size, register_size. Set up
10291 prologue_cache.saved_regs here, rather than ...
10292 (_initialize_arm_tdep): ... here.
10293 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10295 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10296 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10297 (arm_print_float_info, arm_register_type, convert_to_extended)
10298 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10299 (arm_extract_return_value, arm_register_name): Delete declarations.
10300 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10301 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10302 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10303 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10304 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10305 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10306 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10307 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10308 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10309 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10310 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10311 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10313 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10314 * remote-rdi.c remote-rdp.c: Likewise.
10315 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10316 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10317 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10320 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10321 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10322 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10323 from non-ARM_ prefixed definitions.
10324 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10326 * remote-rdi.c remote-rdp.c: Likewise.
10327 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10329 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10331 * arm-tdep.c (arm_frameless_function_invocation)
10332 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10333 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10334 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10335 (arm_pop_frame, arm_get_next_pc): Make static.
10336 (arm_gdbarch_init): Register above in gdbarch structure.
10337 (arm_read_fp): Renamed from arm_target_read_fp.
10338 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10339 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10340 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10341 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10342 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10343 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10344 (arm_pc_is_thumb_dummy): Delete declarations.
10345 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10346 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10347 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10348 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10350 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10352 * symtab.c (compare_search_syms): New function.
10353 (sort_search_symbols): New function.
10354 (search_symbols): Sort symbols after searching rather than
10357 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10359 * NEWS: Linux -> GNU/Linux.
10361 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10363 * gdbarch.sh: For for level one methods, disallow a definition
10364 when partially multi-arched. Add comments explaining rationale.
10365 * gdbarch.h: Re-generate.
10367 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10369 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10370 multi-arch partial.
10372 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10374 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10375 field. Use diff -u.
10376 * gdbarch.c: Re-generate.
10378 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10380 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10381 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10384 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10386 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10387 multi-arch partial.
10388 (PUSH_ARGUMENTS): Switch to using predefault.
10389 * gdbarch.c: Regenerate.
10391 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10393 * valops.c (PUSH_ARGUMENTS): Delete definition.
10394 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10395 partial. Default to default_push_arguments.
10396 * gdbarch.h, gdbarch.c: Regenerate.
10398 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10400 * defs.h (throw_exception): Rename return_to_top_level. Update
10402 * utils.c (error_stream, internal_verror, quit): Ditto.
10403 * top.c (throw_exception, catcher): Ditto.
10404 * sparclet-rom.c (sparclet_load): Ditto.
10405 * remote.c (interrupt_query, minitelnet): Ditto.
10406 * remote-sds.c (interrupt_query): Ditto.
10407 * remote-mips.c (mips_error, mips_kill): Ditto.
10408 * ocd.c (interrupt_query): Ditto.
10409 * monitor.c (monitor_interrupt_query): Ditto.
10410 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10411 * target.h: Update comment.
10413 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10415 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10417 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10418 default_double_format.
10419 * gdbarch.h, gdbarch.c: Re-generate.
10420 * findvar.c (floatformat_unknown): Delete variable definition.
10421 * doublest.h (floatformat_unknown): Delete variable declaration.
10423 2002-02-09 Jim Blandy <jimb@redhat.com>
10425 * stabsread.c (read_type): Add code to parse Sun's syntax for
10426 prototyped function types.
10428 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10430 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10431 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10433 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10435 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10436 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10437 now _initialize_xcoffsolib gets called again and overrides the
10438 commands from solib.c in a native configuration.
10440 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10442 * doublest.c (store_typed_floating): Don't try to return a value.
10445 2002-02-08 Jim Blandy <jimb@redhat.com>
10447 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10448 is prototyped and has no arguments, print its argument list as
10451 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10453 * MAINTAINERS (write-after-approval): Add myself.
10454 (paper-trail): I've escaped!
10456 2002-02-08 Christopher Faylor <cgf@redhat.com>
10458 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10460 (_initialize_check_for_gdb_ini): Ditto.
10462 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10464 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10465 xaprintf -> xasprintf.
10467 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10469 * win32-nat.c: Remove use of printf and sprintf functions.
10471 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10473 * arm-tdep.c (arm_frame_chain_valid): Make static.
10474 (arm_push_arguments): Likewise.
10475 (arm_gdbarch_init): New function.
10476 (_initialize_arm_tdep): Call it.
10477 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10478 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10479 (FRAME_CHAIN_VALID): Delete.
10480 (arm_frame_chain_valid): Delete declaration.
10481 (PUSH_ARGUMENTS): Delete.
10482 (arm_push_arguments): Delete declaration.
10483 (CALL_DUMMY_P): Delete.
10485 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10486 Corinna Vinschen <vinschen@redhat.com>
10488 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10489 on builtin float types.
10491 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10493 * utils.c: Include <curses.h> before "bfd.h".
10494 * tui/tui-hooks.c: Likewise.
10495 * tui/tui.c: Likewise.
10496 * tui/tuiCommand.c: Likewise.
10497 * tui/tuiData.c: Likewise.
10498 * tui/tuiDataWin.c: Likewise.
10499 * tui/tuiDisassem.c: Likewise.
10500 * tui/tuiGeneralWin.c: Likewise.
10501 * tui/tuiIO.c: Likewise.
10502 * tui/tuiLayout.c: Likewise.
10503 * tui/tuiRegs.c: Likewise.
10504 * tui/tuiSource.c: Likewise.
10505 * tui/tuiSourceWin.c: Likewise.
10506 * tui/tuiStack.c: Likewise.
10507 * tui/tuiWin.c: Likewise.
10509 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10511 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10512 to include space for pseudoregs as well. Update loops accordingly.
10513 (sh_fp_frame_init_saved_regs): Ditto.
10514 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10516 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10518 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10519 Add Richard Earnshaw to Arm maintainers.
10521 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10523 * defs.h (warning_begin): Delete declaration.
10525 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10528 2002-02-07 Michael Snyder <msnyder@redhat.com>
10530 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10531 Logic bug, remove misplaced else.
10533 2002-02-07 Klee Dienes <klee@apple.com>
10535 * fork-inferior.c (fork_inferior): Add '!' to the list of
10536 characters that need to be quoted when building a string for the
10537 shell. Quote '!' specifically with a backslash, since CSH chokes
10538 when trying to evaluate "str!str".
10540 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10542 * rdi-share/host.h: Only provide a typedef for bool if it is not
10545 2002-02-04 Michael Snyder <msnyder@redhat.com>
10547 * breakpoint.h (enum bptype): Add new overlay event bp type.
10548 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10550 * breakpoint.c (create_internal_breakpoint): New function.
10551 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10552 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10553 (create_thread_event_breakpoint): Ditto.
10554 (create_solib_event_breakpoint): Ditto.
10555 (create_overlay_event_breakpoint): New function.
10556 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10557 (update_breakpoints_after_exec): Delete and re-initialize
10558 overlay event breakpoints after an exec. Add FIXME comment
10559 about longjmp breakpoint.
10560 (print_it_typical): Ignore overlay event breakpoints.
10561 (print_one_breakpoint): Ditto.
10563 (bpstat_what): Do not stop for overlay event breakpoints.
10564 (delete_breakpoint): Don't delete overlay event breakpoints.
10565 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10566 (breakpoint_re_set): Re-create overlay event breakpoint.
10568 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10569 (overlay_manual_command): Disable overlay breakpoints.
10570 (overlay_off_command): Disable overlay breakpoints.
10572 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10574 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10575 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10576 to here from config/tm-arm.h.
10577 (coff_sym_is_thumb): Make static.
10578 (arm_elf_make_msymbol_special): New function.
10579 (arm_coff_make_msymbol_special): New function.
10580 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10581 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10582 (coff_sym_is_thumb): Delete declaration.
10583 (arm_elf_make_msymbol_special): Declare.
10584 (arm_coff_make_msymbol_special): Declare.
10585 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10586 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10588 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10590 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10592 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10594 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10595 * gdbarch.c gdbarch.h: Regenerate.
10596 * arch-utils.c (default_print_float_info): New function.
10597 * arch-utils.h (default_print_float_info): Prototype it.
10598 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10599 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10600 (PRINT_FLOAT_INFO): Document it.
10602 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10603 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10604 (PRINT_FLOAT_INFO): Define.
10606 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10608 * win32-nat.c (_initialize_check_for_gdb_ini):
10609 Add typecast to sprintf argument to suppress a warning.
10611 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10613 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10614 to allow easier handling of pass state.
10615 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10616 that gives exception name and address.
10617 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10618 and set last_sig value to ourstatus->value.sig. Some missing
10620 (child_continue): Correctly report continue_status.
10621 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10622 TARGET_SIGNAL_0 (new default value).
10623 (child_resume): consider sig argument passed to decide if
10624 the exception should be passed to debuggee or not.
10626 2002-02-05 Michael Snyder <msnyder@redhat.com>
10628 * regcache.c (fetch_register): Call target_fetch_register
10629 only if we don't call FETCH_PSEUDO_REGISTER.
10630 (store_register): Call target_store_register only if we
10631 don't call STORE_PSEUDO_REGISTER.
10633 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10635 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10636 ELF_MAKE_MSYMBOL_SPECIAL.
10637 * gdbarch.c, gdbarch.h: Regenerate.
10638 * arch-utils.c (default_make_msymbol_special): New function.
10639 * arch-utils.h (default_make_msymbol_special): Export.
10640 * elfread.c (elf_symtab_read): Compile use of
10641 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10643 * coffread.c (coff_symtab_read): Ditto, for
10644 COFF_MAKE_MSYMBOL_SPECIAL.
10646 2002-02-05 Jim Blandy <jimb@redhat.com>
10648 * solib-svr4.c (svr4_truncate_ptr): New function.
10649 (svr4_relocate_section_addresses): Do the address arithmetic with
10650 the appropriate truncation for target addresses, even when
10651 CORE_ADDR is larger than a target address.
10653 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10655 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10658 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10660 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10663 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10665 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10667 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10669 * gdbserver/linux-low.c: Remove unused include files.
10671 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10673 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10674 (read_inferior_memory): Use it.
10675 (write_inferior_memory): Likewise.
10677 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10679 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10680 grubbing through sys_errlist.
10682 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10684 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10686 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10687 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10689 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10691 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10692 (do_sfunc, set_cmd_sfunc): New functions.
10694 * command.h (struct cmd_list_element): Add field func.
10695 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10696 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10697 * cli/cli-decode.h: Ditto.
10699 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10700 (help_all, help_cmd_list): Ditto.
10701 (find_cmd, complete_on_cmdlist): Ditto.
10702 * top.c (execute_command): Ditto.
10704 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10707 * infcmd.c (notice_args_read): Fix function signature.
10709 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10710 * cli/cli-decode.c (add_set_cmd): Ditto.
10711 * utils.c (initialize_utils): Ditto.
10712 * maint.c (_initialize_maint_cmds): Ditto.
10713 * infrun.c (_initialize_infrun): Ditto.
10714 * demangle.c (_initialize_demangler): Ditto.
10715 * remote.c (add_packet_config_cmd): Ditto.
10716 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10717 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10718 * proc-api.c (_initialize_proc_api): Ditto.
10719 * kod.c (_initialize_kod): Ditto.
10720 * valprint.c (_initialize_valprint): Ditto.
10721 * top.c (init_main): Ditto.
10722 * infcmd.c (_initialize_infcmd): Ditto.
10723 * corefile.c (_initialize_core): Ditto.
10724 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10725 * arch-utils.c (initialize_current_architecture): Ditto.
10726 (_initialize_gdbarch_utils): Ditto.
10727 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10729 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10730 * wince.c (_initialize_inftarg): Ditto.
10731 * symfile.c (_initialize_symfile): Ditto.
10732 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10733 * language.c (_initialize_language): Ditto.
10734 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10736 2002-02-04 Michael Snyder <msnyder@redhat.com>
10738 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10740 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10742 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10743 Add rules for building the register data files.
10745 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10747 * regformats/regdat.sh: Add braces to the definition of
10748 expedite_regs_${arch}.
10750 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10752 * regformats/regdef.h (struct reg): Add comment describing the
10753 requirements for offset and size fields.
10755 2002-02-04 Andreas Schwab <schwab@suse.de>
10757 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10758 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10760 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10762 * gdbarch.sh (copyright): Update years in generated header.
10763 (SMASH_TEXT_ADDRESS): Add rule.
10764 * gdbarch.h, gdbarch.c: Re-generate.
10765 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10766 * dbxread.c: Likewise.
10767 * dwarfread.c: Likewise.
10768 * elfread.c: Likewise.
10769 * somread.c: Likewise.
10771 * arm-tdep.c (arm_smash_text_address): New function.
10772 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10774 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10776 Add support for hardware watchpoints on win32 native.
10777 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10778 CONTEXT_DEBUG_REGISTERS.
10779 (dr variable): New variable. Static array containing a local copy
10780 of debug registers.
10781 (debug_registers_changed): New variable. Reflects when debug registers
10782 are changed and need to be written to inferior.
10783 (debug_registers_used): New variable. Reflects when any debug register
10784 was set, used when new threads are created.
10785 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10787 (thread_rec): Set dr array if id is the thread of current_event .
10788 (child_continue, child_resume): Change the debug registers for all
10789 threads if debug_registers_changed.
10790 (child_add_thread): Change the debug registers if debug_registers_used.
10791 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10792 Link nm.h to new nm-cygwin.h file.
10793 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10794 of hardware registers.
10796 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10798 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10799 Restore behavour broken by 2002-01-20 Andrew Cagney
10800 <ac131313@redhat.com> IEEE_FLOAT removal.
10802 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10804 * c-valprint.c (c_val_print): Pass a proper valaddr to
10805 cp_print_class_method.
10806 * valops.c (search_struct_method): If there is only one method
10807 and args is NULL, return that method.
10809 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10811 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10812 accessing tag_name directly.
10814 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10816 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10817 of accessing tag_name directly.
10819 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10822 * gdbtypes.c (replace_type): New function.
10823 * gdbtypes.h (replace_type): Add prototype.
10824 * stabsread.c (read_type): Use replace_type.
10826 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10828 * Makefile.in (memattr.o): Add missing dependencies rule.
10830 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10832 * breakpoint.c (break_at_finish_command): Really export.
10833 (break_at_finish_at_depth_command): Ditto.
10834 (tbreak_at_finish_command): Ditto.
10835 * hppa-tdep.c: Include completer.h.
10836 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10837 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10839 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10841 * utils.c (do_write): New function.
10842 (error_stream): Rewrite combining the code from error_begin and
10844 (verror): Rewrite using error_stream.
10845 (error_begin): Delete function.
10847 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10849 * utils.c (error_begin): Make static.
10850 * defs.h (error_begin): Delete declaration.
10852 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10853 (decode_line_1): Use cplusplus_error instead of error_begin,
10854 cplusplus_hint and return_to_top_level.
10855 * coffread.c (coff_symfile_read): Use error instead of error_begin
10856 and return_to_top_level.
10857 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10859 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10861 * language.h (type_error, range_error): Make string parameter
10863 * language.c (warning_pre_print): Delete extern declaration.
10864 * dwarfread.c (warning_pre_print): Ditto.
10865 * language.c (type_error, range_error): Rewrite to use verror and
10866 vwarning instead of warning_begin.
10868 2002-02-01 Michael Snyder <msnyder@redhat.com>
10870 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10871 (set_ignore_count): Move misplaced comment back where it belongs.
10873 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10875 * command.h (NO_FUNCTION): Delete macro.
10876 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10877 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10878 * tracepoint.c (_initialize_tracepoint): Ditto.
10879 * cli/cli-decode.c (add_set_cmd): Ditto.
10880 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10882 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10884 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10885 Update ``this'' pointer when calling virtual functions.
10887 2002-02-01 Michael Snyder <msnyder@redhat.com>
10889 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10890 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10892 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10894 * regformats/reg-arm.dat: New file.
10895 * regformats/reg-i386.dat: New file.
10896 * regformats/reg-ia64.dat: New file.
10897 * regformats/reg-m68k.dat: New file.
10898 * regformats/reg-mips.dat: New file.
10899 * regformats/reg-ppc.dat: New file.
10900 * regformats/reg-sh.dat: New file.
10901 * regformats/regdef.h: New file.
10902 * regformats/regdat.sh: New file.
10904 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10906 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10907 (arm_frame_args_address, arm_frame_locals_address): New functions.
10908 (arm_frame_num_args): New function.
10909 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10910 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10911 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10913 2002-01-31 Michael Snyder <msnyder@redhat.com>
10915 * breakpoint.c (break_at_finish_command): Export.
10916 (break_at_finish_at_depth_command): Export.
10917 (tbreak_at_finish_command): Export.
10918 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10919 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10920 "txbreak" commands, which are HPPA specific.
10922 * printcmd.c (disassemble_command): Remove an ancient
10923 artifact of an old merge.
10925 * symfile.h (enum overlay_debugging_state):
10926 Define enum constant values for overlay mode.
10927 * symfile.c (overlay_debugging): Use enums instead of literals.
10928 (overlay_is_mapped, overlay_auto_command,
10929 overlay_manual_command): Ditto.
10931 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10932 breakpoint_here_p, breakpoint_inserted_here_p,
10933 breakpoint_thread_match, bpstat_stop_status,
10934 describe_other_breakpoints, check_duplicates, clear_command):
10935 Coding standard fixes.
10937 * target.c (target_xfer_memory): Add spaces, coding standard.
10938 (do_xfer_memory): Add missing line to trust-readonly
10939 code: check bfd SEC_READONLY flag for section.
10941 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10943 * PROBLEMS: Fix typo, 5.1->5.1.1.
10945 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10947 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10948 data symbols, since we search based on textlow and texthigh.
10949 (find_pc_sect_symtab): Likewise.
10951 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10953 * defs.h (vwarning): Declare.
10954 * utils.c (vwarning): New function.
10955 (warning): Call vwarning.
10956 (warning_begin): Delete function.
10958 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10959 the warning message.
10960 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10963 2002-01-30 Michael Snyder <msnyder@redhat.com>
10965 * NEWS: Mention "set trust-readonly-sections" command.
10966 Mention generate-core-file command.
10968 2002-01-15 Michael Snyder <msnyder@redhat.com>
10970 * target.c: New command, "set trust-readonly-sections on".
10971 (do_xfer_memory): Honor the suggestion to trust readonly sections
10972 by reading them from the object file instead of from the target.
10973 (initialize_targets): Register command "set trust-readonly-sections".
10975 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10977 * parse.c (target_map_name_to_register): Simplify, search regs and
10978 pseudo-regs using a single loop.
10980 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10982 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10984 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10986 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10987 * config/i386/i386v42mp.mh: Add i387-nat.o .
10988 * i386v4-nat.c: Include i387-nat.h.
10989 (supply_fpregset): Use i387_supply_fsave.
10990 (fill_fpregset): Use i387_fill_fsave.
10992 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10994 * arm-tdep.c (arm_call_dummy_words): Define.
10995 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10996 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10997 (CALL_DUMMY_WORDS): Define.
10998 (arm_call_dummy_words): Declare.
10999 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11000 (arm_linux_call_dummy_words): Declare.
11002 2002-01-30 Andreas Schwab <schwab@suse.de>
11004 * m68klinux-nat.c: Fix last change to use regcache_collect
11005 instead of referencing registers[] directly.
11007 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11009 * parse.c (target_map_name_to_register): Delete code wrapped in
11010 #ifdef REGISTER_NAME_ALIAS_HOOK.
11012 2002-01-28 Michael Snyder <msnyder@redhat.com>
11014 * regcache.c (legacy_read_register_gen): Need to be able to
11015 read pseudo-register as well as real register.
11016 (legacy_write_register_gen): Ditto.
11018 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11020 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11021 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11022 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11023 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11024 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11025 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11026 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11027 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11028 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11029 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11030 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11031 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11032 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11033 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11034 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11035 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11036 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11037 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11038 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11039 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11041 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11043 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11044 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11045 (initialize_current_architecture): Update target_byte_order using
11046 information from BFD.
11047 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11048 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11050 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11052 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11053 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11055 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11056 #ifdef INVALID_FLOAT.
11057 * infcmd.c (do_registers_info): Ditto.
11058 * values.c (unpack_double): Ditto. Add comment.
11060 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11061 already commented out.
11063 2002-01-26 Andreas Schwab <schwab@suse.de>
11065 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11066 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11067 registers and add support for PTRACE_GETREGS.
11069 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11071 GDB 5.1.1 released from 5.1 branch.
11072 * NEWS: Add 5.1.1 news.
11073 * README: Sync with 5.1 branch.
11075 2002-01-23 Fred Fish <fnf@redhat.com>
11077 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11078 stabstring on initial malloc. Reallocing will copy it for us,
11081 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11083 * Makefile.in (hpread_h): Delete.
11084 (HFILES_NO_SRCDIR): Remove hpread.h.
11085 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11086 (hpread.o): Update dependencies.
11087 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11089 * hp-psymtab-read.c: Remove file.
11090 * hp-symtab-read.c: Remove file.
11091 * hpread.h: Remove file.
11093 * hpread.c: Merge all contents of hp-psymtab-read.c,
11094 hp-symtab-read.c and hpread.h into this file, as it was prior to
11097 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11098 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11099 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11100 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11102 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11104 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11105 fill_gregset): Call gdbarch_tdep() just once, assign result to
11106 variable and use that, instead of calling the function several
11109 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11111 * configure.host: Accept sparcv9 as alias for sparc64.
11112 * configure.tgt: Likewise.
11114 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11116 * solib-aix5.c (build_so_list_from_mapfile)
11117 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11118 arguments is not reversed.
11119 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11120 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11122 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11124 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11125 modified version of obsolete sh_fetch_pseudo_register.
11126 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11127 (sh4_register_read): New function.
11128 (sh_pseudo_register_write): New function. Renamed and modified
11129 version of obsolete sh_store_pseudo_register.
11130 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11131 (sh4_register_write): New function.
11132 (sh_gdbarch_init): Remove setting of gdbarch function
11133 fetch_pseudo_register and store_pseudo_register. Remove setting of
11134 register_convert_to_raw, register_convert_to_virtual,
11135 register_convertible.
11136 (sh_sh4_register_convertible): Delete. No longer needed. All is
11137 taken care by architecture specific functions
11138 register_read/register_write.
11139 (sh_sh4_register_convert_to_virtual): Make static.
11140 (sh_sh4_register_convert_to_raw): Ditto.
11142 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11144 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11145 (floatformat_is_nan, floatformat_mantissa): Ditto.
11147 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11148 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11149 builtin_type_ieee_double_little,
11150 builtin_type_ieee_double_littlebyte_bigword,
11151 builtin_type_m68881_ext, builtin_type_i960_ext,
11152 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11153 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11154 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11155 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11157 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11159 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11160 parameter. Set frameless flag if it exists and depended of
11161 whether the scanned function is frameless or not.
11162 (xstormy16_skip_prologue): If function is frameless, return
11163 result of xstormy16_scan_prologue().
11164 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11167 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11169 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11170 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11171 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11172 sh_sh4_register_byte, sh_sh4_register_raw_size,
11173 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11174 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11175 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11176 sh_store_pseudo_register, sh_do_pseudo_register): Call
11177 gdbarch_tdep() just once, assign result to variable and use that,
11178 instead of calling the function several times.
11180 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11182 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11183 macros instead of LAST_FPU_CTRL_REGNUM.
11184 (store_register): Likewise.
11186 2002-01-21 Jim Blandy <jimb@redhat.com>
11188 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11189 is up-to-date before running the program, not just when a program
11192 2002-01-21 Fred Fish <fnf@redhat.com>
11194 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11195 when we have found all instructions we are looking for.
11197 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11199 * arm-tdep.c (arm_register_name): New function.
11200 (arm_registers_names): Make static.
11201 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11202 (arm_register_name): Declare.
11203 (REGISTER_NAME): Use it.
11205 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11206 Kevin Buettner <kevinb@redhat.com>
11208 Convert arm targets to new FRAME interface.
11209 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11210 (arm_frame_find_save_regs): Delete.
11211 (arm_frame_init_saved_regs): New.
11212 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11213 Allocate extra_info as required. Convert all uses of fsr.regs
11214 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11216 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11217 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11218 (check_prologue_cache, save_prologue_cache): Likewise.
11219 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11220 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11221 (FRAME_FIND_SAVED_REGS): Delete.
11222 (arm_frame_find_saved_regs): Delete prototype.
11223 (arm_frame_init_saved_regs): New prototype.
11224 (FRAME_INIT_SAVED_REGS): Define.
11226 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11228 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11230 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11232 From Jeff Law <law@redhat.com>:
11233 * infttrace.c: Include <sys/pstat.h>.
11234 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11235 exec file if the ttrace equivalent fails.
11237 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11239 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11240 (closeLogFile): Ditto.
11242 2002-01-20 Michael Chastain <mec@shout.net>
11244 * top.c (print_gdb_version): Bump copyright year to 2002.
11246 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11248 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11249 Zannoni and Eli Zaretskii.
11251 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11253 * buildsym.c: Update copyright years.
11254 * c-typeprint.c: Likewise.
11255 * dwarf2read.c: Likewise.
11256 * f-typeprint.c: Likewise.
11257 * gdbtypes.c: Likewise.
11258 * gdbtypes.h: Likewise.
11259 * hp-symtab-read.c: Likewise.
11260 * hpread.c: Likewise.
11261 * mdebugread.c: Likewise.
11262 * p-typeprint.c: Likewise.
11264 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11266 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11267 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11268 byte-order selectable.
11269 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11270 * arch-utils.c: Ditto.
11271 (set_endian): Ditto.
11272 (set_endian_from_file): Ditto.
11273 * gdbserver/low-sim.c (create_inferior): Ditto.
11274 * gdbarch.sh: Ditto.
11275 * gdbarch.h: Re-generate.
11276 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11277 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11278 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11279 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11280 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11281 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11282 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11283 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11285 * config/mips/tm-wince.h: Remove #undef of macro
11286 TARGET_BYTE_ORDER_SELECTABLE.
11287 * config/sh/tm-wince.h: Ditto.
11289 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11291 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11292 member function fields. Add accessor macro
11293 TYPE_FN_FIELD_ARTIFICIAL.
11294 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11295 * c-typeprint.c (c_type_print_base): Skip artificial member
11298 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11300 * f-typeprint.c: Delete unused function f_type_print_args.
11301 * p-typeprint.c: Delete unused function pascal_type_print_args.
11303 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11305 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11306 comment. Add ``artificial'' to ``union field_location''.
11308 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11310 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11311 * mdebugread.c (parse_symbol): Likewise.
11312 * stabsread.c (define_symbol): Likewise.
11313 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11314 initializing TYPE_FIELD_BITPOS to n (obsolete).
11315 (hpread_doc_function_type): Likewise.
11316 * hpread.c (hpread_function_type): Likewise.
11318 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11320 * configure.in (host_makefile_frag): Only require a host makefile
11321 fragment when a native build.
11322 * configure: Re-generate.
11324 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11326 * doublest.h (floatformat_from_type): Declare.
11327 * doublest.c (floatformat_from_type): New function.
11328 (convert_typed_floating): Use.
11330 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11331 call to function floatformat_from_type.
11333 * gdbarch.sh (IEEE_FLOAT): Delete.
11334 * gdbarch.h, gdbarch.c: Re-generate.
11335 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11336 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11337 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11338 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11339 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11340 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11341 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11342 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11343 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11344 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11345 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11346 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11348 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11349 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11350 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11351 * sh-tdep.c (sh_gdbarch_init): Ditto.
11352 * mips-tdep.c (mips_gdbarch_init): Ditto.
11353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11354 * cris-tdep.c (cris_gdbarch_init): Ditto.
11356 2002-01-20 Jiri Smid <smid@suse.cz>
11358 * configure.host, configure.tgt: Support x86-64.
11359 * NEWS: Note new target x86-64.
11361 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11362 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11363 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11364 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11365 x86-64-linux-nat.o): Fix dependencies.
11367 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11369 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11370 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11371 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11372 * config/sparc/xm-sun4os4.h: Delete file.
11373 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11375 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11377 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11378 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11379 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11380 * config/i386/i386lynx.mh (XM_FILE): Delete.
11381 * config/rs6000/xm-rs6000ly.h: Delete file.
11382 * config/sparc/xm-sparclynx.h: Delete file.
11383 * config/m68k/xm-m68klynx.h: Delete file.
11384 * config/i386/xm-i386lynx.h: Delete file.
11385 * config/xm-lynx.h: Delete file.
11386 * config/djgpp/fnchange.lst: Update.
11388 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11390 * alpha-tdep.c (alpha_register_byte): New function.
11391 (alpha_register_raw_size): Ditto.
11392 (alpha_register_virtual_size): Ditto.
11393 (alpha_skip_prologue_internal): Renamed from
11394 alpha_skip_prologue.
11395 (alpha_skip_prologue): New version that calls
11396 alpha_skip_prologue_internal.
11397 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11398 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11399 second argument from alpha_skip_prologue.
11400 (REGISTER_BYTE): Use alpha_register_byte.
11401 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11402 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11403 (FRAMELESS_FUNCTION_INVOCATION): Use
11404 generic_frameless_function_invocation_not.
11405 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11406 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11408 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11410 * config/mips/xm-news-mips.h: Delete file.
11411 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11413 * config/m88k/xm-m88k.h: Delete file.
11414 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11415 * config/m88k/xm-delta88v4.h: Ditto.
11416 * config/m88k/xm-delta88.h: Ditto.
11418 * config/alpha/xm-fbsd.h: Delete file.
11419 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11421 * config/sparc/xm-sparc.h: Delete file.
11422 * Makefile.in (xm-sun4os4.h): Delete dependency.
11423 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11424 * config/sparc/xm-sun4os4.h: Ditto.
11425 * config/sparc/xm-linux.h: Ditto.
11427 * config/i386/xm-windows.h: Delete file.
11429 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11431 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11432 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11434 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11436 * alpha-tdep.c (alpha_call_dummy_words): New.
11437 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11438 (CALL_DUMMY_P): Define.
11439 (CALL_DUMMY_WORDS): Define.
11440 (SIZEOF_CALL_DUMMY_WORDS): Define.
11442 2002-01-19 Per Bothner <per@bothner.com>
11444 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11445 isn't NULL, which can happen with some gcj-3.x-produced code.
11447 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11449 * alpha-tdep.c (alpha_register_virtual_type): New function.
11450 (alpha_init_frame_pc_first): Ditto.
11451 (alpha_fix_call_dummy): Ditto.
11452 (alpha_store_struct_return): Ditto.
11453 (alpha_extract_struct_value_address): Ditto.
11454 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11455 alpha_register_virtual_type.
11456 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11457 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11458 alpha_extract_struct_value_address.
11459 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11460 (INIT_FRAME_PC): Use init_frame_pc_noop.
11461 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11463 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11465 * i386gnu-nat.c: Include "i386-tdep.h".
11466 (fetch_fpregs): Simplify code dealing with uninitialized floating
11467 point states such that it doesn't require FP7_REGNUM.
11469 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11471 * alpha-tdep.c (frame_extra_info): New.
11472 (alpha_find_saved_regs): Make static. Use
11474 (alpha_frame_init_saved_regs): New function.
11475 (alpha_frame_saved_pc): Use frame->extra_info.
11476 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11477 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11478 (init_extra_frame_info): Rename to...
11479 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11480 (alpha_print_extra_frame_info): New function.
11481 (alpha_frame_locals_address): Ditto.
11482 (alpha_frame_args_address): Ditto.
11483 (alpha_pop_frame): Use frame->extra_info.
11484 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11485 alpha_frame_args_address.
11486 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11487 (alpha_find_saved_regs): Remove prototype.
11488 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11489 (EXTRA_FRAME_INFO): Remove.
11490 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11491 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11493 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11495 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11496 (alpha_cannot_fetch_register): Ditto.
11497 (alpha_cannot_store_register): Ditto.
11498 (alpha_register_convertible): Ditto.
11499 (alpha_use_struct_convention): Ditto.
11500 * config/alpha/tm-alpha.h: Update copyright years.
11501 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11502 (INNER_THAN): Use core_addr_lessthan.
11503 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11504 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11505 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11506 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11507 (FRAME_CHAIN): Remove unnecessary cast.
11509 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11511 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11514 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11516 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11517 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11518 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11519 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11520 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11521 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11522 * x86-64-linux-nat.c: Ditto.
11524 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11526 * alpha-tdep.c (alpha_register_name): New function.
11527 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11528 (REGISTER_NAME): Define.
11530 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11532 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11534 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11536 * alpha-tdep.c: Update copyright years.
11537 (alpha_next_pc): New function.
11538 (alpha_software_single_step): Ditto.
11539 * config/alpha/tm-alpha.h: Add prototype for
11540 alpha_software_single_step.
11542 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11544 * alphabsd-nat.c: Update copyright years.
11545 (fill_gregset): Use regcache_collect.
11546 (fill_fpregset): Likewise.
11547 (fetch_inferior_registers): Only fetch integer registers
11548 if requested to do so.
11549 (store_inferior_registers): Only store integer registers
11550 if requested to do so.
11552 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11554 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11555 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11556 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11557 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11558 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11559 * config/arm/linux.mh (XDEPFILES): Delete.
11560 * config/arm/nbsd.mh (XDEPFILES): Delete.
11561 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11562 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11563 * config/i386/i386m3.mh (XDEPFILES): Delete.
11564 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11565 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11566 * config/i386/fbsd.mh (XDEPFILES): Delete.
11567 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11568 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11569 * config/i386/i386v4.mh (XDEPFILES): Delete.
11570 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11571 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11572 * config/i386/i386aix.mh (XDEPFILES): Delete.
11573 * config/i386/go32.mh (XDEPFILES): Delete.
11574 * config/i386/cygwin.mh (XDEPFILES): Delete.
11575 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11576 * config/i386/i386mach.mh (XDEPFILES): Delete.
11577 * config/i386/i386v32.mh (XDEPFILES): Delete.
11578 * config/i386/linux.mh (XDEPFILES): Delete.
11579 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11580 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11581 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11582 * config/i386/i386sco.mh (XDEPFILES): Delete.
11583 * config/i386/i386v.mh (XDEPFILES): Delete.
11584 * config/i386/nbsd.mh (XDEPFILES): Delete.
11585 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11586 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11587 * config/i386/symmetry.mh (XDEPFILES): Delete.
11588 * config/i386/obsd.mh (XDEPFILES): Delete.
11589 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11590 * config/ia64/linux.mh (XDEPFILES): Delete.
11591 * config/ia64/aix.mh (XDEPFILES): Delete.
11592 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11593 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11594 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11595 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11596 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11597 * config/m68k/linux.mh (XDEPFILES): Delete.
11598 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11599 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11600 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11601 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11602 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11603 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11604 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11605 * config/m88k/delta88.mh (XDEPFILES): Delete.
11606 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11607 * config/m88k/m88k.mh (XDEPFILES): Delete.
11608 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11609 * config/mips/linux.mh (XDEPFILES): Delete.
11610 * config/mips/irix6.mh (XDEPFILES): Delete.
11611 * config/mips/irix5.mh (XDEPFILES): Delete.
11612 * config/mips/irix4.mh (XDEPFILES): Delete.
11613 * config/mips/irix3.mh (XDEPFILES): Delete.
11614 * config/mips/decstation.mh (XDEPFILES): Delete.
11615 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11616 (NATDEPFILES): Move core-aout.o to here.
11617 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11618 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11619 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11620 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11621 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11622 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11623 * config/pa/hpux11.mh (XDEPFILES): Delete.
11624 * config/powerpc/aix.mh (XDEPFILES): Delete.
11625 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11626 * config/powerpc/linux.mh (XDEPFILES): Delete.
11627 * config/romp/rtbsd.mh: Rename XDEPFILES.
11628 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11629 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11630 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11631 * config/s390/s390.mh (XDEPFILES): Delete.
11632 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11633 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11634 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11635 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11636 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11637 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11638 * config/sparc/linux.mh (XDEPFILES): Delete.
11639 * config/vax/vaxult.mh (XDEPFILES): Delete.
11640 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11641 * Makefile.in (DEPFILES): Remove XDEPFILES.
11643 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11645 * utils.c (internal_verror): Fix comments, default is yes not no.
11646 Update queries to match. Default to quit and dump core.
11648 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11650 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11652 * defs.h, event-top.c, gdbcmd.h: Ditto.
11653 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11654 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11655 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11656 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11657 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11658 * mi/mi-main.c:Ditto.
11660 * stack.c, symfile.c: Update copyright.
11662 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11664 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11665 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11666 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11667 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11669 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11671 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11672 * gdbserver/low-lynx.c (myattach): Likewise.
11673 * gdbserver/low-nbsd.c (myattach): Likewise.
11674 * gdbserver/low-sim.c (myattach): Likewise.
11675 * gdbserver/low-sparc.c (myattach): Likewise.
11676 * gdbserver/low-sun3.c (myattach): Likewise.
11678 * gdbserver/low-linux.c (myattach): New function.
11680 * gdbserver/server.c (attach_inferior): New function.
11681 (main): Handle "--attach".
11683 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11685 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11688 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11690 * c-typeprint.c (is_type_conversion_operator): Add additional
11691 check for non-conversion operators.
11693 2002-01-15 Michael Snyder <msnyder@redhat.com>
11695 * linux-proc.c: Add "info proc" command, a la procfs.c.
11696 (read_mapping): New function, abstract and re-use code.
11697 (linux_find_memory_regions): Use new func read_mapping.
11698 (linux_info_proc_cmd): New function, implement "info proc".
11699 (_initialize_linux_proc): Add new command "info proc".
11701 2002-01-15 Michael Snyder <msnyder@redhat.com>
11703 * symfile.c (generic_load): Use bfd_map_over_sections method
11704 instead of manipulating bfd structure members directly.
11705 (add_section_size_callback): New function, bfd sections callback
11706 used by generic_load.
11707 (load_sections_callback): New function, bfd sections callback
11708 used by generic_load.
11710 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11712 [Based on work by Jim Blandy]
11713 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11714 (builtin_type_vec128): Export.
11715 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11717 (builtin_type_vec128): New builtin type for 128 bit vector
11719 (build_gdbtypes): Initialize builtin_type_v16qi and
11720 builtin_type_v8hi. Create the vec128 register builtin type
11722 (build_builtin_type_vec128): New function.
11723 (_initialize_gdbtypes): Register builtin_type_v16qi and
11724 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11725 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11726 AltiVec register to new builtin type.
11728 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11730 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11733 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11735 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11736 CLEAN_UP_REGISTER_VALUE.
11737 * regcache.c (supply_register): Update only call.
11739 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11741 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11742 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11743 a29k-*-vxworks* targets as obsolete.
11745 2002-01-14 Michael Snyder <msnyder@redhat.com>
11747 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11748 until we can resolve portability issues.
11749 * gregset.h: Remove references to fpxregs.
11750 * gcore.c (gcore_command): Initialize note_sec to NULL.
11752 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11754 * signals.c (target_signal_to_name): Rewrite. Only use
11755 signals[].name when in bounds and non-NULL.
11757 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11759 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11760 * signals.c (target_signal_to_name): Verify that SIG is within the
11761 bounds of the signals array.
11763 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11765 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11767 2002-01-13 Keith Seitz <keiths@redhat.com>
11769 * stack.c (print_frame_info_base): Print the frame's pc
11770 only if when print_frame_info_listing_hook is not defined.
11772 2002-01-13 Keith Seitz <keiths@redhat.com>
11774 * varobj.c (varobj_set_value): Make sure that there were no
11775 errors evaluating the object before attempting to set its
11777 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11778 so this offset adjustment is no longer necessary.
11779 (create_child): Don't set the error flag if the child is
11780 a CPLUS_FAKE_CHILD.
11781 (value_of_child): If value_fetch_lazy fails, return NULL
11782 so that callers will be notified that an error occurred.
11783 (c_value_of_variable): Delay check of variable's validity
11784 until later. We actually want all structs and unions to have
11786 Do not return "???" for variables which could not be evaluated.
11787 This error condition must be returned to the caller so that it
11788 can get the error condition from gdb.
11789 (cplus_name_of_child): Adjust index for vptr before figuring
11790 out the name of the child.
11791 (cplus_value_of_child): If a child's (real) parent is not valid,
11792 don't even bother trying to give a value for it. Just return
11793 an error. Change all instances in this function.
11794 (cplus_type_of_child): If our parent is one of the "fake"
11795 parents, we need to get at the type of the real parent, and
11796 derive the child's true type using this information.
11798 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11800 From 2002-01-09 John Marshall <johnm@falch.net>:
11801 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11802 sources.redhat.com, and tweak some related URLs which had
11803 suffered from linkrot.
11805 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11808 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11809 structures passed in registers.
11811 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11813 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11814 white space which prevented compilation. Reported by DSK
11815 <dsk@student.unsw.edu.au>.
11817 2002-01-11 Michael Snyder <msnyder@redhat.com>
11819 * symfile.c (build_section_addr_info_from_section_tab):
11820 Use bfd access method instead of manipulating bfd directly.
11821 (syms_from_objfile): Ditto.
11822 (simple_overlay_update_1): Ditto.
11823 (simple_overlay_update): Ditto.
11824 (generic_load): Ditto.
11825 (overlay_unmapped_address): FIXME comment, bfd access methods.
11826 (sections_overlap): FIXME comment, bfd access methods.
11827 (pc_in_mapped_range): FIXME comment, bfd access methods.
11828 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11829 (section_is_mapped): FIXME comment, bfd access methods.
11830 (section_is_overlay): FIXME comment, bfd access methods.
11832 * symfile.c (generic_load): Whitespace and long line cleanups.
11833 Remove duplicate variable, change several local variables to
11834 more appropriate data types.
11835 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11837 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11839 From Peter Schauer:
11840 * language.c (longest_local_hex_string_custom): Use phex_nz to
11841 convert NUM to a hex string.
11843 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11845 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11847 Update Copyright year.
11849 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11851 * language.c (longest_raw_hex_string): Delete unused function.
11853 2002-01-11 Petr Sorfa <petrs@caldera.com>
11855 * MAINTAINERS (write-after-approval): Add myself.
11856 * dwarf2read.c (read_tag_string_type): Handling of
11858 (read_tag_string_type): FORTRAN fix to prevent propagation of
11860 (set_cu_language): Handling of DW_LANG_Fortran95
11862 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11864 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11865 GETPID(inferior_ptid).
11866 (store_inferior_registers): Likewise.
11868 2002-01-10 Jason Merrill <jason@redhat.com>
11870 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11873 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11875 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11876 and bfd/elf32-sh-nbsd.c.
11878 2002-01-10 Michael Snyder <msnyder@redhat.com>
11880 * NEWS: Mention --pid and corefile/proc-id behavior change.
11882 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11883 * gcore.c: Include cli/cli-decode.h instead of command.h.
11885 * main.c (captured_main): Add new command line option "--pid".
11886 If the second command line argument (following the symbol-file)
11887 begins with a digit, try to attach to it before trying to open
11889 (print_gdb_help): Document the "--pid" argument.
11891 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11893 * completer.c (command_completer): New function.
11895 * completer.h <command_completer>: Add prototype.
11897 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11898 completer for the "help" command.
11900 2002-01-09 Jason Merrill <jason@redhat.com>
11902 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11904 2002-01-09 Michael Snyder <msnyder@redhat.com>
11906 * i386-linux-nat.c (fill_fpxregset): Make global.
11907 (store_fpxregset): Ditto.
11909 * gregset.h (gdb_fpxregset_t): Define.
11910 (supply_fpxregset): Prototype.
11911 (fill_fpxregset): Prototype.
11913 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11915 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11917 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11918 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11919 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11921 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11923 * MAINTAINERS: Update target maintainer rules so that any
11924 Maintainer can approve a tested patch for a maintenance-only
11927 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11929 * MAINTAINERS (write-after-approval): Add myself.
11931 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11934 2002-01-08 Michael Snyder <msnyder@redhat.com>
11936 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11937 real name of the executable, rather than the /proc name.
11939 2002-01-03 Michael Snyder <msnyder@redhat.com>
11941 Implement a "generate-core-file" command in gdb, save target state.
11942 * gcore.c: New file. Implement new command 'generate-core-file'.
11943 Save a corefile image of the current state of the inferior.
11944 * linux-proc.c: Add linux-specific code for saving corefiles.
11945 * target.h (struct target_ops): Add new target vectors for saving
11946 corefiles; to_find_memory_regions and to_make_corefile_notes.
11947 (target_find_memory_regions): New macro.
11948 (target_make_corefile_notes): New macro.
11949 * target.c (update_current_target): Inherit new target methods.
11950 (dummy_find_memory_regions): New place-holder method.
11951 (dummy_make_corefile_notes): New place-holder method.
11952 (init_dummy_target): Initialize new dummy target vectors.
11953 * exec.c (exec_set_find_memory_regions): New function.
11954 Allow the exec_ops vector for memory regions to be taken over.
11955 (exec_make_note_section): New function, target vector method.
11956 * defs.h (exec_set_find_memory_regions): Export prototype.
11957 * procfs.c (proc_find_memory_regions): New function, corefile method.
11958 (procfs_make_note_section): New function, corefile method.
11959 (init_procfs_ops): Set new target vector pointers.
11960 (find_memory_regions_callback): New function.
11961 (procfs_do_thread_registers): New function.
11962 (procfs_corefile_thread_callback): New function.
11963 * sol-thread.c (sol_find_memory_regions): New function.
11964 (sol_make_note_section): New function.
11965 (init_sol_thread_ops): Initialize new target vectors.
11966 * inftarg.c (inftarg_set_find_memory_regions): New function.
11967 Allow to_find_memory_regions vector to be taken over.
11968 (inftarg_set_make_corefile_notes): New function.
11969 Allow to_make_corefile_notes vector to be taken over.
11970 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11971 interface layer if not target_has_execution (may be a corefile).
11972 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11973 * config/sparc/sun4sol2.mh: Ditto.
11974 * config/alpha/alpha-linux.mh: Ditto.
11975 * config/arm/linux.mh: Ditto.
11976 * config/i386/x86-64linux.mh: Ditto.
11977 * config/ia64/linux.mh: Ditto.
11978 * config/m68k/linux.mh: Ditto.
11979 * config/mips/linux.mh: Ditto.
11980 * config/powerpc/linux.mh: Ditto.
11981 * config/sparc/linux.mh: Ditto.
11983 2002-01-07 Michael Snyder <msnyder@redhat.com>
11985 * arm-linux-nat.c: Remove references to regcache.c internal data
11986 (registers[] and register_valid[]).
11988 2002-01-07 Michael Snyder <msnyder@redhat.com>
11990 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11991 so that attaching to a pid will automatically read the process's
11992 symbol file and shlibs.
11993 * Makefile.in: Add rule for linux-proc.o.
11994 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11995 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11996 * config/arm/linux.mh: Ditto.
11997 * config/i386/linux.mh: Ditto.
11998 * config/i386/x86-64linux.mh: Ditto.
11999 * config/ia64/linux.mh: Ditto.
12000 * config/m68k/linux.mh: Ditto.
12001 * config/mips/linux.mh: Ditto.
12002 * config/powerpc/linux.mh: Ditto.
12003 * config/sparc/linux.mh: Ditto.
12005 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12007 * win32-nat.c: Add i386-tdep.h dependency.
12009 2002-01-07 Michael Snyder <msnyder@redhat.com>
12011 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12012 instead of bfd_get_arch_size. Don't bail out just because
12013 there's no exec_bfd.
12015 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12016 * p-valprint.c (pascal_object_print_value): Ditto.
12017 * somread.c (som_symtab_read): Ditto.
12018 * symfile.c (simple_free_overlay_region_table): Ditto.
12019 * valops.c (value_assign): Ditto.
12021 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12022 use tilde_expand and strerror for opening save-tracepoints file.
12024 * thread-db.c (thread_db_new_objfile): Indendation fix.
12026 * infptrace.c (GDB_MAX_ALLOCA): New define.
12027 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12028 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12029 can be overridden with whatever value is appropriate to the host).
12030 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12031 alloca to allocate potentially large buffer.
12032 * rs6000-nat.c (child_xfer_memory): Ditto.
12033 * symm-nat.c (child_xfer_memory): Ditto.
12034 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12036 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12038 From Nick Clifton <nickc@redhat.com>
12039 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12041 2002-01-07 Michael Snyder <msnyder@redhat.com>
12043 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12044 Don't use exec_bfd if it's NULL.
12046 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12048 * valops.c (value_arg_coerce): Fix formatting.
12050 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12052 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12053 * gnu-nat.c: Ditto.
12055 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12057 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12058 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12059 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12060 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12061 z8k-coff have not been multi-arched. Update z8k-coff build
12064 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12066 * MAINTAINERS: Mark a29k target as obsolete.
12067 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12068 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12070 * NEWS: Note that a29k targets are obsolete.
12071 * a29k-tdep.c: Mark as obsolete.
12072 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12073 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12074 a29k-*-vxworks* targets as obsolete.
12075 * remote-adapt.c: Obsolete.
12076 * remote-eb.c: Obsolete.
12077 * remote-mm.c: Obsolete.
12078 * remote-udi.c: Obsolete.
12079 * config/a29k/a29k-udi.mt: Obsolete.
12080 * config/a29k/a29k.mt: Obsolete.
12081 * config/a29k/tm-a29k.h: Obsolete.
12082 * config/a29k/tm-vx29k.h: Obsolete.
12083 * config/a29k/vx29k.mt: Obsolete.
12085 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12087 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12088 with BFD_ENDIAN_BIG.
12090 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12092 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12093 * configure, config.in: Re-generate.
12094 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12095 * defs.h: Do not include <endian.h>.
12097 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12099 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12100 * config.in: Regenerate.
12101 * configure.in: Update copyright years.
12102 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12103 * configure: Regenerate.
12104 * i386bsd-nat.c: Update copyright years.
12105 (fill_gregset): Use regcache_collect.
12106 (fetch_inferior_registers): Only fetch integer registers
12107 if requested to do so. Add support for XMM registers
12108 using PT_GETXMMREGS.
12109 (store_inferior_registers): Only store integer registers
12110 if requested to do so. Add support for XMM registers
12111 using PT_SETXMMREGS.
12112 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12113 (store_inferior_registers): Remove.
12114 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12115 (fetch_elfcore_registers): New function.
12116 (i386nbsd_elfcore_fns): New.
12117 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12118 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12120 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12121 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12122 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12123 * config/i386/tm-nbsd.h: Update copyright years.
12124 (HAVE_SSE_REGS): Define.
12125 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12126 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12127 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12128 (SIGCONTEXT_PC_OFFSET): Remove.
12129 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12131 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12133 * configure.tgt: Remove powerpc-*-macos* target.
12134 * config/m68k/xm-mpw.h: Delete file.
12135 * config/xm-mpw.h: Delete file.
12136 * ser-mac.c: Delete file.
12137 * mpw-make.sed: Delete file.
12138 * mpw-config.in: Delete file.
12139 * mac-xdep.c: Delete file.
12140 * mac-gdb.r: Delete file.
12141 * mac-defs.h: Delete file.
12142 * mac-nat.c: Delete file.
12143 * config/powerpc/macos.mh: Delete file.
12144 * config/powerpc/macos.mt: Delete file.
12145 * config/powerpc/nm-macos.h: Delete file.
12146 * config/powerpc/tm-macos.h: Delete file.
12147 * source.c (openp, open_source_file): Remove obsolete code.
12148 * top.c (gdb_readline): Ditto.
12149 * utils.c (query): Ditto.
12150 * event-top.c (display_gdb_prompt): Ditto.
12151 * Makefile.in (ser-mac.o): Delete obsolete target.
12154 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12156 * defs.h (BIG_ENDIAN): Delete macro definition.
12157 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12158 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12159 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12160 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12161 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12162 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12163 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12164 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12165 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12166 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12167 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12168 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12169 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12170 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12171 * gdbarch.c: Re-generate.
12173 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12175 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12178 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12180 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12182 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12184 * value.h (value_ptr): Delete typedef.
12186 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12188 * i386nbsd-nat.c: Update copyright years.
12189 Include i386-tdep.h.
12191 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12193 * stabsread.c: Update copyright years.
12195 From Debashis Mahata <debashis.mahata@wipro.com>:
12196 (read_struct_fields): Deal with Sun C compiler erroneous stab
12197 output for structs and unions.
12200 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12202 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12205 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12207 * cp-abi.c: Fix whitespace.
12208 (baseclass_offset): New wrapper function.
12209 * cp-abi.h (baseclass_offset): Add prototype.
12210 (struct cp_abi_ops): Add baseclass_offset pointer.
12212 * valops.c (vb_match): Move to...
12213 * gnu-v2-abi.c (vb_match): here.
12214 * valops.c (baseclass_offset): Move to...
12215 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12217 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12219 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12220 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12221 * hpacc-abi.c (init_hpacc_ops): Likewise.
12223 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12225 * valops.c (find_overload_match): Accept obj as a
12226 reference parameter. Update it before returning.
12227 * value.h (find_overload_match): Update prototype.
12228 * eval.c (evaluate_subexp_standard): Pass object to
12229 find_overload_match by reference.
12231 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12233 * valarith.c: Replace value_ptr with struct value pointer. Remove
12234 register attribute from value declarations.
12237 * scm-lang.c (scm_lookup_name): Ditto.
12239 2002-01-03 Michael Snyder <msnyder@redhat.com>
12241 Abstract the functionality of iterating over mapped memory
12242 regions into a general purpose iterator function.
12243 * procfs.c (iterate_over_mappings): New function, general purpose
12244 iterator for memory sections.
12245 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12246 (solib_mappings_callback): New function, callback for above.
12247 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12248 (info_mappings_callback): New function, callback for above.
12250 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12252 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12254 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12255 * i386-tdep.c: Include "elf-bfd.h".
12256 (process_note_abi_tag_sections): New function.
12257 (i386_gdbarch_init): Add code to recognize various OS/ABI
12260 * maint.c (_initialize_maint_cmds): Add missing \ in
12263 For older changes see ChangeLog-2001
12269 version-control: never