1 2002-11-02 Andrew Cagney <cagney@redhat.com>
3 * regcache.h (deprecated_read_register_gen): Rename
5 (deprecated_write_register_gen): Rename write_register_gen.
7 * x86-64-linux-nat.c: Update
10 * win32-nat.c: Update.
11 * mips-tdep.c: Update.
12 * d10v-tdep.c: Update.
13 * cris-tdep.c: Update.
14 * remote-sim.c: Update.
15 * remote-rdi.c: Update.
16 * remote-rdp.c: Update.
19 * blockframe.c: Update.
20 * x86-64-tdep.c: Update.
21 * xstormy16-tdep.c: Update.
23 * s390-tdep.c: Update.
24 * rs6000-tdep.c: Update.
25 * sparc-tdep.c: Update.
26 * i386-tdep.c: Update.
27 * dwarf2cfi.c: Update.
30 2002-11-01 Joel Brobecker <brobecker@gnat.com>
32 New interix-specific files:
33 * config/i386/nm-interix.h: New file.
34 * config/i386/interix.mh: New file.
35 * config/i386/interix.mt: New file.
36 * i386-interix-nat.c: New file.
37 * i386-interix-tdep.c: New file.
39 2002-11-01 Andrew Cagney <cagney@redhat.com>
41 * frame.h (deprecated_generic_get_saved_register): Rename
42 generic_get_saved_register.
43 * blockframe.c (deprecated_generic_get_saved_register): Update.
44 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
45 (xstormy16_frame_saved_register): Update.
46 * sh-tdep.c (sh_gdbarch_init): Update.
47 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
48 * ia64-tdep.c (ia64_get_saved_register): Update.
49 * cris-tdep.c (cris_gdbarch_init): Update.
50 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
51 * arm-tdep.c (arm_gdbarch_init): Update.
53 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
55 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
57 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
59 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
60 trampolines in sigaction.
62 2002-10-31 Andrew Cagney <cagney@redhat.com>
64 * h8300-tdep.c: Include "gdb_assert.h".
65 (h8300_print_register): Add gdbarch, file and frame parameters.
66 Use frame_read_unsigned_register to read the register's value.
67 Use fprintf_filtered to display output.
68 (h8300_print_registers_info): Replace h8300_do_registers_info.
69 (h8300_gdbarch_init): Set print_registers_info.
71 2002-10-31 Andrew Cagney <cagney@redhat.com>
73 * frame.c (frame_read_unsigned_register): New function.
74 (frame_read_signed_register): New function.
75 * frame.h (frame_read_unsigned_register): Declare.
76 (frame_read_signed_register): Declare.
78 2002-10-31 Andrew Cagney <cagney@redhat.com>
80 * h8500-tdep.c (h8500_print_registers_info): New static function,
81 clone of infcmd.c's default_print_registers_info.
82 (h8500_do_registers_info): New funtion.
83 (h8500_print_register_hook): Rename print_register_hook, make
86 * config/h8500/tm-h8500.h: Update copyright.
87 (DEPRECATED_DO_REGISTERS_INFO): Define.
88 (h8500_do_registers_info: Declare.
89 (PRINT_REGISTER_HOOK): Delete macro.
90 (print_register_hook): Delete function.
92 2002-10-31 Andrew Cagney <cagney@redhat.com>
94 * z8k-tdep.c (z8k_print_register_hook): Make static.
95 (z8k_print_registers_info): New static function, clone of
96 infcmd.c's default_print_registers_info.
97 (z8k_do_registers_info): New function. Wrap
98 z8k_print_registers_info.
99 * config/z8k/tm-z8k.h: Update copyright.
100 (PRINT_REGISTER_HOOK): Delete macro.
101 (z8k_print_register_hook): Delete declaration.
102 (DEPRECATED_DO_REGISTERS_INFO): Define.
103 (z8k_do_registers_info): Declare.
105 2002-10-30 Joel Brobecker <brobecker@gnat.com>
107 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
108 as this is already provided by value.h, and was actually causing
109 a compilation error because of a conflict in parameter type
110 declaration due to a missing const keyword.
111 (low_text_segment_addres): Fix a compilation warning.
113 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
115 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
116 registers without a name.
117 (mips_linux_cannot_store_register): Don't store registers without
120 2002-10-28 David Carlton <carlton@math.stanford.edu>
122 * symtab.c (find_addr_symbol): Delete. (It was already commented
124 * symtab.h: Delete prototype for find_addr_symbol.
126 2002-10-26 Andrew Cagney <cagney@redhat.com>
128 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
130 gdbarch.h, gdbarch.c: Re-generate.
131 * infcmd.c (default_print_registers_info): Update reference.
132 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
133 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
134 * sh-tdep.c (sh_gdbarch_init): Ditto.
135 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
136 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
138 2002-10-26 Mark Kettenis <kettenis@gnu.org>
140 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
141 cfi_init_extra_frame_info.
142 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
143 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
145 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
146 target where necessary. Add more comments and remove the ones
147 that don't provide any useful information.
149 * i386-tdep.c (i386_frame_saved_pc): Replace call to
150 deprecated_read_register_dummy with
151 frame_unwind_unsigned_register.
153 * i386-tdep.c (i386_extract_struct_value_address): Use
154 regcache_raw_read_unsigned instead of
155 regcache_cooked_read_unsigned since we know that the register
156 we're reading isn't a pseudo register. Rename variable 'val' into
157 the more descriptive 'addr'.
159 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
160 (x86_64_push_return_address): Add comment.
161 (x86_64_pop_frame): Make static.
162 (examine_argument): Clarify comment.
163 (x86_64_skip_prologue): Make prolog_expact variable static.
165 * dwarf2cfi.c: Fix some formatting problems.
166 (context_cpy, read_encoded_pointer): Clarify comments.
168 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
169 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
170 i386 target back into x86_64_gdbarch_init. Add some comments and
171 remove meaningless ones.
173 2002-10-25 Andrew Cagney <cagney@redhat.com>
175 * complaints.h (struct deprecated_complaint): Rename `struct
177 * complaints.c (complain): Update.
178 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
179 incorrect comment indicating that "symfile.h" was being included
180 for the `struct complaint' definition.
181 * remote-vx.c: Update.
182 * objc-lang.c: Update.
183 * xcoffread.c: Update.
185 * mdebugread.c: Update.
186 * stabsread.c: Update.
187 * dwarf2read.c: Update.
188 * dwarfread.c: Update.
190 * coffread.c: Update.
191 * stabsread.h: Update.
193 * buildsym.c: Update.
194 * gdbtypes.c: Update.
195 * macrotab.c: Update.
197 2002-10-25 Mark Kettenis <kettenis@gnu.org>
199 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
200 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
201 (x86_64_init_abi): ...new function.
203 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
204 * i386v-nat.c: Include "i386-tdep.h".
206 2002-10-25 Andrew Cagney <cagney@redhat.com>
208 * gdbtypes.c (address_space_name_to_int): Update.
209 (address_space_int_to_name): Update.
210 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
211 multi-arch predicate.
212 (address_class_name_to_type_flags): Ditto.
213 * gdbarch.h, gdbarch.c: Re-generate.
215 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
217 2002-10-24 Martin M. Hunt <hunt@redhat.com>
219 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
221 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
223 * symtab.h (INIT_SAL): Delete macro.
225 * symtab.c (init_sal): New function.
227 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
228 to init_sal function call.
229 (find_sal_from_funcs_and_line): Ditto.
230 (all_sals_for_line): Ditto.
231 * breakpoint.c (create_internal_breakpoint): Ditto.
232 (create_fork_vfork_event_catchpoint): Ditto.
233 (create_exec_event_catchpoint): Ditto.
234 (parse_breakpoint_sals): Ditto.
235 (watch_command_1): Ditto.
236 (handle_gnu_4_16_catch_command): Ditto.
237 (clear_command): Ditto.
238 * hppa-tdep.c (child_enable_exception_callback): Ditto.
239 * infcmd.c (run_stack_dummy): Ditto.
240 * infrun.c (process_event_stop_test): Ditto.
241 (check_sigtramp2): Ditto.
242 (step_over_function): Ditto.
243 * linespec.c (decode_line_2): Ditto.
244 (decode_line_1): Ditto.
245 * source.c (line_info): Ditto.
246 * symtab.c (find_pc_sect_line): Ditto.
248 2002-10-24 Michal Ludvig <mludvig@suse.cz>
250 * dwarf2cfi.c (struct context)
251 (struct context_reg): Moved to dwarf2cfi.h
252 (context_alloc, frame_state_alloc, context_cpy):
253 Made extern instead of static, removed prototypes.
254 * dwarf2cfi.h (struct context)
255 (struct context_reg): New, moved from dwarf2cfi.c
256 (context_alloc, frame_state_alloc, context_cpy):
258 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
259 Changed from static to extern.
260 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
261 (LINUX_SIGCONTEXT_FP_OFFSET)
262 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
263 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
264 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
265 * x86-64-tdep.c (x86_64_gdbarch_init): Several
266 set_gdbarch_*() calls now use x86-64 specific functions
267 instead of DWARF2 CFI ones.
268 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
269 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
270 (x86_64_init_extra_frame_info): New prototypes.
272 2002-10-23 David Carlton <carlton@math.stanford.edu>
274 * linespec.c: #include "parser-defs.h".
275 Delete prototype for find_template_name_end.
276 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
278 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
280 * NEWS: add recent mi fixes.
281 * varobj.c (struct varobj): Add new "updated" flag.
282 (new_variable): Default "updated" flag to 0.
283 (varobj_set_value): Set "updated" flag to 1 if value
285 (varobj_update): Check varobj "updated" flag before
286 comparing old and refreshed values. Fix for
289 2002-10-23 David Carlton <carlton@math.stanford.edu>
291 * parse.c (parse_exp_1): Use BLOCK_START.
292 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
294 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
296 2002-10-23 David Carlton <carlton@math.stanford.edu>
298 * symtab.c: Delete cplusplus_hint.
299 Delete prototype for find_template_name_end.
301 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
303 * symtab.h: Update comment.
305 2002-10-23 Michael Snyder <msnyder@redhat.com>
307 * printcmd.c (address_info): Restore quotes in output.
308 * valops.c (value_of_local): Restore quotes in error message.
310 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
312 * symtab.c (symbol_demangled_name): New function.
313 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
314 turning most of it into a function.
315 (symbol_demangled_name): Export.
317 2002-10-23 Michael Snyder <msnyder@redhat.com>
319 * valops.c (value_of_local): Restore quotes in error message.
321 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
323 * symtab.c (symbol_init_language_specific): New function.
324 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
325 turning most of it into a function.
326 (symbol_init_language_specific): Export.
328 2002-10-23 David Carlton <carlton@math.stanford.edu>
330 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
331 (dwarf_attr_name): Ditto.
332 (dwarf_type_encoding_name): Ditto.
333 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
334 (process_die): Handle DW_TAG_namespace,
335 DW_TAG_imported_declaration, DW_TAG_imported_module.
336 (read_namespace): New function.
338 2002-10-22 Joel Brobecker <brobecker@gnat.com>
340 * configure.in: Define NEW_PROC_API on Interix too.
341 * configure: Regenerate.
343 2002-10-21 Joel Brobecker <brobecker@gnat.com>
345 * configure: Regenerate using the proper version of autoconf.
347 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
349 * findvar.c (read_var_value): Temporarily disable TLS code, until
350 complete TLS support is added.
352 2002-10-21 Jim Blandy <jimb@redhat.com>
353 Elena Zannoni <ezannoni@redhat.com>
355 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
356 for thread local storage locations.
357 (struct symbol): Add objfile field.
358 (SYMBOL_OBJFILE): Define.
359 * dwarf2read.c (is_thread_local): New static variable.
360 (new_symbol): If variable is in thread local fill in address class
361 and objfile appropriately.
362 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
364 * printcmd.c (address_info): Print the information for thread
365 local storage variable.
366 * findvar.c (read_var_value): In case of thread local variable,
367 defer to the target vector code to compute address.
369 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
371 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
372 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
374 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
376 * symtab.h (address_class): Rename
377 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
378 * hpread.c (hpread_process_one_debug_symbol): Ditto.
379 * printcmd.c (address_info): Ditto.
380 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
382 2002-10-20 Mark Kettenis <kettenis@gnu.org>
384 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
385 DBREG_DRX macro to acces debug registers.
387 * Makefile.in (i386obsd-tdep.o): New target.
389 * solib-sunos.c: Include "bcache.h" and "regcache.h".
390 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
392 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
393 * config/i386/obsd.mt: New file.
394 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
395 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
396 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
397 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
398 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
399 * i386obsd-tdep.c: New file.
401 2002-10-19 Adam Fedor <fedor@gnu.org>
403 * objc-exp.y (name_not_typename): Fix invalid comment.
405 2002-10-20 Mark Kettenis <kettenis@gnu.org>
407 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
408 to allocate partial syms and macro byte caches.
410 2002-10-18 David Carlton <carlton@math.stanford.edu>
412 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
414 2002-10-18 Adam Fedor <fedor@gnu.org>
416 * stabsread.c (find_name_end): New function.
417 (define_symbol): Use it.
419 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
421 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
422 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
423 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
424 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
426 2002-10-17 David Carlton <carlton@math.stanford.edu>
428 * symfile.h: Add opaque declaration for struct obstack.
429 Declare obsavestring to take a const char *.
430 * symfile.c (obsavestring): Make first argument a const char *.
432 2002-10-16 Adam Fedor <fedor@gnu.org>
434 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
435 names when matching breakpoints in current file.
437 2002-10-16 Kevin Buettner <kevinb@redhat.com>
439 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
440 (read_tag_pointer_type): Add address class support.
441 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
442 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
444 * gdbarch.h, gdbarch.c: Regenerate.
445 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
446 (make_type_with_address_space, recursive_type_dump): Add address
448 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
449 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
450 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
452 2002-10-16 Klee Dienes <kdienes@apple.com>
454 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
455 to get the last character of a char[] buffer, not
456 name[sizeof(vptr_name)-1].
458 2002-10-14 Adam Fedor <fedor@gnu.org>
460 * symtab.h: New objc_specific struct.
461 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
462 (SYMBOL_DEMANGLED_NAME): Likewise.
464 2002-10-14 Adam Fedor <fedor@gnu.org>
466 * symfile.c (init_filename_language_table): Add ObjC file extension.
468 2002-10-14 Adam Fedor <fedor@gnu.org>
470 * utils.c (puts_filtered_tabular): New function.
471 (fprintf_symbol_filtered): Get ObjC demangled name.
472 * defs.h (puts_filtered_tabular): Declared.
474 2002-10-14 Kevin Buettner <kevinb@redhat.com>
476 * c-lang.h (c_type_print_varspec_prefix): Delete.
477 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
478 ``need_post_space'' parameter. Adjust all callers.
480 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
482 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
483 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
484 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
485 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
487 2002-10-13 Adam Fedor <fedor@gnu.org>
489 * source.c (print_source_lines): Update comments.
491 2002-10-13 Adam Fedor <fedor@gnu.org>
493 * valops.c (value_of_local): New function.
494 (value_of_this): Use it.
495 * value.h (value_of_local): Declared.
497 2002-10-13 Adam Fedor <fedor@gnu.org>
499 * parse.c: (length_of_subexp, prefixify_subexp): Handle
500 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
502 2002-10-12 Adam Fedor <fedor@gnu.org>
504 * language.c (binop_result_type): Add language_objc to case.
505 (integral_type): Likewise.
506 (character_type): Likewise.
507 (string_type): Likewise.
508 (boolean_type): Likewise.
509 (structured_type): Likewise.
510 (binop_type_check): Likewise.
512 2002-10-11 Adam Fedor <fedor@gnu.org>
514 * printcmd.c (address_info): Print 'self' for ObjC.
516 2002-10-11 Adam Fedor <fedor@gnu.org>
518 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
521 2002-10-11 Adam Fedor <fedor@gnu.org>
523 * language.h (CAST_IS_CONVERSION): Add language_objc.
525 2002-10-11 Adam Fedor <fedor@gnu.org>
527 * defs.h (enum language): Add language_objc.
529 2002-10-11 Klee Dienes <kdienes@apple.com>
531 * findvar.c (read_memory_typed_address): New function.
532 * gdbcore.h (read_memory_typed_address): Add prototype.
533 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
534 to read a value destined for a CORE_ADDR, not read_memory_integer.
535 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
536 (f77_get_dynamic_lowerbound): Ditto.
538 2002-10-11 Martin M. Hunt <hunt@redhat.com>
540 * utils.c (string_to_core_addr): After turning string into
541 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
542 which will do necessary sign-extension, etc.
544 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
546 * c-exp.y (THIS): Delete token and grammar rule.
547 (yylex): Don't return THIS.
548 * cp-valprint.c (vtbl_ptr_name_old): Delete.
549 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
550 * demangle.c (cplus_markers): Update comment. Put '$'
551 first. Remove CPLUS_MARKER.
552 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
553 * jv-exp.y (THIS): Delete token and grammar rule.
554 (yylex): Don't return THIS.
555 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
556 * objc-exp.y (THIS): Delete token and grammar rule.
557 (yylex): Don't return THIS.
558 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
559 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
560 (read_member_functions): Likewise for opname.
561 (read_tilde_fields): Use is_cplus_marker.
563 * defs.h (CPLUS_MARKER): Don't define.
564 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
565 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
566 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
567 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
568 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
570 * config/i386/tm-i386v4.h: Delete file.
571 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
572 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
573 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
574 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
575 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
576 * config/i386/i386sco5.mt (TM_FILE): Likewise.
577 * config/i386/i386v4.mt (TM_FILE): Likewise.
578 * config/i386/ncr3000.mt (TM_FILE): Likewise.
580 2002-10-10 Marko Mlinar <markom@opencores.org>
582 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
583 accidentially not commited 2002-10-09
584 * gdbarch.h, gdbarch.c: Re-generate.
586 2002-10-09 Marko Mlinar <markom@opencores.org>
588 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
589 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
590 * gdbarch.h, gdbarch.c: Re-generate.
592 2002-10-08 Petr Sorfa <petrs@caldera.com>
594 Revised and re-submitted by John Wolfe <jlw@caldera.com>
596 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
597 so we can work on more than one compilation unit at a time. This
598 helps prepare GDB to handle inter-CU die references.
599 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
600 the code to be defined before struct comp_unit_head.
601 (comp_unit_head): Added new members - offset, cu_head,
602 begin_die, next and dwarf2_abbrevs.
603 (dwarf2_abbrevs): Removed single static var; now member of
604 struct comp_unit_head.
605 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
607 (psymtab_to_symtab_1): Changed to work with the new
608 struct comp_unit_head.
609 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
610 constructs the dwarf2_abbrevs[] inside the cu_header.
611 (dwarf2_empty_abbrev_table): Now expects a ptr to a
612 dwarf2_abbrev table to clean up.
613 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
614 handling of dwarf2_abbrevs inside the cu_header.
615 (read_partial_die): Now supports the call to the new
616 dwarf2_lookup_abbrev.
617 (read_full_die): Now supports the call to the new
618 dwarf2_lookup_abbrev.
620 2002-10-06 Christopher Faylor <cgf@redhat.com>
622 * Makefile.in (install-gdbtk): Add missing continuation backslash to
623 insure that shell variables, such as "transformed_name" are propagated
624 to later shell statements in rule.
626 2002-10-06 Mark Kettenis <kettenis@gnu.org>
628 * config/i386/nm-i386sco.h: Add protection against
629 multiple-inclusion. Include "i386/nm-i386v.h".
630 (REGISTER_U_ADDR): Remove define.
631 (i386_register_u_addr): Remove prototype.
633 2002-10-04 Michael Snyder <msnyder@redhat.com>
635 * m32r-stub.c (handle_exception): Make sure exception is "trap"
636 before treating it as a single-step event.
638 2002-10-03 Adam Fedor <fedor@gnu.org>
640 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
641 (objc_demangle): Remove assignment in if statements, Replace
643 (add_msglist): Likewise.
644 (end_msglist): Likewise.
645 (complare_selectors): Likewise.
646 (selectors_info): Likewise.
647 (compare_classes): Likewise.
648 (classes_info): Likewise.
649 (print_object_command): Likewise.
650 (find_objc_msgcall_submethod): Replace PTR with void *.
651 * objc-lang.h: Remove check for __STDC__.
653 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
655 * ui-out.h (ui_out_field_fmt_int): New prototype.
656 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
657 of field width and alignment.
658 * stack.c (print_frame_info_base): When printing frame level, use
659 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
662 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
664 * MAINTAINERS: Add self to Write After Approval list.
666 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
668 * infcmd.c (interrupt_target_command_wrapper): Delete.
669 (interrupt_target_command): Make non static.
670 (nofp_registers_info): Make static.
671 * stack.c (return_command_wrapper): Delete.
672 (return_command): Make non static.
674 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
676 * event-top.c (gdb_setup_readline): New function. Code moved from
677 _initialize_event_loop().
678 (_initialize_event_loop): Call gdb_setup_readline().
680 2002-10-02 Andrew Cagney <ac131313@redhat.com>
682 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
683 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
684 * gdbarch.h, gdbarch.c: Re-generate.
686 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
689 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
691 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
692 of fill_in_vptr_fieldno.
694 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
696 * inferior.h (registers_info, stepi_command, nexti_command,
697 continue_command, interrupt_target_command): Export from infcmd.c.
698 * frame.h (args_info, selected_frame_level_changed_hook,
699 return_command): Export from stack.c.
700 * v850ice.c (stepi_command, nexti_command, continue_command): use
701 prototypes from inferior.h.
702 * tracepoint.c (registers_info, args_info, locals_info): Use
703 prototypes from frame.h and inferior.h.
704 * Makefile.in (mi-main.o): Add dependency on frame.h.
706 2002-10-02 Andrew Cagney <ac131313@redhat.com>
708 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
709 value in register 3 adjusted by ppc_gp0_regnum.
711 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
713 2002-10-02 Marko Mlinar <markom@opencores.org>
715 * MAINTAINERS: Add myself to the Write After Approval list.
717 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
719 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
720 of the section for the N64 ABI, fixed.
722 * config/mips/tm-irix6.h: Include solib.h.
724 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
726 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
729 2002-10-01 Andrew Cagney <ac131313@redhat.com>
731 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
732 and that "mi0" syntax has been removed.
734 2002-09-30 David Carlton <carlton@math.stanford.edu>
736 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
737 * ppc-sysv-tdep.c: #include "gdb_string.h".
738 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
741 2002-10-01 Andrew Cagney <ac131313@redhat.com>
743 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
744 "vrsave"'s register number.
746 2002-09-30 Andrew Cagney <ac131313@redhat.com>
748 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
749 use frame_unwind_signed_register to obtain the PC.
750 (mips_frame_chain): Handle a generic dummy frame.
751 (mips_init_extra_frame_info): When a generic dummy frame, don't
752 re-compute the frame base.
753 (mips_pop_frame): Handle generic dummy frames.
754 (mips_gdbarch_init): When generic dummy frames, set
755 use_generic_dummy_frames, push_dummy_frame to
756 generic_push_dummy_frame, pc_in_call_dummy to
757 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
758 generic_save_dummy_frame_tos.
760 2002-09-30 Andrew Cagney <ac131313@redhat.com>
762 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
763 against TOP when TOP was explictly set.
764 (generic_push_dummy_frame): Set TOP to zero.
766 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
768 * event-loop.c (start_event_loop): Rename variable 'result' to
769 'gdb_result', to avoid conflicts with upcoming intepreters changes.
771 2002-09-30 Keith Seitz <keiths@redhat.com>
773 * gdb-events.sh (selected_thread_changed): New event.
774 * gdb-events.c: Regenerated.
775 * gdb-events.h: Regenerated.
777 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
779 * MAINTAINERS: Add self to Write After Approval list.
781 2002-09-30 Fernando Nasser <fnasser@redhat.com>
783 * disasm.c: New file.
784 * disasm.h: New file.
785 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
786 (compare_lines): Ditto.
788 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
790 (do_assembly_only): Ditto.
791 (do_disassembly): Renamed to gdb_disassembly and moved to
792 disasm.c. Sdded uiout argument.
793 * Makefile.in: Add new files. Reorder SFILES list. Update
794 dependencies. Include libgdb.a later in the insight executable.
796 2002-09-29 Andrew Cagney <ac131313@redhat.com>
798 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
799 bfd/elf64-alpha-fbsd.c.
801 2002-09-29 Andrew Cagney <ac131313@redhat.com>
803 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
806 2002-09-29 Andrew Cagney <ac131313@redhat.com>
808 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
810 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
812 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
813 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
814 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
815 (S_msg_sig_post_reply): Ditto.
817 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
819 * sh-tdep.c (sh_use_struct_convention): Use definition according
821 (sh_push_arguments): Store in register with correct endianess.
822 (sh_default_store_return_value): Ditto.
823 (sh_gdbarch_init): Set sizeof long double to 8.
825 2002-09-27 Mark Kettenis <kettenis@gnu.org>
827 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
828 Fix some whitespace problems.
830 2002-09-27 David Carlton <carlton@math.stanford.edu>
832 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
833 (mcore-tdep.o): Ditto.
834 (ns32k-tdep.o): Ditto.
835 (ns32knbsd-tdep.o): Ditto.
838 * cris-tdep.c: #include "gdb_string.h"
839 * mcore-tdep.c: Ditto.
840 * ns32k-tdep.c: Ditto.
841 * ns32knbsd-tdep.c: Ditto.
845 2002-09-27 David Carlton <carlton@math.stanford.edu>
847 * config/djgpp/fnchange.lst: Add entries for
848 gdb/testsuite/gdb.c++/m-static files.
850 2002-09-27 Jim Wilson <wilson@redhat.com>
852 * MAINTAINERS: Add myself to the Write After Approval list.
854 2002-09-26 Martin M. Hunt <hunt@redhat.com>
856 * mips-tdep.c (find_proc_desc): Initialize startaddr.
859 2002-09-26 Andrew Cagney <ac131313@redhat.com>
861 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
864 2002-09-26 Andrew Cagney <ac131313@redhat.com>
866 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
867 (rs6000_struct_return_address): Delete variable.
868 (rs6000_store_struct_return): Update.
869 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
870 deprecated_extract_struct_value_address.
871 (rs6000_frame_align): New function.
872 (rs6000_gdbarch_init): Set frame_align.
874 2002-09-26 Andrew Cagney <ac131313@redhat.com>
876 From Grace Sainsbury <graces@redhat.com>:
877 * Makefile.in (gdbtk-main.o): New target.
880 (main.o): Update dependencies.
881 (gdb$(EXEEXT)): Add gdb.o.
882 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
883 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
884 (SUBDIR_GDBTK_CLEAN): Set.
885 (install-gdbtk): Install the insight binary.
886 (uninstall-gdbtk): New target.
887 (all-gdbtk, clean-gdbtk): New rule.
888 * top.c (use_windows): Default to zero.
889 * main.c: Include "main.h".
891 (struct captured_main_args): Delete.
892 (gdb_main): New function.
896 2002-09-25 Andrew Cagney <cagney@redhat.com>
898 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
899 (frame_map_regnum_to_name): New function.
900 (frame_map_name_to_regnum): New function.
901 * frame.h (frame_map_name_to_regnum): Declare.
902 (frame_map_regnum_to_name): Declare.
903 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
904 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
905 * parse.c: Do not include "builtin-regs.h".
906 (target_map_name_to_register): Delete function.
907 (write_dollar_variable): Use frame_map_name_to_regnum.
908 * parser-defs.h (target_map_name_to_register): Delete declaration.
909 * expprint.c: Include "frame.h".
910 (print_subexp): Use frame_map_regnum_to_name.
911 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
912 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
914 2002-09-25 Andrew Cagney <ac131313@redhat.com>
916 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
917 wasn't saved, and the next innermost frame is a dummy, return the
918 dummy frame's link register.
920 2002-09-24 Jim Blandy <jimb@redhat.com>
923 * main.c (captured_main): Add a `break' after the case for 'b'.
925 2002-09-24 Keith Seitz <keiths@redhat.com>
927 * varobj.c (c_type_of_child): Use get_target_type instead
930 2002-09-22 Fernando Nasser <fnasser@redhat.com>
932 * source.c (get_current_or_default_source_symtab_and_line): Remove
934 (set_default_source_symtab_and_line): New function. Attempts to
935 determine a source file to list lines from if one is not currently
937 (get_current_source_symtab_and_line): Initialize sal.pc and
939 (set_current_source_symtab_and_line): Mark argument as const.
940 * source.h: Update declarations and comments.
941 * linespec.c (decode_line_1): Replace call to removed routine above.
942 * stack.c (print_frame_info_base): Ditto.
943 * cli/cli-cmds.c (edit_command): Ditto.
944 (list_command): Ditto.
946 2002-09-22 Fernando Nasser <fnasser@redhat.com>
948 * source.c (get_current_or_default_source_symtab_and_line): Initialize
949 sal.pc and sal.end fields.
950 (get_current_or_default_source_symtab_and_line): Ditto.
951 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
952 so we do not cause a new source symtab to be searched for (reverting an
953 unintentional change from the 2002-09-20 patch).
954 * scm-lang.c (scm_unpac): Ditto.
956 2002-09-21 Andrew Cagney <cagney@redhat.com>
958 * complaints.c (symfile_explanations): Remove new-line from
959 ``isolated_message''.
960 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
961 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
963 2002-09-20 Nick Clifton <nickc@redhat.com>
965 * NEWS: Announce that V850EA ISA is no longer supported.
966 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
968 2002-09-20 David Carlton <carlton@math.stanford.edu>
970 * Makefile.in (c-lang.o): Correct dependencies.
971 (utils.o): Gather dependencies.
973 * c-lang.c: #include "gdb_string.h"
975 2002-09-20 Fernando Nasser <fnasser@redhat.com>
977 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
978 * cli/cli-cmds.c (list_command): New function. Implements the new
980 (_init_cli_cmds): Add new command definition.
981 * gdb.1: Document edit command.
982 * doc/gdb.texinfo: Document edit command.
984 2002-09-20 Fernando Nasser <fnasser@redhat.com>
986 * source.c: Make global variables current_source_symtab and
987 current_source_line static.
988 (list_command): Moved to cli/cli-cmds.c.
989 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
990 (get_first_line_listed): New accessor function.
991 (get_lines_to_list): New accessor function.
992 (get_current_source_symtab_and_line): New function. Retrieves the
993 position in the source code that we consider current.
994 (get_current_or_default_source_symtab_and_line): New function.
995 Like the above but attempts to determine a default position if one
996 is not currently defined.
997 (set_current_source_symtab_and_line): New function. Sets the source
998 code position considered current and returns the previously set one.
999 (clear_current_source_symtab_and_line): Reset stored information about
1000 a current source line.
1001 (_initialize_source): Remove registration for the "list" command and
1003 * source.h: Add declarations for the new functions above.
1004 * symtab.h: Remove declarations for the global variables mentioned
1006 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1007 obtain current source line.
1008 * linespec.c (decode_line_1): Ditto.
1009 * macroscope.c (default_macro_scope): Ditto.
1010 * scm-lang.c (scm_unpac): Ditto.
1011 * stack.c (print_frame_info_base): Ditto.
1012 * symfile.c (clear_symtab_users): Ditto.
1013 * symtab.c (decode_line_spec): Ditto.
1014 * cli/cli-cmds.c (list_command): Moved here from source.c.
1015 (ambiguous_line_spec): Moved here from source.c.
1016 (_init_cli_cmds): Add definition for "list" and its alias.
1017 * Makefile.in: Update dependencies.
1019 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1021 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1022 with what gcc thinks is correct.
1024 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1026 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1027 multiple register push instruction.
1029 2002-09-19 Jim Blandy <jimb@redhat.com>
1031 Add support for distinct host and target character sets.
1032 * charset.c, charset.h: New files.
1033 * c-exp.y: #include "charset.h".
1034 (yylex): Convert character and string literals to the target
1035 character set, before returning them as the semantic value of the
1037 * c-lang.c: #include "charset.h".
1038 (c_emit_char): Use charset-specific methods to recognize
1039 characters with backslash escape forms, to decide which characters
1040 to print literally and which to print using numeric escape
1041 sequences, and to convert target characters to host characters
1043 * utils.c: #include "charset.h".
1044 (no_control_char_error): New function.
1045 (parse_escape): Use charset-specific methods to recognize
1046 backslash escapes, parse `control character' notation, and convert
1047 characters from the host character set to the target character set.
1048 * configure.in: Set the default host character set.
1049 Check where to find iconv, and what its argument types might be.
1050 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1051 * Makefile.in (SFILES): List charset.c.
1052 (COMMON_OBS): List charset.o.
1053 (charset.o): New rule.
1054 (charset_h): New header dependency variable.
1055 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1056 (LIBICONV): New variable, set by configure.
1057 (CLIBS): Include $(LIBICONV) here.
1058 * aclocal.m4, config.in, configure: Regenerated.
1060 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1062 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1065 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1067 * gdb_mbuild.sh: New file.
1069 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1071 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1073 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1075 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1076 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1077 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1078 valops.c, value.h: Revert previous change.
1080 2002-09-18 Michael Snyder <msnyder@redhat.com>
1082 Preliminary support for Objective-C:
1083 * defs.h (language_objc): New enum value.
1084 (puts_filtered_tabular): Declaration only, exported from utils.c.
1085 (skip_quoted): Delete, declared in completer.h.
1086 * c-exp.y: Include completer.h.
1089 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1090 New operator enum values.
1091 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1092 * language.c (binop_result_type): Handle language_objc case.
1093 (integral_type, character_type, string_type, boolean_type,
1094 structured_type, binop_type_check): Ditto.
1095 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1096 (struct objc_specific): Add to general_symbol_info.
1097 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1098 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1099 * parser-defs.h (struct objc_class_str): New struct type.
1100 (start_msglist, end_msglist, add_msglist): Declaration only,
1101 exported from objc-lang.c.
1102 * value.h (value_of_local, value_nsstring,
1103 call_function_by_hand_expecting_type): Exported from valops.c.
1104 * valops.c (find_function_addr): Export.
1105 (call_function_by_hand_expecting_type): New function.
1106 (value_of_local): New function.
1107 * symfile.c (init_filename_language_table): Add ".m" extension
1109 * utils.c (puts_filtered_tabular): New function.
1110 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1111 (set/show demangle): Extend help-string to refer to ObjC.
1112 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1113 * stabsread.c (symbol_reference_defined): Objective-C symbols
1114 may contain colons: make allowances when scanning stabs strings
1116 (objc_find_colon): New function.
1117 * printcmd.c (address_info): If language == objc then print
1118 "self" instead of "this".
1119 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1120 OP_NSSTRING, and OP_SELF.
1121 (prefixify_subexp): Ditto.
1122 * source.c (print_source_lines): Mention objc in comment.
1123 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1126 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1128 * complaints.h: Update copyright.
1129 (struct complaints): Declare.
1130 (struct complaint): Make `message' constant.
1131 (internal_complaint): Declare.
1132 (complaint): Declare.
1133 (complaint_root): Delete declaration.
1134 (symfile_complaints): Delete declaration.
1135 (struct complaints): Add opaque declaration.
1136 (clear_complaints): Add a complaints parameter.
1137 * complaints.c: Update copyright.
1138 (enum complaint_series): Define.
1139 (complaint_root): Delete.
1140 (struct complaints): Define.
1141 (complaint_sentinel, symfile_complaint_book): New variables.
1142 (symfile_explanations, symfile_complaints): New variables.
1144 (get_complaints): New function.
1145 (vcomplaint): New function.
1146 (complaint): New function.
1147 (internal_complaint): New function.
1148 (complain): Call vcomplain with symfile_complaint.
1149 (clear_complaints): Rewrite.
1150 (_initialize_complaints): Use add_setshow_command.
1151 * Makefile.in (complaints.o): Update dependencies.
1152 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1153 to call to clear_complaints.
1154 (new_symfile_objfile, reread_symbols): Ditto.
1155 (oldsyms_complaint): Delete.
1156 (empty_symtab_complaint, unknown_option_complaint): Delete.
1157 (free_named_symtabs): Use complaint instead of complain.
1159 2002-09-18 Michael Snyder <msnyder@redhat.com>
1161 Contributed by Apple Computer, Inc. Merged with current sources
1162 by Adam Fedor <fedor@doc.com> [cagney].
1164 * objc-lang.c: First clean-up round: comments, indentation.
1165 * objc-lang.h: Ditto.
1166 * objc-lang.y: Ditto.
1168 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1170 * maint.c (maintenance_internal_error): Print the parameter as the
1172 (maintenance_internal_warning): New function.
1173 (_initialize_maint_cmds): Add command `maint internal-warning'.
1175 * defs.h (internal_warning, internal_vwarning): Declare.
1176 * utils.c (struct internal_problem): Define.
1177 (internal_vproblem): New function.
1178 (internal_warning): New function.
1179 (internal_vwarning): New function.
1180 (internal_warning_problem, internal_error_problem): New variables.
1181 (internal_verror): Just call internal_vproblem.
1183 2002-09-18 Michael Snyder <msnyder@redhat.com>
1185 * objc-lang.c: New file, support for Objective-C.
1186 Preliminary check-in, not yet integrated into gdb.
1187 * objc-lang.h: New file.
1188 * objc-exp.y: New file.
1190 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1192 * infrun.c (signal_stop_update): Convert definition to ISO C.
1193 (signal_print_update): Ditto.
1194 (signal_pass_update): Ditto.
1195 * inflow.c (terminal_save_ours): Ditto.
1197 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1200 * config/djgpp/fnchange.lst: Handle name clashes between
1201 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1204 * i386-linux-tdep.h: Fix tipo.
1206 2002-09-18 Adam Fedor <fedor@gnu.org>
1208 * MAINTAINERS: Add myself to the Write After Approval list.
1210 2002-09-18 Jim Blandy <jimb@redhat.com>
1212 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1213 texthigh and textlow to reader-specific structs caused
1214 objfile_relocate to miss them. This is fixable, but the work that
1215 the change was supposed to prepare GDB for never got done anyway.
1217 2002-09-18 David Carlton <carlton@math.stanford.edu>
1219 * MAINTAINERS: Alphabetize Write After Approval list.
1221 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1224 * values.c (value_static_field): Call read_var_value.
1226 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1228 * valops.c (hand_function_call): Align the initial stack pointer
1229 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1230 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1232 * mips-tdep.c (mips_frame_align): New function.
1233 (mips_gdbarch_init): Set frame_align.
1234 * gdbarch.sh (FRAME_ALIGN): New method.
1235 * gdbarch.h, gdbarch.c: Re-generate.
1237 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1239 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1242 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1244 * NEWS: Mention that MIPS $fp behavior changed.
1245 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1246 reference to FP_REGNUM.
1247 (mipsnbsd_cannot_store_register): Ditto.
1248 * mips-linux-nat.c: Update copyright.
1249 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1250 (mips_linux_cannot_store_register): Ditto.
1251 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1252 * config/mips/tm-mips.h: Update copyright.
1253 (FP_REGNUM): Delete macro.
1254 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1255 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1256 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1257 (mips_r3041_reg_names, mips_r3051_reg_names)
1258 (mips_r3081_reg_names): Replace "fp" with "".
1261 2002-09-17 Theodore A. Roth <troth@verinet.com>
1263 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1264 generic_read_register_dummy() (PR gdb/703).
1265 (avr_push_return_address): #if 0 out unused vars.
1266 (avr_gdbarch_init): Enable use of avr_push_return_address().
1268 2002-09-17 Michael Snyder <msnyder@redhat.com>
1270 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1271 RTE will take care of it.
1273 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1275 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1276 invalid, return SP_REGNUM.
1278 2002-09-17 Michael Snyder <msnyder@redhat.com>
1280 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1281 point registers without sign extension.
1283 2002-09-17 Andrew Cagney <cagney@redhat.com>
1285 * blockframe.c (deprecated_read_register_dummy): Rename
1286 generic_read_register_dummy.
1287 * frame.c (frame_unwind_signed_register): New function.
1288 (frame_unwind_unsigned_register): New function.
1289 * frame.h (frame_unwind_signed_register): Declare.
1290 (frame_unwind_unsigned_register): Declare.
1291 (deprecated_read_register_dummy): Rename
1292 generic_read_register_dummy.
1294 * h8300-tdep.c (h8300_frame_chain): Update.
1295 (h8300_frame_saved_pc): Update.
1296 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1297 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1298 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1299 (s390_frame_chain): Update.
1300 * v850-tdep.c (v850_find_callers_reg): Update.
1301 (v850_frame_saved_pc): Update.
1302 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1303 (m32r_find_callers_reg): Update.
1304 (m32r_frame_saved_pc): Update.
1305 * sh-tdep.c (sh_find_callers_reg): Update.
1306 (sh64_get_saved_pr): Update.
1307 (sh_init_extra_frame_info): Update.
1308 (sh_init_extra_frame_info): Update.
1309 (sh64_init_extra_frame_info): Update.
1310 (sh64_init_extra_frame_info): Update.
1311 * mcore-tdep.c (mcore_find_callers_reg): Update.
1312 (mcore_frame_saved_pc): Update.
1313 (mcore_init_extra_frame_info): Update.
1314 * i386-tdep.c (i386_frame_saved_pc): Update.
1315 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1316 (ia64_init_extra_frame_info): Update.
1317 (ia64_init_extra_frame_info): Update.
1318 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1319 * cris-tdep.c (cris_init_extra_frame_info): Update.
1320 * avr-tdep.c (avr_frame_chain): Update.
1321 (avr_init_extra_frame_info): Update.
1322 (avr_frame_saved_pc): Update.
1323 * arm-tdep.c (arm_find_callers_reg): Update.
1324 (arm_init_extra_frame_info): Update.
1325 (arm_frame_saved_pc): Update.
1327 2002-09-17 Tom Tromey <tromey@redhat.com>
1329 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1332 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1334 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1335 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1337 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1340 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1342 * osfsolib.c: Remove file, replaced by solib-osf.c.
1343 * Makefile.in: Remove compilation rules for osfsolib.c.
1345 2002-09-16 David Carlton <carlton@math.stanford.edu>
1347 * cp-valprint.c (cp_print_class_method): Correct args to
1348 check_stub_method_group.
1350 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1352 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1353 `set architecture'. Unify naming convention of functions.
1354 (h8300_skip_prologue): Improve prologue analysis.
1355 (h8300_push_arguments): Rewritten to more closely match GCC's
1356 bizarre argument-passing behavior, along with the comment describing
1358 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1359 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1360 sim, remote-e7000.c, remote-hms.c and remote.c
1362 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1364 * i386-tdep.c (gdb_print_insn_i386): Removed.
1365 (i386_print_insn): New function.
1366 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1367 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1370 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1372 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1375 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1377 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1378 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1379 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1381 2002-09-13 Christopher Faylor <cgf@redhat.com>
1383 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1385 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1387 * gdbtypes.c (check_stub_method): Make static.
1388 (check_stub_method_group): New function.
1389 * gdbtypes.h: Update prototypes.
1390 * cp-support.c: New file.
1391 * cp-support.h: New file.
1393 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1394 (update_method_name_from_physname): New function.
1395 (read_member_functions): Correct method names for operators
1396 and v3 constructors/destructors. Separate v2 constructors and
1398 * Makefile.in (stabsread.o): Update dependencies.
1399 (SFILES): Add cp-support.c.
1400 (COMMON_OBS): Add cp-support.o.
1401 (cp_support_h, cp-support.o): Add.
1403 * cp-valprint.c (cp_print_class_method): Call
1404 check_stub_method_group instead of check_stub_method. Remove
1406 * p-valprint.c (pascal_object_print_class_method): Likewise.
1407 * valops.c (search_struct_method): Likewise.
1408 (find_method_list, value_struct_elt_for_reference): Likewise.
1410 2002-09-13 Andrew Cagney <cagney@redhat.com>
1412 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1413 * gdbarch.h, gdbarch.c: Regenerate.
1415 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1417 * frame.c (find_saved_register): Delete function.
1418 * frame.h (find_saved_register): Delete declaration.
1421 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1423 * mips-tdep.c (read_next_frame_reg): Re-hack using
1424 frame_register_unwind.
1426 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1428 * mips-tdep.c (mips_get_saved_register): Re-hack using
1429 frame_register_unwind.
1431 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1433 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1434 vector. Will be useful for Interix.
1435 * gdbarch.h, gdbarch.c: Regenerate.
1437 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1438 name of the malloc function by NAME_OF_MALLOC.
1440 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1442 * value.h (find_function_in_inferior): Add const keyword to
1443 one of the parameters. Allows us to invoke this function with
1445 * valops.c (find_function_in_inferior): Likewise.
1447 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1449 * exec.c (xfer_memory): Fix compilation warning with old versions
1451 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1453 2002-09-12 David Carlton <carlton@math.stanford.edu>
1455 * symtab.h: Run through gdb_indent.h.
1456 Add 2002 to Copyright year list.
1458 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1460 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1462 * MAINTAINERS: Add myself to write after approval list.
1464 2002-09-11 J. Brobecker <brobecker@gnat.com>
1466 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1468 2002-09-11 J. Brobecker <brobecker@gnat.com>
1470 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1473 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1475 * procfs.c (do_detach): Clear current signal, not just fault.
1476 Corrects problem with breakpoint trap signal leaking to detached
1479 2002-09-10 Michael Snyder <msnyder@redhat.com>
1481 * buildsym.c (finish_block): Protect against null pointer.
1483 2002-09-10 Andrew Cagney <cagney@redhat.com>
1485 * infcmd.c (default_print_registers_info): Send all output to
1486 ``file'' instead of ``gdb_stdout''.
1488 2002-09-10 Michael Snyder <msnyder@redhat.com>
1490 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1491 LONGEST, and use signed register read (addresses are sign-
1494 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1496 * event-loop.c (gdb_do_one_event): Make public.
1497 * event-loop.h (gdb_do_one_event): Declare.
1499 2002-09-10 Jeff Law <law@redhat.com>
1501 * infttrace.c (child_resume): Simplify and rework to avoid
1504 2002-09-09 Fred Fish <fnf@intrinsity.com>
1506 * printcmd.c (print_scalar_formatted): "len" is the number of
1507 target bytes, NOT the number of target bits.
1509 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1511 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1512 * top.c (init_main): Set rl_terminal_name.
1514 2002-09-08 Aidan Skinner <aidan@velvet.net>
1516 * ada-lang.c (ada_array_bound, ada_type_match,
1517 _initialize_ada_language): Fix K&R definitions.
1518 * ada-tasks.c (get_current_task): Fix K&R definitions.
1519 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1521 2002-09-07 Christopher Faylor <cgf@redhat.com>
1523 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1526 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1528 * i386-tdep.c (i386_register_virtual_type,
1529 i386_register_convertible, i386_register_convert_to_virtual,
1530 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1531 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1532 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1533 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1534 Don't set push_arguments twice.
1536 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1537 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1538 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1539 sigtramp_end to NULL.
1540 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1542 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1544 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1547 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1548 * gdbarch.h, gdbarch.c: Re-generate.
1549 * blockframe.c (find_pc_sect_partial_function): Convert to use
1550 SIGTRAMP_START_P predicate.
1552 2002-09-05 Michael Snyder <msnyder@redhat.com>
1554 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1555 generic_dummy_frame method and old method. Also distinguish
1556 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1557 (arm_extract_return_value): Use new regcache method.
1559 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1560 adjustment that doesn't conform to the ABI.
1561 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1562 saved regcache, not from current regcache.
1564 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1566 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1569 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1571 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1572 if arm_apcs_32 is false.
1574 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1576 GDB 5.3 branch created.
1578 2002-09-03 Theodore A. Roth <troth@verinet.com>
1580 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1581 generic_unwind_get_saved_register.
1583 2002-09-03 David Carlton <carlton@math.stanford.edu>
1585 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1586 argument (PR gdb/653). Update call to smash_to_method_type.
1587 (read_structure_scope): Update call to dwarf2_add_member_fn.
1589 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1591 * x86-64-linux-tdep.c: Include gdb_string.h
1592 * x86-64-linux-nat.c: Ditto.
1594 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1596 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1597 when YYDEBUG is set to 1.
1598 * c-exp.y: Likewise.
1599 * f-exp.y: Likewise.
1600 * jv-exp.y: Likewise.
1601 * m2-exp.y: Likewise.
1602 * p-exp.y: Likewise.
1604 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1606 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1608 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1609 solib_svr4_fetch_link_map_offsets to
1610 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1611 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1612 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1613 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1614 solib-svr4.o, and solib-legacy.o.
1615 * config/i386/tm-nbsd.h: Include solib.h.
1617 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1619 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1620 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1621 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1622 comment noting that this needs its own target configuration.
1623 * config/i386/nbsd.mt: New file.
1624 * config/i386/nbsdaout.mt: Remove.
1625 * config/i386/nbsdelf.mt: Ditto.
1626 * config/i386/tm-nbsdaout.h: Ditto.
1628 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1630 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1631 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1632 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1634 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1635 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1636 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1638 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1640 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1641 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1642 * i386-tdep.h (i386bsd_init_abi): New prototype.
1643 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1644 function declaration.
1645 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1646 for NetBSD-a.out or NetBSD-ELF.
1647 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1648 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1649 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1650 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1652 (i386nbsd_pc_in_sigtramp): New function.
1653 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1654 i386nbsd_pc_in_sigtramp.
1655 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1656 and i386nbsdelf_init_abi OS ABI handlers.
1657 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1658 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1660 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1662 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1663 registers if the target really has them.
1665 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1667 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1670 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1672 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1674 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1675 (alphanbsd_skip_sigtramp_frame): New functions.
1676 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1677 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1678 to alphanbsd_sigcontext_addr.
1680 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1682 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1684 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1685 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1686 nbsd_pc_in_sigtramp.
1687 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1688 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1689 * nbsd-tdep.c: Include gdb_string.h.
1690 (nbsd_pc_in_sigtramp): New function.
1691 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1692 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1693 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1694 ppcnbsd_pc_in_sigtramp.
1695 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1696 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1697 shnbsd_pc_in_sigtramp.
1698 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1699 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1700 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1702 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1704 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1705 watchpoints to NULL.
1706 (insert_breakpoints): set val field of watchpoints if NULL.
1709 2002-08-29 Jim Blandy <jimb@redhat.com>
1711 * symtab.c (lookup_symbol_aux): In the cases where we find a
1712 minimal symbol of an appropriate name and use its address to
1713 select a symtab to read and search, use `name' (as passed to us)
1714 as the demangled name when searching the symtab's global and
1715 static blocks, not the minsym's name.
1717 2002-08-29 Keith Seitz <keiths@redhat.com>
1719 * stack.c (print_frame_info_base): Always set current_source_symtab
1720 and current_source_line.
1722 2002-08-29 Donn Terry <donnte@microsoft.com>
1724 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1726 2002-08-28 Keith Seitz <keiths@redhat.com>
1728 * stack.c (select_frame): Add FIXME concerning selected-frame
1730 (select_frame_command): Send selected-frame-level-changed
1731 event notification, but only if the level actually changed.
1732 (up_silently_base): Add selected-frame-level-changed event
1734 (down_silently_base): Likewise.
1736 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1738 * Makefile.in: Update dependencies for all gdb/*.c files.
1740 2002-08-27 Tom Tromey <tromey@redhat.com>
1742 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1743 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1744 Update dependencies.
1745 * i387-tdep.c: Include gdb_string.h.
1746 * osabi.c: Likewise.
1747 * i386-linux-nat.c: Likewise.
1748 * lin-lwp.c: Likewise.
1749 * ax-gdb.c: Likewise.
1750 * signals/signals.c: Likewise.
1751 * jv-valprint.c: Likewise.
1752 * p-lang.c: Likewise.
1753 * c-valprint.c: Likewise.
1754 * cp-abi.c: Likewise.
1756 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1758 * cli/cli-script.h (copy_command_lines): Export.
1759 * breakpoint.c: Include cli/cli-script.h.
1760 * Makefile.in (breakpoint.o): Update dependencies.
1762 2002-08-26 Michael Snyder <msnyder@redhat.com>
1764 * breakpoint.c (insert_breakpoints): Protect all references
1765 to 'process_warning'. Shorten long lines.
1767 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1769 * cli/cli-script.c (copy_command_lines): New function.
1770 * defs.h (copy_command_lines): Export.
1771 * testsuite/gdb.base/commands.exp: New tests for commands
1772 attached to a temporary breakpoint, and for commands that
1773 delete the breakpoint they are attached to.
1775 2002-08-26 Michael Snyder <msnyder@redhat.com>
1777 * breakpoint.c (bpstat_stop_status): Instead of copying the
1778 pointer to the breakpoint commands struct, make a new copy
1779 of the struct and point to that.
1780 (bpstat_clear): Free the commands struct.
1781 (bpstat_clear_actions): Free the commands struct.
1782 (bpstat_do_actions): Free the command actions. Also execute
1783 the local cleanups, instead of deleting them.
1784 (delete_breakpoint): Leave the commands field of the bpstat
1785 chain alone -- it will be freed later.
1787 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1789 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1790 deleted in 2002-08-20 commit. This function is still used by
1793 2002-08-26 Keith Seitz <keiths@redhat.com>
1795 * gdb-events.sh: Add selected-frame-level-changed event.
1796 * gdb-events.c: Regenerated.
1797 * gdb-events.h: Regenerated.
1799 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1802 * inflow.c (terminal_save_ours): New function to save terminal
1804 * inferior.h (terminal_save_ours): Declare.
1805 * target.c (debug_to_terminal_save_ours): New function.
1806 (cleanup_target): Defaults to_terminal_save_ours.
1807 (update_current_target): Inherit to_terminal_save_ours.
1808 (setup_target_debug): Set to_terminal_save_ours.
1809 * target.h (target_terminal_save_ours): New to save terminal settings.
1810 (target_ops): New member to_terminal_save_ours.
1811 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1812 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1813 * inftarg.c (init_child_ops): Likewise.
1814 * m3-nat.c (init_m3_ops): Likewise.
1815 * procfs.c (init_procfs_ops): Likewise.
1816 * wince.c (init_child_ops): Likewise.
1817 * win32-nat.c (init_child_ops): Likewise.
1818 * sol-thread.c (init_sol_thread_ops): Likewise.
1820 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1822 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1823 use regcache_* functions.
1824 (i386_gdbarch_init): Set store_return_value instead of
1825 deprecated_store_return_value.
1827 * regcache.c (regcache_raw_write_signed,
1828 regcache_raw_write_unsigned): New functions.
1829 * regcache.h (regcache_raw_write_signed,
1830 regcache_raw_write_unsigned): New prototypes.
1832 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1834 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1835 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1836 source file dependencies. Cleanup corresponding generator rules.
1838 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1840 * regcache.h (register_offset_hack): Declare.
1841 (regcache_cooked_read_using_offset_hack): Declare.
1842 (regcache_cooked_write_using_offset_hack): Declare.
1844 * regcache.c (register_offset_hack): New function.
1845 (regcache_cooked_read_using_offset_hack): New function.
1846 (regcache_cooked_write_using_offset_hack): New function.
1847 (regcache_dump): Check that the registers, according to their
1848 offset, are packed hard against each other.
1849 (cooked_xfer_using_offset_hack): New function.
1851 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1853 * regcache.c (struct regcache_descr): Add field register_type.
1854 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1856 (init_regcache_descr): Initialize register_type. Pass the descr
1857 to init_legacy_regcache_descr. Use register_type instead of
1858 REGISTER_VIRTUAL_TYPE.
1859 (register_type): New function.
1860 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1861 * regcache.h (register_type): Declare.
1863 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1865 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1866 instead of deprecated_store_return_value. Fix fallout from
1867 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1869 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1871 * regcache.c (max_register_size): New function.
1872 (init_legacy_regcache_descr): Ensure that max_register_size is
1873 large enough for REGISTER_VIRTUAL_SIZE.
1874 * regcache.h (max_register_size): Declare.
1876 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1878 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1880 (e500_extract_return_value): Change type of valbuf pointer to
1883 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1885 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1888 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1889 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1890 long long) to prevent compiler warning on 64-bit systems.
1892 2002-08-23 Andrew Cagney <cagney@redhat.com>
1894 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1895 (DEPRECATED_STORE_RETURN_VALUE): New method.
1896 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1897 * gdbarch.h, gdbarch.c: Re-generate.
1899 * values.c (set_return_value): Pass current_regcache to
1901 * arch-utils.h (legacy_store_return_value): Declare.
1902 * arch-utils.c (legacy_store_return_value): New function.
1903 (legacy_extract_return_value): Update parameters.
1905 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1907 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1908 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1909 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1910 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1911 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1912 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1913 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1914 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1915 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1916 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1919 * i386-tdep.c (i386_extract_return_value): Update.
1920 * arch-utils.c (legacy_extract_return_value): Update.
1921 * frv-tdep.c (frv_gdbarch_init): Update.
1922 * cris-tdep.c (cris_gdbarch_init): Update.
1923 * d10v-tdep.c (d10v_gdbarch_init): Update.
1924 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1925 * m68k-tdep.c (m68k_gdbarch_init): Update.
1926 * mcore-tdep.c (mcore_gdbarch_init): Update.
1927 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1928 * s390-tdep.c (s390_gdbarch_init): Update.
1929 * sparc-tdep.c (sparc_gdbarch_init): Update.
1930 * sh-tdep.c (sh_gdbarch_init): Update.
1931 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1932 * v850-tdep.c (v850_gdbarch_init): Update.
1933 * avr-tdep.c (avr_gdbarch_init): Update.
1934 * ia64-tdep.c (ia64_gdbarch_init): Update.
1935 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1936 * vax-tdep.c (vax_gdbarch_init): Update.
1937 * alpha-tdep.c (alpha_gdbarch_init): Update.
1938 * arm-tdep.c (arm_gdbarch_init): Update.
1939 * mips-tdep.c (mips_gdbarch_init): Update.
1940 * i386-tdep.c (i386_gdbarch_init): Update.
1942 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1944 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1945 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1947 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1949 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1952 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1954 * infrun.c (handle_inferior_event): Move a comment outside of a
1955 function call, in order to avoid indent reformatting this part
1956 of the code in an unreadable way.
1958 2002-08-23 Grace Sainsbury <graces@redhat.com>
1960 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1961 when breakpoints fail. Move general breakpoint error messages to
1963 * breakpoint.c (insert_breakpoints): Change warnings when
1964 breakpoints are nto inserted to specify the type. Remove call to
1965 memory_error when hardware breakpoints can't be inserted. Remove
1966 multiple calls to warning so all messages are sent to the user at
1968 (delete_breakpoints): Make insert error messsages more explicit.
1970 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1972 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1973 gdbserver/ChangeLog.
1975 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1977 * i386-tdep.c: Include "objfiles.h".
1978 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1979 skip_trampoline_code.
1980 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1981 (CPLUS_MARKER): Define to '.'.
1983 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1985 (linux_corefile_thread_callback): Increase args->num_notes.
1986 (linux_make_note_section): Initialize thread_args.num_notes, and
1987 use it to determine whether notes for any threads were created.
1989 2002-08-23 Donn Terry <donnte@microsoft.com>
1991 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1992 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1994 (write_with_trace): Conditionalize out the switch branch handling
1995 PCSHOLD if the corresponding macro is not defined. Likewise for
1996 PRSABORT and PRSTOP.
1997 This change will be needed by the Interix port.
1999 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2001 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2002 write_register wherever possible instead of manipulating the
2003 register bytes directly.
2004 Assign VALUE_CONTENTS to a variable and use that.
2005 The GPR numbers are now dependent on the architecture.
2007 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2009 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2011 (skip_prologue): Add support for BookE/e500 instructions.
2012 (e500_extract_return_value): New function.
2013 (frame_get_saved_regs): Add support for saving ev registers and
2015 (e500_store_return_value): New function.
2016 (rs6000_gdbarch_init): Move up default intializations of
2017 deprecated_extract_return_value and store_return_value. Overwrite
2018 init of store_return_value with e500 specific version.
2019 Set extract_return_value for e500.
2021 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2023 * blockframe.c (generic_call_dummy_register_unwind): Use
2024 regcache_cooked_read to catch cases in which the variable is
2025 stored in a pseudo register.
2027 2002-08-22 Andrew Cagney <cagney@redhat.com>
2029 * NEWS: Mention that the i960 has been made obsolete.
2030 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2032 (remote-nrom.o): Obsolete target.
2033 (remote-nindy.o, i960-tdep.o): Ditto.
2034 * remote-nrom.c: Make file obsolete.
2035 * remote-nindy.c, remote-vx960.c: Ditto.
2036 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2037 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2038 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2039 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2040 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2041 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2042 i960-*-vxworks* obsolete.
2043 * MAINTAINERS: Note that the i960 is obsolete.
2045 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2047 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2048 detach to allow reinitialization.
2050 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2052 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2055 2002-08-22 Jim Blandy <jimb@redhat.com>
2057 * coffread.c (coff_symfile_read): Don't try to read the line
2058 number table from disk if the image file doesn't have a symbol
2059 table; we'll never actually look at the info anyway, and Windows
2060 ships DLL's with bogus file offsets for the line number data.
2062 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2064 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2067 2002-08-21 Michael Snyder <msnyder@redhat.com>
2069 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2070 (MSYMBOL_SIZE): Replace macro with function.
2071 (DEFAULT_MIPS_TYPE): Delete unused macro.
2072 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2073 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2075 2002-08-21 Jim Blandy <jimb@redhat.com>
2077 * valops.c (value_cast): Simplify and correct logic for doing a
2078 static cast from a pointer to a base class to a pointer to a
2081 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2083 * infcmd.c (default_print_registers_info): Replace
2085 (registers_info): Use gdbarch_print_registers_info instead of
2087 * inferior.h (default_print_registers_info): Replace
2089 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2090 (DO_REGISTERS_INFO): Change to a predicate function.
2091 * gdbarch.h, gdbarch.c: Regenerate.
2093 2002-08-21 Keith Seitz <keiths@redhat.com>
2095 * gdb-events.sh: Add target-changed event.
2096 * gdb-events.c: Regenerated.
2097 * gdb-events.c: Regenerated.
2098 * valops.c (value_assign): Add target-changed event notification
2099 to inlval_register, lval_memory, and lval_reg_frame_relative.
2101 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2103 * NEWS: Add an entry regarding the improvement of the next/step
2104 operation on Alpha Tru64 multi-processor machines.
2106 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2108 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2110 * Makefile.in: Update all _h macro definitions.
2111 * Makefile.in (install-gdbtk): Move to install section.
2112 (rdi-share/libangsd.a): Move to end of file.
2114 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2116 * frame.c (frame_register_unwind): When a register, set addrp to
2117 the register's byte.
2119 2002-08-20 Michael Snyder <msnyder@redhat.com>
2121 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2122 used locally, so move them from the target machine header to here.
2123 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2124 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2126 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2128 2002-08-20 Andrew Cagney <cagney@redhat.com>
2130 * NEWS: Mention that the Apollo line was made obsolete.
2131 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2132 m68*-hp-hpux* obsolete.
2133 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2134 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2135 * buildsym.c (make_blockvector): Make static.
2136 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2137 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2138 (ALLDEPFILES): Remove dstread.c.
2139 (dstread.o): Obsolete make rule.
2140 * dstread.c: Makefile obsolete.
2142 * config/m68k/hp300hpux.mt: Ditto.
2143 * config/m68k/hp300hpux.mh: Ditto.
2144 * config/m68k/hp300bsd.mt: Ditto.
2145 * config/m68k/hp300bsd.mh: Ditto.
2146 * config/m68k/apollo68b.mt: Ditto.
2147 * config/m68k/apollo68v.mh: Ditto.
2148 * config/m68k/apollo68b.mh: Ditto.
2150 2002-08-20 Michael Snyder <msnyder@redhat.com>
2152 * mips-tdep.c (mips_in_return_stub): Make static.
2153 (mips_gdbarch_init): Set in_solib_return_trampoline.
2154 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2156 2002-08-20 Michael Snyder <msnyder@redhat.com>
2158 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2159 * gdbarch.c, gdbarch.h: Regenerate.
2160 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2162 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2164 2002-08-20 Michael Snyder <msnyder@redhat.com>
2166 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2167 (mips_gdbarch_init): Set skip_trampoline_code,
2168 in_solib_call_trampoline.
2169 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2170 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2172 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2174 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2176 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2177 vector type for ev registers.
2178 (e500_pseudo_register_read): New function.
2179 (e500_pseudo_register_write): New function.
2180 (e500_dwarf2_reg_to_regnum): New function.
2181 (PPC_UISA_NOFP_SPRS): New macro.
2182 (PPC_EV_REGS): New macro.
2183 (PPC_GPRS_PSEUDO_REGS): New macro.
2184 (registers_e500): New register set for e500.
2185 (variants): Add e500 variant.
2186 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2187 before setting architectural dependent variations. Initialize ev
2188 registers numbers. Add case for e500 architecture. Set the
2189 number of pseudo registers.
2191 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2193 * rs6000-tdep.c: Clean up comments.
2195 2002-08-20 Andrew Cagney <cagney@redhat.com>
2197 * h8300-tdep.c: Re-indent file.
2199 2002-08-20 Jim Blandy <jimb@redhat.com>
2201 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2204 2002-08-20 Keith Seitz <keiths@redhat.com>
2206 * breakpoints.c (watch_command_1): Use internal breakpoint
2207 when setting a watchpoint_scope breakpoint.
2209 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2211 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2212 (build_builtin_type_vec64i): Ditto.
2213 (build_builtin_type_vec128): Ditto.
2214 (build_builtin_type_vec128i): Ditto.
2216 2002-08-19 Michael Snyder <msnyder@redhat.com>
2218 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2219 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2220 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2221 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2222 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2223 CALL_DUMMY_ADDRESS): Delete.
2224 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2225 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2226 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2227 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2228 push_return_address.
2229 (mips_register_raw_size, mips_eabi_use_struct_convention,
2230 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2231 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2232 mips_init_extra_frame_info, mips_eabi_push_arguments,
2233 mips_n32n64_push_arguments, mips_push_return_address,
2234 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2235 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2237 2002-08-19 Michael Snyder <msnyder@redhat.com>
2239 * mips-tdep.c (mips_frame_num_args): New function.
2240 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2241 frame_saved_pc, frame_args_address, frame_locals_address,
2242 frame_num_args, and frame_args_skip.
2243 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2244 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2245 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2246 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2248 2002-08-20 Michael Snyder <msnyder@redhat.com>
2250 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2251 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2252 * mips-tdep.c (mips_store_struct_return): New function.
2253 (mips_extract_struct_value_address): New function.
2254 (mips_gdbarch_init): Set store_struct_return and
2255 extract_struct_value_address.
2257 2002-08-20 David Carlton <carlton@math.stanford.edu>
2259 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2260 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2261 (read_file_scope): Check that line_header is nonzero before
2262 decoding macro information.
2264 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2266 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2267 flag the general-purpose registers as floating-point on targets
2268 that don't support the floating-point registers.
2270 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2272 * rs6000-tdep.c (altivec_register_p): Delete.
2273 (rs6000_do_altivec_registers): Delete.
2274 (rs6000_altivec_registers_info): Delete.
2275 (rs6000_do_registers_info): Delete.
2276 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2277 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2279 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2281 * infcmd.c (do_registers_info): Print vector registers in hex
2283 (print_vector_info): Check that printing registers
2285 (print_float_info): Ditto.
2287 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2289 * mips-tdep.c (mips_gdbarch_init): Update.
2290 (mips_o32_extract_return_value): Rewrite.
2291 (mips_o32_store_return_value): Rewrite.
2292 (mips_o32_xfer_return_value): New function.
2293 (mips_xfer_register): Tweak debug print message. Allow for
2294 buf_offset when dumping the value transfered.
2296 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2298 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2299 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2300 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2301 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2302 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2304 2002-08-14 Michael Snyder <msnyder@redhat.com>
2306 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2308 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2310 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2312 (P): New macro to define a register as a pseudo register.
2313 (R, R4, R8, R16, FR32, R64, R0): Updated.
2314 (struct variant): Add new fields for number of pseudo registers
2315 and number of total registers.
2316 (tot_num_registers): New macro replacing....
2317 (num_registers): ...deleted macro.
2318 (num_registers): New function.
2319 (num_pseudo_registers): New function.
2320 (variants): Update all variants to intialize new fields correctly.
2321 Postpone initialization of number of pseudo regs and real regs.
2322 (init_variants): New function.
2323 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2326 2002-08-19 David Carlton <carlton@math.stanford.edu>
2328 * valops.c (search_struct_field): Change error message to treat
2329 return value of 0 from value_static_field as meaning that field is
2331 (value_struct_elt_for_reference): Ditto.
2332 * values.c (value_static_field): Treat an unresolved location the
2333 same as a nonexistent symbol. Fix PR gdb/635.
2334 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2335 enclosed. Fix PR gdb/574.
2336 * MAINTAINERS: Add self to Write After Approval list.
2338 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2340 * mips-tdep.c (mips_xfer_register): New function.
2341 (mips_n32n64_extract_return_value): Rewrite.
2342 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2343 instead of deprecated_extract_return_value.
2345 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2347 * rs6000-tdep.c (TDEP): Delete macro.
2348 (branch_dest): Replace use of TDEP macro with its body.
2349 (rs6000_pop_frame): Ditto.
2350 (rs6000_push_arguments): Ditto.
2351 (rs6000_skip_trampoline_code): Ditto.
2352 (rs6000_frame_saved_pc): Ditto.
2353 (rs6000_frame_chain): Ditto.
2354 (rs6000_register_name): Ditto.
2355 (rs6000_register_byte): Ditto.
2356 (rs6000_register_raw_size): Ditto.
2357 (rs6000_register_virtual_type): Ditto.
2358 (rs6000_register_convertible): Ditto.
2359 (rs6000_convert_from_func_ptr_addr): Ditto.
2361 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2363 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2365 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2366 MIPS_LINUX_JB_ELEMENT_SIZE.
2367 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2368 for MAX_REGISTER_RAW_SIZE arrays.
2369 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2370 MIPS_LINUX_JB_ELEMENT_SIZE.
2372 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2374 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2376 2002-08-19 Aidan Skinner <aidan@velvet.net>
2378 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2379 ada-valprint.c ada-tasks.c.
2380 (YYFILES): Add ada-exp.y.
2381 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2382 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2383 (ada-exp.tab.o): New target.
2385 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2387 * regcache.c (regcache_xfer_part): New function.
2388 (regcache_raw_read_part): New function.
2389 (regcache_raw_write_part): New function.
2390 (regcache_cooked_read_part): New function.
2391 (regcache_cooked_write_part): New function.
2392 * regcache.h (regcache_raw_read_part): Declare.
2393 (regcache_raw_write_part): Declare.
2394 (regcache_cooked_read_part): Declare.
2395 (regcache_cooked_write_part): Declare.
2397 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2399 * remote.c (remote_open_1): Add async_p.
2400 (remote_async_open_1): Delete.
2401 (open_remote_target): Delete.
2402 (remote_open, extended_remote_open): Update calls to remote_open_1.
2403 (remote_async_open, extended_remote_async_open): Call
2404 remote_open_1 instead of remote_async_open_1.
2406 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2408 * blockframe.c: Fix a few coding standard violations.
2410 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2412 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2414 * config/i386/tm-i386sco5.h: ... here. File removed.
2415 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2417 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2418 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2419 (TM_FILE): Set to tm-i386.h.
2420 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2421 * config/i386/tm-i386v.h: Remove file.
2422 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2423 instead of "i386/tm-i386v.h".
2424 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2425 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2427 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2428 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2431 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2433 * config/i386/nm-i386v.h: Add protection against
2435 (i386_register_u_addr): Remove prototype.
2436 (register_u_addr): New prototype.
2437 (REGISTER_U_ADDR): Redefine accordingly.
2438 * i386v-nat.c: Improve several comments.
2439 (i386_register_u_addr): Change signature and rename to
2440 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2443 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2445 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2446 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2447 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2448 deprecated_extract_return_value.
2449 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2450 rename mips_o32o64_push_arguments.
2451 (mips_gdbarch_init): Update.
2452 (mips_extract_return_value): Delete.
2453 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2454 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2455 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2456 (mips_n32n64_extract_return_value): Clone
2457 mips_extract_return_value.
2458 (mips_store_return_value): Delete.
2459 (mips_o32_store_return_value): Clone mips_store_return_value.
2460 (mips_o64_store_return_value): Clone mips_store_return_value.
2461 (mips_eabi_store_return_value): Clone mips_store_return_value.
2462 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2464 2002-08-18 Aidan Skinner <aidan@velvet.net>
2466 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2467 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2469 2002-08-18 Aidan Skinner <aidan@velvet.net>
2471 * ada-lang.c: Run through gdb_indent.sh.
2472 * ada-lang.h: Run through gdb_indent.sh.
2473 * ada-tasks.c: Run through gdb_indent.sh.
2474 * ada-typeprint.c: Run through gdb_indent.sh.
2475 * ada-valprint.c: Run through gdb_indent.sh.
2477 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2479 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2482 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2484 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2486 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2487 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2489 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2490 write_register_gen instead of write_register_bytes.
2492 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2493 i[3456]-*-osf1mk* configurations have been made obsolete.
2494 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2495 i[3456]86-*-osf1mk* hosts obsolete.
2496 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2498 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2499 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2500 config/i386/i386m3.mt, config/i386/nm-m3.h,
2501 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2502 config/i386/i386mk.mh, config/i386/i386mk.mt,
2503 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2505 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2506 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2507 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2509 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2511 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2512 (hppa_value_returned_from_stack): Declare.
2513 (hppa_extract_return_value): Declare.
2514 * config/pa/hppa.mt: New file.
2515 * configure.tgt: Recognize hppa*-*-*.
2516 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2518 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2520 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2523 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2525 * top.c (gdb_rl_operate_and_get_next): Make sure
2526 operate-and-get-next functions correctly even when the history
2527 list is completely filled.
2529 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2531 * MAINTAINERS (Target Instruction Set Architectures): Rename
2532 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2533 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2534 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2535 already listed under Host/Native.
2537 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2538 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2541 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2543 * config/ia64/ia64.mt: New file.
2544 * config/alpha/alpha.mt: New file.
2545 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2546 ia64-linux-gnu. Mention that ia64-elf is broken.
2547 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2549 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2551 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2552 generic_func_frame_valid instead of func_frame_valid.
2554 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2556 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2557 procfs appears to be broken when debugging on multi-processor
2558 machines. So enable software single stepping in order to avoid
2559 using the procfs interface to do next/step operations, using
2560 internal breakpoints instead.
2562 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2563 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2564 make this pc address equal to the value it would have if the
2565 system stepping capability was used. Also set a new flag used
2566 to ensure that we don't readjust the PC one more time later.
2568 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2569 address by DECR_PC_AFTER_BREAK when software single step is
2570 in use for this architecture, as this has already been taken
2571 care of in handle_inferior_event().
2573 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2575 * infrun.c (handle_inferior_event): Minor reformatting, to make
2576 a rather long condition expression easier to read.
2578 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2580 * Makefile.in (gdbtk.o): Move to end of file.
2581 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2582 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2583 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2584 (gdbtk-wrapper.o, gdbres.o): Ditto.
2586 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2588 * Makefile.in (copying.o): Separate out compile rule.
2589 (hpux-thread.o, procfs.o, signals.o): Ditto.
2590 (v850ice.o, z8k-tdep.o): Ditto.
2591 (tui-file.o): Move to TUI section.
2592 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2593 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2595 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2597 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2598 skip_trampoline_code, for better namespace-proofing.
2600 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2602 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2604 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2606 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2608 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2609 signal, check whether we hit a breakpoint before checking for a
2610 single step breakpoint. Otherwise, GDB fails to notice that a
2611 breakpoint has been hit when stepping onto a breakpoint.
2613 2002-08-16 Keith Seitz <keiths@redhat.com>
2615 * gdb-events.sh (clear_gdb_event_hooks): New function.
2616 * gdb-events.c: Regenerate.
2617 * gdb-events.h: Regenerate.
2619 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2621 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2622 not_a_sw_breakpoint.
2623 * breakpoint.h (bpstat_stop_status): Add parameter names.
2625 2002-08-16 Grace Sainsbury <graces@redhat.com>
2627 * remote.c (remote_insert_hw_breakpoint)
2628 (remote_remove_hw_breakpoint): Fix calculation of length field
2631 2002-08-15 Michael Snyder <msnyder@redhat.com>
2633 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2634 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2635 (supply_fpregset): Ditto.
2637 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2638 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2639 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2640 (TARGET_READ_SP): Delete.
2641 (DO_REGISTERS_INFO): Delete.
2642 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2644 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2645 from macros to functions.
2647 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2648 (mips_register_convertible, mips_register_convert_to_virtual,
2649 mips_register_convert_to_raw): Make static.
2650 (mips_read_sp): New function.
2651 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2652 (mips_do_registers_info): Make static.
2653 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2654 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2655 (mips_register_convert_from_type, mips_register_convert_to_type):
2657 (mips_gdbarch_init): Set up function_start_offset,
2658 register_virtual_size, pc_in_sigtramp.
2660 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2662 * infcmd.c (vector_info): New function.
2663 (_initialize_infcmd): Add command "info vector".
2664 (print_vector_info): New function.
2666 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2667 * gdbarch.h, gdbarch.c: Regenerate.
2669 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2671 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2672 ``print_all''. Only print vector registers when ``print_all''.
2674 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2676 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2677 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2679 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2680 Add `args' parameter.
2681 * gdbarch.h, gdbarch.c: Regenerate.
2683 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2685 * infcmd.c (float_info): Call print_float_info.
2686 (print_float_info): New function. By default, print the
2687 floating-point registers.
2689 * arch-utils.h (default_print_float_info): Delete declaration.
2690 * arch-utils.c (default_print_float_info): Delete function.
2692 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2694 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2697 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2700 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2701 * configure.host: Make i[3456]86-*-aix host obsolete.
2702 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2703 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2704 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2705 config/i386/xm-i386aix.h: Make files obsolete.
2706 * i386aix-nat.c: Make file obsolete.
2707 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2708 (i386aix-nat.o): Make target obsolete.
2710 * config/i386/nm-gnu.h: Removed.
2711 * config/i386/nm-i386gnu.h: New file.
2712 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2713 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2715 * config/i386/tm-i386gnu.h: ... here. Removed.
2716 * config/i386/xm-i386gnu.h: Removed.
2717 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2718 (NAT_FILE): Set to nm-i386gnu.h.
2719 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2720 * i386-tdep.c: New file.
2721 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2722 (i386gnu-tdep.o): Specify dependencies.
2724 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2726 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2727 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2728 Adjust a few comments to reflect reality a bit closer.
2729 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2730 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2731 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2732 target_insert_watchpoint, target_remove_watchpoint):
2734 * config/i386/nm-i386sco5.h: ... here.
2735 (kernel_u_size): Add prototype. Improve a few comments and add
2736 protection against multiple inclusion.
2738 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2741 * uw-thread.c (SP_ARG0): Define if not already defined.
2742 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2744 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2746 * config/i386/tm-i386.h: Don't include "regcache.h".
2748 * i387-tdep.h (i387_print_float_info): New prototype.
2749 * i387-tdep.c (print_i387_value, print_i387_ext,
2750 print_i387_status_word, print_i387_control_word): Add `struct
2751 ui_file *' argument and use it for output.
2752 (i387_print_float_info): Renamed from i387_float_info. Add
2753 `struct gdbarch *' and `struct ui_file *' arguments and use the
2755 * i386-tdep.c: Include "i387-tdep.h".
2756 (i386_gdbarch_init): Set print_float_info.
2757 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2758 (FLOAT_INFO): Remove define.
2760 2002-08-13 Michael Snyder <msnyder@redhat.com>
2762 * mips-tdep.c (mips_push_arguments): Rename to
2763 mips_eabi_push_arguments, and tune for EABI.
2764 (MIPS_REGS_HAVE_HOME_P): Delete.
2765 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2766 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2767 Delete references to mips_regs_have_home_p.
2769 2002-08-14 Keith Seitz <keiths@redhat.com>
2771 * Makefile.in (install-gdbtk): Create insight plugin directory.
2772 Install plugins.tcl file.
2774 2002-08-14 Keith Seitz <keiths@redhat.com>
2776 * configure.in: Move SUBDIRS to near top of the file so that
2777 --enable options may add things to it.
2778 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2779 * configure: Regenerate.
2781 2002-08-13 Michael Snyder <msnyder@redhat.com>
2783 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2784 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2785 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2787 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2789 * vax-tdep.c (vax_get_saved_register): Delete function.
2790 (vax_gdbarch_init): Update.
2791 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2792 (ns32k_gdbarch_init): Update.
2793 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2794 (alpha_gdbarch_init): Update.
2796 2002-08-13 Andrew Cagney <cagney@redhat.com>
2798 * regcache.c (init_regcache_descr): Overallocate the
2799 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2800 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2802 (set_register_cached): Add range checking assertions. Use
2805 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2807 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2808 numbers for MMX registers.
2810 2002-08-13 Andrew Cagney <cagney@redhat.com>
2812 * i386-tdep.c (i386_gdbarch_init): Use
2813 generic_unwind_get_saved_register.
2815 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2817 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2818 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2820 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2821 Delete. Add comment regarding this now-deleted target method.
2823 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2825 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2826 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2827 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2828 real PC and the page number (if it's within the memory bank window).
2829 (m68hc11_pseudo_register_write): Likewise when saving.
2830 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2831 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2832 (m68hc11_register_raw_size): And use 32-bit for it.
2833 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2834 16K memory bank is used by the prog; also use the virtual pc.
2836 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2838 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2839 (m68hc11_gdbarch_init): Install it in gdbarch.
2840 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2841 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2842 (MSYMBOL_SIZE): New for documentation.
2843 (insn_return_kind): Enum to specify how a function returns.
2844 (frame_extra_info): Cleanup and record the return mode.
2845 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2846 register in address computation.
2847 (m68hc11_get_return_insn): New to obtain the return instruction used
2849 (m68hc11_frame_init_saved_regs): Take into account the return
2850 instruction used by the function for far and interrupt functions.
2851 (m68hc11_init_extra_frame_info): Take into account page register.
2852 (m68hc11_frame_args_address): Adjust according to the return mode.
2853 (show_regs): Print page register only when it's used.
2855 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2857 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2858 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2859 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2861 (m68hc11_register_raw_size): Likewise.
2863 2002-08-13 Andrew Cagney <cagney@redhat.com>
2865 * i386-tdep.c (i386_register_name): Handle mmx registers.
2866 (mmx_regnum_p): New function.
2867 (i386_mmx_names): New array.
2868 (mmx_num_regs): New variable.
2869 (i386_pseudo_register_read): New function.
2870 (i386_pseudo_register_write): New function.
2871 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2873 * regcache.c (regcache_raw_read_unsigned): New function.
2874 (regcache_raw_read_signed): New function.
2875 * regcache.h (regcache_raw_read_unsigned): Declare.
2876 (regcache_raw_read_signed): Declare.
2878 2002-08-13 Andrew Cagney <cagney@redhat.com>
2880 * regcache.c (regcache_raw_read_as_address): Delete function.
2881 (regcache_cooked_read_signed): New function.
2882 (regcache_cooked_read_unsigned): New function.
2883 * regcache.h (regcache_cooked_read_signed): Declare.
2884 (regcache_cooked_read_unsigned): Declare.
2885 (regcache_raw_read_as_address): Delete declaration.
2887 * blockframe.c (generic_read_register_dummy): Use
2888 regcache_cooked_read_unsigned.
2889 * i386-tdep.c (i386_extract_struct_value_address): Use
2890 regcache_cooked_read_unsigned.
2892 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2894 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2895 double sizes according to ELF ABI flags.
2896 (gdbarch_tdep): Record elf_flags.
2898 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2900 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2901 (m6812_prolog): They can appear in 68HC12 function prologue.
2902 (m68hc11_frame_chain): Cleanup.
2904 2002-08-12 Andrew Cagney <cagney@redhat.com>
2906 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2908 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2909 (i386_linux_register_raw_size): Delete function.
2910 (i386_linux_init_abi): Update.
2911 * i386-tdep.c (i386_register_raw_size): Delete function.
2912 (i386_register_byte): Delete function.
2913 (i386_gdbarch_init): Update.
2914 (i386_register_size): Delete array.
2915 (i386_register_offset): Delete array.
2917 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2918 (REGISTER_RAW_SIZE): Delete macro.
2919 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2920 (REGISTER_BYTE): Delete macro.
2922 2002-08-11 Aidan Skinner <aidan@velvet.net>
2924 * ada-lang.c (ada_lookup_partial_symbol)
2925 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2926 prototype names so that grep ^func works properly.
2928 * ada-lang.c (ada_array_element_type)
2929 (ada_lookup_partial_symbol): Fix typos in parameter list.
2931 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2932 Fix prototype names so that grep ^func works properly.
2934 2002-08-10 Andrew Cagney <cagney@redhat.com>
2935 Elena Zannoni <ezannoni@redhat.com>
2936 Martin M. Hunt <hunt@redhat.com>
2938 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2939 (build_builtin_type_vec128i): Set the vector bit.
2940 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2941 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2942 (build_builtin_type_vec64): New function.
2943 (build_builtin_type_vec64i): New function.
2944 (build_gdbtypes): Initialize builtin_type_vec64 and
2945 builtin_type_vec64i.
2947 2002-08-09 Andrew Cagney <cagney@redhat.com>
2949 * regcache.c (regcache_dump): Compare the register offset
2951 * arch-utils.c (generic_register_byte): New function.
2952 * arch-utils.h (generic_register_byte): Declare.
2953 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2954 * gdbarch.h, gdbarch.c: Regenerate.
2956 2002-08-09 Andrew Cagney <cagney@redhat.com>
2958 * regcache.c: Include "gdbcmd.h"
2959 (_initialize_regcache): Add commands "maintenance print
2960 registers", "maintenance print raw-registers" and "maintenance
2961 print cooked-registers".
2962 (enum regcache_dump_what): Define.
2963 (dump_endian_bytes): New function.
2964 (regcache_dump): New function.
2965 (regcache_print): New function.
2966 (maintenance_print_registers): New function.
2967 (maintenance_print_raw_registers): New function.
2968 (maintenance_print_cooked_registers): New function.
2969 * Makefile.in (regcache.o): Update dependencies.
2971 2002-08-09 Michael Snyder <msnyder@redhat.com>
2973 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2974 (mips_push_arguments): Correct some comments. Use paddr_nz
2975 for printing addresses in debug output. Replace static
2976 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2977 (mips_n32n64_push_arguments): New function, cloned from
2978 mips_push_arguments and tuned for the n32/n64 ABI.
2979 (mips_push_register): Buffer needs dynamic allocation.
2980 (mips_print_register): Ditto.
2981 (do_gp_register_row): Ditto.
2982 (mips_store_return_value): Ditto.
2983 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2985 2002-08-09 Don Howard <dhoward@redhat.com>
2987 * memattr.c (mem_info_command): Print special case of upper bound
2988 as max CORE_ADDR + 1.
2990 2002-08-08 Michael Snyder <msnyder@redhat.com>
2992 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2993 returns structs by ref if they're too big to fit in two registers.
2995 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2997 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2999 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3000 mips_find_saved_regs().
3001 (mips_pop_frame): Likewise.
3003 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3005 * blockframe.c (frame_saved_regs_register_unwind): Revise
3006 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3009 2002-08-09 Grace Sainsbury <graces@redhat.com>
3011 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3012 T-packets; the 'a' is not taken as a register number.
3013 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3014 (remote_stopped_data_address): New functions; add to target
3016 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3017 prototypes to match other implementations of this
3018 function. replace integer argument with pointer -- the length
3019 field in the Z-packet is the length of what is pointed to or 1 if
3020 pointer is null. Add to target vector.
3021 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3025 * remote.c (remote_wait): Add support to extract optional
3026 watchpoint information from T-packet. Ignore unrecognized
3027 optional info in T-packet.
3028 (remote_async_wait): Ditto.
3030 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3032 * cli/cli-dump.c: Change fopen modes to use binary open modes
3033 as defined in include/fopen-bin.h throughout.
3035 2002-08-08 Michael Snyder <msnyder@redhat.com>
3037 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3039 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3041 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3042 assertion failure by returning early after a warning.
3044 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3046 * mips-tdep.c (mips_find_saved_regs): Make static.
3047 (mips_frame_init_saved_regs): New function.
3048 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3049 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3050 (mips_find_saved_regs): Delete declaration.
3052 2002-08-08 Grace Sainsbury <graces@redhat.com>
3054 * remote.c (remote_wait, remote_async_wait): Change
3055 thread_num from int to ULONGEST.
3056 (unpack_varlen_hex): Change result parameter from
3057 int * to ULONGEST *.
3059 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3061 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3062 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3064 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3066 2002-08-08 Andrew Cagney <cagney@redhat.com>
3068 * gcore.c (override_derive_stack_segment): Delete variable.
3069 (preempt_derive_stack_segment): Delete function.
3070 (derive_stack_segment): Delete function.
3071 (default_derive_stack_segment): Renamed to derive_stack_segment.
3072 (override_derive_heap_segment): Delete variable.
3073 (preempt_derive_heap_segment): Delete function.
3074 (derive_heap_segment): Delete function.
3075 (default_derive_heap_segment): Rename to derive_heap_segment.
3077 2002-08-06 Michael Snyder <msnyder@redhat.com>
3079 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3080 * mips-tdep.c (mips_EABI_use_struct_convention,
3081 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3082 New functions. (mips_use_struct_convention): Delete.
3083 (mips_gdbarch_init): set use_gdbarch_convention.
3085 2002-08-06 Michael Snyder <msnyder@redhat.com>
3087 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3088 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3089 mips_o32_reg_struct_has_addr): New functions.
3090 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3092 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3094 * regcache.c (pseudo_register): Delete function.
3095 (fetch_register): Delete function.
3096 (store_register): Delete function.
3097 (regcache_raw_read, legacy_read_register_gen): Use
3098 target_fetch_registers instead of fetch_register.
3099 (legacy_write_register_gen, regcache_raw_write): Use
3100 target_store_register instead of store_register.
3101 (write_register_bytes): Ditto.
3103 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3104 (STORE_PSEUDO_REGISTER): Delete.
3105 * gdbarch.h, gdbarch.c: Regenerate.
3107 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3109 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3110 write dump file binary.
3112 2002-08-05 Michael Snyder <msnyder@redhat.com>
3114 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3115 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3116 (mips_gdbarch_init): Set N32 target to be mips64.
3118 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3120 * frame.c (find_saved_register): Break out of loop once saved
3121 register address is found. Don't mention sparc in loop comment
3124 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3126 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3127 mips_default_saved_regsize to 8.
3129 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3131 * gcore.c: Do not include <sys/procfs.h>.
3132 * Makefile.in (gcore.o): Update dependencies.
3134 2002-08-06 Andrew Cagney <cagney@redhat.com>
3136 * configure.tgt: Make arc-*-* obsolete.
3137 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3138 * MAINTAINERS: Make arc-elf obsolete.
3139 * arc-tdep.c: Make file obsolete.
3140 * config/arc/arc.mt: Ditto.
3141 * config/arc/tm-arc.h: Ditto.
3143 2002-08-05 Theodore A. Roth <troth@verinet.com>
3145 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3147 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3149 * mcore-tdep.c (mcore_gdbarch_init): Use
3150 generic_unwind_get_saved_register instead of
3151 generic_get_saved_register.
3152 * v850-tdep.c (v850_gdbarch_init): Ditto.
3153 * frv-tdep.c (frv_gdbarch_init): Ditto.
3154 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3155 * s390-tdep.c (s390_gdbarch_init): Ditto.
3156 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3157 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3158 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3160 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3162 * objfiles.h: Add missing #include "symfile.h"
3164 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3166 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3168 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3169 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3172 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3174 * NEWS: Cleanup and nitpick.
3176 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3178 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3180 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3182 * Makefile.in (gdbtk-bp.o): Update dependencies.
3183 (gdbtk-register.o): Ditto.
3184 (gdbtk-varobj.o): Ditto.
3186 2002-08-03 Andrew Cagney <cagney@redhat.com>
3188 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3189 m68hc11_fetch_pseudo_register.
3190 (m68hc11_pseudo_register_write): Replace
3191 m68hc11_store_pseudo_register.
3192 (m68hc11_gdbarch_init): Update.
3194 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3196 * gdbarch.sh: Include "gdb_string.h".
3197 * gdbarch.c: Regenerate.
3199 * regcache.c: Include "gdb_string.h".
3200 * ax-general.c: Ditto.
3202 * std-regs.c: Ditto.
3203 * fbsd-proc.c: Ditto.
3206 * Makefile.in (regcache.o): Update dependencies.
3207 (thread.o, gdbarch.o): Ditto.
3208 (ax-general.o, gdbarch.o): Ditto.
3209 (varobj.o, std-regs.o): Ditto.
3210 (fbsd-proc.o): Specify dependencies.
3212 2002-08-02 Andrew Cagney <cagney@redhat.com>
3214 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3216 (regcache_cooked_write): Ditto.
3218 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3220 * regcache.c (regcache_cooked_read): New function.
3221 (regcache_cooked_write): New function.
3222 (read_register_gen): Rewrite using regcache_cooked_read.
3223 (write_register_gen): Rewrite using regcache_cooked_write.
3225 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3228 2002-08-02 Andrew Cagney <cagney@redhat.com>
3230 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3231 Replace the architecture methods register_read and register_write.
3232 * gdbarch.h, gdbarch.c: Regenerate.
3233 * regcache.c (init_regcache_descr): Update.
3234 (read_register_gen): Update.
3235 (write_register_gen): Update.
3236 (supply_register): Update comment.
3238 * sh-tdep.c (sh_gdbarch_init): Update.
3239 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3240 `regcache' and `gdbarch' parameters. Make `buffer' a void
3241 pointer. Update code.
3242 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3243 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3244 void pointer. Update code.
3245 (sh64_register_write): Delete.
3246 (sh4_register_read): Delete.
3247 (sh64_register_read): Delete.
3248 (sh4_register_write): Delete.
3249 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3250 void pointer, `to' parameter a void pointer.
3251 (sh_sh64_register_convert_to_raw): Ditto.
3253 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3255 * mips-tdep.c (mips_register_virtual_type): Use architecture
3256 invariant return values.
3258 2002-08-01 Andrew Cagney <cagney@redhat.com>
3260 * linux-proc.c: Include "gdb_string.h".
3261 * Makefile.in (linux-proc.o): Update dependency list.
3263 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3265 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3268 2002-08-01 Grace Sainsbury <graces@redhat.com>
3270 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3271 to_insert_watchpoint, to_remove_watchpoint,
3272 to_stopped_by_watchpoint, to_stopped_data_address,
3273 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3274 target vecctor. Define their corresponding macros so they call
3277 * target.c: Add default and debug versions of for
3278 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3279 to_insert_watchpoint, to_remove_watchpoint,
3280 to_stopped_by_watchpoint, to_stopped_data_address,
3281 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3283 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3285 * mips-tdep.c (mips_register_virtual_type): New function.
3286 (mips_gdbarch_init): Register mips_register_virtual_type()
3287 with gdbarch machinery.
3288 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3289 this file instead of tm-bigmips.h.
3290 (MIPS_REGSIZE): Delete this macro.
3291 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3292 multiarch version in mips-tdep.c will be found.
3294 2002-08-01 Andrew Cagney <cagney@redhat.com>
3296 * NEWS: Menion that CHILL has been made obsolete.
3298 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3299 * stabsread.c (read_range_type): Ditto.
3300 * gdbtypes.h: Ditto.
3301 * language.c (binop_type_check): Ditto.
3302 (binop_result_type): Ditto.
3303 (integral_type): Ditto.
3304 (character_type): Ditto.
3305 (string_type): Ditto.
3306 (boolean_type): Ditto.
3307 (structured_type): Ditto.
3308 (lang_bool_type): Ditto.
3309 (binop_type_check): Ditto.
3310 * language.h (_LANG_chill): Ditto.
3311 * dwarfread.c (set_cu_language): Ditto.
3312 * dwarfread.c (CHILL_PRODUCER): Ditto.
3313 * dwarfread.c (handle_producer): Ditto.
3314 * expression.h (enum exp_opcode): Ditto.
3315 * eval.c: Ditto for comments.
3316 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3317 * expprint.c (print_subexp): Ditto.
3318 (print_subexp): Ditto.
3319 * valops.c (value_cast): Ditto.
3320 (search_struct_field): Ditto.
3321 * value.h (COERCE_VARYING_ARRAY): Ditto.
3322 * symfile.c (init_filename_language_table): Ditto.
3323 (add_psymbol_with_dem_name_to_list): Ditto.
3324 * valarith.c (value_binop): Ditto.
3326 * valops.c (value_slice): Ditto.
3327 * symtab.h (union language_specific): Ditto.
3328 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3329 (SYMBOL_DEMANGLED_NAME): Ditto.
3330 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3331 * defs.h (enum language): Ditto.
3332 * symtab.c (got_symtab): Ditto.
3333 * utils.c (fprintf_symbol_filtered): Ditto.
3335 * ch-typeprint.c: Make file obsolete.
3336 * ch-valprint.c: Make file obsolete.
3337 * ch-lang.h: Make file obsolete.
3338 * ch-exp.c: Make file obsolete.
3339 * ch-lang.c: Make file obsolete.
3341 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3343 (TARGET_FLAGS_TO_PASS): Ditto.
3344 (CHILLFLAGS): Obsolete.
3346 (CHILL_FOR_TARGET): Obsolete.
3347 (CHILL_LIB): Obsolete.
3348 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3350 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3351 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3353 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3356 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3358 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3359 This does not change anything at the moment, but will be helpful
3360 later when full Ada support is integrated.
3362 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3364 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3367 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3369 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3370 and save it in a local variable. Use variable in later test.
3372 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3374 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3375 test. (Thanks to Daniel Jacobowitz.)
3377 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3379 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3380 (mips_abi_strings): Add "n64".
3381 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3383 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3385 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3386 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3388 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3390 * utils.c (host_pointer_to_address, address_to_host_pointer):
3391 Use gdb_assert() instead of explicit call to internal_error().
3393 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3395 * Makefile.in (rs6000-nat.o): Update dependencies.
3397 From Nicholas Duffek:
3398 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3399 (aix-thread.o): New rule.
3400 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3401 * config/powerpc/aix432.mh: New file.
3403 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3405 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3406 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3407 (fetch_core_registers, ppc_linux_supply_gregset)
3408 (ppc_linux_supply_fpregset): New functions.
3409 (ppc_linux_regset_core_fns): New.
3410 (_initialize_ppc_linux_tdep): Call add_core_fns.
3411 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3412 and ppc_linux_supply_gregset.
3413 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3414 (supply_fpregset): Call ppc_linux_supply_fpregset.
3415 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3417 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3419 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3421 * symtab.c (lookup_symbol): Demangle before lowercasing.
3423 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3425 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3427 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3428 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3429 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3430 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3432 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3433 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3434 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3435 (avr-tdep.o, mon960-rom.o): Ditto.
3436 (aout_stabs_gnu_h): Define.
3437 (symtab_h): Remove $(gdb_obstack_h).
3439 2002-07-30 Jim Blandy <jimb@redhat.com>
3441 Patch from David Carlton <carlton@math.stanford.edu>:
3442 * gdbinit.in: Move the `dir' commands that add GDB's own source
3443 directory to the search path to the end, so that the `gdb' source
3444 directory will be searched first.
3446 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3448 * gdb_obstack.h: New file.
3449 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3450 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3451 * objfiles.h: Include "gdb_obstack.h".
3452 * Makefile.in (gdb_obstack_h): Define.
3453 (symtab_h): Add $(gdb_obstack_h).
3454 (objfiles_h): Add $(gdb_obstack_h).
3456 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3457 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3458 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3459 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3460 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3461 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3462 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3463 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3465 * Makefile.in (bcache.o): Update dependencies.
3466 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3467 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3468 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3469 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3470 (stabsread.o, symfile.o, symmisc.o): Ditto.
3471 (symtab.o, typeprint.o, macroexp.o): Ditto.
3472 (macrotab.o, mdebugread.o): Ditto.
3473 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3474 (coff_ecoff_h, aout_aout64_h): Define.
3475 (aout_stabs_gnu_h, libaout_h): Define.
3477 2002-07-29 Andrew Cagney <cagney@redhat.com>
3479 * regcache.c (struct regcache_descr): Rename nr_registers to
3480 nr_cooked_registers. Revise comments describing the structure
3482 (init_regcache_descr): Update.
3483 (init_legacy_regcache_descr): Update.
3484 (read_register_gen, write_register_gen): When a cooked register in
3485 the raw register range, directly access the value from the raw
3488 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3490 * z8k-tdep.c: Do not include "obstack.h".
3491 * h8300-tdep.c, h8500-tdep.c: Ditto.
3492 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3493 * valprint.c, v850-tdep.c: Ditto.
3494 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3495 * mn10200-tdep.c: Ditto.
3497 * Makefile.in (z8k-tdep.o): Update dependencies.
3498 (m68hc11-tdep.o, valprint.o): Ditto.
3499 (v850-tdep.o, d10v-tdep.o): Ditto.
3500 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3501 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3502 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3503 (sh_opc_h, gdb_sim_sh_h): Define.
3504 (elf_sh_h, elf_bfd_h): Define.
3505 (opcode_m68hc11_h): Define.
3506 (OPCODES_SRC, OPCODES_DIR): define.
3507 (OPCODES): Use $(OPCODES_DIR).
3508 (gdb_sim_d10v_h): Rename sim_d10v_h.
3509 (gdb_sim_arm_h): Rename sim_arm_h.
3511 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3513 * utils.c (host_pointer_to_address, address_to_host_pointer):
3514 Change internal_error() message to indicate function responsible
3517 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3519 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3520 calls to local_hex_string_custom().
3522 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3524 * irix5-nat.c: Move IRIX shared library support from here...
3525 * solib-irix.c: ...to here. Revised substantially to work with
3526 generic solib framework.
3528 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3529 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3530 * mips-irix-tdep.c: New file.
3532 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3533 (mips-irix-tdep.o, solib-irix.o): New rules.
3534 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3536 * config/mips/irix6.mt (TDEPFILES): Likewise.
3537 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3539 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3541 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3542 disabled (via ``#if 0'') includes.
3544 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3546 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3547 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3548 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3549 Add support for the fpscr register.
3550 * rs6000-nat.c (regmap, fetch_inferior_registers)
3551 (store_inferior_registers, fetch_core_registers): Likewise.
3553 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3555 * rs6000-nat.c (language.h): Include.
3556 (special_regs): Delete this array.
3557 (regmap): New function.
3558 (fetch_register, store_register): Use regmap() to map gdb
3559 register numbers to ptrace register numbers. Also, use
3560 outputs from regmap() to make decisions regarding type of
3561 ptrace() call to make. In particular, don't compare against
3562 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3563 (fetch_inferior_registers, store_inferior_registers): Where
3564 possible, obtain register numbers from tdep struct. Don't
3565 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3566 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3567 (LAST_UISA_SP_REGNUM): Delete.
3569 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3571 * rs6000-nat.c (ppc-tdep.h): Include.
3572 (fetch_registers, store_register, fetch_core_registers): Don't
3573 access registers[] directly. Instead, use supply_register() or
3574 regcache_collect() as appropriate.
3575 (find_toc_address): Format hex address with local_hex_string().
3577 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3579 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3582 2002-07-24 Tom Tromey <tromey@redhat.com>
3584 * jv-exp.y: Marked all strings with _().
3585 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3587 (MethodInvocation, CastExpression, parse_number, yyerror,
3588 java_type_from_name, push_expression_name, yylex): Typo fixes.
3590 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3592 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3593 (tee_file_flush, tee_file_write, tee_file_fputs)
3594 (tee_file_isatty): New.
3595 * ui-file.h (tee_file_new): Add prototype.
3597 2002-07-24 Aidan Skinner <aidan@velvet.net>
3599 * ada-lang.c: Change k&r style function definitions to prototyped
3601 * ada-typeprint.c: Change k&r style function definitions to prototyped
3603 * ada-valprint.c: Change k&r style function definitions to prototyped
3606 2002-07-24 Andrew Cagney <cagney@redhat.com>
3608 * README: Remove reference to remote-bug.
3609 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3611 (m88k-nat.o): Delete rule.
3612 (m88k-tdep.o): Delete rule.
3613 (remote-bug.o): Delete rule.
3614 * MAINTAINERS: Mark as obsolete.
3615 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3616 * m88k-tdep.c: Make file obsolete.
3617 * config/m88k/m88k.mh: Ditto.
3618 * config/m88k/delta88v4.mh: Ditto.
3619 * config/m88k/delta88v4.mt: Ditto.
3620 * config/m88k/delta88.mt: Ditto.
3621 * config/m88k/delta88.mh: Ditto.
3622 * remote-bug.c: Ditto.
3623 * config/m88k/tm-delta88.h: Ditto.
3624 * config/m88k/nm-delta88v4.h: Ditto.
3625 * config/m88k/xm-delta88.h: Ditto.
3626 * config/m88k/xm-dgux.h: Ditto.
3627 * config/m88k/tm-m88k.h: Ditto.
3628 * config/m88k/nm-m88k.h: Ditto.
3629 * config/m88k/tm-delta88v4.h: Ditto.
3630 * m88k-nat.c: Ditto.
3631 * cxux-nat.c: Ditto.
3632 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3633 and m88*-*-* obsolete.
3634 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3637 2002-07-24 Andrew Cagney <cagney@redhat.com>
3639 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3640 constant. Same for local pointer variables.
3641 (extract_signed_integer): Ditto.
3642 * defs.h (extract_unsigned_integer): Update.
3643 (extract_signed_integer): Update.
3645 2002-07-24 Andrew Cagney <cagney@redhat.com>
3647 * regcache.c (regcache_raw_write): Change buf parameter to a
3648 constant void pointer.
3649 (regcache_raw_read): Change buf parameter to a void pointer.
3650 (legacy_write_register_gen): Change myaddr parameter a constant
3652 (supply_register): Change val parameter to a const void pointer.
3653 * regcache.h (regcache_raw_write): Update declaration.
3654 (regcache_raw_read): Update declaration.
3655 (supply_register): Update declaration.
3657 2002-07-24 Tom Tromey <tromey@redhat.com>
3659 * defs.h (gdb_readline_wrapper): Declare.
3660 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3661 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3662 * top.c (gdb_readline_wrapper): New function.
3663 (command_line_input): Use it.
3665 2002-07-24 Andrew Cagney <cagney@redhat.com>
3667 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3668 regcache_read and regcache_write.
3669 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3670 * regcache.c: Update.
3671 * sh-tdep.c (sh64_push_arguments): Update comment.
3672 (sh_pseudo_register_read): Update.
3673 (sh_pseudo_register_write): Update.
3674 (sh4_register_read): Update.
3675 (sh4_register_write): Update.
3676 (sh64_pseudo_register_read): Update.
3677 (sh64_pseudo_register_write): Update.
3678 (sh64_register_read): Update.
3679 (sh64_register_write): Update.
3680 * i386-tdep.c (i386_extract_return_value): Update.
3681 (i386_extract_struct_value_address): Update.
3682 (i386_extract_return_value): Update.
3683 * blockframe.c (generic_read_register_dummy): Update.
3684 (generic_call_dummy_register_unwind): Update
3685 * infrun.c (write_inferior_status_register): Update.
3687 2002-07-23 Jim Blandy <jimb@redhat.com>
3689 * parser-defs.h (expression_context_pc): Make this extern.
3690 (Thanks to Michael Snyder.)
3692 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3694 GDB 5.2.1 released from 5.2 branch.
3695 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3696 * README: Update to mention 5.2.1.
3698 2002-07-23 Mark Salter <msalter@redhat.com>
3700 * remote.c (remote_read_bytes): Fix check for error.
3702 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3704 * aix-thread.c (language.h): Include.
3705 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3706 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3707 Print newlines at end of debug messages.
3708 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3709 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3711 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3713 * aix-thread.c (ppc-tdep.h): Include.
3714 (special_register_p): New function.
3715 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3716 (store_regs_user_thread): Use register number information from
3717 gdbarch_tdep struct instead of hardcoded offsets relative to
3718 FIRST_UISA_SP_REGNUM.
3719 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3720 special_register_p() instead of using FPLAST_REGNUM and
3721 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3722 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3723 will be MQ's register number.
3725 2002-07-22 Michael Snyder <msnyder@redhat.com>
3727 * aix-thread.c (ops): Rename to aix_thread_ops.
3728 (base_ops): Rename to base_target.
3729 (ops_attach): Rename to aix_thread_attach.
3730 (ops_detach): Rename to aix_thread_detach.
3731 (ops_resume): Rename to aix_thread_detach.
3732 (ops_wait): Rename to aix_thread_wait.
3733 (ops_kill): Rename to aix_thread_kill.
3734 (init_ops): Rename to init_aix_thread_ops.
3735 (ops_fetch_register): Rename to aix_thread_fetch_register.
3736 (ops_store_register): Rename to aix_thread_store_register.
3737 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3738 (ops_thread_alive): Rename to aix_thread_thread_alive.
3739 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3740 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3741 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3742 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3743 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3744 (store_regs_lib): Rename to store_regs_user_thread.
3745 (store_regs_kern): Rename to store_regs_kernel_thread.
3747 2002-07-22 Michael Snyder <msnyder@redhat.com>
3749 * aix-thread.c (ops_prepare_to_store): Eliminate.
3750 (init_ops): Don't initialize ops.prepare_to_store.
3751 (store_regs_kern): Pre-fetch register buffers from child,
3752 because some registers may not be in the cache. Copy
3753 regs from register cache only if they are cached.
3754 (store_regs_lib): Copy regs from register cache only
3756 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3757 fill_gprs64): Ditto.
3759 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3761 * aix-thread.c (gdb_assert.h): Include.
3762 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3763 register sizes (from register cache) match size of buffer holding
3765 (fill_sprs32): Change parameter types to match those in the ptrace()
3767 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3768 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3770 2002-07-22 Michael Snyder <msnyder@redhat.com>
3772 * aix-thread.c (supply_sprs64): Cosmetic change.
3773 (supply_sprs32): Cosmetic change.
3774 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3775 (fill_sprs64): Use regcache_collect instead of read_register.
3776 (store_regs_lib): Use regcache_collect instead of
3777 read_register. Use fill_sprs32 instead of fill_sprs64,
3778 if debugging a 32-bit architecture.
3779 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3780 out of the register cache, instead of passing a pointer into
3781 the register cache directly to ptrace. Use regcache_collect
3782 insteaad of read_register.
3783 (ops_prepare_to_store): Use target_read_registers instead
3784 of read_register_bytes.
3786 2002-07-20 Aidan Skinner <aidan@velvet.net>
3788 * MAINTAINERS: Add self under write after approval.
3790 2002-07-20 Aidan Skinner <aidan@velvet.net>
3792 * ada-tasks.c: Change k&r style function definitions to prototyped
3795 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3797 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3798 * x86-64-tdep.c: Include "objfiles.h".
3799 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3800 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3802 2002-07-17 Michal Ludvig <michal@suse.cz>
3804 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3805 (update_context): Initialise cfa variable.
3807 2002-07-17 Michael Snyder <msnyder@redhat.com>
3809 * aix-thread.c: Shorten some long lines.
3810 Bring comments into line with code spec.
3812 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3814 * infrun.c: Re-indent using gdb_indent.sh.
3816 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3818 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3819 Leave the indentation temporarily untouched, to minimize the diffs.
3821 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3823 * stabsread.c: Make os9k sections of the code obsolete,
3825 * stabsread.h: Make os9k sections of the code obsolete.
3827 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3829 * linux-low.c (regsets_store_inferior_registers): Add free()
3830 at the end of a loop to prevent memory leak.
3831 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3832 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3833 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3835 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3837 2002-07-17 Jim Blandy <jimb@redhat.com>
3839 * macrocmd.c (info_macro_command): Remove newline from error
3842 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3844 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3845 (sh_gdbarch_init): Use it for sh-dsp.
3847 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3849 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3850 64-bit DWARF2 format.
3852 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3854 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3855 <sys/proc.h> when not available.
3857 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3859 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3860 * stabsread.c: Make os9k sections of the code obsolete.
3861 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3862 * config/i386/i386os9k.mt: Make file obsolete.
3863 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3864 (COMMON_OBS): Remove os9kread.o
3865 (SFILES): Remove os9kread.c.
3866 (os9kread.o, remote-os9k.o): Make target obsolete.
3867 * remote-os9k.c: Make file obsolete.
3868 * os9kread.c: Make file obsolete.
3871 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3873 * NEWS: Mention that the FR30 has been made obsolete.
3874 * fr30-tdep.c: Make file obsolete.
3875 * config/fr30/tm-fr30.h: Ditto.
3876 * config/fr30/fr30.mt: Ditto.
3877 * configure.tgt: Make fr30-*-elf obsolete.
3878 * MAINTAINERS: Make fr30-elf obsolete.
3880 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3882 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3883 found is not inside a section.
3885 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3887 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3889 (pdc_realloc): Use xrealloc() instead of realloc().
3891 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3893 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3894 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3895 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3898 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3900 * aix-thread.c (ptrace_check): Eliminate goto.
3901 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3904 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3906 * aix-thread.c (gdbcmd.h): Include.
3907 (DEBUG, DBG, DBG2, dbg): Eliminate.
3908 (debug_aix_thread): New static global.
3909 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3910 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3911 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3912 invocations to DBG and DBG2 macros to test against
3913 ``debug_aix_thread'' and call fprintf_unfiltered().
3914 (_initialize_aix_thread): Add new command "set debug aix-thread".
3916 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3918 From Gerhard Tonn <TON@de.ibm.com>:
3919 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3920 instead of supply_register.
3922 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3924 * dwarf2cfi.c: Include "gdb_assert.h".
3925 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3927 (update_context): Do not use __func__. Add missing ``break''.
3928 (update_context): Do not use __func__.
3930 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3932 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3933 and its setting. Set gdbarch instruction printing functions
3934 directly. For non-rs6000 case use new function
3935 gdb_print_insn_powerpc.
3936 (gdb_print_insn_powerpc): New function.
3938 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3940 * NEWS: Mention that the d30v has been marked obsolete.
3941 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3942 * configure.tgt: Mark d30v-*-* as obsolete.
3943 * d30v-tdep.c: Mark file as obsolete.
3944 * config/d30v/d30v.mt: Ditto.
3945 * config/d30v/tm-d30v.h: Ditto.
3947 2002-07-13 Aidan Skinner <aidan@velvet.net>
3949 * ada-tasks.c (add_task_entry): replace calls to
3950 malloc() with xmalloc
3951 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3953 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3954 ada_finish_decode_line_1, all_sals_for_line
3955 ada_breakpoint_rewrite): replace calls to free() with xfree()
3957 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3959 From Nicholas Duffek (with minor changes by Martin Hunt,
3960 Louis Hamilton, and Kevin Buettner):
3961 * aix-thread.c: New file.
3963 2002-07-12 Petr Sorfa <petrs@caldera.com>
3965 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3966 complaint for invalid attribute class or form.
3967 (read_func_scope): DW_AT_frame_base
3968 better handling of DW_AT_block*.
3969 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3970 better handling of DW_AT_block*.
3971 (read_common_block): DW_AT_location
3972 better handling of DW_AT_block*.
3973 (read_partial_die): DW_AT_location better handling
3975 (new_symbol): DW_AT_external better handling of
3976 DW_AT_block*. Proper initialization of variable
3978 (attr_form_is_block): New function that returns true
3979 if the attribute's form is of DW_FORM_block*.
3981 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3983 * valops.c (find_method_list): Remove comment about
3984 removed STATIC_MEMFUNCP argument.
3985 (value_find_oload_method_list): Likewise.
3987 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3989 From Nicholas Duffek:
3990 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3991 target_new_objfile_hook.
3993 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3995 From Nicholas Duffek:
3996 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3999 2002-07-12 Andrew Cagney <cagney@redhat.com>
4001 * MAINTAINERS: Mention --enable-sim-build-warnings.
4002 (m68hc11-elf): Disable sim build warnings.
4003 (m32r-elf): Mark as broken obsolete candidate.
4004 (x86_64-linux-gnu): Mark as buildable with -Werror.
4005 (arm-elf): Change -w to ``,'' which enables warnings but not
4008 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4010 * bcache.h: Update copyright.
4011 (struct bstring, struct bcache): Move definition to "bcache.c".
4012 Replaced by opaque declaration.
4013 (bcache_xfree): Replace free_bcache.
4014 (bcache_xmalloc, bcache_memory_used): Declare.
4016 * bcache.c: Update copyright.
4017 (struct bstring, struct bcache): Moved to here from "bcache.h".
4019 (bcache_xmalloc, bcache_memory_used): New functions.
4020 (bcache_xfree): Replace function free_bcache.
4022 * Makefile.in (objfiles.o): Add $(bcache_h).
4023 (objfiles_h): Remove $(bcache_h).
4024 (symfile.o): Add $(bcache_h).
4026 * symmisc.c: Update copyright.
4027 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4028 (print_objfile_statistics): Use bcache_memory_used.
4030 * symfile.c: Include "bcache.h".
4031 (reread_symbols): Use bcache_xfree.
4032 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4033 (add_psymbol_to_list): Pass psymbol_cache by value.
4034 (add_psymbol_with_dem_name_to_list): Ditto.
4036 * objfiles.h: Update copyright.
4037 (struct bcache): Declare opaque. Do not include "bcache.h".
4038 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4040 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4042 * objfiles.c: Include "bcache.h". Update copyright.
4043 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4045 (free_objfile): Use bcache_xfree.
4047 2002-07-11 Grace Sainsbury <graces@redhat.com>
4049 * monitor.c (monitor_fetch_register): Make name a constant.
4050 (monitor_store_register): Same.
4052 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4054 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4055 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4056 (finish_block) For non-function blocks, hash the symbol table. For
4057 function blocks, mark the symbol table as unhashed.
4058 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4059 (msymbol_hash_iw): Likewise.
4060 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4062 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4063 (lookup_minimal_symbol): Likewise for both.
4064 * symtab.h (struct block): Add `hashtable' flag. Comment the
4066 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4067 (ALL_BLOCK_SYMBOLS): Update.
4068 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4069 (struct symbol): Add `hash_next' pointer.
4070 * symtab.c (lookup_block_symbol): Search using the hash table when
4072 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4073 (search_symbols, find_addr_symbol): Likewise.
4075 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4076 (read_dst_symtab): Likewise.
4077 * jv-lang.c (get_java_class_symtab): Likewise.
4078 * mdebugread.c: Include "gdb_assert.h".
4079 (shrink_block): Assert that the block being modified is not hashed.
4080 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4081 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4083 (dump_symtab): Recognize hashed blocks.
4084 * printcmd.c (print_frame_args): Assert that function blocks do not
4085 have hashed symbol tables.
4086 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4087 (fill_in_ada_prototype, debug_print_block): Likewise.
4088 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4090 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4092 * stack.c (print_frame): Use result of frame_address_in_block()
4093 instead of fi->pc when evaluating symbols.
4094 (backtrace_command_1): Ditto.
4096 2002-07-11 Andrew Cagney <cagney@redhat.com>
4098 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4101 * arm-tdep.c (arm_register_name): Make return type constant.
4103 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4105 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4107 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4108 * s390-tdep.c (s390_fp_regnum): Ditto.
4109 (s390_read_fp): Ditto.
4110 (s390_pop_frame): Ditto.
4111 (_initialize_s390_tdep): Ditto.
4112 * remote.c (get_remote_state): Ditto.
4113 * procfs.c (mappingflags): Ditto.
4114 * memattr.c (_initialize_mem): Ditto.
4115 * mcore-tdep.c (mcore_pop_frame): Ditto.
4116 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4117 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4118 * language.c (set_case_str): Ditto.
4119 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4120 * frv-tdep.c (new_variant): Ditto.
4121 (frv_stopped_data_address): Ditto.
4122 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4123 (context_alloc): Ditto.
4124 (frame_state_alloc): Ditto.
4125 (unwind_tmp_obstack_init): Ditto.
4126 (unwind_tmp_obstack_free): Ditto.
4127 (cfi_read_fp): Ditto.
4128 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4129 (cris_pop_frame): Ditto.
4130 * c-lang.c (scanning_macro_expansion): Ditto.
4131 (finished_macro_expansion): Ditto.
4132 (c_preprocess_and_parse): Ditto.
4133 * gdbarch.sh: Ditto.
4134 * gdbarch.h, gdbarch.c: Regenerate.
4135 * config/mn10200/tm-mn10200.h: Adjust indentation.
4136 * target.c: Adjust indentation.
4137 * symtab.h: Adjust indentation.
4138 * stabsread.h: Adjust indentation.
4139 * remote-es.c: Adjust indentation.
4140 * os9kread.c: Adjust indentation.
4142 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4144 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4145 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4147 2002-07-10 Grace Sainsbury <graces@redhat.com>
4149 * NEWS: Mention m68k, mcore multi-arching.
4150 * MAINTAINERS: Change status of m68k, mcore to reflect
4153 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4155 * valops.c (find_overload_match): Free oload_syms.
4157 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4159 Define HAVE_SYS_PROC_H if sys/proc.h exists
4160 * configure.in: Add check for sys/proc.h
4161 * config.in: Regenerate.
4162 * configure: Regenerate.
4164 2002-07-09 Grace Sainsbury <graces@redhat.com>
4166 * config/m68k/tm-m68k.h: Remove macros wrapped in
4167 #if !GDB_MULTI_ARCH.
4169 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4171 * config.in, configure: Regenerate.
4173 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4175 * dwarf2cfi.c: Include "gcore.h".
4176 (execute_stack_op): Fix implementation of the
4177 DW_OP_deref and DW_OP_deref_size operators by letting do their
4178 lookup in the target.
4180 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4182 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4183 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4186 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4188 Fix PR gdb/595, gdb/602
4189 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4190 Don't call value_cast, just read the vtable pointer; update comments
4193 2002-07-05 Grace Sainsbury <graces@redhat.com>
4195 * config/mcore/tm-mcore.h: Remove file.
4196 * config/mcore/mcore.mt: Remove definition of TM_FILE
4197 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4199 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4201 * i386bsd-tdep.c: Include "gdb_string.h".
4203 2002-07-04 Grace Sainsbury <graces@redhat.com>
4205 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4206 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4208 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4209 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4210 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4211 (RETVAL_REGNUM): Move macros from tm-mcore.h
4212 (mcore_reg_struct_has_addr): New function.
4213 (mcore_gdbarch_init): Added initializations for the macros removed
4216 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4218 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4219 traditonal string branding within the ELF header.
4221 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4223 * symtab.c (remove_params): New function.
4224 (make_symbol_overload_list): Use it instead of cplus_demangle.
4225 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4227 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4229 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4231 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4233 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4234 and tdep->sigtramp_end.
4235 * i386obsd-nat.c: New file.
4236 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4238 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4239 Don't call get_current_frame().
4241 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4243 * i386-nat.c (child_post_startup_inferior): New function
4244 calling i386_cleanup_dregs if
4245 I386_USE_GENERIC_WATCHPOINTS is defined.
4246 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4247 conditional to acknowledge that i386-nat.c has its
4248 own child_post_startup_inferior function.
4250 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4252 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4253 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4254 instead of MAX_REGISTER_RAW_SIZE.
4255 (i386_extract_return_value, i386_extract_struct_value_address):
4256 Convert to use regcache.
4257 (i386_gdbarch_init): Set max_register_raw_size and
4258 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4259 Set extract_return_value and extract_struct_value_address instead
4260 of their deprecated variants.
4262 Convert i386 target to generic dummy frames.
4263 * i386-tdep.c: Include "symfile.h".
4264 (i386_frameless_signal_p): Consider a function to be frameless if
4265 the pc points at the first instruction of the function.
4266 (i386_frame_chain): Handle (generic) call dummies.
4267 (i386_frame_saved_pc): Likewise.
4268 (i386_frame_init_saved_regs): Remove code dealing with call
4269 dummies on the stack.
4270 (i386_push_dummy_frame): Removed.
4271 (i386_call_dummy_words): Removed.
4272 (i386_fix_call_dummy): Removed.
4273 (i386_push_return_address): New function.
4274 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4275 parameter, and don't call get_current_frame.
4276 (i386_pop_frame): New function.
4277 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4278 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4279 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4280 call_dummy_length to 0, set call_dummy_words to NULL, set
4281 sizeof_call_dummy_words to 0, set fix_call_dummy to
4282 generic_fix_call_dummy, set pc_in_call_dummy to
4283 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4284 generic_push_dummy_frame, set push_return_address to
4285 i386_push_return_address and set frame_chain_valid to
4286 generic_file_frame_chain_valid.
4288 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4290 * gdbarch.sh (struct regcache): Add opaque declaration.
4291 (EXTRACT_RETURN_VALUE): New architecture method.
4292 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4293 * gdbarch.h, gdbarch.c: Regenerate.
4294 * arch-utils.c (legacy_extract_return_value): New function.
4295 * arch-utils.h (legacy_extract_return_value): Declare.
4296 * values.c (value_being_returned): Re-enable code handling
4297 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4298 deprecated_grub_regcache_for_registers call to block handling
4299 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4300 (EXTRACT_RETURN_VALUE): Do not define.
4302 2002-07-03 Grace Sainsbury <graces@redhat.com>
4304 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4305 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4306 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4307 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4308 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4309 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4310 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4311 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4312 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4313 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4314 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4315 argument so the function fits the prototype in the architecture
4317 (mcore_pop_frame): Remove argument so the function fits the
4318 prototype. Use get_current_frame instead of the argument.
4319 (mcore_push_arguments): Change type of struct_return so the
4320 function can be used in the architecture vector.
4321 (mcore_store_struct_return): Add.
4322 (mcore_frame_init_saved_regs): Add.
4323 (mcore_gdbarch_init): Add function calls to replace the macros
4324 removed from tm-mcore.h
4326 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4328 * infcmd.c (print_return_value): Remove compatibility code calling
4329 deprecated_grub_regcache_for_registers.
4331 * values.c: Include "regcache.h".
4332 (value_being_returned): Update. Use
4333 deprecated_grub_regcache_for_registers to extract the register
4335 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4336 ``struct regcache''.
4337 * Makefile.in (values.o): Add dependency on $(regcache_h).
4339 * inferior.h (run_stack_dummy): Change type of second parameter to
4340 a ``struct regcache''.
4341 * valops.c (hand_function_call): Change type of retbuf to ``struct
4342 regcache''. Allocate using regcache_xmalloc, clean using
4343 make_cleanup_regcache_xfree.
4344 * infcmd.c (run_stack_dummy): Update. Use
4345 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4347 * regcache.c (do_regcache_xfree): New function.
4348 (make_cleanup_regcache_xfree): New function.
4349 * regcache.h (make_cleanup_regcache_xfree): Declare.
4351 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4353 * event-top.c (command_line_handler): Don't read past
4354 beginning of buffer.
4356 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4358 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4360 (varobj_create): Store frame_id for root.
4361 (varobj_gen_name): Use xasprintf.
4362 (varobj_update): Save and restore frame using get_frame_id() and
4364 (create_child): Use xasprintf.
4365 (new_root_variable): Initialize frame_id.
4366 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4367 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4368 to prevent memory leak.
4370 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4372 * valops.c (hand_function_call): Move declaration of retbuf to
4373 start of function, allocate using malloc, add a cleanup but before
4374 the inf_status cleanup, cleanup the buffer. Rename local variable
4375 old_chain to inf_status_cleanup.
4377 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4379 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4381 * cli/cli-decode.c (cmd_func_p): New function.
4382 (cmd_func): New function.
4384 * command.h: Add cmd_func() and cmd_func_p().
4386 2002-07-03 Grace Sainsbury <graces@redhat.com>
4388 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4389 (REGISTER_SIZE): Remove.
4390 (MAX_REGISTER_RAW_SIZE): Remove.
4391 (REGISTER_VIRTUAL_TYPE): Remove.
4392 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4393 (REGISTER_NAME): Remove.
4394 (USE_GENERIC_DUMMY_FRAMES): Remove.
4395 (CALL_DUMMY): Remove.
4396 (CALL_DUMMY_START_OFFSET): Remove.
4397 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4398 (CALL_DUMMY_LOCATION): Remove.
4399 (FIX_CALL_DUMMY): Remove.
4400 (CALL_DUMMY_ADDRESS): Remove.
4401 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4402 (SAVE_DUMMY_FRAME_TOS): Remove.
4403 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4404 (mcore_register_virtual_type): New function.
4405 (mcore_register_byte): New function.
4406 (mcore_register_size): New function.
4407 (mcore_register_name): New function.
4408 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4409 macros removed from tm-mcore.h.
4410 (mcore_dump_tdep): Add.
4411 (_initialize_mcore_tdep): Add gdbarch_register call.
4413 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4415 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4416 frameless_look_for_prologue, such that we actually call this
4419 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4421 * frame.h (frame_address_in_block): New function.
4423 * blockframe.c (frame_address_in_block): New function extracted
4424 from get_frame_block().
4425 (get_frame_block): Use frame_address_in_block().
4426 (block_innermost_frame): Use frame_address_in_block() to match
4427 the frame pc address against the block boundaries rather than
4428 the frame pc directly. This prevents a failure when a frame pc
4429 is actually a return-address pointing immediately after the end
4432 2002-07-02 Grace Sainsbury <graces@redhat.com>
4434 * MAINTAINERS: Add self under write after approval.
4436 2002-07-02 Grace Sainsbury <graces@redhat.com>
4438 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4439 used in architecture vector. The default is
4440 m68k_local_breakpoint_from_pc.
4441 (m68k_local_breakpoint_from_pc): Add.
4442 (enum): Add register numbers from tm-m68k.h.
4443 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4445 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4446 GDB_MULTI_ARCH_PARTIAL.
4447 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4448 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4450 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4451 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4452 to enum in m68k-tdep.c
4454 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4456 * solib-osf.c (open_map): Compute the list of shared libraries
4457 loaded by the inferior, rather than the list of libraries loaded
4458 by GDB itself. Otherwise, GDB ends up reading the symbols from
4459 the wrong shared libraries...
4461 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4463 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4464 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4466 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4468 (FRAMELESS_SIGNAL): Remove function.
4469 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4470 i386_linux_saved_pc_after_call): Removed.
4471 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4472 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4473 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4475 * i386-tdep.c (i386_frameless_signal_p): New function.
4476 (i386_frame_chain): Deal with frameless signals.
4477 (i386_sigtramp_saved_sp): New function.
4478 (i386_frame_saved_pc): Deal with frameless signals.
4479 (i386_saved_pc_after_call): Make sure the correct value is
4480 returned just after entry into a sigtramp.
4481 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4482 i386fbsd4_sc_sp_offset): New variables.
4483 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4484 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4485 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4486 similiar to what we already did for sc_pc_offset.
4487 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4490 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4492 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4494 * config/i386/tm-x86-64linux.h: New.
4495 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4497 * config/i386/nm-x86-64.h: Rename to ...
4498 * config/i386/nm-x86-64linux.h: ... this one.
4499 * config/i386/x86-64linux.mh: Reflect the above change.
4501 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4503 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4504 with sigcontext_addr. Add sc_sp_offset.
4505 (i386bsd_sigtramp_saved_pc): Remove prototype.
4506 (i386bsd_sicontext_addr): Add prototype.
4507 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4508 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4509 (i386_svr4_sigtramp_saved_pc): Removed.
4510 (i386_svr4_sigcontext_addr): New function.
4511 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4512 Initialize tdep->sigcontext_addr instead. Initialize
4513 tdep->sc_pc_offset and tdep->sc_sp_offset.
4514 (i386_gdbarch_init): Likewise.
4515 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4517 (i386bsd_sigtramp_saved_pc): Remove function.
4518 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4519 Initialize tdep->sigcontext_addr instead. Initialize
4521 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4522 of tdep->sigtramp_saved_pc.
4523 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4524 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4527 * i386-tdep.c (i386_frameless_function_invocation,
4528 i386_frame_num_args, i386_frame_init_saved_regs,
4529 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4530 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4531 i386_extract_return_value, i386_store_return_value,
4532 i386_extract_struct_value_address, i386_register_virtual_type,
4533 i386_register_convertible, i386_register_convert_to_virtual,
4534 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4535 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4538 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4540 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4542 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4543 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4544 this macro. Include "value.h".
4546 2002-06-30 Aidan Skinner <aidan@velvet.net>
4548 * ada-exp.tab.c: remove as it's a generated file
4549 * ada-lex.c: remove as it's a generated file
4551 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4553 * config/i386/tm-i386.h (struct frame_info, struct
4554 frame_saved_regs, struct value, struct type): Remove forward
4557 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4558 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4559 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4560 (FILL_FPXREGSET): Define.
4562 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4564 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4565 i[3456]86-*-netbsd* case.
4566 * config/i386/tm-obsd.h: Removed.
4567 * config/i386/obsd.mt: Removed.
4568 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4570 (MH_CFLAGS): Add -DYYDEBUG=0.
4572 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4573 i386nbsd_sc_pc_offset on OpenBSD too.
4575 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4576 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4577 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4579 * i386bsd-tdep.c: Include "arch-utils.h".
4580 (i386bsd_aout_in_solib_call_trampoline): New function.
4581 (i386bsd_init_abi): Set in_solib_call_trampoline to
4582 i386bsd_aout_in_solib_call_trampoline.
4583 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4584 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4586 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4588 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4589 (struct obstack, struct bcache): Add opaque declarations.
4590 * Makefile.in (macrotab_h): Update
4592 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4594 * blockframe.c (generic_find_dummy_frame): Change return type to
4595 ``struct regcache''.
4596 (struct dummy_frame): Replace field ``registers'' with regcache, a
4597 struct regcache object.
4598 (generic_find_dummy_frame): Update.
4599 (generic_push_dummy_frame): Update. Use regcache_xfree,
4600 regcache_xmalloc and regcache_cpy.
4601 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4603 (deprecated_generic_find_dummy_frame): Update.
4604 (generic_read_register_dummy): Update. Use
4605 regcache_read_as_address.
4606 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4607 (generic_get_saved_register): Update. Use regcache_read.
4609 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4611 * Makefile.in (objfiles_h): Add $(bcache_h).
4612 * objfiles.h: Include "bcache.h".
4614 * Makefile.in (symtab_h): Remove $(bcache_h).
4615 * symtab.h: Do not include "bcache.h".
4617 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4619 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4620 generic_func_frame_chain_valid.
4622 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4624 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4625 * config/i386/tm-fbsd.h: Likewise.
4627 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4629 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4630 generic_unwind_get_saved_register.
4632 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4634 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4635 * regcache.c (supply_register): Add missing argument to
4636 register_buffer call.
4638 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4640 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4641 Solaris /bin/grep does not not like it. From Peter Schauer.
4643 2002-06-26 Tom Tromey <tromey@redhat.com>
4645 * command.h (add_setshow_cmd): Declare.
4646 (add_setshow_cmd_full): Declare.
4647 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4648 returns void. Use add_setshow_cmd_full.
4649 (add_setshow_cmd_full): New function.
4650 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4651 (add_setshow_boolean_cmd): Likewise.
4653 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4655 * config/vax/tm-vax.h: Protect from multiple inclusion.
4656 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4657 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4658 * config/vax/tm-vaxbsd.h: ...here. New file.
4659 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4661 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4663 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4664 (BELIEVE_PCC_PROMOTION): Remove.
4665 (AP_REGNUM): Move to...
4666 * config/vax/nm-vax.h: ...here.
4667 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4668 (vax_breakpoint_from_pc): New function.
4669 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4670 and gdbarch_believe_pcc_promotion.
4672 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4674 * Makefile.in (vax_tdep_h): Define.
4675 (vax-tdep.o): Use $(vax_tdep_h).
4676 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4677 (vax_dump_tdep): New function.
4678 (_initialize_vax_tdep): Register vax_dump_tdep.
4679 * vax-tdep.h: Include osabi.h.
4680 (struct gdbarch_tdep): New.
4682 2002-06-26 Andrew Cagney <cagney@redhat.com>
4684 * frame.h (deprecated_generic_find_dummy_frame): Rename
4685 generic_find_dummy_frame.
4686 * blockframe.c (generic_find_dummy_frame): Make static.
4687 (deprecated_generic_find_dummy_frame): New function.
4688 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4689 generic_find_dummy_frame with deprecated_find_dummy_frame.
4690 (sh64_nofp_frame_init_saved_regs): Ditto.
4691 (sh_fp_frame_init_saved_regs): Ditto.
4692 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4693 (s390_frame_chain): Ditto.
4694 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4696 2002-06-26 Grace Sainsbury <graces@redhat.com>
4698 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4699 gdbarch vector are at the top.
4701 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4702 (FRAME_ARGS_ADDRESS): Remove.
4703 (FRAME_LOCALS_ADDRESS): Remove.
4704 (FRAME_NUM_ARGS): Remove.
4705 (FRAME_ARGS_SKIP): Remove.
4706 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4707 (m68k_gdbarch_init): Add gdbarch initializations for macros
4708 undefined in tm-m68k.h
4710 2002-06-26 Grace Sainsbury <graces@redhat.com>
4712 * monitor.h: Add the function regname to monitor_ops
4713 structure. This way NUM_REGS does not have to be a constant.
4714 * monitor.c (monitor_fetch_register): Added support for regname
4715 function. The function is called if the array regnames is NULL.
4716 (monitor_store_register): Same.
4717 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4719 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4720 cpu32bug_cmds.regname to point to new function.
4721 * abug-rom.c (abug_regname): Same as above.
4722 (init_abug_cmds): Same.
4723 * dbug-rom.c (dbug_regname): Same as above.
4724 (init_dbug_cmds): Same.
4725 * remote-est.c (est_regname): Same.
4726 (init_est_cmds): Same.
4727 * rom68k-rom.c (rom68k_regname): Same.
4728 (init_rom68k_cmds): Same.
4730 2002-06-25 Tom Tromey <tromey@redhat.com>
4732 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4734 2002-06-25 Andrew Cagney <cagney@redhat.com>
4736 * infrun.c (stop_registers): Change variable's type to ``struct
4738 (xmalloc_inferior_status): Delete function.
4739 (free_inferior_status): Delete function.
4740 (normal_stop): Use regcache_cpy.
4741 (struct inferior_status): Change type of fields ``stop_registers''
4742 and ``registers'' to ``struct regcache''.
4743 (write_inferior_status_register): Use regcache_write.
4744 (save_inferior_status): Instead of calling
4745 xmalloc_inferior_status, allocate the inf_status buffer directly.
4746 Use regcache_dup_no_passthrough and regcache_dup to save the
4748 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4749 Replace the stop_registers regcache instead of overriding it. Use
4750 regcache_xfree. Instead of calling free_inferior_status, xfree
4751 the buffer directly.
4752 (discard_inferior_status): Use regcache_xfree. Instead of calling
4753 free_inferior_status, xfree the buffer directly.
4754 (build_infrun): Use regcache_xmalloc.
4755 (_initialize_infrun): Delete redundant call to build_infrun.
4757 * Makefile.in (infcmd.o): Add $(regcache_h).
4759 * infcmd.c: Include "regcache.h".
4760 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4761 obtain the address of `stop_registers' register buffer.
4762 (print_return_value): Ditto.
4764 * inferior.h (struct regcache): Add opaque declaration.
4765 (stop_registers): Change variable's declared type to ``struct
4768 2002-06-24 Tom Tromey <tromey@redhat.com>
4770 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4771 * target.c (initialize_targets): Fixed typo in
4772 trust-readonly-sections `show' documentation.
4774 * main.c: Marked all strings with _().
4776 2002-06-24 Don Howard <dhoward@redhat.com>
4778 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4779 that means max CORE_ADDR+1.
4780 (lookup_mem_region): Ditto.
4781 (mem_info_command): Ditto.
4783 2002-06-24 Grace Sainsbury <graces@redhat.com>
4785 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4786 (REGISTER_BYTES_OK): Remove.
4787 (REGISTER_BYTES): Remove.
4788 (STORE_STRUCT_RETURN): Remove.
4789 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4790 (STORE_RETURN_VALUE): Remove.
4791 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4792 (FRAME_CHAIN): Remove.
4793 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4794 (FRAME_SAVED_PC): Remove.
4795 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4796 (m68k_store_struct_return): Add.
4797 (m68k_deprecated_extract_return_value): Add.
4798 (m68k_deprecated_extract_struct_value_address): Add.
4799 (m68k_store_return_value): Add.
4800 (m68k_frame_chain): Add.
4801 (m68k_frameless_function_invocation): Add.
4802 (m68k_frame_saved_pc): Add.
4803 (m68k_gdbarch_init): added set_gdbarch calls for new
4804 functions and deleted macros.
4806 2002-06-23 Tom Tromey <tromey@redhat.com>
4808 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4809 (ALLDEPFILES): Likewise.
4810 (udiheaders): Removed.
4811 (udip2soc.o): Likewise.
4812 (udi2go32.o): Likewise.
4814 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4816 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4818 * infrun.c (_initialize_infrun): Delete unnecessary call to
4821 * regcache.h: Update comments describing the regcache_cpy family
4823 (regcache_save, regcache_restore): Delete declaration.
4824 (regcache_save_no_passthrough): Delete declaration.
4825 (regcache_restore_no_passthrough): Delete declaration.
4826 * regcache.c (regcache_save): Delete function.
4827 (regcache_save_no_passthrough): Delete function.
4828 (regcache_restore): Delete function.
4829 (regcache_restore_no_passthrough): Delete function.
4831 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4833 * config/m68k/tm-m68k.h: Fix typo.
4834 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4835 (m68k_frame_init_saved_regs): Declare.
4837 2002-06-21 Jim Blandy <jimb@redhat.com>
4839 Remove some vestiges of Harris 88k support.
4840 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4841 register numbering quirk.
4842 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4843 odd symbols occurring in Harris 88k ELF targets.
4845 2002-06-21 Tom Tromey <tromey@redhat.com>
4847 * gdb_locale.h: New file.
4848 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4849 (defs_h): Added gdb_locale.h.
4850 * configure, config.in: Rebuilt.
4851 * configure.in (PACKAGE): Define.
4852 * defs.h: Include gdb_locale.h.
4853 * main.c (captured_main): Call setlocale, bindtextdomain,
4856 2002-06-21 Dave Brolley <brolley@redhat.com>
4858 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4859 * config/frv/frv.mt: New file.
4860 * config/frv/tm-frv.h: New file.
4861 * configure.tgt: Support frv-*-*.
4862 * Makefile.in (frv-tdep.o): New target.
4863 * frv-tdep.c: New file.
4864 * NEWS: Mention frv.
4866 2002-06-21 Dave Brolley <brolley@redhat.com>
4868 * MAINTAINERS: Add self to "Write After Approval" list.
4870 2002-06-21 Grace Sainsbury <graces@redhat.com>
4872 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4873 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4874 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4875 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4876 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4878 * m68k-tdep.c: Include arch-utils.h
4879 (m68k_register_raw_size): Add.
4880 (m68k_register_virtual_size): Add.
4881 (m68k_register_virtual_type): Add.
4882 (m68k_register_name): Add.
4883 (m68k_stack_align): Add.
4884 (m68k_register_byte): Add.
4885 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4888 2002-06-21 Grace Sainsbury <graces@redhat.com>
4890 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4891 m68k_find_saved_regs.
4892 (m68k_pop_frame): Removed saved_regs structure, and replaced
4893 references to it with frame->saved_regs.
4894 (m68k_gdbarch_init): Added function calls to initialize the
4896 (m68k_fix_call_dummy): Add.
4897 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4898 (CALL_DUMMY): Remove.
4899 (CALL_DUMMY_LENGTH): Remove.
4900 (CALL_DUMMY_START_OFFSET): Remove.
4901 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4902 (FIX_CALL_DUMMY): Remove.
4903 (PUSH_DUMMY_FRAME): Remove.
4904 (POP_FRAME): Remove.
4906 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4908 * parse.c (parse_fprintf): New function used to avoid calls to
4909 fprintf in bison parser generated debug code.
4910 * parser-defs.h: Declaration of new parse_fprintf function.
4911 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4912 Set YYDEBUG to 1 by default.
4913 Set YYFPRINTF as parse_fprintf.
4915 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4917 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4919 (pointer_encoding, enum ptr_encoding): New.
4920 (execute_cfa_program): Take care about pointer encoding.
4921 (dwarf2_build_frame_info): Only call parse_frame_info for
4922 .debug_frame and .eh_frame.
4923 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4924 fixed augmentation handling, added relative addressing,
4925 ignore duplicate FDEs. Added comments.
4926 * dwarf2cfi.c: Reindented.
4928 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4930 * event-top.c (command_handler): Don't use space_at_cmd_start
4931 unless there is sbrk() on the host. Assign time and space data
4932 to union fields of the appropriate length.
4934 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4936 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4937 x86_64_register_name. Return type changed to 'const char *'.
4938 (x86_64_register_name2nr): Rename to x86_64_register_number.
4939 (x86_64_gdbarch_init): Update to reflect the change.
4940 * x86-64-tdep.h: Ditto.
4941 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4942 (supply_fpregset): Ditto.
4944 2002-06-19 Andrew Cagney <cagney@redhat.com>
4946 * regcache.h: Update copyright.
4947 (struct regcache, struct gdbarch): Add opaque declarations.
4948 (current_regcache): Declare global variable.
4949 (regcache_read, regcache_write): Add gdbarch parameter.
4950 (regcache_save, regcache_save_no_passthrough)
4951 (regcache_restore, regcache_restore_no_passthrough)
4952 (regcache_dup, regcache_dup_no_passthrough)
4953 (regcache_cpy, regcache_cpy_no_passthrough)
4954 (deprecated_grub_regcache_for_registers)
4955 (deprecated_grub_regcache_for_register_valid)
4956 (regcache_valid_p): Add function declarations.
4958 * regcache.c: Update copyright.
4959 (regcache_descr_handle): New global variable.
4960 (struct regcache_descr): Define.
4961 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4962 (regcache_descr, xfree_regcache_descr): New functions.
4963 (struct regcache): Define.
4964 (regcache_xmalloc, regcache_xfree): New functions.
4965 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4966 (regcache_dup, regcache_dup_no_passthrough): New functions.
4967 (regcache_valid_p, regcache_read_as_address): New functions.
4968 (deprecated_grub_regcache_for_registers): New function.
4969 (deprecated_grub_regcache_for_register_valid): New function.
4970 (current_regcache): New global variable.
4971 (register_buffer): Add regcache parameter. Update calls.
4972 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4973 (read_register_gen, write_register_gen): Update register_buffer
4974 call. Test for legacy_p instead of gdbarch_register_read_p or
4975 gdbarch_register_write_p.
4976 (regcache_collect): Update register_buffer call.
4977 (build_regcache): Rewrite. Use deprecated grub functions.
4978 (regcache_save, regcache_save_no_passthrough): New functions.
4979 (regcache_restore, regcache_restore_no_passthrough): New
4981 (_initialize_regcache): Create the regcache_data_handle. Swap
4982 current_regcache global variable.
4984 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4985 parameter to regcache_read and regcache_write calls.
4986 (sh4_register_read): Ditto.
4987 (sh64_pseudo_register_read): Ditto.
4988 (sh64_register_read): Ditto.
4989 (sh_pseudo_register_write): Ditto.
4990 (sh4_register_write): Ditto.
4991 (sh64_pseudo_register_write): Ditto.
4992 (sh64_register_write): Ditto.
4994 * defs.h (XCALLOC): Define.
4996 2002-06-19 Grace Sainsbury <graces@redhat.com>
4998 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4999 * m68k-tdep.c (m68k_gdbarch_init): Added.
5000 (m68k_dump_tdep): Added.
5002 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5004 * ada-lang.c (fill_in_ada_prototype): Update comment.
5006 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5008 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5010 (mips_abi_string, mips_abi_strings): New.
5011 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5012 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5013 tdep->mips_abi_string. Honor mips_abi_string. Default to
5014 O32 if no ABI is found.
5015 (mips_dump_tdep): Use mips_abi_strings.
5016 (mips_abi_update): New function.
5017 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5018 ``set mips abi'' and ``show mips abi''. Check the size of
5021 2002-06-19 Andrew Cagney <cagney@redhat.com>
5023 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5026 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5028 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5029 current frame using only the first stack size adjustment. All
5030 subsequent size adjustments are not considered to be part of
5031 the "static" part of the current frame.
5032 Compute the address of the saved registers relative to the
5033 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5034 in use in this frame.
5036 2002-06-18 Don Howard <dhoward@redhat.com>
5038 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5039 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5040 suggesting this solution.
5042 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5044 * config/romp/xm-rtbsd.h: Delete file.
5045 * config/romp/rtbsd.mh: Delete file.
5047 2002-06-18 Keith Seitz <keiths@redhat.com>
5049 * breakpoint.c (condition_command): Post breakpoint_modify
5050 when a condition is added to an existing breakpoint.
5051 (commands_command): Likewise for commands.
5052 (set_ignore_count): Likewise for ignore counts.
5053 If no tty, do not simply return, still need to send event
5055 (ignore_command): Only print a newline if the command came
5057 Don't call breakpoints_changed, since this is now properly
5058 handled by set_ignore_count.
5060 2002-06-18 Andrew Cagney <cagney@redhat.com>
5062 * MAINTAINERS: Note that cris-elf target can be compiled with
5064 * cris-tdep.c (cris_register_name): Make return type constant.
5065 (cris_breakpoint_from_pc): Ditto.
5067 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5069 * frame.h (struct frame_info): Change type of context to
5072 2002-06-17 Andrew Cagney <cagney@redhat.com>
5074 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5076 * gdbarch.h, gdbarch.c: Regenerate.
5077 * config/mips/tm-mips.h (mips_register_name): Update.
5078 * i386-tdep.h (i386_register_name): Update.
5079 * mips-tdep.c (mips_register_name): Update
5080 * alpha-tdep.c (alpha_register_name): Update.
5081 * arch-utils.c (legacy_register_name): Update.
5082 * arch-utils.h (legacy_register_name): Update.
5083 * avr-tdep.c (avr_register_name): Update.
5084 * ia64-tdep.c (ia64_register_name): Update.
5085 * i386-tdep.c (i386_register_name): Update.
5086 * sparc-tdep.c (sparc32_register_name): Update.
5087 (sparc64_register_name): Update.
5088 (sparclite_register_name): Update.
5089 (sparclet_register_name): Update.
5090 * sh-tdep.c (sh_generic_register_name): Update.
5091 (sh_sh_register_name): Update.
5092 (sh_sh3_register_name): Update.
5093 (sh_sh3e_register_name): Update.
5094 (sh_sh_dsp_register_name): Update.
5095 (sh_sh3_dsp_register_name): Update.
5096 (sh_sh4_register_name): Update.
5097 (sh_sh64_register_name): Update.
5098 * s390-tdep.c (s390_register_name): Update.
5099 * rs6000-tdep.c (rs6000_register_name): Update.
5100 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5101 (ns32k_register_name_32382): Update.
5102 * d10v-tdep.c (d10v_ts2_register_name): Update.
5103 (d10v_ts3_register_name): Update.
5104 * xstormy16-tdep.c (xstormy16_register_name): Update.
5105 * vax-tdep.c (vax_register_name): Update.
5106 * v850-tdep.c (v850_register_name): Update.
5107 * m68hc11-tdep.c (m68hc11_register_name): Update.
5108 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5109 (am33_register_name): Update.
5111 2002-06-17 Grace Sainsbury <graces@redhat.com>
5113 * m68k-tdep.c: Reindented.
5115 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5117 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5118 list of predefined types.
5120 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5122 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5123 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5124 REGISTER_CONVERT_TO_RAW): Remove defines.
5125 (i386_register_virtual_type, i386_register_convertible,
5126 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5128 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5129 macros mentioned above.
5131 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5132 (i386lynx_saved_pc_after_call): Remove prototype.
5133 * i386ly-tdep.c: Include "i386-tdep.h".
5134 (i386lynx_saved_pc_after_call): Make static. Use
5135 read_memory_nobpt instead of read_memory. Use
5136 read_memory_unsigned_integer instead of read_memory_integer.
5137 (i386lynx_init_abi): New function.
5138 (i386lynx_coff_osabi_sniffer): New function.
5139 (_initialize_i386bsd_tdep): New function.
5141 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5142 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5143 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5144 (i386_fix_call_dummy): Remove prototype.
5145 * i386-tdep.c (i386_call_dummy_words): New variable.
5146 (i386_gdbarch_init): Adjust for removal of the
5147 macros mentioned above.
5149 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5151 * command.h (add_setshow_auto_boolean_cmd): Replace
5152 add_set_auto_boolean_cmd.
5153 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5154 add_set_auto_boolean_cmd.
5155 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5156 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5157 mask-address'' command.
5158 (show_mask_address): Add cmd parameter.
5159 * remote.c (add_packet_config_cmd): Update. Change type of
5160 set_func and show_func to cmd_sfunc_ftype.
5161 (_initialize_remote): Update `set remote Z-packet'
5162 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5163 (show_remote_protocol_e_packet_cmd): Ditto.
5164 (show_remote_protocol_E_packet_cmd): Ditto.
5165 (show_remote_protocol_P_packet_cmd): Ditto.
5166 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5167 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5168 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5169 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5170 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5171 (show_remote_protocol_Z_packet_cmd): Ditto.
5172 (show_remote_protocol_binary_download_cmd): Ditto.
5173 (show_remote_cmd): Pass NULL to all of above.
5175 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5177 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5178 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5179 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5180 POP_FRAME): Remove defines.
5181 (i386_push_arguments, i386_store_struct_return,
5182 i386_extract_return_value, i386_store_return_value,
5183 i386_extract_struct_value_address, i386_push_dummy_frame,
5184 i386_pop_frame): Renove prototypes.
5185 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5186 macros mentioned above.
5188 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5190 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5191 add_set_boolean_cmd.
5192 (add_setshow_cmd): New function.
5193 * command.h (add_setshow_boolean_cmd): Replace
5194 add_set_boolean_cmd.
5195 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5196 and ``set rdiromatzero''.
5197 * maint.c (_initialize_maint_cmds): Update commented out code.
5198 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5199 * target.c (initialize_targets): Update `set
5200 trust-readonly-sections'.
5201 * remote.c (_initialize_remote): Update `set remotebreak'.
5203 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5205 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5206 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5207 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5208 fit into multi-arch framework.
5209 (i386_breakpoint_from_pc): New function.
5210 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5213 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5214 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5215 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5216 (i386_frameless_function_invocation, i386_frame_num_args,
5217 i386_frame_init_saved_regs): Remove prototypes.
5218 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5219 macros mentioned above.
5221 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5223 * cli/cli-decode.c (set_cmd_cfunc): Update.
5224 (set_cmd_sfunc): Update.
5225 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5226 (set_cmd_sfunc, set_cmd_cfunc): Update.
5227 * cli/cli-decode.h: Update.
5229 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5231 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5232 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5234 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5236 * defs.h (auto_boolean): Declare enum.
5237 * command.h (cmd_auto_boolean): Delete enum.
5238 * mips-tdep.c (mask_address_var): Update.
5239 (mips_mask_address_p): Update.
5240 (show_mask_address): Update.
5241 * remote.c (struct packet_config): Update.
5242 (update_packet_config): Update.
5243 (show_packet_config_cmd): Update.
5244 (packet_ok): Update.
5245 (add_packet_config_cmd): Update.
5246 (_initialize_remote):
5247 * command.h: Update.
5248 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5249 (do_setshow_command): Update.
5250 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5251 * cli/cli-decode.h: Update.
5253 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5255 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5256 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5257 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5258 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5259 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5260 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5262 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5263 list of DJGPP COFF targets.
5265 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5266 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5267 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5268 (FP0_REGNUM): Remove define.
5269 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5270 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5271 (i386_register_virtual_size): Remove protoype.
5272 * i386-tdep.c (i386_register_virtual_size): Removed.
5273 (i386_extract_return_value, i386_store_return_value): Use
5274 FP0_REGNUM instead of NUM_FREGS to determine whether the
5275 floating-point registers are available.
5276 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5277 Adjust for removal of macros mentioned above.
5279 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5281 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5283 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5285 (supply_gregset, fill_gregset): Remove use of register keyword and
5286 remove declaration for regmap. Use I386_NUM_GREGS instead of
5287 NUM_REGS and NUM_FREGS.
5288 (FPREGSET_FSAVE_OFFSET): Remove.
5289 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5290 NUM_FREGS to determine whether the floating-point registers are
5293 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5294 gnu_store_registers): Replace usage of NUM_GREGS with
5297 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5298 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5299 usage of NUM_GREGS with I386_NUM_GREGS.
5301 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5303 * i386bsd-nat.c: Include "i386-tdep.h".
5304 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5307 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5308 and associated comment. They no longer make any sense, since we
5309 don't use this file anymore on Linux.
5311 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5312 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5313 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5314 elements in these arrays.
5315 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5318 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5320 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5321 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5323 2002-06-14 Andrew Cagney <cagney@redhat.com>
5325 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5326 EXTRACT_RETURN_VALUE.
5327 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5328 EXTRACT_STRUCT_VALUE_ADDRESS.
5329 * gdbarch.h, gdbarch.c: Regenerate.
5331 * values.c (value_being_returned): Handle
5332 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5333 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5335 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5336 * arm-tdep.c (arm_gdbarch_init): Update.
5337 * avr-tdep.c (avr_gdbarch_init): Update.
5338 * cris-tdep.c (cris_gdbarch_init): Update.
5339 * d10v-tdep.c (d10v_gdbarch_init): Update.
5340 * ia64-tdep.c (ia64_gdbarch_init): Update.
5341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5342 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5343 * s390-tdep.c (s390_gdbarch_init): Update.
5344 * sh-tdep.c (sh_gdbarch_init): Update.
5345 * s390-tdep.c (s390_gdbarch_init): Update.
5346 * sparc-tdep.c (sparc_gdbarch_init): Update.
5347 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5348 * v850-tdep.c (v850_gdbarch_init): Update.
5349 * vax-tdep.c (vax_gdbarch_init): Update.
5350 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5353 * config/arc/tm-arc.h: Update.
5354 * config/d30v/tm-d30v.h: Update.
5355 * config/fr30/tm-fr30.h: Update.
5356 * config/h8300/tm-h8300.h: Update.
5357 * config/h8500/tm-h8500.h: Update.
5358 * config/i386/tm-i386.h: Update.
5359 * config/i386/tm-ptx.h: Update.
5360 * config/i386/tm-symmetry.h: Update.
5361 * config/i960/tm-i960.h: Update.
5362 * config/m32r/tm-m32r.h: Update.
5363 * config/m68k/tm-delta68.h: Update.
5364 * config/m68k/tm-linux.h: Update.
5365 * config/m68k/tm-m68k.h: Update.
5366 * config/m88k/tm-m88k.h: Update.
5367 * config/mcore/tm-mcore.h: Update.
5368 * config/mips/tm-mips.h: Update.
5369 * config/mn10200/tm-mn10200.h: Update.
5370 * config/pa/tm-hppa.h: Update.
5371 * config/pa/tm-hppa64.h: Update.
5372 * config/sparc/tm-sp64.h: Update.
5373 * config/sparc/tm-sparc.h: Update.
5374 * config/sparc/tm-sparclet.h: Update.
5375 * config/z8k/tm-z8k.h: Update.
5377 2002-06-14 Andrew Cagney <cagney@redhat.com>
5379 * Makefile.in (i386_linux_tdep_h): Define.
5380 (i386_tdep_h, i387_tdep_h): Define.
5381 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5382 $(i386_tdep_h) and $(i387_tdep_h).
5383 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5385 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5387 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5388 Already covered by the default.
5390 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5391 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5392 (i386_gdbarch_init): Initialize long_double_format and long_double
5395 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5396 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5398 * config/i386/i386sol2.mh: ... here.
5399 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5400 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5401 (SIGCONTEXT_PC_OFFSET): Remove define.
5402 (IN_SIGTRAMP): Remove define.
5403 * i386-sol2-tdep.c: New file.
5405 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5406 * config/i386/tm-i386nw.h: Removed.
5408 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5409 USE_STRUCT_CONVENTION): Remove defines.
5410 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5411 (get_longjmp_target): Remove prototype.
5412 (IN_SIGTRAMP): Remove define.
5413 (i386bsd_in_sigtramp): Remove prototype.
5414 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5415 function. Update comment accordingly
5416 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5417 (FRAME_SAVED_PC): Remove define.
5418 (i386bsd_frame_saved_pc): Remove prototype.
5419 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5420 GET_LONGJMP_TARGET): Remove defines.
5421 (get_longjmp_target): Remove prototype.
5422 (IN_SIGTRAMP): Remove define.
5423 (i386bsd_in_sigtramp): Remove prototype.
5424 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5425 function. Update comment accordingly
5426 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5427 (FRAME_SAVED_PC): Remove define.
5428 (i386bsd_frame_saved_pc): Remove prototype.
5429 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5431 (USE_STRUCT_CONVENTION): Remove prototype.
5432 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5434 (_initialize_i386bsd_nat): Revise logic to determine some
5435 constants at compile time when compiling a native GDB. Warn if
5436 things don't match up with what we expect.
5437 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5439 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5440 to use date stored in `struct gdbarch_tdep'.
5441 (i386bsd_sigcontext_offset): Remove varaible.
5442 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5443 stored in `struct gdbarch_tdep'.
5444 (i386bsd_frame_saved_pc): Make static.
5445 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5446 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5447 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5448 i386fbsd4_sc_pc_offset): New variables.
5449 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5450 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5452 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5454 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5455 Modify the value of i386fbsd_sigtramp_start and
5456 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5457 i386fbsd_sigtramp_end.
5458 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5461 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5462 define to i386-linux-tdep.h.
5463 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5464 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5466 (i386_linux_register_name, i386_linux_register_byte,
5467 i386_linux_register_raw_size): Remove prototypes.
5468 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5469 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5470 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5471 TARGET_WRITE_PC): Remove defines.
5472 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5473 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5474 i386_linux_write_pc): Remove prototypes.
5475 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5476 (get_longjmp_target): Remove prototype.
5477 * i386-linux-tdep.h: New file.
5478 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5479 * i386-linux-tdep.c: Include "i386-tdep.h" and
5480 "i386-linux-tdep.h".
5481 (i386_linux_register_name, i386_linux_register_byte,
5482 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5483 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5485 (i386_linux_init_abi): New function.
5486 (_initialize_i386_linux_tdep): New function.
5488 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5489 (i386_saved_pc_after_call): Remove prototype.
5490 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5491 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5492 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5493 (i386_register_name, i386_stab_reg_to_regnum,
5494 i386_dwarf_reg_to_regnum): Remove prototypes.
5495 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5496 SIZEOF_SSE_REGS): Remove defines.
5497 (REGISTER_BYTES): Remove define.
5498 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5499 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5500 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5501 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5502 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5503 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5504 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5505 (get_longjmp_target): Remove prototype.
5506 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5507 (sigtramp_saved_pc): Remove define.
5508 (i386v4_sigtramp_saved_pc): Remove prototype.
5509 * config/i386/tm-go32.h (FRAME_CHAIN,
5510 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5511 (i386go32_frame_saved_pc): Remove prototype.
5512 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5513 (get_longjmp_target): Remove prototype.
5514 * i386-tdep.h: Include "osabi.h".
5515 (enum i386_abi): Removed.
5516 (enum struct_return): New enum.
5517 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5518 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5519 sc_pc_offset members.
5520 (i386_gdbarch_register_os_abi): Remove prototype.
5521 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5522 I386_SSE_NUM_REGS): New defines.
5523 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5524 I386_SSE_SIZEOF_REGS): New defines.
5525 (i386_register_name, i386_register_byte, i386_register_raw_size):
5527 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5528 (i386bsd_sigtramp_saved_pc): New prototype.
5529 * i386-tdep.c: Don't include "elf-bfd.h".
5530 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5531 i386_frame_chain, i386_saved_pc_after_call): Make static.
5532 (i386_frame_saved_pc): Rewrite to call architecture dependent
5533 function to deal with signal handlers. Make static.
5534 (i386go32_frame_saved_pc): Removed.
5535 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5537 (i386_get_longjmp_target): New function.
5538 (default_struct_convention, pcc_struct_convention,
5539 reg_struct_convention, valid_conventions, struct_convention): New
5541 (i386_use_struct_convention): New function.
5542 (i386v4_sigtramp_saved_pc): Renamed to
5543 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5544 (i386_pc_in_sigtramp): New function.
5545 (i386_abi_names): Removed.
5546 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5547 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5549 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5550 i386_gdbarch_register_os_abi): Removed.
5551 (struct i386_abi_handler): Removed.
5552 (i386_abi_handler_list): Removed.
5553 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5555 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5556 i386_nw_init_abi): New functions.
5557 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5558 Use set_gdbarch_xxx() calls instead of relying on macros for a
5560 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5561 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5562 Register the various architecture variants defined in this file.
5564 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5566 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5567 (struct main_type): Remove arg_types member. Update comments for
5569 (TYPE_ARG_TYPES): Remove.
5570 (TYPE_FN_FIELD_ARGS): Update.
5571 (smash_to_method_type): Update prototype.
5573 * c-typeprint.c (cp_type_print_method_args): Take method type
5574 instead of argument list. Use new argument layout. Simplify.
5575 (c_type_print_args): Use new argument layout. Simplify.
5576 (c_type_print_base): Update call to cp_type_print_method_args.
5577 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5578 argument; use die->type instead. Update call to
5579 smash_to_method_type.
5580 (read_structure_scope): Update call to dwarf2_add_member_fn.
5581 * gdbtypes.c (allocate_stub_method): Update comment.
5582 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5583 Use new argument layout.
5584 (check_stub_method): Use new argument layout. Don't count
5585 void as an argument.
5586 (print_arg_types): Update comments. Use new argument layout.
5587 (recursive_dump_type): Don't print arg_types member.
5588 * hpread.c (hpread_read_struct_type): Use new argument layout.
5589 (fixup_class_method_type): Likewise.
5590 (hpread_type_lookup): Likewise.
5591 * stabsread.c (read_type): Update calls to read_args and
5592 smash_to_method_type.
5593 (read_args): Use new argument layout. Simplify.
5594 * valops.c (typecmp): Use new argument layout. Update parameters
5595 and comments. Simplify.
5596 (hand_function_call): Use new argument layout.
5597 (search_struct_method): Update call to typecmp.
5598 (find_overload_match): Use new argument layout.
5600 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5602 * NEWS: Mention multithreaded debug support for gdbserver.
5604 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5606 * MAINTAINERS: Mention NEWS.
5608 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5610 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5611 (struct mips_objfile_private, compare_pdr_entries): New.
5612 (non_heuristic_proc_desc): Read the ".pdr" section if it
5615 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5617 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5618 (arm_debug): New static variable.
5619 (_initialize_arm_tdep): Add ``set debug arm'' command.
5621 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5623 * Makefile.in (sim_arm_h): Define.
5624 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5625 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5626 (arm_register_sim_regno): New function, map an internal REGNUM
5627 onto a simulator register number.
5628 (arm_gdbarch_init): Set register_sim_regno.
5630 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5632 * MAINTAINERS: Add self.
5634 2002-06-11 Jim Blandy <jimb@redhat.com>
5636 * source.c (source_info): Mention whether the symtab has
5637 information about preprocessor macros.
5639 Call the command `info macro', not `show macro'.
5640 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5642 (_initialize_macrocmd): Register `info_macro_command' in
5643 `infolist', not `showlist'.
5645 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5647 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5648 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5649 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5650 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5651 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5653 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5654 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5655 (_initialize_mips_tdep): Remove dead code.
5656 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5657 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5658 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5659 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5660 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5661 MIPS_LAST_FP_ARG_REGNUM): Remove.
5663 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5665 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5666 (unwind_tmp_obstack_free, parse_frame_info)
5667 (update_context, cfi_read_fp, cfi_write_fp)
5668 (cfi_frame_chain, cfi_init_extra_frame_info)
5669 (cfi_virtual_frame_pointer): Use the above function.
5670 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5672 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5674 * v850-tdep.c (v850_type_is_scalar): New function.
5675 (v850_use_struct_convention): Match current gcc implementation
5676 as close as possible.
5677 (v850_push_arguments): Fix stack_offset handling. Don't write
5678 struct_addr into register. This is done by v850_store_struct_return.
5679 (v850_extract_return_value): Care for structs.
5680 (v850_store_return_value): Ditto.
5681 (v850_store_struct_return): Actually write address.
5683 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5685 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5686 without debug information too.
5688 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5690 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5691 Make multi-arch pure.
5692 * gdbarch.h, gdbarch.c: Re-generate.
5693 * arm-tdep.c (arm_print_float_info): Update.
5694 * arch-utils.h (default_print_float_info): Update.
5695 * arch-utils.c (default_print_float_info): Update.
5696 * infcmd.c (float_info): Update call.
5698 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5700 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5701 the front of the initialize list.
5703 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5705 * infrun.c (struct inferior_status): Replace fields
5706 selected_frame_address and selected_level with field
5708 (save_inferior_status): Update. Use get_frame_id.
5709 (struct restore_selected_frame_args): Delete.
5710 (restore_selected_frame): Update. Use frame_find_by_id.
5711 (restore_inferior_status): Update.
5713 * breakpoint.h (struct breakpoint): Change type of
5714 watchpoint_frame to frame_id.
5715 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5716 call to get_current_frame.
5717 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5719 (watchpoint_check): Use frame_find_by_id.
5721 * frame.h (record_selected_frame): Delete declaration.
5722 * stack.c (record_selected_frame): Delete function.
5724 * frame.h (struct frame_id): Define.
5725 (get_frame_id): Declare.
5726 (frame_find_by_id): Declare.
5727 * frame.c (frame_find_by_id): New function.
5728 (get_frame_id): New function.
5730 2002-06-10 Andrey Volkov <avolkov@transas.com>
5732 * ser-e7kpc.c: Fix duplicated define and call of
5733 _initialize_ser_e7000pc
5735 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5737 * signals/signals.c (target_signal_from_host): Fix #ifdef
5739 (do_target_signal_to_host): Likewise.
5741 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5743 * mips-tdep.c (mips_find_abi_section): New function.
5744 (mips_gdbarch_init): Call it.
5746 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5748 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5749 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5750 after Andrew's 2002-06-08 gdbarch change.
5752 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5754 * i386-linux-nat.c (suppy_gregset): Don't supply
5755 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5757 (fill_gregset): Don't fetch it under the same circumstances.
5759 2002-06-09 Andrew Cagney <cagney@redhat.com>
5761 * Makefile.in (callback_h): Define.
5762 (remote_sim_h): Update path to remote-sim.h.
5763 (remote-rdp.o): Add $(callback_h).
5764 (remote-sim.o): Use $(callback_h).
5765 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5766 * remote-rdp.c: Include "gdb/callback.h".
5768 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5770 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5771 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5773 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5775 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5776 * rdi-share/serpardr.c: Ditto.
5777 * rdi-share/unixcomm.c: Ditto.
5778 * rdi-share/serdrv.c: Ditto.
5779 * rdi-share/hostchan.h: Ditto.
5780 * rdi-share/hostchan.c: Ditto.
5781 * rdi-share/host.h: Ditto.
5782 * rdi-share/devsw.c: Ditto.
5784 * objfiles.h: Change type of obj_private to void pointer.
5785 * pa64solib.c: Update copyright. Don't include "assert.h", use
5786 strcmp instead of STREQ, use LONGEST, do not use PTR
5787 * somsolib.c: Ditto.
5789 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5790 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5791 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5793 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5795 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5796 (default_get_saved_register): Delete function.
5797 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5798 generic_unwind_get_saved_register.
5799 * gdbarch.h, gdbarch.c: Re-generate.
5801 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5803 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5804 generic_func_frame_chain_valid.
5805 * gdbarch.h, gdbarch.c: Re-generate.
5806 * blockframe.c (generic_func_frame_chain_valid): Only check
5807 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5808 passing FP to PC_IN_CALL_DUMMY.
5811 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5813 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5814 (register_gdbarch_data): Initialize init_p.
5815 (gdbarch_data): Initialize data pointer using the init function.
5816 (init_gdbarch_data): Delete function.
5817 (gdbarch_update_p): Update.
5818 (initialize_non_multiarch): Update.
5819 (struct gdbarch): Add field initialized_p.
5820 * gdbarch.h, gdbarch.c: Re-generate.
5822 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5824 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5825 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5826 better do the things actually here.
5827 * x86-64-tdep.c (x86_64_register_name2nr): New.
5828 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5829 (x86_64_gdbarch_init): Respect the above change.
5830 * x86-64-tdep.h (x86_64_register_name2nr)
5831 (x86_64_register_nr2name): Add prototypes.
5832 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5834 2002-06-06 Michael Snyder <msnyder@redhat.com>
5836 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5837 Delete extra braces and re-indent.
5838 (d10v_store_return_value): Char return values
5839 must be shifted over by one byte in R0.
5840 (d10v_extract_return_value): Delete extra braces, re-indent.
5842 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5844 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5845 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5846 (d10v_integer_to_address): Rewrite.
5847 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5848 the d10v specific functions which take care of converting to the
5851 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5853 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5854 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5856 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5858 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5860 * config/tm-linux.h: Ditto.
5861 * config/alpha/tm-alphalinux.h: Ditto.
5862 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5863 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5864 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5865 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5866 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5867 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5868 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5869 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5870 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5871 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5872 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5873 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5874 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5875 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5876 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5877 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5878 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5879 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5880 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5881 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5882 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5883 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5884 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5885 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5886 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5887 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5888 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5889 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5890 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5891 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5892 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5893 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5894 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5895 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5896 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5897 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5898 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5900 2002-05-04 Aidan Skinner <aidan@velvet.net>
5902 * ada-exp.tab.c: New file
5903 * ada-exp.y: New file
5904 * ada-lang.c: New file
5905 * ada-lang.h: New file
5906 * ada-lex.c: New file
5907 * ada-lex.l: New file
5908 * ada-tasks.c: New file
5909 * ada-typeprint.c: New file
5910 * ada-valprint.c: New file
5912 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5914 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5915 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5917 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5919 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5920 insetead of ppc-linux-tdep.o.
5921 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5922 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5924 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5926 2002-05-07 Christian Groessler <chris@groessler.org>
5927 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5928 bit register contents for little endian hosts.
5930 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5932 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5935 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5937 * gdbarch.h: Regenerate.
5939 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5941 * MAINTAINERS: Add everyone to write-after-approval list.
5943 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5945 * stack.c (frame_info): Use frame_register_unwind instead of
5946 saved_regs. Mention when the SP is on the stack or in a register.
5948 * frame.h (frame_register_unwind_ftype): Define. Document.
5949 (struct frame_info): Add field register_unwind and
5950 register_unwind_cache.
5951 (frame_register_unwind): Declare.
5952 (generic_unwind_get_saved_register): Declare.
5954 * frame.c (frame_register_unwind): New function.
5955 (generic_unwind_get_saved_register): New function.
5957 * blockframe.c (generic_call_dummy_register_unwind): New function.
5958 (frame_saved_regs_register_unwind): New function.
5959 (set_unwind_by_pc): New function.
5960 (create_new_frame): New function.
5961 (get_prev_frame): New function.
5963 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5965 * a29k-share/: Delete directory.
5966 * remote-vx29k.c: Delete file.
5968 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5970 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5971 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5973 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5975 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5976 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5979 (sparcnbsd-tdep.o): New dependency lists.
5980 * NEWS: Note new UltraSPARC NetBSD native configuration.
5981 * configure.host (sparc64-*-netbsd*): New host.
5982 * configure.tgt (sparc-*-netbsdelf*)
5983 (sparc-*-netbsd*): Set gdb_target to nbsd.
5984 (sparc64-*-netbsd*): New target.
5985 * sparc64nbsd-nat.c: New file.
5986 * sparcnbsd-nat.c: New file.
5987 * sparcnbsd-tdep.c: New file.
5988 * sparcnbsd-tdep.h: New file.
5989 * config/sparc/nbsd.mt: New file.
5990 * config/sparc/nbsd64.mh: New file.
5991 * config/sparc/nbsd64.mt: New file.
5992 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5993 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5995 * config/sparc/nbsdaout.mt: Remove.
5996 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5997 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5999 * config/sparc/nbsdelf.mt: Remove.
6000 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6001 sparc-nat.c compatiblity defines.
6002 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6003 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6004 * config/sparc/tm-nbsd64.h: New file.
6005 * config/sparc/tm-nbsdaout.h: Remove.
6006 * config/sparc/xm-nbsd.h: Remove.
6008 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6010 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6011 * sparc-tdep.c: Include osabi.h.
6012 (gdbarch_tdep): Add osabi member.
6013 (_initialize_sparc_tdep): Use gdbarch_register.
6014 (sparc_gdbarch_init): Use generic OS ABI framework.
6015 (sparc_dump_tdep): New function.
6017 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6019 * corefile.c (do_captured_read_memory_integer): Return non-zero
6021 (safe_read_memory_integer): Copy result of memory read when
6022 status is non-zero. Also, add comments.
6024 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6026 * Makefile.in (ppc_tdep_h): Define.
6029 (rs6000-tdep.o): Use $(ppc_tdep_h).
6032 (ppcnbsd-tdep.o): New dependency lists.
6033 * ppc-tdep.h: Use generic OS ABI framework.
6034 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6035 (ppc_linux_init_abi): New functions.
6036 (ppc_sysv_abi_broken_use_struct_convention)
6037 (ppc_sysv_abi_use_struct_convention)
6038 (ppc_sysv_abi_push_arguments): Move to...
6039 * ppc-sysv-tdep.c: ...here.
6040 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6041 * rs6000-tdep.c (process_note_abi_tag_sections)
6042 (get_elfosabi): Remove.
6043 (rs6000_gdbarch_init): Use generic OS ABI framework.
6044 (rs6000_dump_tdep): New function.
6045 (_initialize_rs6000_tdep): Use gdbarch_register.
6046 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6047 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6048 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6049 of ppc-linux-tdep.o.
6050 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6051 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6052 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6053 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6054 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6055 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6057 2002-05-29 Jim Blandy <jimb@redhat.com>
6059 * macroscope.c (default_macro_scope): Put `void' in empty argument
6062 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6064 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6065 * arch-utils.c: Include "sim-regno.h".
6066 * gdbarch.sh: Don't include "sim-regno.h".
6067 * gdbarch.h, gdbarch.c: Regenerate.
6068 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6070 * arch-utils.h (legacy_register_sim_regno): To here.
6071 * remote-sim.c (legacy_register_sim_regno): Move function from
6073 * arch-utils.c (legacy_register_sim_regno): To here.
6075 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6077 * sim-regno.h: New file.
6078 * Makefile.in (sim_regno_h): Define.
6079 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6080 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6081 (legacy_register_sim_regno): New function.
6082 (one2one_register_sim_regno): New function.
6083 (gdbsim_fetch_register): Rewrite.
6084 (gdbsim_store_register): Only store a register when
6085 REGISTER_SIM_REGNO is valid.
6086 * d10v-tdep.c: Include "sim-regno.h".
6087 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6088 (d10v_ts3_register_sim_regno): Ditto.
6089 * gdbarch.sh: Include "sim-regno.h".
6090 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6091 * gdbarch.h, gdbarch.c: Regenerate.
6092 * arch-utils.h (default_register_sim_regno): Delete declaration.
6093 * arch-utils.c (default_register_sim_regno): Delete function.
6095 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6097 * ppcnbsd-nat.c: Rewrite.
6098 * ppcnbsd-tdep.c: New file.
6099 * ppcnbsd-tdep.h: New file.
6100 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6101 solib.o, and solib-svr4.o.
6102 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6103 nbsd-tdep.o, and corelow.o.
6105 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6107 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6108 `tr' and `sed'. Mention that `broken' targets are not expected to
6111 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6113 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6114 Let PC point right after the prologue before looking up symbols.
6116 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6118 * i386-tdep.c (i386_register_virtual_type): Return
6119 builtin_type_vec128i for SSE registers.
6121 * gdbtypes.h (builtin_type_vec128i): Declare.
6123 * gdbtypes.c (build_builtin_type_vec128i): New function.
6124 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6125 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6126 (build_gdbtypes): Initialize new builtin vector types.
6127 (_initialize_gdbtypes): Register new vector types with gdbarch.
6129 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6131 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6132 since it has been multi-arch'd.
6133 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6134 Move Alpha and VAX multi-arch news entries to same section
6135 as other multi-arch news.
6137 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6139 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6140 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6141 static. Rename some register numbers to put them in ns32k-tdep
6143 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6144 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6146 (_initialize_ns32k_tdep): Use gdbarch_register.
6147 * ns32k-tdep.h: New file.
6148 * ns32knbsd-tdep.c: New file.
6149 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6150 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6151 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6152 REGISTER_BYTES, REGISTER_BYTE): Remove.
6153 * config/ns32k/tm-ns32k.h: New file.
6154 * config/ns32k/tm-umax.h: Remove.
6156 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6158 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6159 ns32k_store_struct_return, ns32k_extract_return_value,
6160 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6162 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6163 ns32k_saved_pc_after_call.
6164 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6165 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6166 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6167 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6168 ns32k_extract_struct_value_address.
6170 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6172 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6173 ns32k_fix_call_dummy): New.
6174 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6175 ns32k_call_dummy_words.
6176 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6177 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6178 CALL_DUMMY_NARGS): Remove.
6179 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6181 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6183 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6184 ns32k_frame_saved_pc, ns32k_frame_args_address,
6185 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6186 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6187 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6188 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6189 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6190 (BREAKPOINT): Remove..
6191 (FRAME_CHAIN): Define as ns32k_frame_chain.
6192 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6193 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6194 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6195 (FRAME_FIND_SAVED_REGS): Remove.
6196 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6197 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6198 (POP_FRAME): Define as ns32k_pop_frame.
6200 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6202 * ns32k-tdep.c (ns32k_register_byte_32082,
6203 ns32k_register_byte_32382, ns32k_register_raw_size,
6204 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6206 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6207 ns32k_register_byte_32382.
6208 * config/ns32k/tm-umax.h: Update copyright years.
6209 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6210 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6211 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6212 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6213 (ns32k_get_enter_addr): Fix prototype.
6215 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6217 * ns32k-tdep.c: Update copyright years.
6218 (ns32k_register_name_32082): New function.
6219 (ns32k_register_name_32382): Ditto.
6220 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6221 (REGISTER_NAME): Define as ns32k_register_name_32382.
6222 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6223 (REGISTER_NAME): Define as ns32k_register_name_32082.
6225 2002-05-24 Jim Blandy <jimb@redhat.com>
6227 * dwarf2read.c (free_line_header): Use xfree, not free.
6229 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6231 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6232 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6234 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6236 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6238 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6240 From Ross Alexander at NEC Europe:
6241 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6243 2002-05-23 Michael Snyder <msnyder@redhat.com>
6245 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6246 for input, rather than parse_and_eval_address.
6248 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6250 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6251 * Makefile.in (sim_d10v_h): Update definition.
6253 2002-05-24 Andrew Cagney <cagney@redhat.com>
6255 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6256 change `2002-05-22 Michael Snyder' below.
6257 (d10v_push_arguments): Ditto.
6258 (d10v_extract_return_value): Ditto.
6260 2002-05-23 Jim Blandy <jimb@redhat.com>
6262 * macrotab.c (check_for_redefinition): Don't complain if the new
6263 definition is the same as the previous one. Take more arguments
6264 to allow the comparison.
6265 (macro_define_object, macro_define_function): Pass more arguments
6266 to check_for_redefinition.
6268 2002-05-22 Michael Snyder <msnyder@redhat.com>
6270 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6271 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6272 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6273 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6274 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6275 Add a temp variable to save a call (and a memory read).
6276 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6277 if possible (so that PC_IN_CALL_DUMMY will work).
6279 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6281 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6283 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6285 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6287 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6288 (dwarf2_build_frame_info): Add offset to fde->initial_location
6289 so that frames of shared libraries are mapped correctly.
6290 (execute_stack_op): Change type of 'result' from ULONGEST to
6293 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6295 * config/alpha/tm-nbsd.h: Include solib.h.
6297 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6299 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6300 assumptions about the host's byte order.
6302 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6304 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6306 * alphanbsd-tdep.c: Include solib-svr4.h.
6307 * shnbsd-tdep.c: Ditto.
6309 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6311 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6312 nbsd-tdep.h to dependency list.
6313 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6314 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6315 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6316 nbsdaout.mh and nbsdelf.mh consistently.
6317 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6318 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6319 nbsdaout.mt and nbsdelf.mh consistently.
6320 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6321 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6322 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6323 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6324 a.out shared library stuff from here...
6325 * config/nm-nbsdaout.h: ...to here.
6326 * config/tm-nbsd.h: Remove.
6327 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6328 * config/arm/nbsd.mh: Remove.
6329 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6331 * config/arm/nbsdaout.mh: New file.
6332 * config/arm/nbsdelf.mh: New file.
6333 * config/arm/nm-nbsdaout.h: New file.
6334 * config/i386/nbsd.mh: Remove.
6335 * config/i386/nbsd.mt: Remove.
6336 * config/i386/nbsdaout.mh: New file.
6337 * config/i386/nbsdaout.mt: New file.
6338 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6339 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6340 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6341 i386_register_u_addr): Remove.
6342 * config/i386/nm-nbsdaout.h: New file.
6343 * config/i386/nm-nbsdelf.h: Remove.
6344 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6345 (USE_STRUCT_CONVENTION): Remove.
6346 * config/i386/tm-nbsdaout.h: New file.
6347 * config/i386/tm-nbsdelf.h: Remove.
6348 * config/m68k/nbsd.mh: Remove.
6349 * config/m68k/nbsd.mt: Remove.
6350 * config/m68k/nbsdaout.mh: New file.
6351 * config/m68k/nbsdaout.mt: New file.
6352 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6353 * config/m68k/nm-nbsdaout.h: New file.
6354 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6355 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6356 * config/ns32k/nbsd.mh: Remove.
6357 * config/ns32k/nbsd.mt: Remove.
6358 * config/ns32k/nbsdaout.mh: New file.
6359 * config/ns32k/nbsdaout.mt: New file.
6360 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6361 * config/ns32k/nm-nbsdaout.h: New file.
6362 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6363 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6364 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6365 (SVR4_SHARED_LIBS): Remove.
6366 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6367 * config/sparc/nbsd.mh: Remove.
6368 * config/sparc/nbsd.mt: Remove.
6369 * config/sparc/nbsdaout.mh: New file.
6370 * config/sparc/nbsdaout.mt: New file.
6371 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6372 * config/sparc/nbsdelf.mt: New file.
6373 * config/sparc/nm-nbsdaout.h: New file.
6374 * config/sparc/nm-nbsdelf.h: Remove.
6375 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6376 * config/sparc/tm-nbsdaout.h: New file.
6378 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6380 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6382 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6384 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6386 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6388 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6390 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6392 * NEWS: Note new MIPS NetBSD native configuration.
6393 * configure.host (mips*-*-netbsd*): New host.
6394 * configure.tgt (mips*-*-netbsd*): New target.
6395 * mipsnbsd-nat.c: New file.
6396 * mipsnbsd-tdep.c: New file.
6397 * mipsnbsd-tdep.h: New file.
6398 * config/mips/nbsd.mh: New file.
6399 * config/mips/nbsd.mt: New file.
6400 * config/mips/nm-nbsd.h: New file.
6401 * config/mips/tm-nbsd.h: New file.
6403 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6405 * Makefile.in (SFILES): Add osabi.c.
6406 (COMMON_OBS): Add osabi.o.
6407 (osabi.o): New dependency list.
6408 * osabi.c: New file.
6409 * osabi.h: New file.
6410 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6412 * Makefile.in (alpha_tdep_h): Define and use instead of
6414 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6415 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6417 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6418 * alpha-tdep.h: Include osabi.h.
6419 (alpha_abi): Remove.
6420 (gdbarch_tdep): Use generic OS ABI framework.
6421 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6422 gdbarch_register_osabi.
6423 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6424 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6425 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6427 * Makefile.in (sh_tdep_h): Add osabi.h.
6428 * sh-tdep.h (sh_osabi): Remove.
6429 (gdbarch_tdep): Use generic OS ABI framework.
6430 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6431 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6432 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6433 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6435 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6436 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6437 gdbarch_register_osabi.
6438 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6439 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6440 (get_elfosabi): Rename to...
6441 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6442 ABI framework support routines.
6443 (arm_gdbarch_init): Use generic OS ABI framework.
6444 (arm_dump_tdep): Likewise.
6445 (_initialize_arm_tdep): Likewise.
6446 * arm-tdep.h: Include osabi.h.
6448 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6450 (arm_gdbarch_register_os_abi): Remove prototype.
6451 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6452 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6454 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6455 * mips-tdep.c: Include osabi.h.
6456 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6459 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6461 * h8300-tdep.c: Fix formatting.
6463 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6465 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6466 printing vector registers.
6468 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6470 From Fernando Nasser:
6471 * remote.c (remote_async_open_1): Re-throw the exception when the
6473 (remote_cisco_open): Ditto.
6474 (remote_open_1): Ditto.
6476 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6478 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6479 (remote_start_remote): Add uiout parameter. Pass through to
6480 remote_start_remote_dummy.
6481 (remote_open_1): Use catch_exception instead of catch_errors.
6482 (remote_async_open_1): Ditto.
6483 (remote_cisco_open): Ditto.
6485 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6487 * remote.c (remote_start_remote): Replace PTR with void pointer.
6488 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6491 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6493 * gdb_indent.sh: Allow the script to be run in the sim directory.
6495 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6497 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6498 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6500 * corelow.c (core_open): Only call set_gdbarch_from_file if
6503 2002-05-17 Andrey Volkov <avolkov@transas.com>
6505 * h8300-tdep.c: Add support of EXR register
6506 * config/h8300/tm-h8300.h: Ditto.
6508 2002-05-17 Andrey Volkov <avolkov@transas.com>
6510 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6512 2002-05-17 Andrey Volkov <avolkov@transas.com>
6514 * h8300-tdep.c: Change literal regnums to REGNO.
6516 2002-05-17 Jim Blandy <jimb@redhat.com>
6518 * NEWS: Note addition of macro support.
6520 Expand preprocessor macros in C expressions.
6521 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6522 (scan_macro_expansion, scanning_macro_expansion,
6523 finished_macro_expansion): New function declarations.
6524 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6525 variable declarations.
6526 * parser-defs.h (expression_context_pc): New declaration.
6527 * parse.c (expression_context_pc): New variable.
6528 (parse_exp_1): Set expression_context_pc, as well as
6529 expression_context_block.
6530 * c-exp.y (yylex): If we're not already reading the result of a
6531 macro expansion, try to macro-expand the next token. When we're
6532 done scanning a macro expansion, switch back to the mainline text.
6533 Commas and `if's in a macro's expansion don't terminate the input.
6534 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6535 (macro_original_text, macro_expanded_text,
6536 expression_macro_lookup_func, expression_macro_lookup_baton): New
6538 (scan_macro_expansion, scanning_macro_expansion,
6539 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6540 c_preprocess_and_parse): New functions.
6541 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6542 c_preprocess_and_parse, instead of c_parse.
6543 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6544 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6546 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6548 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6549 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6550 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6552 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6554 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6556 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6558 * Makefile.in (sh_tdep_h): Define and use.
6559 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6560 register enum): Move to...
6561 * * sh-tdep.h: ...here.
6562 * sh-tdep.c: Include sh-tdep.h.
6563 * sh3-rom.c: Likewise.
6564 * shnbsd-tdep.c: Likewise.
6566 2002-05-16 Michael Snyder <msnyder@redhat.com>
6568 * arm-tdep.c: Spelling fix in comment.
6570 2002-05-16 Jim Blandy <jimb@redhat.com>
6572 Add commands for manually expanding macros and showing their
6574 * macrocmd.c, macroscope.c, macroscope.h: New files.
6575 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6576 (macroscope_h): New variable.
6577 (HFILES_NO_SRCDIR): Add macroscope.h.
6578 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6579 (macroscope.o, macrocmd.o): New rules.
6581 Teach the Dwarf 2 reader to read macro information.
6582 * dwarf2read.c: #include "macrotab.h".
6583 (dwarf_macinfo_buffer): New variable.
6584 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6586 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6587 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6588 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6589 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6590 dwarf2_macro_spaces_in_definition): New complaints.
6591 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6592 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6593 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6594 the partial symbol table.
6595 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6596 from what's recorded in the partial symbol table.
6597 (read_file_scope): If the compilation unit has a
6598 `DW_AT_macro_info' attribute, read its macro information.
6599 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6601 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6604 * ser-tcp.c: Don't include <netinet/udp.h>.
6606 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6608 * MAINTAINERS: Update my email address.
6610 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6612 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6613 include file of the same name.
6615 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6617 * configure.tgt: Mark v850 as multi-arched.
6618 * config/v850/tm-v850.h: Remove file.
6619 * config/v850/v850.mt: Eliminate TM_FILE.
6621 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6623 * v850-tdep.c: Full multi-arch.
6624 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6625 Define GDB_MULTI_ARCH to 2.
6627 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6629 * p-exp.y (current_type): New static variable.
6630 Carries the type of the expression at the position that is parsed.
6631 (push_current_type, pop_current_type): Two new functions. Used
6632 to store/restore current_type in expression on specific tokens.
6633 (search_field): New static variable. Set to one after parsing a point
6634 as at that point only a FIELDNAME token should be searched.
6635 (FIELDNAME): New token. After a point only a token belonging to
6636 current_type type definition is allowed.
6637 (all over token rules): reset and change current_type according
6639 (exp '[' rule): insert implicit array index field if
6640 exp is a pascal string type.
6642 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6644 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6645 frame info. Use frame_info's saved_regs instead of matching member
6646 in extra_frame_info throughout.
6647 (v850_frame_init_saved_regs): New function.
6648 (v850_init_extra_frame_info): Move most functionality into
6649 v850_frame_init_saved_regs().
6650 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6651 (v850_frame_find_saved_regs): Remove declaration.
6652 (FRAME_FIND_SAVED_REGS): Remove definition.
6653 (v850_frame_init_saved_regs): Add declaration.
6654 (FRAME_INIT_SAVED_REGS): Add definition.
6656 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6658 * v850-tdep.c: Begin multi-arch'ing v850.
6659 (v850_target_architecture_hook): Remove function.
6660 (v850_gdbarch_init): New function. Add code previously in
6661 v850_target_architecture_hook().
6662 (_initialize_v850_tdep): Don't set target_architecture_hook.
6663 Call register_gdbarch_init() instead.
6665 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6667 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6668 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6669 (fixup_class_method_type): Likewise.
6671 2002-05-15 Jim Blandy <jimb@redhat.com>
6673 Add macro structures to GDB's symbol tables. Nobody puts anything
6675 * symtab.h (struct symtab): New member: `macro_table'.
6676 * buildsym.h (pending_macros): New global variable.
6677 * buildsym.c: #include "macrotab.h".
6678 (buildsym_init): Initialize `pending_macros'.
6679 (end_symtab): If we found macro information while reading a CU's
6680 debugging info, do build a symtab structure for it. Make the
6681 symtab point to the macro information, and clear the
6682 `pending_macros' pointer which held it while we were reading the
6684 (really_free_pendings): Free any pending macro table.
6685 * objfiles.h (struct objfile): New member: `macro_cache'.
6686 * objfiles.c (allocate_objfile): Set allocate and free functions
6687 for the macro cache's objstack.
6688 (free_objfile): Empty the macro cache's obstack.
6689 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6690 set new allocate and free functions for it.
6691 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6692 free functions for the macro cache's objstack. (Why is this
6693 function building its own objfile?)
6694 * symmisc.c (print_objfile_statistics): Print statistics on the
6696 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6698 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6700 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6701 (REGISTER_U_ADDR): Delete definition.
6702 (arm_register_u_addr): Delete declaration.
6704 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6706 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6707 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6709 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6711 * regcache.c (register_valid): Revise comments refering to "Not
6712 available" and "unavailable".
6713 * frame.c (frame_register_read): Ditto.
6714 * findvar.c (value_of_register): Ditto.
6716 2002-05-15 Andrew Cagney <cagney@redhat.com>
6718 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6719 (remote-sim.o): Update dependencies.
6720 (d10v-tdep.o): Specify dependencies.
6721 (sim_d10v_h): Define.
6723 2002-05-14 Jim Blandy <jimb@redhat.com>
6725 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6726 * macrotab.c (macro_lookup_inclusion, find_definition,
6727 new_macro_table): Same.
6729 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6730 not `! strcmp ()'. This is a dubious improvement.
6731 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6733 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6734 although it's not necessary, to avoid a warning.
6736 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6738 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6739 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6740 TYPE_INSTANCE_FLAGS.
6741 (struct main_type): New.
6742 (struct type): Move most members to struct main_type. Change
6743 cv_type and as_type to new type_chain member. Add instance_flags.
6744 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6745 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6746 (finish_cv_type): Remove prototype.
6747 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6749 (alloc_type_instance): New function.
6750 (smash_type): New function.
6751 (make_pointer_type, make_reference_type, make_function_type)
6752 (smash_to_member_type, smash_to_method_type): Call smash_type.
6753 (make_qualified_type): New function.
6754 (make_type_with_address_space): Call make_qualified_type.
6755 (make_cv_type): Likewise.
6756 (finish_cv_type): Remove unnecessary function.
6757 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6758 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6759 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6760 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6761 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6762 * hpread.c (hpread_read_struct_type): Likewise.
6763 * stabsread.c (read_struct_type): Likewise.
6765 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6767 * configure.tgt: Add a catch all sh* target, for cases like
6768 sh[2,3,4]-elf and sh-hms.
6770 2002-05-14 Keith Seitz <keiths@redhat.com>
6772 * event-loop.c (create_file_handler): Don't do anything but
6773 update data when we are given a fd which we are already
6776 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6778 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6779 (update_context): Use __func__ in warnings.
6781 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6783 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6784 and tcp_close to net_open and net_close.
6785 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6786 using UDP if requested. Don't try to disable Nagle on UDP
6788 * remote.c (remote_serial_open): New function. Warn about UDP.
6789 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6791 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6793 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6795 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6797 * configure.tgt: Remove sh-hms target.
6798 * MAINTAINERS: Don't list sh-hms as a separate target.
6800 2002-05-13 Jim Blandy <jimb@redhat.com>
6802 Add first preprocessor macro-expansion files.
6803 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6804 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6805 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6806 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6807 (COMMON_OBS): Add macrotab.o, macroexp.o.
6808 (macroexp.o, macrotab.o): New rules.
6810 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6812 * config/m88k/tm-m88k.h: Update copyright.
6813 (m88k_target_write_pc): Declare
6814 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6815 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6816 (SHIFT_INST_REGS): Update definition.
6817 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6818 using old definition of TARGET_WRITE_PC.
6819 * regcache.c (generic_target_write_pc): Delete code handling
6821 * gdbarch.sh (NNPC_REGNUM): Delete.
6822 * gdbarch.h, gdbarch.c: Regenerate.
6824 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6826 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6829 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6831 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6832 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6833 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6835 * c-typeprint.c (cp_type_print_method_args): Likewise.
6836 (c_type_print_args): Likewise.
6837 * d10v-tdep.c (d10v_push_arguments): Likewise.
6838 (d10v_extract_return_value): Likewise.
6839 * expprint.c (print_subexp): Likewise.
6840 * gdbtypes.c (lookup_primitive_typename): Likewise.
6841 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6842 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6843 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6844 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6845 (TYPE_VECTOR): Likewise.
6846 * hpread.c (hpread_read_struct_type)
6847 (fix_static_member_physnames, fixup_class_method_type)
6848 (hpread_type_lookup): Likewise.
6849 * mdebugread.c (parse_symbol, parse_type): Likewise.
6850 * p-lang.c (is_pascal_string_type): Likewise.
6851 * valops.c (hand_function_call): Likewise.
6852 * x86-64-tdep.c (classify_argument): Likewise.
6854 * hpread.c (hpread_read_function_type)
6855 (hpread_read_doc_function_type): Call replace_type.
6856 * dstread.c (create_new_type): Delete.
6857 (decode_dst_structure, process_dst_function): Call alloc_type.
6858 Use type access macros.
6860 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6862 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6863 the're not supported by the current architecture.
6864 (i387_fill_fxsave): Likewise.
6866 2002-05-12 Fred Fish <fnf@redhat.com>
6868 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6869 sect_index_xxx members to index the first slot in section_offsets
6870 if all of the section_offsets are zero.
6872 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6874 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6875 checked in with last change.
6877 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6879 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6880 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6883 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6885 * Makefile.in: Update dependencies.
6887 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6889 * language.c (local_hex_string_custom): Simplify. Do not depend
6890 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6892 * memattr.c (mem_info_command): Replace calls to
6893 longest_local_hex_string and longest_local_hex_string_custom.
6894 * buildsym.c (make_blockvector): Ditto.
6895 * solib.c (info_sharedlibrary_command): Ditto.
6896 * tracepoint.c (tracepoints_info): Ditto.
6897 * symtab.c (print_msymbol_info): Ditto.
6899 * language.c (local_hex_string): Delete.
6900 (local_hex_string_custom): Delete.
6901 (longest_local_hex_string): Rename to local_hex_string.
6902 (longest_local_hex_string_custom): Rename to
6903 local_hex_string_custom.
6904 * language.h (local_hex_string): Change parameter type to LONGEST.
6905 (local_hex_string_custom): Ditto.
6906 (longest_local_hex_string): Delete declaration.
6907 (longest_local_hex_string_custom): Ditto.
6909 * solib.c: Update copyright.
6910 * memattr.c: Update copyright.
6912 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6914 * arch-utils.h (legacy_register_to_value): Declare.
6915 (legacy_value_to_register): Declare.
6916 (legacy_convert_register_p): Declare.
6917 * arch-utils.c (legacy_register_to_value): New function.
6918 (legacy_value_to_register): New function.
6919 (legacy_convert_register_p): New function.
6921 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6922 (VALUE_TO_REGISTER): Define.
6923 (CONVERT_REGISTER_P): Define.
6924 * gdbarch.h, gdbarch.c: Regenerate.
6926 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6928 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6931 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6932 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6934 * Makefile.in: Update dependencies for valops.c.
6935 * valops.c: Include "gdb_assert.h".
6936 (typecmp): Skip THIS parameter to methods.
6937 (find_method_list): Remove static_memfuncp argument,
6938 update callers. Check for stub methods.
6939 (find_value_oload_method_list): Don't set *static_memfuncp.
6940 (find_overload_match): Don't check for stub methods. Assert
6941 that methods are not stubbed. Handle static methods.
6942 (value_find_oload_method_list): Remove static_memfuncp argument.
6943 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6944 to the argument list for static stub methods.
6945 * value.h (value_find_oload_method_list): Update prototype.
6947 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6949 * arch-utils.h (generic_register_size): Declare.
6950 (generic_register_raw_size, generic_register_virtual_size): Delete
6952 * arch-utils.c (generic_register_raw_size): Delete.
6953 (generic_register_size): New function.
6954 (generic_register_virtual_size): Delete.
6956 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6957 default generic_register_size.
6958 * gdbarch.h, gdbarch.c: Re-generate.
6960 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6961 register_virtual_size.
6962 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6963 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6965 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6967 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6968 * gdbarch.h, gdbarch.c: Regenerate.
6969 * gnu-v3-abi.c: Update copyright.
6970 (vtable_address_point_offset): Update.
6971 (gnuv3_rtti_type): Update.
6972 (gnuv3_baseclass_offset): Update.
6973 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6974 (init_fetch_link_map_offsets): Update.
6975 * remote.c (get_remote_state): Update.
6977 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6979 * TODO: Remove value_headof/value_from_vtable_info comment.
6980 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6981 * values.c (value_headof, value_from_vtable_info): Delete.
6982 * value.h (value_from_vtable_info): Delete prototype.
6984 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6986 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6987 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6989 (gdb_assert_h): Define.
6990 (gdb_wait_h): Define.
6991 (gdb_regex_h): Define.
6993 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6995 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6996 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6998 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7000 * nbsd-tdep.c: Fix comment.
7002 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7004 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7005 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7006 (nbsd-tdep.o): New dependency list.
7007 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7009 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7010 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7011 * nbsd-tdep.c: New file.
7012 * nbsd-tdep.h: New file.
7013 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7015 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7016 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7017 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7018 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7020 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7022 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7023 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7024 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7025 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7026 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7027 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7029 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7031 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7032 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7033 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7034 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7035 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7036 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7037 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7039 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7041 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7042 fetch_elfcore_registers to...
7043 * i386nbsd-tdep.c: ...here.
7044 (i386nbsd_use_struct_convention): Rename to...
7045 (i386nbsd_aout_use_struct_convention): ...this.
7046 (i386nbsd_supply_reg): New function.
7047 (i386nbsd_fill_reg): New function.
7048 (fetch_core_registers): Use i386nbsd_supply_reg.
7049 (fetch_elfcore_registers): Likewise.
7050 (_initialize_i386nbsd_tdep): New function.
7051 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7052 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7053 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7054 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7055 (i386nbsd_aout_use_struct_convention): ...this.
7057 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7059 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7060 (store_inferior_registers): Use shnbsd_fill_reg.
7061 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7062 sh_nbsd_supply_register): Collapse into...
7063 (shnbsd_supply_reg): ...this.
7064 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7065 (shnbsd_fill_reg): ...this.
7066 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7067 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7068 (fetch_core_registers): Use shnbsd_supply_reg.
7069 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7070 (sh_nbsd_core_fns): Rename to...
7071 (shnbsd_core_fns): ...this.
7072 (sh_nbsd_elfcore_fns): Rename to...
7073 (shnbsd_elfcore_fns): ...this.
7074 (sh_nbsd_init_abi): Rename to...
7075 (shnbsd_init_abi): ...this.
7076 (_initialize_sh_nbsd_tdep): Rename to...
7077 (_initialize_shnbsd_tdep): ...this.
7078 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7079 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7080 sh_nbsd_fill_register): Remove prototypes.
7081 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7083 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7085 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7086 (i387-nat.o): Delete dependency list.
7087 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7088 (x86-64-linux-nat.o): Likewise.
7089 * i387-nat.c: Delete file, moving contents to...
7090 * i387-tdep.c: ...here.
7091 * i387-nat.h: Rename...
7092 * i387-tdep.h: ...to this.
7093 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7094 * i386-linux-nat.c: Likewise.
7095 * i386bsd-nat.c: Likewise.
7096 * i386gnu-nat.c: Likewise.
7097 * i386nbsd-nat.c: Likewise.
7098 * i386v4-nat.c: Likewise.
7099 * x86-64-linux-nat.c: Likewise.
7100 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7101 * config/i386/go32.mh (NATDEPFILES): Likewise.
7102 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7103 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7104 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7105 * config/i386/linux.mh (NATDEPFILES): Likewise.
7106 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7107 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7108 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7109 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7111 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7113 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7114 (alphanbsd-nat.o): Remove dependency list.
7115 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7116 * alphanbsd-nat.c: Delete. Contents moved to...
7117 * alphanbsd-tdep.c: ...here.
7118 (_initialize_alphanbsd_tdep): Register core functions.
7119 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7121 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7123 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7124 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7125 (alphanbsd-nat.o): Likewise.
7126 (alphabsd-tdep.o): New dependency list.
7127 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7128 (fill_gregset): Use alphabsd_fill_reg.
7129 (supply_fpregset): Use alphabsd_supply_fpreg.
7130 (fill_fpregset): Use alphabsd_fill_fpreg.
7131 (fetch_inferior_registers): Use struct reg and struct fpreg
7132 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7133 and alphabsd_supply_fpreg.
7134 (store_inferior_registers): Use struct reg and struct fpreg
7135 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7136 and alphabsd_fill_fpreg.
7137 * alphabsd-tdep.c: New file.
7138 * alphabsd-tdep.h: New file.
7139 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7140 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7141 alphabsd_supply_fpreg.
7142 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7143 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7145 2002-05-11 Eric Christopher <echristo@redhat.com>
7147 * mips-tdep.c (mips_double_register_type): Fix thinko.
7148 (mips_single_register_type): Ditto.
7149 * MAINTAINERS: Add self.
7151 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7153 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7154 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7155 right thing on architectures with different endianness and/or
7158 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7160 From Christian Limpach <chris@Pin.LU>
7161 * configure.in: Change sed expression which comments out
7162 NATDEPFILES to also comment out continuation lines.
7163 * configure: Regenerate.
7165 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7167 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7170 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7172 * sh-tdep.c: Include correct file.
7174 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7176 New support for sh64-elf (sh5) target.
7178 * configure.tgt: For sh64-elf target, default to sh-elf.
7180 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7181 (struct gdbarch_tdep): Add new fields for new registers and ABI
7184 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7185 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7186 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7187 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7188 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7189 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7190 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7191 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7192 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7193 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7194 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7195 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7196 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7197 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7198 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7199 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7200 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7201 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7202 sign_extend, sh64_nofp_frame_init_saved_regs,
7203 sh64_init_extra_frame_info, sh64_get_saved_register,
7204 sh64_extract_struct_value_address, sh64_pop_frame,
7205 sh64_push_arguments, sh64_extract_return_value,
7206 sh64_store_return_value, sh64_show_media_regs,
7207 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7208 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7209 sh_sh64_register_virtual_type,
7210 sh_sh64_register_convert_to_virtual,
7211 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7212 sh64_register_read, sh64_pseudo_register_write,
7213 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7214 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7215 sh64_do_pseudo_register, sh_compact_do_registers_info,
7216 sh64_do_registers_info, sh_gdbarch_init): New functions.
7218 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7220 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7222 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7224 * linespec.c (decode_line_1): Check for a double quote after
7225 a filename correctly.
7227 2002-05-10 Jim Blandy <jimb@redhat.com>
7229 Properly track the size of the current objfile's .debug_line section.
7230 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7231 (DWARF_LINE_SIZE): New macro.
7232 (dwarf2_build_psymtabs_hard): Record the line section's size in
7233 the partial symbol table.
7234 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7237 2002-05-10 Petr Sorfa <petrs@caldera.com>
7239 * ia64-tdep.c: Handle breakpoints on L instruction type
7240 in MLX instruction bundle by moving the breakpoint to
7241 the third slot (X instruction type) as L holds only data.
7243 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7245 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7246 (process_one_symbol): Complain about discarding local symbols
7247 due to a misplaced N_LBRAC entry.
7249 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7251 From Daniel Berlin <dan@cgsoftware.com>
7252 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7253 decrease the depth we are at, in the case of templates.
7255 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7257 * mips-tdep.c (mips_float_register_type): New function.
7258 (mips_double_register_type): New function.
7259 (mips_print_register): Use them.
7260 (do_fp_register_row): Likewise.
7262 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7264 * signals/signals.c (signals): Remove conditional compilation around
7265 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7266 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7268 2002-05-09 Michael Snyder <msnyder@redhat.com>
7270 * remote-rdp.c (remote_rdp_can_run): Remove.
7272 2002-05-09 Tom Tromey <tromey@redhat.com>
7274 * jv-valprint.c (java_val_print): Handle `char' as a special case
7277 2002-05-09 Michael Snyder <msnyder@redhat.com>
7279 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7280 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7281 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7282 str r(0123),[sp,#nn].
7283 (arm_skip_prologue): Ditto. Also make disassembly
7284 order-independent by placing it in a loop.
7286 2002-05-06 Michael Snyder <msnyder@redhat.com>
7288 * stabsread.c (read_type): Add recognition for new attribute:
7289 "@V;" means that an array type is actually a vector.
7290 This is analogous to the vector flag that's been added to dwarf2.
7292 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7294 * i386-tdep.h (i386_abi): New enum.
7295 (struct gdbarch_tdep): Replace os_ident member with abi.
7296 (i386_gdbarch_register_os_abi): New prototype.
7297 * i386-tdep.c (i386_abi_names): New array.
7298 (process_note_abi_tag_sections): Removed.
7299 (process_note_sections): New function.
7300 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7301 (struct i386_abi_handler): New struct.
7302 (i386_abi_handler_list): New variable.
7303 (i386_gdbarch_register_os_abi): New function.
7304 (i386_gdbarch_init): Adapt for the changes given above.
7306 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7308 * gregset.h: Say "GNU/Linux".
7310 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7312 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7313 (build_gdbtypes): Build builtin_type_v2_float.
7314 (_initialize_gdbtypes): Register new builtin type.
7316 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7318 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7319 (clear_gdbarch_swap): New function.
7320 (initialize_non_multiarch): Call.
7321 (gdbarch_update_p): Before calling init(), swap out and clear the
7322 existing architecture.
7323 * gdbarch.c: Regenerate.
7325 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7327 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7330 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7332 * sh-nbsd-nat.c: Rename to...
7333 * shnbsd-nat.c: ...this.
7334 * sh-nbsd-tdep.c: Rename to...
7335 * shnbsd-tdep.c: ...this.
7336 * sh-nbsd-tdep.h: Rename to...
7337 * shnbsd-tdep.h: ...this.
7338 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7339 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7341 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7343 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7344 concatenation for command help messages.
7346 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7348 * NEWS: Note new sh*-*-netbsdelf* configuration.
7349 * configure.host: Set gdb_host_cpu to sh for all sh*.
7350 (sh*-*-netbsdelf*): New host.
7351 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7352 (sh*-*-netbsdelf*): New target.
7353 * sh-nbsd-nat.c: New file.
7354 * sh-nbsd-tdep.c: New file.
7355 * sh-nbsd-tdep.h: New file.
7356 * config/sh/nbsd.mh: New file.
7357 * config/sh/nbsd.mt: New file.
7358 * config/sh/nm-nbsd.h: New file.
7359 * config/sh/tm-nbsd.h: New file.
7361 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7363 * sh-tdep.c (sh_osabi_names): Declare.
7364 (process_note_abi_tag_sections): New function.
7365 (get_elfosabi): Ditto.
7366 (sh_gdbarch_register_os_abi): Ditto.
7367 (sh_dump_tdep): Ditto.
7368 _initialize_sh_tdep): Use gdbarch_register to register
7369 sh_gdbarch_init and sh_dump_tdep.
7370 * config/sh/tm-sh.h (sh_osabi): Declare.
7371 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7373 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7375 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7376 (thumb_scan_prologue): Ditto.
7377 (arm_find_callers_reg): Ditto.
7378 (arm_frame_chain): Ditto.
7379 (arm_init_extra_frame_info): Ditto.
7380 (arm_frame_saved_pc): Ditto.
7381 (arm_pop_frame): Ditto.
7382 (arm_push_return_address): New function.
7383 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7384 call_dummy_location, call_dummy_breakpoint_offset_p,
7385 call_dummy_breakpoint_offset, call_dummy_p,
7386 call_dummy_stack_adjust_p, call_dummy_words,
7387 sizeof_call_dummy_words, call_dummy_start_offset,
7388 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7389 call_dummy_address, push_return_address and push_dummy_frame for
7390 generic dummy frames.
7392 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7394 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7395 size computation for alloca.
7396 (sh_fp_frame_init_saved_regs): Likewise.
7398 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7400 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7401 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7402 * arm-tdep.c (arm_store_return_value): Use them.
7403 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7404 * remote-rdp.c (remote_rdp_fetch_register): Use
7405 ARM_MAX_REGISTER_RAW_SIZE.
7406 (remote_rdp_store_register): Likewise.
7408 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7410 * dwarf2cfi.c: Code cleanup, removed unused variables,
7411 added default labels to switch {} statements.
7412 * x86-64-tdep.c: Ditto.
7413 * x86-64-linux-nat.c: Ditto.
7415 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7417 * solib.h: Protect against multiple inclusion.
7419 2002-05-06 Jim Blandy <jimb@redhat.com>
7421 Add first preprocessor macro-expansion files.
7422 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7423 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7424 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7425 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7426 (COMMON_OBS): Add macrotab.o, macroexp.o.
7427 (macroexp.o, macrotab.o): New rules.
7429 Separate the job of reading the line number info statement program
7430 header (...expialidocious) out into its own function.
7431 * dwarf2read.c (struct line_head, struct filenames, struct
7432 directories): Replace with...
7433 (struct line_header): New structure, containing the full
7434 contents of the statement program header, including the
7435 include directory and file name tables.
7436 (read_file_scope): If we have line number info, instead of just
7437 calling dwarf_decode_lines to do all the work, call
7438 dwarf_decode_line_header first to get a `struct line_header'
7439 containing the data in the statement program header, and then
7440 pass that to dwarf_decode_lines, which will pick up where that
7441 left off. Be sure to clean up the `struct line_header' object.
7442 (dwarf_decode_line_header, free_line_header, add_include_dir,
7443 add_file_name): New functions.
7444 (dwarf_decode_lines): Move all the code to read the statement
7445 program header into dwarf_decode_line_header. Take the line
7446 header it built as the first argument, instead of the offset to
7447 the compilation unit's line number info. Use the new `struct
7448 line_header' type instead of the old structures. No need to do
7449 cleanups here now, since we don't allocate anything.
7450 (dwarf2_statement_list_fits_in_line_number_section,
7451 dwarf2_line_header_too_long): New complaints.
7453 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7455 * gdbtypes.c (init_vector_type): New function.
7456 (build_builtin_type_vec128): Simplify the representation of SIMD
7458 (build_gdbtypes): Initialize new builtin vector types.
7459 (_initialize_gdbtypes): Register new vector types with gdbarch.
7460 (builtin_type_v4_float, builtin_type_v4_int32,
7461 builtin_type_v8_int16, builtin_type_v16_int8,
7462 builtin_type_v2_int32, builtin_type_v4_int16,
7463 builtin_type_v8_int8): New (renamed) SIMD types.
7465 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7467 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7468 (i387_fill_fxsave): Likewise.
7470 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7472 * alpha-tdep.c (alpha_extract_return_value): Don't use
7473 non-constant array size in prototype.
7475 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7477 From Brian Taylor <briant at model dot com>:
7478 * ui-out.c (ui_out_field_core_addr): Use the function
7479 longest_local_hex_string_custom'to format addresses > 32 bits
7482 * ui-out.c (ui_out_field_core_addr): Update comment.
7484 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7486 * stack.c (select_and_print_frame): Make static. Delete the
7488 (func_command): Update call.
7489 (select_frame_command): Delete code computing the frame level.
7490 * frame.h (select_and_print_frame): Delete declaration.
7492 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7494 * sparc-tdep.c (sparc_get_saved_register): Comment why
7495 get_prev_frame call is safe.
7497 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7499 * frame.h (select_frame): Delete level parameter.
7500 * stack.c (select_frame): Update. Use frame_relative_level to
7501 obtain the frame's level.
7502 (select_and_print_frame): Update call.
7503 (select_frame_command): Ditto.
7504 (up_silently_base): Ditto.
7505 (down_silently_base): Ditto.
7506 * ocd.c (ocd_start_remote): Ditto.
7507 * remote-rdp.c (remote_rdp_open): Ditto.
7508 * remote-mips.c (mips_initialize): Ditto.
7509 (common_open): Ditto.
7510 * remote-e7000.c (e7000_start_remote): Ditto.
7511 * m3-nat.c (select_thread): Ditto.
7512 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7513 (child_get_current_exception_event): Ditto.
7514 * varobj.c (varobj_create): Ditto.
7515 (varobj_update): Ditto.
7516 (c_value_of_root): Ditto.
7517 * tracepoint.c (finish_tfind_command): Ditto.
7518 * corelow.c (core_open): Ditto.
7519 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7520 * thread.c (info_threads_command): Ditto.
7521 (switch_to_thread): Ditto.
7522 * infrun.c (normal_stop): Ditto.
7523 (restore_selected_frame): Ditto.
7524 (restore_inferior_status): Ditto.
7525 * breakpoint.c (insert_breakpoints): Ditto.
7526 (watchpoint_check): Ditto.
7527 (bpstat_stop_status): Ditto.
7528 (do_enable_breakpoint): Ditto.
7529 * blockframe.c (flush_cached_frames): Ditto.
7530 (reinit_frame_cache): Ditto.
7532 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7534 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7537 2002-05-04 Jim Blandy <jimb@redhat.com>
7539 * gdbtypes.c (replace_type): Doc fix.
7541 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7543 * valprint.c (strcat_longest): Delete commented out function.
7546 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7548 * MAINTAINERS: Mark a29k as deleted.
7549 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7550 Move new configurations to the top.
7551 * configure.tgt: Remove a29k.
7552 * config/a29k/tm-vx29k.h: Delete.
7553 * config/a29k/vx29k.mt: Delete.
7554 * config/a29k/tm-a29k.h: Delete.
7555 * config/a29k/a29k-udi.mt: Delete.
7556 * config/a29k/a29k.mt: Delete.
7557 * a29k-tdep.c: Delete.
7558 * remote-udi.c: Delete.
7559 * remote-mm.c: Delete.
7560 * remote-eb.c: Delete.
7561 * remote-adapt.c: Delete.
7562 * Makefile.in: Remove obsolete code.
7563 * config/s390/s390x.mt: Ditto.
7564 * config/s390/s390.mt: Ditto.
7565 * config/sparc/sparclynx.mh: Ditto.
7566 * config/sparc/linux.mh: Ditto.
7567 * config/pa/hppaosf.mh: Ditto.
7568 * config/pa/hppabsd.mh: Ditto.
7569 * config/ns32k/nbsd.mt: Ditto.
7570 * config/mips/vr5000.mt: Ditto.
7571 * config/m68k/sun3os4.mh: Ditto.
7572 * config/m68k/nbsd.mt: Ditto.
7573 * config/m68k/m68klynx.mh: Ditto.
7574 * config/m32r/m32r.mt: Ditto.
7575 * config/i386/x86-64linux.mt: Ditto.
7576 * config/i386/nbsdelf.mt: Ditto.
7577 * config/i386/nbsd.mt: Ditto.
7578 * config/i386/i386lynx.mh: Ditto.
7580 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7582 * target.c (debug_print_register): New function. Handle oversize
7584 (debug_to_fetch_registers): Call.
7585 (debug_to_store_registers): Call.
7587 2002-05-03 Jim Blandy <jimb@redhat.com>
7589 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7590 (read_type): Doc fix.
7591 * gdbtypes.c (replace_type): Doc fix.
7593 * stabsread.c (multiply_defined_struct): New complaint.
7594 (read_struct_type): If the type we were passed isn't empty, or
7595 incomplete, don't read the new struct type into it; complain,
7596 and return the original type unchanged. Take a new `type_code'
7597 argument, which is the type code for the new type.
7598 (read_type): Rather than storing the type's type code here, pass
7599 it as an argument to read_struct_type, and let that take care of
7600 storing it. That way, we don't overwrite the original type code,
7601 so read_struct_type can use it to decide whether we're overwriting
7602 something we shouldn't.
7603 (complain_about_struct_wipeout): New function.
7605 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7607 * gdbarch.sh: Assert that gdbarch is non-NULL.
7608 * gdbarch.c: Regenerate.
7610 2002-05-03 Jason Merrill <jason@redhat.com>
7612 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7615 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7617 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7618 (x86_64_dwarf2gdb_regno_map_length),
7619 (x86_64_dwarf2_reg_to_regnum): Added.
7620 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7621 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7622 (_initialize_x86_64_tdep): Synced with the change above.
7623 (x86_64_skip_prologue): Reformulated message.
7625 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7627 * f-exp.y: Also use new prev_lexptr variable
7628 to improve error reporting. Based on Michael Snyder
7629 2002-04-24 dated patch to c-exp.y.
7630 * jv-exp.y: Likewise.
7631 * m2-exp.y: Likewise.
7633 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7635 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7636 we are dealing with vectors.
7638 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7640 * config/m68k/tm-nbsd.h: Obvious fix,
7641 correct machine name.
7643 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7645 * p-typeprint.c (pascal_type_print_base): Add support
7646 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7648 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7650 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7651 for fondamental pascal 'char' type.
7653 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7655 * p-lang.h (is_pascal_string_type): Declaration changed,
7656 new sixth argument of type char ** added.
7657 * p-lang.c (is_pascal_string_type): Implementation
7658 changed. Args length_pos, length_size, string_pos, char_size
7659 can now be NULL. New argument arrayname set to the field
7660 name of the char array. Return value set to char array
7661 field index plus one.
7662 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7663 is_pascal_string_type function.
7665 2002-05-02 Andrew Cagney <cagney@redhat.com>
7667 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7668 <cagney@redhat.com> change.
7669 * gdbarch.c: Regenerate.
7671 2002-05-02 Andrew Cagney <cagney@redhat.com>
7673 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7674 before probing for a new one. Detect errorenous gdbarch_init
7676 * gdbarch.c: Regenerate.
7678 2002-05-01 Andrew Cagney <cagney@redhat.com>
7680 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7681 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7682 * config/v850/tm-v850.h: Ditto. Update copyright.
7684 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7686 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7689 2002-04-30 Michael Snyder <msnyder@redhat.com>
7691 * arm-tdep.c: Whitespace clean-ups.
7692 (arm_skip_prologue): Fix thinko; two lines
7693 should have been removed as part of 4/24 change.
7695 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7697 * rs6000-tdep.c: Added comment describing how fpscr register
7698 numbers were chosen.
7700 2002-04-30 Michael Snyder <msnyder@redhat.com>
7702 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7704 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7706 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7707 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7708 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7710 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7712 From Louis Hamilton <hamilton@redhat.com>:
7713 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7714 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7715 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7716 not bfd-private xcoff data, to determine wordsize.
7717 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7719 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7721 GDB 5.2 released from 5.2 branch.
7723 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7725 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7726 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7727 (x86_64_register_info_table): Added comments with register numbers.
7729 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7731 * rs6000-tdep.c (rs6000_extract_return_value,
7732 rs6000_store_return_value): Handle returning vectors.
7733 (rs6000_gdbarch_init): Use
7734 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7735 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7737 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7739 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7740 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7742 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7744 * hpread.c (hpread_psymtab_to_symtab_1,
7745 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7746 with fprintf_unfiltered (gdb_stderr,...).
7748 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7750 * remote-array.c (printf_monitor, write_monitor,
7751 array_insert_breakpoint, array_remove_breakpoint ):
7752 Replace fprintf (stderr,...
7753 with fprintf_unfiltered (gdb_stderr,....
7754 * remote-es.c: Likewise.
7755 * remote-os9k.c: Likewise.
7756 * remote-st.c: Likewise.
7758 2002-04-28 Andreas Schwab <schwab@suse.de>
7760 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7761 linux-proc.o and gcore.o.
7763 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7765 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7766 code without frame pointers.
7768 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7770 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7773 2002-04-26 Ben Elliston <bje@redhat.com>
7775 * target.c (do_xfer_memory): Correct reference to the new option
7776 "trust-readonly-sections".
7778 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7780 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7781 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7782 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7784 (read_array_type): Record the fact that this array type is really a
7785 vector (i.e. are passed in by value).
7787 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7789 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7790 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7791 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7792 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7793 * alpha-linux-tdep.c: Include frame.h.
7794 (alpha_linux_sigcontext_addr): New function.
7795 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7796 alpha_linux_sigcontext_addr.
7797 * alpha-osf1-tdep.c: Include gdbcore.h.
7798 (alpha_osf1_sigcontext_addr): New function.
7799 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7800 alpha_osf1_sigcontext_addr.
7801 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7802 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7804 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7806 * stack.c (selected_frame_level):
7807 (select_frame): Do not set selected_frame_level.
7808 * frame.h (selected_frame_level): Delete declaration.
7810 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7812 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7813 convert_from_func_ptr-addr when AIX / PowerOpen.
7815 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7817 * valops.c (hand_function_call): Call
7818 generic_save_call_dummy_addr.
7819 * frame.h (generic_save_call_dummy_addr): Declare.
7820 * blockframe.c (struct dummy_frame): Add fields call_lo and
7822 (generic_find_dummy_frame): Check for PC in range call_lo to
7823 call_hi instead of entry_point_address.
7824 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7825 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7826 (generic_save_call_dummy_addr): New function.
7828 2002-04-24 David S. Miller <davem@redhat.com>
7830 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7831 sparc_skip_prologue.
7832 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7833 information to find prologue when possible.
7834 (sparc_prologue_frameless_p): Call examine_prologue directly.
7835 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7836 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7838 (SKIP_PROLOGUE): Likewise.
7840 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7842 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7843 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7844 indicate that the condition it was testing is always true.
7845 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7846 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7847 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7849 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7851 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7852 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7853 tdep->jb_pc and tdep->jb_elt_size.
7854 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7855 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7856 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7857 * alpha-nat.c (get_longjmp_target): Remove.
7858 (JB_ELEMENT_SIZE): Ditto.
7860 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7861 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7862 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7863 to alpha_get_longjmp_target.
7864 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7865 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7866 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7868 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7870 * README: Update to GDB 5.2.
7872 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7874 * gdbarch.sh (LC_ALL): Set to `c'.
7876 2002-04-25 Theodore A. Roth <troth@verinet.com>
7878 * avr-tdep.c: Ran through gdb_indent.sh.
7880 2002-04-25 Theodore A. Roth <troth@verinet.com>
7882 * MAINTAINERS: Add myself as AVR maintainer.
7883 * NEWS: Note new target avr.
7885 2002-04-25 Theodore A. Roth <troth@verinet.com>
7887 * Makefile.in: Add support for AVR target.
7888 * configure.tgt: Add support for AVR target.
7889 * avr-tdep.c: New file
7890 * config/avr/avr.mt: New file.
7892 2002-04-25 Theodore A. Roth <troth@verinet.com>
7894 * MAINTAINERS: Add myself to write-after-approval.
7896 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7898 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7899 with fprintf_unfiltered (gdb_stderr,....
7901 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7904 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7906 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7908 * p-exp.y: Also use new prev_lexptr variable
7909 to improve error reporting. Based on Michael Snyder
7910 2002-04-24 dated patch to c-exp.y.
7912 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7914 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7915 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7916 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7918 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7920 (FUNCTION_START_OFFSET): Remove.
7921 (BREAKPOINT): Ditto.
7923 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7925 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7928 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7930 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7931 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7932 alpha_linux_pc_in_sigtramp.
7933 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7934 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7935 alpha_osf1_pc_in_sigtramp.
7936 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7937 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7938 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7939 alphafbsd_pc_in_sigtramp.
7940 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7941 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7942 alphanbsd_pc_in_sigtramp.
7943 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7944 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7946 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7948 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7950 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7952 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7954 (alphanbsd-nat.o): New dependency list.
7955 (alphanbsd-tdep.o): Ditto.
7956 * NEWS: Note new native NetBSD/alpha configuration.
7957 * alphanbsd-nat.c: New file.
7958 * alphanbsd-tdep.c: Ditto.
7959 * configure.host (alpha*-*-netbsd*): New host.
7960 * configure.tgt (alpha*-*-netbsd*): New target.
7961 * config/alpha/nbsd.mh: New file.
7962 * config/alpha/nbsd.mt: Ditto.
7963 * config/alpha/nm-nbsd.h: Ditto.
7964 * config/alpha/tm-nbsd.h: Ditto.
7966 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7968 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7969 (alpha-osf1-tdep.o): New dependency list.
7970 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7971 and skip_sigtramp_frame members.
7972 * alpha-linux-tdep.c: Include gdbcore.h.
7973 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7974 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7975 * alpha-osf1-tdep.c: New file.
7976 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7978 (alpha_frame_past_sigtramp_frame): New function.
7979 (alpha_dynamic_sigtramp_offset): Ditto.
7980 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7981 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7982 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7983 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7984 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7985 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7986 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7987 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7988 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7989 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7990 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7991 to find_solib_trampoline_target.
7992 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7993 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7994 (SKIP_TRAMPOLINE_CODE): Remove.
7995 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7996 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7997 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7998 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7999 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8000 (PROC_SIGTRAMP_MAGIC): Ditto.
8001 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8002 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8003 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8004 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8005 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8007 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8009 * NEWS: Note that Alpha targets are now multi-arch.
8011 2002-04-24 Michael Snyder <msnyder@redhat.com>
8013 * parser-defs.h (prev_lexptr): New external variable.
8014 * parse.c (parse_exp_1): Set prev_lexptr to null before
8015 calling the language-specific parser.
8016 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8017 (yyerror): Use prev_lexptr in error reporting.
8019 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8021 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8022 * gregset.h: If FILL_FPXREGSET is defined, provide
8023 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8024 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8025 is defined, call fill_fpxregset.
8027 2002-04-24 Roland McGrath <roland@frob.com>
8029 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8030 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8031 (supply_gregset, supply_fpregset): New functions.
8033 * gnu-nat.c (gnu_find_memory_regions): New function.
8034 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8035 (gnu_xfer_memory): Add a cast.
8037 2002-04-24 Michael Snyder <msnyder@redhat.com>
8039 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8040 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8041 of argument regs ("str r(0123), [r11, #-nn"]).
8042 (arm_skip_prologue): Better handling for frameless functions.
8043 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8044 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8046 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8048 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8049 NUM_PSEUDO_REGS can be used.
8051 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8053 * arch-utils.h: Update copyright.
8055 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8056 * gdbarch.h, gdbarch.c: Re-generate.
8058 * inferior.h (IN_SIGTRAMP): Delete definition.
8059 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8060 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8062 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8063 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8064 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8065 (find_proc_framesize): Ditto.
8066 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8067 (alpha_init_extra_frame_info): Ditto.
8068 * infrun.c (handle_inferior_event): Ditto.
8069 (handle_inferior_event): Ditto.
8070 (check_sigtramp2): Ditto.
8071 * blockframe.c (create_new_frame): Ditto.
8072 (get_prev_frame): Ditto.
8073 * ppc-linux-tdep.c: Update comments.
8074 * i386-linux-tdep.c: Update comments.
8075 * breakpoint.c (bpstat_what): Update comment.
8077 2002-04-24 David S. Miller <davem@redhat.com>
8079 * i960-tdep.c (register_in_window_p): New function.
8080 (i960_find_saved_register): Use it instead of
8081 REGISTER_IN_WINDOW_P.
8082 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8084 * symtab.h (find_stab_function_addr): Kill extern.
8085 * minsyms.c (find_stab_function_addr): Remove from here...
8086 * dbxread.c: ... to here, and mark it static.
8088 2002-04-20 David S. Miller <davem@redhat.com>
8090 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8091 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8093 2002-04-21 David S. Miller <davem@redhat.com>
8095 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8096 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8097 (vx_write_register): Likewise.
8099 2002-04-23 J. Brobecker <brobecker@gnat.com>
8101 * source.c (is_regular_file): New function.
8102 (openp): Check wether file to open is a regular file
8103 to avoid opening directories.
8105 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8107 * findvar.c (extract_signed_integer): Cast printf argument
8108 to suppress format warning.
8109 (extract_unsigned_integer): Likewise.
8110 * infcmd.c (registers_info): Likewise.
8111 * top.c (get_prompt_1): Likewise.
8112 * valops.c (value_assign): Likewise.
8113 * valprint.c (print_decimal): Likewise.
8115 2002-04-22 H.J. Lu (hjl@gnu.org)
8117 * c-exp.y (typebase): Support
8119 [long|long long|short] [signed|unsigned] [int|]
8123 signed [long|long long|short] int
8125 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8127 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8129 * vax-tdep.h: New file.
8130 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8131 Make several routines static.
8132 (vax_get_saved_register): New function.
8133 (vax_gdbarch_init): New function.
8134 (_initialize_vax_tdep): Register vax_gdbarch_init.
8135 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8136 Remove macros now under the control of gdbarch.
8138 2002-04-22 Michael Snyder <msnyder@redhat.com>
8140 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8141 Some whitespace and coding standards tweaks.
8143 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8145 * vax-tdep.c: Include regcache.h.
8146 (vax_call_dummy_words): New.
8147 (sizeof_vax_call_dummy_words): New.
8148 (vax_fix_call_dummy): New function.
8149 (vax_saved_pc_after_call): Ditto.
8150 * config/vax/tm-vax.h: Don't include regcache.h.
8151 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8152 (CALL_DUMMY): Remove.
8153 (CALL_DUMMY_WORDS): Define.
8154 (SIZEOF_CALL_DUMMY_WORDS): Define.
8155 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8157 2002-04-18 Michael Snyder <msnyder@redhat.com>
8159 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8161 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8163 * vax-tdep.c (vax_frame_chain): New function.
8164 (vax_push_dummy_frame): Ditto.
8165 (vax_pop_frame): Ditto.
8166 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8167 (FRAMELESS_FUNCTION_INVOCATION): Use
8168 generic_frameless_function_invocation_not.
8169 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8170 (POP_FRAME): Use vax_pop_frame.
8172 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8174 * vax-tdep.c (vax_store_struct_return): New function.
8175 (vax_extract_return_value): Ditto.
8176 (vax_store_return_value): Ditto.
8177 (vax_extract_struct_value_address): Ditto.
8178 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8179 vax_store_struct_return.
8180 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8181 (STORE_RETURN_VALUE): Use vax_store_return_value.
8182 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8184 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8186 * vax-tdep.c (vax_frame_saved_pc): New function.
8187 (vax_frame_args_address_correct): Ditto.
8188 (vax_frame_args_address): Ditto.
8189 (vax_frame_locals_address): Ditto.
8190 (vax_frame_num_args): Move code to be in proximity to
8191 other frame-related functions.
8192 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8193 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8194 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8195 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8196 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8198 2002-04-22 H.J. Lu (hjl@gnu.org)
8200 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8203 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8205 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8206 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8207 (FRAME_INIT_SAVED_REGS): New macro.
8209 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8211 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8213 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8215 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8217 (fetch_osf_core_registers): Likewise.
8218 (supply_gregset): Likewise.
8220 2002-04-22 J. Brobecker <brobecker@gnat.com>
8222 * symfile.h (get_section_index): Define.
8223 * symfile.c (get_section_index): New function.
8224 * mdebugread.c (SC_IS_SBSS): New macro.
8225 (SC_IS_BSS): Return true for the scBss storage class only, as
8226 the scSBss storage class refers to the .sbss section.
8227 (parse_partial_symbols): Discard the symbols which associated
8228 section does not exist.
8229 Make sure to use the .sbss section index for symbols which
8230 storage class is scBss, rather than using the .bss section index.
8232 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8234 * vax-tdep.c: Update copyright years.
8235 (vax_register_name): New function.
8236 (vax_register_byte): Ditto.
8237 (vax_register_raw_size): Ditto.
8238 (vax_register_virtual_size): Ditto.
8239 (vax_register_virtual_type): Ditto.
8240 * config/vax/tm-vax.h: Update copyright years.
8241 (REGISTER_NAMES): Remove.
8242 (REGISTER_NAME): Define.
8243 (REGISTER_BYTE): Use vax_register_byte.
8244 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8245 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8246 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8248 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8250 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8252 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8254 2002-04-21 David S. Miller <davem@redhat.com>
8256 * arch-utils.c (generic_prologue_frameless_p): Kill
8257 SKIP_PROLOGUE_FRAMELESS_P code.
8258 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8260 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8261 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8262 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8264 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8265 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8266 (sparc_gdbarch_init): Pass it to
8267 set_gdbarch_prologue_frameless_p.
8269 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8271 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8272 (alphabsd-nat.o): New dependency list.
8274 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8276 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8278 (alpha-linux-tdep.o): New dependency list.
8279 (alphafbsd-tdep.o): Likewise.
8281 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8283 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8285 * alpha-tdep.c: ...from here.
8286 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8288 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8290 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8291 prototype from here...
8292 * alpha-tdep.h: ...to here.
8294 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8296 * frame.h (selected_frame_level): Document as deprecated.
8297 (frame_relative_level): Declare.
8298 * stack.c (frame_relative_level): New function.
8299 (selected_frame_level): Document as deprecated.
8300 (select_frame): Do not set the selected_frame_level.
8302 * stack.c (frame_info, record_selected_frame): Update.
8303 (frame_command, current_frame_command): Update.
8304 (up_silently_base, up_command, down_silently_base): Update.
8305 (down_command): Update.
8306 * inflow.c (kill_command): Update.
8307 * tracepoint.c (finish_tfind_command): Update.
8308 * corelow.c (core_open): Update.
8309 * thread.c (info_threads_command): Update.
8310 (do_captured_thread_select): Update.
8311 * infcmd.c (finish_command): Update.
8312 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8314 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8316 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8318 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8320 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8323 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8325 * alphafbsd-tdep.c: Update copyright years. Include
8327 (alphafbsd_use_struct_convention): Make static.
8328 (alphafbsd_init_abi): New function.
8329 (_initialize_alphafbsd_tdep): New function.
8330 * config/alpha/tm-fbsd.h: Update copyright years.
8331 (USE_STRUCT_CONVENTION): Remove.
8333 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8335 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8336 an Alpha ABI variant.
8337 (alpha_abi_handler_list): Declare.
8338 (alpha_gdbarch_register_os_abi): New function.
8339 (alpha_gdbarch_init): Give registered ABI variant handlers a
8340 chance to tweak the gdbarch once we have set up defaults.
8341 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8343 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8345 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8346 to standard_coerce_float_to_double.
8347 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8349 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8351 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8352 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8353 from gdbarch_tdep rather than a constant.
8354 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8355 the default text address for all Alpha Unix ABIs.
8356 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8357 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8359 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8361 * alpha-tdep.h: New file. Includes several Alpha target constants
8363 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8364 let gdbarch deal with.
8365 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8366 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8368 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8369 Alpha target register names.
8370 * alphabsd-nat.c: Likewise.
8371 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8372 Alpha target register names. Make serveral routines static.
8373 (alpha_get_saved_register): New function.
8374 (alpha_abi_names): New.
8375 (process_note_abi_tag_sections): New function.
8376 (get_elfosabi): New function.
8377 (alpha_gdbarch_init): New function.
8378 (alpha_dump_tdep): New function.
8379 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8381 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8383 * frame.c (find_saved_register): Delete #ifdef
8384 HAVE_REGISTER_WINDOWS code.
8385 * config/sparc/tm-sparc.h: Update comments.
8386 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8388 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8390 * i960-tdep.c (i960_find_saved_register): New function.
8391 (i960_get_saved_register): New function.
8392 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8393 (i960_get_saved_register): Declare.
8394 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8396 2002-04-20 David S. Miller <davem@redhat.com>
8398 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8400 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8402 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8403 instead of NUM_PSEUDO_REGS.
8405 2002-04-20 David S. Miller <davem@redhat.com>
8407 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8408 GDB_MULTI_ARCH_PARTIAL
8409 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8410 define, let tm-sp64.h do it.
8412 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8414 * frame.c (find_saved_register): Avoid a NULL pointer
8415 dereference and actually walk the frame list.
8417 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8419 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8420 sorted in most most-recent-used order. Document.
8421 * gdbarch.h, gdbarch.c: Regenerate.
8423 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8425 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8427 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8428 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8429 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8432 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8435 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8436 (build_builtin_type_vec128): Ditto.
8437 (append_composite_type_field): Fix calculation of type length in
8440 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8442 * config/djgpp/README: Update.
8444 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8447 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8449 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8450 (alpha_setup_arbitrary_frame): ...to this.
8451 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8452 for alpha_setup_arbitrary_frame.
8454 2002-04-18 Andrew Cagney <cagney@redhat.com>
8456 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8457 * gdbarch.h, gdbarch.c: Regenerate.
8459 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8460 * target.h (memory_breakpoint_from_pc): Update declaration.
8461 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8463 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8464 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8465 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8466 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8467 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8468 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8469 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8470 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8471 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8472 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8473 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8474 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8476 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8478 * monitor.c (monitor_insert_breakpoint): Ditto.
8479 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8481 * config/mcore/tm-mcore.h: Update copyright.
8482 * mem-break.c: Ditto.
8483 * xstormy16-tdep.c: Ditto.
8485 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8487 * p-exp.y: Add precedence rule for '^' token.
8488 This removes the shift/reduce conflicts.
8489 Remove the comment concerning these shift/reduce conflicts.
8491 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8493 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8494 (registers_powerpc_nofp): New register set for processors
8495 without floating point unit.
8497 2002-04-18 David S. Miller <davem@redhat.com>
8499 * MAINTAINERS: Add myself to write-after-approval.
8501 2002-04-17 Michael Snyder <msnyder@redhat.com>
8503 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8505 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8507 * rs6000-tdep.c (frame_initial_stack_address): Use
8508 frame_register_read to read the alloca_reg.
8510 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8512 * frame.c (find_saved_register): Find saved registers in the next
8516 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8518 * gdbarch.sh (LANG): Set to ``c''.
8520 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8522 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8524 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8526 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8529 * hpread.c (hpread_get_lntt): Add declaration.
8530 Also fix PR gdb/391.
8532 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8534 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8535 * aclocal.m4, configure: Re-generate.
8538 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8540 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8541 instead of tm_print_insn.
8543 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8545 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8547 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8549 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8550 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8551 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8553 2002-04-12 Don Howard <dhoward@redhat.com>
8555 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8556 max_user_call_depth.
8557 (init_cmd_lists): Initialize the new value;
8558 * cli/cli-script.c (execute_user_command): Limit the call depth of
8559 user defined commands. This avoids a core-dump when user commands
8560 are infinitly recursive.
8562 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8564 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8565 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8566 from tdep struct instead of DEFAULT_LR_SAVE.
8567 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8568 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8569 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8571 2002-04-12 Michael Snyder <msnyder@redhat.com>
8573 * Remote.c: Spelling fix.
8574 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8575 If no symbol found for "sbrk", try "_sbrk".
8576 (make_output_phdrs): Use bfd_section_name.
8577 (gcore_copy_callback): Use bfd_section_name.
8578 * eval.c: Indentation fix-ups.
8579 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8580 in case it gets applied to an address that is already
8581 in the instruction space.
8582 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8583 * symfile.c: Fix indentation, long lines.
8584 * source.c: White space fix-up.
8586 2002-04-12 Andrew Cagney <cagney@redhat.com>
8588 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8589 * frame.c (frame_register_read): New function. Return non-zero on
8591 (read_relative_register_raw_bytes_for_frame): Delete.
8592 (read_relative_register_raw_bytes): Delete.
8593 * frame.h (frame_register_read): Declare.
8594 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8596 * infcmd.c (do_registers_info): Ditto.
8597 * hppa-tdep.c: Ditto.
8598 * rs6000-tdep.c: Ditto.
8599 * h8500-tdep.c: Ditto.
8600 * mips-tdep.c: Ditto.
8601 * h8300-tdep.c: Ditto.
8602 * z8k-tdep.c: Ditto.
8604 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8606 From Jimi X <jimix@watson.ibm.com>:
8607 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8610 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8612 From Jimi X <jimix@watson.ibm.com>:
8613 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8616 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8618 From Jimi X <jimix@watson.ibm.com>:
8619 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8620 register sets for these processor variants.
8622 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8624 * regformats/reg-ppc.dat: Support FPSCR.
8626 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8628 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8629 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8630 Add fpscr as an invalid/unfetchable register.
8631 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8632 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8633 (fill_fpregset): Add support for register fpscr.
8634 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8635 (fill_gregset): Account for the fact that register ``mq'' might
8637 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8638 (registers_power): Add fpscr to register set at slot 71.
8639 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8640 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8642 2002-04-11 Michael Snyder <msnyder@redhat.com>
8644 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8645 * configure: Regenerate.
8646 * config.in: Regenerate.
8647 * acconfig.h: Add define for _SYSCALL32.
8648 * core-sol2.c: Remove #define _SYSCALL32.
8649 * solib-legacy.c: Remove #define _SYSCALL32.
8651 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8653 * stack.c (select_frame): Cleanup internal error message, do not
8656 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8658 * stack.c (select_frame): Check that selected_frame and the
8659 specified level are as expected.
8660 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8662 * frame.h (struct frame_info): Add field `level'. Update
8664 Work-in-progress PR gdb/464.
8666 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8668 * maint.c (maint_print_section_info): Rename print_section_info.
8669 (print_bfd_section_info, print_objfile_section_info): Update.
8670 * inferior.h (struct gdbarch): Add opaque declaration.
8671 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8672 * gdbarch.h: Regenerate.
8674 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8676 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8677 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8678 (kernel_u_size): Added.
8679 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8680 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8682 2002-04-04 Jim Ingham <jingham@apple.com>
8684 * valarith.c (find_size_for_pointer_math): New function, either returns
8685 the size for a pointer's target, returns 1 for void *, or errors for
8687 (value_add, value_sub): use find_size_for_pointer_math.
8689 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8691 * linux-low.c (linux_look_up_symbols): New hook.
8692 (linux_target_ops): Add linux_look_up_symbols.
8693 * remote-utils.c (decode_address): New function.
8694 (look_up_one_symbol): New function.
8695 * server.c (handle_query): Call target look_up_symbols hook.
8696 * server.h (look_up_one_symbol): Add prototype.
8697 * target.h (struct target_ops): Add look_up_symbols hook.
8699 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8701 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8702 override FP_REGNUM with frame->fp. Update copyright.
8703 * parse.c (num_std_regs, std_regs): Delete.
8704 (target_map_name_to_register): Do not search std_regs. Update
8705 function description.
8706 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8707 declarations. Update copyright.
8710 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8712 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8713 after the last symbol in a block.
8715 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8717 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8718 is non zero as a found symbol.
8720 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8722 * findvar.c: Include "builtin-regs.h".
8723 (value_of_register): Call value_of_builtin_reg when applicable.
8724 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8725 (target_map_name_to_register): Call
8726 builtin_reg_map_name_to_regnum.
8727 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8728 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8729 (builtin_regs_h): Define.
8730 (builtin-regs.o): New target.
8731 (findvar.o): Add $(builtin_regs_h).
8732 * builtin-regs.c, builtin-regs.h: New files.
8733 * std-regs.c: New file.
8734 Partial fix for PR gdb/251.
8736 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8738 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8739 it's no longer required.
8741 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8743 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8745 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8747 From Jimi X <jimix@watson.ibm.com>:
8748 * rs6000-tdep.c (rs6000_software_single_step): Use
8749 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8750 and size. Use target_insert_breakpoint() and
8751 target_remove_breakpoint() to insert and remove breakpoints
8752 instead of explicit memory reads and writes.
8754 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8756 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8757 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8758 ELF_OBJECT_FORMAT ifdef.
8760 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8762 From Jimi X <jimix@watson.ibm.com>:
8763 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8765 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8767 From Jimi X <jimix@watson.ibm.com>:
8768 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8769 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8771 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8773 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8774 s/asprintf/xasprintf/.
8775 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8777 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8779 I believe Jeff Law denies responsability for this one:
8780 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8781 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8782 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8783 Work-around for PR gdb/366.
8785 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8787 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8788 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8789 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8791 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8793 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8794 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8797 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8799 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8802 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8804 * README (Reporting Bugs in GDB): Document the bug web page as the
8805 prefered way of submitting bugs.
8808 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8810 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8812 * gdbarch.h, gdbarch.c: Re-generate.
8814 2002-04-07 Andreas Schwab <schwab@suse.de>
8816 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8817 buffer to regcache_collect.
8819 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8821 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8822 * gdbarch.c, gdbarch.h: Re-generate.
8824 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8826 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8827 declaration. Fix -Werror.
8829 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8831 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8832 * gdbarch.c: Regenerate.
8834 2002-04-05 Michael Snyder <msnyder@redhat.com>
8836 * breakpoint.c (clear_command): Rewrite middle section to
8837 combine two loops with identical control conditions.
8838 Add a cleanup to eliminate a memory leak.
8839 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8841 2002-04-05 H.J. Lu (hjl@gnu.org)
8843 * solib-svr4.c (bkpt_names): Add "__start".
8845 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8847 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8848 as test for 64 bit target.
8850 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8852 * h8500-tdep.c (h8500_write_fp): Delete function.
8853 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8854 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8855 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8857 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8858 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8860 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8861 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8862 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8863 (d10v_write_fp): Delete function.
8864 * inferior.h (write_fp, generic_target_write_fp): Delete
8866 * regcache.c (generic_target_write_fp): Delete function.
8867 (write_fp): Delete function.
8868 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8869 * gdbarch.h, gdbarch.c: Regenerate.
8870 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8871 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8872 (sparc64_write_fp): Delete declaration.
8873 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8874 (h8500_write_fp): Delete declaration.
8876 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8878 * sparc-tdep.c (sparc64_write_fp): Delete.
8879 (sparc_push_dummy_frame): Replace write_fp call with code to store
8881 (sparc_gdbarch_init): Do not initialize write_fp.
8883 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8885 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8888 2002-03-29 Jim Blandy <jimb@redhat.com>
8890 * stack.c (get_selected_block): Add new argument `addr_in_block',
8891 used to return the exact code address we used to select the block,
8893 * blockframe.c (get_frame_block, get_current_block): Same.
8894 * frame.h (get_frame_block, get_current_block,
8895 get_selected_block): Update declarations.
8896 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8897 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8899 2002-04-05 Michael Snyder <msnyder@redhat.com>
8901 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8904 2002-04-05 J. Brobecker <brobecker@gnat.com>
8906 * utils.c (xfullpath): New function.
8907 * defs.h (xfullpath): Add declaration.
8908 * source.c (openp): Use xfullpath in place of gdb_realpath to
8909 avoid resolving the basename part of filenames when the
8910 associated file is a symbolic link. This fixes a potential
8911 inconsistency between the filenames known to GDB and the
8912 filenames it prints in the annotations.
8913 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8914 to be able to match a filename with either the real filename, or
8915 the name of any symbolic link to this file.
8916 (lookup_partial_symtab): Ditto.
8918 2002-04-04 Michael Snyder <msnyder@redhat.com>
8920 * breakpoint.c: Add support for hardware breakpoints in overlays.
8921 (overlay_events_enabled): New state variable.
8922 (insert_breakpoints): Use overlay_events_enabled to decide
8923 whether to attempt to set a breakpoint at the overlay load addr.
8924 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8925 (remove_breakpoint): Use overlay_events_enabled to decide
8926 whether breakpoints need to be removed from overlay load addr.
8927 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8928 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8929 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8930 disable_overlay_breakpoints): Update overlay_events_enabled.
8932 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8934 * dwarf2read.c (struct function_range): New.
8935 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8936 (check_cu_functions): New.
8937 (read_file_scope): Initialize global function lists.
8938 Call dwarf_decode_line after processing children.
8939 (read_func_scope): Add to global function list.
8940 (dwarf_decode_lines): Call check_cu_functions everywhere
8941 record_line is called. Call record_line with a linenumber
8942 of 0 to mark sequence ends.
8944 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8946 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8947 change sync with glibc.
8949 2002-04-03 Jim Blandy <jimb@redhat.com>
8951 * configure.in: Call AC_C_INLINE.
8952 * configure: Regenerated.
8954 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8956 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8957 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8959 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8961 * NEWS: Mention gcore support on FreeBSD/i386.
8963 * fbsd-proc.c: New file.
8964 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8965 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8967 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8970 2002-03-29 Jim Blandy <jimb@redhat.com>
8972 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8973 unescaped newlines in string literals, but newer ones don't. So
8976 2002-03-26 Michael Snyder <msnyder@redhat.com>
8977 Andrew Cagney <cagney@redhat.com>
8979 * cli/cli-dump.c: New file. Dump memory to file,
8980 restore file to memory.
8981 * cli/cli-dump.h: New file.
8982 * Makefile.in: Add rules, dependencies for cli-dump.o.
8983 * NEWS: Mention new commands.
8985 2002-03-28 Michael Snyder <msnyder@redhat.com>
8987 * symfile.c (symbol_file_add): Move test for null symbols to later.
8989 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8991 From veksler at il.ibm.com:
8992 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8993 the xstrduped original path.
8996 2002-03-27 Michael Snyder <msnyder@redhat.com>
8998 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8999 * infcmd.c (_initialize_infcmd): Ditto.
9000 * language.c (_initialize_language): Ditto.
9001 * symfile.c (_initialize_symfile): Ditto.
9002 * top.c (_init_main): Ditto.
9003 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9005 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9007 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9008 vector registers handling.
9009 (skip_prologue): Handle new AltiVec instructions. Fill in new
9010 fields of frame data.
9011 (frame_get_saved_regs): Fill in information for AltiVec registers.
9013 2002-03-27 Jim Blandy <jimb@redhat.com>
9015 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9016 a function; leave this macro here to invoke that function.
9017 (symbol_init_mangled_name): Declaration for that function.
9018 * symtab.c (symbol_init_mangled_name): New function.
9020 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9022 * valarith.c: Replace strerror with safe_strerror.
9023 * tracepoint.c: Ditto.
9025 * go32-nat.c: Ditto.
9029 2002-03-27 Andreas Schwab <schwab@suse.de>
9031 * event-top.c (command_line_handler): Remove useless if.
9033 2002-03-27 Andreas Jaeger <aj@suse.de>
9035 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9038 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9040 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9041 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9042 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9043 (x86_64_linux_dr_get_status, supply_gregset),
9044 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9045 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9046 (x86_64_register_info_table): Add.
9047 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9048 (x86_64_register_raw_size, x86_64_register_virtual_type),
9049 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9050 general x86_64_register_info_table.
9051 (i386_gdbarch_init): gdbarch_register_bytes is now set
9052 dynamicaly during initialization.
9053 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9054 * gdbserver/linux-x86-64-low.c: Ditto.
9056 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9058 * gdbserver/server.c (main): Call target_signal_to_host_p
9059 and target_signal_to_host on signals received from the remote.
9060 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9061 target_signal_from_host on signals sent to the remote.
9062 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9063 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9065 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9067 * signals/signals.c: Include "server.h" in gdbserver build.
9068 (target_signal_from_name): Don't use STREQ.
9069 (_initialize_signals): Likewise. Don't include function in
9072 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9074 * signals.c: Moved to...
9075 * signals/signals.c: Here.
9076 * Makefile (signals.o): Update.
9078 2002-03-26 Jeff Law (law@redhat.com)
9080 * somread.c (som_symtab_read): Remove some commented out code and
9081 updated related comments. Do not set the minimal symbol table to
9082 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9083 in a dynamic executable.
9084 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9085 where we are unable to find the minimal symbol for the given
9088 2002-03-25 Jeff Law (law@redhat.com)
9090 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9092 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9094 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9096 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9098 * command.h: Update copyright.
9099 (struct cmd_list_element): Replace definition with opaque
9101 (enum cmd_types): Document that it will eventually be moved to
9103 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9104 (MALLOCED_REPLACEMENT): Delete macro.
9105 * Makefile.in (cli_decode_h): Add $(command_h).
9106 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9107 * top.c: Include "cli/cli-decode.h".
9108 * completer.c: Include "cli/cli-decode.h".
9109 * maint.c: Include "cli/cli-decode.h".
9110 * cli/cli-decode.h: Include "command.h".
9111 (enum command_class): Delete.
9112 (enum cmd_types): Comment out.
9113 (enum cmd_auto_boolean): Delete.
9114 (enum var_types): Delete.
9116 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9118 * cli/cli-decode.c: Include "gdb_assert.h".
9119 (add_set_or_show_cmd): New static function.
9120 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9121 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9122 all fields, such as func, from the set command.
9124 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9126 * MAINTAINERS (sh-elf): Change warning flag to -w.
9128 2002-03-23 Andrew Cagney <cagney@redhat.com>
9130 * defs.h (error): Add printf format attribute.
9131 * thread-db.c (thread_from_lwp): Fix error format string.
9132 * stack.c (parse_frame_specification): Ditto.
9133 * cli/cli-decode.c (undef_cmd_error): Ditto.
9134 * scm-lang.c (scm_lookup_name): Ditto.
9135 * tracepoint.c (trace_error): Ditto.
9136 * remote-utils.c (usage): Ditto.
9137 * remote.c (compare_sections_command): Ditto.
9140 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9142 * gdbtypes.c (append_composite_type_field): New function.
9143 (init_composite_type): New function.
9144 * gdbtypes.h (append_composite_type_field): Declare.
9145 (init_composite_type): Ditto.
9147 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9149 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9151 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9152 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9153 structure returning convention for SYSV ABI case, but not
9154 for GNU/Linux, FreeBSD, or NetBSD.
9156 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9158 * symtab.h (lookup_block_symbol): Add mangled_name argument
9161 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9162 with new mangled_name argument.
9163 * linespec.c (decode_line_1): Likewise.
9164 * valops (value_of_this): Likewise.
9165 * symtab.c (lookup_transparent_type): Likewise.
9166 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9167 (lookup_symbol): If we are given a mangled name, pass it down
9168 to lookup_symbol_aux.
9169 (lookup_block_symbol): If we are given a mangled name to check
9170 against, only return symbols which match it.
9172 2002-03-22 Christopher Faylor <cgf@redhat.com>
9174 * win32-nat.c (child_create_inferior): Check for proper shell to use
9175 here, in case the user changes it on the fly.
9176 (_initialize_inftarg): Remove shell path considerations.
9178 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9180 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9181 for gdbarch_max_register_raw_size and max_register_virtual_size.
9182 Adjust copyright year.
9184 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9186 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9187 in a function to cover the entire beginning of the function
9188 as well if it does not already.
9190 2002-03-21 Tom Rix <trix@redhat.com>
9192 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9193 (rs6000_ptrace64): Renamed from ptrace64.
9195 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9197 * gdbserver/remote-utils.c (remote_open): Don't call
9198 getprotobyname, we're all using TCP here so just use
9200 * gdbserver/gdbreplay.c (remote_open): Ditto.
9202 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9204 * regcache.c (_initialize_regcache): No need to call
9205 build_regcache() at this time; it gets called whenever
9206 the gdbarch changes.
9208 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9210 * sparc-nat.c: Include sys/param.h where possible.
9212 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9215 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9216 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9217 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9219 * stabsread.c (rs6000_builtin_type): Likewise.
9220 (read_sun_floating_type): Likewise.
9222 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9224 * stabsread.c (read_member_functions): Remove skip code for duplicate
9225 constructor/destructor methods. Use standard parsing for these
9226 methods and just do not chain them to the list of methods after
9229 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9231 * coffread.c: Remove redundant static declarations. Replace
9232 occurrences of `PTR' with `void *'.
9233 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9234 * top.h (quit_cover): Likewise.
9235 * defs.h (catch_errors): Likewise.
9237 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9239 * defs.h (XMALLOC): Define.
9240 * gdb-events.sh (XMALLOC): Delete macro.
9241 * gdb-events.c, gdb-events.h: Regenerate.
9242 * gdbarch.sh (XMALLOC): Delete macro.
9243 * gdbarch.c: Regenerate.
9244 * serial.c (XMALLOC): Delete macro.
9245 * ui-file.c (XMALLOC): Ditto.
9246 * ser-unix.h (XMALLOC): Ditto.
9247 * sh-tdep.c (XMALLOC): Ditto.
9248 * ui-out.c (XMALLOC): Ditto.
9249 * utils.c (XMALLOC): Ditto.
9250 * i386-tdep.c (XMALLOC): Ditto.
9251 * gdb-events.c (XMALLOC): Ditto.
9252 * d10v-tdep.c (XMALLOC): Ditto.
9253 * cli-out.c (XMALLOC): Ditto.
9255 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9256 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9257 * ui-file.c, ui-out.c: Ditto.
9259 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9261 * command.h (struct cmd_list_element): Add field context.
9262 (set_cmd_context, get_cmd_context): Declare.
9263 * cli/cli-decode.h: Ditto.
9264 * cli/cli-decode.c (get_cmd_context): New function.
9265 (set_cmd_context): New function.
9266 (add_cmd): Initialize context.
9267 Part of fixing PR gdb/145 and PR gdb/146.
9269 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9271 * cli/cli-decode.c (cmd_type): New function.
9272 * command.h (cmd_type): Declare.
9273 * infrun.c (set_schedlock_func): Call function cmd_type.
9274 * kod.c (kod_set_os): Call cmd_type.
9275 * cris-tdep.c (cris_version_update): Use function cmd_type.
9276 (cris_mode_update, cris_abi_update): Ditto.
9278 * command.h: (execute_cmd_post_hook): Declare.
9279 (execute_cmd_pre_hook): Declare.
9280 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9281 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9282 functions. Execute pre/post hook while ensuring that afterwords
9284 * top.c (execute_command): Use execute_cmd_post_hook, and
9285 execute_cmd_pre_hook to execute pre/post commands.
9286 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9288 (hook_stop_stub): Call execute_cmd_pre_hook.
9290 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9292 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9293 set'' and this leads to a core dump. Move xstrdup of
9294 operating_system to after check that it is not NULL.
9296 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9298 * kod.c (kod_set_os): Remove unnecessary check that
9299 ``command->type'' is set_cmd.
9301 * valprint.c (set_input_radix): Use input_radix.
9302 (set_output_radix): Use output_radix.
9303 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9306 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9308 * value.h (struct value): Delete field ``substring_addr''. Change
9309 aligner fields to force_doublest_align, force_longest_align,
9310 force_core_addr_align and force_pointer_aligh.
9312 * value.h (struct value): Fix typo in above change.
9314 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9316 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9317 to fix internal_error from ``maintenance print architecture''.
9319 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9321 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9322 for gcc versions after gcc-2.8.1.
9324 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9326 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9327 for method resolution. Restore adjustment of ``this'' pointer after
9328 calling value_struct_elt, which was accidentally removed during the
9331 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9333 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9335 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9337 * value.h (value_of_register): Update.
9339 2002-03-14 Richard Henderson <rth@redhat.com>
9341 * configure.in: Detect declaration for canonicalize_file_name.
9342 * utils.c (canonicalize_file_name): Declare, if needed.
9343 (gdb_realpath): Prefer realpath if available and usable.
9344 * config.in, configure: Rebuild.
9346 2002-03-14 Richard Henderson <rth@redhat.com>
9348 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9349 a constant array bound.
9351 * MAINTAINERS: Add myself to write-after-approval.
9353 2002-03-14 Michael Snyder <msnyder@redhat.com>
9355 * symfile.c (syms_from_objfile): Return immediately if no syms.
9356 (symbol_file_add): Return immediately if no syms.
9357 (find_sym_fns): Return immediately if no syms.
9359 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9361 * gdbserver/remote-util.c (remote_open): Print remote-side's
9362 IP address when remote debugging over the network.
9364 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9366 * config/sparc/fbsd.mh: Fix copyright.
9367 * config/sparc/fbsd.mt: Likewise.
9369 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9371 * MAINTAINERS: Fix typo in name of gdb warnings option.
9372 (x86-64): Fix formating so that this can be parsed by awk.
9374 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9376 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9377 * defs.h: Include "gdb/signals.h".
9378 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9380 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9382 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9383 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9386 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9387 Don Howard <dhoward@redhat.com>
9389 * mips-tdep.c (ST0_FR): Define.
9390 (mips2_fp_compat): New function, temporarily disabled.
9391 (mips_read_fp_register_single): New function.
9392 (mips_read_fp_register_double): New function.
9393 (mips_print_register): Use them.
9394 (do_fp_register_row): Likewise.
9396 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9398 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9401 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9403 * stabsread.c (read_member_functions): Fix is_stub test for
9404 static member functions, improve comment.
9406 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9408 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9409 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9410 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9411 commands that set boolean values.
9412 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9413 (arm_rdi_resume): Always initialize PC.
9414 (arm_rdi_open): Don't use rslt as a boolean.
9415 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9416 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9417 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9418 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9420 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9422 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9423 * configure: Rebuilt.
9425 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9427 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9428 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9430 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9432 * cli/cli-decode.c (set_cmd_completer): New function.
9433 * command.h (set_cmd_completer): Declare.
9434 * cli/cli-decode.h (set_cmd_completer): Ditto.
9436 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9437 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9438 * win32-nat.c (_initialize_inftarg): Ditto.
9439 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9440 * proc-api.c (_initialize_proc_api): Ditto.
9441 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9442 * source.c (_initialize_source): Ditto.
9443 * exec.c (_initialize_exec): Ditto.
9444 * solib.c (_initialize_solib): Ditto.
9445 * top.c (init_main): Ditto.
9446 * tracepoint.c (_initialize_tracepoint): Ditto.
9447 * symfile.c (_initialize_symfile): Ditto.
9448 * printcmd.c (_initialize_printcmd): Ditto.
9449 * infcmd.c (_initialize_infcmd): Ditto.
9450 * corefile.c (_initialize_core): Ditto.
9452 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9454 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9456 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9458 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9460 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9462 * NEWS: Update headings, 5.2 has branched.
9464 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9466 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9467 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9468 (register_addr, REGISTER_RAW_SIZE): Likewise.
9469 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9470 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9472 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9474 * MAINTAINERS (x86-64): Add myself.
9475 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9476 changed value_ptr -> struct value *
9478 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9480 * configure.host (sparc64-*-freebsd): Add.
9481 * configure.tgt: Likewise.
9482 * config/sparc/fbsd.mh: New file.
9483 * config/sparc/fbsd.mt: Likewise.
9484 * config/sparc/nm-fbsd.h: Likewise.
9485 * config/sparc/tm-fbsd.h: Likewise.
9487 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9489 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9490 regformats/reg-s390x.dat.
9492 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9494 * utils.c: Add FIXME explaining true/false problem.
9496 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9498 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9500 2002-02-28 Michael Chastain <mec@shout.net>
9502 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9504 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9506 * gdbserver/linux-s390-low.c: New file.
9507 * regformats/reg-s390.dat: New file.
9508 * regformats/reg-s390x.dat: New file.
9509 * gdbserver/configure.srv: Add S/390.
9510 * gdbserver/Makefile.in: Add S/390.
9511 * configure.tgt: Enable gdbserver for S/390.
9513 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9515 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9516 first line of the doc string for "info dos", except at the end of
9517 the sentence, since the short help stops at the first period.
9519 2002-02-28 Jason Merrill <jason@redhat.com>
9521 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9523 2002-02-27 Fred Fish <fnf@redhat.com>
9525 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9526 comment (dumy -> dummy).
9528 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9530 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9532 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9534 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9536 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9538 * gdbserver/acconfig.h: New file.
9539 * gdbserver/i387-fp.c: New file.
9540 * gdbserver/i387-fp.h: New file.
9541 * gdbserver/linux-x86-64.c: New file.
9542 * regformats/reg-x86-64.dat: New file.
9543 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9544 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9545 * gdbserver/configure.in: Add support for regsets.
9546 * gdbserver/config.in: Regenerate.
9547 * gdbserver/configure: Regenerate.
9548 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9549 * gdbserver/linux-low.h: New file.
9550 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9552 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9553 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9554 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9555 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9556 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9557 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9558 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9559 "i387-fp.h". Add PTRACE_GETREGS and friends.
9560 * gdbserver/regcache.c (supply_register): New function.
9561 (supply_register_by_name): New function.
9562 (collect_register): New function.
9563 (collect_register_by_name): New function.
9565 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9567 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9568 (config.status): Add configure.srv dependency.
9569 (server_h): Add config.h dependency.
9571 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9573 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9574 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9575 * gdbserver/configure.srv: Change i386-*-linux* to use
9578 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9580 * x86-64-tdep.c: Re-indent. Update copyright date.
9582 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9584 From Michal Ludvig <mludvig@suse.cz>:
9585 * x86-64-tdep.c (value.h): Delete.
9586 (gdb_assert.h): Include.
9587 (x86_64_register_convert_to_virtual,
9588 x86_64_register_convert_to_raw ): Add check which lets only
9589 floating-point values to be converted.
9590 (value_push): Delete.
9591 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9592 (i386_gdbarch_init): Number of register_bytes fixed.
9594 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9596 * MAINTAINERS: Add x86-64 target.
9598 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9600 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9601 * osfsolib.c (solib_map_sections): Ditto.
9602 * irix5-nat.c (solib_map_sections): Ditto.
9603 * corelow.c (gdb_check_format): Ditto.
9604 * symfile.c (symfile_bfd_open): Ditto.
9605 * solib.c (solib_map_sections): Ditto.
9608 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9610 * remote.c (_initialize_remote): By default, disable ``e'' and
9611 ``E'' step out-of-range packets.
9613 2002-02-26 Andreas Schwab <schwab@suse.de>
9615 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9616 m68k_linux_frame_saved_pc.
9617 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9619 (SIGCONTEXT_PC_OFFSET): Remove.
9620 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9621 m68k_linux_sigtramp_saved_pc): New functions.
9622 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9623 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9624 (UCONTEXT_PC_OFFSET): Define.
9625 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9626 non-RT and RT signal trampolines.
9628 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9630 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9631 (TARGET_NBPG, STACK_END_ADDR): Delete
9632 (VARIABLES_INSIDE_BLOCK): Delete.
9634 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9636 * utils.c (perror_with_name): Make string parameter constant.
9637 (print_sys_errmsg): Ditto.
9639 * defs.h (perror_with_name): Update.
9640 (print_sys_errmsg): Update.
9643 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9645 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9646 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9648 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9650 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9651 if it already matches the current architecture from the exec file.
9652 Include arch-utils.h for gdbarch_info_init prototype.
9653 * Makefile.in (rs6000-nat.o): Update dependencies.
9655 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9657 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9658 list of exported variables.
9660 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9662 * gdbserver/configure.srv: New file.
9663 * gdbserver/configure.in: Use configure.srv instead
9664 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9666 * gdbserver/configure: Regenerated.
9667 * gdbserver/terminal.h: New file.
9668 * gdbserver/Makefile.in: Update for configure changes. Remove
9669 more unneeded include paths.
9671 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9673 From wiz at danbala:
9674 * config/sparc/tm-sp64.h: Fix grammar and typos.
9677 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9679 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9680 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9681 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9682 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9683 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9684 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9685 * s390-tdep.c: Ditto.
9686 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9687 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9688 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9689 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9690 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9691 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9692 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9693 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9694 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9695 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9698 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9700 * lin-thread.c: Delete file.
9701 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9702 to gdb_proc_service.h.
9703 * configure: Re-generate.
9705 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9706 * serial.c (serial_open): Delete check for "ocd".
9709 * Makefile.in (linux-thread.o): Delete target.
9710 * linux-thread.c: Delete file.
9712 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9713 renamed SH files to be consistent.
9715 * symtab.c (sort_search_symbols): Use xfree.
9717 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9719 * arm-linux-tdep.c (arm_linux_init_abi): Register
9720 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9721 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9722 definition with undef, since we don't want the sysvr4 definition.
9723 (SKIP_TRAMPOLINE_CODE): Likewise.
9725 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9727 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9729 * configure.in: (AC_CHECK_FUNCS) Added test for
9730 canonicalize_file_name Regenerated.
9731 * config.in, configure: Regenerated.
9732 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9733 defined use canonicalize_file_name.
9735 2002-02-23 Michael Chastain <mec@shout.net>
9737 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9739 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9741 * README: Remove references to cygnus.com.
9742 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9743 dot com'' form. Remove references to cygnus.com and sourceware.
9745 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9747 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9748 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9749 1003.1-2001 no longer allows "head -1".
9750 * gdb/Makefile.in (version.c): Likewise.
9751 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9752 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9753 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9755 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9757 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9758 * command.h (cmd_cfunc_eq): Declare.
9759 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9761 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9762 ``struct cmd_list_element *''.
9763 * cli/cli-cmds.c (is_complete_command): Update. Use
9765 * top.c (execute_command): Pass the command to
9766 is_complete_command.
9767 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9769 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9771 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9772 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9773 architecture defines.
9774 * s390-tdep.c (s390_gdbarch_init): Likewise.
9776 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9778 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9779 (arm_linux_push_arguments): Likewise.
9780 (arm_linux_init_abi): Register them. Also register linux-specific
9782 (find_minsym_and_objfile): Use strcmp, not STREQ.
9783 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9784 (arm_linux_call_dummy_words): Delete declaration.
9785 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9786 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9788 (LOWEST_PC): Delete.
9790 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9792 * maint.c (print_section_info): Do not prepend `0x' to filepos
9793 output, it will be handled by local_hex_string_custom.
9795 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9797 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9798 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9799 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9801 2002-02-22 Jim Blandy <jimb@redhat.com>
9803 Indicate that the bcache functions don't change the strings
9805 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9806 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9808 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9810 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9812 2002-02-21 Christopher Faylor <cgf@redhat.com>
9814 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9815 find the complete path to a loaded DLL.
9817 2002-02-21 Fred Fish <fnf@redhat.com>
9819 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9820 that marks the end of the range of a function, enter a line number
9821 entry that has a line number of zero and a PC offset that matches
9822 the end of the function. This starts a range of PC's for which no
9823 line number information is known.
9824 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9825 PC's for which no line number info is found (line number is zero)
9826 then we didn't find any valid line information.
9827 * symtab.h: Document use of zero line number entry.
9829 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9831 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9832 (have_ptrace_getvrregs): Define for run time checks.
9833 (gdb_vrregset_t): New type for Altivec register handling.
9834 (fetch_register, store_register): Fetch/store altivec register
9836 (fetch_altivec_register, store_altivec_register): New functions.
9837 (supply_vrregset, fill_vrregset): New functions.
9838 (fetch_altivec_registers, store_altivec_registers): New functions.
9839 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9842 2002-02-21 Jiri Smid <smid@suse.cz>
9844 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9846 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9848 * Makefile.in (armnbsd-nat.o): Update dependencies.
9849 * armnbsd-nat.c (supply_gregset): New function. Common code to
9850 supply the integer register set.
9851 (supply_fparegset): New function. Similar for FPA registers.
9852 (fetch_regs, fetch_fp_regs): Use them.
9853 (fetch_core_registers): Likewise.
9854 (fetch_elfcore_registers): New function.
9855 (arm_netbsd_elfcore_fns): New core-file type specification.
9856 (_initialize_arm_netbsd_nat): Register it.
9858 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9860 * armnbsd-nat.c: Include gdbcore.h.
9861 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9862 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9863 'void' to declaration, to shut up ARI.
9864 (fetch_core_registers): Make static. Rewrite using supply_register.
9865 (arm_netbsd_core_fns): New core-file type specification.
9866 (_initialize_arm_netbsd_nat): New function.
9868 2002-02-21 Christopher Faylor <cgf@redhat.com>
9870 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9873 2002-02-20 Christopher Faylor <cgf@redhat.com>
9875 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9878 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9880 * jv-exp.y (parse_number): Change type of implicit longs
9881 to builtin_type_uint64.
9883 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9885 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9886 to be an integer instead of a `union wait'.
9888 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9890 * mips-linux-nat.c: Call the operating system GNU/Linux.
9891 * mips-linux-tdep.c: Likewise.
9892 * mips-tdep.c: Likewise.
9894 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9897 * jv-exp.y (parse_number): Handle 64-bit integers.
9899 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9901 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9902 AC_STDC_HEADERS to AC_HEADER_STDC.
9903 * gdbserver/configure: Regenerated.
9905 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9907 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9909 * sparc-tdep.c (get_longjmp_target): Likewise.
9911 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9913 * News: Add news about ARM and Multi-arch. Mention the new target
9916 2002-02-19 Jim Blandy <jimb@redhat.com>
9918 * stabsread.c (error_type_complaint): Improve error message.
9920 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9922 * gdbserver/README: Update documentation.
9923 * gdbserver/configure.in: Update configury to match documentation.
9924 * gdbserver/Makefile.in: Likewise.
9925 * gdbserver/configure: Regenerated.
9926 * gdbserver/aclocal.m4: New file, generated by aclocal.
9927 * gdbserver/config.in: New file, generated by autoheader.
9929 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9931 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9934 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9936 * arm-tdep.h (enum arm_float_model): New enum.
9937 (struct gdbarch_tdep): Add fp_model.
9938 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9939 up floating-point conversions until we know the floating-point model
9940 in use by the inferior. Don't complain about being unable to
9941 determine the ABI of the inferior when we don't have one.
9942 (arm_extract_return_value): Support different floating-point models.
9943 (arm_store_return_value): Likewise.
9944 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9946 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9948 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9950 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9951 of ``current_gdbarch''.
9953 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9955 * armnbsd-nat.c : ANSIfy all function declarations.
9956 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9957 (fetch_inferior_registers): Re-implement in terms of above.
9958 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9959 (store_inferior_registers): Re-implement in terms of above.
9961 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9963 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9965 * arm-linux-tdep.c: Likewise.
9966 * config/arm/tm-linux.h: Likewise.
9968 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9970 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9971 * config/arm/nbsd.mt (TM_FILE): Delete.
9972 * config/arm/tm-nbsd.h: Delete.
9974 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9976 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9977 Initialize CALL_DUMMY_LENGTH.
9979 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9981 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9983 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9984 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9985 defines one thing and that is incorrect for this port.
9986 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9988 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9990 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9992 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9994 * win32-nat.c (display_selector): New function. Displays information
9995 about the information returned by GetThreadSelectorEntry API function.
9996 (display_selectors): New function. Displays the infomation of
9997 the selector given as argument, or of CS, DS ans FS selectors
9998 if no argument is given.
9999 ( _initialize_inftarg): Add "w32" as info prefix command.
10000 Add "info w32 selector" as command calling display_selectors.
10002 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10004 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10005 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10008 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10010 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10012 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10014 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10015 (arm_fix_call_dummy): Call it.
10016 (arm_call_dummy_breakpoint_offset): Delete.
10017 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10018 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10020 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10022 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10023 Default to func_frame_chain_valid.
10024 * gdbarch.h, gdbarch.c: Re-generate.
10025 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10027 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10029 * ppc-linux-nat.c: Update copyright.
10030 (fetch_register, store_register): Add tid parameter, don't compute
10032 (fetch_ppc_registers, store_ppc_registers): Add tid
10033 parameter. Pass it along to callees.
10034 (fetch_inferior_registers, store_inferior_registers): Compute tid
10035 here, and pass it to calleed functions.
10036 (fill_gregset, supply_fpregset): Clean up formatting.
10038 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10040 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10041 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10043 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10045 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10046 * gdbarch.c gdbarch.h: Regenerate.
10047 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10049 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10050 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10051 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10053 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10054 * arm-tdep.c (arm_get_longjmp_target): New function.
10055 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10056 this to a positive value register arm_get_longjmp_target as the
10058 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10059 (arm_linux_init_abi): Set up longjmp description in tdep.
10060 * armnbsd-nat.c (get_longjmp_target): Delete.
10061 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10062 description in tdep.
10063 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10064 (get_longjmp_target): Delete declaration.
10065 (GET_LONGJMP_TARGET): Delete.
10066 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10067 (GET_LONGJMP_TARGET): Delete.
10069 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10071 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10072 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10073 of ``current_gdbarch''.
10075 2002-02-17 Tom Tromey <tromey@redhat.com>
10077 * cli/cli-cmds.c (compare_strings): New function.
10078 (complete_command): Only print each unique item once.
10079 * completer.h (complete_line): Declare.
10080 * completer.c (complete_line): New function.
10081 (line_completion_function): Use it.
10083 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10085 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10086 * gdbarch.h, gdbarch.c: Re-generate.
10088 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10090 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10092 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10094 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10095 * valops.c (value_arg_coerce): Don't take the address of a reference
10096 to convert an argument to a reference.
10098 2002-02-15 Christopher Faylor <cgf@redhat.com>
10100 * win32-nat.c (get_image_name): New function.
10101 (handle_load_dll): Use get_image_name function.
10102 (get_child_debug_event): Avoid registering debug events until possibly
10103 execed process is started.
10104 (child_create_inferior): Allow invocation via shell so that command
10105 line redirection, etc. works ok.
10106 (_initialize_inftarg): Add new command: "set shell" to control whether
10107 a shell is used to start a process.
10109 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10111 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10112 instead of find_register_by_number.
10113 (cannot_store_register): Likewise.
10115 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10117 * dwarf2read.c: Replace fprintf (stderr, ...) by
10118 fprintf_unfiltered (gdb_stderr, ...).
10120 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10122 * gdbserver/gdbserver.1: Document --attach.
10124 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10126 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10128 * arm-tdep.c (arm_default_arm_le_breakpoint)
10129 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10130 (arm_default_thumb_be_breakpoint): New. Initialize them from
10131 traditional breakpoint defines.
10132 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10133 (arm_gdbarch_init): Initialize new breakpoint variables.
10134 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10135 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10136 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10137 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10139 (arm_netbsd_init_abi_common): ... here; new function.
10140 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10141 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10142 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10143 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10145 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10147 * arm-tdep.h (enum arm_abi): New enum.
10148 (struct gdbarch_tdep): New structure.
10149 (LOWEST_PC): Provide a default.
10150 (arm_gdbarch_register_os_abi): Declare new function.
10151 * arm-tdep.c (arm_abi_names): New array.
10152 (process_note_abi_tag_sections): New function.
10153 (get_elfosabi): New function.
10154 (arm_gdbarch_register_os_abi): New function.
10155 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10156 support for that ABI has been built in, then call the appropriate
10157 configuration routine. Use gdbarch_num_regs() to get the number
10159 (arm_dump_tdep): New function.
10160 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10161 place-holder functions.
10162 (_initialize_arm_tdep): Register them.
10163 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10165 * armnbsd-tdep.c: New file.
10166 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10167 * config/arm/nbsd.mt (TDEPFILES): Add it.
10168 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10170 * armnbsd-nat.c: Include regcache.h.
10171 * Makefile.in (armnbsd-nat.o): Update dependency list.
10173 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10175 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10177 * gdbserver/Makefile.in: Fix typos in target rules.
10179 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10181 Fix part of PR gdb/267.
10182 * linespec.c (find_methods): Handle constructors specially for now.
10184 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10186 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10188 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10189 standard_coerce_float_to_double().
10191 2002-02-14 Christopher Faylor <cgf@redhat.com>
10193 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10196 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10198 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10199 find_variant_by_name, because it confuses the multiarch
10200 framework. Return NULL if there isn't an architecture with the
10201 user supplied name, instead of forcing a different one without
10202 recording the change with the multiarch machinery.
10203 (find_variant_by_name): Delete.
10205 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10207 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10208 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10210 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10212 * stack.c (print_frame_info_base): When calling
10213 print_frame_info_listing_hook, set current_source_symtab.
10215 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10217 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10218 and remove unused $(INCLUDE_DIR).
10219 Add regcache.c to OBS.
10220 Add generated register protocol files to clean target.
10221 Update dependencies for new objects, obsolete old target code.
10223 * gdbserver/linux-low.c: Remove all platform-specific code to
10224 new files. Remove various dead code. Update to use regcache
10226 * gdbserver/remote-utils.c (fromhex): Add return statement
10228 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10230 (input_interrupt): Add integer parameter to match prototype
10231 of a signal handler.
10232 (outreg): Use register_data ().
10233 (prepare_resume_reply): Use gdbserver_expedite_regs.
10234 * gdbserver/server.c (main): Dynamically allocate own_buf because
10235 PBUFSIZ is no longer constant. Use registers_to_string () and
10236 registers_from_string ().
10237 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10238 for error (), fatal (), and warning (). Update definition of
10239 PBUFSIZ to use regcache functionality. Add include guard.
10240 * gdbserver/utils.c (fatal): Add missing ``const''.
10241 (warning): New function.
10243 * regformats/regdat.sh: Include "regcache.h" in generated files.
10244 Provide init_registers () function.
10245 * regformats/regdef.h: Add prototype for set_register_cache ().
10248 * gdbserver/linux-arm-low.c: New file.
10249 * gdbserver/linux-i386-low.c: New file.
10250 * gdbserver/linux-ia64-low.c: New file.
10251 * gdbserver/linux-m68k-low.c: New file.
10252 * gdbserver/linux-mips-low.c: New file.
10253 * gdbserver/linux-ppc-low.c: New file.
10254 * gdbserver/linux-sh-low.c: New file.
10256 * gdbserver/regcache.c: New file.
10257 * gdbserver/regcache.h: New file.
10259 * gdbserver/low-linux.c: Removed obsolete file.
10261 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10263 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10264 * config/i386/linux.mt: Likewise.
10265 * config/ia64/linux.mt: Likewise.
10266 * config/m68k/linux.mh: Likewise.
10267 * config/powerpc/linux.mh: Likewise.
10268 * config/mips/linux.mt: Likewise.
10270 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10272 * config/i386/i386lynx.mh: Mark gdbserver variables
10273 as (currently) obsolete for this target.
10274 * config/i386/nbsd.mt: Likewise.
10275 * config/i386/nbsdelf.mt: Likewise.
10276 * config/m32r/m32r.mt: Likewise.
10277 * config/m68k/m68klynx.mh: Likewise.
10278 * config/m68k/nbsd.mt: Likewise.
10279 * config/m68k/sun3os4.mh: Likewise.
10280 * config/mips/vr5000.mt: Likewise.
10281 * config/ns32k/nbsd.mt: Likewise.
10282 * config/pa/hppabsd.mh: Likewise.
10283 * config/pa/hppaosf.mh: Likewise.
10284 * config/powerpc/nbsd.mt: Likewise.
10285 * config/rs6000/rs6000lynx.mh: Likewise.
10286 * config/s390/s390.mt: Likewise.
10287 * config/s390/s390x.mt: Likewise.
10288 * config/sparc/sparclynx.mh: Likewise.
10289 * config/sparc/sun4os4.mh: Likewise.
10290 * config/i386/x86-64linux.mt: Likewise.
10291 * config/sparc/linux.mh: Likewise.
10293 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10295 * configure.tgt: Configure gdbserver only for known working
10296 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10297 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10298 SUBDIRS if it is configured. Update comment for ${nativefile}.
10299 * configure: Regenerated.
10301 2002-02-13 Michael Snyder <msnyder@redhat.com>
10303 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10305 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10306 (default_gcore_mach): Just return 0, work around a problem in bfd.
10307 (default_gcore_target): OK to return NULL if exec_bfd is null.
10308 (make_mem_sec): Use a cast, avoid a warning.
10310 * procfs.c (find_memory_regions_callback): Use a cast instead of
10311 calling host_pointer_to_address (which complains if
10312 sizeof (host pointer) != sizeof (target pointer)).
10313 (procfs_make_note_section): Avoid overflow in psargs string.
10315 * procfs.c (procfs_make_note_section): Make the default
10316 implementation return an error.
10318 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10320 * procfs.c (procfs_make_note_section): Provide a default definition
10321 (for alpha-dec-osf4.0f). Fix typos.
10323 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10325 * linux-proc.c: Add include of regcache.h.
10326 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10328 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10330 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10331 * memattr.c (create_mem_region): Disallow useless empty region.
10332 Regions are half-open intervals, so allow [A..B) [B..C) as
10335 2002-02-13 Michael Chastain <mec@shout.net>
10337 * defs.h: Kill CONST_PTR.
10338 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10339 * c-lang.c (c_builtin_types): Likewise.
10340 * ch-lang.c (ch_builtin_types): Likewise.
10341 * f-lang.c (f_builtin_types): Likewise.
10342 * language.c (unknown_builtin_types): Likewise.
10343 * m2-lang.c (m2_builtin_types): Likewise.
10344 * p-lang.c (pascal_builtin_types): Likewise.
10345 * scm-lang.c (c_builtin_types): Likewise.
10347 2002-02-13 Keith Seitz <keiths@redhat.com>
10349 * arm-tdep.h (arm_get_next_pc): Add declaration.
10351 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10353 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10354 with other related struct-returning functions.
10355 (arm_extract_struct_value_address): New function.
10356 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10357 initialize float_format, double_format and long_double_format as
10358 appropriate to the endianness of the target.
10359 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10360 (arm_use_struct_convention): Delete declaration.
10361 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10363 2002-02-13 Keith Seitz <keiths@redhat.com>
10365 * defs.h (core_addr_to_string_nz): New function.
10367 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10369 Apply missing bits of 2002-01-15 patch.
10370 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10371 (fill_fpregset): Use i387_fill_fsave.
10373 2002-02-12 Keith Seitz <keiths@redhat.com>
10375 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10376 (core_addr_to_string_nz): New function.
10378 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10380 * arm-linux-nat.c: Really include arm-tdep.h.
10381 * config/arm/tm-linux.h (struct type, struct value): Declare.
10383 2002-02-11 Michael Snyder <msnyder@redhat.com>
10385 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10386 (gcore section): Ifdef for Solaris and Unixware only.
10387 (procfs_do_thread_registers): Unixware needs one lwpstatus
10388 per thread (not one prstatus or pstatus).
10389 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10390 not over all gdb threads. For unixware, call elfcore_write_pstatus
10391 once before iterating over threads.
10393 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10395 * arm-tdep.h: New file.
10396 * arm-tdep.c: Include arm-tdep.h.
10397 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10398 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10399 (arm_print_float_info, arm_register_type, convert_to_extended)
10400 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10401 (arm_extract_return_value, arm_register_name): Make static.
10402 (arm_software_single_step): Similarly. Fix types in declaration.
10403 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10404 (arm_store_return_value, arm_store_struct_return): New functions.
10405 (arm_gdbarch_init): Register the above functions. Also register
10406 call_dummy_start_offset, sizeof_call_dummy_words,
10407 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10408 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10409 max_register_virtual_size, register_size. Set up
10410 prologue_cache.saved_regs here, rather than ...
10411 (_initialize_arm_tdep): ... here.
10412 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10414 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10415 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10416 (arm_print_float_info, arm_register_type, convert_to_extended)
10417 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10418 (arm_extract_return_value, arm_register_name): Delete declarations.
10419 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10420 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10421 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10422 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10423 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10424 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10425 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10426 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10427 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10428 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10429 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10430 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10432 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10433 * remote-rdi.c remote-rdp.c: Likewise.
10434 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10435 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10436 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10439 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10440 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10441 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10442 from non-ARM_ prefixed definitions.
10443 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10445 * remote-rdi.c remote-rdp.c: Likewise.
10446 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10448 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10450 * arm-tdep.c (arm_frameless_function_invocation)
10451 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10452 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10453 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10454 (arm_pop_frame, arm_get_next_pc): Make static.
10455 (arm_gdbarch_init): Register above in gdbarch structure.
10456 (arm_read_fp): Renamed from arm_target_read_fp.
10457 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10458 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10459 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10460 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10461 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10462 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10463 (arm_pc_is_thumb_dummy): Delete declarations.
10464 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10465 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10466 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10467 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10469 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10471 * symtab.c (compare_search_syms): New function.
10472 (sort_search_symbols): New function.
10473 (search_symbols): Sort symbols after searching rather than
10476 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10478 * NEWS: Linux -> GNU/Linux.
10480 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10482 * gdbarch.sh: For for level one methods, disallow a definition
10483 when partially multi-arched. Add comments explaining rationale.
10484 * gdbarch.h: Re-generate.
10486 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10488 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10489 multi-arch partial.
10491 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10493 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10494 field. Use diff -u.
10495 * gdbarch.c: Re-generate.
10497 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10499 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10500 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10503 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10505 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10506 multi-arch partial.
10507 (PUSH_ARGUMENTS): Switch to using predefault.
10508 * gdbarch.c: Regenerate.
10510 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10512 * valops.c (PUSH_ARGUMENTS): Delete definition.
10513 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10514 partial. Default to default_push_arguments.
10515 * gdbarch.h, gdbarch.c: Regenerate.
10517 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10519 * defs.h (throw_exception): Rename return_to_top_level. Update
10521 * utils.c (error_stream, internal_verror, quit): Ditto.
10522 * top.c (throw_exception, catcher): Ditto.
10523 * sparclet-rom.c (sparclet_load): Ditto.
10524 * remote.c (interrupt_query, minitelnet): Ditto.
10525 * remote-sds.c (interrupt_query): Ditto.
10526 * remote-mips.c (mips_error, mips_kill): Ditto.
10527 * ocd.c (interrupt_query): Ditto.
10528 * monitor.c (monitor_interrupt_query): Ditto.
10529 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10530 * target.h: Update comment.
10532 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10534 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10536 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10537 default_double_format.
10538 * gdbarch.h, gdbarch.c: Re-generate.
10539 * findvar.c (floatformat_unknown): Delete variable definition.
10540 * doublest.h (floatformat_unknown): Delete variable declaration.
10542 2002-02-09 Jim Blandy <jimb@redhat.com>
10544 * stabsread.c (read_type): Add code to parse Sun's syntax for
10545 prototyped function types.
10547 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10549 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10550 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10552 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10554 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10555 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10556 now _initialize_xcoffsolib gets called again and overrides the
10557 commands from solib.c in a native configuration.
10559 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10561 * doublest.c (store_typed_floating): Don't try to return a value.
10564 2002-02-08 Jim Blandy <jimb@redhat.com>
10566 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10567 is prototyped and has no arguments, print its argument list as
10570 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10572 * MAINTAINERS (write-after-approval): Add myself.
10573 (paper-trail): I've escaped!
10575 2002-02-08 Christopher Faylor <cgf@redhat.com>
10577 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10579 (_initialize_check_for_gdb_ini): Ditto.
10581 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10583 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10584 xaprintf -> xasprintf.
10586 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10588 * win32-nat.c: Remove use of printf and sprintf functions.
10590 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10592 * arm-tdep.c (arm_frame_chain_valid): Make static.
10593 (arm_push_arguments): Likewise.
10594 (arm_gdbarch_init): New function.
10595 (_initialize_arm_tdep): Call it.
10596 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10597 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10598 (FRAME_CHAIN_VALID): Delete.
10599 (arm_frame_chain_valid): Delete declaration.
10600 (PUSH_ARGUMENTS): Delete.
10601 (arm_push_arguments): Delete declaration.
10602 (CALL_DUMMY_P): Delete.
10604 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10605 Corinna Vinschen <vinschen@redhat.com>
10607 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10608 on builtin float types.
10610 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10612 * utils.c: Include <curses.h> before "bfd.h".
10613 * tui/tui-hooks.c: Likewise.
10614 * tui/tui.c: Likewise.
10615 * tui/tuiCommand.c: Likewise.
10616 * tui/tuiData.c: Likewise.
10617 * tui/tuiDataWin.c: Likewise.
10618 * tui/tuiDisassem.c: Likewise.
10619 * tui/tuiGeneralWin.c: Likewise.
10620 * tui/tuiIO.c: Likewise.
10621 * tui/tuiLayout.c: Likewise.
10622 * tui/tuiRegs.c: Likewise.
10623 * tui/tuiSource.c: Likewise.
10624 * tui/tuiSourceWin.c: Likewise.
10625 * tui/tuiStack.c: Likewise.
10626 * tui/tuiWin.c: Likewise.
10628 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10630 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10631 to include space for pseudoregs as well. Update loops accordingly.
10632 (sh_fp_frame_init_saved_regs): Ditto.
10633 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10635 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10637 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10638 Add Richard Earnshaw to Arm maintainers.
10640 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10642 * defs.h (warning_begin): Delete declaration.
10644 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10647 2002-02-07 Michael Snyder <msnyder@redhat.com>
10649 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10650 Logic bug, remove misplaced else.
10652 2002-02-07 Klee Dienes <klee@apple.com>
10654 * fork-inferior.c (fork_inferior): Add '!' to the list of
10655 characters that need to be quoted when building a string for the
10656 shell. Quote '!' specifically with a backslash, since CSH chokes
10657 when trying to evaluate "str!str".
10659 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10661 * rdi-share/host.h: Only provide a typedef for bool if it is not
10664 2002-02-04 Michael Snyder <msnyder@redhat.com>
10666 * breakpoint.h (enum bptype): Add new overlay event bp type.
10667 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10669 * breakpoint.c (create_internal_breakpoint): New function.
10670 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10671 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10672 (create_thread_event_breakpoint): Ditto.
10673 (create_solib_event_breakpoint): Ditto.
10674 (create_overlay_event_breakpoint): New function.
10675 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10676 (update_breakpoints_after_exec): Delete and re-initialize
10677 overlay event breakpoints after an exec. Add FIXME comment
10678 about longjmp breakpoint.
10679 (print_it_typical): Ignore overlay event breakpoints.
10680 (print_one_breakpoint): Ditto.
10682 (bpstat_what): Do not stop for overlay event breakpoints.
10683 (delete_breakpoint): Don't delete overlay event breakpoints.
10684 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10685 (breakpoint_re_set): Re-create overlay event breakpoint.
10687 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10688 (overlay_manual_command): Disable overlay breakpoints.
10689 (overlay_off_command): Disable overlay breakpoints.
10691 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10693 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10694 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10695 to here from config/tm-arm.h.
10696 (coff_sym_is_thumb): Make static.
10697 (arm_elf_make_msymbol_special): New function.
10698 (arm_coff_make_msymbol_special): New function.
10699 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10700 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10701 (coff_sym_is_thumb): Delete declaration.
10702 (arm_elf_make_msymbol_special): Declare.
10703 (arm_coff_make_msymbol_special): Declare.
10704 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10705 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10707 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10709 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10711 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10713 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10714 * gdbarch.c gdbarch.h: Regenerate.
10715 * arch-utils.c (default_print_float_info): New function.
10716 * arch-utils.h (default_print_float_info): Prototype it.
10717 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10718 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10719 (PRINT_FLOAT_INFO): Document it.
10721 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10722 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10723 (PRINT_FLOAT_INFO): Define.
10725 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10727 * win32-nat.c (_initialize_check_for_gdb_ini):
10728 Add typecast to sprintf argument to suppress a warning.
10730 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10732 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10733 to allow easier handling of pass state.
10734 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10735 that gives exception name and address.
10736 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10737 and set last_sig value to ourstatus->value.sig. Some missing
10739 (child_continue): Correctly report continue_status.
10740 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10741 TARGET_SIGNAL_0 (new default value).
10742 (child_resume): consider sig argument passed to decide if
10743 the exception should be passed to debuggee or not.
10745 2002-02-05 Michael Snyder <msnyder@redhat.com>
10747 * regcache.c (fetch_register): Call target_fetch_register
10748 only if we don't call FETCH_PSEUDO_REGISTER.
10749 (store_register): Call target_store_register only if we
10750 don't call STORE_PSEUDO_REGISTER.
10752 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10754 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10755 ELF_MAKE_MSYMBOL_SPECIAL.
10756 * gdbarch.c, gdbarch.h: Regenerate.
10757 * arch-utils.c (default_make_msymbol_special): New function.
10758 * arch-utils.h (default_make_msymbol_special): Export.
10759 * elfread.c (elf_symtab_read): Compile use of
10760 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10762 * coffread.c (coff_symtab_read): Ditto, for
10763 COFF_MAKE_MSYMBOL_SPECIAL.
10765 2002-02-05 Jim Blandy <jimb@redhat.com>
10767 * solib-svr4.c (svr4_truncate_ptr): New function.
10768 (svr4_relocate_section_addresses): Do the address arithmetic with
10769 the appropriate truncation for target addresses, even when
10770 CORE_ADDR is larger than a target address.
10772 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10774 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10777 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10779 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10782 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10784 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10786 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10788 * gdbserver/linux-low.c: Remove unused include files.
10790 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10792 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10793 (read_inferior_memory): Use it.
10794 (write_inferior_memory): Likewise.
10796 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10798 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10799 grubbing through sys_errlist.
10801 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10803 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10805 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10806 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10808 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10810 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10811 (do_sfunc, set_cmd_sfunc): New functions.
10813 * command.h (struct cmd_list_element): Add field func.
10814 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10815 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10816 * cli/cli-decode.h: Ditto.
10818 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10819 (help_all, help_cmd_list): Ditto.
10820 (find_cmd, complete_on_cmdlist): Ditto.
10821 * top.c (execute_command): Ditto.
10823 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10826 * infcmd.c (notice_args_read): Fix function signature.
10828 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10829 * cli/cli-decode.c (add_set_cmd): Ditto.
10830 * utils.c (initialize_utils): Ditto.
10831 * maint.c (_initialize_maint_cmds): Ditto.
10832 * infrun.c (_initialize_infrun): Ditto.
10833 * demangle.c (_initialize_demangler): Ditto.
10834 * remote.c (add_packet_config_cmd): Ditto.
10835 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10836 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10837 * proc-api.c (_initialize_proc_api): Ditto.
10838 * kod.c (_initialize_kod): Ditto.
10839 * valprint.c (_initialize_valprint): Ditto.
10840 * top.c (init_main): Ditto.
10841 * infcmd.c (_initialize_infcmd): Ditto.
10842 * corefile.c (_initialize_core): Ditto.
10843 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10844 * arch-utils.c (initialize_current_architecture): Ditto.
10845 (_initialize_gdbarch_utils): Ditto.
10846 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10848 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10849 * wince.c (_initialize_inftarg): Ditto.
10850 * symfile.c (_initialize_symfile): Ditto.
10851 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10852 * language.c (_initialize_language): Ditto.
10853 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10855 2002-02-04 Michael Snyder <msnyder@redhat.com>
10857 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10859 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10861 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10862 Add rules for building the register data files.
10864 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10866 * regformats/regdat.sh: Add braces to the definition of
10867 expedite_regs_${arch}.
10869 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10871 * regformats/regdef.h (struct reg): Add comment describing the
10872 requirements for offset and size fields.
10874 2002-02-04 Andreas Schwab <schwab@suse.de>
10876 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10877 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10879 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10881 * gdbarch.sh (copyright): Update years in generated header.
10882 (SMASH_TEXT_ADDRESS): Add rule.
10883 * gdbarch.h, gdbarch.c: Re-generate.
10884 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10885 * dbxread.c: Likewise.
10886 * dwarfread.c: Likewise.
10887 * elfread.c: Likewise.
10888 * somread.c: Likewise.
10890 * arm-tdep.c (arm_smash_text_address): New function.
10891 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10893 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10895 Add support for hardware watchpoints on win32 native.
10896 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10897 CONTEXT_DEBUG_REGISTERS.
10898 (dr variable): New variable. Static array containing a local copy
10899 of debug registers.
10900 (debug_registers_changed): New variable. Reflects when debug registers
10901 are changed and need to be written to inferior.
10902 (debug_registers_used): New variable. Reflects when any debug register
10903 was set, used when new threads are created.
10904 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10906 (thread_rec): Set dr array if id is the thread of current_event .
10907 (child_continue, child_resume): Change the debug registers for all
10908 threads if debug_registers_changed.
10909 (child_add_thread): Change the debug registers if debug_registers_used.
10910 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10911 Link nm.h to new nm-cygwin.h file.
10912 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10913 of hardware registers.
10915 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10917 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10918 Restore behavour broken by 2002-01-20 Andrew Cagney
10919 <ac131313@redhat.com> IEEE_FLOAT removal.
10921 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10923 * c-valprint.c (c_val_print): Pass a proper valaddr to
10924 cp_print_class_method.
10925 * valops.c (search_struct_method): If there is only one method
10926 and args is NULL, return that method.
10928 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10930 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10931 accessing tag_name directly.
10933 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10935 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10936 of accessing tag_name directly.
10938 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10941 * gdbtypes.c (replace_type): New function.
10942 * gdbtypes.h (replace_type): Add prototype.
10943 * stabsread.c (read_type): Use replace_type.
10945 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10947 * Makefile.in (memattr.o): Add missing dependencies rule.
10949 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10951 * breakpoint.c (break_at_finish_command): Really export.
10952 (break_at_finish_at_depth_command): Ditto.
10953 (tbreak_at_finish_command): Ditto.
10954 * hppa-tdep.c: Include completer.h.
10955 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10956 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10958 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10960 * utils.c (do_write): New function.
10961 (error_stream): Rewrite combining the code from error_begin and
10963 (verror): Rewrite using error_stream.
10964 (error_begin): Delete function.
10966 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10968 * utils.c (error_begin): Make static.
10969 * defs.h (error_begin): Delete declaration.
10971 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10972 (decode_line_1): Use cplusplus_error instead of error_begin,
10973 cplusplus_hint and return_to_top_level.
10974 * coffread.c (coff_symfile_read): Use error instead of error_begin
10975 and return_to_top_level.
10976 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10978 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10980 * language.h (type_error, range_error): Make string parameter
10982 * language.c (warning_pre_print): Delete extern declaration.
10983 * dwarfread.c (warning_pre_print): Ditto.
10984 * language.c (type_error, range_error): Rewrite to use verror and
10985 vwarning instead of warning_begin.
10987 2002-02-01 Michael Snyder <msnyder@redhat.com>
10989 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10990 (set_ignore_count): Move misplaced comment back where it belongs.
10992 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10994 * command.h (NO_FUNCTION): Delete macro.
10995 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10996 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10997 * tracepoint.c (_initialize_tracepoint): Ditto.
10998 * cli/cli-decode.c (add_set_cmd): Ditto.
10999 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11001 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11003 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11004 Update ``this'' pointer when calling virtual functions.
11006 2002-02-01 Michael Snyder <msnyder@redhat.com>
11008 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11009 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11011 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11013 * regformats/reg-arm.dat: New file.
11014 * regformats/reg-i386.dat: New file.
11015 * regformats/reg-ia64.dat: New file.
11016 * regformats/reg-m68k.dat: New file.
11017 * regformats/reg-mips.dat: New file.
11018 * regformats/reg-ppc.dat: New file.
11019 * regformats/reg-sh.dat: New file.
11020 * regformats/regdef.h: New file.
11021 * regformats/regdat.sh: New file.
11023 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11025 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11026 (arm_frame_args_address, arm_frame_locals_address): New functions.
11027 (arm_frame_num_args): New function.
11028 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11029 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11030 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11032 2002-01-31 Michael Snyder <msnyder@redhat.com>
11034 * breakpoint.c (break_at_finish_command): Export.
11035 (break_at_finish_at_depth_command): Export.
11036 (tbreak_at_finish_command): Export.
11037 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11038 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11039 "txbreak" commands, which are HPPA specific.
11041 * printcmd.c (disassemble_command): Remove an ancient
11042 artifact of an old merge.
11044 * symfile.h (enum overlay_debugging_state):
11045 Define enum constant values for overlay mode.
11046 * symfile.c (overlay_debugging): Use enums instead of literals.
11047 (overlay_is_mapped, overlay_auto_command,
11048 overlay_manual_command): Ditto.
11050 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11051 breakpoint_here_p, breakpoint_inserted_here_p,
11052 breakpoint_thread_match, bpstat_stop_status,
11053 describe_other_breakpoints, check_duplicates, clear_command):
11054 Coding standard fixes.
11056 * target.c (target_xfer_memory): Add spaces, coding standard.
11057 (do_xfer_memory): Add missing line to trust-readonly
11058 code: check bfd SEC_READONLY flag for section.
11060 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11062 * PROBLEMS: Fix typo, 5.1->5.1.1.
11064 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11066 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11067 data symbols, since we search based on textlow and texthigh.
11068 (find_pc_sect_symtab): Likewise.
11070 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11072 * defs.h (vwarning): Declare.
11073 * utils.c (vwarning): New function.
11074 (warning): Call vwarning.
11075 (warning_begin): Delete function.
11077 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11078 the warning message.
11079 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11082 2002-01-30 Michael Snyder <msnyder@redhat.com>
11084 * NEWS: Mention "set trust-readonly-sections" command.
11085 Mention generate-core-file command.
11087 2002-01-15 Michael Snyder <msnyder@redhat.com>
11089 * target.c: New command, "set trust-readonly-sections on".
11090 (do_xfer_memory): Honor the suggestion to trust readonly sections
11091 by reading them from the object file instead of from the target.
11092 (initialize_targets): Register command "set trust-readonly-sections".
11094 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11096 * parse.c (target_map_name_to_register): Simplify, search regs and
11097 pseudo-regs using a single loop.
11099 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11101 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11103 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11105 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11106 * config/i386/i386v42mp.mh: Add i387-nat.o .
11107 * i386v4-nat.c: Include i387-nat.h.
11108 (supply_fpregset): Use i387_supply_fsave.
11109 (fill_fpregset): Use i387_fill_fsave.
11111 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11113 * arm-tdep.c (arm_call_dummy_words): Define.
11114 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11115 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11116 (CALL_DUMMY_WORDS): Define.
11117 (arm_call_dummy_words): Declare.
11118 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11119 (arm_linux_call_dummy_words): Declare.
11121 2002-01-30 Andreas Schwab <schwab@suse.de>
11123 * m68klinux-nat.c: Fix last change to use regcache_collect
11124 instead of referencing registers[] directly.
11126 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11128 * parse.c (target_map_name_to_register): Delete code wrapped in
11129 #ifdef REGISTER_NAME_ALIAS_HOOK.
11131 2002-01-28 Michael Snyder <msnyder@redhat.com>
11133 * regcache.c (legacy_read_register_gen): Need to be able to
11134 read pseudo-register as well as real register.
11135 (legacy_write_register_gen): Ditto.
11137 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11139 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11140 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11141 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11142 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11143 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11144 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11145 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11146 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11147 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11148 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11149 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11150 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11151 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11152 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11153 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11154 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11155 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11156 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11157 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11158 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11160 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11162 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11163 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11164 (initialize_current_architecture): Update target_byte_order using
11165 information from BFD.
11166 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11167 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11169 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11171 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11172 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11174 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11175 #ifdef INVALID_FLOAT.
11176 * infcmd.c (do_registers_info): Ditto.
11177 * values.c (unpack_double): Ditto. Add comment.
11179 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11180 already commented out.
11182 2002-01-26 Andreas Schwab <schwab@suse.de>
11184 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11185 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11186 registers and add support for PTRACE_GETREGS.
11188 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11190 GDB 5.1.1 released from 5.1 branch.
11191 * NEWS: Add 5.1.1 news.
11192 * README: Sync with 5.1 branch.
11194 2002-01-23 Fred Fish <fnf@redhat.com>
11196 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11197 stabstring on initial malloc. Reallocing will copy it for us,
11200 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11202 * Makefile.in (hpread_h): Delete.
11203 (HFILES_NO_SRCDIR): Remove hpread.h.
11204 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11205 (hpread.o): Update dependencies.
11206 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11208 * hp-psymtab-read.c: Remove file.
11209 * hp-symtab-read.c: Remove file.
11210 * hpread.h: Remove file.
11212 * hpread.c: Merge all contents of hp-psymtab-read.c,
11213 hp-symtab-read.c and hpread.h into this file, as it was prior to
11216 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11217 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11218 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11219 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11221 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11223 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11224 fill_gregset): Call gdbarch_tdep() just once, assign result to
11225 variable and use that, instead of calling the function several
11228 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11230 * configure.host: Accept sparcv9 as alias for sparc64.
11231 * configure.tgt: Likewise.
11233 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11235 * solib-aix5.c (build_so_list_from_mapfile)
11236 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11237 arguments is not reversed.
11238 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11239 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11241 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11243 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11244 modified version of obsolete sh_fetch_pseudo_register.
11245 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11246 (sh4_register_read): New function.
11247 (sh_pseudo_register_write): New function. Renamed and modified
11248 version of obsolete sh_store_pseudo_register.
11249 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11250 (sh4_register_write): New function.
11251 (sh_gdbarch_init): Remove setting of gdbarch function
11252 fetch_pseudo_register and store_pseudo_register. Remove setting of
11253 register_convert_to_raw, register_convert_to_virtual,
11254 register_convertible.
11255 (sh_sh4_register_convertible): Delete. No longer needed. All is
11256 taken care by architecture specific functions
11257 register_read/register_write.
11258 (sh_sh4_register_convert_to_virtual): Make static.
11259 (sh_sh4_register_convert_to_raw): Ditto.
11261 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11263 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11264 (floatformat_is_nan, floatformat_mantissa): Ditto.
11266 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11267 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11268 builtin_type_ieee_double_little,
11269 builtin_type_ieee_double_littlebyte_bigword,
11270 builtin_type_m68881_ext, builtin_type_i960_ext,
11271 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11272 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11273 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11274 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11276 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11278 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11279 parameter. Set frameless flag if it exists and depended of
11280 whether the scanned function is frameless or not.
11281 (xstormy16_skip_prologue): If function is frameless, return
11282 result of xstormy16_scan_prologue().
11283 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11286 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11288 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11289 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11290 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11291 sh_sh4_register_byte, sh_sh4_register_raw_size,
11292 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11293 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11294 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11295 sh_store_pseudo_register, sh_do_pseudo_register): Call
11296 gdbarch_tdep() just once, assign result to variable and use that,
11297 instead of calling the function several times.
11299 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11301 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11302 macros instead of LAST_FPU_CTRL_REGNUM.
11303 (store_register): Likewise.
11305 2002-01-21 Jim Blandy <jimb@redhat.com>
11307 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11308 is up-to-date before running the program, not just when a program
11311 2002-01-21 Fred Fish <fnf@redhat.com>
11313 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11314 when we have found all instructions we are looking for.
11316 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11318 * arm-tdep.c (arm_register_name): New function.
11319 (arm_registers_names): Make static.
11320 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11321 (arm_register_name): Declare.
11322 (REGISTER_NAME): Use it.
11324 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11325 Kevin Buettner <kevinb@redhat.com>
11327 Convert arm targets to new FRAME interface.
11328 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11329 (arm_frame_find_save_regs): Delete.
11330 (arm_frame_init_saved_regs): New.
11331 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11332 Allocate extra_info as required. Convert all uses of fsr.regs
11333 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11335 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11336 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11337 (check_prologue_cache, save_prologue_cache): Likewise.
11338 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11339 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11340 (FRAME_FIND_SAVED_REGS): Delete.
11341 (arm_frame_find_saved_regs): Delete prototype.
11342 (arm_frame_init_saved_regs): New prototype.
11343 (FRAME_INIT_SAVED_REGS): Define.
11345 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11347 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11349 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11351 From Jeff Law <law@redhat.com>:
11352 * infttrace.c: Include <sys/pstat.h>.
11353 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11354 exec file if the ttrace equivalent fails.
11356 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11358 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11359 (closeLogFile): Ditto.
11361 2002-01-20 Michael Chastain <mec@shout.net>
11363 * top.c (print_gdb_version): Bump copyright year to 2002.
11365 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11367 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11368 Zannoni and Eli Zaretskii.
11370 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11372 * buildsym.c: Update copyright years.
11373 * c-typeprint.c: Likewise.
11374 * dwarf2read.c: Likewise.
11375 * f-typeprint.c: Likewise.
11376 * gdbtypes.c: Likewise.
11377 * gdbtypes.h: Likewise.
11378 * hp-symtab-read.c: Likewise.
11379 * hpread.c: Likewise.
11380 * mdebugread.c: Likewise.
11381 * p-typeprint.c: Likewise.
11383 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11385 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11386 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11387 byte-order selectable.
11388 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11389 * arch-utils.c: Ditto.
11390 (set_endian): Ditto.
11391 (set_endian_from_file): Ditto.
11392 * gdbserver/low-sim.c (create_inferior): Ditto.
11393 * gdbarch.sh: Ditto.
11394 * gdbarch.h: Re-generate.
11395 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11396 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11397 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11398 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11399 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11400 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11401 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11402 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11404 * config/mips/tm-wince.h: Remove #undef of macro
11405 TARGET_BYTE_ORDER_SELECTABLE.
11406 * config/sh/tm-wince.h: Ditto.
11408 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11410 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11411 member function fields. Add accessor macro
11412 TYPE_FN_FIELD_ARTIFICIAL.
11413 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11414 * c-typeprint.c (c_type_print_base): Skip artificial member
11417 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11419 * f-typeprint.c: Delete unused function f_type_print_args.
11420 * p-typeprint.c: Delete unused function pascal_type_print_args.
11422 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11424 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11425 comment. Add ``artificial'' to ``union field_location''.
11427 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11429 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11430 * mdebugread.c (parse_symbol): Likewise.
11431 * stabsread.c (define_symbol): Likewise.
11432 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11433 initializing TYPE_FIELD_BITPOS to n (obsolete).
11434 (hpread_doc_function_type): Likewise.
11435 * hpread.c (hpread_function_type): Likewise.
11437 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11439 * configure.in (host_makefile_frag): Only require a host makefile
11440 fragment when a native build.
11441 * configure: Re-generate.
11443 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11445 * doublest.h (floatformat_from_type): Declare.
11446 * doublest.c (floatformat_from_type): New function.
11447 (convert_typed_floating): Use.
11449 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11450 call to function floatformat_from_type.
11452 * gdbarch.sh (IEEE_FLOAT): Delete.
11453 * gdbarch.h, gdbarch.c: Re-generate.
11454 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11455 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11456 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11457 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11458 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11459 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11460 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11461 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11462 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11463 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11464 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11465 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11467 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11468 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11469 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11470 * sh-tdep.c (sh_gdbarch_init): Ditto.
11471 * mips-tdep.c (mips_gdbarch_init): Ditto.
11472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11473 * cris-tdep.c (cris_gdbarch_init): Ditto.
11475 2002-01-20 Jiri Smid <smid@suse.cz>
11477 * configure.host, configure.tgt: Support x86-64.
11478 * NEWS: Note new target x86-64.
11480 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11481 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11482 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11483 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11484 x86-64-linux-nat.o): Fix dependencies.
11486 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11488 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11489 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11490 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11491 * config/sparc/xm-sun4os4.h: Delete file.
11492 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11494 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11496 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11497 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11498 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11499 * config/i386/i386lynx.mh (XM_FILE): Delete.
11500 * config/rs6000/xm-rs6000ly.h: Delete file.
11501 * config/sparc/xm-sparclynx.h: Delete file.
11502 * config/m68k/xm-m68klynx.h: Delete file.
11503 * config/i386/xm-i386lynx.h: Delete file.
11504 * config/xm-lynx.h: Delete file.
11505 * config/djgpp/fnchange.lst: Update.
11507 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11509 * alpha-tdep.c (alpha_register_byte): New function.
11510 (alpha_register_raw_size): Ditto.
11511 (alpha_register_virtual_size): Ditto.
11512 (alpha_skip_prologue_internal): Renamed from
11513 alpha_skip_prologue.
11514 (alpha_skip_prologue): New version that calls
11515 alpha_skip_prologue_internal.
11516 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11517 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11518 second argument from alpha_skip_prologue.
11519 (REGISTER_BYTE): Use alpha_register_byte.
11520 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11521 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11522 (FRAMELESS_FUNCTION_INVOCATION): Use
11523 generic_frameless_function_invocation_not.
11524 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11525 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11527 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11529 * config/mips/xm-news-mips.h: Delete file.
11530 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11532 * config/m88k/xm-m88k.h: Delete file.
11533 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11534 * config/m88k/xm-delta88v4.h: Ditto.
11535 * config/m88k/xm-delta88.h: Ditto.
11537 * config/alpha/xm-fbsd.h: Delete file.
11538 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11540 * config/sparc/xm-sparc.h: Delete file.
11541 * Makefile.in (xm-sun4os4.h): Delete dependency.
11542 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11543 * config/sparc/xm-sun4os4.h: Ditto.
11544 * config/sparc/xm-linux.h: Ditto.
11546 * config/i386/xm-windows.h: Delete file.
11548 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11550 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11551 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11553 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11555 * alpha-tdep.c (alpha_call_dummy_words): New.
11556 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11557 (CALL_DUMMY_P): Define.
11558 (CALL_DUMMY_WORDS): Define.
11559 (SIZEOF_CALL_DUMMY_WORDS): Define.
11561 2002-01-19 Per Bothner <per@bothner.com>
11563 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11564 isn't NULL, which can happen with some gcj-3.x-produced code.
11566 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11568 * alpha-tdep.c (alpha_register_virtual_type): New function.
11569 (alpha_init_frame_pc_first): Ditto.
11570 (alpha_fix_call_dummy): Ditto.
11571 (alpha_store_struct_return): Ditto.
11572 (alpha_extract_struct_value_address): Ditto.
11573 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11574 alpha_register_virtual_type.
11575 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11576 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11577 alpha_extract_struct_value_address.
11578 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11579 (INIT_FRAME_PC): Use init_frame_pc_noop.
11580 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11582 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11584 * i386gnu-nat.c: Include "i386-tdep.h".
11585 (fetch_fpregs): Simplify code dealing with uninitialized floating
11586 point states such that it doesn't require FP7_REGNUM.
11588 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11590 * alpha-tdep.c (frame_extra_info): New.
11591 (alpha_find_saved_regs): Make static. Use
11593 (alpha_frame_init_saved_regs): New function.
11594 (alpha_frame_saved_pc): Use frame->extra_info.
11595 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11596 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11597 (init_extra_frame_info): Rename to...
11598 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11599 (alpha_print_extra_frame_info): New function.
11600 (alpha_frame_locals_address): Ditto.
11601 (alpha_frame_args_address): Ditto.
11602 (alpha_pop_frame): Use frame->extra_info.
11603 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11604 alpha_frame_args_address.
11605 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11606 (alpha_find_saved_regs): Remove prototype.
11607 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11608 (EXTRA_FRAME_INFO): Remove.
11609 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11610 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11612 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11614 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11615 (alpha_cannot_fetch_register): Ditto.
11616 (alpha_cannot_store_register): Ditto.
11617 (alpha_register_convertible): Ditto.
11618 (alpha_use_struct_convention): Ditto.
11619 * config/alpha/tm-alpha.h: Update copyright years.
11620 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11621 (INNER_THAN): Use core_addr_lessthan.
11622 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11623 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11624 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11625 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11626 (FRAME_CHAIN): Remove unnecessary cast.
11628 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11630 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11633 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11635 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11636 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11637 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11638 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11639 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11640 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11641 * x86-64-linux-nat.c: Ditto.
11643 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11645 * alpha-tdep.c (alpha_register_name): New function.
11646 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11647 (REGISTER_NAME): Define.
11649 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11651 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11653 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11655 * alpha-tdep.c: Update copyright years.
11656 (alpha_next_pc): New function.
11657 (alpha_software_single_step): Ditto.
11658 * config/alpha/tm-alpha.h: Add prototype for
11659 alpha_software_single_step.
11661 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11663 * alphabsd-nat.c: Update copyright years.
11664 (fill_gregset): Use regcache_collect.
11665 (fill_fpregset): Likewise.
11666 (fetch_inferior_registers): Only fetch integer registers
11667 if requested to do so.
11668 (store_inferior_registers): Only store integer registers
11669 if requested to do so.
11671 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11673 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11674 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11675 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11676 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11677 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11678 * config/arm/linux.mh (XDEPFILES): Delete.
11679 * config/arm/nbsd.mh (XDEPFILES): Delete.
11680 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11681 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11682 * config/i386/i386m3.mh (XDEPFILES): Delete.
11683 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11684 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11685 * config/i386/fbsd.mh (XDEPFILES): Delete.
11686 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11687 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11688 * config/i386/i386v4.mh (XDEPFILES): Delete.
11689 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11690 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11691 * config/i386/i386aix.mh (XDEPFILES): Delete.
11692 * config/i386/go32.mh (XDEPFILES): Delete.
11693 * config/i386/cygwin.mh (XDEPFILES): Delete.
11694 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11695 * config/i386/i386mach.mh (XDEPFILES): Delete.
11696 * config/i386/i386v32.mh (XDEPFILES): Delete.
11697 * config/i386/linux.mh (XDEPFILES): Delete.
11698 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11699 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11700 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11701 * config/i386/i386sco.mh (XDEPFILES): Delete.
11702 * config/i386/i386v.mh (XDEPFILES): Delete.
11703 * config/i386/nbsd.mh (XDEPFILES): Delete.
11704 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11705 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11706 * config/i386/symmetry.mh (XDEPFILES): Delete.
11707 * config/i386/obsd.mh (XDEPFILES): Delete.
11708 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11709 * config/ia64/linux.mh (XDEPFILES): Delete.
11710 * config/ia64/aix.mh (XDEPFILES): Delete.
11711 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11712 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11713 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11714 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11715 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11716 * config/m68k/linux.mh (XDEPFILES): Delete.
11717 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11718 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11719 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11720 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11721 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11722 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11723 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11724 * config/m88k/delta88.mh (XDEPFILES): Delete.
11725 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11726 * config/m88k/m88k.mh (XDEPFILES): Delete.
11727 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11728 * config/mips/linux.mh (XDEPFILES): Delete.
11729 * config/mips/irix6.mh (XDEPFILES): Delete.
11730 * config/mips/irix5.mh (XDEPFILES): Delete.
11731 * config/mips/irix4.mh (XDEPFILES): Delete.
11732 * config/mips/irix3.mh (XDEPFILES): Delete.
11733 * config/mips/decstation.mh (XDEPFILES): Delete.
11734 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11735 (NATDEPFILES): Move core-aout.o to here.
11736 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11737 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11738 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11739 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11740 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11741 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11742 * config/pa/hpux11.mh (XDEPFILES): Delete.
11743 * config/powerpc/aix.mh (XDEPFILES): Delete.
11744 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11745 * config/powerpc/linux.mh (XDEPFILES): Delete.
11746 * config/romp/rtbsd.mh: Rename XDEPFILES.
11747 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11748 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11749 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11750 * config/s390/s390.mh (XDEPFILES): Delete.
11751 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11752 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11753 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11754 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11755 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11756 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11757 * config/sparc/linux.mh (XDEPFILES): Delete.
11758 * config/vax/vaxult.mh (XDEPFILES): Delete.
11759 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11760 * Makefile.in (DEPFILES): Remove XDEPFILES.
11762 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11764 * utils.c (internal_verror): Fix comments, default is yes not no.
11765 Update queries to match. Default to quit and dump core.
11767 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11769 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11771 * defs.h, event-top.c, gdbcmd.h: Ditto.
11772 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11773 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11774 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11775 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11776 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11777 * mi/mi-main.c:Ditto.
11779 * stack.c, symfile.c: Update copyright.
11781 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11783 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11784 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11785 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11786 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11788 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11790 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11791 * gdbserver/low-lynx.c (myattach): Likewise.
11792 * gdbserver/low-nbsd.c (myattach): Likewise.
11793 * gdbserver/low-sim.c (myattach): Likewise.
11794 * gdbserver/low-sparc.c (myattach): Likewise.
11795 * gdbserver/low-sun3.c (myattach): Likewise.
11797 * gdbserver/low-linux.c (myattach): New function.
11799 * gdbserver/server.c (attach_inferior): New function.
11800 (main): Handle "--attach".
11802 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11804 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11807 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11809 * c-typeprint.c (is_type_conversion_operator): Add additional
11810 check for non-conversion operators.
11812 2002-01-15 Michael Snyder <msnyder@redhat.com>
11814 * linux-proc.c: Add "info proc" command, a la procfs.c.
11815 (read_mapping): New function, abstract and re-use code.
11816 (linux_find_memory_regions): Use new func read_mapping.
11817 (linux_info_proc_cmd): New function, implement "info proc".
11818 (_initialize_linux_proc): Add new command "info proc".
11820 2002-01-15 Michael Snyder <msnyder@redhat.com>
11822 * symfile.c (generic_load): Use bfd_map_over_sections method
11823 instead of manipulating bfd structure members directly.
11824 (add_section_size_callback): New function, bfd sections callback
11825 used by generic_load.
11826 (load_sections_callback): New function, bfd sections callback
11827 used by generic_load.
11829 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11831 [Based on work by Jim Blandy]
11832 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11833 (builtin_type_vec128): Export.
11834 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11836 (builtin_type_vec128): New builtin type for 128 bit vector
11838 (build_gdbtypes): Initialize builtin_type_v16qi and
11839 builtin_type_v8hi. Create the vec128 register builtin type
11841 (build_builtin_type_vec128): New function.
11842 (_initialize_gdbtypes): Register builtin_type_v16qi and
11843 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11844 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11845 AltiVec register to new builtin type.
11847 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11849 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11852 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11854 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11855 CLEAN_UP_REGISTER_VALUE.
11856 * regcache.c (supply_register): Update only call.
11858 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11860 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11861 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11862 a29k-*-vxworks* targets as obsolete.
11864 2002-01-14 Michael Snyder <msnyder@redhat.com>
11866 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11867 until we can resolve portability issues.
11868 * gregset.h: Remove references to fpxregs.
11869 * gcore.c (gcore_command): Initialize note_sec to NULL.
11871 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11873 * signals.c (target_signal_to_name): Rewrite. Only use
11874 signals[].name when in bounds and non-NULL.
11876 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11878 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11879 * signals.c (target_signal_to_name): Verify that SIG is within the
11880 bounds of the signals array.
11882 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11884 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11886 2002-01-13 Keith Seitz <keiths@redhat.com>
11888 * stack.c (print_frame_info_base): Print the frame's pc
11889 only if when print_frame_info_listing_hook is not defined.
11891 2002-01-13 Keith Seitz <keiths@redhat.com>
11893 * varobj.c (varobj_set_value): Make sure that there were no
11894 errors evaluating the object before attempting to set its
11896 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11897 so this offset adjustment is no longer necessary.
11898 (create_child): Don't set the error flag if the child is
11899 a CPLUS_FAKE_CHILD.
11900 (value_of_child): If value_fetch_lazy fails, return NULL
11901 so that callers will be notified that an error occurred.
11902 (c_value_of_variable): Delay check of variable's validity
11903 until later. We actually want all structs and unions to have
11905 Do not return "???" for variables which could not be evaluated.
11906 This error condition must be returned to the caller so that it
11907 can get the error condition from gdb.
11908 (cplus_name_of_child): Adjust index for vptr before figuring
11909 out the name of the child.
11910 (cplus_value_of_child): If a child's (real) parent is not valid,
11911 don't even bother trying to give a value for it. Just return
11912 an error. Change all instances in this function.
11913 (cplus_type_of_child): If our parent is one of the "fake"
11914 parents, we need to get at the type of the real parent, and
11915 derive the child's true type using this information.
11917 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11919 From 2002-01-09 John Marshall <johnm@falch.net>:
11920 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11921 sources.redhat.com, and tweak some related URLs which had
11922 suffered from linkrot.
11924 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11927 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11928 structures passed in registers.
11930 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11932 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11933 white space which prevented compilation. Reported by DSK
11934 <dsk@student.unsw.edu.au>.
11936 2002-01-11 Michael Snyder <msnyder@redhat.com>
11938 * symfile.c (build_section_addr_info_from_section_tab):
11939 Use bfd access method instead of manipulating bfd directly.
11940 (syms_from_objfile): Ditto.
11941 (simple_overlay_update_1): Ditto.
11942 (simple_overlay_update): Ditto.
11943 (generic_load): Ditto.
11944 (overlay_unmapped_address): FIXME comment, bfd access methods.
11945 (sections_overlap): FIXME comment, bfd access methods.
11946 (pc_in_mapped_range): FIXME comment, bfd access methods.
11947 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11948 (section_is_mapped): FIXME comment, bfd access methods.
11949 (section_is_overlay): FIXME comment, bfd access methods.
11951 * symfile.c (generic_load): Whitespace and long line cleanups.
11952 Remove duplicate variable, change several local variables to
11953 more appropriate data types.
11954 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11956 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11958 From Peter Schauer:
11959 * language.c (longest_local_hex_string_custom): Use phex_nz to
11960 convert NUM to a hex string.
11962 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11964 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11966 Update Copyright year.
11968 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11970 * language.c (longest_raw_hex_string): Delete unused function.
11972 2002-01-11 Petr Sorfa <petrs@caldera.com>
11974 * MAINTAINERS (write-after-approval): Add myself.
11975 * dwarf2read.c (read_tag_string_type): Handling of
11977 (read_tag_string_type): FORTRAN fix to prevent propagation of
11979 (set_cu_language): Handling of DW_LANG_Fortran95
11981 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11983 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11984 GETPID(inferior_ptid).
11985 (store_inferior_registers): Likewise.
11987 2002-01-10 Jason Merrill <jason@redhat.com>
11989 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11992 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11994 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11995 and bfd/elf32-sh-nbsd.c.
11997 2002-01-10 Michael Snyder <msnyder@redhat.com>
11999 * NEWS: Mention --pid and corefile/proc-id behavior change.
12001 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12002 * gcore.c: Include cli/cli-decode.h instead of command.h.
12004 * main.c (captured_main): Add new command line option "--pid".
12005 If the second command line argument (following the symbol-file)
12006 begins with a digit, try to attach to it before trying to open
12008 (print_gdb_help): Document the "--pid" argument.
12010 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12012 * completer.c (command_completer): New function.
12014 * completer.h <command_completer>: Add prototype.
12016 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12017 completer for the "help" command.
12019 2002-01-09 Jason Merrill <jason@redhat.com>
12021 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12023 2002-01-09 Michael Snyder <msnyder@redhat.com>
12025 * i386-linux-nat.c (fill_fpxregset): Make global.
12026 (store_fpxregset): Ditto.
12028 * gregset.h (gdb_fpxregset_t): Define.
12029 (supply_fpxregset): Prototype.
12030 (fill_fpxregset): Prototype.
12032 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12034 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12036 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12037 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12038 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12040 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12042 * MAINTAINERS: Update target maintainer rules so that any
12043 Maintainer can approve a tested patch for a maintenance-only
12046 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12048 * MAINTAINERS (write-after-approval): Add myself.
12050 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12053 2002-01-08 Michael Snyder <msnyder@redhat.com>
12055 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12056 real name of the executable, rather than the /proc name.
12058 2002-01-03 Michael Snyder <msnyder@redhat.com>
12060 Implement a "generate-core-file" command in gdb, save target state.
12061 * gcore.c: New file. Implement new command 'generate-core-file'.
12062 Save a corefile image of the current state of the inferior.
12063 * linux-proc.c: Add linux-specific code for saving corefiles.
12064 * target.h (struct target_ops): Add new target vectors for saving
12065 corefiles; to_find_memory_regions and to_make_corefile_notes.
12066 (target_find_memory_regions): New macro.
12067 (target_make_corefile_notes): New macro.
12068 * target.c (update_current_target): Inherit new target methods.
12069 (dummy_find_memory_regions): New place-holder method.
12070 (dummy_make_corefile_notes): New place-holder method.
12071 (init_dummy_target): Initialize new dummy target vectors.
12072 * exec.c (exec_set_find_memory_regions): New function.
12073 Allow the exec_ops vector for memory regions to be taken over.
12074 (exec_make_note_section): New function, target vector method.
12075 * defs.h (exec_set_find_memory_regions): Export prototype.
12076 * procfs.c (proc_find_memory_regions): New function, corefile method.
12077 (procfs_make_note_section): New function, corefile method.
12078 (init_procfs_ops): Set new target vector pointers.
12079 (find_memory_regions_callback): New function.
12080 (procfs_do_thread_registers): New function.
12081 (procfs_corefile_thread_callback): New function.
12082 * sol-thread.c (sol_find_memory_regions): New function.
12083 (sol_make_note_section): New function.
12084 (init_sol_thread_ops): Initialize new target vectors.
12085 * inftarg.c (inftarg_set_find_memory_regions): New function.
12086 Allow to_find_memory_regions vector to be taken over.
12087 (inftarg_set_make_corefile_notes): New function.
12088 Allow to_make_corefile_notes vector to be taken over.
12089 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12090 interface layer if not target_has_execution (may be a corefile).
12091 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12092 * config/sparc/sun4sol2.mh: Ditto.
12093 * config/alpha/alpha-linux.mh: Ditto.
12094 * config/arm/linux.mh: Ditto.
12095 * config/i386/x86-64linux.mh: Ditto.
12096 * config/ia64/linux.mh: Ditto.
12097 * config/m68k/linux.mh: Ditto.
12098 * config/mips/linux.mh: Ditto.
12099 * config/powerpc/linux.mh: Ditto.
12100 * config/sparc/linux.mh: Ditto.
12102 2002-01-07 Michael Snyder <msnyder@redhat.com>
12104 * arm-linux-nat.c: Remove references to regcache.c internal data
12105 (registers[] and register_valid[]).
12107 2002-01-07 Michael Snyder <msnyder@redhat.com>
12109 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12110 so that attaching to a pid will automatically read the process's
12111 symbol file and shlibs.
12112 * Makefile.in: Add rule for linux-proc.o.
12113 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12114 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12115 * config/arm/linux.mh: Ditto.
12116 * config/i386/linux.mh: Ditto.
12117 * config/i386/x86-64linux.mh: Ditto.
12118 * config/ia64/linux.mh: Ditto.
12119 * config/m68k/linux.mh: Ditto.
12120 * config/mips/linux.mh: Ditto.
12121 * config/powerpc/linux.mh: Ditto.
12122 * config/sparc/linux.mh: Ditto.
12124 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12126 * win32-nat.c: Add i386-tdep.h dependency.
12128 2002-01-07 Michael Snyder <msnyder@redhat.com>
12130 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12131 instead of bfd_get_arch_size. Don't bail out just because
12132 there's no exec_bfd.
12134 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12135 * p-valprint.c (pascal_object_print_value): Ditto.
12136 * somread.c (som_symtab_read): Ditto.
12137 * symfile.c (simple_free_overlay_region_table): Ditto.
12138 * valops.c (value_assign): Ditto.
12140 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12141 use tilde_expand and strerror for opening save-tracepoints file.
12143 * thread-db.c (thread_db_new_objfile): Indendation fix.
12145 * infptrace.c (GDB_MAX_ALLOCA): New define.
12146 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12147 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12148 can be overridden with whatever value is appropriate to the host).
12149 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12150 alloca to allocate potentially large buffer.
12151 * rs6000-nat.c (child_xfer_memory): Ditto.
12152 * symm-nat.c (child_xfer_memory): Ditto.
12153 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12155 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12157 From Nick Clifton <nickc@redhat.com>
12158 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12160 2002-01-07 Michael Snyder <msnyder@redhat.com>
12162 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12163 Don't use exec_bfd if it's NULL.
12165 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12167 * valops.c (value_arg_coerce): Fix formatting.
12169 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12171 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12172 * gnu-nat.c: Ditto.
12174 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12176 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12177 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12178 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12179 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12180 z8k-coff have not been multi-arched. Update z8k-coff build
12183 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12185 * MAINTAINERS: Mark a29k target as obsolete.
12186 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12187 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12189 * NEWS: Note that a29k targets are obsolete.
12190 * a29k-tdep.c: Mark as obsolete.
12191 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12192 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12193 a29k-*-vxworks* targets as obsolete.
12194 * remote-adapt.c: Obsolete.
12195 * remote-eb.c: Obsolete.
12196 * remote-mm.c: Obsolete.
12197 * remote-udi.c: Obsolete.
12198 * config/a29k/a29k-udi.mt: Obsolete.
12199 * config/a29k/a29k.mt: Obsolete.
12200 * config/a29k/tm-a29k.h: Obsolete.
12201 * config/a29k/tm-vx29k.h: Obsolete.
12202 * config/a29k/vx29k.mt: Obsolete.
12204 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12206 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12207 with BFD_ENDIAN_BIG.
12209 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12211 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12212 * configure, config.in: Re-generate.
12213 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12214 * defs.h: Do not include <endian.h>.
12216 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12218 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12219 * config.in: Regenerate.
12220 * configure.in: Update copyright years.
12221 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12222 * configure: Regenerate.
12223 * i386bsd-nat.c: Update copyright years.
12224 (fill_gregset): Use regcache_collect.
12225 (fetch_inferior_registers): Only fetch integer registers
12226 if requested to do so. Add support for XMM registers
12227 using PT_GETXMMREGS.
12228 (store_inferior_registers): Only store integer registers
12229 if requested to do so. Add support for XMM registers
12230 using PT_SETXMMREGS.
12231 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12232 (store_inferior_registers): Remove.
12233 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12234 (fetch_elfcore_registers): New function.
12235 (i386nbsd_elfcore_fns): New.
12236 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12237 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12239 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12240 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12241 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12242 * config/i386/tm-nbsd.h: Update copyright years.
12243 (HAVE_SSE_REGS): Define.
12244 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12245 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12246 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12247 (SIGCONTEXT_PC_OFFSET): Remove.
12248 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12250 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12252 * configure.tgt: Remove powerpc-*-macos* target.
12253 * config/m68k/xm-mpw.h: Delete file.
12254 * config/xm-mpw.h: Delete file.
12255 * ser-mac.c: Delete file.
12256 * mpw-make.sed: Delete file.
12257 * mpw-config.in: Delete file.
12258 * mac-xdep.c: Delete file.
12259 * mac-gdb.r: Delete file.
12260 * mac-defs.h: Delete file.
12261 * mac-nat.c: Delete file.
12262 * config/powerpc/macos.mh: Delete file.
12263 * config/powerpc/macos.mt: Delete file.
12264 * config/powerpc/nm-macos.h: Delete file.
12265 * config/powerpc/tm-macos.h: Delete file.
12266 * source.c (openp, open_source_file): Remove obsolete code.
12267 * top.c (gdb_readline): Ditto.
12268 * utils.c (query): Ditto.
12269 * event-top.c (display_gdb_prompt): Ditto.
12270 * Makefile.in (ser-mac.o): Delete obsolete target.
12273 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12275 * defs.h (BIG_ENDIAN): Delete macro definition.
12276 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12277 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12278 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12279 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12280 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12281 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12282 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12283 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12284 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12285 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12286 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12287 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12288 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12289 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12290 * gdbarch.c: Re-generate.
12292 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12294 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12297 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12299 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12301 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12303 * value.h (value_ptr): Delete typedef.
12305 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12307 * i386nbsd-nat.c: Update copyright years.
12308 Include i386-tdep.h.
12310 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12312 * stabsread.c: Update copyright years.
12314 From Debashis Mahata <debashis.mahata@wipro.com>:
12315 (read_struct_fields): Deal with Sun C compiler erroneous stab
12316 output for structs and unions.
12319 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12321 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12324 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12326 * cp-abi.c: Fix whitespace.
12327 (baseclass_offset): New wrapper function.
12328 * cp-abi.h (baseclass_offset): Add prototype.
12329 (struct cp_abi_ops): Add baseclass_offset pointer.
12331 * valops.c (vb_match): Move to...
12332 * gnu-v2-abi.c (vb_match): here.
12333 * valops.c (baseclass_offset): Move to...
12334 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12336 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12338 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12339 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12340 * hpacc-abi.c (init_hpacc_ops): Likewise.
12342 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12344 * valops.c (find_overload_match): Accept obj as a
12345 reference parameter. Update it before returning.
12346 * value.h (find_overload_match): Update prototype.
12347 * eval.c (evaluate_subexp_standard): Pass object to
12348 find_overload_match by reference.
12350 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12352 * valarith.c: Replace value_ptr with struct value pointer. Remove
12353 register attribute from value declarations.
12356 * scm-lang.c (scm_lookup_name): Ditto.
12358 2002-01-03 Michael Snyder <msnyder@redhat.com>
12360 Abstract the functionality of iterating over mapped memory
12361 regions into a general purpose iterator function.
12362 * procfs.c (iterate_over_mappings): New function, general purpose
12363 iterator for memory sections.
12364 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12365 (solib_mappings_callback): New function, callback for above.
12366 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12367 (info_mappings_callback): New function, callback for above.
12369 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12371 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12373 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12374 * i386-tdep.c: Include "elf-bfd.h".
12375 (process_note_abi_tag_sections): New function.
12376 (i386_gdbarch_init): Add code to recognize various OS/ABI
12379 * maint.c (_initialize_maint_cmds): Add missing \ in
12382 For older changes see ChangeLog-2001
12388 version-control: never