1 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
5 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
7 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
8 trampolines in sigaction.
10 2002-10-31 Andrew Cagney <cagney@redhat.com>
12 * h8300-tdep.c: Include "gdb_assert.h".
13 (h8300_print_register): Add gdbarch, file and frame parameters.
14 Use frame_read_unsigned_register to read the register's value.
15 Use fprintf_filtered to display output.
16 (h8300_print_registers_info): Replace h8300_do_registers_info.
17 (h8300_gdbarch_init): Set print_registers_info.
19 2002-10-31 Andrew Cagney <cagney@redhat.com>
21 * frame.c (frame_read_unsigned_register): New function.
22 (frame_read_signed_register): New function.
23 * frame.h (frame_read_unsigned_register): Declare.
24 (frame_read_signed_register): Declare.
26 2002-10-31 Andrew Cagney <cagney@redhat.com>
28 * h8500-tdep.c (h8500_print_registers_info): New static function,
29 clone of infcmd.c's default_print_registers_info.
30 (h8500_do_registers_info): New funtion.
31 (h8500_print_register_hook): Rename print_register_hook, make
34 * config/h8500/tm-h8500.h: Update copyright.
35 (DEPRECATED_DO_REGISTERS_INFO): Define.
36 (h8500_do_registers_info: Declare.
37 (PRINT_REGISTER_HOOK): Delete macro.
38 (print_register_hook): Delete function.
40 2002-10-31 Andrew Cagney <cagney@redhat.com>
42 * z8k-tdep.c (z8k_print_register_hook): Make static.
43 (z8k_print_registers_info): New static function, clone of
44 infcmd.c's default_print_registers_info.
45 (z8k_do_registers_info): New function. Wrap
46 z8k_print_registers_info.
47 * config/z8k/tm-z8k.h: Update copyright.
48 (PRINT_REGISTER_HOOK): Delete macro.
49 (z8k_print_register_hook): Delete declaration.
50 (DEPRECATED_DO_REGISTERS_INFO): Define.
51 (z8k_do_registers_info): Declare.
53 2002-10-30 Joel Brobecker <brobecker@gnat.com>
55 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
56 as this is already provided by value.h, and was actually causing
57 a compilation error because of a conflict in parameter type
58 declaration due to a missing const keyword.
59 (low_text_segment_addres): Fix a compilation warning.
61 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
63 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
64 registers without a name.
65 (mips_linux_cannot_store_register): Don't store registers without
68 2002-10-28 David Carlton <carlton@math.stanford.edu>
70 * symtab.c (find_addr_symbol): Delete. (It was already commented
72 * symtab.h: Delete prototype for find_addr_symbol.
74 2002-10-26 Andrew Cagney <cagney@redhat.com>
76 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
78 gdbarch.h, gdbarch.c: Re-generate.
79 * infcmd.c (default_print_registers_info): Update reference.
80 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
81 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
82 * sh-tdep.c (sh_gdbarch_init): Ditto.
83 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
84 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
86 2002-10-26 Mark Kettenis <kettenis@gnu.org>
88 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
89 cfi_init_extra_frame_info.
90 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
91 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
93 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
94 target where necessary. Add more comments and remove the ones
95 that don't provide any useful information.
97 * i386-tdep.c (i386_frame_saved_pc): Replace call to
98 deprecated_read_register_dummy with
99 frame_unwind_unsigned_register.
101 * i386-tdep.c (i386_extract_struct_value_address): Use
102 regcache_raw_read_unsigned instead of
103 regcache_cooked_read_unsigned since we know that the register
104 we're reading isn't a pseudo register. Rename variable 'val' into
105 the more descriptive 'addr'.
107 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
108 (x86_64_push_return_address): Add comment.
109 (x86_64_pop_frame): Make static.
110 (examine_argument): Clarify comment.
111 (x86_64_skip_prologue): Make prolog_expact variable static.
113 * dwarf2cfi.c: Fix some formatting problems.
114 (context_cpy, read_encoded_pointer): Clarify comments.
116 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
117 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
118 i386 target back into x86_64_gdbarch_init. Add some comments and
119 remove meaningless ones.
121 2002-10-25 Andrew Cagney <cagney@redhat.com>
123 * complaints.h (struct deprecated_complaint): Rename `struct
125 * complaints.c (complain): Update.
126 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
127 incorrect comment indicating that "symfile.h" was being included
128 for the `struct complaint' definition.
129 * remote-vx.c: Update.
130 * objc-lang.c: Update.
131 * xcoffread.c: Update.
133 * mdebugread.c: Update.
134 * stabsread.c: Update.
135 * dwarf2read.c: Update.
136 * dwarfread.c: Update.
138 * coffread.c: Update.
139 * stabsread.h: Update.
141 * buildsym.c: Update.
142 * gdbtypes.c: Update.
143 * macrotab.c: Update.
145 2002-10-25 Mark Kettenis <kettenis@gnu.org>
147 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
148 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
149 (x86_64_init_abi): ...new function.
151 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
152 * i386v-nat.c: Include "i386-tdep.h".
154 2002-10-25 Andrew Cagney <cagney@redhat.com>
156 * gdbtypes.c (address_space_name_to_int): Update.
157 (address_space_int_to_name): Update.
158 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
159 multi-arch predicate.
160 (address_class_name_to_type_flags): Ditto.
161 * gdbarch.h, gdbarch.c: Re-generate.
163 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
165 2002-10-24 Martin M. Hunt <hunt@redhat.com>
167 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
169 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
171 * symtab.h (INIT_SAL): Delete macro.
173 * symtab.c (init_sal): New function.
175 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
176 to init_sal function call.
177 (find_sal_from_funcs_and_line): Ditto.
178 (all_sals_for_line): Ditto.
179 * breakpoint.c (create_internal_breakpoint): Ditto.
180 (create_fork_vfork_event_catchpoint): Ditto.
181 (create_exec_event_catchpoint): Ditto.
182 (parse_breakpoint_sals): Ditto.
183 (watch_command_1): Ditto.
184 (handle_gnu_4_16_catch_command): Ditto.
185 (clear_command): Ditto.
186 * hppa-tdep.c (child_enable_exception_callback): Ditto.
187 * infcmd.c (run_stack_dummy): Ditto.
188 * infrun.c (process_event_stop_test): Ditto.
189 (check_sigtramp2): Ditto.
190 (step_over_function): Ditto.
191 * linespec.c (decode_line_2): Ditto.
192 (decode_line_1): Ditto.
193 * source.c (line_info): Ditto.
194 * symtab.c (find_pc_sect_line): Ditto.
196 2002-10-24 Michal Ludvig <mludvig@suse.cz>
198 * dwarf2cfi.c (struct context)
199 (struct context_reg): Moved to dwarf2cfi.h
200 (context_alloc, frame_state_alloc, context_cpy):
201 Made extern instead of static, removed prototypes.
202 * dwarf2cfi.h (struct context)
203 (struct context_reg): New, moved from dwarf2cfi.c
204 (context_alloc, frame_state_alloc, context_cpy):
206 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
207 Changed from static to extern.
208 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
209 (LINUX_SIGCONTEXT_FP_OFFSET)
210 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
211 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
212 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
213 * x86-64-tdep.c (x86_64_gdbarch_init): Several
214 set_gdbarch_*() calls now use x86-64 specific functions
215 instead of DWARF2 CFI ones.
216 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
217 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
218 (x86_64_init_extra_frame_info): New prototypes.
220 2002-10-23 David Carlton <carlton@math.stanford.edu>
222 * linespec.c: #include "parser-defs.h".
223 Delete prototype for find_template_name_end.
224 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
226 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
228 * NEWS: add recent mi fixes.
229 * varobj.c (struct varobj): Add new "updated" flag.
230 (new_variable): Default "updated" flag to 0.
231 (varobj_set_value): Set "updated" flag to 1 if value
233 (varobj_update): Check varobj "updated" flag before
234 comparing old and refreshed values. Fix for
237 2002-10-23 David Carlton <carlton@math.stanford.edu>
239 * parse.c (parse_exp_1): Use BLOCK_START.
240 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
242 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
244 2002-10-23 David Carlton <carlton@math.stanford.edu>
246 * symtab.c: Delete cplusplus_hint.
247 Delete prototype for find_template_name_end.
249 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
251 * symtab.h: Update comment.
253 2002-10-23 Michael Snyder <msnyder@redhat.com>
255 * printcmd.c (address_info): Restore quotes in output.
256 * valops.c (value_of_local): Restore quotes in error message.
258 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
260 * symtab.c (symbol_demangled_name): New function.
261 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
262 turning most of it into a function.
263 (symbol_demangled_name): Export.
265 2002-10-23 Michael Snyder <msnyder@redhat.com>
267 * valops.c (value_of_local): Restore quotes in error message.
269 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
271 * symtab.c (symbol_init_language_specific): New function.
272 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
273 turning most of it into a function.
274 (symbol_init_language_specific): Export.
276 2002-10-23 David Carlton <carlton@math.stanford.edu>
278 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
279 (dwarf_attr_name): Ditto.
280 (dwarf_type_encoding_name): Ditto.
281 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
282 (process_die): Handle DW_TAG_namespace,
283 DW_TAG_imported_declaration, DW_TAG_imported_module.
284 (read_namespace): New function.
286 2002-10-22 Joel Brobecker <brobecker@gnat.com>
288 * configure.in: Define NEW_PROC_API on Interix too.
289 * configure: Regenerate.
291 2002-10-21 Joel Brobecker <brobecker@gnat.com>
293 * configure: Regenerate using the proper version of autoconf.
295 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
297 * findvar.c (read_var_value): Temporarily disable TLS code, until
298 complete TLS support is added.
300 2002-10-21 Jim Blandy <jimb@redhat.com>
301 Elena Zannoni <ezannoni@redhat.com>
303 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
304 for thread local storage locations.
305 (struct symbol): Add objfile field.
306 (SYMBOL_OBJFILE): Define.
307 * dwarf2read.c (is_thread_local): New static variable.
308 (new_symbol): If variable is in thread local fill in address class
309 and objfile appropriately.
310 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
312 * printcmd.c (address_info): Print the information for thread
313 local storage variable.
314 * findvar.c (read_var_value): In case of thread local variable,
315 defer to the target vector code to compute address.
317 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
319 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
320 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
322 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
324 * symtab.h (address_class): Rename
325 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
326 * hpread.c (hpread_process_one_debug_symbol): Ditto.
327 * printcmd.c (address_info): Ditto.
328 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
330 2002-10-20 Mark Kettenis <kettenis@gnu.org>
332 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
333 DBREG_DRX macro to acces debug registers.
335 * Makefile.in (i386obsd-tdep.o): New target.
337 * solib-sunos.c: Include "bcache.h" and "regcache.h".
338 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
340 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
341 * config/i386/obsd.mt: New file.
342 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
343 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
344 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
345 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
346 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
347 * i386obsd-tdep.c: New file.
349 2002-10-19 Adam Fedor <fedor@gnu.org>
351 * objc-exp.y (name_not_typename): Fix invalid comment.
353 2002-10-20 Mark Kettenis <kettenis@gnu.org>
355 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
356 to allocate partial syms and macro byte caches.
358 2002-10-18 David Carlton <carlton@math.stanford.edu>
360 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
362 2002-10-18 Adam Fedor <fedor@gnu.org>
364 * stabsread.c (find_name_end): New function.
365 (define_symbol): Use it.
367 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
369 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
370 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
371 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
372 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
374 2002-10-17 David Carlton <carlton@math.stanford.edu>
376 * symfile.h: Add opaque declaration for struct obstack.
377 Declare obsavestring to take a const char *.
378 * symfile.c (obsavestring): Make first argument a const char *.
380 2002-10-16 Adam Fedor <fedor@gnu.org>
382 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
383 names when matching breakpoints in current file.
385 2002-10-16 Kevin Buettner <kevinb@redhat.com>
387 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
388 (read_tag_pointer_type): Add address class support.
389 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
390 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
392 * gdbarch.h, gdbarch.c: Regenerate.
393 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
394 (make_type_with_address_space, recursive_type_dump): Add address
396 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
397 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
398 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
400 2002-10-16 Klee Dienes <kdienes@apple.com>
402 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
403 to get the last character of a char[] buffer, not
404 name[sizeof(vptr_name)-1].
406 2002-10-14 Adam Fedor <fedor@gnu.org>
408 * symtab.h: New objc_specific struct.
409 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
410 (SYMBOL_DEMANGLED_NAME): Likewise.
412 2002-10-14 Adam Fedor <fedor@gnu.org>
414 * symfile.c (init_filename_language_table): Add ObjC file extension.
416 2002-10-14 Adam Fedor <fedor@gnu.org>
418 * utils.c (puts_filtered_tabular): New function.
419 (fprintf_symbol_filtered): Get ObjC demangled name.
420 * defs.h (puts_filtered_tabular): Declared.
422 2002-10-14 Kevin Buettner <kevinb@redhat.com>
424 * c-lang.h (c_type_print_varspec_prefix): Delete.
425 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
426 ``need_post_space'' parameter. Adjust all callers.
428 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
430 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
431 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
432 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
433 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
435 2002-10-13 Adam Fedor <fedor@gnu.org>
437 * source.c (print_source_lines): Update comments.
439 2002-10-13 Adam Fedor <fedor@gnu.org>
441 * valops.c (value_of_local): New function.
442 (value_of_this): Use it.
443 * value.h (value_of_local): Declared.
445 2002-10-13 Adam Fedor <fedor@gnu.org>
447 * parse.c: (length_of_subexp, prefixify_subexp): Handle
448 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
450 2002-10-12 Adam Fedor <fedor@gnu.org>
452 * language.c (binop_result_type): Add language_objc to case.
453 (integral_type): Likewise.
454 (character_type): Likewise.
455 (string_type): Likewise.
456 (boolean_type): Likewise.
457 (structured_type): Likewise.
458 (binop_type_check): Likewise.
460 2002-10-11 Adam Fedor <fedor@gnu.org>
462 * printcmd.c (address_info): Print 'self' for ObjC.
464 2002-10-11 Adam Fedor <fedor@gnu.org>
466 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
469 2002-10-11 Adam Fedor <fedor@gnu.org>
471 * language.h (CAST_IS_CONVERSION): Add language_objc.
473 2002-10-11 Adam Fedor <fedor@gnu.org>
475 * defs.h (enum language): Add language_objc.
477 2002-10-11 Klee Dienes <kdienes@apple.com>
479 * findvar.c (read_memory_typed_address): New function.
480 * gdbcore.h (read_memory_typed_address): Add prototype.
481 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
482 to read a value destined for a CORE_ADDR, not read_memory_integer.
483 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
484 (f77_get_dynamic_lowerbound): Ditto.
486 2002-10-11 Martin M. Hunt <hunt@redhat.com>
488 * utils.c (string_to_core_addr): After turning string into
489 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
490 which will do necessary sign-extension, etc.
492 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
494 * c-exp.y (THIS): Delete token and grammar rule.
495 (yylex): Don't return THIS.
496 * cp-valprint.c (vtbl_ptr_name_old): Delete.
497 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
498 * demangle.c (cplus_markers): Update comment. Put '$'
499 first. Remove CPLUS_MARKER.
500 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
501 * jv-exp.y (THIS): Delete token and grammar rule.
502 (yylex): Don't return THIS.
503 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
504 * objc-exp.y (THIS): Delete token and grammar rule.
505 (yylex): Don't return THIS.
506 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
507 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
508 (read_member_functions): Likewise for opname.
509 (read_tilde_fields): Use is_cplus_marker.
511 * defs.h (CPLUS_MARKER): Don't define.
512 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
513 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
514 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
515 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
516 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
518 * config/i386/tm-i386v4.h: Delete file.
519 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
520 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
521 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
522 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
523 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
524 * config/i386/i386sco5.mt (TM_FILE): Likewise.
525 * config/i386/i386v4.mt (TM_FILE): Likewise.
526 * config/i386/ncr3000.mt (TM_FILE): Likewise.
528 2002-10-10 Marko Mlinar <markom@opencores.org>
530 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
531 accidentially not commited 2002-10-09
532 * gdbarch.h, gdbarch.c: Re-generate.
534 2002-10-09 Marko Mlinar <markom@opencores.org>
536 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
537 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
538 * gdbarch.h, gdbarch.c: Re-generate.
540 2002-10-08 Petr Sorfa <petrs@caldera.com>
542 Revised and re-submitted by John Wolfe <jlw@caldera.com>
544 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
545 so we can work on more than one compilation unit at a time. This
546 helps prepare GDB to handle inter-CU die references.
547 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
548 the code to be defined before struct comp_unit_head.
549 (comp_unit_head): Added new members - offset, cu_head,
550 begin_die, next and dwarf2_abbrevs.
551 (dwarf2_abbrevs): Removed single static var; now member of
552 struct comp_unit_head.
553 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
555 (psymtab_to_symtab_1): Changed to work with the new
556 struct comp_unit_head.
557 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
558 constructs the dwarf2_abbrevs[] inside the cu_header.
559 (dwarf2_empty_abbrev_table): Now expects a ptr to a
560 dwarf2_abbrev table to clean up.
561 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
562 handling of dwarf2_abbrevs inside the cu_header.
563 (read_partial_die): Now supports the call to the new
564 dwarf2_lookup_abbrev.
565 (read_full_die): Now supports the call to the new
566 dwarf2_lookup_abbrev.
568 2002-10-06 Christopher Faylor <cgf@redhat.com>
570 * Makefile.in (install-gdbtk): Add missing continuation backslash to
571 insure that shell variables, such as "transformed_name" are propagated
572 to later shell statements in rule.
574 2002-10-06 Mark Kettenis <kettenis@gnu.org>
576 * config/i386/nm-i386sco.h: Add protection against
577 multiple-inclusion. Include "i386/nm-i386v.h".
578 (REGISTER_U_ADDR): Remove define.
579 (i386_register_u_addr): Remove prototype.
581 2002-10-04 Michael Snyder <msnyder@redhat.com>
583 * m32r-stub.c (handle_exception): Make sure exception is "trap"
584 before treating it as a single-step event.
586 2002-10-03 Adam Fedor <fedor@gnu.org>
588 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
589 (objc_demangle): Remove assignment in if statements, Replace
591 (add_msglist): Likewise.
592 (end_msglist): Likewise.
593 (complare_selectors): Likewise.
594 (selectors_info): Likewise.
595 (compare_classes): Likewise.
596 (classes_info): Likewise.
597 (print_object_command): Likewise.
598 (find_objc_msgcall_submethod): Replace PTR with void *.
599 * objc-lang.h: Remove check for __STDC__.
601 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
603 * ui-out.h (ui_out_field_fmt_int): New prototype.
604 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
605 of field width and alignment.
606 * stack.c (print_frame_info_base): When printing frame level, use
607 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
610 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
612 * MAINTAINERS: Add self to Write After Approval list.
614 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
616 * infcmd.c (interrupt_target_command_wrapper): Delete.
617 (interrupt_target_command): Make non static.
618 (nofp_registers_info): Make static.
619 * stack.c (return_command_wrapper): Delete.
620 (return_command): Make non static.
622 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
624 * event-top.c (gdb_setup_readline): New function. Code moved from
625 _initialize_event_loop().
626 (_initialize_event_loop): Call gdb_setup_readline().
628 2002-10-02 Andrew Cagney <ac131313@redhat.com>
630 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
631 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
632 * gdbarch.h, gdbarch.c: Re-generate.
634 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
637 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
639 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
640 of fill_in_vptr_fieldno.
642 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
644 * inferior.h (registers_info, stepi_command, nexti_command,
645 continue_command, interrupt_target_command): Export from infcmd.c.
646 * frame.h (args_info, selected_frame_level_changed_hook,
647 return_command): Export from stack.c.
648 * v850ice.c (stepi_command, nexti_command, continue_command): use
649 prototypes from inferior.h.
650 * tracepoint.c (registers_info, args_info, locals_info): Use
651 prototypes from frame.h and inferior.h.
652 * Makefile.in (mi-main.o): Add dependency on frame.h.
654 2002-10-02 Andrew Cagney <ac131313@redhat.com>
656 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
657 value in register 3 adjusted by ppc_gp0_regnum.
659 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
661 2002-10-02 Marko Mlinar <markom@opencores.org>
663 * MAINTAINERS: Add myself to the Write After Approval list.
665 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
667 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
668 of the section for the N64 ABI, fixed.
670 * config/mips/tm-irix6.h: Include solib.h.
672 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
674 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
677 2002-10-01 Andrew Cagney <ac131313@redhat.com>
679 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
680 and that "mi0" syntax has been removed.
682 2002-09-30 David Carlton <carlton@math.stanford.edu>
684 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
685 * ppc-sysv-tdep.c: #include "gdb_string.h".
686 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
689 2002-10-01 Andrew Cagney <ac131313@redhat.com>
691 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
692 "vrsave"'s register number.
694 2002-09-30 Andrew Cagney <ac131313@redhat.com>
696 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
697 use frame_unwind_signed_register to obtain the PC.
698 (mips_frame_chain): Handle a generic dummy frame.
699 (mips_init_extra_frame_info): When a generic dummy frame, don't
700 re-compute the frame base.
701 (mips_pop_frame): Handle generic dummy frames.
702 (mips_gdbarch_init): When generic dummy frames, set
703 use_generic_dummy_frames, push_dummy_frame to
704 generic_push_dummy_frame, pc_in_call_dummy to
705 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
706 generic_save_dummy_frame_tos.
708 2002-09-30 Andrew Cagney <ac131313@redhat.com>
710 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
711 against TOP when TOP was explictly set.
712 (generic_push_dummy_frame): Set TOP to zero.
714 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
716 * event-loop.c (start_event_loop): Rename variable 'result' to
717 'gdb_result', to avoid conflicts with upcoming intepreters changes.
719 2002-09-30 Keith Seitz <keiths@redhat.com>
721 * gdb-events.sh (selected_thread_changed): New event.
722 * gdb-events.c: Regenerated.
723 * gdb-events.h: Regenerated.
725 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
727 * MAINTAINERS: Add self to Write After Approval list.
729 2002-09-30 Fernando Nasser <fnasser@redhat.com>
731 * disasm.c: New file.
732 * disasm.h: New file.
733 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
734 (compare_lines): Ditto.
736 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
738 (do_assembly_only): Ditto.
739 (do_disassembly): Renamed to gdb_disassembly and moved to
740 disasm.c. Sdded uiout argument.
741 * Makefile.in: Add new files. Reorder SFILES list. Update
742 dependencies. Include libgdb.a later in the insight executable.
744 2002-09-29 Andrew Cagney <ac131313@redhat.com>
746 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
747 bfd/elf64-alpha-fbsd.c.
749 2002-09-29 Andrew Cagney <ac131313@redhat.com>
751 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
754 2002-09-29 Andrew Cagney <ac131313@redhat.com>
756 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
758 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
760 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
761 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
762 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
763 (S_msg_sig_post_reply): Ditto.
765 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
767 * sh-tdep.c (sh_use_struct_convention): Use definition according
769 (sh_push_arguments): Store in register with correct endianess.
770 (sh_default_store_return_value): Ditto.
771 (sh_gdbarch_init): Set sizeof long double to 8.
773 2002-09-27 Mark Kettenis <kettenis@gnu.org>
775 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
776 Fix some whitespace problems.
778 2002-09-27 David Carlton <carlton@math.stanford.edu>
780 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
781 (mcore-tdep.o): Ditto.
782 (ns32k-tdep.o): Ditto.
783 (ns32knbsd-tdep.o): Ditto.
786 * cris-tdep.c: #include "gdb_string.h"
787 * mcore-tdep.c: Ditto.
788 * ns32k-tdep.c: Ditto.
789 * ns32knbsd-tdep.c: Ditto.
793 2002-09-27 David Carlton <carlton@math.stanford.edu>
795 * config/djgpp/fnchange.lst: Add entries for
796 gdb/testsuite/gdb.c++/m-static files.
798 2002-09-27 Jim Wilson <wilson@redhat.com>
800 * MAINTAINERS: Add myself to the Write After Approval list.
802 2002-09-26 Martin M. Hunt <hunt@redhat.com>
804 * mips-tdep.c (find_proc_desc): Initialize startaddr.
807 2002-09-26 Andrew Cagney <ac131313@redhat.com>
809 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
812 2002-09-26 Andrew Cagney <ac131313@redhat.com>
814 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
815 (rs6000_struct_return_address): Delete variable.
816 (rs6000_store_struct_return): Update.
817 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
818 deprecated_extract_struct_value_address.
819 (rs6000_frame_align): New function.
820 (rs6000_gdbarch_init): Set frame_align.
822 2002-09-26 Andrew Cagney <ac131313@redhat.com>
824 From Grace Sainsbury <graces@redhat.com>:
825 * Makefile.in (gdbtk-main.o): New target.
828 (main.o): Update dependencies.
829 (gdb$(EXEEXT)): Add gdb.o.
830 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
831 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
832 (SUBDIR_GDBTK_CLEAN): Set.
833 (install-gdbtk): Install the insight binary.
834 (uninstall-gdbtk): New target.
835 (all-gdbtk, clean-gdbtk): New rule.
836 * top.c (use_windows): Default to zero.
837 * main.c: Include "main.h".
839 (struct captured_main_args): Delete.
840 (gdb_main): New function.
844 2002-09-25 Andrew Cagney <cagney@redhat.com>
846 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
847 (frame_map_regnum_to_name): New function.
848 (frame_map_name_to_regnum): New function.
849 * frame.h (frame_map_name_to_regnum): Declare.
850 (frame_map_regnum_to_name): Declare.
851 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
852 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
853 * parse.c: Do not include "builtin-regs.h".
854 (target_map_name_to_register): Delete function.
855 (write_dollar_variable): Use frame_map_name_to_regnum.
856 * parser-defs.h (target_map_name_to_register): Delete declaration.
857 * expprint.c: Include "frame.h".
858 (print_subexp): Use frame_map_regnum_to_name.
859 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
860 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
862 2002-09-25 Andrew Cagney <ac131313@redhat.com>
864 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
865 wasn't saved, and the next innermost frame is a dummy, return the
866 dummy frame's link register.
868 2002-09-24 Jim Blandy <jimb@redhat.com>
871 * main.c (captured_main): Add a `break' after the case for 'b'.
873 2002-09-24 Keith Seitz <keiths@redhat.com>
875 * varobj.c (c_type_of_child): Use get_target_type instead
878 2002-09-22 Fernando Nasser <fnasser@redhat.com>
880 * source.c (get_current_or_default_source_symtab_and_line): Remove
882 (set_default_source_symtab_and_line): New function. Attempts to
883 determine a source file to list lines from if one is not currently
885 (get_current_source_symtab_and_line): Initialize sal.pc and
887 (set_current_source_symtab_and_line): Mark argument as const.
888 * source.h: Update declarations and comments.
889 * linespec.c (decode_line_1): Replace call to removed routine above.
890 * stack.c (print_frame_info_base): Ditto.
891 * cli/cli-cmds.c (edit_command): Ditto.
892 (list_command): Ditto.
894 2002-09-22 Fernando Nasser <fnasser@redhat.com>
896 * source.c (get_current_or_default_source_symtab_and_line): Initialize
897 sal.pc and sal.end fields.
898 (get_current_or_default_source_symtab_and_line): Ditto.
899 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
900 so we do not cause a new source symtab to be searched for (reverting an
901 unintentional change from the 2002-09-20 patch).
902 * scm-lang.c (scm_unpac): Ditto.
904 2002-09-21 Andrew Cagney <cagney@redhat.com>
906 * complaints.c (symfile_explanations): Remove new-line from
907 ``isolated_message''.
908 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
909 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
911 2002-09-20 Nick Clifton <nickc@redhat.com>
913 * NEWS: Announce that V850EA ISA is no longer supported.
914 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
916 2002-09-20 David Carlton <carlton@math.stanford.edu>
918 * Makefile.in (c-lang.o): Correct dependencies.
919 (utils.o): Gather dependencies.
921 * c-lang.c: #include "gdb_string.h"
923 2002-09-20 Fernando Nasser <fnasser@redhat.com>
925 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
926 * cli/cli-cmds.c (list_command): New function. Implements the new
928 (_init_cli_cmds): Add new command definition.
929 * gdb.1: Document edit command.
930 * doc/gdb.texinfo: Document edit command.
932 2002-09-20 Fernando Nasser <fnasser@redhat.com>
934 * source.c: Make global variables current_source_symtab and
935 current_source_line static.
936 (list_command): Moved to cli/cli-cmds.c.
937 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
938 (get_first_line_listed): New accessor function.
939 (get_lines_to_list): New accessor function.
940 (get_current_source_symtab_and_line): New function. Retrieves the
941 position in the source code that we consider current.
942 (get_current_or_default_source_symtab_and_line): New function.
943 Like the above but attempts to determine a default position if one
944 is not currently defined.
945 (set_current_source_symtab_and_line): New function. Sets the source
946 code position considered current and returns the previously set one.
947 (clear_current_source_symtab_and_line): Reset stored information about
948 a current source line.
949 (_initialize_source): Remove registration for the "list" command and
951 * source.h: Add declarations for the new functions above.
952 * symtab.h: Remove declarations for the global variables mentioned
954 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
955 obtain current source line.
956 * linespec.c (decode_line_1): Ditto.
957 * macroscope.c (default_macro_scope): Ditto.
958 * scm-lang.c (scm_unpac): Ditto.
959 * stack.c (print_frame_info_base): Ditto.
960 * symfile.c (clear_symtab_users): Ditto.
961 * symtab.c (decode_line_spec): Ditto.
962 * cli/cli-cmds.c (list_command): Moved here from source.c.
963 (ambiguous_line_spec): Moved here from source.c.
964 (_init_cli_cmds): Add definition for "list" and its alias.
965 * Makefile.in: Update dependencies.
967 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
969 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
970 with what gcc thinks is correct.
972 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
974 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
975 multiple register push instruction.
977 2002-09-19 Jim Blandy <jimb@redhat.com>
979 Add support for distinct host and target character sets.
980 * charset.c, charset.h: New files.
981 * c-exp.y: #include "charset.h".
982 (yylex): Convert character and string literals to the target
983 character set, before returning them as the semantic value of the
985 * c-lang.c: #include "charset.h".
986 (c_emit_char): Use charset-specific methods to recognize
987 characters with backslash escape forms, to decide which characters
988 to print literally and which to print using numeric escape
989 sequences, and to convert target characters to host characters
991 * utils.c: #include "charset.h".
992 (no_control_char_error): New function.
993 (parse_escape): Use charset-specific methods to recognize
994 backslash escapes, parse `control character' notation, and convert
995 characters from the host character set to the target character set.
996 * configure.in: Set the default host character set.
997 Check where to find iconv, and what its argument types might be.
998 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
999 * Makefile.in (SFILES): List charset.c.
1000 (COMMON_OBS): List charset.o.
1001 (charset.o): New rule.
1002 (charset_h): New header dependency variable.
1003 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1004 (LIBICONV): New variable, set by configure.
1005 (CLIBS): Include $(LIBICONV) here.
1006 * aclocal.m4, config.in, configure: Regenerated.
1008 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1010 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1013 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1015 * gdb_mbuild.sh: New file.
1017 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1019 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1021 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1023 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1024 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1025 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1026 valops.c, value.h: Revert previous change.
1028 2002-09-18 Michael Snyder <msnyder@redhat.com>
1030 Preliminary support for Objective-C:
1031 * defs.h (language_objc): New enum value.
1032 (puts_filtered_tabular): Declaration only, exported from utils.c.
1033 (skip_quoted): Delete, declared in completer.h.
1034 * c-exp.y: Include completer.h.
1037 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1038 New operator enum values.
1039 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1040 * language.c (binop_result_type): Handle language_objc case.
1041 (integral_type, character_type, string_type, boolean_type,
1042 structured_type, binop_type_check): Ditto.
1043 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1044 (struct objc_specific): Add to general_symbol_info.
1045 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1046 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1047 * parser-defs.h (struct objc_class_str): New struct type.
1048 (start_msglist, end_msglist, add_msglist): Declaration only,
1049 exported from objc-lang.c.
1050 * value.h (value_of_local, value_nsstring,
1051 call_function_by_hand_expecting_type): Exported from valops.c.
1052 * valops.c (find_function_addr): Export.
1053 (call_function_by_hand_expecting_type): New function.
1054 (value_of_local): New function.
1055 * symfile.c (init_filename_language_table): Add ".m" extension
1057 * utils.c (puts_filtered_tabular): New function.
1058 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1059 (set/show demangle): Extend help-string to refer to ObjC.
1060 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1061 * stabsread.c (symbol_reference_defined): Objective-C symbols
1062 may contain colons: make allowances when scanning stabs strings
1064 (objc_find_colon): New function.
1065 * printcmd.c (address_info): If language == objc then print
1066 "self" instead of "this".
1067 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1068 OP_NSSTRING, and OP_SELF.
1069 (prefixify_subexp): Ditto.
1070 * source.c (print_source_lines): Mention objc in comment.
1071 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1074 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1076 * complaints.h: Update copyright.
1077 (struct complaints): Declare.
1078 (struct complaint): Make `message' constant.
1079 (internal_complaint): Declare.
1080 (complaint): Declare.
1081 (complaint_root): Delete declaration.
1082 (symfile_complaints): Delete declaration.
1083 (struct complaints): Add opaque declaration.
1084 (clear_complaints): Add a complaints parameter.
1085 * complaints.c: Update copyright.
1086 (enum complaint_series): Define.
1087 (complaint_root): Delete.
1088 (struct complaints): Define.
1089 (complaint_sentinel, symfile_complaint_book): New variables.
1090 (symfile_explanations, symfile_complaints): New variables.
1092 (get_complaints): New function.
1093 (vcomplaint): New function.
1094 (complaint): New function.
1095 (internal_complaint): New function.
1096 (complain): Call vcomplain with symfile_complaint.
1097 (clear_complaints): Rewrite.
1098 (_initialize_complaints): Use add_setshow_command.
1099 * Makefile.in (complaints.o): Update dependencies.
1100 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1101 to call to clear_complaints.
1102 (new_symfile_objfile, reread_symbols): Ditto.
1103 (oldsyms_complaint): Delete.
1104 (empty_symtab_complaint, unknown_option_complaint): Delete.
1105 (free_named_symtabs): Use complaint instead of complain.
1107 2002-09-18 Michael Snyder <msnyder@redhat.com>
1109 Contributed by Apple Computer, Inc. Merged with current sources
1110 by Adam Fedor <fedor@doc.com> [cagney].
1112 * objc-lang.c: First clean-up round: comments, indentation.
1113 * objc-lang.h: Ditto.
1114 * objc-lang.y: Ditto.
1116 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1118 * maint.c (maintenance_internal_error): Print the parameter as the
1120 (maintenance_internal_warning): New function.
1121 (_initialize_maint_cmds): Add command `maint internal-warning'.
1123 * defs.h (internal_warning, internal_vwarning): Declare.
1124 * utils.c (struct internal_problem): Define.
1125 (internal_vproblem): New function.
1126 (internal_warning): New function.
1127 (internal_vwarning): New function.
1128 (internal_warning_problem, internal_error_problem): New variables.
1129 (internal_verror): Just call internal_vproblem.
1131 2002-09-18 Michael Snyder <msnyder@redhat.com>
1133 * objc-lang.c: New file, support for Objective-C.
1134 Preliminary check-in, not yet integrated into gdb.
1135 * objc-lang.h: New file.
1136 * objc-exp.y: New file.
1138 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1140 * infrun.c (signal_stop_update): Convert definition to ISO C.
1141 (signal_print_update): Ditto.
1142 (signal_pass_update): Ditto.
1143 * inflow.c (terminal_save_ours): Ditto.
1145 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1148 * config/djgpp/fnchange.lst: Handle name clashes between
1149 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1152 * i386-linux-tdep.h: Fix tipo.
1154 2002-09-18 Adam Fedor <fedor@gnu.org>
1156 * MAINTAINERS: Add myself to the Write After Approval list.
1158 2002-09-18 Jim Blandy <jimb@redhat.com>
1160 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1161 texthigh and textlow to reader-specific structs caused
1162 objfile_relocate to miss them. This is fixable, but the work that
1163 the change was supposed to prepare GDB for never got done anyway.
1165 2002-09-18 David Carlton <carlton@math.stanford.edu>
1167 * MAINTAINERS: Alphabetize Write After Approval list.
1169 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1172 * values.c (value_static_field): Call read_var_value.
1174 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1176 * valops.c (hand_function_call): Align the initial stack pointer
1177 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1178 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1180 * mips-tdep.c (mips_frame_align): New function.
1181 (mips_gdbarch_init): Set frame_align.
1182 * gdbarch.sh (FRAME_ALIGN): New method.
1183 * gdbarch.h, gdbarch.c: Re-generate.
1185 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1187 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1190 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1192 * NEWS: Mention that MIPS $fp behavior changed.
1193 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1194 reference to FP_REGNUM.
1195 (mipsnbsd_cannot_store_register): Ditto.
1196 * mips-linux-nat.c: Update copyright.
1197 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1198 (mips_linux_cannot_store_register): Ditto.
1199 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1200 * config/mips/tm-mips.h: Update copyright.
1201 (FP_REGNUM): Delete macro.
1202 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1203 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1204 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1205 (mips_r3041_reg_names, mips_r3051_reg_names)
1206 (mips_r3081_reg_names): Replace "fp" with "".
1209 2002-09-17 Theodore A. Roth <troth@verinet.com>
1211 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1212 generic_read_register_dummy() (PR gdb/703).
1213 (avr_push_return_address): #if 0 out unused vars.
1214 (avr_gdbarch_init): Enable use of avr_push_return_address().
1216 2002-09-17 Michael Snyder <msnyder@redhat.com>
1218 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1219 RTE will take care of it.
1221 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1223 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1224 invalid, return SP_REGNUM.
1226 2002-09-17 Michael Snyder <msnyder@redhat.com>
1228 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1229 point registers without sign extension.
1231 2002-09-17 Andrew Cagney <cagney@redhat.com>
1233 * blockframe.c (deprecated_read_register_dummy): Rename
1234 generic_read_register_dummy.
1235 * frame.c (frame_unwind_signed_register): New function.
1236 (frame_unwind_unsigned_register): New function.
1237 * frame.h (frame_unwind_signed_register): Declare.
1238 (frame_unwind_unsigned_register): Declare.
1239 (deprecated_read_register_dummy): Rename
1240 generic_read_register_dummy.
1242 * h8300-tdep.c (h8300_frame_chain): Update.
1243 (h8300_frame_saved_pc): Update.
1244 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1245 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1246 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1247 (s390_frame_chain): Update.
1248 * v850-tdep.c (v850_find_callers_reg): Update.
1249 (v850_frame_saved_pc): Update.
1250 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1251 (m32r_find_callers_reg): Update.
1252 (m32r_frame_saved_pc): Update.
1253 * sh-tdep.c (sh_find_callers_reg): Update.
1254 (sh64_get_saved_pr): Update.
1255 (sh_init_extra_frame_info): Update.
1256 (sh_init_extra_frame_info): Update.
1257 (sh64_init_extra_frame_info): Update.
1258 (sh64_init_extra_frame_info): Update.
1259 * mcore-tdep.c (mcore_find_callers_reg): Update.
1260 (mcore_frame_saved_pc): Update.
1261 (mcore_init_extra_frame_info): Update.
1262 * i386-tdep.c (i386_frame_saved_pc): Update.
1263 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1264 (ia64_init_extra_frame_info): Update.
1265 (ia64_init_extra_frame_info): Update.
1266 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1267 * cris-tdep.c (cris_init_extra_frame_info): Update.
1268 * avr-tdep.c (avr_frame_chain): Update.
1269 (avr_init_extra_frame_info): Update.
1270 (avr_frame_saved_pc): Update.
1271 * arm-tdep.c (arm_find_callers_reg): Update.
1272 (arm_init_extra_frame_info): Update.
1273 (arm_frame_saved_pc): Update.
1275 2002-09-17 Tom Tromey <tromey@redhat.com>
1277 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1280 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1282 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1283 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1285 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1288 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1290 * osfsolib.c: Remove file, replaced by solib-osf.c.
1291 * Makefile.in: Remove compilation rules for osfsolib.c.
1293 2002-09-16 David Carlton <carlton@math.stanford.edu>
1295 * cp-valprint.c (cp_print_class_method): Correct args to
1296 check_stub_method_group.
1298 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1300 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1301 `set architecture'. Unify naming convention of functions.
1302 (h8300_skip_prologue): Improve prologue analysis.
1303 (h8300_push_arguments): Rewritten to more closely match GCC's
1304 bizarre argument-passing behavior, along with the comment describing
1306 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1307 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1308 sim, remote-e7000.c, remote-hms.c and remote.c
1310 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1312 * i386-tdep.c (gdb_print_insn_i386): Removed.
1313 (i386_print_insn): New function.
1314 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1315 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1318 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1320 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1323 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1325 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1326 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1327 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1329 2002-09-13 Christopher Faylor <cgf@redhat.com>
1331 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1333 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1335 * gdbtypes.c (check_stub_method): Make static.
1336 (check_stub_method_group): New function.
1337 * gdbtypes.h: Update prototypes.
1338 * cp-support.c: New file.
1339 * cp-support.h: New file.
1341 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1342 (update_method_name_from_physname): New function.
1343 (read_member_functions): Correct method names for operators
1344 and v3 constructors/destructors. Separate v2 constructors and
1346 * Makefile.in (stabsread.o): Update dependencies.
1347 (SFILES): Add cp-support.c.
1348 (COMMON_OBS): Add cp-support.o.
1349 (cp_support_h, cp-support.o): Add.
1351 * cp-valprint.c (cp_print_class_method): Call
1352 check_stub_method_group instead of check_stub_method. Remove
1354 * p-valprint.c (pascal_object_print_class_method): Likewise.
1355 * valops.c (search_struct_method): Likewise.
1356 (find_method_list, value_struct_elt_for_reference): Likewise.
1358 2002-09-13 Andrew Cagney <cagney@redhat.com>
1360 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1361 * gdbarch.h, gdbarch.c: Regenerate.
1363 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1365 * frame.c (find_saved_register): Delete function.
1366 * frame.h (find_saved_register): Delete declaration.
1369 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1371 * mips-tdep.c (read_next_frame_reg): Re-hack using
1372 frame_register_unwind.
1374 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1376 * mips-tdep.c (mips_get_saved_register): Re-hack using
1377 frame_register_unwind.
1379 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1381 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1382 vector. Will be useful for Interix.
1383 * gdbarch.h, gdbarch.c: Regenerate.
1385 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1386 name of the malloc function by NAME_OF_MALLOC.
1388 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1390 * value.h (find_function_in_inferior): Add const keyword to
1391 one of the parameters. Allows us to invoke this function with
1393 * valops.c (find_function_in_inferior): Likewise.
1395 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1397 * exec.c (xfer_memory): Fix compilation warning with old versions
1399 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1401 2002-09-12 David Carlton <carlton@math.stanford.edu>
1403 * symtab.h: Run through gdb_indent.h.
1404 Add 2002 to Copyright year list.
1406 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1408 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1410 * MAINTAINERS: Add myself to write after approval list.
1412 2002-09-11 J. Brobecker <brobecker@gnat.com>
1414 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1416 2002-09-11 J. Brobecker <brobecker@gnat.com>
1418 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1421 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1423 * procfs.c (do_detach): Clear current signal, not just fault.
1424 Corrects problem with breakpoint trap signal leaking to detached
1427 2002-09-10 Michael Snyder <msnyder@redhat.com>
1429 * buildsym.c (finish_block): Protect against null pointer.
1431 2002-09-10 Andrew Cagney <cagney@redhat.com>
1433 * infcmd.c (default_print_registers_info): Send all output to
1434 ``file'' instead of ``gdb_stdout''.
1436 2002-09-10 Michael Snyder <msnyder@redhat.com>
1438 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1439 LONGEST, and use signed register read (addresses are sign-
1442 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1444 * event-loop.c (gdb_do_one_event): Make public.
1445 * event-loop.h (gdb_do_one_event): Declare.
1447 2002-09-10 Jeff Law <law@redhat.com>
1449 * infttrace.c (child_resume): Simplify and rework to avoid
1452 2002-09-09 Fred Fish <fnf@intrinsity.com>
1454 * printcmd.c (print_scalar_formatted): "len" is the number of
1455 target bytes, NOT the number of target bits.
1457 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1459 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1460 * top.c (init_main): Set rl_terminal_name.
1462 2002-09-08 Aidan Skinner <aidan@velvet.net>
1464 * ada-lang.c (ada_array_bound, ada_type_match,
1465 _initialize_ada_language): Fix K&R definitions.
1466 * ada-tasks.c (get_current_task): Fix K&R definitions.
1467 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1469 2002-09-07 Christopher Faylor <cgf@redhat.com>
1471 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1474 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1476 * i386-tdep.c (i386_register_virtual_type,
1477 i386_register_convertible, i386_register_convert_to_virtual,
1478 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1479 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1480 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1481 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1482 Don't set push_arguments twice.
1484 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1485 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1486 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1487 sigtramp_end to NULL.
1488 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1490 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1492 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1495 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1496 * gdbarch.h, gdbarch.c: Re-generate.
1497 * blockframe.c (find_pc_sect_partial_function): Convert to use
1498 SIGTRAMP_START_P predicate.
1500 2002-09-05 Michael Snyder <msnyder@redhat.com>
1502 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1503 generic_dummy_frame method and old method. Also distinguish
1504 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1505 (arm_extract_return_value): Use new regcache method.
1507 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1508 adjustment that doesn't conform to the ABI.
1509 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1510 saved regcache, not from current regcache.
1512 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1514 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1517 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1519 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1520 if arm_apcs_32 is false.
1522 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1524 GDB 5.3 branch created.
1526 2002-09-03 Theodore A. Roth <troth@verinet.com>
1528 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1529 generic_unwind_get_saved_register.
1531 2002-09-03 David Carlton <carlton@math.stanford.edu>
1533 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1534 argument (PR gdb/653). Update call to smash_to_method_type.
1535 (read_structure_scope): Update call to dwarf2_add_member_fn.
1537 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1539 * x86-64-linux-tdep.c: Include gdb_string.h
1540 * x86-64-linux-nat.c: Ditto.
1542 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1544 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1545 when YYDEBUG is set to 1.
1546 * c-exp.y: Likewise.
1547 * f-exp.y: Likewise.
1548 * jv-exp.y: Likewise.
1549 * m2-exp.y: Likewise.
1550 * p-exp.y: Likewise.
1552 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1554 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1556 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1557 solib_svr4_fetch_link_map_offsets to
1558 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1559 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1560 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1561 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1562 solib-svr4.o, and solib-legacy.o.
1563 * config/i386/tm-nbsd.h: Include solib.h.
1565 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1567 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1568 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1569 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1570 comment noting that this needs its own target configuration.
1571 * config/i386/nbsd.mt: New file.
1572 * config/i386/nbsdaout.mt: Remove.
1573 * config/i386/nbsdelf.mt: Ditto.
1574 * config/i386/tm-nbsdaout.h: Ditto.
1576 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1578 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1579 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1580 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1582 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1583 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1584 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1586 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1588 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1589 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1590 * i386-tdep.h (i386bsd_init_abi): New prototype.
1591 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1592 function declaration.
1593 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1594 for NetBSD-a.out or NetBSD-ELF.
1595 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1596 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1597 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1598 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1600 (i386nbsd_pc_in_sigtramp): New function.
1601 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1602 i386nbsd_pc_in_sigtramp.
1603 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1604 and i386nbsdelf_init_abi OS ABI handlers.
1605 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1606 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1608 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1610 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1611 registers if the target really has them.
1613 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1615 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1618 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1620 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1622 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1623 (alphanbsd_skip_sigtramp_frame): New functions.
1624 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1625 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1626 to alphanbsd_sigcontext_addr.
1628 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1630 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1632 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1633 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1634 nbsd_pc_in_sigtramp.
1635 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1636 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1637 * nbsd-tdep.c: Include gdb_string.h.
1638 (nbsd_pc_in_sigtramp): New function.
1639 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1640 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1641 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1642 ppcnbsd_pc_in_sigtramp.
1643 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1644 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1645 shnbsd_pc_in_sigtramp.
1646 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1647 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1648 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1650 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1652 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1653 watchpoints to NULL.
1654 (insert_breakpoints): set val field of watchpoints if NULL.
1657 2002-08-29 Jim Blandy <jimb@redhat.com>
1659 * symtab.c (lookup_symbol_aux): In the cases where we find a
1660 minimal symbol of an appropriate name and use its address to
1661 select a symtab to read and search, use `name' (as passed to us)
1662 as the demangled name when searching the symtab's global and
1663 static blocks, not the minsym's name.
1665 2002-08-29 Keith Seitz <keiths@redhat.com>
1667 * stack.c (print_frame_info_base): Always set current_source_symtab
1668 and current_source_line.
1670 2002-08-29 Donn Terry <donnte@microsoft.com>
1672 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1674 2002-08-28 Keith Seitz <keiths@redhat.com>
1676 * stack.c (select_frame): Add FIXME concerning selected-frame
1678 (select_frame_command): Send selected-frame-level-changed
1679 event notification, but only if the level actually changed.
1680 (up_silently_base): Add selected-frame-level-changed event
1682 (down_silently_base): Likewise.
1684 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1686 * Makefile.in: Update dependencies for all gdb/*.c files.
1688 2002-08-27 Tom Tromey <tromey@redhat.com>
1690 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1691 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1692 Update dependencies.
1693 * i387-tdep.c: Include gdb_string.h.
1694 * osabi.c: Likewise.
1695 * i386-linux-nat.c: Likewise.
1696 * lin-lwp.c: Likewise.
1697 * ax-gdb.c: Likewise.
1698 * signals/signals.c: Likewise.
1699 * jv-valprint.c: Likewise.
1700 * p-lang.c: Likewise.
1701 * c-valprint.c: Likewise.
1702 * cp-abi.c: Likewise.
1704 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1706 * cli/cli-script.h (copy_command_lines): Export.
1707 * breakpoint.c: Include cli/cli-script.h.
1708 * Makefile.in (breakpoint.o): Update dependencies.
1710 2002-08-26 Michael Snyder <msnyder@redhat.com>
1712 * breakpoint.c (insert_breakpoints): Protect all references
1713 to 'process_warning'. Shorten long lines.
1715 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1717 * cli/cli-script.c (copy_command_lines): New function.
1718 * defs.h (copy_command_lines): Export.
1719 * testsuite/gdb.base/commands.exp: New tests for commands
1720 attached to a temporary breakpoint, and for commands that
1721 delete the breakpoint they are attached to.
1723 2002-08-26 Michael Snyder <msnyder@redhat.com>
1725 * breakpoint.c (bpstat_stop_status): Instead of copying the
1726 pointer to the breakpoint commands struct, make a new copy
1727 of the struct and point to that.
1728 (bpstat_clear): Free the commands struct.
1729 (bpstat_clear_actions): Free the commands struct.
1730 (bpstat_do_actions): Free the command actions. Also execute
1731 the local cleanups, instead of deleting them.
1732 (delete_breakpoint): Leave the commands field of the bpstat
1733 chain alone -- it will be freed later.
1735 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1737 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1738 deleted in 2002-08-20 commit. This function is still used by
1741 2002-08-26 Keith Seitz <keiths@redhat.com>
1743 * gdb-events.sh: Add selected-frame-level-changed event.
1744 * gdb-events.c: Regenerated.
1745 * gdb-events.h: Regenerated.
1747 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1750 * inflow.c (terminal_save_ours): New function to save terminal
1752 * inferior.h (terminal_save_ours): Declare.
1753 * target.c (debug_to_terminal_save_ours): New function.
1754 (cleanup_target): Defaults to_terminal_save_ours.
1755 (update_current_target): Inherit to_terminal_save_ours.
1756 (setup_target_debug): Set to_terminal_save_ours.
1757 * target.h (target_terminal_save_ours): New to save terminal settings.
1758 (target_ops): New member to_terminal_save_ours.
1759 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1760 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1761 * inftarg.c (init_child_ops): Likewise.
1762 * m3-nat.c (init_m3_ops): Likewise.
1763 * procfs.c (init_procfs_ops): Likewise.
1764 * wince.c (init_child_ops): Likewise.
1765 * win32-nat.c (init_child_ops): Likewise.
1766 * sol-thread.c (init_sol_thread_ops): Likewise.
1768 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1770 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1771 use regcache_* functions.
1772 (i386_gdbarch_init): Set store_return_value instead of
1773 deprecated_store_return_value.
1775 * regcache.c (regcache_raw_write_signed,
1776 regcache_raw_write_unsigned): New functions.
1777 * regcache.h (regcache_raw_write_signed,
1778 regcache_raw_write_unsigned): New prototypes.
1780 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1782 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1783 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1784 source file dependencies. Cleanup corresponding generator rules.
1786 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1788 * regcache.h (register_offset_hack): Declare.
1789 (regcache_cooked_read_using_offset_hack): Declare.
1790 (regcache_cooked_write_using_offset_hack): Declare.
1792 * regcache.c (register_offset_hack): New function.
1793 (regcache_cooked_read_using_offset_hack): New function.
1794 (regcache_cooked_write_using_offset_hack): New function.
1795 (regcache_dump): Check that the registers, according to their
1796 offset, are packed hard against each other.
1797 (cooked_xfer_using_offset_hack): New function.
1799 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1801 * regcache.c (struct regcache_descr): Add field register_type.
1802 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1804 (init_regcache_descr): Initialize register_type. Pass the descr
1805 to init_legacy_regcache_descr. Use register_type instead of
1806 REGISTER_VIRTUAL_TYPE.
1807 (register_type): New function.
1808 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1809 * regcache.h (register_type): Declare.
1811 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1813 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1814 instead of deprecated_store_return_value. Fix fallout from
1815 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1817 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1819 * regcache.c (max_register_size): New function.
1820 (init_legacy_regcache_descr): Ensure that max_register_size is
1821 large enough for REGISTER_VIRTUAL_SIZE.
1822 * regcache.h (max_register_size): Declare.
1824 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1826 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1828 (e500_extract_return_value): Change type of valbuf pointer to
1831 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1833 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1836 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1837 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1838 long long) to prevent compiler warning on 64-bit systems.
1840 2002-08-23 Andrew Cagney <cagney@redhat.com>
1842 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1843 (DEPRECATED_STORE_RETURN_VALUE): New method.
1844 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1845 * gdbarch.h, gdbarch.c: Re-generate.
1847 * values.c (set_return_value): Pass current_regcache to
1849 * arch-utils.h (legacy_store_return_value): Declare.
1850 * arch-utils.c (legacy_store_return_value): New function.
1851 (legacy_extract_return_value): Update parameters.
1853 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1855 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1856 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1857 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1858 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1859 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1860 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1861 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1862 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1863 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1864 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1867 * i386-tdep.c (i386_extract_return_value): Update.
1868 * arch-utils.c (legacy_extract_return_value): Update.
1869 * frv-tdep.c (frv_gdbarch_init): Update.
1870 * cris-tdep.c (cris_gdbarch_init): Update.
1871 * d10v-tdep.c (d10v_gdbarch_init): Update.
1872 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1873 * m68k-tdep.c (m68k_gdbarch_init): Update.
1874 * mcore-tdep.c (mcore_gdbarch_init): Update.
1875 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1876 * s390-tdep.c (s390_gdbarch_init): Update.
1877 * sparc-tdep.c (sparc_gdbarch_init): Update.
1878 * sh-tdep.c (sh_gdbarch_init): Update.
1879 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1880 * v850-tdep.c (v850_gdbarch_init): Update.
1881 * avr-tdep.c (avr_gdbarch_init): Update.
1882 * ia64-tdep.c (ia64_gdbarch_init): Update.
1883 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1884 * vax-tdep.c (vax_gdbarch_init): Update.
1885 * alpha-tdep.c (alpha_gdbarch_init): Update.
1886 * arm-tdep.c (arm_gdbarch_init): Update.
1887 * mips-tdep.c (mips_gdbarch_init): Update.
1888 * i386-tdep.c (i386_gdbarch_init): Update.
1890 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1892 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1893 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1895 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1897 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1900 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1902 * infrun.c (handle_inferior_event): Move a comment outside of a
1903 function call, in order to avoid indent reformatting this part
1904 of the code in an unreadable way.
1906 2002-08-23 Grace Sainsbury <graces@redhat.com>
1908 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1909 when breakpoints fail. Move general breakpoint error messages to
1911 * breakpoint.c (insert_breakpoints): Change warnings when
1912 breakpoints are nto inserted to specify the type. Remove call to
1913 memory_error when hardware breakpoints can't be inserted. Remove
1914 multiple calls to warning so all messages are sent to the user at
1916 (delete_breakpoints): Make insert error messsages more explicit.
1918 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1920 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1921 gdbserver/ChangeLog.
1923 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1925 * i386-tdep.c: Include "objfiles.h".
1926 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1927 skip_trampoline_code.
1928 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1929 (CPLUS_MARKER): Define to '.'.
1931 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1933 (linux_corefile_thread_callback): Increase args->num_notes.
1934 (linux_make_note_section): Initialize thread_args.num_notes, and
1935 use it to determine whether notes for any threads were created.
1937 2002-08-23 Donn Terry <donnte@microsoft.com>
1939 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1940 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1942 (write_with_trace): Conditionalize out the switch branch handling
1943 PCSHOLD if the corresponding macro is not defined. Likewise for
1944 PRSABORT and PRSTOP.
1945 This change will be needed by the Interix port.
1947 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1949 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1950 write_register wherever possible instead of manipulating the
1951 register bytes directly.
1952 Assign VALUE_CONTENTS to a variable and use that.
1953 The GPR numbers are now dependent on the architecture.
1955 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1957 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1959 (skip_prologue): Add support for BookE/e500 instructions.
1960 (e500_extract_return_value): New function.
1961 (frame_get_saved_regs): Add support for saving ev registers and
1963 (e500_store_return_value): New function.
1964 (rs6000_gdbarch_init): Move up default intializations of
1965 deprecated_extract_return_value and store_return_value. Overwrite
1966 init of store_return_value with e500 specific version.
1967 Set extract_return_value for e500.
1969 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1971 * blockframe.c (generic_call_dummy_register_unwind): Use
1972 regcache_cooked_read to catch cases in which the variable is
1973 stored in a pseudo register.
1975 2002-08-22 Andrew Cagney <cagney@redhat.com>
1977 * NEWS: Mention that the i960 has been made obsolete.
1978 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1980 (remote-nrom.o): Obsolete target.
1981 (remote-nindy.o, i960-tdep.o): Ditto.
1982 * remote-nrom.c: Make file obsolete.
1983 * remote-nindy.c, remote-vx960.c: Ditto.
1984 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1985 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1986 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1987 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1988 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1989 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1990 i960-*-vxworks* obsolete.
1991 * MAINTAINERS: Note that the i960 is obsolete.
1993 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1995 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1996 detach to allow reinitialization.
1998 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2000 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2003 2002-08-22 Jim Blandy <jimb@redhat.com>
2005 * coffread.c (coff_symfile_read): Don't try to read the line
2006 number table from disk if the image file doesn't have a symbol
2007 table; we'll never actually look at the info anyway, and Windows
2008 ships DLL's with bogus file offsets for the line number data.
2010 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2012 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2015 2002-08-21 Michael Snyder <msnyder@redhat.com>
2017 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2018 (MSYMBOL_SIZE): Replace macro with function.
2019 (DEFAULT_MIPS_TYPE): Delete unused macro.
2020 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2021 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2023 2002-08-21 Jim Blandy <jimb@redhat.com>
2025 * valops.c (value_cast): Simplify and correct logic for doing a
2026 static cast from a pointer to a base class to a pointer to a
2029 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2031 * infcmd.c (default_print_registers_info): Replace
2033 (registers_info): Use gdbarch_print_registers_info instead of
2035 * inferior.h (default_print_registers_info): Replace
2037 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2038 (DO_REGISTERS_INFO): Change to a predicate function.
2039 * gdbarch.h, gdbarch.c: Regenerate.
2041 2002-08-21 Keith Seitz <keiths@redhat.com>
2043 * gdb-events.sh: Add target-changed event.
2044 * gdb-events.c: Regenerated.
2045 * gdb-events.c: Regenerated.
2046 * valops.c (value_assign): Add target-changed event notification
2047 to inlval_register, lval_memory, and lval_reg_frame_relative.
2049 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2051 * NEWS: Add an entry regarding the improvement of the next/step
2052 operation on Alpha Tru64 multi-processor machines.
2054 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2056 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2058 * Makefile.in: Update all _h macro definitions.
2059 * Makefile.in (install-gdbtk): Move to install section.
2060 (rdi-share/libangsd.a): Move to end of file.
2062 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2064 * frame.c (frame_register_unwind): When a register, set addrp to
2065 the register's byte.
2067 2002-08-20 Michael Snyder <msnyder@redhat.com>
2069 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2070 used locally, so move them from the target machine header to here.
2071 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2072 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2074 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2076 2002-08-20 Andrew Cagney <cagney@redhat.com>
2078 * NEWS: Mention that the Apollo line was made obsolete.
2079 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2080 m68*-hp-hpux* obsolete.
2081 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2082 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2083 * buildsym.c (make_blockvector): Make static.
2084 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2085 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2086 (ALLDEPFILES): Remove dstread.c.
2087 (dstread.o): Obsolete make rule.
2088 * dstread.c: Makefile obsolete.
2090 * config/m68k/hp300hpux.mt: Ditto.
2091 * config/m68k/hp300hpux.mh: Ditto.
2092 * config/m68k/hp300bsd.mt: Ditto.
2093 * config/m68k/hp300bsd.mh: Ditto.
2094 * config/m68k/apollo68b.mt: Ditto.
2095 * config/m68k/apollo68v.mh: Ditto.
2096 * config/m68k/apollo68b.mh: Ditto.
2098 2002-08-20 Michael Snyder <msnyder@redhat.com>
2100 * mips-tdep.c (mips_in_return_stub): Make static.
2101 (mips_gdbarch_init): Set in_solib_return_trampoline.
2102 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2104 2002-08-20 Michael Snyder <msnyder@redhat.com>
2106 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2107 * gdbarch.c, gdbarch.h: Regenerate.
2108 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2110 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2112 2002-08-20 Michael Snyder <msnyder@redhat.com>
2114 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2115 (mips_gdbarch_init): Set skip_trampoline_code,
2116 in_solib_call_trampoline.
2117 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2118 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2120 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2122 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2124 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2125 vector type for ev registers.
2126 (e500_pseudo_register_read): New function.
2127 (e500_pseudo_register_write): New function.
2128 (e500_dwarf2_reg_to_regnum): New function.
2129 (PPC_UISA_NOFP_SPRS): New macro.
2130 (PPC_EV_REGS): New macro.
2131 (PPC_GPRS_PSEUDO_REGS): New macro.
2132 (registers_e500): New register set for e500.
2133 (variants): Add e500 variant.
2134 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2135 before setting architectural dependent variations. Initialize ev
2136 registers numbers. Add case for e500 architecture. Set the
2137 number of pseudo registers.
2139 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2141 * rs6000-tdep.c: Clean up comments.
2143 2002-08-20 Andrew Cagney <cagney@redhat.com>
2145 * h8300-tdep.c: Re-indent file.
2147 2002-08-20 Jim Blandy <jimb@redhat.com>
2149 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2152 2002-08-20 Keith Seitz <keiths@redhat.com>
2154 * breakpoints.c (watch_command_1): Use internal breakpoint
2155 when setting a watchpoint_scope breakpoint.
2157 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2159 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2160 (build_builtin_type_vec64i): Ditto.
2161 (build_builtin_type_vec128): Ditto.
2162 (build_builtin_type_vec128i): Ditto.
2164 2002-08-19 Michael Snyder <msnyder@redhat.com>
2166 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2167 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2168 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2169 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2170 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2171 CALL_DUMMY_ADDRESS): Delete.
2172 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2173 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2174 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2175 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2176 push_return_address.
2177 (mips_register_raw_size, mips_eabi_use_struct_convention,
2178 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2179 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2180 mips_init_extra_frame_info, mips_eabi_push_arguments,
2181 mips_n32n64_push_arguments, mips_push_return_address,
2182 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2183 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2185 2002-08-19 Michael Snyder <msnyder@redhat.com>
2187 * mips-tdep.c (mips_frame_num_args): New function.
2188 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2189 frame_saved_pc, frame_args_address, frame_locals_address,
2190 frame_num_args, and frame_args_skip.
2191 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2192 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2193 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2194 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2196 2002-08-20 Michael Snyder <msnyder@redhat.com>
2198 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2199 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2200 * mips-tdep.c (mips_store_struct_return): New function.
2201 (mips_extract_struct_value_address): New function.
2202 (mips_gdbarch_init): Set store_struct_return and
2203 extract_struct_value_address.
2205 2002-08-20 David Carlton <carlton@math.stanford.edu>
2207 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2208 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2209 (read_file_scope): Check that line_header is nonzero before
2210 decoding macro information.
2212 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2214 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2215 flag the general-purpose registers as floating-point on targets
2216 that don't support the floating-point registers.
2218 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2220 * rs6000-tdep.c (altivec_register_p): Delete.
2221 (rs6000_do_altivec_registers): Delete.
2222 (rs6000_altivec_registers_info): Delete.
2223 (rs6000_do_registers_info): Delete.
2224 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2225 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2227 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2229 * infcmd.c (do_registers_info): Print vector registers in hex
2231 (print_vector_info): Check that printing registers
2233 (print_float_info): Ditto.
2235 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2237 * mips-tdep.c (mips_gdbarch_init): Update.
2238 (mips_o32_extract_return_value): Rewrite.
2239 (mips_o32_store_return_value): Rewrite.
2240 (mips_o32_xfer_return_value): New function.
2241 (mips_xfer_register): Tweak debug print message. Allow for
2242 buf_offset when dumping the value transfered.
2244 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2246 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2247 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2248 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2249 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2250 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2252 2002-08-14 Michael Snyder <msnyder@redhat.com>
2254 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2256 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2258 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2260 (P): New macro to define a register as a pseudo register.
2261 (R, R4, R8, R16, FR32, R64, R0): Updated.
2262 (struct variant): Add new fields for number of pseudo registers
2263 and number of total registers.
2264 (tot_num_registers): New macro replacing....
2265 (num_registers): ...deleted macro.
2266 (num_registers): New function.
2267 (num_pseudo_registers): New function.
2268 (variants): Update all variants to intialize new fields correctly.
2269 Postpone initialization of number of pseudo regs and real regs.
2270 (init_variants): New function.
2271 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2274 2002-08-19 David Carlton <carlton@math.stanford.edu>
2276 * valops.c (search_struct_field): Change error message to treat
2277 return value of 0 from value_static_field as meaning that field is
2279 (value_struct_elt_for_reference): Ditto.
2280 * values.c (value_static_field): Treat an unresolved location the
2281 same as a nonexistent symbol. Fix PR gdb/635.
2282 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2283 enclosed. Fix PR gdb/574.
2284 * MAINTAINERS: Add self to Write After Approval list.
2286 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2288 * mips-tdep.c (mips_xfer_register): New function.
2289 (mips_n32n64_extract_return_value): Rewrite.
2290 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2291 instead of deprecated_extract_return_value.
2293 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2295 * rs6000-tdep.c (TDEP): Delete macro.
2296 (branch_dest): Replace use of TDEP macro with its body.
2297 (rs6000_pop_frame): Ditto.
2298 (rs6000_push_arguments): Ditto.
2299 (rs6000_skip_trampoline_code): Ditto.
2300 (rs6000_frame_saved_pc): Ditto.
2301 (rs6000_frame_chain): Ditto.
2302 (rs6000_register_name): Ditto.
2303 (rs6000_register_byte): Ditto.
2304 (rs6000_register_raw_size): Ditto.
2305 (rs6000_register_virtual_type): Ditto.
2306 (rs6000_register_convertible): Ditto.
2307 (rs6000_convert_from_func_ptr_addr): Ditto.
2309 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2311 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2313 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2314 MIPS_LINUX_JB_ELEMENT_SIZE.
2315 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2316 for MAX_REGISTER_RAW_SIZE arrays.
2317 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2318 MIPS_LINUX_JB_ELEMENT_SIZE.
2320 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2322 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2324 2002-08-19 Aidan Skinner <aidan@velvet.net>
2326 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2327 ada-valprint.c ada-tasks.c.
2328 (YYFILES): Add ada-exp.y.
2329 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2330 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2331 (ada-exp.tab.o): New target.
2333 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2335 * regcache.c (regcache_xfer_part): New function.
2336 (regcache_raw_read_part): New function.
2337 (regcache_raw_write_part): New function.
2338 (regcache_cooked_read_part): New function.
2339 (regcache_cooked_write_part): New function.
2340 * regcache.h (regcache_raw_read_part): Declare.
2341 (regcache_raw_write_part): Declare.
2342 (regcache_cooked_read_part): Declare.
2343 (regcache_cooked_write_part): Declare.
2345 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2347 * remote.c (remote_open_1): Add async_p.
2348 (remote_async_open_1): Delete.
2349 (open_remote_target): Delete.
2350 (remote_open, extended_remote_open): Update calls to remote_open_1.
2351 (remote_async_open, extended_remote_async_open): Call
2352 remote_open_1 instead of remote_async_open_1.
2354 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2356 * blockframe.c: Fix a few coding standard violations.
2358 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2360 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2362 * config/i386/tm-i386sco5.h: ... here. File removed.
2363 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2365 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2366 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2367 (TM_FILE): Set to tm-i386.h.
2368 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2369 * config/i386/tm-i386v.h: Remove file.
2370 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2371 instead of "i386/tm-i386v.h".
2372 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2373 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2375 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2376 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2379 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2381 * config/i386/nm-i386v.h: Add protection against
2383 (i386_register_u_addr): Remove prototype.
2384 (register_u_addr): New prototype.
2385 (REGISTER_U_ADDR): Redefine accordingly.
2386 * i386v-nat.c: Improve several comments.
2387 (i386_register_u_addr): Change signature and rename to
2388 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2391 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2393 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2394 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2395 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2396 deprecated_extract_return_value.
2397 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2398 rename mips_o32o64_push_arguments.
2399 (mips_gdbarch_init): Update.
2400 (mips_extract_return_value): Delete.
2401 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2402 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2403 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2404 (mips_n32n64_extract_return_value): Clone
2405 mips_extract_return_value.
2406 (mips_store_return_value): Delete.
2407 (mips_o32_store_return_value): Clone mips_store_return_value.
2408 (mips_o64_store_return_value): Clone mips_store_return_value.
2409 (mips_eabi_store_return_value): Clone mips_store_return_value.
2410 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2412 2002-08-18 Aidan Skinner <aidan@velvet.net>
2414 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2415 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2417 2002-08-18 Aidan Skinner <aidan@velvet.net>
2419 * ada-lang.c: Run through gdb_indent.sh.
2420 * ada-lang.h: Run through gdb_indent.sh.
2421 * ada-tasks.c: Run through gdb_indent.sh.
2422 * ada-typeprint.c: Run through gdb_indent.sh.
2423 * ada-valprint.c: Run through gdb_indent.sh.
2425 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2427 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2430 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2432 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2434 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2435 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2437 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2438 write_register_gen instead of write_register_bytes.
2440 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2441 i[3456]-*-osf1mk* configurations have been made obsolete.
2442 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2443 i[3456]86-*-osf1mk* hosts obsolete.
2444 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2446 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2447 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2448 config/i386/i386m3.mt, config/i386/nm-m3.h,
2449 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2450 config/i386/i386mk.mh, config/i386/i386mk.mt,
2451 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2453 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2454 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2455 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2457 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2459 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2460 (hppa_value_returned_from_stack): Declare.
2461 (hppa_extract_return_value): Declare.
2462 * config/pa/hppa.mt: New file.
2463 * configure.tgt: Recognize hppa*-*-*.
2464 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2466 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2468 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2471 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2473 * top.c (gdb_rl_operate_and_get_next): Make sure
2474 operate-and-get-next functions correctly even when the history
2475 list is completely filled.
2477 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2479 * MAINTAINERS (Target Instruction Set Architectures): Rename
2480 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2481 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2482 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2483 already listed under Host/Native.
2485 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2486 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2489 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2491 * config/ia64/ia64.mt: New file.
2492 * config/alpha/alpha.mt: New file.
2493 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2494 ia64-linux-gnu. Mention that ia64-elf is broken.
2495 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2497 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2499 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2500 generic_func_frame_valid instead of func_frame_valid.
2502 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2504 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2505 procfs appears to be broken when debugging on multi-processor
2506 machines. So enable software single stepping in order to avoid
2507 using the procfs interface to do next/step operations, using
2508 internal breakpoints instead.
2510 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2511 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2512 make this pc address equal to the value it would have if the
2513 system stepping capability was used. Also set a new flag used
2514 to ensure that we don't readjust the PC one more time later.
2516 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2517 address by DECR_PC_AFTER_BREAK when software single step is
2518 in use for this architecture, as this has already been taken
2519 care of in handle_inferior_event().
2521 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2523 * infrun.c (handle_inferior_event): Minor reformatting, to make
2524 a rather long condition expression easier to read.
2526 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2528 * Makefile.in (gdbtk.o): Move to end of file.
2529 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2530 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2531 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2532 (gdbtk-wrapper.o, gdbres.o): Ditto.
2534 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2536 * Makefile.in (copying.o): Separate out compile rule.
2537 (hpux-thread.o, procfs.o, signals.o): Ditto.
2538 (v850ice.o, z8k-tdep.o): Ditto.
2539 (tui-file.o): Move to TUI section.
2540 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2541 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2543 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2545 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2546 skip_trampoline_code, for better namespace-proofing.
2548 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2550 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2552 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2554 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2556 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2557 signal, check whether we hit a breakpoint before checking for a
2558 single step breakpoint. Otherwise, GDB fails to notice that a
2559 breakpoint has been hit when stepping onto a breakpoint.
2561 2002-08-16 Keith Seitz <keiths@redhat.com>
2563 * gdb-events.sh (clear_gdb_event_hooks): New function.
2564 * gdb-events.c: Regenerate.
2565 * gdb-events.h: Regenerate.
2567 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2569 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2570 not_a_sw_breakpoint.
2571 * breakpoint.h (bpstat_stop_status): Add parameter names.
2573 2002-08-16 Grace Sainsbury <graces@redhat.com>
2575 * remote.c (remote_insert_hw_breakpoint)
2576 (remote_remove_hw_breakpoint): Fix calculation of length field
2579 2002-08-15 Michael Snyder <msnyder@redhat.com>
2581 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2582 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2583 (supply_fpregset): Ditto.
2585 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2586 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2587 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2588 (TARGET_READ_SP): Delete.
2589 (DO_REGISTERS_INFO): Delete.
2590 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2592 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2593 from macros to functions.
2595 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2596 (mips_register_convertible, mips_register_convert_to_virtual,
2597 mips_register_convert_to_raw): Make static.
2598 (mips_read_sp): New function.
2599 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2600 (mips_do_registers_info): Make static.
2601 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2602 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2603 (mips_register_convert_from_type, mips_register_convert_to_type):
2605 (mips_gdbarch_init): Set up function_start_offset,
2606 register_virtual_size, pc_in_sigtramp.
2608 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2610 * infcmd.c (vector_info): New function.
2611 (_initialize_infcmd): Add command "info vector".
2612 (print_vector_info): New function.
2614 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2615 * gdbarch.h, gdbarch.c: Regenerate.
2617 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2619 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2620 ``print_all''. Only print vector registers when ``print_all''.
2622 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2624 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2625 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2627 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2628 Add `args' parameter.
2629 * gdbarch.h, gdbarch.c: Regenerate.
2631 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2633 * infcmd.c (float_info): Call print_float_info.
2634 (print_float_info): New function. By default, print the
2635 floating-point registers.
2637 * arch-utils.h (default_print_float_info): Delete declaration.
2638 * arch-utils.c (default_print_float_info): Delete function.
2640 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2642 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2645 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2648 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2649 * configure.host: Make i[3456]86-*-aix host obsolete.
2650 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2651 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2652 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2653 config/i386/xm-i386aix.h: Make files obsolete.
2654 * i386aix-nat.c: Make file obsolete.
2655 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2656 (i386aix-nat.o): Make target obsolete.
2658 * config/i386/nm-gnu.h: Removed.
2659 * config/i386/nm-i386gnu.h: New file.
2660 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2661 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2663 * config/i386/tm-i386gnu.h: ... here. Removed.
2664 * config/i386/xm-i386gnu.h: Removed.
2665 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2666 (NAT_FILE): Set to nm-i386gnu.h.
2667 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2668 * i386-tdep.c: New file.
2669 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2670 (i386gnu-tdep.o): Specify dependencies.
2672 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2674 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2675 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2676 Adjust a few comments to reflect reality a bit closer.
2677 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2678 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2679 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2680 target_insert_watchpoint, target_remove_watchpoint):
2682 * config/i386/nm-i386sco5.h: ... here.
2683 (kernel_u_size): Add prototype. Improve a few comments and add
2684 protection against multiple inclusion.
2686 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2689 * uw-thread.c (SP_ARG0): Define if not already defined.
2690 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2692 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2694 * config/i386/tm-i386.h: Don't include "regcache.h".
2696 * i387-tdep.h (i387_print_float_info): New prototype.
2697 * i387-tdep.c (print_i387_value, print_i387_ext,
2698 print_i387_status_word, print_i387_control_word): Add `struct
2699 ui_file *' argument and use it for output.
2700 (i387_print_float_info): Renamed from i387_float_info. Add
2701 `struct gdbarch *' and `struct ui_file *' arguments and use the
2703 * i386-tdep.c: Include "i387-tdep.h".
2704 (i386_gdbarch_init): Set print_float_info.
2705 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2706 (FLOAT_INFO): Remove define.
2708 2002-08-13 Michael Snyder <msnyder@redhat.com>
2710 * mips-tdep.c (mips_push_arguments): Rename to
2711 mips_eabi_push_arguments, and tune for EABI.
2712 (MIPS_REGS_HAVE_HOME_P): Delete.
2713 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2714 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2715 Delete references to mips_regs_have_home_p.
2717 2002-08-14 Keith Seitz <keiths@redhat.com>
2719 * Makefile.in (install-gdbtk): Create insight plugin directory.
2720 Install plugins.tcl file.
2722 2002-08-14 Keith Seitz <keiths@redhat.com>
2724 * configure.in: Move SUBDIRS to near top of the file so that
2725 --enable options may add things to it.
2726 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2727 * configure: Regenerate.
2729 2002-08-13 Michael Snyder <msnyder@redhat.com>
2731 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2732 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2733 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2735 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2737 * vax-tdep.c (vax_get_saved_register): Delete function.
2738 (vax_gdbarch_init): Update.
2739 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2740 (ns32k_gdbarch_init): Update.
2741 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2742 (alpha_gdbarch_init): Update.
2744 2002-08-13 Andrew Cagney <cagney@redhat.com>
2746 * regcache.c (init_regcache_descr): Overallocate the
2747 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2748 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2750 (set_register_cached): Add range checking assertions. Use
2753 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2755 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2756 numbers for MMX registers.
2758 2002-08-13 Andrew Cagney <cagney@redhat.com>
2760 * i386-tdep.c (i386_gdbarch_init): Use
2761 generic_unwind_get_saved_register.
2763 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2765 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2766 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2768 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2769 Delete. Add comment regarding this now-deleted target method.
2771 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2773 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2774 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2775 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2776 real PC and the page number (if it's within the memory bank window).
2777 (m68hc11_pseudo_register_write): Likewise when saving.
2778 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2779 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2780 (m68hc11_register_raw_size): And use 32-bit for it.
2781 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2782 16K memory bank is used by the prog; also use the virtual pc.
2784 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2786 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2787 (m68hc11_gdbarch_init): Install it in gdbarch.
2788 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2789 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2790 (MSYMBOL_SIZE): New for documentation.
2791 (insn_return_kind): Enum to specify how a function returns.
2792 (frame_extra_info): Cleanup and record the return mode.
2793 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2794 register in address computation.
2795 (m68hc11_get_return_insn): New to obtain the return instruction used
2797 (m68hc11_frame_init_saved_regs): Take into account the return
2798 instruction used by the function for far and interrupt functions.
2799 (m68hc11_init_extra_frame_info): Take into account page register.
2800 (m68hc11_frame_args_address): Adjust according to the return mode.
2801 (show_regs): Print page register only when it's used.
2803 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2805 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2806 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2807 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2809 (m68hc11_register_raw_size): Likewise.
2811 2002-08-13 Andrew Cagney <cagney@redhat.com>
2813 * i386-tdep.c (i386_register_name): Handle mmx registers.
2814 (mmx_regnum_p): New function.
2815 (i386_mmx_names): New array.
2816 (mmx_num_regs): New variable.
2817 (i386_pseudo_register_read): New function.
2818 (i386_pseudo_register_write): New function.
2819 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2821 * regcache.c (regcache_raw_read_unsigned): New function.
2822 (regcache_raw_read_signed): New function.
2823 * regcache.h (regcache_raw_read_unsigned): Declare.
2824 (regcache_raw_read_signed): Declare.
2826 2002-08-13 Andrew Cagney <cagney@redhat.com>
2828 * regcache.c (regcache_raw_read_as_address): Delete function.
2829 (regcache_cooked_read_signed): New function.
2830 (regcache_cooked_read_unsigned): New function.
2831 * regcache.h (regcache_cooked_read_signed): Declare.
2832 (regcache_cooked_read_unsigned): Declare.
2833 (regcache_raw_read_as_address): Delete declaration.
2835 * blockframe.c (generic_read_register_dummy): Use
2836 regcache_cooked_read_unsigned.
2837 * i386-tdep.c (i386_extract_struct_value_address): Use
2838 regcache_cooked_read_unsigned.
2840 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2843 double sizes according to ELF ABI flags.
2844 (gdbarch_tdep): Record elf_flags.
2846 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2848 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2849 (m6812_prolog): They can appear in 68HC12 function prologue.
2850 (m68hc11_frame_chain): Cleanup.
2852 2002-08-12 Andrew Cagney <cagney@redhat.com>
2854 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2856 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2857 (i386_linux_register_raw_size): Delete function.
2858 (i386_linux_init_abi): Update.
2859 * i386-tdep.c (i386_register_raw_size): Delete function.
2860 (i386_register_byte): Delete function.
2861 (i386_gdbarch_init): Update.
2862 (i386_register_size): Delete array.
2863 (i386_register_offset): Delete array.
2865 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2866 (REGISTER_RAW_SIZE): Delete macro.
2867 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2868 (REGISTER_BYTE): Delete macro.
2870 2002-08-11 Aidan Skinner <aidan@velvet.net>
2872 * ada-lang.c (ada_lookup_partial_symbol)
2873 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2874 prototype names so that grep ^func works properly.
2876 * ada-lang.c (ada_array_element_type)
2877 (ada_lookup_partial_symbol): Fix typos in parameter list.
2879 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2880 Fix prototype names so that grep ^func works properly.
2882 2002-08-10 Andrew Cagney <cagney@redhat.com>
2883 Elena Zannoni <ezannoni@redhat.com>
2884 Martin M. Hunt <hunt@redhat.com>
2886 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2887 (build_builtin_type_vec128i): Set the vector bit.
2888 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2889 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2890 (build_builtin_type_vec64): New function.
2891 (build_builtin_type_vec64i): New function.
2892 (build_gdbtypes): Initialize builtin_type_vec64 and
2893 builtin_type_vec64i.
2895 2002-08-09 Andrew Cagney <cagney@redhat.com>
2897 * regcache.c (regcache_dump): Compare the register offset
2899 * arch-utils.c (generic_register_byte): New function.
2900 * arch-utils.h (generic_register_byte): Declare.
2901 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2902 * gdbarch.h, gdbarch.c: Regenerate.
2904 2002-08-09 Andrew Cagney <cagney@redhat.com>
2906 * regcache.c: Include "gdbcmd.h"
2907 (_initialize_regcache): Add commands "maintenance print
2908 registers", "maintenance print raw-registers" and "maintenance
2909 print cooked-registers".
2910 (enum regcache_dump_what): Define.
2911 (dump_endian_bytes): New function.
2912 (regcache_dump): New function.
2913 (regcache_print): New function.
2914 (maintenance_print_registers): New function.
2915 (maintenance_print_raw_registers): New function.
2916 (maintenance_print_cooked_registers): New function.
2917 * Makefile.in (regcache.o): Update dependencies.
2919 2002-08-09 Michael Snyder <msnyder@redhat.com>
2921 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2922 (mips_push_arguments): Correct some comments. Use paddr_nz
2923 for printing addresses in debug output. Replace static
2924 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2925 (mips_n32n64_push_arguments): New function, cloned from
2926 mips_push_arguments and tuned for the n32/n64 ABI.
2927 (mips_push_register): Buffer needs dynamic allocation.
2928 (mips_print_register): Ditto.
2929 (do_gp_register_row): Ditto.
2930 (mips_store_return_value): Ditto.
2931 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2933 2002-08-09 Don Howard <dhoward@redhat.com>
2935 * memattr.c (mem_info_command): Print special case of upper bound
2936 as max CORE_ADDR + 1.
2938 2002-08-08 Michael Snyder <msnyder@redhat.com>
2940 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2941 returns structs by ref if they're too big to fit in two registers.
2943 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2945 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2947 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2948 mips_find_saved_regs().
2949 (mips_pop_frame): Likewise.
2951 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2953 * blockframe.c (frame_saved_regs_register_unwind): Revise
2954 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2957 2002-08-09 Grace Sainsbury <graces@redhat.com>
2959 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2960 T-packets; the 'a' is not taken as a register number.
2961 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2962 (remote_stopped_data_address): New functions; add to target
2964 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2965 prototypes to match other implementations of this
2966 function. replace integer argument with pointer -- the length
2967 field in the Z-packet is the length of what is pointed to or 1 if
2968 pointer is null. Add to target vector.
2969 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2973 * remote.c (remote_wait): Add support to extract optional
2974 watchpoint information from T-packet. Ignore unrecognized
2975 optional info in T-packet.
2976 (remote_async_wait): Ditto.
2978 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2980 * cli/cli-dump.c: Change fopen modes to use binary open modes
2981 as defined in include/fopen-bin.h throughout.
2983 2002-08-08 Michael Snyder <msnyder@redhat.com>
2985 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2987 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2989 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2990 assertion failure by returning early after a warning.
2992 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2994 * mips-tdep.c (mips_find_saved_regs): Make static.
2995 (mips_frame_init_saved_regs): New function.
2996 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2997 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2998 (mips_find_saved_regs): Delete declaration.
3000 2002-08-08 Grace Sainsbury <graces@redhat.com>
3002 * remote.c (remote_wait, remote_async_wait): Change
3003 thread_num from int to ULONGEST.
3004 (unpack_varlen_hex): Change result parameter from
3005 int * to ULONGEST *.
3007 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3009 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3010 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3012 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3014 2002-08-08 Andrew Cagney <cagney@redhat.com>
3016 * gcore.c (override_derive_stack_segment): Delete variable.
3017 (preempt_derive_stack_segment): Delete function.
3018 (derive_stack_segment): Delete function.
3019 (default_derive_stack_segment): Renamed to derive_stack_segment.
3020 (override_derive_heap_segment): Delete variable.
3021 (preempt_derive_heap_segment): Delete function.
3022 (derive_heap_segment): Delete function.
3023 (default_derive_heap_segment): Rename to derive_heap_segment.
3025 2002-08-06 Michael Snyder <msnyder@redhat.com>
3027 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3028 * mips-tdep.c (mips_EABI_use_struct_convention,
3029 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3030 New functions. (mips_use_struct_convention): Delete.
3031 (mips_gdbarch_init): set use_gdbarch_convention.
3033 2002-08-06 Michael Snyder <msnyder@redhat.com>
3035 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3036 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3037 mips_o32_reg_struct_has_addr): New functions.
3038 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3040 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3042 * regcache.c (pseudo_register): Delete function.
3043 (fetch_register): Delete function.
3044 (store_register): Delete function.
3045 (regcache_raw_read, legacy_read_register_gen): Use
3046 target_fetch_registers instead of fetch_register.
3047 (legacy_write_register_gen, regcache_raw_write): Use
3048 target_store_register instead of store_register.
3049 (write_register_bytes): Ditto.
3051 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3052 (STORE_PSEUDO_REGISTER): Delete.
3053 * gdbarch.h, gdbarch.c: Regenerate.
3055 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3057 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3058 write dump file binary.
3060 2002-08-05 Michael Snyder <msnyder@redhat.com>
3062 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3063 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3064 (mips_gdbarch_init): Set N32 target to be mips64.
3066 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3068 * frame.c (find_saved_register): Break out of loop once saved
3069 register address is found. Don't mention sparc in loop comment
3072 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3074 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3075 mips_default_saved_regsize to 8.
3077 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3079 * gcore.c: Do not include <sys/procfs.h>.
3080 * Makefile.in (gcore.o): Update dependencies.
3082 2002-08-06 Andrew Cagney <cagney@redhat.com>
3084 * configure.tgt: Make arc-*-* obsolete.
3085 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3086 * MAINTAINERS: Make arc-elf obsolete.
3087 * arc-tdep.c: Make file obsolete.
3088 * config/arc/arc.mt: Ditto.
3089 * config/arc/tm-arc.h: Ditto.
3091 2002-08-05 Theodore A. Roth <troth@verinet.com>
3093 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3095 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3097 * mcore-tdep.c (mcore_gdbarch_init): Use
3098 generic_unwind_get_saved_register instead of
3099 generic_get_saved_register.
3100 * v850-tdep.c (v850_gdbarch_init): Ditto.
3101 * frv-tdep.c (frv_gdbarch_init): Ditto.
3102 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3103 * s390-tdep.c (s390_gdbarch_init): Ditto.
3104 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3105 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3106 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3108 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3110 * objfiles.h: Add missing #include "symfile.h"
3112 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3114 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3116 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3117 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3120 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3122 * NEWS: Cleanup and nitpick.
3124 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3126 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3128 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3130 * Makefile.in (gdbtk-bp.o): Update dependencies.
3131 (gdbtk-register.o): Ditto.
3132 (gdbtk-varobj.o): Ditto.
3134 2002-08-03 Andrew Cagney <cagney@redhat.com>
3136 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3137 m68hc11_fetch_pseudo_register.
3138 (m68hc11_pseudo_register_write): Replace
3139 m68hc11_store_pseudo_register.
3140 (m68hc11_gdbarch_init): Update.
3142 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3144 * gdbarch.sh: Include "gdb_string.h".
3145 * gdbarch.c: Regenerate.
3147 * regcache.c: Include "gdb_string.h".
3148 * ax-general.c: Ditto.
3150 * std-regs.c: Ditto.
3151 * fbsd-proc.c: Ditto.
3154 * Makefile.in (regcache.o): Update dependencies.
3155 (thread.o, gdbarch.o): Ditto.
3156 (ax-general.o, gdbarch.o): Ditto.
3157 (varobj.o, std-regs.o): Ditto.
3158 (fbsd-proc.o): Specify dependencies.
3160 2002-08-02 Andrew Cagney <cagney@redhat.com>
3162 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3164 (regcache_cooked_write): Ditto.
3166 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3168 * regcache.c (regcache_cooked_read): New function.
3169 (regcache_cooked_write): New function.
3170 (read_register_gen): Rewrite using regcache_cooked_read.
3171 (write_register_gen): Rewrite using regcache_cooked_write.
3173 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3176 2002-08-02 Andrew Cagney <cagney@redhat.com>
3178 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3179 Replace the architecture methods register_read and register_write.
3180 * gdbarch.h, gdbarch.c: Regenerate.
3181 * regcache.c (init_regcache_descr): Update.
3182 (read_register_gen): Update.
3183 (write_register_gen): Update.
3184 (supply_register): Update comment.
3186 * sh-tdep.c (sh_gdbarch_init): Update.
3187 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3188 `regcache' and `gdbarch' parameters. Make `buffer' a void
3189 pointer. Update code.
3190 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3191 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3192 void pointer. Update code.
3193 (sh64_register_write): Delete.
3194 (sh4_register_read): Delete.
3195 (sh64_register_read): Delete.
3196 (sh4_register_write): Delete.
3197 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3198 void pointer, `to' parameter a void pointer.
3199 (sh_sh64_register_convert_to_raw): Ditto.
3201 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3203 * mips-tdep.c (mips_register_virtual_type): Use architecture
3204 invariant return values.
3206 2002-08-01 Andrew Cagney <cagney@redhat.com>
3208 * linux-proc.c: Include "gdb_string.h".
3209 * Makefile.in (linux-proc.o): Update dependency list.
3211 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3213 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3216 2002-08-01 Grace Sainsbury <graces@redhat.com>
3218 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3219 to_insert_watchpoint, to_remove_watchpoint,
3220 to_stopped_by_watchpoint, to_stopped_data_address,
3221 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3222 target vecctor. Define their corresponding macros so they call
3225 * target.c: Add default and debug versions of for
3226 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3227 to_insert_watchpoint, to_remove_watchpoint,
3228 to_stopped_by_watchpoint, to_stopped_data_address,
3229 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3231 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3233 * mips-tdep.c (mips_register_virtual_type): New function.
3234 (mips_gdbarch_init): Register mips_register_virtual_type()
3235 with gdbarch machinery.
3236 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3237 this file instead of tm-bigmips.h.
3238 (MIPS_REGSIZE): Delete this macro.
3239 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3240 multiarch version in mips-tdep.c will be found.
3242 2002-08-01 Andrew Cagney <cagney@redhat.com>
3244 * NEWS: Menion that CHILL has been made obsolete.
3246 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3247 * stabsread.c (read_range_type): Ditto.
3248 * gdbtypes.h: Ditto.
3249 * language.c (binop_type_check): Ditto.
3250 (binop_result_type): Ditto.
3251 (integral_type): Ditto.
3252 (character_type): Ditto.
3253 (string_type): Ditto.
3254 (boolean_type): Ditto.
3255 (structured_type): Ditto.
3256 (lang_bool_type): Ditto.
3257 (binop_type_check): Ditto.
3258 * language.h (_LANG_chill): Ditto.
3259 * dwarfread.c (set_cu_language): Ditto.
3260 * dwarfread.c (CHILL_PRODUCER): Ditto.
3261 * dwarfread.c (handle_producer): Ditto.
3262 * expression.h (enum exp_opcode): Ditto.
3263 * eval.c: Ditto for comments.
3264 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3265 * expprint.c (print_subexp): Ditto.
3266 (print_subexp): Ditto.
3267 * valops.c (value_cast): Ditto.
3268 (search_struct_field): Ditto.
3269 * value.h (COERCE_VARYING_ARRAY): Ditto.
3270 * symfile.c (init_filename_language_table): Ditto.
3271 (add_psymbol_with_dem_name_to_list): Ditto.
3272 * valarith.c (value_binop): Ditto.
3274 * valops.c (value_slice): Ditto.
3275 * symtab.h (union language_specific): Ditto.
3276 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3277 (SYMBOL_DEMANGLED_NAME): Ditto.
3278 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3279 * defs.h (enum language): Ditto.
3280 * symtab.c (got_symtab): Ditto.
3281 * utils.c (fprintf_symbol_filtered): Ditto.
3283 * ch-typeprint.c: Make file obsolete.
3284 * ch-valprint.c: Make file obsolete.
3285 * ch-lang.h: Make file obsolete.
3286 * ch-exp.c: Make file obsolete.
3287 * ch-lang.c: Make file obsolete.
3289 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3291 (TARGET_FLAGS_TO_PASS): Ditto.
3292 (CHILLFLAGS): Obsolete.
3294 (CHILL_FOR_TARGET): Obsolete.
3295 (CHILL_LIB): Obsolete.
3296 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3298 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3299 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3301 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3304 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3306 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3307 This does not change anything at the moment, but will be helpful
3308 later when full Ada support is integrated.
3310 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3312 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3315 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3317 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3318 and save it in a local variable. Use variable in later test.
3320 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3322 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3323 test. (Thanks to Daniel Jacobowitz.)
3325 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3327 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3328 (mips_abi_strings): Add "n64".
3329 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3331 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3333 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3334 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3336 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3338 * utils.c (host_pointer_to_address, address_to_host_pointer):
3339 Use gdb_assert() instead of explicit call to internal_error().
3341 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3343 * Makefile.in (rs6000-nat.o): Update dependencies.
3345 From Nicholas Duffek:
3346 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3347 (aix-thread.o): New rule.
3348 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3349 * config/powerpc/aix432.mh: New file.
3351 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3353 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3354 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3355 (fetch_core_registers, ppc_linux_supply_gregset)
3356 (ppc_linux_supply_fpregset): New functions.
3357 (ppc_linux_regset_core_fns): New.
3358 (_initialize_ppc_linux_tdep): Call add_core_fns.
3359 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3360 and ppc_linux_supply_gregset.
3361 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3362 (supply_fpregset): Call ppc_linux_supply_fpregset.
3363 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3365 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3367 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3369 * symtab.c (lookup_symbol): Demangle before lowercasing.
3371 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3373 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3375 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3376 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3377 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3378 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3380 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3381 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3382 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3383 (avr-tdep.o, mon960-rom.o): Ditto.
3384 (aout_stabs_gnu_h): Define.
3385 (symtab_h): Remove $(gdb_obstack_h).
3387 2002-07-30 Jim Blandy <jimb@redhat.com>
3389 Patch from David Carlton <carlton@math.stanford.edu>:
3390 * gdbinit.in: Move the `dir' commands that add GDB's own source
3391 directory to the search path to the end, so that the `gdb' source
3392 directory will be searched first.
3394 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3396 * gdb_obstack.h: New file.
3397 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3398 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3399 * objfiles.h: Include "gdb_obstack.h".
3400 * Makefile.in (gdb_obstack_h): Define.
3401 (symtab_h): Add $(gdb_obstack_h).
3402 (objfiles_h): Add $(gdb_obstack_h).
3404 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3405 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3406 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3407 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3408 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3409 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3410 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3411 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3413 * Makefile.in (bcache.o): Update dependencies.
3414 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3415 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3416 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3417 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3418 (stabsread.o, symfile.o, symmisc.o): Ditto.
3419 (symtab.o, typeprint.o, macroexp.o): Ditto.
3420 (macrotab.o, mdebugread.o): Ditto.
3421 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3422 (coff_ecoff_h, aout_aout64_h): Define.
3423 (aout_stabs_gnu_h, libaout_h): Define.
3425 2002-07-29 Andrew Cagney <cagney@redhat.com>
3427 * regcache.c (struct regcache_descr): Rename nr_registers to
3428 nr_cooked_registers. Revise comments describing the structure
3430 (init_regcache_descr): Update.
3431 (init_legacy_regcache_descr): Update.
3432 (read_register_gen, write_register_gen): When a cooked register in
3433 the raw register range, directly access the value from the raw
3436 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3438 * z8k-tdep.c: Do not include "obstack.h".
3439 * h8300-tdep.c, h8500-tdep.c: Ditto.
3440 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3441 * valprint.c, v850-tdep.c: Ditto.
3442 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3443 * mn10200-tdep.c: Ditto.
3445 * Makefile.in (z8k-tdep.o): Update dependencies.
3446 (m68hc11-tdep.o, valprint.o): Ditto.
3447 (v850-tdep.o, d10v-tdep.o): Ditto.
3448 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3449 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3450 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3451 (sh_opc_h, gdb_sim_sh_h): Define.
3452 (elf_sh_h, elf_bfd_h): Define.
3453 (opcode_m68hc11_h): Define.
3454 (OPCODES_SRC, OPCODES_DIR): define.
3455 (OPCODES): Use $(OPCODES_DIR).
3456 (gdb_sim_d10v_h): Rename sim_d10v_h.
3457 (gdb_sim_arm_h): Rename sim_arm_h.
3459 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3461 * utils.c (host_pointer_to_address, address_to_host_pointer):
3462 Change internal_error() message to indicate function responsible
3465 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3467 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3468 calls to local_hex_string_custom().
3470 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3472 * irix5-nat.c: Move IRIX shared library support from here...
3473 * solib-irix.c: ...to here. Revised substantially to work with
3474 generic solib framework.
3476 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3477 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3478 * mips-irix-tdep.c: New file.
3480 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3481 (mips-irix-tdep.o, solib-irix.o): New rules.
3482 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3484 * config/mips/irix6.mt (TDEPFILES): Likewise.
3485 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3487 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3489 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3490 disabled (via ``#if 0'') includes.
3492 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3494 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3495 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3496 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3497 Add support for the fpscr register.
3498 * rs6000-nat.c (regmap, fetch_inferior_registers)
3499 (store_inferior_registers, fetch_core_registers): Likewise.
3501 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3503 * rs6000-nat.c (language.h): Include.
3504 (special_regs): Delete this array.
3505 (regmap): New function.
3506 (fetch_register, store_register): Use regmap() to map gdb
3507 register numbers to ptrace register numbers. Also, use
3508 outputs from regmap() to make decisions regarding type of
3509 ptrace() call to make. In particular, don't compare against
3510 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3511 (fetch_inferior_registers, store_inferior_registers): Where
3512 possible, obtain register numbers from tdep struct. Don't
3513 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3514 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3515 (LAST_UISA_SP_REGNUM): Delete.
3517 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3519 * rs6000-nat.c (ppc-tdep.h): Include.
3520 (fetch_registers, store_register, fetch_core_registers): Don't
3521 access registers[] directly. Instead, use supply_register() or
3522 regcache_collect() as appropriate.
3523 (find_toc_address): Format hex address with local_hex_string().
3525 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3527 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3530 2002-07-24 Tom Tromey <tromey@redhat.com>
3532 * jv-exp.y: Marked all strings with _().
3533 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3535 (MethodInvocation, CastExpression, parse_number, yyerror,
3536 java_type_from_name, push_expression_name, yylex): Typo fixes.
3538 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3540 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3541 (tee_file_flush, tee_file_write, tee_file_fputs)
3542 (tee_file_isatty): New.
3543 * ui-file.h (tee_file_new): Add prototype.
3545 2002-07-24 Aidan Skinner <aidan@velvet.net>
3547 * ada-lang.c: Change k&r style function definitions to prototyped
3549 * ada-typeprint.c: Change k&r style function definitions to prototyped
3551 * ada-valprint.c: Change k&r style function definitions to prototyped
3554 2002-07-24 Andrew Cagney <cagney@redhat.com>
3556 * README: Remove reference to remote-bug.
3557 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3559 (m88k-nat.o): Delete rule.
3560 (m88k-tdep.o): Delete rule.
3561 (remote-bug.o): Delete rule.
3562 * MAINTAINERS: Mark as obsolete.
3563 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3564 * m88k-tdep.c: Make file obsolete.
3565 * config/m88k/m88k.mh: Ditto.
3566 * config/m88k/delta88v4.mh: Ditto.
3567 * config/m88k/delta88v4.mt: Ditto.
3568 * config/m88k/delta88.mt: Ditto.
3569 * config/m88k/delta88.mh: Ditto.
3570 * remote-bug.c: Ditto.
3571 * config/m88k/tm-delta88.h: Ditto.
3572 * config/m88k/nm-delta88v4.h: Ditto.
3573 * config/m88k/xm-delta88.h: Ditto.
3574 * config/m88k/xm-dgux.h: Ditto.
3575 * config/m88k/tm-m88k.h: Ditto.
3576 * config/m88k/nm-m88k.h: Ditto.
3577 * config/m88k/tm-delta88v4.h: Ditto.
3578 * m88k-nat.c: Ditto.
3579 * cxux-nat.c: Ditto.
3580 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3581 and m88*-*-* obsolete.
3582 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3585 2002-07-24 Andrew Cagney <cagney@redhat.com>
3587 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3588 constant. Same for local pointer variables.
3589 (extract_signed_integer): Ditto.
3590 * defs.h (extract_unsigned_integer): Update.
3591 (extract_signed_integer): Update.
3593 2002-07-24 Andrew Cagney <cagney@redhat.com>
3595 * regcache.c (regcache_raw_write): Change buf parameter to a
3596 constant void pointer.
3597 (regcache_raw_read): Change buf parameter to a void pointer.
3598 (legacy_write_register_gen): Change myaddr parameter a constant
3600 (supply_register): Change val parameter to a const void pointer.
3601 * regcache.h (regcache_raw_write): Update declaration.
3602 (regcache_raw_read): Update declaration.
3603 (supply_register): Update declaration.
3605 2002-07-24 Tom Tromey <tromey@redhat.com>
3607 * defs.h (gdb_readline_wrapper): Declare.
3608 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3609 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3610 * top.c (gdb_readline_wrapper): New function.
3611 (command_line_input): Use it.
3613 2002-07-24 Andrew Cagney <cagney@redhat.com>
3615 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3616 regcache_read and regcache_write.
3617 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3618 * regcache.c: Update.
3619 * sh-tdep.c (sh64_push_arguments): Update comment.
3620 (sh_pseudo_register_read): Update.
3621 (sh_pseudo_register_write): Update.
3622 (sh4_register_read): Update.
3623 (sh4_register_write): Update.
3624 (sh64_pseudo_register_read): Update.
3625 (sh64_pseudo_register_write): Update.
3626 (sh64_register_read): Update.
3627 (sh64_register_write): Update.
3628 * i386-tdep.c (i386_extract_return_value): Update.
3629 (i386_extract_struct_value_address): Update.
3630 (i386_extract_return_value): Update.
3631 * blockframe.c (generic_read_register_dummy): Update.
3632 (generic_call_dummy_register_unwind): Update
3633 * infrun.c (write_inferior_status_register): Update.
3635 2002-07-23 Jim Blandy <jimb@redhat.com>
3637 * parser-defs.h (expression_context_pc): Make this extern.
3638 (Thanks to Michael Snyder.)
3640 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3642 GDB 5.2.1 released from 5.2 branch.
3643 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3644 * README: Update to mention 5.2.1.
3646 2002-07-23 Mark Salter <msalter@redhat.com>
3648 * remote.c (remote_read_bytes): Fix check for error.
3650 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3652 * aix-thread.c (language.h): Include.
3653 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3654 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3655 Print newlines at end of debug messages.
3656 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3657 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3659 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3661 * aix-thread.c (ppc-tdep.h): Include.
3662 (special_register_p): New function.
3663 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3664 (store_regs_user_thread): Use register number information from
3665 gdbarch_tdep struct instead of hardcoded offsets relative to
3666 FIRST_UISA_SP_REGNUM.
3667 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3668 special_register_p() instead of using FPLAST_REGNUM and
3669 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3670 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3671 will be MQ's register number.
3673 2002-07-22 Michael Snyder <msnyder@redhat.com>
3675 * aix-thread.c (ops): Rename to aix_thread_ops.
3676 (base_ops): Rename to base_target.
3677 (ops_attach): Rename to aix_thread_attach.
3678 (ops_detach): Rename to aix_thread_detach.
3679 (ops_resume): Rename to aix_thread_detach.
3680 (ops_wait): Rename to aix_thread_wait.
3681 (ops_kill): Rename to aix_thread_kill.
3682 (init_ops): Rename to init_aix_thread_ops.
3683 (ops_fetch_register): Rename to aix_thread_fetch_register.
3684 (ops_store_register): Rename to aix_thread_store_register.
3685 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3686 (ops_thread_alive): Rename to aix_thread_thread_alive.
3687 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3688 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3689 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3690 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3691 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3692 (store_regs_lib): Rename to store_regs_user_thread.
3693 (store_regs_kern): Rename to store_regs_kernel_thread.
3695 2002-07-22 Michael Snyder <msnyder@redhat.com>
3697 * aix-thread.c (ops_prepare_to_store): Eliminate.
3698 (init_ops): Don't initialize ops.prepare_to_store.
3699 (store_regs_kern): Pre-fetch register buffers from child,
3700 because some registers may not be in the cache. Copy
3701 regs from register cache only if they are cached.
3702 (store_regs_lib): Copy regs from register cache only
3704 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3705 fill_gprs64): Ditto.
3707 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3709 * aix-thread.c (gdb_assert.h): Include.
3710 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3711 register sizes (from register cache) match size of buffer holding
3713 (fill_sprs32): Change parameter types to match those in the ptrace()
3715 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3716 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3718 2002-07-22 Michael Snyder <msnyder@redhat.com>
3720 * aix-thread.c (supply_sprs64): Cosmetic change.
3721 (supply_sprs32): Cosmetic change.
3722 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3723 (fill_sprs64): Use regcache_collect instead of read_register.
3724 (store_regs_lib): Use regcache_collect instead of
3725 read_register. Use fill_sprs32 instead of fill_sprs64,
3726 if debugging a 32-bit architecture.
3727 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3728 out of the register cache, instead of passing a pointer into
3729 the register cache directly to ptrace. Use regcache_collect
3730 insteaad of read_register.
3731 (ops_prepare_to_store): Use target_read_registers instead
3732 of read_register_bytes.
3734 2002-07-20 Aidan Skinner <aidan@velvet.net>
3736 * MAINTAINERS: Add self under write after approval.
3738 2002-07-20 Aidan Skinner <aidan@velvet.net>
3740 * ada-tasks.c: Change k&r style function definitions to prototyped
3743 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3745 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3746 * x86-64-tdep.c: Include "objfiles.h".
3747 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3748 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3750 2002-07-17 Michal Ludvig <michal@suse.cz>
3752 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3753 (update_context): Initialise cfa variable.
3755 2002-07-17 Michael Snyder <msnyder@redhat.com>
3757 * aix-thread.c: Shorten some long lines.
3758 Bring comments into line with code spec.
3760 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3762 * infrun.c: Re-indent using gdb_indent.sh.
3764 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3766 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3767 Leave the indentation temporarily untouched, to minimize the diffs.
3769 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3771 * stabsread.c: Make os9k sections of the code obsolete,
3773 * stabsread.h: Make os9k sections of the code obsolete.
3775 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3777 * linux-low.c (regsets_store_inferior_registers): Add free()
3778 at the end of a loop to prevent memory leak.
3779 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3780 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3781 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3783 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3785 2002-07-17 Jim Blandy <jimb@redhat.com>
3787 * macrocmd.c (info_macro_command): Remove newline from error
3790 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3792 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3793 (sh_gdbarch_init): Use it for sh-dsp.
3795 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3797 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3798 64-bit DWARF2 format.
3800 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3802 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3803 <sys/proc.h> when not available.
3805 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3807 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3808 * stabsread.c: Make os9k sections of the code obsolete.
3809 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3810 * config/i386/i386os9k.mt: Make file obsolete.
3811 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3812 (COMMON_OBS): Remove os9kread.o
3813 (SFILES): Remove os9kread.c.
3814 (os9kread.o, remote-os9k.o): Make target obsolete.
3815 * remote-os9k.c: Make file obsolete.
3816 * os9kread.c: Make file obsolete.
3819 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3821 * NEWS: Mention that the FR30 has been made obsolete.
3822 * fr30-tdep.c: Make file obsolete.
3823 * config/fr30/tm-fr30.h: Ditto.
3824 * config/fr30/fr30.mt: Ditto.
3825 * configure.tgt: Make fr30-*-elf obsolete.
3826 * MAINTAINERS: Make fr30-elf obsolete.
3828 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3830 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3831 found is not inside a section.
3833 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3835 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3837 (pdc_realloc): Use xrealloc() instead of realloc().
3839 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3841 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3842 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3843 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3846 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3848 * aix-thread.c (ptrace_check): Eliminate goto.
3849 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3852 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3854 * aix-thread.c (gdbcmd.h): Include.
3855 (DEBUG, DBG, DBG2, dbg): Eliminate.
3856 (debug_aix_thread): New static global.
3857 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3858 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3859 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3860 invocations to DBG and DBG2 macros to test against
3861 ``debug_aix_thread'' and call fprintf_unfiltered().
3862 (_initialize_aix_thread): Add new command "set debug aix-thread".
3864 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3866 From Gerhard Tonn <TON@de.ibm.com>:
3867 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3868 instead of supply_register.
3870 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3872 * dwarf2cfi.c: Include "gdb_assert.h".
3873 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3875 (update_context): Do not use __func__. Add missing ``break''.
3876 (update_context): Do not use __func__.
3878 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3880 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3881 and its setting. Set gdbarch instruction printing functions
3882 directly. For non-rs6000 case use new function
3883 gdb_print_insn_powerpc.
3884 (gdb_print_insn_powerpc): New function.
3886 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3888 * NEWS: Mention that the d30v has been marked obsolete.
3889 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3890 * configure.tgt: Mark d30v-*-* as obsolete.
3891 * d30v-tdep.c: Mark file as obsolete.
3892 * config/d30v/d30v.mt: Ditto.
3893 * config/d30v/tm-d30v.h: Ditto.
3895 2002-07-13 Aidan Skinner <aidan@velvet.net>
3897 * ada-tasks.c (add_task_entry): replace calls to
3898 malloc() with xmalloc
3899 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3901 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3902 ada_finish_decode_line_1, all_sals_for_line
3903 ada_breakpoint_rewrite): replace calls to free() with xfree()
3905 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3907 From Nicholas Duffek (with minor changes by Martin Hunt,
3908 Louis Hamilton, and Kevin Buettner):
3909 * aix-thread.c: New file.
3911 2002-07-12 Petr Sorfa <petrs@caldera.com>
3913 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3914 complaint for invalid attribute class or form.
3915 (read_func_scope): DW_AT_frame_base
3916 better handling of DW_AT_block*.
3917 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3918 better handling of DW_AT_block*.
3919 (read_common_block): DW_AT_location
3920 better handling of DW_AT_block*.
3921 (read_partial_die): DW_AT_location better handling
3923 (new_symbol): DW_AT_external better handling of
3924 DW_AT_block*. Proper initialization of variable
3926 (attr_form_is_block): New function that returns true
3927 if the attribute's form is of DW_FORM_block*.
3929 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3931 * valops.c (find_method_list): Remove comment about
3932 removed STATIC_MEMFUNCP argument.
3933 (value_find_oload_method_list): Likewise.
3935 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3937 From Nicholas Duffek:
3938 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3939 target_new_objfile_hook.
3941 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3943 From Nicholas Duffek:
3944 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3947 2002-07-12 Andrew Cagney <cagney@redhat.com>
3949 * MAINTAINERS: Mention --enable-sim-build-warnings.
3950 (m68hc11-elf): Disable sim build warnings.
3951 (m32r-elf): Mark as broken obsolete candidate.
3952 (x86_64-linux-gnu): Mark as buildable with -Werror.
3953 (arm-elf): Change -w to ``,'' which enables warnings but not
3956 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3958 * bcache.h: Update copyright.
3959 (struct bstring, struct bcache): Move definition to "bcache.c".
3960 Replaced by opaque declaration.
3961 (bcache_xfree): Replace free_bcache.
3962 (bcache_xmalloc, bcache_memory_used): Declare.
3964 * bcache.c: Update copyright.
3965 (struct bstring, struct bcache): Moved to here from "bcache.h".
3967 (bcache_xmalloc, bcache_memory_used): New functions.
3968 (bcache_xfree): Replace function free_bcache.
3970 * Makefile.in (objfiles.o): Add $(bcache_h).
3971 (objfiles_h): Remove $(bcache_h).
3972 (symfile.o): Add $(bcache_h).
3974 * symmisc.c: Update copyright.
3975 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3976 (print_objfile_statistics): Use bcache_memory_used.
3978 * symfile.c: Include "bcache.h".
3979 (reread_symbols): Use bcache_xfree.
3980 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3981 (add_psymbol_to_list): Pass psymbol_cache by value.
3982 (add_psymbol_with_dem_name_to_list): Ditto.
3984 * objfiles.h: Update copyright.
3985 (struct bcache): Declare opaque. Do not include "bcache.h".
3986 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3988 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3990 * objfiles.c: Include "bcache.h". Update copyright.
3991 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3993 (free_objfile): Use bcache_xfree.
3995 2002-07-11 Grace Sainsbury <graces@redhat.com>
3997 * monitor.c (monitor_fetch_register): Make name a constant.
3998 (monitor_store_register): Same.
4000 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4002 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4003 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4004 (finish_block) For non-function blocks, hash the symbol table. For
4005 function blocks, mark the symbol table as unhashed.
4006 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4007 (msymbol_hash_iw): Likewise.
4008 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4010 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4011 (lookup_minimal_symbol): Likewise for both.
4012 * symtab.h (struct block): Add `hashtable' flag. Comment the
4014 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4015 (ALL_BLOCK_SYMBOLS): Update.
4016 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4017 (struct symbol): Add `hash_next' pointer.
4018 * symtab.c (lookup_block_symbol): Search using the hash table when
4020 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4021 (search_symbols, find_addr_symbol): Likewise.
4023 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4024 (read_dst_symtab): Likewise.
4025 * jv-lang.c (get_java_class_symtab): Likewise.
4026 * mdebugread.c: Include "gdb_assert.h".
4027 (shrink_block): Assert that the block being modified is not hashed.
4028 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4029 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4031 (dump_symtab): Recognize hashed blocks.
4032 * printcmd.c (print_frame_args): Assert that function blocks do not
4033 have hashed symbol tables.
4034 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4035 (fill_in_ada_prototype, debug_print_block): Likewise.
4036 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4038 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4040 * stack.c (print_frame): Use result of frame_address_in_block()
4041 instead of fi->pc when evaluating symbols.
4042 (backtrace_command_1): Ditto.
4044 2002-07-11 Andrew Cagney <cagney@redhat.com>
4046 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4049 * arm-tdep.c (arm_register_name): Make return type constant.
4051 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4053 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4055 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4056 * s390-tdep.c (s390_fp_regnum): Ditto.
4057 (s390_read_fp): Ditto.
4058 (s390_pop_frame): Ditto.
4059 (_initialize_s390_tdep): Ditto.
4060 * remote.c (get_remote_state): Ditto.
4061 * procfs.c (mappingflags): Ditto.
4062 * memattr.c (_initialize_mem): Ditto.
4063 * mcore-tdep.c (mcore_pop_frame): Ditto.
4064 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4065 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4066 * language.c (set_case_str): Ditto.
4067 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4068 * frv-tdep.c (new_variant): Ditto.
4069 (frv_stopped_data_address): Ditto.
4070 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4071 (context_alloc): Ditto.
4072 (frame_state_alloc): Ditto.
4073 (unwind_tmp_obstack_init): Ditto.
4074 (unwind_tmp_obstack_free): Ditto.
4075 (cfi_read_fp): Ditto.
4076 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4077 (cris_pop_frame): Ditto.
4078 * c-lang.c (scanning_macro_expansion): Ditto.
4079 (finished_macro_expansion): Ditto.
4080 (c_preprocess_and_parse): Ditto.
4081 * gdbarch.sh: Ditto.
4082 * gdbarch.h, gdbarch.c: Regenerate.
4083 * config/mn10200/tm-mn10200.h: Adjust indentation.
4084 * target.c: Adjust indentation.
4085 * symtab.h: Adjust indentation.
4086 * stabsread.h: Adjust indentation.
4087 * remote-es.c: Adjust indentation.
4088 * os9kread.c: Adjust indentation.
4090 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4092 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4093 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4095 2002-07-10 Grace Sainsbury <graces@redhat.com>
4097 * NEWS: Mention m68k, mcore multi-arching.
4098 * MAINTAINERS: Change status of m68k, mcore to reflect
4101 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4103 * valops.c (find_overload_match): Free oload_syms.
4105 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4107 Define HAVE_SYS_PROC_H if sys/proc.h exists
4108 * configure.in: Add check for sys/proc.h
4109 * config.in: Regenerate.
4110 * configure: Regenerate.
4112 2002-07-09 Grace Sainsbury <graces@redhat.com>
4114 * config/m68k/tm-m68k.h: Remove macros wrapped in
4115 #if !GDB_MULTI_ARCH.
4117 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4119 * config.in, configure: Regenerate.
4121 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4123 * dwarf2cfi.c: Include "gcore.h".
4124 (execute_stack_op): Fix implementation of the
4125 DW_OP_deref and DW_OP_deref_size operators by letting do their
4126 lookup in the target.
4128 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4130 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4131 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4134 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4136 Fix PR gdb/595, gdb/602
4137 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4138 Don't call value_cast, just read the vtable pointer; update comments
4141 2002-07-05 Grace Sainsbury <graces@redhat.com>
4143 * config/mcore/tm-mcore.h: Remove file.
4144 * config/mcore/mcore.mt: Remove definition of TM_FILE
4145 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4147 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4149 * i386bsd-tdep.c: Include "gdb_string.h".
4151 2002-07-04 Grace Sainsbury <graces@redhat.com>
4153 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4154 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4156 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4157 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4158 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4159 (RETVAL_REGNUM): Move macros from tm-mcore.h
4160 (mcore_reg_struct_has_addr): New function.
4161 (mcore_gdbarch_init): Added initializations for the macros removed
4164 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4166 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4167 traditonal string branding within the ELF header.
4169 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4171 * symtab.c (remove_params): New function.
4172 (make_symbol_overload_list): Use it instead of cplus_demangle.
4173 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4175 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4177 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4179 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4181 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4182 and tdep->sigtramp_end.
4183 * i386obsd-nat.c: New file.
4184 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4186 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4187 Don't call get_current_frame().
4189 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4191 * i386-nat.c (child_post_startup_inferior): New function
4192 calling i386_cleanup_dregs if
4193 I386_USE_GENERIC_WATCHPOINTS is defined.
4194 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4195 conditional to acknowledge that i386-nat.c has its
4196 own child_post_startup_inferior function.
4198 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4200 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4201 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4202 instead of MAX_REGISTER_RAW_SIZE.
4203 (i386_extract_return_value, i386_extract_struct_value_address):
4204 Convert to use regcache.
4205 (i386_gdbarch_init): Set max_register_raw_size and
4206 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4207 Set extract_return_value and extract_struct_value_address instead
4208 of their deprecated variants.
4210 Convert i386 target to generic dummy frames.
4211 * i386-tdep.c: Include "symfile.h".
4212 (i386_frameless_signal_p): Consider a function to be frameless if
4213 the pc points at the first instruction of the function.
4214 (i386_frame_chain): Handle (generic) call dummies.
4215 (i386_frame_saved_pc): Likewise.
4216 (i386_frame_init_saved_regs): Remove code dealing with call
4217 dummies on the stack.
4218 (i386_push_dummy_frame): Removed.
4219 (i386_call_dummy_words): Removed.
4220 (i386_fix_call_dummy): Removed.
4221 (i386_push_return_address): New function.
4222 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4223 parameter, and don't call get_current_frame.
4224 (i386_pop_frame): New function.
4225 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4226 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4227 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4228 call_dummy_length to 0, set call_dummy_words to NULL, set
4229 sizeof_call_dummy_words to 0, set fix_call_dummy to
4230 generic_fix_call_dummy, set pc_in_call_dummy to
4231 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4232 generic_push_dummy_frame, set push_return_address to
4233 i386_push_return_address and set frame_chain_valid to
4234 generic_file_frame_chain_valid.
4236 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4238 * gdbarch.sh (struct regcache): Add opaque declaration.
4239 (EXTRACT_RETURN_VALUE): New architecture method.
4240 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4241 * gdbarch.h, gdbarch.c: Regenerate.
4242 * arch-utils.c (legacy_extract_return_value): New function.
4243 * arch-utils.h (legacy_extract_return_value): Declare.
4244 * values.c (value_being_returned): Re-enable code handling
4245 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4246 deprecated_grub_regcache_for_registers call to block handling
4247 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4248 (EXTRACT_RETURN_VALUE): Do not define.
4250 2002-07-03 Grace Sainsbury <graces@redhat.com>
4252 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4253 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4254 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4255 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4256 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4257 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4258 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4259 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4260 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4261 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4262 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4263 argument so the function fits the prototype in the architecture
4265 (mcore_pop_frame): Remove argument so the function fits the
4266 prototype. Use get_current_frame instead of the argument.
4267 (mcore_push_arguments): Change type of struct_return so the
4268 function can be used in the architecture vector.
4269 (mcore_store_struct_return): Add.
4270 (mcore_frame_init_saved_regs): Add.
4271 (mcore_gdbarch_init): Add function calls to replace the macros
4272 removed from tm-mcore.h
4274 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4276 * infcmd.c (print_return_value): Remove compatibility code calling
4277 deprecated_grub_regcache_for_registers.
4279 * values.c: Include "regcache.h".
4280 (value_being_returned): Update. Use
4281 deprecated_grub_regcache_for_registers to extract the register
4283 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4284 ``struct regcache''.
4285 * Makefile.in (values.o): Add dependency on $(regcache_h).
4287 * inferior.h (run_stack_dummy): Change type of second parameter to
4288 a ``struct regcache''.
4289 * valops.c (hand_function_call): Change type of retbuf to ``struct
4290 regcache''. Allocate using regcache_xmalloc, clean using
4291 make_cleanup_regcache_xfree.
4292 * infcmd.c (run_stack_dummy): Update. Use
4293 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4295 * regcache.c (do_regcache_xfree): New function.
4296 (make_cleanup_regcache_xfree): New function.
4297 * regcache.h (make_cleanup_regcache_xfree): Declare.
4299 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4301 * event-top.c (command_line_handler): Don't read past
4302 beginning of buffer.
4304 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4306 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4308 (varobj_create): Store frame_id for root.
4309 (varobj_gen_name): Use xasprintf.
4310 (varobj_update): Save and restore frame using get_frame_id() and
4312 (create_child): Use xasprintf.
4313 (new_root_variable): Initialize frame_id.
4314 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4315 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4316 to prevent memory leak.
4318 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4320 * valops.c (hand_function_call): Move declaration of retbuf to
4321 start of function, allocate using malloc, add a cleanup but before
4322 the inf_status cleanup, cleanup the buffer. Rename local variable
4323 old_chain to inf_status_cleanup.
4325 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4327 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4329 * cli/cli-decode.c (cmd_func_p): New function.
4330 (cmd_func): New function.
4332 * command.h: Add cmd_func() and cmd_func_p().
4334 2002-07-03 Grace Sainsbury <graces@redhat.com>
4336 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4337 (REGISTER_SIZE): Remove.
4338 (MAX_REGISTER_RAW_SIZE): Remove.
4339 (REGISTER_VIRTUAL_TYPE): Remove.
4340 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4341 (REGISTER_NAME): Remove.
4342 (USE_GENERIC_DUMMY_FRAMES): Remove.
4343 (CALL_DUMMY): Remove.
4344 (CALL_DUMMY_START_OFFSET): Remove.
4345 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4346 (CALL_DUMMY_LOCATION): Remove.
4347 (FIX_CALL_DUMMY): Remove.
4348 (CALL_DUMMY_ADDRESS): Remove.
4349 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4350 (SAVE_DUMMY_FRAME_TOS): Remove.
4351 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4352 (mcore_register_virtual_type): New function.
4353 (mcore_register_byte): New function.
4354 (mcore_register_size): New function.
4355 (mcore_register_name): New function.
4356 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4357 macros removed from tm-mcore.h.
4358 (mcore_dump_tdep): Add.
4359 (_initialize_mcore_tdep): Add gdbarch_register call.
4361 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4363 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4364 frameless_look_for_prologue, such that we actually call this
4367 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4369 * frame.h (frame_address_in_block): New function.
4371 * blockframe.c (frame_address_in_block): New function extracted
4372 from get_frame_block().
4373 (get_frame_block): Use frame_address_in_block().
4374 (block_innermost_frame): Use frame_address_in_block() to match
4375 the frame pc address against the block boundaries rather than
4376 the frame pc directly. This prevents a failure when a frame pc
4377 is actually a return-address pointing immediately after the end
4380 2002-07-02 Grace Sainsbury <graces@redhat.com>
4382 * MAINTAINERS: Add self under write after approval.
4384 2002-07-02 Grace Sainsbury <graces@redhat.com>
4386 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4387 used in architecture vector. The default is
4388 m68k_local_breakpoint_from_pc.
4389 (m68k_local_breakpoint_from_pc): Add.
4390 (enum): Add register numbers from tm-m68k.h.
4391 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4393 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4394 GDB_MULTI_ARCH_PARTIAL.
4395 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4396 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4398 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4399 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4400 to enum in m68k-tdep.c
4402 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4404 * solib-osf.c (open_map): Compute the list of shared libraries
4405 loaded by the inferior, rather than the list of libraries loaded
4406 by GDB itself. Otherwise, GDB ends up reading the symbols from
4407 the wrong shared libraries...
4409 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4411 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4412 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4414 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4416 (FRAMELESS_SIGNAL): Remove function.
4417 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4418 i386_linux_saved_pc_after_call): Removed.
4419 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4420 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4421 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4423 * i386-tdep.c (i386_frameless_signal_p): New function.
4424 (i386_frame_chain): Deal with frameless signals.
4425 (i386_sigtramp_saved_sp): New function.
4426 (i386_frame_saved_pc): Deal with frameless signals.
4427 (i386_saved_pc_after_call): Make sure the correct value is
4428 returned just after entry into a sigtramp.
4429 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4430 i386fbsd4_sc_sp_offset): New variables.
4431 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4432 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4433 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4434 similiar to what we already did for sc_pc_offset.
4435 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4438 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4440 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4442 * config/i386/tm-x86-64linux.h: New.
4443 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4445 * config/i386/nm-x86-64.h: Rename to ...
4446 * config/i386/nm-x86-64linux.h: ... this one.
4447 * config/i386/x86-64linux.mh: Reflect the above change.
4449 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4451 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4452 with sigcontext_addr. Add sc_sp_offset.
4453 (i386bsd_sigtramp_saved_pc): Remove prototype.
4454 (i386bsd_sicontext_addr): Add prototype.
4455 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4456 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4457 (i386_svr4_sigtramp_saved_pc): Removed.
4458 (i386_svr4_sigcontext_addr): New function.
4459 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4460 Initialize tdep->sigcontext_addr instead. Initialize
4461 tdep->sc_pc_offset and tdep->sc_sp_offset.
4462 (i386_gdbarch_init): Likewise.
4463 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4465 (i386bsd_sigtramp_saved_pc): Remove function.
4466 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4467 Initialize tdep->sigcontext_addr instead. Initialize
4469 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4470 of tdep->sigtramp_saved_pc.
4471 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4472 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4475 * i386-tdep.c (i386_frameless_function_invocation,
4476 i386_frame_num_args, i386_frame_init_saved_regs,
4477 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4478 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4479 i386_extract_return_value, i386_store_return_value,
4480 i386_extract_struct_value_address, i386_register_virtual_type,
4481 i386_register_convertible, i386_register_convert_to_virtual,
4482 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4483 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4486 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4488 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4490 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4491 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4492 this macro. Include "value.h".
4494 2002-06-30 Aidan Skinner <aidan@velvet.net>
4496 * ada-exp.tab.c: remove as it's a generated file
4497 * ada-lex.c: remove as it's a generated file
4499 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4501 * config/i386/tm-i386.h (struct frame_info, struct
4502 frame_saved_regs, struct value, struct type): Remove forward
4505 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4506 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4507 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4508 (FILL_FPXREGSET): Define.
4510 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4512 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4513 i[3456]86-*-netbsd* case.
4514 * config/i386/tm-obsd.h: Removed.
4515 * config/i386/obsd.mt: Removed.
4516 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4518 (MH_CFLAGS): Add -DYYDEBUG=0.
4520 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4521 i386nbsd_sc_pc_offset on OpenBSD too.
4523 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4524 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4525 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4527 * i386bsd-tdep.c: Include "arch-utils.h".
4528 (i386bsd_aout_in_solib_call_trampoline): New function.
4529 (i386bsd_init_abi): Set in_solib_call_trampoline to
4530 i386bsd_aout_in_solib_call_trampoline.
4531 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4532 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4534 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4536 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4537 (struct obstack, struct bcache): Add opaque declarations.
4538 * Makefile.in (macrotab_h): Update
4540 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4542 * blockframe.c (generic_find_dummy_frame): Change return type to
4543 ``struct regcache''.
4544 (struct dummy_frame): Replace field ``registers'' with regcache, a
4545 struct regcache object.
4546 (generic_find_dummy_frame): Update.
4547 (generic_push_dummy_frame): Update. Use regcache_xfree,
4548 regcache_xmalloc and regcache_cpy.
4549 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4551 (deprecated_generic_find_dummy_frame): Update.
4552 (generic_read_register_dummy): Update. Use
4553 regcache_read_as_address.
4554 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4555 (generic_get_saved_register): Update. Use regcache_read.
4557 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4559 * Makefile.in (objfiles_h): Add $(bcache_h).
4560 * objfiles.h: Include "bcache.h".
4562 * Makefile.in (symtab_h): Remove $(bcache_h).
4563 * symtab.h: Do not include "bcache.h".
4565 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4567 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4568 generic_func_frame_chain_valid.
4570 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4572 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4573 * config/i386/tm-fbsd.h: Likewise.
4575 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4577 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4578 generic_unwind_get_saved_register.
4580 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4582 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4583 * regcache.c (supply_register): Add missing argument to
4584 register_buffer call.
4586 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4588 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4589 Solaris /bin/grep does not not like it. From Peter Schauer.
4591 2002-06-26 Tom Tromey <tromey@redhat.com>
4593 * command.h (add_setshow_cmd): Declare.
4594 (add_setshow_cmd_full): Declare.
4595 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4596 returns void. Use add_setshow_cmd_full.
4597 (add_setshow_cmd_full): New function.
4598 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4599 (add_setshow_boolean_cmd): Likewise.
4601 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4603 * config/vax/tm-vax.h: Protect from multiple inclusion.
4604 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4605 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4606 * config/vax/tm-vaxbsd.h: ...here. New file.
4607 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4609 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4611 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4612 (BELIEVE_PCC_PROMOTION): Remove.
4613 (AP_REGNUM): Move to...
4614 * config/vax/nm-vax.h: ...here.
4615 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4616 (vax_breakpoint_from_pc): New function.
4617 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4618 and gdbarch_believe_pcc_promotion.
4620 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4622 * Makefile.in (vax_tdep_h): Define.
4623 (vax-tdep.o): Use $(vax_tdep_h).
4624 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4625 (vax_dump_tdep): New function.
4626 (_initialize_vax_tdep): Register vax_dump_tdep.
4627 * vax-tdep.h: Include osabi.h.
4628 (struct gdbarch_tdep): New.
4630 2002-06-26 Andrew Cagney <cagney@redhat.com>
4632 * frame.h (deprecated_generic_find_dummy_frame): Rename
4633 generic_find_dummy_frame.
4634 * blockframe.c (generic_find_dummy_frame): Make static.
4635 (deprecated_generic_find_dummy_frame): New function.
4636 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4637 generic_find_dummy_frame with deprecated_find_dummy_frame.
4638 (sh64_nofp_frame_init_saved_regs): Ditto.
4639 (sh_fp_frame_init_saved_regs): Ditto.
4640 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4641 (s390_frame_chain): Ditto.
4642 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4644 2002-06-26 Grace Sainsbury <graces@redhat.com>
4646 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4647 gdbarch vector are at the top.
4649 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4650 (FRAME_ARGS_ADDRESS): Remove.
4651 (FRAME_LOCALS_ADDRESS): Remove.
4652 (FRAME_NUM_ARGS): Remove.
4653 (FRAME_ARGS_SKIP): Remove.
4654 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4655 (m68k_gdbarch_init): Add gdbarch initializations for macros
4656 undefined in tm-m68k.h
4658 2002-06-26 Grace Sainsbury <graces@redhat.com>
4660 * monitor.h: Add the function regname to monitor_ops
4661 structure. This way NUM_REGS does not have to be a constant.
4662 * monitor.c (monitor_fetch_register): Added support for regname
4663 function. The function is called if the array regnames is NULL.
4664 (monitor_store_register): Same.
4665 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4667 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4668 cpu32bug_cmds.regname to point to new function.
4669 * abug-rom.c (abug_regname): Same as above.
4670 (init_abug_cmds): Same.
4671 * dbug-rom.c (dbug_regname): Same as above.
4672 (init_dbug_cmds): Same.
4673 * remote-est.c (est_regname): Same.
4674 (init_est_cmds): Same.
4675 * rom68k-rom.c (rom68k_regname): Same.
4676 (init_rom68k_cmds): Same.
4678 2002-06-25 Tom Tromey <tromey@redhat.com>
4680 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4682 2002-06-25 Andrew Cagney <cagney@redhat.com>
4684 * infrun.c (stop_registers): Change variable's type to ``struct
4686 (xmalloc_inferior_status): Delete function.
4687 (free_inferior_status): Delete function.
4688 (normal_stop): Use regcache_cpy.
4689 (struct inferior_status): Change type of fields ``stop_registers''
4690 and ``registers'' to ``struct regcache''.
4691 (write_inferior_status_register): Use regcache_write.
4692 (save_inferior_status): Instead of calling
4693 xmalloc_inferior_status, allocate the inf_status buffer directly.
4694 Use regcache_dup_no_passthrough and regcache_dup to save the
4696 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4697 Replace the stop_registers regcache instead of overriding it. Use
4698 regcache_xfree. Instead of calling free_inferior_status, xfree
4699 the buffer directly.
4700 (discard_inferior_status): Use regcache_xfree. Instead of calling
4701 free_inferior_status, xfree the buffer directly.
4702 (build_infrun): Use regcache_xmalloc.
4703 (_initialize_infrun): Delete redundant call to build_infrun.
4705 * Makefile.in (infcmd.o): Add $(regcache_h).
4707 * infcmd.c: Include "regcache.h".
4708 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4709 obtain the address of `stop_registers' register buffer.
4710 (print_return_value): Ditto.
4712 * inferior.h (struct regcache): Add opaque declaration.
4713 (stop_registers): Change variable's declared type to ``struct
4716 2002-06-24 Tom Tromey <tromey@redhat.com>
4718 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4719 * target.c (initialize_targets): Fixed typo in
4720 trust-readonly-sections `show' documentation.
4722 * main.c: Marked all strings with _().
4724 2002-06-24 Don Howard <dhoward@redhat.com>
4726 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4727 that means max CORE_ADDR+1.
4728 (lookup_mem_region): Ditto.
4729 (mem_info_command): Ditto.
4731 2002-06-24 Grace Sainsbury <graces@redhat.com>
4733 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4734 (REGISTER_BYTES_OK): Remove.
4735 (REGISTER_BYTES): Remove.
4736 (STORE_STRUCT_RETURN): Remove.
4737 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4738 (STORE_RETURN_VALUE): Remove.
4739 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4740 (FRAME_CHAIN): Remove.
4741 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4742 (FRAME_SAVED_PC): Remove.
4743 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4744 (m68k_store_struct_return): Add.
4745 (m68k_deprecated_extract_return_value): Add.
4746 (m68k_deprecated_extract_struct_value_address): Add.
4747 (m68k_store_return_value): Add.
4748 (m68k_frame_chain): Add.
4749 (m68k_frameless_function_invocation): Add.
4750 (m68k_frame_saved_pc): Add.
4751 (m68k_gdbarch_init): added set_gdbarch calls for new
4752 functions and deleted macros.
4754 2002-06-23 Tom Tromey <tromey@redhat.com>
4756 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4757 (ALLDEPFILES): Likewise.
4758 (udiheaders): Removed.
4759 (udip2soc.o): Likewise.
4760 (udi2go32.o): Likewise.
4762 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4764 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4766 * infrun.c (_initialize_infrun): Delete unnecessary call to
4769 * regcache.h: Update comments describing the regcache_cpy family
4771 (regcache_save, regcache_restore): Delete declaration.
4772 (regcache_save_no_passthrough): Delete declaration.
4773 (regcache_restore_no_passthrough): Delete declaration.
4774 * regcache.c (regcache_save): Delete function.
4775 (regcache_save_no_passthrough): Delete function.
4776 (regcache_restore): Delete function.
4777 (regcache_restore_no_passthrough): Delete function.
4779 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4781 * config/m68k/tm-m68k.h: Fix typo.
4782 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4783 (m68k_frame_init_saved_regs): Declare.
4785 2002-06-21 Jim Blandy <jimb@redhat.com>
4787 Remove some vestiges of Harris 88k support.
4788 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4789 register numbering quirk.
4790 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4791 odd symbols occurring in Harris 88k ELF targets.
4793 2002-06-21 Tom Tromey <tromey@redhat.com>
4795 * gdb_locale.h: New file.
4796 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4797 (defs_h): Added gdb_locale.h.
4798 * configure, config.in: Rebuilt.
4799 * configure.in (PACKAGE): Define.
4800 * defs.h: Include gdb_locale.h.
4801 * main.c (captured_main): Call setlocale, bindtextdomain,
4804 2002-06-21 Dave Brolley <brolley@redhat.com>
4806 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4807 * config/frv/frv.mt: New file.
4808 * config/frv/tm-frv.h: New file.
4809 * configure.tgt: Support frv-*-*.
4810 * Makefile.in (frv-tdep.o): New target.
4811 * frv-tdep.c: New file.
4812 * NEWS: Mention frv.
4814 2002-06-21 Dave Brolley <brolley@redhat.com>
4816 * MAINTAINERS: Add self to "Write After Approval" list.
4818 2002-06-21 Grace Sainsbury <graces@redhat.com>
4820 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4821 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4822 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4823 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4824 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4826 * m68k-tdep.c: Include arch-utils.h
4827 (m68k_register_raw_size): Add.
4828 (m68k_register_virtual_size): Add.
4829 (m68k_register_virtual_type): Add.
4830 (m68k_register_name): Add.
4831 (m68k_stack_align): Add.
4832 (m68k_register_byte): Add.
4833 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4836 2002-06-21 Grace Sainsbury <graces@redhat.com>
4838 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4839 m68k_find_saved_regs.
4840 (m68k_pop_frame): Removed saved_regs structure, and replaced
4841 references to it with frame->saved_regs.
4842 (m68k_gdbarch_init): Added function calls to initialize the
4844 (m68k_fix_call_dummy): Add.
4845 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4846 (CALL_DUMMY): Remove.
4847 (CALL_DUMMY_LENGTH): Remove.
4848 (CALL_DUMMY_START_OFFSET): Remove.
4849 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4850 (FIX_CALL_DUMMY): Remove.
4851 (PUSH_DUMMY_FRAME): Remove.
4852 (POP_FRAME): Remove.
4854 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4856 * parse.c (parse_fprintf): New function used to avoid calls to
4857 fprintf in bison parser generated debug code.
4858 * parser-defs.h: Declaration of new parse_fprintf function.
4859 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4860 Set YYDEBUG to 1 by default.
4861 Set YYFPRINTF as parse_fprintf.
4863 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4865 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4867 (pointer_encoding, enum ptr_encoding): New.
4868 (execute_cfa_program): Take care about pointer encoding.
4869 (dwarf2_build_frame_info): Only call parse_frame_info for
4870 .debug_frame and .eh_frame.
4871 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4872 fixed augmentation handling, added relative addressing,
4873 ignore duplicate FDEs. Added comments.
4874 * dwarf2cfi.c: Reindented.
4876 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4878 * event-top.c (command_handler): Don't use space_at_cmd_start
4879 unless there is sbrk() on the host. Assign time and space data
4880 to union fields of the appropriate length.
4882 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4884 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4885 x86_64_register_name. Return type changed to 'const char *'.
4886 (x86_64_register_name2nr): Rename to x86_64_register_number.
4887 (x86_64_gdbarch_init): Update to reflect the change.
4888 * x86-64-tdep.h: Ditto.
4889 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4890 (supply_fpregset): Ditto.
4892 2002-06-19 Andrew Cagney <cagney@redhat.com>
4894 * regcache.h: Update copyright.
4895 (struct regcache, struct gdbarch): Add opaque declarations.
4896 (current_regcache): Declare global variable.
4897 (regcache_read, regcache_write): Add gdbarch parameter.
4898 (regcache_save, regcache_save_no_passthrough)
4899 (regcache_restore, regcache_restore_no_passthrough)
4900 (regcache_dup, regcache_dup_no_passthrough)
4901 (regcache_cpy, regcache_cpy_no_passthrough)
4902 (deprecated_grub_regcache_for_registers)
4903 (deprecated_grub_regcache_for_register_valid)
4904 (regcache_valid_p): Add function declarations.
4906 * regcache.c: Update copyright.
4907 (regcache_descr_handle): New global variable.
4908 (struct regcache_descr): Define.
4909 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4910 (regcache_descr, xfree_regcache_descr): New functions.
4911 (struct regcache): Define.
4912 (regcache_xmalloc, regcache_xfree): New functions.
4913 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4914 (regcache_dup, regcache_dup_no_passthrough): New functions.
4915 (regcache_valid_p, regcache_read_as_address): New functions.
4916 (deprecated_grub_regcache_for_registers): New function.
4917 (deprecated_grub_regcache_for_register_valid): New function.
4918 (current_regcache): New global variable.
4919 (register_buffer): Add regcache parameter. Update calls.
4920 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4921 (read_register_gen, write_register_gen): Update register_buffer
4922 call. Test for legacy_p instead of gdbarch_register_read_p or
4923 gdbarch_register_write_p.
4924 (regcache_collect): Update register_buffer call.
4925 (build_regcache): Rewrite. Use deprecated grub functions.
4926 (regcache_save, regcache_save_no_passthrough): New functions.
4927 (regcache_restore, regcache_restore_no_passthrough): New
4929 (_initialize_regcache): Create the regcache_data_handle. Swap
4930 current_regcache global variable.
4932 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4933 parameter to regcache_read and regcache_write calls.
4934 (sh4_register_read): Ditto.
4935 (sh64_pseudo_register_read): Ditto.
4936 (sh64_register_read): Ditto.
4937 (sh_pseudo_register_write): Ditto.
4938 (sh4_register_write): Ditto.
4939 (sh64_pseudo_register_write): Ditto.
4940 (sh64_register_write): Ditto.
4942 * defs.h (XCALLOC): Define.
4944 2002-06-19 Grace Sainsbury <graces@redhat.com>
4946 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4947 * m68k-tdep.c (m68k_gdbarch_init): Added.
4948 (m68k_dump_tdep): Added.
4950 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4952 * ada-lang.c (fill_in_ada_prototype): Update comment.
4954 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4956 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4958 (mips_abi_string, mips_abi_strings): New.
4959 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4960 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4961 tdep->mips_abi_string. Honor mips_abi_string. Default to
4962 O32 if no ABI is found.
4963 (mips_dump_tdep): Use mips_abi_strings.
4964 (mips_abi_update): New function.
4965 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4966 ``set mips abi'' and ``show mips abi''. Check the size of
4969 2002-06-19 Andrew Cagney <cagney@redhat.com>
4971 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4974 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4976 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4977 current frame using only the first stack size adjustment. All
4978 subsequent size adjustments are not considered to be part of
4979 the "static" part of the current frame.
4980 Compute the address of the saved registers relative to the
4981 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4982 in use in this frame.
4984 2002-06-18 Don Howard <dhoward@redhat.com>
4986 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4987 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4988 suggesting this solution.
4990 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4992 * config/romp/xm-rtbsd.h: Delete file.
4993 * config/romp/rtbsd.mh: Delete file.
4995 2002-06-18 Keith Seitz <keiths@redhat.com>
4997 * breakpoint.c (condition_command): Post breakpoint_modify
4998 when a condition is added to an existing breakpoint.
4999 (commands_command): Likewise for commands.
5000 (set_ignore_count): Likewise for ignore counts.
5001 If no tty, do not simply return, still need to send event
5003 (ignore_command): Only print a newline if the command came
5005 Don't call breakpoints_changed, since this is now properly
5006 handled by set_ignore_count.
5008 2002-06-18 Andrew Cagney <cagney@redhat.com>
5010 * MAINTAINERS: Note that cris-elf target can be compiled with
5012 * cris-tdep.c (cris_register_name): Make return type constant.
5013 (cris_breakpoint_from_pc): Ditto.
5015 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5017 * frame.h (struct frame_info): Change type of context to
5020 2002-06-17 Andrew Cagney <cagney@redhat.com>
5022 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5024 * gdbarch.h, gdbarch.c: Regenerate.
5025 * config/mips/tm-mips.h (mips_register_name): Update.
5026 * i386-tdep.h (i386_register_name): Update.
5027 * mips-tdep.c (mips_register_name): Update
5028 * alpha-tdep.c (alpha_register_name): Update.
5029 * arch-utils.c (legacy_register_name): Update.
5030 * arch-utils.h (legacy_register_name): Update.
5031 * avr-tdep.c (avr_register_name): Update.
5032 * ia64-tdep.c (ia64_register_name): Update.
5033 * i386-tdep.c (i386_register_name): Update.
5034 * sparc-tdep.c (sparc32_register_name): Update.
5035 (sparc64_register_name): Update.
5036 (sparclite_register_name): Update.
5037 (sparclet_register_name): Update.
5038 * sh-tdep.c (sh_generic_register_name): Update.
5039 (sh_sh_register_name): Update.
5040 (sh_sh3_register_name): Update.
5041 (sh_sh3e_register_name): Update.
5042 (sh_sh_dsp_register_name): Update.
5043 (sh_sh3_dsp_register_name): Update.
5044 (sh_sh4_register_name): Update.
5045 (sh_sh64_register_name): Update.
5046 * s390-tdep.c (s390_register_name): Update.
5047 * rs6000-tdep.c (rs6000_register_name): Update.
5048 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5049 (ns32k_register_name_32382): Update.
5050 * d10v-tdep.c (d10v_ts2_register_name): Update.
5051 (d10v_ts3_register_name): Update.
5052 * xstormy16-tdep.c (xstormy16_register_name): Update.
5053 * vax-tdep.c (vax_register_name): Update.
5054 * v850-tdep.c (v850_register_name): Update.
5055 * m68hc11-tdep.c (m68hc11_register_name): Update.
5056 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5057 (am33_register_name): Update.
5059 2002-06-17 Grace Sainsbury <graces@redhat.com>
5061 * m68k-tdep.c: Reindented.
5063 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5065 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5066 list of predefined types.
5068 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5070 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5071 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5072 REGISTER_CONVERT_TO_RAW): Remove defines.
5073 (i386_register_virtual_type, i386_register_convertible,
5074 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5076 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5077 macros mentioned above.
5079 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5080 (i386lynx_saved_pc_after_call): Remove prototype.
5081 * i386ly-tdep.c: Include "i386-tdep.h".
5082 (i386lynx_saved_pc_after_call): Make static. Use
5083 read_memory_nobpt instead of read_memory. Use
5084 read_memory_unsigned_integer instead of read_memory_integer.
5085 (i386lynx_init_abi): New function.
5086 (i386lynx_coff_osabi_sniffer): New function.
5087 (_initialize_i386bsd_tdep): New function.
5089 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5090 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5091 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5092 (i386_fix_call_dummy): Remove prototype.
5093 * i386-tdep.c (i386_call_dummy_words): New variable.
5094 (i386_gdbarch_init): Adjust for removal of the
5095 macros mentioned above.
5097 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5099 * command.h (add_setshow_auto_boolean_cmd): Replace
5100 add_set_auto_boolean_cmd.
5101 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5102 add_set_auto_boolean_cmd.
5103 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5104 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5105 mask-address'' command.
5106 (show_mask_address): Add cmd parameter.
5107 * remote.c (add_packet_config_cmd): Update. Change type of
5108 set_func and show_func to cmd_sfunc_ftype.
5109 (_initialize_remote): Update `set remote Z-packet'
5110 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5111 (show_remote_protocol_e_packet_cmd): Ditto.
5112 (show_remote_protocol_E_packet_cmd): Ditto.
5113 (show_remote_protocol_P_packet_cmd): Ditto.
5114 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5115 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5116 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5117 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5118 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5119 (show_remote_protocol_Z_packet_cmd): Ditto.
5120 (show_remote_protocol_binary_download_cmd): Ditto.
5121 (show_remote_cmd): Pass NULL to all of above.
5123 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5125 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5126 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5127 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5128 POP_FRAME): Remove defines.
5129 (i386_push_arguments, i386_store_struct_return,
5130 i386_extract_return_value, i386_store_return_value,
5131 i386_extract_struct_value_address, i386_push_dummy_frame,
5132 i386_pop_frame): Renove prototypes.
5133 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5134 macros mentioned above.
5136 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5138 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5139 add_set_boolean_cmd.
5140 (add_setshow_cmd): New function.
5141 * command.h (add_setshow_boolean_cmd): Replace
5142 add_set_boolean_cmd.
5143 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5144 and ``set rdiromatzero''.
5145 * maint.c (_initialize_maint_cmds): Update commented out code.
5146 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5147 * target.c (initialize_targets): Update `set
5148 trust-readonly-sections'.
5149 * remote.c (_initialize_remote): Update `set remotebreak'.
5151 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5153 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5154 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5155 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5156 fit into multi-arch framework.
5157 (i386_breakpoint_from_pc): New function.
5158 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5161 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5162 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5163 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5164 (i386_frameless_function_invocation, i386_frame_num_args,
5165 i386_frame_init_saved_regs): Remove prototypes.
5166 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5167 macros mentioned above.
5169 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5171 * cli/cli-decode.c (set_cmd_cfunc): Update.
5172 (set_cmd_sfunc): Update.
5173 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5174 (set_cmd_sfunc, set_cmd_cfunc): Update.
5175 * cli/cli-decode.h: Update.
5177 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5179 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5180 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5182 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5184 * defs.h (auto_boolean): Declare enum.
5185 * command.h (cmd_auto_boolean): Delete enum.
5186 * mips-tdep.c (mask_address_var): Update.
5187 (mips_mask_address_p): Update.
5188 (show_mask_address): Update.
5189 * remote.c (struct packet_config): Update.
5190 (update_packet_config): Update.
5191 (show_packet_config_cmd): Update.
5192 (packet_ok): Update.
5193 (add_packet_config_cmd): Update.
5194 (_initialize_remote):
5195 * command.h: Update.
5196 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5197 (do_setshow_command): Update.
5198 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5199 * cli/cli-decode.h: Update.
5201 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5203 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5204 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5205 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5206 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5207 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5208 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5210 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5211 list of DJGPP COFF targets.
5213 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5214 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5215 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5216 (FP0_REGNUM): Remove define.
5217 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5218 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5219 (i386_register_virtual_size): Remove protoype.
5220 * i386-tdep.c (i386_register_virtual_size): Removed.
5221 (i386_extract_return_value, i386_store_return_value): Use
5222 FP0_REGNUM instead of NUM_FREGS to determine whether the
5223 floating-point registers are available.
5224 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5225 Adjust for removal of macros mentioned above.
5227 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5229 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5231 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5233 (supply_gregset, fill_gregset): Remove use of register keyword and
5234 remove declaration for regmap. Use I386_NUM_GREGS instead of
5235 NUM_REGS and NUM_FREGS.
5236 (FPREGSET_FSAVE_OFFSET): Remove.
5237 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5238 NUM_FREGS to determine whether the floating-point registers are
5241 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5242 gnu_store_registers): Replace usage of NUM_GREGS with
5245 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5246 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5247 usage of NUM_GREGS with I386_NUM_GREGS.
5249 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5251 * i386bsd-nat.c: Include "i386-tdep.h".
5252 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5255 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5256 and associated comment. They no longer make any sense, since we
5257 don't use this file anymore on Linux.
5259 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5260 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5261 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5262 elements in these arrays.
5263 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5266 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5268 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5269 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5271 2002-06-14 Andrew Cagney <cagney@redhat.com>
5273 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5274 EXTRACT_RETURN_VALUE.
5275 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5276 EXTRACT_STRUCT_VALUE_ADDRESS.
5277 * gdbarch.h, gdbarch.c: Regenerate.
5279 * values.c (value_being_returned): Handle
5280 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5281 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5283 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5284 * arm-tdep.c (arm_gdbarch_init): Update.
5285 * avr-tdep.c (avr_gdbarch_init): Update.
5286 * cris-tdep.c (cris_gdbarch_init): Update.
5287 * d10v-tdep.c (d10v_gdbarch_init): Update.
5288 * ia64-tdep.c (ia64_gdbarch_init): Update.
5289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5290 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5291 * s390-tdep.c (s390_gdbarch_init): Update.
5292 * sh-tdep.c (sh_gdbarch_init): Update.
5293 * s390-tdep.c (s390_gdbarch_init): Update.
5294 * sparc-tdep.c (sparc_gdbarch_init): Update.
5295 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5296 * v850-tdep.c (v850_gdbarch_init): Update.
5297 * vax-tdep.c (vax_gdbarch_init): Update.
5298 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5301 * config/arc/tm-arc.h: Update.
5302 * config/d30v/tm-d30v.h: Update.
5303 * config/fr30/tm-fr30.h: Update.
5304 * config/h8300/tm-h8300.h: Update.
5305 * config/h8500/tm-h8500.h: Update.
5306 * config/i386/tm-i386.h: Update.
5307 * config/i386/tm-ptx.h: Update.
5308 * config/i386/tm-symmetry.h: Update.
5309 * config/i960/tm-i960.h: Update.
5310 * config/m32r/tm-m32r.h: Update.
5311 * config/m68k/tm-delta68.h: Update.
5312 * config/m68k/tm-linux.h: Update.
5313 * config/m68k/tm-m68k.h: Update.
5314 * config/m88k/tm-m88k.h: Update.
5315 * config/mcore/tm-mcore.h: Update.
5316 * config/mips/tm-mips.h: Update.
5317 * config/mn10200/tm-mn10200.h: Update.
5318 * config/pa/tm-hppa.h: Update.
5319 * config/pa/tm-hppa64.h: Update.
5320 * config/sparc/tm-sp64.h: Update.
5321 * config/sparc/tm-sparc.h: Update.
5322 * config/sparc/tm-sparclet.h: Update.
5323 * config/z8k/tm-z8k.h: Update.
5325 2002-06-14 Andrew Cagney <cagney@redhat.com>
5327 * Makefile.in (i386_linux_tdep_h): Define.
5328 (i386_tdep_h, i387_tdep_h): Define.
5329 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5330 $(i386_tdep_h) and $(i387_tdep_h).
5331 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5333 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5335 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5336 Already covered by the default.
5338 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5339 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5340 (i386_gdbarch_init): Initialize long_double_format and long_double
5343 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5344 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5346 * config/i386/i386sol2.mh: ... here.
5347 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5348 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5349 (SIGCONTEXT_PC_OFFSET): Remove define.
5350 (IN_SIGTRAMP): Remove define.
5351 * i386-sol2-tdep.c: New file.
5353 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5354 * config/i386/tm-i386nw.h: Removed.
5356 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5357 USE_STRUCT_CONVENTION): Remove defines.
5358 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5359 (get_longjmp_target): Remove prototype.
5360 (IN_SIGTRAMP): Remove define.
5361 (i386bsd_in_sigtramp): Remove prototype.
5362 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5363 function. Update comment accordingly
5364 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5365 (FRAME_SAVED_PC): Remove define.
5366 (i386bsd_frame_saved_pc): Remove prototype.
5367 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5368 GET_LONGJMP_TARGET): Remove defines.
5369 (get_longjmp_target): Remove prototype.
5370 (IN_SIGTRAMP): Remove define.
5371 (i386bsd_in_sigtramp): Remove prototype.
5372 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5373 function. Update comment accordingly
5374 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5375 (FRAME_SAVED_PC): Remove define.
5376 (i386bsd_frame_saved_pc): Remove prototype.
5377 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5379 (USE_STRUCT_CONVENTION): Remove prototype.
5380 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5382 (_initialize_i386bsd_nat): Revise logic to determine some
5383 constants at compile time when compiling a native GDB. Warn if
5384 things don't match up with what we expect.
5385 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5387 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5388 to use date stored in `struct gdbarch_tdep'.
5389 (i386bsd_sigcontext_offset): Remove varaible.
5390 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5391 stored in `struct gdbarch_tdep'.
5392 (i386bsd_frame_saved_pc): Make static.
5393 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5394 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5395 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5396 i386fbsd4_sc_pc_offset): New variables.
5397 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5398 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5400 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5402 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5403 Modify the value of i386fbsd_sigtramp_start and
5404 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5405 i386fbsd_sigtramp_end.
5406 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5409 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5410 define to i386-linux-tdep.h.
5411 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5412 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5414 (i386_linux_register_name, i386_linux_register_byte,
5415 i386_linux_register_raw_size): Remove prototypes.
5416 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5417 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5418 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5419 TARGET_WRITE_PC): Remove defines.
5420 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5421 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5422 i386_linux_write_pc): Remove prototypes.
5423 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5424 (get_longjmp_target): Remove prototype.
5425 * i386-linux-tdep.h: New file.
5426 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5427 * i386-linux-tdep.c: Include "i386-tdep.h" and
5428 "i386-linux-tdep.h".
5429 (i386_linux_register_name, i386_linux_register_byte,
5430 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5431 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5433 (i386_linux_init_abi): New function.
5434 (_initialize_i386_linux_tdep): New function.
5436 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5437 (i386_saved_pc_after_call): Remove prototype.
5438 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5439 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5440 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5441 (i386_register_name, i386_stab_reg_to_regnum,
5442 i386_dwarf_reg_to_regnum): Remove prototypes.
5443 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5444 SIZEOF_SSE_REGS): Remove defines.
5445 (REGISTER_BYTES): Remove define.
5446 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5447 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5448 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5449 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5450 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5451 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5452 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5453 (get_longjmp_target): Remove prototype.
5454 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5455 (sigtramp_saved_pc): Remove define.
5456 (i386v4_sigtramp_saved_pc): Remove prototype.
5457 * config/i386/tm-go32.h (FRAME_CHAIN,
5458 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5459 (i386go32_frame_saved_pc): Remove prototype.
5460 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5461 (get_longjmp_target): Remove prototype.
5462 * i386-tdep.h: Include "osabi.h".
5463 (enum i386_abi): Removed.
5464 (enum struct_return): New enum.
5465 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5466 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5467 sc_pc_offset members.
5468 (i386_gdbarch_register_os_abi): Remove prototype.
5469 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5470 I386_SSE_NUM_REGS): New defines.
5471 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5472 I386_SSE_SIZEOF_REGS): New defines.
5473 (i386_register_name, i386_register_byte, i386_register_raw_size):
5475 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5476 (i386bsd_sigtramp_saved_pc): New prototype.
5477 * i386-tdep.c: Don't include "elf-bfd.h".
5478 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5479 i386_frame_chain, i386_saved_pc_after_call): Make static.
5480 (i386_frame_saved_pc): Rewrite to call architecture dependent
5481 function to deal with signal handlers. Make static.
5482 (i386go32_frame_saved_pc): Removed.
5483 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5485 (i386_get_longjmp_target): New function.
5486 (default_struct_convention, pcc_struct_convention,
5487 reg_struct_convention, valid_conventions, struct_convention): New
5489 (i386_use_struct_convention): New function.
5490 (i386v4_sigtramp_saved_pc): Renamed to
5491 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5492 (i386_pc_in_sigtramp): New function.
5493 (i386_abi_names): Removed.
5494 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5495 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5497 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5498 i386_gdbarch_register_os_abi): Removed.
5499 (struct i386_abi_handler): Removed.
5500 (i386_abi_handler_list): Removed.
5501 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5503 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5504 i386_nw_init_abi): New functions.
5505 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5506 Use set_gdbarch_xxx() calls instead of relying on macros for a
5508 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5509 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5510 Register the various architecture variants defined in this file.
5512 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5514 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5515 (struct main_type): Remove arg_types member. Update comments for
5517 (TYPE_ARG_TYPES): Remove.
5518 (TYPE_FN_FIELD_ARGS): Update.
5519 (smash_to_method_type): Update prototype.
5521 * c-typeprint.c (cp_type_print_method_args): Take method type
5522 instead of argument list. Use new argument layout. Simplify.
5523 (c_type_print_args): Use new argument layout. Simplify.
5524 (c_type_print_base): Update call to cp_type_print_method_args.
5525 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5526 argument; use die->type instead. Update call to
5527 smash_to_method_type.
5528 (read_structure_scope): Update call to dwarf2_add_member_fn.
5529 * gdbtypes.c (allocate_stub_method): Update comment.
5530 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5531 Use new argument layout.
5532 (check_stub_method): Use new argument layout. Don't count
5533 void as an argument.
5534 (print_arg_types): Update comments. Use new argument layout.
5535 (recursive_dump_type): Don't print arg_types member.
5536 * hpread.c (hpread_read_struct_type): Use new argument layout.
5537 (fixup_class_method_type): Likewise.
5538 (hpread_type_lookup): Likewise.
5539 * stabsread.c (read_type): Update calls to read_args and
5540 smash_to_method_type.
5541 (read_args): Use new argument layout. Simplify.
5542 * valops.c (typecmp): Use new argument layout. Update parameters
5543 and comments. Simplify.
5544 (hand_function_call): Use new argument layout.
5545 (search_struct_method): Update call to typecmp.
5546 (find_overload_match): Use new argument layout.
5548 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5550 * NEWS: Mention multithreaded debug support for gdbserver.
5552 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5554 * MAINTAINERS: Mention NEWS.
5556 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5558 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5559 (struct mips_objfile_private, compare_pdr_entries): New.
5560 (non_heuristic_proc_desc): Read the ".pdr" section if it
5563 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5565 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5566 (arm_debug): New static variable.
5567 (_initialize_arm_tdep): Add ``set debug arm'' command.
5569 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5571 * Makefile.in (sim_arm_h): Define.
5572 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5573 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5574 (arm_register_sim_regno): New function, map an internal REGNUM
5575 onto a simulator register number.
5576 (arm_gdbarch_init): Set register_sim_regno.
5578 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5580 * MAINTAINERS: Add self.
5582 2002-06-11 Jim Blandy <jimb@redhat.com>
5584 * source.c (source_info): Mention whether the symtab has
5585 information about preprocessor macros.
5587 Call the command `info macro', not `show macro'.
5588 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5590 (_initialize_macrocmd): Register `info_macro_command' in
5591 `infolist', not `showlist'.
5593 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5595 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5596 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5597 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5598 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5599 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5601 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5602 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5603 (_initialize_mips_tdep): Remove dead code.
5604 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5605 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5606 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5607 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5608 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5609 MIPS_LAST_FP_ARG_REGNUM): Remove.
5611 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5613 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5614 (unwind_tmp_obstack_free, parse_frame_info)
5615 (update_context, cfi_read_fp, cfi_write_fp)
5616 (cfi_frame_chain, cfi_init_extra_frame_info)
5617 (cfi_virtual_frame_pointer): Use the above function.
5618 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5620 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5622 * v850-tdep.c (v850_type_is_scalar): New function.
5623 (v850_use_struct_convention): Match current gcc implementation
5624 as close as possible.
5625 (v850_push_arguments): Fix stack_offset handling. Don't write
5626 struct_addr into register. This is done by v850_store_struct_return.
5627 (v850_extract_return_value): Care for structs.
5628 (v850_store_return_value): Ditto.
5629 (v850_store_struct_return): Actually write address.
5631 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5633 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5634 without debug information too.
5636 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5638 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5639 Make multi-arch pure.
5640 * gdbarch.h, gdbarch.c: Re-generate.
5641 * arm-tdep.c (arm_print_float_info): Update.
5642 * arch-utils.h (default_print_float_info): Update.
5643 * arch-utils.c (default_print_float_info): Update.
5644 * infcmd.c (float_info): Update call.
5646 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5648 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5649 the front of the initialize list.
5651 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5653 * infrun.c (struct inferior_status): Replace fields
5654 selected_frame_address and selected_level with field
5656 (save_inferior_status): Update. Use get_frame_id.
5657 (struct restore_selected_frame_args): Delete.
5658 (restore_selected_frame): Update. Use frame_find_by_id.
5659 (restore_inferior_status): Update.
5661 * breakpoint.h (struct breakpoint): Change type of
5662 watchpoint_frame to frame_id.
5663 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5664 call to get_current_frame.
5665 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5667 (watchpoint_check): Use frame_find_by_id.
5669 * frame.h (record_selected_frame): Delete declaration.
5670 * stack.c (record_selected_frame): Delete function.
5672 * frame.h (struct frame_id): Define.
5673 (get_frame_id): Declare.
5674 (frame_find_by_id): Declare.
5675 * frame.c (frame_find_by_id): New function.
5676 (get_frame_id): New function.
5678 2002-06-10 Andrey Volkov <avolkov@transas.com>
5680 * ser-e7kpc.c: Fix duplicated define and call of
5681 _initialize_ser_e7000pc
5683 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5685 * signals/signals.c (target_signal_from_host): Fix #ifdef
5687 (do_target_signal_to_host): Likewise.
5689 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5691 * mips-tdep.c (mips_find_abi_section): New function.
5692 (mips_gdbarch_init): Call it.
5694 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5696 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5697 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5698 after Andrew's 2002-06-08 gdbarch change.
5700 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5702 * i386-linux-nat.c (suppy_gregset): Don't supply
5703 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5705 (fill_gregset): Don't fetch it under the same circumstances.
5707 2002-06-09 Andrew Cagney <cagney@redhat.com>
5709 * Makefile.in (callback_h): Define.
5710 (remote_sim_h): Update path to remote-sim.h.
5711 (remote-rdp.o): Add $(callback_h).
5712 (remote-sim.o): Use $(callback_h).
5713 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5714 * remote-rdp.c: Include "gdb/callback.h".
5716 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5718 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5719 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5721 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5723 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5724 * rdi-share/serpardr.c: Ditto.
5725 * rdi-share/unixcomm.c: Ditto.
5726 * rdi-share/serdrv.c: Ditto.
5727 * rdi-share/hostchan.h: Ditto.
5728 * rdi-share/hostchan.c: Ditto.
5729 * rdi-share/host.h: Ditto.
5730 * rdi-share/devsw.c: Ditto.
5732 * objfiles.h: Change type of obj_private to void pointer.
5733 * pa64solib.c: Update copyright. Don't include "assert.h", use
5734 strcmp instead of STREQ, use LONGEST, do not use PTR
5735 * somsolib.c: Ditto.
5737 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5738 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5739 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5741 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5743 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5744 (default_get_saved_register): Delete function.
5745 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5746 generic_unwind_get_saved_register.
5747 * gdbarch.h, gdbarch.c: Re-generate.
5749 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5751 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5752 generic_func_frame_chain_valid.
5753 * gdbarch.h, gdbarch.c: Re-generate.
5754 * blockframe.c (generic_func_frame_chain_valid): Only check
5755 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5756 passing FP to PC_IN_CALL_DUMMY.
5759 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5761 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5762 (register_gdbarch_data): Initialize init_p.
5763 (gdbarch_data): Initialize data pointer using the init function.
5764 (init_gdbarch_data): Delete function.
5765 (gdbarch_update_p): Update.
5766 (initialize_non_multiarch): Update.
5767 (struct gdbarch): Add field initialized_p.
5768 * gdbarch.h, gdbarch.c: Re-generate.
5770 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5772 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5773 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5774 better do the things actually here.
5775 * x86-64-tdep.c (x86_64_register_name2nr): New.
5776 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5777 (x86_64_gdbarch_init): Respect the above change.
5778 * x86-64-tdep.h (x86_64_register_name2nr)
5779 (x86_64_register_nr2name): Add prototypes.
5780 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5782 2002-06-06 Michael Snyder <msnyder@redhat.com>
5784 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5785 Delete extra braces and re-indent.
5786 (d10v_store_return_value): Char return values
5787 must be shifted over by one byte in R0.
5788 (d10v_extract_return_value): Delete extra braces, re-indent.
5790 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5792 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5793 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5794 (d10v_integer_to_address): Rewrite.
5795 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5796 the d10v specific functions which take care of converting to the
5799 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5801 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5802 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5804 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5806 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5808 * config/tm-linux.h: Ditto.
5809 * config/alpha/tm-alphalinux.h: Ditto.
5810 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5811 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5812 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5813 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5814 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5815 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5816 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5817 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5818 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5819 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5820 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5821 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5822 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5823 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5824 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5825 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5826 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5827 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5828 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5829 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5830 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5831 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5832 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5833 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5834 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5835 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5836 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5837 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5838 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5839 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5840 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5841 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5842 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5843 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5844 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5845 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5846 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5848 2002-05-04 Aidan Skinner <aidan@velvet.net>
5850 * ada-exp.tab.c: New file
5851 * ada-exp.y: New file
5852 * ada-lang.c: New file
5853 * ada-lang.h: New file
5854 * ada-lex.c: New file
5855 * ada-lex.l: New file
5856 * ada-tasks.c: New file
5857 * ada-typeprint.c: New file
5858 * ada-valprint.c: New file
5860 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5862 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5863 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5865 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5867 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5868 insetead of ppc-linux-tdep.o.
5869 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5870 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5872 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5874 2002-05-07 Christian Groessler <chris@groessler.org>
5875 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5876 bit register contents for little endian hosts.
5878 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5880 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5883 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5885 * gdbarch.h: Regenerate.
5887 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5889 * MAINTAINERS: Add everyone to write-after-approval list.
5891 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5893 * stack.c (frame_info): Use frame_register_unwind instead of
5894 saved_regs. Mention when the SP is on the stack or in a register.
5896 * frame.h (frame_register_unwind_ftype): Define. Document.
5897 (struct frame_info): Add field register_unwind and
5898 register_unwind_cache.
5899 (frame_register_unwind): Declare.
5900 (generic_unwind_get_saved_register): Declare.
5902 * frame.c (frame_register_unwind): New function.
5903 (generic_unwind_get_saved_register): New function.
5905 * blockframe.c (generic_call_dummy_register_unwind): New function.
5906 (frame_saved_regs_register_unwind): New function.
5907 (set_unwind_by_pc): New function.
5908 (create_new_frame): New function.
5909 (get_prev_frame): New function.
5911 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5913 * a29k-share/: Delete directory.
5914 * remote-vx29k.c: Delete file.
5916 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5918 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5919 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5921 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5923 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5924 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5927 (sparcnbsd-tdep.o): New dependency lists.
5928 * NEWS: Note new UltraSPARC NetBSD native configuration.
5929 * configure.host (sparc64-*-netbsd*): New host.
5930 * configure.tgt (sparc-*-netbsdelf*)
5931 (sparc-*-netbsd*): Set gdb_target to nbsd.
5932 (sparc64-*-netbsd*): New target.
5933 * sparc64nbsd-nat.c: New file.
5934 * sparcnbsd-nat.c: New file.
5935 * sparcnbsd-tdep.c: New file.
5936 * sparcnbsd-tdep.h: New file.
5937 * config/sparc/nbsd.mt: New file.
5938 * config/sparc/nbsd64.mh: New file.
5939 * config/sparc/nbsd64.mt: New file.
5940 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5941 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5943 * config/sparc/nbsdaout.mt: Remove.
5944 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5945 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5947 * config/sparc/nbsdelf.mt: Remove.
5948 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5949 sparc-nat.c compatiblity defines.
5950 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5951 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5952 * config/sparc/tm-nbsd64.h: New file.
5953 * config/sparc/tm-nbsdaout.h: Remove.
5954 * config/sparc/xm-nbsd.h: Remove.
5956 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5958 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5959 * sparc-tdep.c: Include osabi.h.
5960 (gdbarch_tdep): Add osabi member.
5961 (_initialize_sparc_tdep): Use gdbarch_register.
5962 (sparc_gdbarch_init): Use generic OS ABI framework.
5963 (sparc_dump_tdep): New function.
5965 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5967 * corefile.c (do_captured_read_memory_integer): Return non-zero
5969 (safe_read_memory_integer): Copy result of memory read when
5970 status is non-zero. Also, add comments.
5972 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5974 * Makefile.in (ppc_tdep_h): Define.
5977 (rs6000-tdep.o): Use $(ppc_tdep_h).
5980 (ppcnbsd-tdep.o): New dependency lists.
5981 * ppc-tdep.h: Use generic OS ABI framework.
5982 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5983 (ppc_linux_init_abi): New functions.
5984 (ppc_sysv_abi_broken_use_struct_convention)
5985 (ppc_sysv_abi_use_struct_convention)
5986 (ppc_sysv_abi_push_arguments): Move to...
5987 * ppc-sysv-tdep.c: ...here.
5988 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5989 * rs6000-tdep.c (process_note_abi_tag_sections)
5990 (get_elfosabi): Remove.
5991 (rs6000_gdbarch_init): Use generic OS ABI framework.
5992 (rs6000_dump_tdep): New function.
5993 (_initialize_rs6000_tdep): Use gdbarch_register.
5994 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5995 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5996 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5997 of ppc-linux-tdep.o.
5998 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5999 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6000 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6001 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6002 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6003 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6005 2002-05-29 Jim Blandy <jimb@redhat.com>
6007 * macroscope.c (default_macro_scope): Put `void' in empty argument
6010 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6012 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6013 * arch-utils.c: Include "sim-regno.h".
6014 * gdbarch.sh: Don't include "sim-regno.h".
6015 * gdbarch.h, gdbarch.c: Regenerate.
6016 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6018 * arch-utils.h (legacy_register_sim_regno): To here.
6019 * remote-sim.c (legacy_register_sim_regno): Move function from
6021 * arch-utils.c (legacy_register_sim_regno): To here.
6023 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6025 * sim-regno.h: New file.
6026 * Makefile.in (sim_regno_h): Define.
6027 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6028 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6029 (legacy_register_sim_regno): New function.
6030 (one2one_register_sim_regno): New function.
6031 (gdbsim_fetch_register): Rewrite.
6032 (gdbsim_store_register): Only store a register when
6033 REGISTER_SIM_REGNO is valid.
6034 * d10v-tdep.c: Include "sim-regno.h".
6035 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6036 (d10v_ts3_register_sim_regno): Ditto.
6037 * gdbarch.sh: Include "sim-regno.h".
6038 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6039 * gdbarch.h, gdbarch.c: Regenerate.
6040 * arch-utils.h (default_register_sim_regno): Delete declaration.
6041 * arch-utils.c (default_register_sim_regno): Delete function.
6043 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6045 * ppcnbsd-nat.c: Rewrite.
6046 * ppcnbsd-tdep.c: New file.
6047 * ppcnbsd-tdep.h: New file.
6048 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6049 solib.o, and solib-svr4.o.
6050 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6051 nbsd-tdep.o, and corelow.o.
6053 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6055 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6056 `tr' and `sed'. Mention that `broken' targets are not expected to
6059 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6061 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6062 Let PC point right after the prologue before looking up symbols.
6064 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6066 * i386-tdep.c (i386_register_virtual_type): Return
6067 builtin_type_vec128i for SSE registers.
6069 * gdbtypes.h (builtin_type_vec128i): Declare.
6071 * gdbtypes.c (build_builtin_type_vec128i): New function.
6072 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6073 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6074 (build_gdbtypes): Initialize new builtin vector types.
6075 (_initialize_gdbtypes): Register new vector types with gdbarch.
6077 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6079 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6080 since it has been multi-arch'd.
6081 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6082 Move Alpha and VAX multi-arch news entries to same section
6083 as other multi-arch news.
6085 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6087 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6088 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6089 static. Rename some register numbers to put them in ns32k-tdep
6091 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6092 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6094 (_initialize_ns32k_tdep): Use gdbarch_register.
6095 * ns32k-tdep.h: New file.
6096 * ns32knbsd-tdep.c: New file.
6097 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6098 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6099 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6100 REGISTER_BYTES, REGISTER_BYTE): Remove.
6101 * config/ns32k/tm-ns32k.h: New file.
6102 * config/ns32k/tm-umax.h: Remove.
6104 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6106 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6107 ns32k_store_struct_return, ns32k_extract_return_value,
6108 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6110 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6111 ns32k_saved_pc_after_call.
6112 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6113 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6114 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6115 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6116 ns32k_extract_struct_value_address.
6118 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6120 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6121 ns32k_fix_call_dummy): New.
6122 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6123 ns32k_call_dummy_words.
6124 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6125 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6126 CALL_DUMMY_NARGS): Remove.
6127 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6129 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6131 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6132 ns32k_frame_saved_pc, ns32k_frame_args_address,
6133 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6134 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6135 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6136 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6137 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6138 (BREAKPOINT): Remove..
6139 (FRAME_CHAIN): Define as ns32k_frame_chain.
6140 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6141 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6142 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6143 (FRAME_FIND_SAVED_REGS): Remove.
6144 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6145 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6146 (POP_FRAME): Define as ns32k_pop_frame.
6148 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6150 * ns32k-tdep.c (ns32k_register_byte_32082,
6151 ns32k_register_byte_32382, ns32k_register_raw_size,
6152 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6154 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6155 ns32k_register_byte_32382.
6156 * config/ns32k/tm-umax.h: Update copyright years.
6157 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6158 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6159 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6160 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6161 (ns32k_get_enter_addr): Fix prototype.
6163 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6165 * ns32k-tdep.c: Update copyright years.
6166 (ns32k_register_name_32082): New function.
6167 (ns32k_register_name_32382): Ditto.
6168 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6169 (REGISTER_NAME): Define as ns32k_register_name_32382.
6170 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6171 (REGISTER_NAME): Define as ns32k_register_name_32082.
6173 2002-05-24 Jim Blandy <jimb@redhat.com>
6175 * dwarf2read.c (free_line_header): Use xfree, not free.
6177 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6179 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6180 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6182 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6184 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6186 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6188 From Ross Alexander at NEC Europe:
6189 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6191 2002-05-23 Michael Snyder <msnyder@redhat.com>
6193 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6194 for input, rather than parse_and_eval_address.
6196 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6198 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6199 * Makefile.in (sim_d10v_h): Update definition.
6201 2002-05-24 Andrew Cagney <cagney@redhat.com>
6203 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6204 change `2002-05-22 Michael Snyder' below.
6205 (d10v_push_arguments): Ditto.
6206 (d10v_extract_return_value): Ditto.
6208 2002-05-23 Jim Blandy <jimb@redhat.com>
6210 * macrotab.c (check_for_redefinition): Don't complain if the new
6211 definition is the same as the previous one. Take more arguments
6212 to allow the comparison.
6213 (macro_define_object, macro_define_function): Pass more arguments
6214 to check_for_redefinition.
6216 2002-05-22 Michael Snyder <msnyder@redhat.com>
6218 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6219 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6220 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6221 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6222 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6223 Add a temp variable to save a call (and a memory read).
6224 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6225 if possible (so that PC_IN_CALL_DUMMY will work).
6227 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6229 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6231 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6233 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6235 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6236 (dwarf2_build_frame_info): Add offset to fde->initial_location
6237 so that frames of shared libraries are mapped correctly.
6238 (execute_stack_op): Change type of 'result' from ULONGEST to
6241 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6243 * config/alpha/tm-nbsd.h: Include solib.h.
6245 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6247 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6248 assumptions about the host's byte order.
6250 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6252 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6254 * alphanbsd-tdep.c: Include solib-svr4.h.
6255 * shnbsd-tdep.c: Ditto.
6257 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6259 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6260 nbsd-tdep.h to dependency list.
6261 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6262 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6263 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6264 nbsdaout.mh and nbsdelf.mh consistently.
6265 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6266 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6267 nbsdaout.mt and nbsdelf.mh consistently.
6268 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6269 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6270 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6271 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6272 a.out shared library stuff from here...
6273 * config/nm-nbsdaout.h: ...to here.
6274 * config/tm-nbsd.h: Remove.
6275 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6276 * config/arm/nbsd.mh: Remove.
6277 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6279 * config/arm/nbsdaout.mh: New file.
6280 * config/arm/nbsdelf.mh: New file.
6281 * config/arm/nm-nbsdaout.h: New file.
6282 * config/i386/nbsd.mh: Remove.
6283 * config/i386/nbsd.mt: Remove.
6284 * config/i386/nbsdaout.mh: New file.
6285 * config/i386/nbsdaout.mt: New file.
6286 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6287 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6288 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6289 i386_register_u_addr): Remove.
6290 * config/i386/nm-nbsdaout.h: New file.
6291 * config/i386/nm-nbsdelf.h: Remove.
6292 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6293 (USE_STRUCT_CONVENTION): Remove.
6294 * config/i386/tm-nbsdaout.h: New file.
6295 * config/i386/tm-nbsdelf.h: Remove.
6296 * config/m68k/nbsd.mh: Remove.
6297 * config/m68k/nbsd.mt: Remove.
6298 * config/m68k/nbsdaout.mh: New file.
6299 * config/m68k/nbsdaout.mt: New file.
6300 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6301 * config/m68k/nm-nbsdaout.h: New file.
6302 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6303 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6304 * config/ns32k/nbsd.mh: Remove.
6305 * config/ns32k/nbsd.mt: Remove.
6306 * config/ns32k/nbsdaout.mh: New file.
6307 * config/ns32k/nbsdaout.mt: New file.
6308 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6309 * config/ns32k/nm-nbsdaout.h: New file.
6310 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6311 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6312 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6313 (SVR4_SHARED_LIBS): Remove.
6314 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6315 * config/sparc/nbsd.mh: Remove.
6316 * config/sparc/nbsd.mt: Remove.
6317 * config/sparc/nbsdaout.mh: New file.
6318 * config/sparc/nbsdaout.mt: New file.
6319 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6320 * config/sparc/nbsdelf.mt: New file.
6321 * config/sparc/nm-nbsdaout.h: New file.
6322 * config/sparc/nm-nbsdelf.h: Remove.
6323 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6324 * config/sparc/tm-nbsdaout.h: New file.
6326 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6328 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6330 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6332 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6334 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6336 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6338 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6340 * NEWS: Note new MIPS NetBSD native configuration.
6341 * configure.host (mips*-*-netbsd*): New host.
6342 * configure.tgt (mips*-*-netbsd*): New target.
6343 * mipsnbsd-nat.c: New file.
6344 * mipsnbsd-tdep.c: New file.
6345 * mipsnbsd-tdep.h: New file.
6346 * config/mips/nbsd.mh: New file.
6347 * config/mips/nbsd.mt: New file.
6348 * config/mips/nm-nbsd.h: New file.
6349 * config/mips/tm-nbsd.h: New file.
6351 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6353 * Makefile.in (SFILES): Add osabi.c.
6354 (COMMON_OBS): Add osabi.o.
6355 (osabi.o): New dependency list.
6356 * osabi.c: New file.
6357 * osabi.h: New file.
6358 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6360 * Makefile.in (alpha_tdep_h): Define and use instead of
6362 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6363 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6365 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6366 * alpha-tdep.h: Include osabi.h.
6367 (alpha_abi): Remove.
6368 (gdbarch_tdep): Use generic OS ABI framework.
6369 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6370 gdbarch_register_osabi.
6371 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6372 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6373 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6375 * Makefile.in (sh_tdep_h): Add osabi.h.
6376 * sh-tdep.h (sh_osabi): Remove.
6377 (gdbarch_tdep): Use generic OS ABI framework.
6378 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6379 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6380 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6381 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6383 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6384 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6385 gdbarch_register_osabi.
6386 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6387 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6388 (get_elfosabi): Rename to...
6389 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6390 ABI framework support routines.
6391 (arm_gdbarch_init): Use generic OS ABI framework.
6392 (arm_dump_tdep): Likewise.
6393 (_initialize_arm_tdep): Likewise.
6394 * arm-tdep.h: Include osabi.h.
6396 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6398 (arm_gdbarch_register_os_abi): Remove prototype.
6399 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6400 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6402 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6403 * mips-tdep.c: Include osabi.h.
6404 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6407 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6409 * h8300-tdep.c: Fix formatting.
6411 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6413 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6414 printing vector registers.
6416 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6418 From Fernando Nasser:
6419 * remote.c (remote_async_open_1): Re-throw the exception when the
6421 (remote_cisco_open): Ditto.
6422 (remote_open_1): Ditto.
6424 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6426 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6427 (remote_start_remote): Add uiout parameter. Pass through to
6428 remote_start_remote_dummy.
6429 (remote_open_1): Use catch_exception instead of catch_errors.
6430 (remote_async_open_1): Ditto.
6431 (remote_cisco_open): Ditto.
6433 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6435 * remote.c (remote_start_remote): Replace PTR with void pointer.
6436 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6439 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6441 * gdb_indent.sh: Allow the script to be run in the sim directory.
6443 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6445 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6446 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6448 * corelow.c (core_open): Only call set_gdbarch_from_file if
6451 2002-05-17 Andrey Volkov <avolkov@transas.com>
6453 * h8300-tdep.c: Add support of EXR register
6454 * config/h8300/tm-h8300.h: Ditto.
6456 2002-05-17 Andrey Volkov <avolkov@transas.com>
6458 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6460 2002-05-17 Andrey Volkov <avolkov@transas.com>
6462 * h8300-tdep.c: Change literal regnums to REGNO.
6464 2002-05-17 Jim Blandy <jimb@redhat.com>
6466 * NEWS: Note addition of macro support.
6468 Expand preprocessor macros in C expressions.
6469 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6470 (scan_macro_expansion, scanning_macro_expansion,
6471 finished_macro_expansion): New function declarations.
6472 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6473 variable declarations.
6474 * parser-defs.h (expression_context_pc): New declaration.
6475 * parse.c (expression_context_pc): New variable.
6476 (parse_exp_1): Set expression_context_pc, as well as
6477 expression_context_block.
6478 * c-exp.y (yylex): If we're not already reading the result of a
6479 macro expansion, try to macro-expand the next token. When we're
6480 done scanning a macro expansion, switch back to the mainline text.
6481 Commas and `if's in a macro's expansion don't terminate the input.
6482 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6483 (macro_original_text, macro_expanded_text,
6484 expression_macro_lookup_func, expression_macro_lookup_baton): New
6486 (scan_macro_expansion, scanning_macro_expansion,
6487 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6488 c_preprocess_and_parse): New functions.
6489 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6490 c_preprocess_and_parse, instead of c_parse.
6491 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6492 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6494 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6496 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6497 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6498 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6500 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6502 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6504 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6506 * Makefile.in (sh_tdep_h): Define and use.
6507 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6508 register enum): Move to...
6509 * * sh-tdep.h: ...here.
6510 * sh-tdep.c: Include sh-tdep.h.
6511 * sh3-rom.c: Likewise.
6512 * shnbsd-tdep.c: Likewise.
6514 2002-05-16 Michael Snyder <msnyder@redhat.com>
6516 * arm-tdep.c: Spelling fix in comment.
6518 2002-05-16 Jim Blandy <jimb@redhat.com>
6520 Add commands for manually expanding macros and showing their
6522 * macrocmd.c, macroscope.c, macroscope.h: New files.
6523 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6524 (macroscope_h): New variable.
6525 (HFILES_NO_SRCDIR): Add macroscope.h.
6526 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6527 (macroscope.o, macrocmd.o): New rules.
6529 Teach the Dwarf 2 reader to read macro information.
6530 * dwarf2read.c: #include "macrotab.h".
6531 (dwarf_macinfo_buffer): New variable.
6532 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6534 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6535 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6536 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6537 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6538 dwarf2_macro_spaces_in_definition): New complaints.
6539 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6540 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6541 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6542 the partial symbol table.
6543 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6544 from what's recorded in the partial symbol table.
6545 (read_file_scope): If the compilation unit has a
6546 `DW_AT_macro_info' attribute, read its macro information.
6547 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6549 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6552 * ser-tcp.c: Don't include <netinet/udp.h>.
6554 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6556 * MAINTAINERS: Update my email address.
6558 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6560 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6561 include file of the same name.
6563 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6565 * configure.tgt: Mark v850 as multi-arched.
6566 * config/v850/tm-v850.h: Remove file.
6567 * config/v850/v850.mt: Eliminate TM_FILE.
6569 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6571 * v850-tdep.c: Full multi-arch.
6572 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6573 Define GDB_MULTI_ARCH to 2.
6575 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6577 * p-exp.y (current_type): New static variable.
6578 Carries the type of the expression at the position that is parsed.
6579 (push_current_type, pop_current_type): Two new functions. Used
6580 to store/restore current_type in expression on specific tokens.
6581 (search_field): New static variable. Set to one after parsing a point
6582 as at that point only a FIELDNAME token should be searched.
6583 (FIELDNAME): New token. After a point only a token belonging to
6584 current_type type definition is allowed.
6585 (all over token rules): reset and change current_type according
6587 (exp '[' rule): insert implicit array index field if
6588 exp is a pascal string type.
6590 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6592 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6593 frame info. Use frame_info's saved_regs instead of matching member
6594 in extra_frame_info throughout.
6595 (v850_frame_init_saved_regs): New function.
6596 (v850_init_extra_frame_info): Move most functionality into
6597 v850_frame_init_saved_regs().
6598 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6599 (v850_frame_find_saved_regs): Remove declaration.
6600 (FRAME_FIND_SAVED_REGS): Remove definition.
6601 (v850_frame_init_saved_regs): Add declaration.
6602 (FRAME_INIT_SAVED_REGS): Add definition.
6604 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6606 * v850-tdep.c: Begin multi-arch'ing v850.
6607 (v850_target_architecture_hook): Remove function.
6608 (v850_gdbarch_init): New function. Add code previously in
6609 v850_target_architecture_hook().
6610 (_initialize_v850_tdep): Don't set target_architecture_hook.
6611 Call register_gdbarch_init() instead.
6613 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6615 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6616 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6617 (fixup_class_method_type): Likewise.
6619 2002-05-15 Jim Blandy <jimb@redhat.com>
6621 Add macro structures to GDB's symbol tables. Nobody puts anything
6623 * symtab.h (struct symtab): New member: `macro_table'.
6624 * buildsym.h (pending_macros): New global variable.
6625 * buildsym.c: #include "macrotab.h".
6626 (buildsym_init): Initialize `pending_macros'.
6627 (end_symtab): If we found macro information while reading a CU's
6628 debugging info, do build a symtab structure for it. Make the
6629 symtab point to the macro information, and clear the
6630 `pending_macros' pointer which held it while we were reading the
6632 (really_free_pendings): Free any pending macro table.
6633 * objfiles.h (struct objfile): New member: `macro_cache'.
6634 * objfiles.c (allocate_objfile): Set allocate and free functions
6635 for the macro cache's objstack.
6636 (free_objfile): Empty the macro cache's obstack.
6637 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6638 set new allocate and free functions for it.
6639 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6640 free functions for the macro cache's objstack. (Why is this
6641 function building its own objfile?)
6642 * symmisc.c (print_objfile_statistics): Print statistics on the
6644 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6646 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6648 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6649 (REGISTER_U_ADDR): Delete definition.
6650 (arm_register_u_addr): Delete declaration.
6652 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6654 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6655 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6657 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6659 * regcache.c (register_valid): Revise comments refering to "Not
6660 available" and "unavailable".
6661 * frame.c (frame_register_read): Ditto.
6662 * findvar.c (value_of_register): Ditto.
6664 2002-05-15 Andrew Cagney <cagney@redhat.com>
6666 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6667 (remote-sim.o): Update dependencies.
6668 (d10v-tdep.o): Specify dependencies.
6669 (sim_d10v_h): Define.
6671 2002-05-14 Jim Blandy <jimb@redhat.com>
6673 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6674 * macrotab.c (macro_lookup_inclusion, find_definition,
6675 new_macro_table): Same.
6677 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6678 not `! strcmp ()'. This is a dubious improvement.
6679 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6681 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6682 although it's not necessary, to avoid a warning.
6684 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6686 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6687 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6688 TYPE_INSTANCE_FLAGS.
6689 (struct main_type): New.
6690 (struct type): Move most members to struct main_type. Change
6691 cv_type and as_type to new type_chain member. Add instance_flags.
6692 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6693 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6694 (finish_cv_type): Remove prototype.
6695 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6697 (alloc_type_instance): New function.
6698 (smash_type): New function.
6699 (make_pointer_type, make_reference_type, make_function_type)
6700 (smash_to_member_type, smash_to_method_type): Call smash_type.
6701 (make_qualified_type): New function.
6702 (make_type_with_address_space): Call make_qualified_type.
6703 (make_cv_type): Likewise.
6704 (finish_cv_type): Remove unnecessary function.
6705 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6706 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6707 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6708 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6709 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6710 * hpread.c (hpread_read_struct_type): Likewise.
6711 * stabsread.c (read_struct_type): Likewise.
6713 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6715 * configure.tgt: Add a catch all sh* target, for cases like
6716 sh[2,3,4]-elf and sh-hms.
6718 2002-05-14 Keith Seitz <keiths@redhat.com>
6720 * event-loop.c (create_file_handler): Don't do anything but
6721 update data when we are given a fd which we are already
6724 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6726 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6727 (update_context): Use __func__ in warnings.
6729 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6731 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6732 and tcp_close to net_open and net_close.
6733 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6734 using UDP if requested. Don't try to disable Nagle on UDP
6736 * remote.c (remote_serial_open): New function. Warn about UDP.
6737 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6739 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6741 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6743 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6745 * configure.tgt: Remove sh-hms target.
6746 * MAINTAINERS: Don't list sh-hms as a separate target.
6748 2002-05-13 Jim Blandy <jimb@redhat.com>
6750 Add first preprocessor macro-expansion files.
6751 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6752 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6753 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6754 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6755 (COMMON_OBS): Add macrotab.o, macroexp.o.
6756 (macroexp.o, macrotab.o): New rules.
6758 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6760 * config/m88k/tm-m88k.h: Update copyright.
6761 (m88k_target_write_pc): Declare
6762 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6763 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6764 (SHIFT_INST_REGS): Update definition.
6765 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6766 using old definition of TARGET_WRITE_PC.
6767 * regcache.c (generic_target_write_pc): Delete code handling
6769 * gdbarch.sh (NNPC_REGNUM): Delete.
6770 * gdbarch.h, gdbarch.c: Regenerate.
6772 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6774 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6777 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6779 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6780 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6781 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6783 * c-typeprint.c (cp_type_print_method_args): Likewise.
6784 (c_type_print_args): Likewise.
6785 * d10v-tdep.c (d10v_push_arguments): Likewise.
6786 (d10v_extract_return_value): Likewise.
6787 * expprint.c (print_subexp): Likewise.
6788 * gdbtypes.c (lookup_primitive_typename): Likewise.
6789 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6790 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6791 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6792 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6793 (TYPE_VECTOR): Likewise.
6794 * hpread.c (hpread_read_struct_type)
6795 (fix_static_member_physnames, fixup_class_method_type)
6796 (hpread_type_lookup): Likewise.
6797 * mdebugread.c (parse_symbol, parse_type): Likewise.
6798 * p-lang.c (is_pascal_string_type): Likewise.
6799 * valops.c (hand_function_call): Likewise.
6800 * x86-64-tdep.c (classify_argument): Likewise.
6802 * hpread.c (hpread_read_function_type)
6803 (hpread_read_doc_function_type): Call replace_type.
6804 * dstread.c (create_new_type): Delete.
6805 (decode_dst_structure, process_dst_function): Call alloc_type.
6806 Use type access macros.
6808 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6810 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6811 the're not supported by the current architecture.
6812 (i387_fill_fxsave): Likewise.
6814 2002-05-12 Fred Fish <fnf@redhat.com>
6816 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6817 sect_index_xxx members to index the first slot in section_offsets
6818 if all of the section_offsets are zero.
6820 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6822 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6823 checked in with last change.
6825 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6827 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6828 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6831 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6833 * Makefile.in: Update dependencies.
6835 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6837 * language.c (local_hex_string_custom): Simplify. Do not depend
6838 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6840 * memattr.c (mem_info_command): Replace calls to
6841 longest_local_hex_string and longest_local_hex_string_custom.
6842 * buildsym.c (make_blockvector): Ditto.
6843 * solib.c (info_sharedlibrary_command): Ditto.
6844 * tracepoint.c (tracepoints_info): Ditto.
6845 * symtab.c (print_msymbol_info): Ditto.
6847 * language.c (local_hex_string): Delete.
6848 (local_hex_string_custom): Delete.
6849 (longest_local_hex_string): Rename to local_hex_string.
6850 (longest_local_hex_string_custom): Rename to
6851 local_hex_string_custom.
6852 * language.h (local_hex_string): Change parameter type to LONGEST.
6853 (local_hex_string_custom): Ditto.
6854 (longest_local_hex_string): Delete declaration.
6855 (longest_local_hex_string_custom): Ditto.
6857 * solib.c: Update copyright.
6858 * memattr.c: Update copyright.
6860 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6862 * arch-utils.h (legacy_register_to_value): Declare.
6863 (legacy_value_to_register): Declare.
6864 (legacy_convert_register_p): Declare.
6865 * arch-utils.c (legacy_register_to_value): New function.
6866 (legacy_value_to_register): New function.
6867 (legacy_convert_register_p): New function.
6869 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6870 (VALUE_TO_REGISTER): Define.
6871 (CONVERT_REGISTER_P): Define.
6872 * gdbarch.h, gdbarch.c: Regenerate.
6874 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6876 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6879 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6880 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6882 * Makefile.in: Update dependencies for valops.c.
6883 * valops.c: Include "gdb_assert.h".
6884 (typecmp): Skip THIS parameter to methods.
6885 (find_method_list): Remove static_memfuncp argument,
6886 update callers. Check for stub methods.
6887 (find_value_oload_method_list): Don't set *static_memfuncp.
6888 (find_overload_match): Don't check for stub methods. Assert
6889 that methods are not stubbed. Handle static methods.
6890 (value_find_oload_method_list): Remove static_memfuncp argument.
6891 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6892 to the argument list for static stub methods.
6893 * value.h (value_find_oload_method_list): Update prototype.
6895 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6897 * arch-utils.h (generic_register_size): Declare.
6898 (generic_register_raw_size, generic_register_virtual_size): Delete
6900 * arch-utils.c (generic_register_raw_size): Delete.
6901 (generic_register_size): New function.
6902 (generic_register_virtual_size): Delete.
6904 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6905 default generic_register_size.
6906 * gdbarch.h, gdbarch.c: Re-generate.
6908 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6909 register_virtual_size.
6910 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6911 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6913 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6915 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6916 * gdbarch.h, gdbarch.c: Regenerate.
6917 * gnu-v3-abi.c: Update copyright.
6918 (vtable_address_point_offset): Update.
6919 (gnuv3_rtti_type): Update.
6920 (gnuv3_baseclass_offset): Update.
6921 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6922 (init_fetch_link_map_offsets): Update.
6923 * remote.c (get_remote_state): Update.
6925 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6927 * TODO: Remove value_headof/value_from_vtable_info comment.
6928 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6929 * values.c (value_headof, value_from_vtable_info): Delete.
6930 * value.h (value_from_vtable_info): Delete prototype.
6932 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6934 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6935 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6937 (gdb_assert_h): Define.
6938 (gdb_wait_h): Define.
6939 (gdb_regex_h): Define.
6941 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6943 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6944 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6946 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6948 * nbsd-tdep.c: Fix comment.
6950 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6952 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6953 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6954 (nbsd-tdep.o): New dependency list.
6955 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6957 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6958 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6959 * nbsd-tdep.c: New file.
6960 * nbsd-tdep.h: New file.
6961 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6963 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6964 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6965 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6966 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6968 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6970 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6971 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6972 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6973 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6974 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6975 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6977 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6979 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6980 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6981 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6982 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6983 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6984 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6985 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6987 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6989 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6990 fetch_elfcore_registers to...
6991 * i386nbsd-tdep.c: ...here.
6992 (i386nbsd_use_struct_convention): Rename to...
6993 (i386nbsd_aout_use_struct_convention): ...this.
6994 (i386nbsd_supply_reg): New function.
6995 (i386nbsd_fill_reg): New function.
6996 (fetch_core_registers): Use i386nbsd_supply_reg.
6997 (fetch_elfcore_registers): Likewise.
6998 (_initialize_i386nbsd_tdep): New function.
6999 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7000 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7001 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7002 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7003 (i386nbsd_aout_use_struct_convention): ...this.
7005 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7007 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7008 (store_inferior_registers): Use shnbsd_fill_reg.
7009 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7010 sh_nbsd_supply_register): Collapse into...
7011 (shnbsd_supply_reg): ...this.
7012 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7013 (shnbsd_fill_reg): ...this.
7014 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7015 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7016 (fetch_core_registers): Use shnbsd_supply_reg.
7017 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7018 (sh_nbsd_core_fns): Rename to...
7019 (shnbsd_core_fns): ...this.
7020 (sh_nbsd_elfcore_fns): Rename to...
7021 (shnbsd_elfcore_fns): ...this.
7022 (sh_nbsd_init_abi): Rename to...
7023 (shnbsd_init_abi): ...this.
7024 (_initialize_sh_nbsd_tdep): Rename to...
7025 (_initialize_shnbsd_tdep): ...this.
7026 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7027 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7028 sh_nbsd_fill_register): Remove prototypes.
7029 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7031 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7033 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7034 (i387-nat.o): Delete dependency list.
7035 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7036 (x86-64-linux-nat.o): Likewise.
7037 * i387-nat.c: Delete file, moving contents to...
7038 * i387-tdep.c: ...here.
7039 * i387-nat.h: Rename...
7040 * i387-tdep.h: ...to this.
7041 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7042 * i386-linux-nat.c: Likewise.
7043 * i386bsd-nat.c: Likewise.
7044 * i386gnu-nat.c: Likewise.
7045 * i386nbsd-nat.c: Likewise.
7046 * i386v4-nat.c: Likewise.
7047 * x86-64-linux-nat.c: Likewise.
7048 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7049 * config/i386/go32.mh (NATDEPFILES): Likewise.
7050 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7051 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7052 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7053 * config/i386/linux.mh (NATDEPFILES): Likewise.
7054 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7055 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7056 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7057 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7059 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7061 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7062 (alphanbsd-nat.o): Remove dependency list.
7063 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7064 * alphanbsd-nat.c: Delete. Contents moved to...
7065 * alphanbsd-tdep.c: ...here.
7066 (_initialize_alphanbsd_tdep): Register core functions.
7067 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7069 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7071 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7072 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7073 (alphanbsd-nat.o): Likewise.
7074 (alphabsd-tdep.o): New dependency list.
7075 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7076 (fill_gregset): Use alphabsd_fill_reg.
7077 (supply_fpregset): Use alphabsd_supply_fpreg.
7078 (fill_fpregset): Use alphabsd_fill_fpreg.
7079 (fetch_inferior_registers): Use struct reg and struct fpreg
7080 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7081 and alphabsd_supply_fpreg.
7082 (store_inferior_registers): Use struct reg and struct fpreg
7083 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7084 and alphabsd_fill_fpreg.
7085 * alphabsd-tdep.c: New file.
7086 * alphabsd-tdep.h: New file.
7087 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7088 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7089 alphabsd_supply_fpreg.
7090 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7091 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7093 2002-05-11 Eric Christopher <echristo@redhat.com>
7095 * mips-tdep.c (mips_double_register_type): Fix thinko.
7096 (mips_single_register_type): Ditto.
7097 * MAINTAINERS: Add self.
7099 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7101 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7102 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7103 right thing on architectures with different endianness and/or
7106 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7108 From Christian Limpach <chris@Pin.LU>
7109 * configure.in: Change sed expression which comments out
7110 NATDEPFILES to also comment out continuation lines.
7111 * configure: Regenerate.
7113 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7115 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7118 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7120 * sh-tdep.c: Include correct file.
7122 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7124 New support for sh64-elf (sh5) target.
7126 * configure.tgt: For sh64-elf target, default to sh-elf.
7128 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7129 (struct gdbarch_tdep): Add new fields for new registers and ABI
7132 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7133 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7134 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7135 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7136 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7137 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7138 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7139 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7140 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7141 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7142 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7143 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7144 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7145 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7146 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7147 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7148 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7149 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7150 sign_extend, sh64_nofp_frame_init_saved_regs,
7151 sh64_init_extra_frame_info, sh64_get_saved_register,
7152 sh64_extract_struct_value_address, sh64_pop_frame,
7153 sh64_push_arguments, sh64_extract_return_value,
7154 sh64_store_return_value, sh64_show_media_regs,
7155 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7156 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7157 sh_sh64_register_virtual_type,
7158 sh_sh64_register_convert_to_virtual,
7159 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7160 sh64_register_read, sh64_pseudo_register_write,
7161 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7162 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7163 sh64_do_pseudo_register, sh_compact_do_registers_info,
7164 sh64_do_registers_info, sh_gdbarch_init): New functions.
7166 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7168 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7170 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7172 * linespec.c (decode_line_1): Check for a double quote after
7173 a filename correctly.
7175 2002-05-10 Jim Blandy <jimb@redhat.com>
7177 Properly track the size of the current objfile's .debug_line section.
7178 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7179 (DWARF_LINE_SIZE): New macro.
7180 (dwarf2_build_psymtabs_hard): Record the line section's size in
7181 the partial symbol table.
7182 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7185 2002-05-10 Petr Sorfa <petrs@caldera.com>
7187 * ia64-tdep.c: Handle breakpoints on L instruction type
7188 in MLX instruction bundle by moving the breakpoint to
7189 the third slot (X instruction type) as L holds only data.
7191 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7193 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7194 (process_one_symbol): Complain about discarding local symbols
7195 due to a misplaced N_LBRAC entry.
7197 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7199 From Daniel Berlin <dan@cgsoftware.com>
7200 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7201 decrease the depth we are at, in the case of templates.
7203 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7205 * mips-tdep.c (mips_float_register_type): New function.
7206 (mips_double_register_type): New function.
7207 (mips_print_register): Use them.
7208 (do_fp_register_row): Likewise.
7210 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7212 * signals/signals.c (signals): Remove conditional compilation around
7213 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7214 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7216 2002-05-09 Michael Snyder <msnyder@redhat.com>
7218 * remote-rdp.c (remote_rdp_can_run): Remove.
7220 2002-05-09 Tom Tromey <tromey@redhat.com>
7222 * jv-valprint.c (java_val_print): Handle `char' as a special case
7225 2002-05-09 Michael Snyder <msnyder@redhat.com>
7227 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7228 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7229 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7230 str r(0123),[sp,#nn].
7231 (arm_skip_prologue): Ditto. Also make disassembly
7232 order-independent by placing it in a loop.
7234 2002-05-06 Michael Snyder <msnyder@redhat.com>
7236 * stabsread.c (read_type): Add recognition for new attribute:
7237 "@V;" means that an array type is actually a vector.
7238 This is analogous to the vector flag that's been added to dwarf2.
7240 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7242 * i386-tdep.h (i386_abi): New enum.
7243 (struct gdbarch_tdep): Replace os_ident member with abi.
7244 (i386_gdbarch_register_os_abi): New prototype.
7245 * i386-tdep.c (i386_abi_names): New array.
7246 (process_note_abi_tag_sections): Removed.
7247 (process_note_sections): New function.
7248 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7249 (struct i386_abi_handler): New struct.
7250 (i386_abi_handler_list): New variable.
7251 (i386_gdbarch_register_os_abi): New function.
7252 (i386_gdbarch_init): Adapt for the changes given above.
7254 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7256 * gregset.h: Say "GNU/Linux".
7258 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7260 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7261 (build_gdbtypes): Build builtin_type_v2_float.
7262 (_initialize_gdbtypes): Register new builtin type.
7264 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7266 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7267 (clear_gdbarch_swap): New function.
7268 (initialize_non_multiarch): Call.
7269 (gdbarch_update_p): Before calling init(), swap out and clear the
7270 existing architecture.
7271 * gdbarch.c: Regenerate.
7273 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7275 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7278 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7280 * sh-nbsd-nat.c: Rename to...
7281 * shnbsd-nat.c: ...this.
7282 * sh-nbsd-tdep.c: Rename to...
7283 * shnbsd-tdep.c: ...this.
7284 * sh-nbsd-tdep.h: Rename to...
7285 * shnbsd-tdep.h: ...this.
7286 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7287 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7289 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7291 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7292 concatenation for command help messages.
7294 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7296 * NEWS: Note new sh*-*-netbsdelf* configuration.
7297 * configure.host: Set gdb_host_cpu to sh for all sh*.
7298 (sh*-*-netbsdelf*): New host.
7299 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7300 (sh*-*-netbsdelf*): New target.
7301 * sh-nbsd-nat.c: New file.
7302 * sh-nbsd-tdep.c: New file.
7303 * sh-nbsd-tdep.h: New file.
7304 * config/sh/nbsd.mh: New file.
7305 * config/sh/nbsd.mt: New file.
7306 * config/sh/nm-nbsd.h: New file.
7307 * config/sh/tm-nbsd.h: New file.
7309 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7311 * sh-tdep.c (sh_osabi_names): Declare.
7312 (process_note_abi_tag_sections): New function.
7313 (get_elfosabi): Ditto.
7314 (sh_gdbarch_register_os_abi): Ditto.
7315 (sh_dump_tdep): Ditto.
7316 _initialize_sh_tdep): Use gdbarch_register to register
7317 sh_gdbarch_init and sh_dump_tdep.
7318 * config/sh/tm-sh.h (sh_osabi): Declare.
7319 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7321 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7323 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7324 (thumb_scan_prologue): Ditto.
7325 (arm_find_callers_reg): Ditto.
7326 (arm_frame_chain): Ditto.
7327 (arm_init_extra_frame_info): Ditto.
7328 (arm_frame_saved_pc): Ditto.
7329 (arm_pop_frame): Ditto.
7330 (arm_push_return_address): New function.
7331 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7332 call_dummy_location, call_dummy_breakpoint_offset_p,
7333 call_dummy_breakpoint_offset, call_dummy_p,
7334 call_dummy_stack_adjust_p, call_dummy_words,
7335 sizeof_call_dummy_words, call_dummy_start_offset,
7336 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7337 call_dummy_address, push_return_address and push_dummy_frame for
7338 generic dummy frames.
7340 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7342 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7343 size computation for alloca.
7344 (sh_fp_frame_init_saved_regs): Likewise.
7346 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7348 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7349 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7350 * arm-tdep.c (arm_store_return_value): Use them.
7351 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7352 * remote-rdp.c (remote_rdp_fetch_register): Use
7353 ARM_MAX_REGISTER_RAW_SIZE.
7354 (remote_rdp_store_register): Likewise.
7356 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7358 * dwarf2cfi.c: Code cleanup, removed unused variables,
7359 added default labels to switch {} statements.
7360 * x86-64-tdep.c: Ditto.
7361 * x86-64-linux-nat.c: Ditto.
7363 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7365 * solib.h: Protect against multiple inclusion.
7367 2002-05-06 Jim Blandy <jimb@redhat.com>
7369 Add first preprocessor macro-expansion files.
7370 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7371 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7372 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7373 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7374 (COMMON_OBS): Add macrotab.o, macroexp.o.
7375 (macroexp.o, macrotab.o): New rules.
7377 Separate the job of reading the line number info statement program
7378 header (...expialidocious) out into its own function.
7379 * dwarf2read.c (struct line_head, struct filenames, struct
7380 directories): Replace with...
7381 (struct line_header): New structure, containing the full
7382 contents of the statement program header, including the
7383 include directory and file name tables.
7384 (read_file_scope): If we have line number info, instead of just
7385 calling dwarf_decode_lines to do all the work, call
7386 dwarf_decode_line_header first to get a `struct line_header'
7387 containing the data in the statement program header, and then
7388 pass that to dwarf_decode_lines, which will pick up where that
7389 left off. Be sure to clean up the `struct line_header' object.
7390 (dwarf_decode_line_header, free_line_header, add_include_dir,
7391 add_file_name): New functions.
7392 (dwarf_decode_lines): Move all the code to read the statement
7393 program header into dwarf_decode_line_header. Take the line
7394 header it built as the first argument, instead of the offset to
7395 the compilation unit's line number info. Use the new `struct
7396 line_header' type instead of the old structures. No need to do
7397 cleanups here now, since we don't allocate anything.
7398 (dwarf2_statement_list_fits_in_line_number_section,
7399 dwarf2_line_header_too_long): New complaints.
7401 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7403 * gdbtypes.c (init_vector_type): New function.
7404 (build_builtin_type_vec128): Simplify the representation of SIMD
7406 (build_gdbtypes): Initialize new builtin vector types.
7407 (_initialize_gdbtypes): Register new vector types with gdbarch.
7408 (builtin_type_v4_float, builtin_type_v4_int32,
7409 builtin_type_v8_int16, builtin_type_v16_int8,
7410 builtin_type_v2_int32, builtin_type_v4_int16,
7411 builtin_type_v8_int8): New (renamed) SIMD types.
7413 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7415 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7416 (i387_fill_fxsave): Likewise.
7418 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7420 * alpha-tdep.c (alpha_extract_return_value): Don't use
7421 non-constant array size in prototype.
7423 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7425 From Brian Taylor <briant at model dot com>:
7426 * ui-out.c (ui_out_field_core_addr): Use the function
7427 longest_local_hex_string_custom'to format addresses > 32 bits
7430 * ui-out.c (ui_out_field_core_addr): Update comment.
7432 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7434 * stack.c (select_and_print_frame): Make static. Delete the
7436 (func_command): Update call.
7437 (select_frame_command): Delete code computing the frame level.
7438 * frame.h (select_and_print_frame): Delete declaration.
7440 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7442 * sparc-tdep.c (sparc_get_saved_register): Comment why
7443 get_prev_frame call is safe.
7445 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7447 * frame.h (select_frame): Delete level parameter.
7448 * stack.c (select_frame): Update. Use frame_relative_level to
7449 obtain the frame's level.
7450 (select_and_print_frame): Update call.
7451 (select_frame_command): Ditto.
7452 (up_silently_base): Ditto.
7453 (down_silently_base): Ditto.
7454 * ocd.c (ocd_start_remote): Ditto.
7455 * remote-rdp.c (remote_rdp_open): Ditto.
7456 * remote-mips.c (mips_initialize): Ditto.
7457 (common_open): Ditto.
7458 * remote-e7000.c (e7000_start_remote): Ditto.
7459 * m3-nat.c (select_thread): Ditto.
7460 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7461 (child_get_current_exception_event): Ditto.
7462 * varobj.c (varobj_create): Ditto.
7463 (varobj_update): Ditto.
7464 (c_value_of_root): Ditto.
7465 * tracepoint.c (finish_tfind_command): Ditto.
7466 * corelow.c (core_open): Ditto.
7467 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7468 * thread.c (info_threads_command): Ditto.
7469 (switch_to_thread): Ditto.
7470 * infrun.c (normal_stop): Ditto.
7471 (restore_selected_frame): Ditto.
7472 (restore_inferior_status): Ditto.
7473 * breakpoint.c (insert_breakpoints): Ditto.
7474 (watchpoint_check): Ditto.
7475 (bpstat_stop_status): Ditto.
7476 (do_enable_breakpoint): Ditto.
7477 * blockframe.c (flush_cached_frames): Ditto.
7478 (reinit_frame_cache): Ditto.
7480 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7482 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7485 2002-05-04 Jim Blandy <jimb@redhat.com>
7487 * gdbtypes.c (replace_type): Doc fix.
7489 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7491 * valprint.c (strcat_longest): Delete commented out function.
7494 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7496 * MAINTAINERS: Mark a29k as deleted.
7497 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7498 Move new configurations to the top.
7499 * configure.tgt: Remove a29k.
7500 * config/a29k/tm-vx29k.h: Delete.
7501 * config/a29k/vx29k.mt: Delete.
7502 * config/a29k/tm-a29k.h: Delete.
7503 * config/a29k/a29k-udi.mt: Delete.
7504 * config/a29k/a29k.mt: Delete.
7505 * a29k-tdep.c: Delete.
7506 * remote-udi.c: Delete.
7507 * remote-mm.c: Delete.
7508 * remote-eb.c: Delete.
7509 * remote-adapt.c: Delete.
7510 * Makefile.in: Remove obsolete code.
7511 * config/s390/s390x.mt: Ditto.
7512 * config/s390/s390.mt: Ditto.
7513 * config/sparc/sparclynx.mh: Ditto.
7514 * config/sparc/linux.mh: Ditto.
7515 * config/pa/hppaosf.mh: Ditto.
7516 * config/pa/hppabsd.mh: Ditto.
7517 * config/ns32k/nbsd.mt: Ditto.
7518 * config/mips/vr5000.mt: Ditto.
7519 * config/m68k/sun3os4.mh: Ditto.
7520 * config/m68k/nbsd.mt: Ditto.
7521 * config/m68k/m68klynx.mh: Ditto.
7522 * config/m32r/m32r.mt: Ditto.
7523 * config/i386/x86-64linux.mt: Ditto.
7524 * config/i386/nbsdelf.mt: Ditto.
7525 * config/i386/nbsd.mt: Ditto.
7526 * config/i386/i386lynx.mh: Ditto.
7528 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7530 * target.c (debug_print_register): New function. Handle oversize
7532 (debug_to_fetch_registers): Call.
7533 (debug_to_store_registers): Call.
7535 2002-05-03 Jim Blandy <jimb@redhat.com>
7537 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7538 (read_type): Doc fix.
7539 * gdbtypes.c (replace_type): Doc fix.
7541 * stabsread.c (multiply_defined_struct): New complaint.
7542 (read_struct_type): If the type we were passed isn't empty, or
7543 incomplete, don't read the new struct type into it; complain,
7544 and return the original type unchanged. Take a new `type_code'
7545 argument, which is the type code for the new type.
7546 (read_type): Rather than storing the type's type code here, pass
7547 it as an argument to read_struct_type, and let that take care of
7548 storing it. That way, we don't overwrite the original type code,
7549 so read_struct_type can use it to decide whether we're overwriting
7550 something we shouldn't.
7551 (complain_about_struct_wipeout): New function.
7553 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7555 * gdbarch.sh: Assert that gdbarch is non-NULL.
7556 * gdbarch.c: Regenerate.
7558 2002-05-03 Jason Merrill <jason@redhat.com>
7560 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7563 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7565 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7566 (x86_64_dwarf2gdb_regno_map_length),
7567 (x86_64_dwarf2_reg_to_regnum): Added.
7568 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7569 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7570 (_initialize_x86_64_tdep): Synced with the change above.
7571 (x86_64_skip_prologue): Reformulated message.
7573 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7575 * f-exp.y: Also use new prev_lexptr variable
7576 to improve error reporting. Based on Michael Snyder
7577 2002-04-24 dated patch to c-exp.y.
7578 * jv-exp.y: Likewise.
7579 * m2-exp.y: Likewise.
7581 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7583 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7584 we are dealing with vectors.
7586 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7588 * config/m68k/tm-nbsd.h: Obvious fix,
7589 correct machine name.
7591 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7593 * p-typeprint.c (pascal_type_print_base): Add support
7594 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7596 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7598 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7599 for fondamental pascal 'char' type.
7601 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7603 * p-lang.h (is_pascal_string_type): Declaration changed,
7604 new sixth argument of type char ** added.
7605 * p-lang.c (is_pascal_string_type): Implementation
7606 changed. Args length_pos, length_size, string_pos, char_size
7607 can now be NULL. New argument arrayname set to the field
7608 name of the char array. Return value set to char array
7609 field index plus one.
7610 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7611 is_pascal_string_type function.
7613 2002-05-02 Andrew Cagney <cagney@redhat.com>
7615 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7616 <cagney@redhat.com> change.
7617 * gdbarch.c: Regenerate.
7619 2002-05-02 Andrew Cagney <cagney@redhat.com>
7621 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7622 before probing for a new one. Detect errorenous gdbarch_init
7624 * gdbarch.c: Regenerate.
7626 2002-05-01 Andrew Cagney <cagney@redhat.com>
7628 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7629 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7630 * config/v850/tm-v850.h: Ditto. Update copyright.
7632 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7634 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7637 2002-04-30 Michael Snyder <msnyder@redhat.com>
7639 * arm-tdep.c: Whitespace clean-ups.
7640 (arm_skip_prologue): Fix thinko; two lines
7641 should have been removed as part of 4/24 change.
7643 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7645 * rs6000-tdep.c: Added comment describing how fpscr register
7646 numbers were chosen.
7648 2002-04-30 Michael Snyder <msnyder@redhat.com>
7650 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7652 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7654 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7655 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7656 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7658 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7660 From Louis Hamilton <hamilton@redhat.com>:
7661 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7662 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7663 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7664 not bfd-private xcoff data, to determine wordsize.
7665 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7667 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7669 GDB 5.2 released from 5.2 branch.
7671 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7673 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7674 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7675 (x86_64_register_info_table): Added comments with register numbers.
7677 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7679 * rs6000-tdep.c (rs6000_extract_return_value,
7680 rs6000_store_return_value): Handle returning vectors.
7681 (rs6000_gdbarch_init): Use
7682 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7683 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7685 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7687 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7688 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7690 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7692 * hpread.c (hpread_psymtab_to_symtab_1,
7693 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7694 with fprintf_unfiltered (gdb_stderr,...).
7696 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7698 * remote-array.c (printf_monitor, write_monitor,
7699 array_insert_breakpoint, array_remove_breakpoint ):
7700 Replace fprintf (stderr,...
7701 with fprintf_unfiltered (gdb_stderr,....
7702 * remote-es.c: Likewise.
7703 * remote-os9k.c: Likewise.
7704 * remote-st.c: Likewise.
7706 2002-04-28 Andreas Schwab <schwab@suse.de>
7708 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7709 linux-proc.o and gcore.o.
7711 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7713 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7714 code without frame pointers.
7716 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7718 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7721 2002-04-26 Ben Elliston <bje@redhat.com>
7723 * target.c (do_xfer_memory): Correct reference to the new option
7724 "trust-readonly-sections".
7726 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7728 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7729 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7730 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7732 (read_array_type): Record the fact that this array type is really a
7733 vector (i.e. are passed in by value).
7735 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7737 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7738 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7739 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7740 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7741 * alpha-linux-tdep.c: Include frame.h.
7742 (alpha_linux_sigcontext_addr): New function.
7743 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7744 alpha_linux_sigcontext_addr.
7745 * alpha-osf1-tdep.c: Include gdbcore.h.
7746 (alpha_osf1_sigcontext_addr): New function.
7747 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7748 alpha_osf1_sigcontext_addr.
7749 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7750 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7752 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7754 * stack.c (selected_frame_level):
7755 (select_frame): Do not set selected_frame_level.
7756 * frame.h (selected_frame_level): Delete declaration.
7758 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7760 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7761 convert_from_func_ptr-addr when AIX / PowerOpen.
7763 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7765 * valops.c (hand_function_call): Call
7766 generic_save_call_dummy_addr.
7767 * frame.h (generic_save_call_dummy_addr): Declare.
7768 * blockframe.c (struct dummy_frame): Add fields call_lo and
7770 (generic_find_dummy_frame): Check for PC in range call_lo to
7771 call_hi instead of entry_point_address.
7772 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7773 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7774 (generic_save_call_dummy_addr): New function.
7776 2002-04-24 David S. Miller <davem@redhat.com>
7778 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7779 sparc_skip_prologue.
7780 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7781 information to find prologue when possible.
7782 (sparc_prologue_frameless_p): Call examine_prologue directly.
7783 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7784 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7786 (SKIP_PROLOGUE): Likewise.
7788 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7790 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7791 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7792 indicate that the condition it was testing is always true.
7793 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7794 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7795 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7797 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7799 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7800 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7801 tdep->jb_pc and tdep->jb_elt_size.
7802 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7803 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7804 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7805 * alpha-nat.c (get_longjmp_target): Remove.
7806 (JB_ELEMENT_SIZE): Ditto.
7808 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7809 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7810 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7811 to alpha_get_longjmp_target.
7812 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7813 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7814 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7816 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7818 * README: Update to GDB 5.2.
7820 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7822 * gdbarch.sh (LC_ALL): Set to `c'.
7824 2002-04-25 Theodore A. Roth <troth@verinet.com>
7826 * avr-tdep.c: Ran through gdb_indent.sh.
7828 2002-04-25 Theodore A. Roth <troth@verinet.com>
7830 * MAINTAINERS: Add myself as AVR maintainer.
7831 * NEWS: Note new target avr.
7833 2002-04-25 Theodore A. Roth <troth@verinet.com>
7835 * Makefile.in: Add support for AVR target.
7836 * configure.tgt: Add support for AVR target.
7837 * avr-tdep.c: New file
7838 * config/avr/avr.mt: New file.
7840 2002-04-25 Theodore A. Roth <troth@verinet.com>
7842 * MAINTAINERS: Add myself to write-after-approval.
7844 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7846 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7847 with fprintf_unfiltered (gdb_stderr,....
7849 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7852 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7854 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7856 * p-exp.y: Also use new prev_lexptr variable
7857 to improve error reporting. Based on Michael Snyder
7858 2002-04-24 dated patch to c-exp.y.
7860 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7862 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7863 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7864 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7866 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7868 (FUNCTION_START_OFFSET): Remove.
7869 (BREAKPOINT): Ditto.
7871 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7873 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7876 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7878 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7879 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7880 alpha_linux_pc_in_sigtramp.
7881 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7882 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7883 alpha_osf1_pc_in_sigtramp.
7884 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7885 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7886 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7887 alphafbsd_pc_in_sigtramp.
7888 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7889 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7890 alphanbsd_pc_in_sigtramp.
7891 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7892 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7894 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7896 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7898 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7900 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7902 (alphanbsd-nat.o): New dependency list.
7903 (alphanbsd-tdep.o): Ditto.
7904 * NEWS: Note new native NetBSD/alpha configuration.
7905 * alphanbsd-nat.c: New file.
7906 * alphanbsd-tdep.c: Ditto.
7907 * configure.host (alpha*-*-netbsd*): New host.
7908 * configure.tgt (alpha*-*-netbsd*): New target.
7909 * config/alpha/nbsd.mh: New file.
7910 * config/alpha/nbsd.mt: Ditto.
7911 * config/alpha/nm-nbsd.h: Ditto.
7912 * config/alpha/tm-nbsd.h: Ditto.
7914 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7916 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7917 (alpha-osf1-tdep.o): New dependency list.
7918 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7919 and skip_sigtramp_frame members.
7920 * alpha-linux-tdep.c: Include gdbcore.h.
7921 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7922 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7923 * alpha-osf1-tdep.c: New file.
7924 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7926 (alpha_frame_past_sigtramp_frame): New function.
7927 (alpha_dynamic_sigtramp_offset): Ditto.
7928 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7929 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7930 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7931 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7932 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7933 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7934 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7935 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7936 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7937 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7938 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7939 to find_solib_trampoline_target.
7940 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7941 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7942 (SKIP_TRAMPOLINE_CODE): Remove.
7943 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7944 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7945 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7946 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7947 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7948 (PROC_SIGTRAMP_MAGIC): Ditto.
7949 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7950 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7951 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7952 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7953 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7955 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7957 * NEWS: Note that Alpha targets are now multi-arch.
7959 2002-04-24 Michael Snyder <msnyder@redhat.com>
7961 * parser-defs.h (prev_lexptr): New external variable.
7962 * parse.c (parse_exp_1): Set prev_lexptr to null before
7963 calling the language-specific parser.
7964 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7965 (yyerror): Use prev_lexptr in error reporting.
7967 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7969 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7970 * gregset.h: If FILL_FPXREGSET is defined, provide
7971 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7972 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7973 is defined, call fill_fpxregset.
7975 2002-04-24 Roland McGrath <roland@frob.com>
7977 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7978 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7979 (supply_gregset, supply_fpregset): New functions.
7981 * gnu-nat.c (gnu_find_memory_regions): New function.
7982 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7983 (gnu_xfer_memory): Add a cast.
7985 2002-04-24 Michael Snyder <msnyder@redhat.com>
7987 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7988 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7989 of argument regs ("str r(0123), [r11, #-nn"]).
7990 (arm_skip_prologue): Better handling for frameless functions.
7991 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7992 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7994 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7996 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7997 NUM_PSEUDO_REGS can be used.
7999 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8001 * arch-utils.h: Update copyright.
8003 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8004 * gdbarch.h, gdbarch.c: Re-generate.
8006 * inferior.h (IN_SIGTRAMP): Delete definition.
8007 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8008 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8010 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8011 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8012 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8013 (find_proc_framesize): Ditto.
8014 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8015 (alpha_init_extra_frame_info): Ditto.
8016 * infrun.c (handle_inferior_event): Ditto.
8017 (handle_inferior_event): Ditto.
8018 (check_sigtramp2): Ditto.
8019 * blockframe.c (create_new_frame): Ditto.
8020 (get_prev_frame): Ditto.
8021 * ppc-linux-tdep.c: Update comments.
8022 * i386-linux-tdep.c: Update comments.
8023 * breakpoint.c (bpstat_what): Update comment.
8025 2002-04-24 David S. Miller <davem@redhat.com>
8027 * i960-tdep.c (register_in_window_p): New function.
8028 (i960_find_saved_register): Use it instead of
8029 REGISTER_IN_WINDOW_P.
8030 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8032 * symtab.h (find_stab_function_addr): Kill extern.
8033 * minsyms.c (find_stab_function_addr): Remove from here...
8034 * dbxread.c: ... to here, and mark it static.
8036 2002-04-20 David S. Miller <davem@redhat.com>
8038 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8039 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8041 2002-04-21 David S. Miller <davem@redhat.com>
8043 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8044 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8045 (vx_write_register): Likewise.
8047 2002-04-23 J. Brobecker <brobecker@gnat.com>
8049 * source.c (is_regular_file): New function.
8050 (openp): Check wether file to open is a regular file
8051 to avoid opening directories.
8053 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8055 * findvar.c (extract_signed_integer): Cast printf argument
8056 to suppress format warning.
8057 (extract_unsigned_integer): Likewise.
8058 * infcmd.c (registers_info): Likewise.
8059 * top.c (get_prompt_1): Likewise.
8060 * valops.c (value_assign): Likewise.
8061 * valprint.c (print_decimal): Likewise.
8063 2002-04-22 H.J. Lu (hjl@gnu.org)
8065 * c-exp.y (typebase): Support
8067 [long|long long|short] [signed|unsigned] [int|]
8071 signed [long|long long|short] int
8073 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8075 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8077 * vax-tdep.h: New file.
8078 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8079 Make several routines static.
8080 (vax_get_saved_register): New function.
8081 (vax_gdbarch_init): New function.
8082 (_initialize_vax_tdep): Register vax_gdbarch_init.
8083 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8084 Remove macros now under the control of gdbarch.
8086 2002-04-22 Michael Snyder <msnyder@redhat.com>
8088 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8089 Some whitespace and coding standards tweaks.
8091 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8093 * vax-tdep.c: Include regcache.h.
8094 (vax_call_dummy_words): New.
8095 (sizeof_vax_call_dummy_words): New.
8096 (vax_fix_call_dummy): New function.
8097 (vax_saved_pc_after_call): Ditto.
8098 * config/vax/tm-vax.h: Don't include regcache.h.
8099 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8100 (CALL_DUMMY): Remove.
8101 (CALL_DUMMY_WORDS): Define.
8102 (SIZEOF_CALL_DUMMY_WORDS): Define.
8103 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8105 2002-04-18 Michael Snyder <msnyder@redhat.com>
8107 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8109 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8111 * vax-tdep.c (vax_frame_chain): New function.
8112 (vax_push_dummy_frame): Ditto.
8113 (vax_pop_frame): Ditto.
8114 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8115 (FRAMELESS_FUNCTION_INVOCATION): Use
8116 generic_frameless_function_invocation_not.
8117 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8118 (POP_FRAME): Use vax_pop_frame.
8120 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8122 * vax-tdep.c (vax_store_struct_return): New function.
8123 (vax_extract_return_value): Ditto.
8124 (vax_store_return_value): Ditto.
8125 (vax_extract_struct_value_address): Ditto.
8126 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8127 vax_store_struct_return.
8128 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8129 (STORE_RETURN_VALUE): Use vax_store_return_value.
8130 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8132 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8134 * vax-tdep.c (vax_frame_saved_pc): New function.
8135 (vax_frame_args_address_correct): Ditto.
8136 (vax_frame_args_address): Ditto.
8137 (vax_frame_locals_address): Ditto.
8138 (vax_frame_num_args): Move code to be in proximity to
8139 other frame-related functions.
8140 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8141 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8142 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8143 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8144 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8146 2002-04-22 H.J. Lu (hjl@gnu.org)
8148 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8151 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8153 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8154 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8155 (FRAME_INIT_SAVED_REGS): New macro.
8157 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8159 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8161 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8163 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8165 (fetch_osf_core_registers): Likewise.
8166 (supply_gregset): Likewise.
8168 2002-04-22 J. Brobecker <brobecker@gnat.com>
8170 * symfile.h (get_section_index): Define.
8171 * symfile.c (get_section_index): New function.
8172 * mdebugread.c (SC_IS_SBSS): New macro.
8173 (SC_IS_BSS): Return true for the scBss storage class only, as
8174 the scSBss storage class refers to the .sbss section.
8175 (parse_partial_symbols): Discard the symbols which associated
8176 section does not exist.
8177 Make sure to use the .sbss section index for symbols which
8178 storage class is scBss, rather than using the .bss section index.
8180 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8182 * vax-tdep.c: Update copyright years.
8183 (vax_register_name): New function.
8184 (vax_register_byte): Ditto.
8185 (vax_register_raw_size): Ditto.
8186 (vax_register_virtual_size): Ditto.
8187 (vax_register_virtual_type): Ditto.
8188 * config/vax/tm-vax.h: Update copyright years.
8189 (REGISTER_NAMES): Remove.
8190 (REGISTER_NAME): Define.
8191 (REGISTER_BYTE): Use vax_register_byte.
8192 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8193 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8194 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8196 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8198 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8200 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8202 2002-04-21 David S. Miller <davem@redhat.com>
8204 * arch-utils.c (generic_prologue_frameless_p): Kill
8205 SKIP_PROLOGUE_FRAMELESS_P code.
8206 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8208 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8209 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8210 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8212 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8213 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8214 (sparc_gdbarch_init): Pass it to
8215 set_gdbarch_prologue_frameless_p.
8217 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8219 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8220 (alphabsd-nat.o): New dependency list.
8222 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8224 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8226 (alpha-linux-tdep.o): New dependency list.
8227 (alphafbsd-tdep.o): Likewise.
8229 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8231 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8233 * alpha-tdep.c: ...from here.
8234 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8236 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8238 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8239 prototype from here...
8240 * alpha-tdep.h: ...to here.
8242 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8244 * frame.h (selected_frame_level): Document as deprecated.
8245 (frame_relative_level): Declare.
8246 * stack.c (frame_relative_level): New function.
8247 (selected_frame_level): Document as deprecated.
8248 (select_frame): Do not set the selected_frame_level.
8250 * stack.c (frame_info, record_selected_frame): Update.
8251 (frame_command, current_frame_command): Update.
8252 (up_silently_base, up_command, down_silently_base): Update.
8253 (down_command): Update.
8254 * inflow.c (kill_command): Update.
8255 * tracepoint.c (finish_tfind_command): Update.
8256 * corelow.c (core_open): Update.
8257 * thread.c (info_threads_command): Update.
8258 (do_captured_thread_select): Update.
8259 * infcmd.c (finish_command): Update.
8260 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8262 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8264 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8266 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8268 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8271 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8273 * alphafbsd-tdep.c: Update copyright years. Include
8275 (alphafbsd_use_struct_convention): Make static.
8276 (alphafbsd_init_abi): New function.
8277 (_initialize_alphafbsd_tdep): New function.
8278 * config/alpha/tm-fbsd.h: Update copyright years.
8279 (USE_STRUCT_CONVENTION): Remove.
8281 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8283 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8284 an Alpha ABI variant.
8285 (alpha_abi_handler_list): Declare.
8286 (alpha_gdbarch_register_os_abi): New function.
8287 (alpha_gdbarch_init): Give registered ABI variant handlers a
8288 chance to tweak the gdbarch once we have set up defaults.
8289 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8291 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8293 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8294 to standard_coerce_float_to_double.
8295 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8297 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8299 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8300 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8301 from gdbarch_tdep rather than a constant.
8302 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8303 the default text address for all Alpha Unix ABIs.
8304 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8305 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8307 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8309 * alpha-tdep.h: New file. Includes several Alpha target constants
8311 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8312 let gdbarch deal with.
8313 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8314 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8316 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8317 Alpha target register names.
8318 * alphabsd-nat.c: Likewise.
8319 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8320 Alpha target register names. Make serveral routines static.
8321 (alpha_get_saved_register): New function.
8322 (alpha_abi_names): New.
8323 (process_note_abi_tag_sections): New function.
8324 (get_elfosabi): New function.
8325 (alpha_gdbarch_init): New function.
8326 (alpha_dump_tdep): New function.
8327 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8329 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8331 * frame.c (find_saved_register): Delete #ifdef
8332 HAVE_REGISTER_WINDOWS code.
8333 * config/sparc/tm-sparc.h: Update comments.
8334 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8336 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8338 * i960-tdep.c (i960_find_saved_register): New function.
8339 (i960_get_saved_register): New function.
8340 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8341 (i960_get_saved_register): Declare.
8342 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8344 2002-04-20 David S. Miller <davem@redhat.com>
8346 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8348 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8350 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8351 instead of NUM_PSEUDO_REGS.
8353 2002-04-20 David S. Miller <davem@redhat.com>
8355 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8356 GDB_MULTI_ARCH_PARTIAL
8357 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8358 define, let tm-sp64.h do it.
8360 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8362 * frame.c (find_saved_register): Avoid a NULL pointer
8363 dereference and actually walk the frame list.
8365 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8367 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8368 sorted in most most-recent-used order. Document.
8369 * gdbarch.h, gdbarch.c: Regenerate.
8371 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8373 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8375 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8376 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8377 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8380 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8383 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8384 (build_builtin_type_vec128): Ditto.
8385 (append_composite_type_field): Fix calculation of type length in
8388 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8390 * config/djgpp/README: Update.
8392 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8395 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8397 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8398 (alpha_setup_arbitrary_frame): ...to this.
8399 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8400 for alpha_setup_arbitrary_frame.
8402 2002-04-18 Andrew Cagney <cagney@redhat.com>
8404 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8405 * gdbarch.h, gdbarch.c: Regenerate.
8407 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8408 * target.h (memory_breakpoint_from_pc): Update declaration.
8409 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8411 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8412 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8413 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8414 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8415 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8416 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8417 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8418 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8419 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8420 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8421 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8422 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8424 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8426 * monitor.c (monitor_insert_breakpoint): Ditto.
8427 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8429 * config/mcore/tm-mcore.h: Update copyright.
8430 * mem-break.c: Ditto.
8431 * xstormy16-tdep.c: Ditto.
8433 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8435 * p-exp.y: Add precedence rule for '^' token.
8436 This removes the shift/reduce conflicts.
8437 Remove the comment concerning these shift/reduce conflicts.
8439 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8441 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8442 (registers_powerpc_nofp): New register set for processors
8443 without floating point unit.
8445 2002-04-18 David S. Miller <davem@redhat.com>
8447 * MAINTAINERS: Add myself to write-after-approval.
8449 2002-04-17 Michael Snyder <msnyder@redhat.com>
8451 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8453 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8455 * rs6000-tdep.c (frame_initial_stack_address): Use
8456 frame_register_read to read the alloca_reg.
8458 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8460 * frame.c (find_saved_register): Find saved registers in the next
8464 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8466 * gdbarch.sh (LANG): Set to ``c''.
8468 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8470 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8472 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8474 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8477 * hpread.c (hpread_get_lntt): Add declaration.
8478 Also fix PR gdb/391.
8480 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8482 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8483 * aclocal.m4, configure: Re-generate.
8486 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8488 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8489 instead of tm_print_insn.
8491 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8493 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8495 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8497 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8498 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8499 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8501 2002-04-12 Don Howard <dhoward@redhat.com>
8503 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8504 max_user_call_depth.
8505 (init_cmd_lists): Initialize the new value;
8506 * cli/cli-script.c (execute_user_command): Limit the call depth of
8507 user defined commands. This avoids a core-dump when user commands
8508 are infinitly recursive.
8510 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8512 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8513 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8514 from tdep struct instead of DEFAULT_LR_SAVE.
8515 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8516 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8517 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8519 2002-04-12 Michael Snyder <msnyder@redhat.com>
8521 * Remote.c: Spelling fix.
8522 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8523 If no symbol found for "sbrk", try "_sbrk".
8524 (make_output_phdrs): Use bfd_section_name.
8525 (gcore_copy_callback): Use bfd_section_name.
8526 * eval.c: Indentation fix-ups.
8527 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8528 in case it gets applied to an address that is already
8529 in the instruction space.
8530 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8531 * symfile.c: Fix indentation, long lines.
8532 * source.c: White space fix-up.
8534 2002-04-12 Andrew Cagney <cagney@redhat.com>
8536 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8537 * frame.c (frame_register_read): New function. Return non-zero on
8539 (read_relative_register_raw_bytes_for_frame): Delete.
8540 (read_relative_register_raw_bytes): Delete.
8541 * frame.h (frame_register_read): Declare.
8542 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8544 * infcmd.c (do_registers_info): Ditto.
8545 * hppa-tdep.c: Ditto.
8546 * rs6000-tdep.c: Ditto.
8547 * h8500-tdep.c: Ditto.
8548 * mips-tdep.c: Ditto.
8549 * h8300-tdep.c: Ditto.
8550 * z8k-tdep.c: Ditto.
8552 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8554 From Jimi X <jimix@watson.ibm.com>:
8555 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8558 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8560 From Jimi X <jimix@watson.ibm.com>:
8561 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8564 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8566 From Jimi X <jimix@watson.ibm.com>:
8567 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8568 register sets for these processor variants.
8570 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8572 * regformats/reg-ppc.dat: Support FPSCR.
8574 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8576 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8577 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8578 Add fpscr as an invalid/unfetchable register.
8579 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8580 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8581 (fill_fpregset): Add support for register fpscr.
8582 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8583 (fill_gregset): Account for the fact that register ``mq'' might
8585 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8586 (registers_power): Add fpscr to register set at slot 71.
8587 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8588 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8590 2002-04-11 Michael Snyder <msnyder@redhat.com>
8592 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8593 * configure: Regenerate.
8594 * config.in: Regenerate.
8595 * acconfig.h: Add define for _SYSCALL32.
8596 * core-sol2.c: Remove #define _SYSCALL32.
8597 * solib-legacy.c: Remove #define _SYSCALL32.
8599 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8601 * stack.c (select_frame): Cleanup internal error message, do not
8604 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8606 * stack.c (select_frame): Check that selected_frame and the
8607 specified level are as expected.
8608 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8610 * frame.h (struct frame_info): Add field `level'. Update
8612 Work-in-progress PR gdb/464.
8614 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8616 * maint.c (maint_print_section_info): Rename print_section_info.
8617 (print_bfd_section_info, print_objfile_section_info): Update.
8618 * inferior.h (struct gdbarch): Add opaque declaration.
8619 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8620 * gdbarch.h: Regenerate.
8622 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8624 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8625 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8626 (kernel_u_size): Added.
8627 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8628 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8630 2002-04-04 Jim Ingham <jingham@apple.com>
8632 * valarith.c (find_size_for_pointer_math): New function, either returns
8633 the size for a pointer's target, returns 1 for void *, or errors for
8635 (value_add, value_sub): use find_size_for_pointer_math.
8637 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8639 * linux-low.c (linux_look_up_symbols): New hook.
8640 (linux_target_ops): Add linux_look_up_symbols.
8641 * remote-utils.c (decode_address): New function.
8642 (look_up_one_symbol): New function.
8643 * server.c (handle_query): Call target look_up_symbols hook.
8644 * server.h (look_up_one_symbol): Add prototype.
8645 * target.h (struct target_ops): Add look_up_symbols hook.
8647 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8649 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8650 override FP_REGNUM with frame->fp. Update copyright.
8651 * parse.c (num_std_regs, std_regs): Delete.
8652 (target_map_name_to_register): Do not search std_regs. Update
8653 function description.
8654 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8655 declarations. Update copyright.
8658 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8660 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8661 after the last symbol in a block.
8663 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8665 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8666 is non zero as a found symbol.
8668 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8670 * findvar.c: Include "builtin-regs.h".
8671 (value_of_register): Call value_of_builtin_reg when applicable.
8672 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8673 (target_map_name_to_register): Call
8674 builtin_reg_map_name_to_regnum.
8675 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8676 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8677 (builtin_regs_h): Define.
8678 (builtin-regs.o): New target.
8679 (findvar.o): Add $(builtin_regs_h).
8680 * builtin-regs.c, builtin-regs.h: New files.
8681 * std-regs.c: New file.
8682 Partial fix for PR gdb/251.
8684 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8686 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8687 it's no longer required.
8689 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8691 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8693 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8695 From Jimi X <jimix@watson.ibm.com>:
8696 * rs6000-tdep.c (rs6000_software_single_step): Use
8697 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8698 and size. Use target_insert_breakpoint() and
8699 target_remove_breakpoint() to insert and remove breakpoints
8700 instead of explicit memory reads and writes.
8702 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8704 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8705 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8706 ELF_OBJECT_FORMAT ifdef.
8708 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8710 From Jimi X <jimix@watson.ibm.com>:
8711 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8713 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8715 From Jimi X <jimix@watson.ibm.com>:
8716 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8717 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8719 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8721 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8722 s/asprintf/xasprintf/.
8723 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8725 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8727 I believe Jeff Law denies responsability for this one:
8728 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8729 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8730 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8731 Work-around for PR gdb/366.
8733 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8735 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8736 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8737 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8739 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8741 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8742 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8745 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8747 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8750 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8752 * README (Reporting Bugs in GDB): Document the bug web page as the
8753 prefered way of submitting bugs.
8756 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8758 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8760 * gdbarch.h, gdbarch.c: Re-generate.
8762 2002-04-07 Andreas Schwab <schwab@suse.de>
8764 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8765 buffer to regcache_collect.
8767 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8769 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8770 * gdbarch.c, gdbarch.h: Re-generate.
8772 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8774 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8775 declaration. Fix -Werror.
8777 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8779 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8780 * gdbarch.c: Regenerate.
8782 2002-04-05 Michael Snyder <msnyder@redhat.com>
8784 * breakpoint.c (clear_command): Rewrite middle section to
8785 combine two loops with identical control conditions.
8786 Add a cleanup to eliminate a memory leak.
8787 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8789 2002-04-05 H.J. Lu (hjl@gnu.org)
8791 * solib-svr4.c (bkpt_names): Add "__start".
8793 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8795 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8796 as test for 64 bit target.
8798 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8800 * h8500-tdep.c (h8500_write_fp): Delete function.
8801 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8802 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8803 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8805 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8806 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8808 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8809 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8810 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8811 (d10v_write_fp): Delete function.
8812 * inferior.h (write_fp, generic_target_write_fp): Delete
8814 * regcache.c (generic_target_write_fp): Delete function.
8815 (write_fp): Delete function.
8816 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8817 * gdbarch.h, gdbarch.c: Regenerate.
8818 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8819 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8820 (sparc64_write_fp): Delete declaration.
8821 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8822 (h8500_write_fp): Delete declaration.
8824 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8826 * sparc-tdep.c (sparc64_write_fp): Delete.
8827 (sparc_push_dummy_frame): Replace write_fp call with code to store
8829 (sparc_gdbarch_init): Do not initialize write_fp.
8831 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8833 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8836 2002-03-29 Jim Blandy <jimb@redhat.com>
8838 * stack.c (get_selected_block): Add new argument `addr_in_block',
8839 used to return the exact code address we used to select the block,
8841 * blockframe.c (get_frame_block, get_current_block): Same.
8842 * frame.h (get_frame_block, get_current_block,
8843 get_selected_block): Update declarations.
8844 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8845 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8847 2002-04-05 Michael Snyder <msnyder@redhat.com>
8849 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8852 2002-04-05 J. Brobecker <brobecker@gnat.com>
8854 * utils.c (xfullpath): New function.
8855 * defs.h (xfullpath): Add declaration.
8856 * source.c (openp): Use xfullpath in place of gdb_realpath to
8857 avoid resolving the basename part of filenames when the
8858 associated file is a symbolic link. This fixes a potential
8859 inconsistency between the filenames known to GDB and the
8860 filenames it prints in the annotations.
8861 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8862 to be able to match a filename with either the real filename, or
8863 the name of any symbolic link to this file.
8864 (lookup_partial_symtab): Ditto.
8866 2002-04-04 Michael Snyder <msnyder@redhat.com>
8868 * breakpoint.c: Add support for hardware breakpoints in overlays.
8869 (overlay_events_enabled): New state variable.
8870 (insert_breakpoints): Use overlay_events_enabled to decide
8871 whether to attempt to set a breakpoint at the overlay load addr.
8872 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8873 (remove_breakpoint): Use overlay_events_enabled to decide
8874 whether breakpoints need to be removed from overlay load addr.
8875 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8876 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8877 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8878 disable_overlay_breakpoints): Update overlay_events_enabled.
8880 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8882 * dwarf2read.c (struct function_range): New.
8883 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8884 (check_cu_functions): New.
8885 (read_file_scope): Initialize global function lists.
8886 Call dwarf_decode_line after processing children.
8887 (read_func_scope): Add to global function list.
8888 (dwarf_decode_lines): Call check_cu_functions everywhere
8889 record_line is called. Call record_line with a linenumber
8890 of 0 to mark sequence ends.
8892 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8894 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8895 change sync with glibc.
8897 2002-04-03 Jim Blandy <jimb@redhat.com>
8899 * configure.in: Call AC_C_INLINE.
8900 * configure: Regenerated.
8902 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8904 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8905 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8907 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8909 * NEWS: Mention gcore support on FreeBSD/i386.
8911 * fbsd-proc.c: New file.
8912 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8913 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8915 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8918 2002-03-29 Jim Blandy <jimb@redhat.com>
8920 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8921 unescaped newlines in string literals, but newer ones don't. So
8924 2002-03-26 Michael Snyder <msnyder@redhat.com>
8925 Andrew Cagney <cagney@redhat.com>
8927 * cli/cli-dump.c: New file. Dump memory to file,
8928 restore file to memory.
8929 * cli/cli-dump.h: New file.
8930 * Makefile.in: Add rules, dependencies for cli-dump.o.
8931 * NEWS: Mention new commands.
8933 2002-03-28 Michael Snyder <msnyder@redhat.com>
8935 * symfile.c (symbol_file_add): Move test for null symbols to later.
8937 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8939 From veksler at il.ibm.com:
8940 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8941 the xstrduped original path.
8944 2002-03-27 Michael Snyder <msnyder@redhat.com>
8946 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8947 * infcmd.c (_initialize_infcmd): Ditto.
8948 * language.c (_initialize_language): Ditto.
8949 * symfile.c (_initialize_symfile): Ditto.
8950 * top.c (_init_main): Ditto.
8951 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8953 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8955 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8956 vector registers handling.
8957 (skip_prologue): Handle new AltiVec instructions. Fill in new
8958 fields of frame data.
8959 (frame_get_saved_regs): Fill in information for AltiVec registers.
8961 2002-03-27 Jim Blandy <jimb@redhat.com>
8963 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8964 a function; leave this macro here to invoke that function.
8965 (symbol_init_mangled_name): Declaration for that function.
8966 * symtab.c (symbol_init_mangled_name): New function.
8968 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8970 * valarith.c: Replace strerror with safe_strerror.
8971 * tracepoint.c: Ditto.
8973 * go32-nat.c: Ditto.
8977 2002-03-27 Andreas Schwab <schwab@suse.de>
8979 * event-top.c (command_line_handler): Remove useless if.
8981 2002-03-27 Andreas Jaeger <aj@suse.de>
8983 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8986 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8988 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8989 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8990 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8991 (x86_64_linux_dr_get_status, supply_gregset),
8992 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8993 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8994 (x86_64_register_info_table): Add.
8995 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8996 (x86_64_register_raw_size, x86_64_register_virtual_type),
8997 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8998 general x86_64_register_info_table.
8999 (i386_gdbarch_init): gdbarch_register_bytes is now set
9000 dynamicaly during initialization.
9001 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9002 * gdbserver/linux-x86-64-low.c: Ditto.
9004 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9006 * gdbserver/server.c (main): Call target_signal_to_host_p
9007 and target_signal_to_host on signals received from the remote.
9008 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9009 target_signal_from_host on signals sent to the remote.
9010 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9011 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9013 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9015 * signals/signals.c: Include "server.h" in gdbserver build.
9016 (target_signal_from_name): Don't use STREQ.
9017 (_initialize_signals): Likewise. Don't include function in
9020 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9022 * signals.c: Moved to...
9023 * signals/signals.c: Here.
9024 * Makefile (signals.o): Update.
9026 2002-03-26 Jeff Law (law@redhat.com)
9028 * somread.c (som_symtab_read): Remove some commented out code and
9029 updated related comments. Do not set the minimal symbol table to
9030 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9031 in a dynamic executable.
9032 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9033 where we are unable to find the minimal symbol for the given
9036 2002-03-25 Jeff Law (law@redhat.com)
9038 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9040 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9042 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9044 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9046 * command.h: Update copyright.
9047 (struct cmd_list_element): Replace definition with opaque
9049 (enum cmd_types): Document that it will eventually be moved to
9051 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9052 (MALLOCED_REPLACEMENT): Delete macro.
9053 * Makefile.in (cli_decode_h): Add $(command_h).
9054 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9055 * top.c: Include "cli/cli-decode.h".
9056 * completer.c: Include "cli/cli-decode.h".
9057 * maint.c: Include "cli/cli-decode.h".
9058 * cli/cli-decode.h: Include "command.h".
9059 (enum command_class): Delete.
9060 (enum cmd_types): Comment out.
9061 (enum cmd_auto_boolean): Delete.
9062 (enum var_types): Delete.
9064 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9066 * cli/cli-decode.c: Include "gdb_assert.h".
9067 (add_set_or_show_cmd): New static function.
9068 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9069 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9070 all fields, such as func, from the set command.
9072 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9074 * MAINTAINERS (sh-elf): Change warning flag to -w.
9076 2002-03-23 Andrew Cagney <cagney@redhat.com>
9078 * defs.h (error): Add printf format attribute.
9079 * thread-db.c (thread_from_lwp): Fix error format string.
9080 * stack.c (parse_frame_specification): Ditto.
9081 * cli/cli-decode.c (undef_cmd_error): Ditto.
9082 * scm-lang.c (scm_lookup_name): Ditto.
9083 * tracepoint.c (trace_error): Ditto.
9084 * remote-utils.c (usage): Ditto.
9085 * remote.c (compare_sections_command): Ditto.
9088 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9090 * gdbtypes.c (append_composite_type_field): New function.
9091 (init_composite_type): New function.
9092 * gdbtypes.h (append_composite_type_field): Declare.
9093 (init_composite_type): Ditto.
9095 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9097 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9099 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9100 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9101 structure returning convention for SYSV ABI case, but not
9102 for GNU/Linux, FreeBSD, or NetBSD.
9104 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9106 * symtab.h (lookup_block_symbol): Add mangled_name argument
9109 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9110 with new mangled_name argument.
9111 * linespec.c (decode_line_1): Likewise.
9112 * valops (value_of_this): Likewise.
9113 * symtab.c (lookup_transparent_type): Likewise.
9114 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9115 (lookup_symbol): If we are given a mangled name, pass it down
9116 to lookup_symbol_aux.
9117 (lookup_block_symbol): If we are given a mangled name to check
9118 against, only return symbols which match it.
9120 2002-03-22 Christopher Faylor <cgf@redhat.com>
9122 * win32-nat.c (child_create_inferior): Check for proper shell to use
9123 here, in case the user changes it on the fly.
9124 (_initialize_inftarg): Remove shell path considerations.
9126 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9128 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9129 for gdbarch_max_register_raw_size and max_register_virtual_size.
9130 Adjust copyright year.
9132 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9134 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9135 in a function to cover the entire beginning of the function
9136 as well if it does not already.
9138 2002-03-21 Tom Rix <trix@redhat.com>
9140 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9141 (rs6000_ptrace64): Renamed from ptrace64.
9143 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9145 * gdbserver/remote-utils.c (remote_open): Don't call
9146 getprotobyname, we're all using TCP here so just use
9148 * gdbserver/gdbreplay.c (remote_open): Ditto.
9150 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9152 * regcache.c (_initialize_regcache): No need to call
9153 build_regcache() at this time; it gets called whenever
9154 the gdbarch changes.
9156 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9158 * sparc-nat.c: Include sys/param.h where possible.
9160 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9163 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9164 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9165 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9167 * stabsread.c (rs6000_builtin_type): Likewise.
9168 (read_sun_floating_type): Likewise.
9170 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9172 * stabsread.c (read_member_functions): Remove skip code for duplicate
9173 constructor/destructor methods. Use standard parsing for these
9174 methods and just do not chain them to the list of methods after
9177 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9179 * coffread.c: Remove redundant static declarations. Replace
9180 occurrences of `PTR' with `void *'.
9181 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9182 * top.h (quit_cover): Likewise.
9183 * defs.h (catch_errors): Likewise.
9185 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9187 * defs.h (XMALLOC): Define.
9188 * gdb-events.sh (XMALLOC): Delete macro.
9189 * gdb-events.c, gdb-events.h: Regenerate.
9190 * gdbarch.sh (XMALLOC): Delete macro.
9191 * gdbarch.c: Regenerate.
9192 * serial.c (XMALLOC): Delete macro.
9193 * ui-file.c (XMALLOC): Ditto.
9194 * ser-unix.h (XMALLOC): Ditto.
9195 * sh-tdep.c (XMALLOC): Ditto.
9196 * ui-out.c (XMALLOC): Ditto.
9197 * utils.c (XMALLOC): Ditto.
9198 * i386-tdep.c (XMALLOC): Ditto.
9199 * gdb-events.c (XMALLOC): Ditto.
9200 * d10v-tdep.c (XMALLOC): Ditto.
9201 * cli-out.c (XMALLOC): Ditto.
9203 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9204 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9205 * ui-file.c, ui-out.c: Ditto.
9207 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9209 * command.h (struct cmd_list_element): Add field context.
9210 (set_cmd_context, get_cmd_context): Declare.
9211 * cli/cli-decode.h: Ditto.
9212 * cli/cli-decode.c (get_cmd_context): New function.
9213 (set_cmd_context): New function.
9214 (add_cmd): Initialize context.
9215 Part of fixing PR gdb/145 and PR gdb/146.
9217 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9219 * cli/cli-decode.c (cmd_type): New function.
9220 * command.h (cmd_type): Declare.
9221 * infrun.c (set_schedlock_func): Call function cmd_type.
9222 * kod.c (kod_set_os): Call cmd_type.
9223 * cris-tdep.c (cris_version_update): Use function cmd_type.
9224 (cris_mode_update, cris_abi_update): Ditto.
9226 * command.h: (execute_cmd_post_hook): Declare.
9227 (execute_cmd_pre_hook): Declare.
9228 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9229 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9230 functions. Execute pre/post hook while ensuring that afterwords
9232 * top.c (execute_command): Use execute_cmd_post_hook, and
9233 execute_cmd_pre_hook to execute pre/post commands.
9234 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9236 (hook_stop_stub): Call execute_cmd_pre_hook.
9238 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9240 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9241 set'' and this leads to a core dump. Move xstrdup of
9242 operating_system to after check that it is not NULL.
9244 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9246 * kod.c (kod_set_os): Remove unnecessary check that
9247 ``command->type'' is set_cmd.
9249 * valprint.c (set_input_radix): Use input_radix.
9250 (set_output_radix): Use output_radix.
9251 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9254 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9256 * value.h (struct value): Delete field ``substring_addr''. Change
9257 aligner fields to force_doublest_align, force_longest_align,
9258 force_core_addr_align and force_pointer_aligh.
9260 * value.h (struct value): Fix typo in above change.
9262 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9264 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9265 to fix internal_error from ``maintenance print architecture''.
9267 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9269 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9270 for gcc versions after gcc-2.8.1.
9272 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9274 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9275 for method resolution. Restore adjustment of ``this'' pointer after
9276 calling value_struct_elt, which was accidentally removed during the
9279 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9281 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9283 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9285 * value.h (value_of_register): Update.
9287 2002-03-14 Richard Henderson <rth@redhat.com>
9289 * configure.in: Detect declaration for canonicalize_file_name.
9290 * utils.c (canonicalize_file_name): Declare, if needed.
9291 (gdb_realpath): Prefer realpath if available and usable.
9292 * config.in, configure: Rebuild.
9294 2002-03-14 Richard Henderson <rth@redhat.com>
9296 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9297 a constant array bound.
9299 * MAINTAINERS: Add myself to write-after-approval.
9301 2002-03-14 Michael Snyder <msnyder@redhat.com>
9303 * symfile.c (syms_from_objfile): Return immediately if no syms.
9304 (symbol_file_add): Return immediately if no syms.
9305 (find_sym_fns): Return immediately if no syms.
9307 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9309 * gdbserver/remote-util.c (remote_open): Print remote-side's
9310 IP address when remote debugging over the network.
9312 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9314 * config/sparc/fbsd.mh: Fix copyright.
9315 * config/sparc/fbsd.mt: Likewise.
9317 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9319 * MAINTAINERS: Fix typo in name of gdb warnings option.
9320 (x86-64): Fix formating so that this can be parsed by awk.
9322 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9324 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9325 * defs.h: Include "gdb/signals.h".
9326 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9328 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9330 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9331 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9334 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9335 Don Howard <dhoward@redhat.com>
9337 * mips-tdep.c (ST0_FR): Define.
9338 (mips2_fp_compat): New function, temporarily disabled.
9339 (mips_read_fp_register_single): New function.
9340 (mips_read_fp_register_double): New function.
9341 (mips_print_register): Use them.
9342 (do_fp_register_row): Likewise.
9344 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9346 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9349 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9351 * stabsread.c (read_member_functions): Fix is_stub test for
9352 static member functions, improve comment.
9354 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9356 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9357 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9358 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9359 commands that set boolean values.
9360 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9361 (arm_rdi_resume): Always initialize PC.
9362 (arm_rdi_open): Don't use rslt as a boolean.
9363 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9364 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9365 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9366 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9368 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9370 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9371 * configure: Rebuilt.
9373 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9375 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9376 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9378 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9380 * cli/cli-decode.c (set_cmd_completer): New function.
9381 * command.h (set_cmd_completer): Declare.
9382 * cli/cli-decode.h (set_cmd_completer): Ditto.
9384 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9385 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9386 * win32-nat.c (_initialize_inftarg): Ditto.
9387 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9388 * proc-api.c (_initialize_proc_api): Ditto.
9389 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9390 * source.c (_initialize_source): Ditto.
9391 * exec.c (_initialize_exec): Ditto.
9392 * solib.c (_initialize_solib): Ditto.
9393 * top.c (init_main): Ditto.
9394 * tracepoint.c (_initialize_tracepoint): Ditto.
9395 * symfile.c (_initialize_symfile): Ditto.
9396 * printcmd.c (_initialize_printcmd): Ditto.
9397 * infcmd.c (_initialize_infcmd): Ditto.
9398 * corefile.c (_initialize_core): Ditto.
9400 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9402 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9404 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9406 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9408 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9410 * NEWS: Update headings, 5.2 has branched.
9412 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9414 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9415 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9416 (register_addr, REGISTER_RAW_SIZE): Likewise.
9417 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9418 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9420 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9422 * MAINTAINERS (x86-64): Add myself.
9423 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9424 changed value_ptr -> struct value *
9426 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9428 * configure.host (sparc64-*-freebsd): Add.
9429 * configure.tgt: Likewise.
9430 * config/sparc/fbsd.mh: New file.
9431 * config/sparc/fbsd.mt: Likewise.
9432 * config/sparc/nm-fbsd.h: Likewise.
9433 * config/sparc/tm-fbsd.h: Likewise.
9435 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9437 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9438 regformats/reg-s390x.dat.
9440 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9442 * utils.c: Add FIXME explaining true/false problem.
9444 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9446 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9448 2002-02-28 Michael Chastain <mec@shout.net>
9450 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9452 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9454 * gdbserver/linux-s390-low.c: New file.
9455 * regformats/reg-s390.dat: New file.
9456 * regformats/reg-s390x.dat: New file.
9457 * gdbserver/configure.srv: Add S/390.
9458 * gdbserver/Makefile.in: Add S/390.
9459 * configure.tgt: Enable gdbserver for S/390.
9461 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9463 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9464 first line of the doc string for "info dos", except at the end of
9465 the sentence, since the short help stops at the first period.
9467 2002-02-28 Jason Merrill <jason@redhat.com>
9469 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9471 2002-02-27 Fred Fish <fnf@redhat.com>
9473 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9474 comment (dumy -> dummy).
9476 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9478 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9480 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9482 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9484 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9486 * gdbserver/acconfig.h: New file.
9487 * gdbserver/i387-fp.c: New file.
9488 * gdbserver/i387-fp.h: New file.
9489 * gdbserver/linux-x86-64.c: New file.
9490 * regformats/reg-x86-64.dat: New file.
9491 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9492 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9493 * gdbserver/configure.in: Add support for regsets.
9494 * gdbserver/config.in: Regenerate.
9495 * gdbserver/configure: Regenerate.
9496 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9497 * gdbserver/linux-low.h: New file.
9498 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9500 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9501 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9502 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9503 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9504 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9505 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9506 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9507 "i387-fp.h". Add PTRACE_GETREGS and friends.
9508 * gdbserver/regcache.c (supply_register): New function.
9509 (supply_register_by_name): New function.
9510 (collect_register): New function.
9511 (collect_register_by_name): New function.
9513 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9515 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9516 (config.status): Add configure.srv dependency.
9517 (server_h): Add config.h dependency.
9519 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9521 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9522 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9523 * gdbserver/configure.srv: Change i386-*-linux* to use
9526 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9528 * x86-64-tdep.c: Re-indent. Update copyright date.
9530 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9532 From Michal Ludvig <mludvig@suse.cz>:
9533 * x86-64-tdep.c (value.h): Delete.
9534 (gdb_assert.h): Include.
9535 (x86_64_register_convert_to_virtual,
9536 x86_64_register_convert_to_raw ): Add check which lets only
9537 floating-point values to be converted.
9538 (value_push): Delete.
9539 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9540 (i386_gdbarch_init): Number of register_bytes fixed.
9542 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9544 * MAINTAINERS: Add x86-64 target.
9546 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9548 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9549 * osfsolib.c (solib_map_sections): Ditto.
9550 * irix5-nat.c (solib_map_sections): Ditto.
9551 * corelow.c (gdb_check_format): Ditto.
9552 * symfile.c (symfile_bfd_open): Ditto.
9553 * solib.c (solib_map_sections): Ditto.
9556 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9558 * remote.c (_initialize_remote): By default, disable ``e'' and
9559 ``E'' step out-of-range packets.
9561 2002-02-26 Andreas Schwab <schwab@suse.de>
9563 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9564 m68k_linux_frame_saved_pc.
9565 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9567 (SIGCONTEXT_PC_OFFSET): Remove.
9568 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9569 m68k_linux_sigtramp_saved_pc): New functions.
9570 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9571 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9572 (UCONTEXT_PC_OFFSET): Define.
9573 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9574 non-RT and RT signal trampolines.
9576 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9578 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9579 (TARGET_NBPG, STACK_END_ADDR): Delete
9580 (VARIABLES_INSIDE_BLOCK): Delete.
9582 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9584 * utils.c (perror_with_name): Make string parameter constant.
9585 (print_sys_errmsg): Ditto.
9587 * defs.h (perror_with_name): Update.
9588 (print_sys_errmsg): Update.
9591 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9593 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9594 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9596 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9598 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9599 if it already matches the current architecture from the exec file.
9600 Include arch-utils.h for gdbarch_info_init prototype.
9601 * Makefile.in (rs6000-nat.o): Update dependencies.
9603 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9605 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9606 list of exported variables.
9608 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9610 * gdbserver/configure.srv: New file.
9611 * gdbserver/configure.in: Use configure.srv instead
9612 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9614 * gdbserver/configure: Regenerated.
9615 * gdbserver/terminal.h: New file.
9616 * gdbserver/Makefile.in: Update for configure changes. Remove
9617 more unneeded include paths.
9619 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9621 From wiz at danbala:
9622 * config/sparc/tm-sp64.h: Fix grammar and typos.
9625 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9627 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9628 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9629 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9630 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9631 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9632 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9633 * s390-tdep.c: Ditto.
9634 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9635 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9636 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9637 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9638 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9639 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9640 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9641 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9642 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9643 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9646 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9648 * lin-thread.c: Delete file.
9649 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9650 to gdb_proc_service.h.
9651 * configure: Re-generate.
9653 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9654 * serial.c (serial_open): Delete check for "ocd".
9657 * Makefile.in (linux-thread.o): Delete target.
9658 * linux-thread.c: Delete file.
9660 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9661 renamed SH files to be consistent.
9663 * symtab.c (sort_search_symbols): Use xfree.
9665 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9667 * arm-linux-tdep.c (arm_linux_init_abi): Register
9668 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9669 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9670 definition with undef, since we don't want the sysvr4 definition.
9671 (SKIP_TRAMPOLINE_CODE): Likewise.
9673 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9675 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9677 * configure.in: (AC_CHECK_FUNCS) Added test for
9678 canonicalize_file_name Regenerated.
9679 * config.in, configure: Regenerated.
9680 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9681 defined use canonicalize_file_name.
9683 2002-02-23 Michael Chastain <mec@shout.net>
9685 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9687 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9689 * README: Remove references to cygnus.com.
9690 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9691 dot com'' form. Remove references to cygnus.com and sourceware.
9693 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9695 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9696 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9697 1003.1-2001 no longer allows "head -1".
9698 * gdb/Makefile.in (version.c): Likewise.
9699 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9700 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9701 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9703 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9705 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9706 * command.h (cmd_cfunc_eq): Declare.
9707 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9709 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9710 ``struct cmd_list_element *''.
9711 * cli/cli-cmds.c (is_complete_command): Update. Use
9713 * top.c (execute_command): Pass the command to
9714 is_complete_command.
9715 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9717 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9719 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9720 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9721 architecture defines.
9722 * s390-tdep.c (s390_gdbarch_init): Likewise.
9724 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9726 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9727 (arm_linux_push_arguments): Likewise.
9728 (arm_linux_init_abi): Register them. Also register linux-specific
9730 (find_minsym_and_objfile): Use strcmp, not STREQ.
9731 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9732 (arm_linux_call_dummy_words): Delete declaration.
9733 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9734 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9736 (LOWEST_PC): Delete.
9738 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9740 * maint.c (print_section_info): Do not prepend `0x' to filepos
9741 output, it will be handled by local_hex_string_custom.
9743 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9745 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9746 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9747 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9749 2002-02-22 Jim Blandy <jimb@redhat.com>
9751 Indicate that the bcache functions don't change the strings
9753 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9754 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9756 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9758 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9760 2002-02-21 Christopher Faylor <cgf@redhat.com>
9762 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9763 find the complete path to a loaded DLL.
9765 2002-02-21 Fred Fish <fnf@redhat.com>
9767 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9768 that marks the end of the range of a function, enter a line number
9769 entry that has a line number of zero and a PC offset that matches
9770 the end of the function. This starts a range of PC's for which no
9771 line number information is known.
9772 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9773 PC's for which no line number info is found (line number is zero)
9774 then we didn't find any valid line information.
9775 * symtab.h: Document use of zero line number entry.
9777 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9779 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9780 (have_ptrace_getvrregs): Define for run time checks.
9781 (gdb_vrregset_t): New type for Altivec register handling.
9782 (fetch_register, store_register): Fetch/store altivec register
9784 (fetch_altivec_register, store_altivec_register): New functions.
9785 (supply_vrregset, fill_vrregset): New functions.
9786 (fetch_altivec_registers, store_altivec_registers): New functions.
9787 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9790 2002-02-21 Jiri Smid <smid@suse.cz>
9792 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9794 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9796 * Makefile.in (armnbsd-nat.o): Update dependencies.
9797 * armnbsd-nat.c (supply_gregset): New function. Common code to
9798 supply the integer register set.
9799 (supply_fparegset): New function. Similar for FPA registers.
9800 (fetch_regs, fetch_fp_regs): Use them.
9801 (fetch_core_registers): Likewise.
9802 (fetch_elfcore_registers): New function.
9803 (arm_netbsd_elfcore_fns): New core-file type specification.
9804 (_initialize_arm_netbsd_nat): Register it.
9806 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9808 * armnbsd-nat.c: Include gdbcore.h.
9809 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9810 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9811 'void' to declaration, to shut up ARI.
9812 (fetch_core_registers): Make static. Rewrite using supply_register.
9813 (arm_netbsd_core_fns): New core-file type specification.
9814 (_initialize_arm_netbsd_nat): New function.
9816 2002-02-21 Christopher Faylor <cgf@redhat.com>
9818 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9821 2002-02-20 Christopher Faylor <cgf@redhat.com>
9823 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9826 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9828 * jv-exp.y (parse_number): Change type of implicit longs
9829 to builtin_type_uint64.
9831 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9833 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9834 to be an integer instead of a `union wait'.
9836 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9838 * mips-linux-nat.c: Call the operating system GNU/Linux.
9839 * mips-linux-tdep.c: Likewise.
9840 * mips-tdep.c: Likewise.
9842 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9845 * jv-exp.y (parse_number): Handle 64-bit integers.
9847 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9849 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9850 AC_STDC_HEADERS to AC_HEADER_STDC.
9851 * gdbserver/configure: Regenerated.
9853 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9855 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9857 * sparc-tdep.c (get_longjmp_target): Likewise.
9859 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9861 * News: Add news about ARM and Multi-arch. Mention the new target
9864 2002-02-19 Jim Blandy <jimb@redhat.com>
9866 * stabsread.c (error_type_complaint): Improve error message.
9868 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9870 * gdbserver/README: Update documentation.
9871 * gdbserver/configure.in: Update configury to match documentation.
9872 * gdbserver/Makefile.in: Likewise.
9873 * gdbserver/configure: Regenerated.
9874 * gdbserver/aclocal.m4: New file, generated by aclocal.
9875 * gdbserver/config.in: New file, generated by autoheader.
9877 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9879 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9882 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9884 * arm-tdep.h (enum arm_float_model): New enum.
9885 (struct gdbarch_tdep): Add fp_model.
9886 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9887 up floating-point conversions until we know the floating-point model
9888 in use by the inferior. Don't complain about being unable to
9889 determine the ABI of the inferior when we don't have one.
9890 (arm_extract_return_value): Support different floating-point models.
9891 (arm_store_return_value): Likewise.
9892 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9894 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9896 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9898 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9899 of ``current_gdbarch''.
9901 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9903 * armnbsd-nat.c : ANSIfy all function declarations.
9904 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9905 (fetch_inferior_registers): Re-implement in terms of above.
9906 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9907 (store_inferior_registers): Re-implement in terms of above.
9909 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9911 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9913 * arm-linux-tdep.c: Likewise.
9914 * config/arm/tm-linux.h: Likewise.
9916 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9918 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9919 * config/arm/nbsd.mt (TM_FILE): Delete.
9920 * config/arm/tm-nbsd.h: Delete.
9922 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9924 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9925 Initialize CALL_DUMMY_LENGTH.
9927 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9929 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9931 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9932 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9933 defines one thing and that is incorrect for this port.
9934 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9936 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9938 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9940 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9942 * win32-nat.c (display_selector): New function. Displays information
9943 about the information returned by GetThreadSelectorEntry API function.
9944 (display_selectors): New function. Displays the infomation of
9945 the selector given as argument, or of CS, DS ans FS selectors
9946 if no argument is given.
9947 ( _initialize_inftarg): Add "w32" as info prefix command.
9948 Add "info w32 selector" as command calling display_selectors.
9950 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9952 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9953 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9956 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9958 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9960 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9962 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9963 (arm_fix_call_dummy): Call it.
9964 (arm_call_dummy_breakpoint_offset): Delete.
9965 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9966 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9968 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9970 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9971 Default to func_frame_chain_valid.
9972 * gdbarch.h, gdbarch.c: Re-generate.
9973 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9975 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9977 * ppc-linux-nat.c: Update copyright.
9978 (fetch_register, store_register): Add tid parameter, don't compute
9980 (fetch_ppc_registers, store_ppc_registers): Add tid
9981 parameter. Pass it along to callees.
9982 (fetch_inferior_registers, store_inferior_registers): Compute tid
9983 here, and pass it to calleed functions.
9984 (fill_gregset, supply_fpregset): Clean up formatting.
9986 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9988 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9989 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9991 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9993 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9994 * gdbarch.c gdbarch.h: Regenerate.
9995 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9997 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9998 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9999 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10001 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10002 * arm-tdep.c (arm_get_longjmp_target): New function.
10003 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10004 this to a positive value register arm_get_longjmp_target as the
10006 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10007 (arm_linux_init_abi): Set up longjmp description in tdep.
10008 * armnbsd-nat.c (get_longjmp_target): Delete.
10009 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10010 description in tdep.
10011 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10012 (get_longjmp_target): Delete declaration.
10013 (GET_LONGJMP_TARGET): Delete.
10014 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10015 (GET_LONGJMP_TARGET): Delete.
10017 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10019 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10020 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10021 of ``current_gdbarch''.
10023 2002-02-17 Tom Tromey <tromey@redhat.com>
10025 * cli/cli-cmds.c (compare_strings): New function.
10026 (complete_command): Only print each unique item once.
10027 * completer.h (complete_line): Declare.
10028 * completer.c (complete_line): New function.
10029 (line_completion_function): Use it.
10031 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10033 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10034 * gdbarch.h, gdbarch.c: Re-generate.
10036 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10038 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10040 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10042 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10043 * valops.c (value_arg_coerce): Don't take the address of a reference
10044 to convert an argument to a reference.
10046 2002-02-15 Christopher Faylor <cgf@redhat.com>
10048 * win32-nat.c (get_image_name): New function.
10049 (handle_load_dll): Use get_image_name function.
10050 (get_child_debug_event): Avoid registering debug events until possibly
10051 execed process is started.
10052 (child_create_inferior): Allow invocation via shell so that command
10053 line redirection, etc. works ok.
10054 (_initialize_inftarg): Add new command: "set shell" to control whether
10055 a shell is used to start a process.
10057 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10059 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10060 instead of find_register_by_number.
10061 (cannot_store_register): Likewise.
10063 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10065 * dwarf2read.c: Replace fprintf (stderr, ...) by
10066 fprintf_unfiltered (gdb_stderr, ...).
10068 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10070 * gdbserver/gdbserver.1: Document --attach.
10072 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10074 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10076 * arm-tdep.c (arm_default_arm_le_breakpoint)
10077 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10078 (arm_default_thumb_be_breakpoint): New. Initialize them from
10079 traditional breakpoint defines.
10080 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10081 (arm_gdbarch_init): Initialize new breakpoint variables.
10082 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10083 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10084 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10085 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10087 (arm_netbsd_init_abi_common): ... here; new function.
10088 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10089 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10090 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10091 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10093 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10095 * arm-tdep.h (enum arm_abi): New enum.
10096 (struct gdbarch_tdep): New structure.
10097 (LOWEST_PC): Provide a default.
10098 (arm_gdbarch_register_os_abi): Declare new function.
10099 * arm-tdep.c (arm_abi_names): New array.
10100 (process_note_abi_tag_sections): New function.
10101 (get_elfosabi): New function.
10102 (arm_gdbarch_register_os_abi): New function.
10103 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10104 support for that ABI has been built in, then call the appropriate
10105 configuration routine. Use gdbarch_num_regs() to get the number
10107 (arm_dump_tdep): New function.
10108 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10109 place-holder functions.
10110 (_initialize_arm_tdep): Register them.
10111 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10113 * armnbsd-tdep.c: New file.
10114 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10115 * config/arm/nbsd.mt (TDEPFILES): Add it.
10116 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10118 * armnbsd-nat.c: Include regcache.h.
10119 * Makefile.in (armnbsd-nat.o): Update dependency list.
10121 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10123 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10125 * gdbserver/Makefile.in: Fix typos in target rules.
10127 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10129 Fix part of PR gdb/267.
10130 * linespec.c (find_methods): Handle constructors specially for now.
10132 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10134 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10136 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10137 standard_coerce_float_to_double().
10139 2002-02-14 Christopher Faylor <cgf@redhat.com>
10141 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10144 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10146 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10147 find_variant_by_name, because it confuses the multiarch
10148 framework. Return NULL if there isn't an architecture with the
10149 user supplied name, instead of forcing a different one without
10150 recording the change with the multiarch machinery.
10151 (find_variant_by_name): Delete.
10153 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10155 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10156 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10158 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10160 * stack.c (print_frame_info_base): When calling
10161 print_frame_info_listing_hook, set current_source_symtab.
10163 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10165 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10166 and remove unused $(INCLUDE_DIR).
10167 Add regcache.c to OBS.
10168 Add generated register protocol files to clean target.
10169 Update dependencies for new objects, obsolete old target code.
10171 * gdbserver/linux-low.c: Remove all platform-specific code to
10172 new files. Remove various dead code. Update to use regcache
10174 * gdbserver/remote-utils.c (fromhex): Add return statement
10176 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10178 (input_interrupt): Add integer parameter to match prototype
10179 of a signal handler.
10180 (outreg): Use register_data ().
10181 (prepare_resume_reply): Use gdbserver_expedite_regs.
10182 * gdbserver/server.c (main): Dynamically allocate own_buf because
10183 PBUFSIZ is no longer constant. Use registers_to_string () and
10184 registers_from_string ().
10185 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10186 for error (), fatal (), and warning (). Update definition of
10187 PBUFSIZ to use regcache functionality. Add include guard.
10188 * gdbserver/utils.c (fatal): Add missing ``const''.
10189 (warning): New function.
10191 * regformats/regdat.sh: Include "regcache.h" in generated files.
10192 Provide init_registers () function.
10193 * regformats/regdef.h: Add prototype for set_register_cache ().
10196 * gdbserver/linux-arm-low.c: New file.
10197 * gdbserver/linux-i386-low.c: New file.
10198 * gdbserver/linux-ia64-low.c: New file.
10199 * gdbserver/linux-m68k-low.c: New file.
10200 * gdbserver/linux-mips-low.c: New file.
10201 * gdbserver/linux-ppc-low.c: New file.
10202 * gdbserver/linux-sh-low.c: New file.
10204 * gdbserver/regcache.c: New file.
10205 * gdbserver/regcache.h: New file.
10207 * gdbserver/low-linux.c: Removed obsolete file.
10209 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10211 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10212 * config/i386/linux.mt: Likewise.
10213 * config/ia64/linux.mt: Likewise.
10214 * config/m68k/linux.mh: Likewise.
10215 * config/powerpc/linux.mh: Likewise.
10216 * config/mips/linux.mt: Likewise.
10218 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10220 * config/i386/i386lynx.mh: Mark gdbserver variables
10221 as (currently) obsolete for this target.
10222 * config/i386/nbsd.mt: Likewise.
10223 * config/i386/nbsdelf.mt: Likewise.
10224 * config/m32r/m32r.mt: Likewise.
10225 * config/m68k/m68klynx.mh: Likewise.
10226 * config/m68k/nbsd.mt: Likewise.
10227 * config/m68k/sun3os4.mh: Likewise.
10228 * config/mips/vr5000.mt: Likewise.
10229 * config/ns32k/nbsd.mt: Likewise.
10230 * config/pa/hppabsd.mh: Likewise.
10231 * config/pa/hppaosf.mh: Likewise.
10232 * config/powerpc/nbsd.mt: Likewise.
10233 * config/rs6000/rs6000lynx.mh: Likewise.
10234 * config/s390/s390.mt: Likewise.
10235 * config/s390/s390x.mt: Likewise.
10236 * config/sparc/sparclynx.mh: Likewise.
10237 * config/sparc/sun4os4.mh: Likewise.
10238 * config/i386/x86-64linux.mt: Likewise.
10239 * config/sparc/linux.mh: Likewise.
10241 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10243 * configure.tgt: Configure gdbserver only for known working
10244 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10245 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10246 SUBDIRS if it is configured. Update comment for ${nativefile}.
10247 * configure: Regenerated.
10249 2002-02-13 Michael Snyder <msnyder@redhat.com>
10251 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10253 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10254 (default_gcore_mach): Just return 0, work around a problem in bfd.
10255 (default_gcore_target): OK to return NULL if exec_bfd is null.
10256 (make_mem_sec): Use a cast, avoid a warning.
10258 * procfs.c (find_memory_regions_callback): Use a cast instead of
10259 calling host_pointer_to_address (which complains if
10260 sizeof (host pointer) != sizeof (target pointer)).
10261 (procfs_make_note_section): Avoid overflow in psargs string.
10263 * procfs.c (procfs_make_note_section): Make the default
10264 implementation return an error.
10266 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10268 * procfs.c (procfs_make_note_section): Provide a default definition
10269 (for alpha-dec-osf4.0f). Fix typos.
10271 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10273 * linux-proc.c: Add include of regcache.h.
10274 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10276 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10278 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10279 * memattr.c (create_mem_region): Disallow useless empty region.
10280 Regions are half-open intervals, so allow [A..B) [B..C) as
10283 2002-02-13 Michael Chastain <mec@shout.net>
10285 * defs.h: Kill CONST_PTR.
10286 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10287 * c-lang.c (c_builtin_types): Likewise.
10288 * ch-lang.c (ch_builtin_types): Likewise.
10289 * f-lang.c (f_builtin_types): Likewise.
10290 * language.c (unknown_builtin_types): Likewise.
10291 * m2-lang.c (m2_builtin_types): Likewise.
10292 * p-lang.c (pascal_builtin_types): Likewise.
10293 * scm-lang.c (c_builtin_types): Likewise.
10295 2002-02-13 Keith Seitz <keiths@redhat.com>
10297 * arm-tdep.h (arm_get_next_pc): Add declaration.
10299 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10301 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10302 with other related struct-returning functions.
10303 (arm_extract_struct_value_address): New function.
10304 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10305 initialize float_format, double_format and long_double_format as
10306 appropriate to the endianness of the target.
10307 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10308 (arm_use_struct_convention): Delete declaration.
10309 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10311 2002-02-13 Keith Seitz <keiths@redhat.com>
10313 * defs.h (core_addr_to_string_nz): New function.
10315 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10317 Apply missing bits of 2002-01-15 patch.
10318 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10319 (fill_fpregset): Use i387_fill_fsave.
10321 2002-02-12 Keith Seitz <keiths@redhat.com>
10323 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10324 (core_addr_to_string_nz): New function.
10326 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10328 * arm-linux-nat.c: Really include arm-tdep.h.
10329 * config/arm/tm-linux.h (struct type, struct value): Declare.
10331 2002-02-11 Michael Snyder <msnyder@redhat.com>
10333 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10334 (gcore section): Ifdef for Solaris and Unixware only.
10335 (procfs_do_thread_registers): Unixware needs one lwpstatus
10336 per thread (not one prstatus or pstatus).
10337 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10338 not over all gdb threads. For unixware, call elfcore_write_pstatus
10339 once before iterating over threads.
10341 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10343 * arm-tdep.h: New file.
10344 * arm-tdep.c: Include arm-tdep.h.
10345 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10346 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10347 (arm_print_float_info, arm_register_type, convert_to_extended)
10348 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10349 (arm_extract_return_value, arm_register_name): Make static.
10350 (arm_software_single_step): Similarly. Fix types in declaration.
10351 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10352 (arm_store_return_value, arm_store_struct_return): New functions.
10353 (arm_gdbarch_init): Register the above functions. Also register
10354 call_dummy_start_offset, sizeof_call_dummy_words,
10355 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10356 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10357 max_register_virtual_size, register_size. Set up
10358 prologue_cache.saved_regs here, rather than ...
10359 (_initialize_arm_tdep): ... here.
10360 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10362 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10363 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10364 (arm_print_float_info, arm_register_type, convert_to_extended)
10365 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10366 (arm_extract_return_value, arm_register_name): Delete declarations.
10367 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10368 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10369 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10370 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10371 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10372 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10373 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10374 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10375 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10376 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10377 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10378 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10380 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10381 * remote-rdi.c remote-rdp.c: Likewise.
10382 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10383 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10384 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10387 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10388 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10389 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10390 from non-ARM_ prefixed definitions.
10391 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10393 * remote-rdi.c remote-rdp.c: Likewise.
10394 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10396 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10398 * arm-tdep.c (arm_frameless_function_invocation)
10399 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10400 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10401 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10402 (arm_pop_frame, arm_get_next_pc): Make static.
10403 (arm_gdbarch_init): Register above in gdbarch structure.
10404 (arm_read_fp): Renamed from arm_target_read_fp.
10405 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10406 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10407 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10408 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10409 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10410 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10411 (arm_pc_is_thumb_dummy): Delete declarations.
10412 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10413 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10414 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10415 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10417 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10419 * symtab.c (compare_search_syms): New function.
10420 (sort_search_symbols): New function.
10421 (search_symbols): Sort symbols after searching rather than
10424 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10426 * NEWS: Linux -> GNU/Linux.
10428 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10430 * gdbarch.sh: For for level one methods, disallow a definition
10431 when partially multi-arched. Add comments explaining rationale.
10432 * gdbarch.h: Re-generate.
10434 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10436 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10437 multi-arch partial.
10439 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10441 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10442 field. Use diff -u.
10443 * gdbarch.c: Re-generate.
10445 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10447 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10448 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10451 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10453 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10454 multi-arch partial.
10455 (PUSH_ARGUMENTS): Switch to using predefault.
10456 * gdbarch.c: Regenerate.
10458 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10460 * valops.c (PUSH_ARGUMENTS): Delete definition.
10461 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10462 partial. Default to default_push_arguments.
10463 * gdbarch.h, gdbarch.c: Regenerate.
10465 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10467 * defs.h (throw_exception): Rename return_to_top_level. Update
10469 * utils.c (error_stream, internal_verror, quit): Ditto.
10470 * top.c (throw_exception, catcher): Ditto.
10471 * sparclet-rom.c (sparclet_load): Ditto.
10472 * remote.c (interrupt_query, minitelnet): Ditto.
10473 * remote-sds.c (interrupt_query): Ditto.
10474 * remote-mips.c (mips_error, mips_kill): Ditto.
10475 * ocd.c (interrupt_query): Ditto.
10476 * monitor.c (monitor_interrupt_query): Ditto.
10477 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10478 * target.h: Update comment.
10480 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10482 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10484 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10485 default_double_format.
10486 * gdbarch.h, gdbarch.c: Re-generate.
10487 * findvar.c (floatformat_unknown): Delete variable definition.
10488 * doublest.h (floatformat_unknown): Delete variable declaration.
10490 2002-02-09 Jim Blandy <jimb@redhat.com>
10492 * stabsread.c (read_type): Add code to parse Sun's syntax for
10493 prototyped function types.
10495 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10497 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10498 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10500 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10502 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10503 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10504 now _initialize_xcoffsolib gets called again and overrides the
10505 commands from solib.c in a native configuration.
10507 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10509 * doublest.c (store_typed_floating): Don't try to return a value.
10512 2002-02-08 Jim Blandy <jimb@redhat.com>
10514 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10515 is prototyped and has no arguments, print its argument list as
10518 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10520 * MAINTAINERS (write-after-approval): Add myself.
10521 (paper-trail): I've escaped!
10523 2002-02-08 Christopher Faylor <cgf@redhat.com>
10525 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10527 (_initialize_check_for_gdb_ini): Ditto.
10529 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10531 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10532 xaprintf -> xasprintf.
10534 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10536 * win32-nat.c: Remove use of printf and sprintf functions.
10538 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10540 * arm-tdep.c (arm_frame_chain_valid): Make static.
10541 (arm_push_arguments): Likewise.
10542 (arm_gdbarch_init): New function.
10543 (_initialize_arm_tdep): Call it.
10544 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10545 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10546 (FRAME_CHAIN_VALID): Delete.
10547 (arm_frame_chain_valid): Delete declaration.
10548 (PUSH_ARGUMENTS): Delete.
10549 (arm_push_arguments): Delete declaration.
10550 (CALL_DUMMY_P): Delete.
10552 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10553 Corinna Vinschen <vinschen@redhat.com>
10555 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10556 on builtin float types.
10558 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10560 * utils.c: Include <curses.h> before "bfd.h".
10561 * tui/tui-hooks.c: Likewise.
10562 * tui/tui.c: Likewise.
10563 * tui/tuiCommand.c: Likewise.
10564 * tui/tuiData.c: Likewise.
10565 * tui/tuiDataWin.c: Likewise.
10566 * tui/tuiDisassem.c: Likewise.
10567 * tui/tuiGeneralWin.c: Likewise.
10568 * tui/tuiIO.c: Likewise.
10569 * tui/tuiLayout.c: Likewise.
10570 * tui/tuiRegs.c: Likewise.
10571 * tui/tuiSource.c: Likewise.
10572 * tui/tuiSourceWin.c: Likewise.
10573 * tui/tuiStack.c: Likewise.
10574 * tui/tuiWin.c: Likewise.
10576 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10578 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10579 to include space for pseudoregs as well. Update loops accordingly.
10580 (sh_fp_frame_init_saved_regs): Ditto.
10581 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10583 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10585 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10586 Add Richard Earnshaw to Arm maintainers.
10588 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10590 * defs.h (warning_begin): Delete declaration.
10592 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10595 2002-02-07 Michael Snyder <msnyder@redhat.com>
10597 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10598 Logic bug, remove misplaced else.
10600 2002-02-07 Klee Dienes <klee@apple.com>
10602 * fork-inferior.c (fork_inferior): Add '!' to the list of
10603 characters that need to be quoted when building a string for the
10604 shell. Quote '!' specifically with a backslash, since CSH chokes
10605 when trying to evaluate "str!str".
10607 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10609 * rdi-share/host.h: Only provide a typedef for bool if it is not
10612 2002-02-04 Michael Snyder <msnyder@redhat.com>
10614 * breakpoint.h (enum bptype): Add new overlay event bp type.
10615 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10617 * breakpoint.c (create_internal_breakpoint): New function.
10618 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10619 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10620 (create_thread_event_breakpoint): Ditto.
10621 (create_solib_event_breakpoint): Ditto.
10622 (create_overlay_event_breakpoint): New function.
10623 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10624 (update_breakpoints_after_exec): Delete and re-initialize
10625 overlay event breakpoints after an exec. Add FIXME comment
10626 about longjmp breakpoint.
10627 (print_it_typical): Ignore overlay event breakpoints.
10628 (print_one_breakpoint): Ditto.
10630 (bpstat_what): Do not stop for overlay event breakpoints.
10631 (delete_breakpoint): Don't delete overlay event breakpoints.
10632 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10633 (breakpoint_re_set): Re-create overlay event breakpoint.
10635 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10636 (overlay_manual_command): Disable overlay breakpoints.
10637 (overlay_off_command): Disable overlay breakpoints.
10639 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10641 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10642 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10643 to here from config/tm-arm.h.
10644 (coff_sym_is_thumb): Make static.
10645 (arm_elf_make_msymbol_special): New function.
10646 (arm_coff_make_msymbol_special): New function.
10647 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10648 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10649 (coff_sym_is_thumb): Delete declaration.
10650 (arm_elf_make_msymbol_special): Declare.
10651 (arm_coff_make_msymbol_special): Declare.
10652 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10653 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10655 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10657 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10659 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10661 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10662 * gdbarch.c gdbarch.h: Regenerate.
10663 * arch-utils.c (default_print_float_info): New function.
10664 * arch-utils.h (default_print_float_info): Prototype it.
10665 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10666 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10667 (PRINT_FLOAT_INFO): Document it.
10669 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10670 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10671 (PRINT_FLOAT_INFO): Define.
10673 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10675 * win32-nat.c (_initialize_check_for_gdb_ini):
10676 Add typecast to sprintf argument to suppress a warning.
10678 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10680 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10681 to allow easier handling of pass state.
10682 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10683 that gives exception name and address.
10684 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10685 and set last_sig value to ourstatus->value.sig. Some missing
10687 (child_continue): Correctly report continue_status.
10688 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10689 TARGET_SIGNAL_0 (new default value).
10690 (child_resume): consider sig argument passed to decide if
10691 the exception should be passed to debuggee or not.
10693 2002-02-05 Michael Snyder <msnyder@redhat.com>
10695 * regcache.c (fetch_register): Call target_fetch_register
10696 only if we don't call FETCH_PSEUDO_REGISTER.
10697 (store_register): Call target_store_register only if we
10698 don't call STORE_PSEUDO_REGISTER.
10700 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10702 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10703 ELF_MAKE_MSYMBOL_SPECIAL.
10704 * gdbarch.c, gdbarch.h: Regenerate.
10705 * arch-utils.c (default_make_msymbol_special): New function.
10706 * arch-utils.h (default_make_msymbol_special): Export.
10707 * elfread.c (elf_symtab_read): Compile use of
10708 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10710 * coffread.c (coff_symtab_read): Ditto, for
10711 COFF_MAKE_MSYMBOL_SPECIAL.
10713 2002-02-05 Jim Blandy <jimb@redhat.com>
10715 * solib-svr4.c (svr4_truncate_ptr): New function.
10716 (svr4_relocate_section_addresses): Do the address arithmetic with
10717 the appropriate truncation for target addresses, even when
10718 CORE_ADDR is larger than a target address.
10720 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10722 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10725 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10727 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10730 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10732 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10734 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10736 * gdbserver/linux-low.c: Remove unused include files.
10738 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10740 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10741 (read_inferior_memory): Use it.
10742 (write_inferior_memory): Likewise.
10744 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10746 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10747 grubbing through sys_errlist.
10749 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10751 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10753 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10754 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10756 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10758 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10759 (do_sfunc, set_cmd_sfunc): New functions.
10761 * command.h (struct cmd_list_element): Add field func.
10762 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10763 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10764 * cli/cli-decode.h: Ditto.
10766 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10767 (help_all, help_cmd_list): Ditto.
10768 (find_cmd, complete_on_cmdlist): Ditto.
10769 * top.c (execute_command): Ditto.
10771 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10774 * infcmd.c (notice_args_read): Fix function signature.
10776 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10777 * cli/cli-decode.c (add_set_cmd): Ditto.
10778 * utils.c (initialize_utils): Ditto.
10779 * maint.c (_initialize_maint_cmds): Ditto.
10780 * infrun.c (_initialize_infrun): Ditto.
10781 * demangle.c (_initialize_demangler): Ditto.
10782 * remote.c (add_packet_config_cmd): Ditto.
10783 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10784 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10785 * proc-api.c (_initialize_proc_api): Ditto.
10786 * kod.c (_initialize_kod): Ditto.
10787 * valprint.c (_initialize_valprint): Ditto.
10788 * top.c (init_main): Ditto.
10789 * infcmd.c (_initialize_infcmd): Ditto.
10790 * corefile.c (_initialize_core): Ditto.
10791 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10792 * arch-utils.c (initialize_current_architecture): Ditto.
10793 (_initialize_gdbarch_utils): Ditto.
10794 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10796 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10797 * wince.c (_initialize_inftarg): Ditto.
10798 * symfile.c (_initialize_symfile): Ditto.
10799 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10800 * language.c (_initialize_language): Ditto.
10801 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10803 2002-02-04 Michael Snyder <msnyder@redhat.com>
10805 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10807 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10809 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10810 Add rules for building the register data files.
10812 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10814 * regformats/regdat.sh: Add braces to the definition of
10815 expedite_regs_${arch}.
10817 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10819 * regformats/regdef.h (struct reg): Add comment describing the
10820 requirements for offset and size fields.
10822 2002-02-04 Andreas Schwab <schwab@suse.de>
10824 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10825 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10827 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10829 * gdbarch.sh (copyright): Update years in generated header.
10830 (SMASH_TEXT_ADDRESS): Add rule.
10831 * gdbarch.h, gdbarch.c: Re-generate.
10832 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10833 * dbxread.c: Likewise.
10834 * dwarfread.c: Likewise.
10835 * elfread.c: Likewise.
10836 * somread.c: Likewise.
10838 * arm-tdep.c (arm_smash_text_address): New function.
10839 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10841 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10843 Add support for hardware watchpoints on win32 native.
10844 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10845 CONTEXT_DEBUG_REGISTERS.
10846 (dr variable): New variable. Static array containing a local copy
10847 of debug registers.
10848 (debug_registers_changed): New variable. Reflects when debug registers
10849 are changed and need to be written to inferior.
10850 (debug_registers_used): New variable. Reflects when any debug register
10851 was set, used when new threads are created.
10852 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10854 (thread_rec): Set dr array if id is the thread of current_event .
10855 (child_continue, child_resume): Change the debug registers for all
10856 threads if debug_registers_changed.
10857 (child_add_thread): Change the debug registers if debug_registers_used.
10858 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10859 Link nm.h to new nm-cygwin.h file.
10860 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10861 of hardware registers.
10863 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10865 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10866 Restore behavour broken by 2002-01-20 Andrew Cagney
10867 <ac131313@redhat.com> IEEE_FLOAT removal.
10869 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10871 * c-valprint.c (c_val_print): Pass a proper valaddr to
10872 cp_print_class_method.
10873 * valops.c (search_struct_method): If there is only one method
10874 and args is NULL, return that method.
10876 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10878 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10879 accessing tag_name directly.
10881 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10883 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10884 of accessing tag_name directly.
10886 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10889 * gdbtypes.c (replace_type): New function.
10890 * gdbtypes.h (replace_type): Add prototype.
10891 * stabsread.c (read_type): Use replace_type.
10893 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10895 * Makefile.in (memattr.o): Add missing dependencies rule.
10897 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10899 * breakpoint.c (break_at_finish_command): Really export.
10900 (break_at_finish_at_depth_command): Ditto.
10901 (tbreak_at_finish_command): Ditto.
10902 * hppa-tdep.c: Include completer.h.
10903 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10904 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10906 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10908 * utils.c (do_write): New function.
10909 (error_stream): Rewrite combining the code from error_begin and
10911 (verror): Rewrite using error_stream.
10912 (error_begin): Delete function.
10914 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10916 * utils.c (error_begin): Make static.
10917 * defs.h (error_begin): Delete declaration.
10919 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10920 (decode_line_1): Use cplusplus_error instead of error_begin,
10921 cplusplus_hint and return_to_top_level.
10922 * coffread.c (coff_symfile_read): Use error instead of error_begin
10923 and return_to_top_level.
10924 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10926 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10928 * language.h (type_error, range_error): Make string parameter
10930 * language.c (warning_pre_print): Delete extern declaration.
10931 * dwarfread.c (warning_pre_print): Ditto.
10932 * language.c (type_error, range_error): Rewrite to use verror and
10933 vwarning instead of warning_begin.
10935 2002-02-01 Michael Snyder <msnyder@redhat.com>
10937 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10938 (set_ignore_count): Move misplaced comment back where it belongs.
10940 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10942 * command.h (NO_FUNCTION): Delete macro.
10943 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10944 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10945 * tracepoint.c (_initialize_tracepoint): Ditto.
10946 * cli/cli-decode.c (add_set_cmd): Ditto.
10947 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10949 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10951 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10952 Update ``this'' pointer when calling virtual functions.
10954 2002-02-01 Michael Snyder <msnyder@redhat.com>
10956 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10957 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10959 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10961 * regformats/reg-arm.dat: New file.
10962 * regformats/reg-i386.dat: New file.
10963 * regformats/reg-ia64.dat: New file.
10964 * regformats/reg-m68k.dat: New file.
10965 * regformats/reg-mips.dat: New file.
10966 * regformats/reg-ppc.dat: New file.
10967 * regformats/reg-sh.dat: New file.
10968 * regformats/regdef.h: New file.
10969 * regformats/regdat.sh: New file.
10971 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10973 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10974 (arm_frame_args_address, arm_frame_locals_address): New functions.
10975 (arm_frame_num_args): New function.
10976 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10977 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10978 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10980 2002-01-31 Michael Snyder <msnyder@redhat.com>
10982 * breakpoint.c (break_at_finish_command): Export.
10983 (break_at_finish_at_depth_command): Export.
10984 (tbreak_at_finish_command): Export.
10985 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10986 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10987 "txbreak" commands, which are HPPA specific.
10989 * printcmd.c (disassemble_command): Remove an ancient
10990 artifact of an old merge.
10992 * symfile.h (enum overlay_debugging_state):
10993 Define enum constant values for overlay mode.
10994 * symfile.c (overlay_debugging): Use enums instead of literals.
10995 (overlay_is_mapped, overlay_auto_command,
10996 overlay_manual_command): Ditto.
10998 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10999 breakpoint_here_p, breakpoint_inserted_here_p,
11000 breakpoint_thread_match, bpstat_stop_status,
11001 describe_other_breakpoints, check_duplicates, clear_command):
11002 Coding standard fixes.
11004 * target.c (target_xfer_memory): Add spaces, coding standard.
11005 (do_xfer_memory): Add missing line to trust-readonly
11006 code: check bfd SEC_READONLY flag for section.
11008 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11010 * PROBLEMS: Fix typo, 5.1->5.1.1.
11012 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11014 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11015 data symbols, since we search based on textlow and texthigh.
11016 (find_pc_sect_symtab): Likewise.
11018 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11020 * defs.h (vwarning): Declare.
11021 * utils.c (vwarning): New function.
11022 (warning): Call vwarning.
11023 (warning_begin): Delete function.
11025 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11026 the warning message.
11027 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11030 2002-01-30 Michael Snyder <msnyder@redhat.com>
11032 * NEWS: Mention "set trust-readonly-sections" command.
11033 Mention generate-core-file command.
11035 2002-01-15 Michael Snyder <msnyder@redhat.com>
11037 * target.c: New command, "set trust-readonly-sections on".
11038 (do_xfer_memory): Honor the suggestion to trust readonly sections
11039 by reading them from the object file instead of from the target.
11040 (initialize_targets): Register command "set trust-readonly-sections".
11042 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11044 * parse.c (target_map_name_to_register): Simplify, search regs and
11045 pseudo-regs using a single loop.
11047 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11049 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11051 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11053 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11054 * config/i386/i386v42mp.mh: Add i387-nat.o .
11055 * i386v4-nat.c: Include i387-nat.h.
11056 (supply_fpregset): Use i387_supply_fsave.
11057 (fill_fpregset): Use i387_fill_fsave.
11059 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11061 * arm-tdep.c (arm_call_dummy_words): Define.
11062 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11063 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11064 (CALL_DUMMY_WORDS): Define.
11065 (arm_call_dummy_words): Declare.
11066 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11067 (arm_linux_call_dummy_words): Declare.
11069 2002-01-30 Andreas Schwab <schwab@suse.de>
11071 * m68klinux-nat.c: Fix last change to use regcache_collect
11072 instead of referencing registers[] directly.
11074 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11076 * parse.c (target_map_name_to_register): Delete code wrapped in
11077 #ifdef REGISTER_NAME_ALIAS_HOOK.
11079 2002-01-28 Michael Snyder <msnyder@redhat.com>
11081 * regcache.c (legacy_read_register_gen): Need to be able to
11082 read pseudo-register as well as real register.
11083 (legacy_write_register_gen): Ditto.
11085 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11087 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11088 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11089 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11090 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11091 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11092 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11093 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11094 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11095 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11096 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11097 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11098 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11099 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11100 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11101 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11102 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11103 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11104 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11105 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11106 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11108 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11110 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11111 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11112 (initialize_current_architecture): Update target_byte_order using
11113 information from BFD.
11114 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11115 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11117 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11119 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11120 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11122 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11123 #ifdef INVALID_FLOAT.
11124 * infcmd.c (do_registers_info): Ditto.
11125 * values.c (unpack_double): Ditto. Add comment.
11127 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11128 already commented out.
11130 2002-01-26 Andreas Schwab <schwab@suse.de>
11132 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11133 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11134 registers and add support for PTRACE_GETREGS.
11136 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11138 GDB 5.1.1 released from 5.1 branch.
11139 * NEWS: Add 5.1.1 news.
11140 * README: Sync with 5.1 branch.
11142 2002-01-23 Fred Fish <fnf@redhat.com>
11144 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11145 stabstring on initial malloc. Reallocing will copy it for us,
11148 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11150 * Makefile.in (hpread_h): Delete.
11151 (HFILES_NO_SRCDIR): Remove hpread.h.
11152 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11153 (hpread.o): Update dependencies.
11154 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11156 * hp-psymtab-read.c: Remove file.
11157 * hp-symtab-read.c: Remove file.
11158 * hpread.h: Remove file.
11160 * hpread.c: Merge all contents of hp-psymtab-read.c,
11161 hp-symtab-read.c and hpread.h into this file, as it was prior to
11164 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11165 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11166 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11167 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11169 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11171 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11172 fill_gregset): Call gdbarch_tdep() just once, assign result to
11173 variable and use that, instead of calling the function several
11176 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11178 * configure.host: Accept sparcv9 as alias for sparc64.
11179 * configure.tgt: Likewise.
11181 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11183 * solib-aix5.c (build_so_list_from_mapfile)
11184 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11185 arguments is not reversed.
11186 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11187 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11189 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11191 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11192 modified version of obsolete sh_fetch_pseudo_register.
11193 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11194 (sh4_register_read): New function.
11195 (sh_pseudo_register_write): New function. Renamed and modified
11196 version of obsolete sh_store_pseudo_register.
11197 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11198 (sh4_register_write): New function.
11199 (sh_gdbarch_init): Remove setting of gdbarch function
11200 fetch_pseudo_register and store_pseudo_register. Remove setting of
11201 register_convert_to_raw, register_convert_to_virtual,
11202 register_convertible.
11203 (sh_sh4_register_convertible): Delete. No longer needed. All is
11204 taken care by architecture specific functions
11205 register_read/register_write.
11206 (sh_sh4_register_convert_to_virtual): Make static.
11207 (sh_sh4_register_convert_to_raw): Ditto.
11209 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11211 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11212 (floatformat_is_nan, floatformat_mantissa): Ditto.
11214 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11215 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11216 builtin_type_ieee_double_little,
11217 builtin_type_ieee_double_littlebyte_bigword,
11218 builtin_type_m68881_ext, builtin_type_i960_ext,
11219 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11220 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11221 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11222 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11224 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11226 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11227 parameter. Set frameless flag if it exists and depended of
11228 whether the scanned function is frameless or not.
11229 (xstormy16_skip_prologue): If function is frameless, return
11230 result of xstormy16_scan_prologue().
11231 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11234 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11236 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11237 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11238 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11239 sh_sh4_register_byte, sh_sh4_register_raw_size,
11240 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11241 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11242 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11243 sh_store_pseudo_register, sh_do_pseudo_register): Call
11244 gdbarch_tdep() just once, assign result to variable and use that,
11245 instead of calling the function several times.
11247 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11249 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11250 macros instead of LAST_FPU_CTRL_REGNUM.
11251 (store_register): Likewise.
11253 2002-01-21 Jim Blandy <jimb@redhat.com>
11255 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11256 is up-to-date before running the program, not just when a program
11259 2002-01-21 Fred Fish <fnf@redhat.com>
11261 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11262 when we have found all instructions we are looking for.
11264 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11266 * arm-tdep.c (arm_register_name): New function.
11267 (arm_registers_names): Make static.
11268 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11269 (arm_register_name): Declare.
11270 (REGISTER_NAME): Use it.
11272 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11273 Kevin Buettner <kevinb@redhat.com>
11275 Convert arm targets to new FRAME interface.
11276 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11277 (arm_frame_find_save_regs): Delete.
11278 (arm_frame_init_saved_regs): New.
11279 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11280 Allocate extra_info as required. Convert all uses of fsr.regs
11281 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11283 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11284 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11285 (check_prologue_cache, save_prologue_cache): Likewise.
11286 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11287 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11288 (FRAME_FIND_SAVED_REGS): Delete.
11289 (arm_frame_find_saved_regs): Delete prototype.
11290 (arm_frame_init_saved_regs): New prototype.
11291 (FRAME_INIT_SAVED_REGS): Define.
11293 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11295 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11297 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11299 From Jeff Law <law@redhat.com>:
11300 * infttrace.c: Include <sys/pstat.h>.
11301 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11302 exec file if the ttrace equivalent fails.
11304 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11306 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11307 (closeLogFile): Ditto.
11309 2002-01-20 Michael Chastain <mec@shout.net>
11311 * top.c (print_gdb_version): Bump copyright year to 2002.
11313 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11315 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11316 Zannoni and Eli Zaretskii.
11318 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11320 * buildsym.c: Update copyright years.
11321 * c-typeprint.c: Likewise.
11322 * dwarf2read.c: Likewise.
11323 * f-typeprint.c: Likewise.
11324 * gdbtypes.c: Likewise.
11325 * gdbtypes.h: Likewise.
11326 * hp-symtab-read.c: Likewise.
11327 * hpread.c: Likewise.
11328 * mdebugread.c: Likewise.
11329 * p-typeprint.c: Likewise.
11331 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11333 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11334 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11335 byte-order selectable.
11336 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11337 * arch-utils.c: Ditto.
11338 (set_endian): Ditto.
11339 (set_endian_from_file): Ditto.
11340 * gdbserver/low-sim.c (create_inferior): Ditto.
11341 * gdbarch.sh: Ditto.
11342 * gdbarch.h: Re-generate.
11343 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11344 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11345 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11346 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11347 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11348 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11349 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11350 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11352 * config/mips/tm-wince.h: Remove #undef of macro
11353 TARGET_BYTE_ORDER_SELECTABLE.
11354 * config/sh/tm-wince.h: Ditto.
11356 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11358 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11359 member function fields. Add accessor macro
11360 TYPE_FN_FIELD_ARTIFICIAL.
11361 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11362 * c-typeprint.c (c_type_print_base): Skip artificial member
11365 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11367 * f-typeprint.c: Delete unused function f_type_print_args.
11368 * p-typeprint.c: Delete unused function pascal_type_print_args.
11370 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11372 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11373 comment. Add ``artificial'' to ``union field_location''.
11375 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11377 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11378 * mdebugread.c (parse_symbol): Likewise.
11379 * stabsread.c (define_symbol): Likewise.
11380 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11381 initializing TYPE_FIELD_BITPOS to n (obsolete).
11382 (hpread_doc_function_type): Likewise.
11383 * hpread.c (hpread_function_type): Likewise.
11385 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11387 * configure.in (host_makefile_frag): Only require a host makefile
11388 fragment when a native build.
11389 * configure: Re-generate.
11391 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11393 * doublest.h (floatformat_from_type): Declare.
11394 * doublest.c (floatformat_from_type): New function.
11395 (convert_typed_floating): Use.
11397 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11398 call to function floatformat_from_type.
11400 * gdbarch.sh (IEEE_FLOAT): Delete.
11401 * gdbarch.h, gdbarch.c: Re-generate.
11402 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11403 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11404 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11405 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11406 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11407 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11408 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11409 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11410 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11411 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11412 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11413 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11415 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11416 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11417 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11418 * sh-tdep.c (sh_gdbarch_init): Ditto.
11419 * mips-tdep.c (mips_gdbarch_init): Ditto.
11420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11421 * cris-tdep.c (cris_gdbarch_init): Ditto.
11423 2002-01-20 Jiri Smid <smid@suse.cz>
11425 * configure.host, configure.tgt: Support x86-64.
11426 * NEWS: Note new target x86-64.
11428 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11429 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11430 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11431 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11432 x86-64-linux-nat.o): Fix dependencies.
11434 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11436 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11437 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11438 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11439 * config/sparc/xm-sun4os4.h: Delete file.
11440 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11442 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11444 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11445 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11446 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11447 * config/i386/i386lynx.mh (XM_FILE): Delete.
11448 * config/rs6000/xm-rs6000ly.h: Delete file.
11449 * config/sparc/xm-sparclynx.h: Delete file.
11450 * config/m68k/xm-m68klynx.h: Delete file.
11451 * config/i386/xm-i386lynx.h: Delete file.
11452 * config/xm-lynx.h: Delete file.
11453 * config/djgpp/fnchange.lst: Update.
11455 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11457 * alpha-tdep.c (alpha_register_byte): New function.
11458 (alpha_register_raw_size): Ditto.
11459 (alpha_register_virtual_size): Ditto.
11460 (alpha_skip_prologue_internal): Renamed from
11461 alpha_skip_prologue.
11462 (alpha_skip_prologue): New version that calls
11463 alpha_skip_prologue_internal.
11464 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11465 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11466 second argument from alpha_skip_prologue.
11467 (REGISTER_BYTE): Use alpha_register_byte.
11468 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11469 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11470 (FRAMELESS_FUNCTION_INVOCATION): Use
11471 generic_frameless_function_invocation_not.
11472 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11473 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11475 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11477 * config/mips/xm-news-mips.h: Delete file.
11478 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11480 * config/m88k/xm-m88k.h: Delete file.
11481 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11482 * config/m88k/xm-delta88v4.h: Ditto.
11483 * config/m88k/xm-delta88.h: Ditto.
11485 * config/alpha/xm-fbsd.h: Delete file.
11486 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11488 * config/sparc/xm-sparc.h: Delete file.
11489 * Makefile.in (xm-sun4os4.h): Delete dependency.
11490 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11491 * config/sparc/xm-sun4os4.h: Ditto.
11492 * config/sparc/xm-linux.h: Ditto.
11494 * config/i386/xm-windows.h: Delete file.
11496 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11498 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11499 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11501 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11503 * alpha-tdep.c (alpha_call_dummy_words): New.
11504 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11505 (CALL_DUMMY_P): Define.
11506 (CALL_DUMMY_WORDS): Define.
11507 (SIZEOF_CALL_DUMMY_WORDS): Define.
11509 2002-01-19 Per Bothner <per@bothner.com>
11511 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11512 isn't NULL, which can happen with some gcj-3.x-produced code.
11514 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11516 * alpha-tdep.c (alpha_register_virtual_type): New function.
11517 (alpha_init_frame_pc_first): Ditto.
11518 (alpha_fix_call_dummy): Ditto.
11519 (alpha_store_struct_return): Ditto.
11520 (alpha_extract_struct_value_address): Ditto.
11521 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11522 alpha_register_virtual_type.
11523 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11524 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11525 alpha_extract_struct_value_address.
11526 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11527 (INIT_FRAME_PC): Use init_frame_pc_noop.
11528 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11530 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11532 * i386gnu-nat.c: Include "i386-tdep.h".
11533 (fetch_fpregs): Simplify code dealing with uninitialized floating
11534 point states such that it doesn't require FP7_REGNUM.
11536 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11538 * alpha-tdep.c (frame_extra_info): New.
11539 (alpha_find_saved_regs): Make static. Use
11541 (alpha_frame_init_saved_regs): New function.
11542 (alpha_frame_saved_pc): Use frame->extra_info.
11543 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11544 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11545 (init_extra_frame_info): Rename to...
11546 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11547 (alpha_print_extra_frame_info): New function.
11548 (alpha_frame_locals_address): Ditto.
11549 (alpha_frame_args_address): Ditto.
11550 (alpha_pop_frame): Use frame->extra_info.
11551 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11552 alpha_frame_args_address.
11553 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11554 (alpha_find_saved_regs): Remove prototype.
11555 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11556 (EXTRA_FRAME_INFO): Remove.
11557 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11558 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11560 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11562 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11563 (alpha_cannot_fetch_register): Ditto.
11564 (alpha_cannot_store_register): Ditto.
11565 (alpha_register_convertible): Ditto.
11566 (alpha_use_struct_convention): Ditto.
11567 * config/alpha/tm-alpha.h: Update copyright years.
11568 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11569 (INNER_THAN): Use core_addr_lessthan.
11570 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11571 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11572 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11573 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11574 (FRAME_CHAIN): Remove unnecessary cast.
11576 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11578 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11581 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11583 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11584 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11585 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11586 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11587 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11588 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11589 * x86-64-linux-nat.c: Ditto.
11591 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11593 * alpha-tdep.c (alpha_register_name): New function.
11594 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11595 (REGISTER_NAME): Define.
11597 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11599 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11601 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11603 * alpha-tdep.c: Update copyright years.
11604 (alpha_next_pc): New function.
11605 (alpha_software_single_step): Ditto.
11606 * config/alpha/tm-alpha.h: Add prototype for
11607 alpha_software_single_step.
11609 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11611 * alphabsd-nat.c: Update copyright years.
11612 (fill_gregset): Use regcache_collect.
11613 (fill_fpregset): Likewise.
11614 (fetch_inferior_registers): Only fetch integer registers
11615 if requested to do so.
11616 (store_inferior_registers): Only store integer registers
11617 if requested to do so.
11619 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11621 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11622 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11623 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11624 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11625 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11626 * config/arm/linux.mh (XDEPFILES): Delete.
11627 * config/arm/nbsd.mh (XDEPFILES): Delete.
11628 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11629 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11630 * config/i386/i386m3.mh (XDEPFILES): Delete.
11631 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11632 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11633 * config/i386/fbsd.mh (XDEPFILES): Delete.
11634 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11635 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11636 * config/i386/i386v4.mh (XDEPFILES): Delete.
11637 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11638 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11639 * config/i386/i386aix.mh (XDEPFILES): Delete.
11640 * config/i386/go32.mh (XDEPFILES): Delete.
11641 * config/i386/cygwin.mh (XDEPFILES): Delete.
11642 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11643 * config/i386/i386mach.mh (XDEPFILES): Delete.
11644 * config/i386/i386v32.mh (XDEPFILES): Delete.
11645 * config/i386/linux.mh (XDEPFILES): Delete.
11646 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11647 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11648 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11649 * config/i386/i386sco.mh (XDEPFILES): Delete.
11650 * config/i386/i386v.mh (XDEPFILES): Delete.
11651 * config/i386/nbsd.mh (XDEPFILES): Delete.
11652 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11653 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11654 * config/i386/symmetry.mh (XDEPFILES): Delete.
11655 * config/i386/obsd.mh (XDEPFILES): Delete.
11656 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11657 * config/ia64/linux.mh (XDEPFILES): Delete.
11658 * config/ia64/aix.mh (XDEPFILES): Delete.
11659 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11660 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11661 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11662 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11663 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11664 * config/m68k/linux.mh (XDEPFILES): Delete.
11665 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11666 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11667 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11668 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11669 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11670 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11671 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11672 * config/m88k/delta88.mh (XDEPFILES): Delete.
11673 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11674 * config/m88k/m88k.mh (XDEPFILES): Delete.
11675 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11676 * config/mips/linux.mh (XDEPFILES): Delete.
11677 * config/mips/irix6.mh (XDEPFILES): Delete.
11678 * config/mips/irix5.mh (XDEPFILES): Delete.
11679 * config/mips/irix4.mh (XDEPFILES): Delete.
11680 * config/mips/irix3.mh (XDEPFILES): Delete.
11681 * config/mips/decstation.mh (XDEPFILES): Delete.
11682 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11683 (NATDEPFILES): Move core-aout.o to here.
11684 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11685 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11686 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11687 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11688 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11689 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11690 * config/pa/hpux11.mh (XDEPFILES): Delete.
11691 * config/powerpc/aix.mh (XDEPFILES): Delete.
11692 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11693 * config/powerpc/linux.mh (XDEPFILES): Delete.
11694 * config/romp/rtbsd.mh: Rename XDEPFILES.
11695 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11696 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11697 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11698 * config/s390/s390.mh (XDEPFILES): Delete.
11699 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11700 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11701 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11702 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11703 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11704 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11705 * config/sparc/linux.mh (XDEPFILES): Delete.
11706 * config/vax/vaxult.mh (XDEPFILES): Delete.
11707 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11708 * Makefile.in (DEPFILES): Remove XDEPFILES.
11710 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11712 * utils.c (internal_verror): Fix comments, default is yes not no.
11713 Update queries to match. Default to quit and dump core.
11715 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11717 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11719 * defs.h, event-top.c, gdbcmd.h: Ditto.
11720 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11721 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11722 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11723 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11724 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11725 * mi/mi-main.c:Ditto.
11727 * stack.c, symfile.c: Update copyright.
11729 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11731 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11732 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11733 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11734 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11736 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11738 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11739 * gdbserver/low-lynx.c (myattach): Likewise.
11740 * gdbserver/low-nbsd.c (myattach): Likewise.
11741 * gdbserver/low-sim.c (myattach): Likewise.
11742 * gdbserver/low-sparc.c (myattach): Likewise.
11743 * gdbserver/low-sun3.c (myattach): Likewise.
11745 * gdbserver/low-linux.c (myattach): New function.
11747 * gdbserver/server.c (attach_inferior): New function.
11748 (main): Handle "--attach".
11750 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11752 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11755 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11757 * c-typeprint.c (is_type_conversion_operator): Add additional
11758 check for non-conversion operators.
11760 2002-01-15 Michael Snyder <msnyder@redhat.com>
11762 * linux-proc.c: Add "info proc" command, a la procfs.c.
11763 (read_mapping): New function, abstract and re-use code.
11764 (linux_find_memory_regions): Use new func read_mapping.
11765 (linux_info_proc_cmd): New function, implement "info proc".
11766 (_initialize_linux_proc): Add new command "info proc".
11768 2002-01-15 Michael Snyder <msnyder@redhat.com>
11770 * symfile.c (generic_load): Use bfd_map_over_sections method
11771 instead of manipulating bfd structure members directly.
11772 (add_section_size_callback): New function, bfd sections callback
11773 used by generic_load.
11774 (load_sections_callback): New function, bfd sections callback
11775 used by generic_load.
11777 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11779 [Based on work by Jim Blandy]
11780 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11781 (builtin_type_vec128): Export.
11782 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11784 (builtin_type_vec128): New builtin type for 128 bit vector
11786 (build_gdbtypes): Initialize builtin_type_v16qi and
11787 builtin_type_v8hi. Create the vec128 register builtin type
11789 (build_builtin_type_vec128): New function.
11790 (_initialize_gdbtypes): Register builtin_type_v16qi and
11791 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11792 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11793 AltiVec register to new builtin type.
11795 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11797 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11800 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11802 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11803 CLEAN_UP_REGISTER_VALUE.
11804 * regcache.c (supply_register): Update only call.
11806 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11808 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11809 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11810 a29k-*-vxworks* targets as obsolete.
11812 2002-01-14 Michael Snyder <msnyder@redhat.com>
11814 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11815 until we can resolve portability issues.
11816 * gregset.h: Remove references to fpxregs.
11817 * gcore.c (gcore_command): Initialize note_sec to NULL.
11819 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11821 * signals.c (target_signal_to_name): Rewrite. Only use
11822 signals[].name when in bounds and non-NULL.
11824 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11826 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11827 * signals.c (target_signal_to_name): Verify that SIG is within the
11828 bounds of the signals array.
11830 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11832 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11834 2002-01-13 Keith Seitz <keiths@redhat.com>
11836 * stack.c (print_frame_info_base): Print the frame's pc
11837 only if when print_frame_info_listing_hook is not defined.
11839 2002-01-13 Keith Seitz <keiths@redhat.com>
11841 * varobj.c (varobj_set_value): Make sure that there were no
11842 errors evaluating the object before attempting to set its
11844 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11845 so this offset adjustment is no longer necessary.
11846 (create_child): Don't set the error flag if the child is
11847 a CPLUS_FAKE_CHILD.
11848 (value_of_child): If value_fetch_lazy fails, return NULL
11849 so that callers will be notified that an error occurred.
11850 (c_value_of_variable): Delay check of variable's validity
11851 until later. We actually want all structs and unions to have
11853 Do not return "???" for variables which could not be evaluated.
11854 This error condition must be returned to the caller so that it
11855 can get the error condition from gdb.
11856 (cplus_name_of_child): Adjust index for vptr before figuring
11857 out the name of the child.
11858 (cplus_value_of_child): If a child's (real) parent is not valid,
11859 don't even bother trying to give a value for it. Just return
11860 an error. Change all instances in this function.
11861 (cplus_type_of_child): If our parent is one of the "fake"
11862 parents, we need to get at the type of the real parent, and
11863 derive the child's true type using this information.
11865 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11867 From 2002-01-09 John Marshall <johnm@falch.net>:
11868 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11869 sources.redhat.com, and tweak some related URLs which had
11870 suffered from linkrot.
11872 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11875 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11876 structures passed in registers.
11878 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11880 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11881 white space which prevented compilation. Reported by DSK
11882 <dsk@student.unsw.edu.au>.
11884 2002-01-11 Michael Snyder <msnyder@redhat.com>
11886 * symfile.c (build_section_addr_info_from_section_tab):
11887 Use bfd access method instead of manipulating bfd directly.
11888 (syms_from_objfile): Ditto.
11889 (simple_overlay_update_1): Ditto.
11890 (simple_overlay_update): Ditto.
11891 (generic_load): Ditto.
11892 (overlay_unmapped_address): FIXME comment, bfd access methods.
11893 (sections_overlap): FIXME comment, bfd access methods.
11894 (pc_in_mapped_range): FIXME comment, bfd access methods.
11895 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11896 (section_is_mapped): FIXME comment, bfd access methods.
11897 (section_is_overlay): FIXME comment, bfd access methods.
11899 * symfile.c (generic_load): Whitespace and long line cleanups.
11900 Remove duplicate variable, change several local variables to
11901 more appropriate data types.
11902 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11904 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11906 From Peter Schauer:
11907 * language.c (longest_local_hex_string_custom): Use phex_nz to
11908 convert NUM to a hex string.
11910 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11912 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11914 Update Copyright year.
11916 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11918 * language.c (longest_raw_hex_string): Delete unused function.
11920 2002-01-11 Petr Sorfa <petrs@caldera.com>
11922 * MAINTAINERS (write-after-approval): Add myself.
11923 * dwarf2read.c (read_tag_string_type): Handling of
11925 (read_tag_string_type): FORTRAN fix to prevent propagation of
11927 (set_cu_language): Handling of DW_LANG_Fortran95
11929 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11931 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11932 GETPID(inferior_ptid).
11933 (store_inferior_registers): Likewise.
11935 2002-01-10 Jason Merrill <jason@redhat.com>
11937 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11940 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11942 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11943 and bfd/elf32-sh-nbsd.c.
11945 2002-01-10 Michael Snyder <msnyder@redhat.com>
11947 * NEWS: Mention --pid and corefile/proc-id behavior change.
11949 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11950 * gcore.c: Include cli/cli-decode.h instead of command.h.
11952 * main.c (captured_main): Add new command line option "--pid".
11953 If the second command line argument (following the symbol-file)
11954 begins with a digit, try to attach to it before trying to open
11956 (print_gdb_help): Document the "--pid" argument.
11958 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11960 * completer.c (command_completer): New function.
11962 * completer.h <command_completer>: Add prototype.
11964 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11965 completer for the "help" command.
11967 2002-01-09 Jason Merrill <jason@redhat.com>
11969 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11971 2002-01-09 Michael Snyder <msnyder@redhat.com>
11973 * i386-linux-nat.c (fill_fpxregset): Make global.
11974 (store_fpxregset): Ditto.
11976 * gregset.h (gdb_fpxregset_t): Define.
11977 (supply_fpxregset): Prototype.
11978 (fill_fpxregset): Prototype.
11980 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11982 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11984 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11985 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11986 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11988 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11990 * MAINTAINERS: Update target maintainer rules so that any
11991 Maintainer can approve a tested patch for a maintenance-only
11994 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11996 * MAINTAINERS (write-after-approval): Add myself.
11998 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12001 2002-01-08 Michael Snyder <msnyder@redhat.com>
12003 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12004 real name of the executable, rather than the /proc name.
12006 2002-01-03 Michael Snyder <msnyder@redhat.com>
12008 Implement a "generate-core-file" command in gdb, save target state.
12009 * gcore.c: New file. Implement new command 'generate-core-file'.
12010 Save a corefile image of the current state of the inferior.
12011 * linux-proc.c: Add linux-specific code for saving corefiles.
12012 * target.h (struct target_ops): Add new target vectors for saving
12013 corefiles; to_find_memory_regions and to_make_corefile_notes.
12014 (target_find_memory_regions): New macro.
12015 (target_make_corefile_notes): New macro.
12016 * target.c (update_current_target): Inherit new target methods.
12017 (dummy_find_memory_regions): New place-holder method.
12018 (dummy_make_corefile_notes): New place-holder method.
12019 (init_dummy_target): Initialize new dummy target vectors.
12020 * exec.c (exec_set_find_memory_regions): New function.
12021 Allow the exec_ops vector for memory regions to be taken over.
12022 (exec_make_note_section): New function, target vector method.
12023 * defs.h (exec_set_find_memory_regions): Export prototype.
12024 * procfs.c (proc_find_memory_regions): New function, corefile method.
12025 (procfs_make_note_section): New function, corefile method.
12026 (init_procfs_ops): Set new target vector pointers.
12027 (find_memory_regions_callback): New function.
12028 (procfs_do_thread_registers): New function.
12029 (procfs_corefile_thread_callback): New function.
12030 * sol-thread.c (sol_find_memory_regions): New function.
12031 (sol_make_note_section): New function.
12032 (init_sol_thread_ops): Initialize new target vectors.
12033 * inftarg.c (inftarg_set_find_memory_regions): New function.
12034 Allow to_find_memory_regions vector to be taken over.
12035 (inftarg_set_make_corefile_notes): New function.
12036 Allow to_make_corefile_notes vector to be taken over.
12037 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12038 interface layer if not target_has_execution (may be a corefile).
12039 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12040 * config/sparc/sun4sol2.mh: Ditto.
12041 * config/alpha/alpha-linux.mh: Ditto.
12042 * config/arm/linux.mh: Ditto.
12043 * config/i386/x86-64linux.mh: Ditto.
12044 * config/ia64/linux.mh: Ditto.
12045 * config/m68k/linux.mh: Ditto.
12046 * config/mips/linux.mh: Ditto.
12047 * config/powerpc/linux.mh: Ditto.
12048 * config/sparc/linux.mh: Ditto.
12050 2002-01-07 Michael Snyder <msnyder@redhat.com>
12052 * arm-linux-nat.c: Remove references to regcache.c internal data
12053 (registers[] and register_valid[]).
12055 2002-01-07 Michael Snyder <msnyder@redhat.com>
12057 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12058 so that attaching to a pid will automatically read the process's
12059 symbol file and shlibs.
12060 * Makefile.in: Add rule for linux-proc.o.
12061 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12062 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12063 * config/arm/linux.mh: Ditto.
12064 * config/i386/linux.mh: Ditto.
12065 * config/i386/x86-64linux.mh: Ditto.
12066 * config/ia64/linux.mh: Ditto.
12067 * config/m68k/linux.mh: Ditto.
12068 * config/mips/linux.mh: Ditto.
12069 * config/powerpc/linux.mh: Ditto.
12070 * config/sparc/linux.mh: Ditto.
12072 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12074 * win32-nat.c: Add i386-tdep.h dependency.
12076 2002-01-07 Michael Snyder <msnyder@redhat.com>
12078 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12079 instead of bfd_get_arch_size. Don't bail out just because
12080 there's no exec_bfd.
12082 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12083 * p-valprint.c (pascal_object_print_value): Ditto.
12084 * somread.c (som_symtab_read): Ditto.
12085 * symfile.c (simple_free_overlay_region_table): Ditto.
12086 * valops.c (value_assign): Ditto.
12088 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12089 use tilde_expand and strerror for opening save-tracepoints file.
12091 * thread-db.c (thread_db_new_objfile): Indendation fix.
12093 * infptrace.c (GDB_MAX_ALLOCA): New define.
12094 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12095 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12096 can be overridden with whatever value is appropriate to the host).
12097 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12098 alloca to allocate potentially large buffer.
12099 * rs6000-nat.c (child_xfer_memory): Ditto.
12100 * symm-nat.c (child_xfer_memory): Ditto.
12101 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12103 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12105 From Nick Clifton <nickc@redhat.com>
12106 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12108 2002-01-07 Michael Snyder <msnyder@redhat.com>
12110 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12111 Don't use exec_bfd if it's NULL.
12113 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12115 * valops.c (value_arg_coerce): Fix formatting.
12117 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12119 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12120 * gnu-nat.c: Ditto.
12122 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12124 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12125 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12126 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12127 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12128 z8k-coff have not been multi-arched. Update z8k-coff build
12131 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12133 * MAINTAINERS: Mark a29k target as obsolete.
12134 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12135 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12137 * NEWS: Note that a29k targets are obsolete.
12138 * a29k-tdep.c: Mark as obsolete.
12139 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12140 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12141 a29k-*-vxworks* targets as obsolete.
12142 * remote-adapt.c: Obsolete.
12143 * remote-eb.c: Obsolete.
12144 * remote-mm.c: Obsolete.
12145 * remote-udi.c: Obsolete.
12146 * config/a29k/a29k-udi.mt: Obsolete.
12147 * config/a29k/a29k.mt: Obsolete.
12148 * config/a29k/tm-a29k.h: Obsolete.
12149 * config/a29k/tm-vx29k.h: Obsolete.
12150 * config/a29k/vx29k.mt: Obsolete.
12152 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12154 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12155 with BFD_ENDIAN_BIG.
12157 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12159 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12160 * configure, config.in: Re-generate.
12161 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12162 * defs.h: Do not include <endian.h>.
12164 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12166 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12167 * config.in: Regenerate.
12168 * configure.in: Update copyright years.
12169 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12170 * configure: Regenerate.
12171 * i386bsd-nat.c: Update copyright years.
12172 (fill_gregset): Use regcache_collect.
12173 (fetch_inferior_registers): Only fetch integer registers
12174 if requested to do so. Add support for XMM registers
12175 using PT_GETXMMREGS.
12176 (store_inferior_registers): Only store integer registers
12177 if requested to do so. Add support for XMM registers
12178 using PT_SETXMMREGS.
12179 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12180 (store_inferior_registers): Remove.
12181 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12182 (fetch_elfcore_registers): New function.
12183 (i386nbsd_elfcore_fns): New.
12184 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12185 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12187 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12188 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12189 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12190 * config/i386/tm-nbsd.h: Update copyright years.
12191 (HAVE_SSE_REGS): Define.
12192 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12193 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12194 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12195 (SIGCONTEXT_PC_OFFSET): Remove.
12196 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12198 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12200 * configure.tgt: Remove powerpc-*-macos* target.
12201 * config/m68k/xm-mpw.h: Delete file.
12202 * config/xm-mpw.h: Delete file.
12203 * ser-mac.c: Delete file.
12204 * mpw-make.sed: Delete file.
12205 * mpw-config.in: Delete file.
12206 * mac-xdep.c: Delete file.
12207 * mac-gdb.r: Delete file.
12208 * mac-defs.h: Delete file.
12209 * mac-nat.c: Delete file.
12210 * config/powerpc/macos.mh: Delete file.
12211 * config/powerpc/macos.mt: Delete file.
12212 * config/powerpc/nm-macos.h: Delete file.
12213 * config/powerpc/tm-macos.h: Delete file.
12214 * source.c (openp, open_source_file): Remove obsolete code.
12215 * top.c (gdb_readline): Ditto.
12216 * utils.c (query): Ditto.
12217 * event-top.c (display_gdb_prompt): Ditto.
12218 * Makefile.in (ser-mac.o): Delete obsolete target.
12221 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12223 * defs.h (BIG_ENDIAN): Delete macro definition.
12224 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12225 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12226 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12227 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12228 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12229 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12230 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12231 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12232 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12233 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12234 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12235 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12236 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12237 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12238 * gdbarch.c: Re-generate.
12240 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12242 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12245 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12247 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12249 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12251 * value.h (value_ptr): Delete typedef.
12253 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12255 * i386nbsd-nat.c: Update copyright years.
12256 Include i386-tdep.h.
12258 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12260 * stabsread.c: Update copyright years.
12262 From Debashis Mahata <debashis.mahata@wipro.com>:
12263 (read_struct_fields): Deal with Sun C compiler erroneous stab
12264 output for structs and unions.
12267 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12269 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12272 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12274 * cp-abi.c: Fix whitespace.
12275 (baseclass_offset): New wrapper function.
12276 * cp-abi.h (baseclass_offset): Add prototype.
12277 (struct cp_abi_ops): Add baseclass_offset pointer.
12279 * valops.c (vb_match): Move to...
12280 * gnu-v2-abi.c (vb_match): here.
12281 * valops.c (baseclass_offset): Move to...
12282 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12284 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12286 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12287 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12288 * hpacc-abi.c (init_hpacc_ops): Likewise.
12290 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12292 * valops.c (find_overload_match): Accept obj as a
12293 reference parameter. Update it before returning.
12294 * value.h (find_overload_match): Update prototype.
12295 * eval.c (evaluate_subexp_standard): Pass object to
12296 find_overload_match by reference.
12298 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12300 * valarith.c: Replace value_ptr with struct value pointer. Remove
12301 register attribute from value declarations.
12304 * scm-lang.c (scm_lookup_name): Ditto.
12306 2002-01-03 Michael Snyder <msnyder@redhat.com>
12308 Abstract the functionality of iterating over mapped memory
12309 regions into a general purpose iterator function.
12310 * procfs.c (iterate_over_mappings): New function, general purpose
12311 iterator for memory sections.
12312 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12313 (solib_mappings_callback): New function, callback for above.
12314 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12315 (info_mappings_callback): New function, callback for above.
12317 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12319 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12321 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12322 * i386-tdep.c: Include "elf-bfd.h".
12323 (process_note_abi_tag_sections): New function.
12324 (i386_gdbarch_init): Add code to recognize various OS/ABI
12327 * maint.c (_initialize_maint_cmds): Add missing \ in
12330 For older changes see ChangeLog-2001
12336 version-control: never