1 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3 * gdbarch.sh (register_reggroup_p): Allow default value.
4 * gdbarch.h, gdbarch.c: Regenerate.
6 2002-11-02 Andrew Cagney <ac131313@redhat.com>
8 * regcache.h: Add coment indicating replacements for deprecated
11 2002-11-02 Andrew Cagney <cagney@redhat.com>
13 * reggroups.h, reggroups.c: New files.
14 * regcache.c: Include "reggroups.h".
15 (enum regcache_dump_what): Add `regcache_dump_groups'.
16 (regcache_dump): Contract size of the "Type" column. When
17 specified, dump the register's groups.
18 (maintenance_print_register_groups): New function.
19 (_initialize_regcache): Add command `maint print register-groups'.
20 * Makefile.in (COMMON_OBS): Add reggroups.o
21 (SFILES): Add reggroups.c.
22 (reggroups_h): Define.
23 (regcache.o, gdbarch.o): Update dependencies.
24 (reggroups.o): Specify dependencies.
25 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
26 Add opaque declaration for `struct reggroup' in generated .h file.
27 Include "reggroups.h" in generated .c file.
28 gdbarch.h, gdbarch.c: Re-generate.
30 2002-11-02 Andrew Cagney <cagney@redhat.com>
32 * regcache.h (deprecated_read_register_gen): Rename
34 (deprecated_write_register_gen): Rename write_register_gen.
35 * i387-tdep.c: Update.
36 * x86-64-linux-nat.c: Update
38 * thread-db.c: Update.
39 * win32-nat.c: Update.
40 * mips-tdep.c: Update.
41 * d10v-tdep.c: Update.
42 * cris-tdep.c: Update.
43 * remote-sim.c: Update.
44 * remote-rdi.c: Update.
45 * remote-rdp.c: Update.
48 * blockframe.c: Update.
49 * x86-64-tdep.c: Update.
50 * xstormy16-tdep.c: Update.
52 * s390-tdep.c: Update.
53 * rs6000-tdep.c: Update.
54 * sparc-tdep.c: Update.
55 * i386-tdep.c: Update.
56 * dwarf2cfi.c: Update.
59 2002-11-01 Joel Brobecker <brobecker@gnat.com>
61 New interix-specific files:
62 * config/i386/nm-interix.h: New file.
63 * config/i386/interix.mh: New file.
64 * config/i386/interix.mt: New file.
65 * i386-interix-nat.c: New file.
66 * i386-interix-tdep.c: New file.
68 2002-11-01 Andrew Cagney <cagney@redhat.com>
70 * frame.h (deprecated_generic_get_saved_register): Rename
71 generic_get_saved_register.
72 * blockframe.c (deprecated_generic_get_saved_register): Update.
73 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
74 (xstormy16_frame_saved_register): Update.
75 * sh-tdep.c (sh_gdbarch_init): Update.
76 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
77 * ia64-tdep.c (ia64_get_saved_register): Update.
78 * cris-tdep.c (cris_gdbarch_init): Update.
79 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
80 * arm-tdep.c (arm_gdbarch_init): Update.
82 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
84 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
86 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
88 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
89 trampolines in sigaction.
91 2002-10-31 Andrew Cagney <cagney@redhat.com>
93 * h8300-tdep.c: Include "gdb_assert.h".
94 (h8300_print_register): Add gdbarch, file and frame parameters.
95 Use frame_read_unsigned_register to read the register's value.
96 Use fprintf_filtered to display output.
97 (h8300_print_registers_info): Replace h8300_do_registers_info.
98 (h8300_gdbarch_init): Set print_registers_info.
100 2002-10-31 Andrew Cagney <cagney@redhat.com>
102 * frame.c (frame_read_unsigned_register): New function.
103 (frame_read_signed_register): New function.
104 * frame.h (frame_read_unsigned_register): Declare.
105 (frame_read_signed_register): Declare.
107 2002-10-31 Andrew Cagney <cagney@redhat.com>
109 * h8500-tdep.c (h8500_print_registers_info): New static function,
110 clone of infcmd.c's default_print_registers_info.
111 (h8500_do_registers_info): New funtion.
112 (h8500_print_register_hook): Rename print_register_hook, make
115 * config/h8500/tm-h8500.h: Update copyright.
116 (DEPRECATED_DO_REGISTERS_INFO): Define.
117 (h8500_do_registers_info: Declare.
118 (PRINT_REGISTER_HOOK): Delete macro.
119 (print_register_hook): Delete function.
121 2002-10-31 Andrew Cagney <cagney@redhat.com>
123 * z8k-tdep.c (z8k_print_register_hook): Make static.
124 (z8k_print_registers_info): New static function, clone of
125 infcmd.c's default_print_registers_info.
126 (z8k_do_registers_info): New function. Wrap
127 z8k_print_registers_info.
128 * config/z8k/tm-z8k.h: Update copyright.
129 (PRINT_REGISTER_HOOK): Delete macro.
130 (z8k_print_register_hook): Delete declaration.
131 (DEPRECATED_DO_REGISTERS_INFO): Define.
132 (z8k_do_registers_info): Declare.
134 2002-10-30 Joel Brobecker <brobecker@gnat.com>
136 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
137 as this is already provided by value.h, and was actually causing
138 a compilation error because of a conflict in parameter type
139 declaration due to a missing const keyword.
140 (low_text_segment_addres): Fix a compilation warning.
142 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
144 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
145 registers without a name.
146 (mips_linux_cannot_store_register): Don't store registers without
149 2002-10-28 David Carlton <carlton@math.stanford.edu>
151 * symtab.c (find_addr_symbol): Delete. (It was already commented
153 * symtab.h: Delete prototype for find_addr_symbol.
155 2002-10-26 Andrew Cagney <cagney@redhat.com>
157 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
159 gdbarch.h, gdbarch.c: Re-generate.
160 * infcmd.c (default_print_registers_info): Update reference.
161 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
162 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
163 * sh-tdep.c (sh_gdbarch_init): Ditto.
164 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
165 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
167 2002-10-26 Mark Kettenis <kettenis@gnu.org>
169 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
170 cfi_init_extra_frame_info.
171 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
172 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
174 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
175 target where necessary. Add more comments and remove the ones
176 that don't provide any useful information.
178 * i386-tdep.c (i386_frame_saved_pc): Replace call to
179 deprecated_read_register_dummy with
180 frame_unwind_unsigned_register.
182 * i386-tdep.c (i386_extract_struct_value_address): Use
183 regcache_raw_read_unsigned instead of
184 regcache_cooked_read_unsigned since we know that the register
185 we're reading isn't a pseudo register. Rename variable 'val' into
186 the more descriptive 'addr'.
188 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
189 (x86_64_push_return_address): Add comment.
190 (x86_64_pop_frame): Make static.
191 (examine_argument): Clarify comment.
192 (x86_64_skip_prologue): Make prolog_expact variable static.
194 * dwarf2cfi.c: Fix some formatting problems.
195 (context_cpy, read_encoded_pointer): Clarify comments.
197 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
198 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
199 i386 target back into x86_64_gdbarch_init. Add some comments and
200 remove meaningless ones.
202 2002-10-25 Andrew Cagney <cagney@redhat.com>
204 * complaints.h (struct deprecated_complaint): Rename `struct
206 * complaints.c (complain): Update.
207 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
208 incorrect comment indicating that "symfile.h" was being included
209 for the `struct complaint' definition.
210 * remote-vx.c: Update.
211 * objc-lang.c: Update.
212 * xcoffread.c: Update.
214 * mdebugread.c: Update.
215 * stabsread.c: Update.
216 * dwarf2read.c: Update.
217 * dwarfread.c: Update.
219 * coffread.c: Update.
220 * stabsread.h: Update.
222 * buildsym.c: Update.
223 * gdbtypes.c: Update.
224 * macrotab.c: Update.
226 2002-10-25 Mark Kettenis <kettenis@gnu.org>
228 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
229 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
230 (x86_64_init_abi): ...new function.
232 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
233 * i386v-nat.c: Include "i386-tdep.h".
235 2002-10-25 Andrew Cagney <cagney@redhat.com>
237 * gdbtypes.c (address_space_name_to_int): Update.
238 (address_space_int_to_name): Update.
239 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
240 multi-arch predicate.
241 (address_class_name_to_type_flags): Ditto.
242 * gdbarch.h, gdbarch.c: Re-generate.
244 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
246 2002-10-24 Martin M. Hunt <hunt@redhat.com>
248 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
250 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
252 * symtab.h (INIT_SAL): Delete macro.
254 * symtab.c (init_sal): New function.
256 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
257 to init_sal function call.
258 (find_sal_from_funcs_and_line): Ditto.
259 (all_sals_for_line): Ditto.
260 * breakpoint.c (create_internal_breakpoint): Ditto.
261 (create_fork_vfork_event_catchpoint): Ditto.
262 (create_exec_event_catchpoint): Ditto.
263 (parse_breakpoint_sals): Ditto.
264 (watch_command_1): Ditto.
265 (handle_gnu_4_16_catch_command): Ditto.
266 (clear_command): Ditto.
267 * hppa-tdep.c (child_enable_exception_callback): Ditto.
268 * infcmd.c (run_stack_dummy): Ditto.
269 * infrun.c (process_event_stop_test): Ditto.
270 (check_sigtramp2): Ditto.
271 (step_over_function): Ditto.
272 * linespec.c (decode_line_2): Ditto.
273 (decode_line_1): Ditto.
274 * source.c (line_info): Ditto.
275 * symtab.c (find_pc_sect_line): Ditto.
277 2002-10-24 Michal Ludvig <mludvig@suse.cz>
279 * dwarf2cfi.c (struct context)
280 (struct context_reg): Moved to dwarf2cfi.h
281 (context_alloc, frame_state_alloc, context_cpy):
282 Made extern instead of static, removed prototypes.
283 * dwarf2cfi.h (struct context)
284 (struct context_reg): New, moved from dwarf2cfi.c
285 (context_alloc, frame_state_alloc, context_cpy):
287 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
288 Changed from static to extern.
289 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
290 (LINUX_SIGCONTEXT_FP_OFFSET)
291 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
292 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
293 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
294 * x86-64-tdep.c (x86_64_gdbarch_init): Several
295 set_gdbarch_*() calls now use x86-64 specific functions
296 instead of DWARF2 CFI ones.
297 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
298 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
299 (x86_64_init_extra_frame_info): New prototypes.
301 2002-10-23 David Carlton <carlton@math.stanford.edu>
303 * linespec.c: #include "parser-defs.h".
304 Delete prototype for find_template_name_end.
305 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
307 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
309 * NEWS: add recent mi fixes.
310 * varobj.c (struct varobj): Add new "updated" flag.
311 (new_variable): Default "updated" flag to 0.
312 (varobj_set_value): Set "updated" flag to 1 if value
314 (varobj_update): Check varobj "updated" flag before
315 comparing old and refreshed values. Fix for
318 2002-10-23 David Carlton <carlton@math.stanford.edu>
320 * parse.c (parse_exp_1): Use BLOCK_START.
321 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
323 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
325 2002-10-23 David Carlton <carlton@math.stanford.edu>
327 * symtab.c: Delete cplusplus_hint.
328 Delete prototype for find_template_name_end.
330 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
332 * symtab.h: Update comment.
334 2002-10-23 Michael Snyder <msnyder@redhat.com>
336 * printcmd.c (address_info): Restore quotes in output.
337 * valops.c (value_of_local): Restore quotes in error message.
339 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
341 * symtab.c (symbol_demangled_name): New function.
342 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
343 turning most of it into a function.
344 (symbol_demangled_name): Export.
346 2002-10-23 Michael Snyder <msnyder@redhat.com>
348 * valops.c (value_of_local): Restore quotes in error message.
350 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
352 * symtab.c (symbol_init_language_specific): New function.
353 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
354 turning most of it into a function.
355 (symbol_init_language_specific): Export.
357 2002-10-23 David Carlton <carlton@math.stanford.edu>
359 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
360 (dwarf_attr_name): Ditto.
361 (dwarf_type_encoding_name): Ditto.
362 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
363 (process_die): Handle DW_TAG_namespace,
364 DW_TAG_imported_declaration, DW_TAG_imported_module.
365 (read_namespace): New function.
367 2002-10-22 Joel Brobecker <brobecker@gnat.com>
369 * configure.in: Define NEW_PROC_API on Interix too.
370 * configure: Regenerate.
372 2002-10-21 Joel Brobecker <brobecker@gnat.com>
374 * configure: Regenerate using the proper version of autoconf.
376 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
378 * findvar.c (read_var_value): Temporarily disable TLS code, until
379 complete TLS support is added.
381 2002-10-21 Jim Blandy <jimb@redhat.com>
382 Elena Zannoni <ezannoni@redhat.com>
384 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
385 for thread local storage locations.
386 (struct symbol): Add objfile field.
387 (SYMBOL_OBJFILE): Define.
388 * dwarf2read.c (is_thread_local): New static variable.
389 (new_symbol): If variable is in thread local fill in address class
390 and objfile appropriately.
391 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
393 * printcmd.c (address_info): Print the information for thread
394 local storage variable.
395 * findvar.c (read_var_value): In case of thread local variable,
396 defer to the target vector code to compute address.
398 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
400 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
401 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
403 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
405 * symtab.h (address_class): Rename
406 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
407 * hpread.c (hpread_process_one_debug_symbol): Ditto.
408 * printcmd.c (address_info): Ditto.
409 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
411 2002-10-20 Mark Kettenis <kettenis@gnu.org>
413 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
414 DBREG_DRX macro to acces debug registers.
416 * Makefile.in (i386obsd-tdep.o): New target.
418 * solib-sunos.c: Include "bcache.h" and "regcache.h".
419 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
421 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
422 * config/i386/obsd.mt: New file.
423 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
424 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
425 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
426 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
427 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
428 * i386obsd-tdep.c: New file.
430 2002-10-19 Adam Fedor <fedor@gnu.org>
432 * objc-exp.y (name_not_typename): Fix invalid comment.
434 2002-10-20 Mark Kettenis <kettenis@gnu.org>
436 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
437 to allocate partial syms and macro byte caches.
439 2002-10-18 David Carlton <carlton@math.stanford.edu>
441 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
443 2002-10-18 Adam Fedor <fedor@gnu.org>
445 * stabsread.c (find_name_end): New function.
446 (define_symbol): Use it.
448 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
450 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
451 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
452 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
453 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
455 2002-10-17 David Carlton <carlton@math.stanford.edu>
457 * symfile.h: Add opaque declaration for struct obstack.
458 Declare obsavestring to take a const char *.
459 * symfile.c (obsavestring): Make first argument a const char *.
461 2002-10-16 Adam Fedor <fedor@gnu.org>
463 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
464 names when matching breakpoints in current file.
466 2002-10-16 Kevin Buettner <kevinb@redhat.com>
468 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
469 (read_tag_pointer_type): Add address class support.
470 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
471 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
473 * gdbarch.h, gdbarch.c: Regenerate.
474 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
475 (make_type_with_address_space, recursive_type_dump): Add address
477 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
478 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
479 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
481 2002-10-16 Klee Dienes <kdienes@apple.com>
483 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
484 to get the last character of a char[] buffer, not
485 name[sizeof(vptr_name)-1].
487 2002-10-14 Adam Fedor <fedor@gnu.org>
489 * symtab.h: New objc_specific struct.
490 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
491 (SYMBOL_DEMANGLED_NAME): Likewise.
493 2002-10-14 Adam Fedor <fedor@gnu.org>
495 * symfile.c (init_filename_language_table): Add ObjC file extension.
497 2002-10-14 Adam Fedor <fedor@gnu.org>
499 * utils.c (puts_filtered_tabular): New function.
500 (fprintf_symbol_filtered): Get ObjC demangled name.
501 * defs.h (puts_filtered_tabular): Declared.
503 2002-10-14 Kevin Buettner <kevinb@redhat.com>
505 * c-lang.h (c_type_print_varspec_prefix): Delete.
506 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
507 ``need_post_space'' parameter. Adjust all callers.
509 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
511 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
512 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
513 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
514 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
516 2002-10-13 Adam Fedor <fedor@gnu.org>
518 * source.c (print_source_lines): Update comments.
520 2002-10-13 Adam Fedor <fedor@gnu.org>
522 * valops.c (value_of_local): New function.
523 (value_of_this): Use it.
524 * value.h (value_of_local): Declared.
526 2002-10-13 Adam Fedor <fedor@gnu.org>
528 * parse.c: (length_of_subexp, prefixify_subexp): Handle
529 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
531 2002-10-12 Adam Fedor <fedor@gnu.org>
533 * language.c (binop_result_type): Add language_objc to case.
534 (integral_type): Likewise.
535 (character_type): Likewise.
536 (string_type): Likewise.
537 (boolean_type): Likewise.
538 (structured_type): Likewise.
539 (binop_type_check): Likewise.
541 2002-10-11 Adam Fedor <fedor@gnu.org>
543 * printcmd.c (address_info): Print 'self' for ObjC.
545 2002-10-11 Adam Fedor <fedor@gnu.org>
547 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
550 2002-10-11 Adam Fedor <fedor@gnu.org>
552 * language.h (CAST_IS_CONVERSION): Add language_objc.
554 2002-10-11 Adam Fedor <fedor@gnu.org>
556 * defs.h (enum language): Add language_objc.
558 2002-10-11 Klee Dienes <kdienes@apple.com>
560 * findvar.c (read_memory_typed_address): New function.
561 * gdbcore.h (read_memory_typed_address): Add prototype.
562 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
563 to read a value destined for a CORE_ADDR, not read_memory_integer.
564 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
565 (f77_get_dynamic_lowerbound): Ditto.
567 2002-10-11 Martin M. Hunt <hunt@redhat.com>
569 * utils.c (string_to_core_addr): After turning string into
570 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
571 which will do necessary sign-extension, etc.
573 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
575 * c-exp.y (THIS): Delete token and grammar rule.
576 (yylex): Don't return THIS.
577 * cp-valprint.c (vtbl_ptr_name_old): Delete.
578 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
579 * demangle.c (cplus_markers): Update comment. Put '$'
580 first. Remove CPLUS_MARKER.
581 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
582 * jv-exp.y (THIS): Delete token and grammar rule.
583 (yylex): Don't return THIS.
584 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
585 * objc-exp.y (THIS): Delete token and grammar rule.
586 (yylex): Don't return THIS.
587 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
588 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
589 (read_member_functions): Likewise for opname.
590 (read_tilde_fields): Use is_cplus_marker.
592 * defs.h (CPLUS_MARKER): Don't define.
593 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
594 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
595 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
596 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
597 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
599 * config/i386/tm-i386v4.h: Delete file.
600 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
601 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
602 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
603 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
604 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
605 * config/i386/i386sco5.mt (TM_FILE): Likewise.
606 * config/i386/i386v4.mt (TM_FILE): Likewise.
607 * config/i386/ncr3000.mt (TM_FILE): Likewise.
609 2002-10-10 Marko Mlinar <markom@opencores.org>
611 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
612 accidentially not commited 2002-10-09
613 * gdbarch.h, gdbarch.c: Re-generate.
615 2002-10-09 Marko Mlinar <markom@opencores.org>
617 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
618 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
619 * gdbarch.h, gdbarch.c: Re-generate.
621 2002-10-08 Petr Sorfa <petrs@caldera.com>
623 Revised and re-submitted by John Wolfe <jlw@caldera.com>
625 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
626 so we can work on more than one compilation unit at a time. This
627 helps prepare GDB to handle inter-CU die references.
628 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
629 the code to be defined before struct comp_unit_head.
630 (comp_unit_head): Added new members - offset, cu_head,
631 begin_die, next and dwarf2_abbrevs.
632 (dwarf2_abbrevs): Removed single static var; now member of
633 struct comp_unit_head.
634 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
636 (psymtab_to_symtab_1): Changed to work with the new
637 struct comp_unit_head.
638 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
639 constructs the dwarf2_abbrevs[] inside the cu_header.
640 (dwarf2_empty_abbrev_table): Now expects a ptr to a
641 dwarf2_abbrev table to clean up.
642 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
643 handling of dwarf2_abbrevs inside the cu_header.
644 (read_partial_die): Now supports the call to the new
645 dwarf2_lookup_abbrev.
646 (read_full_die): Now supports the call to the new
647 dwarf2_lookup_abbrev.
649 2002-10-06 Christopher Faylor <cgf@redhat.com>
651 * Makefile.in (install-gdbtk): Add missing continuation backslash to
652 insure that shell variables, such as "transformed_name" are propagated
653 to later shell statements in rule.
655 2002-10-06 Mark Kettenis <kettenis@gnu.org>
657 * config/i386/nm-i386sco.h: Add protection against
658 multiple-inclusion. Include "i386/nm-i386v.h".
659 (REGISTER_U_ADDR): Remove define.
660 (i386_register_u_addr): Remove prototype.
662 2002-10-04 Michael Snyder <msnyder@redhat.com>
664 * m32r-stub.c (handle_exception): Make sure exception is "trap"
665 before treating it as a single-step event.
667 2002-10-03 Adam Fedor <fedor@gnu.org>
669 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
670 (objc_demangle): Remove assignment in if statements, Replace
672 (add_msglist): Likewise.
673 (end_msglist): Likewise.
674 (complare_selectors): Likewise.
675 (selectors_info): Likewise.
676 (compare_classes): Likewise.
677 (classes_info): Likewise.
678 (print_object_command): Likewise.
679 (find_objc_msgcall_submethod): Replace PTR with void *.
680 * objc-lang.h: Remove check for __STDC__.
682 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
684 * ui-out.h (ui_out_field_fmt_int): New prototype.
685 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
686 of field width and alignment.
687 * stack.c (print_frame_info_base): When printing frame level, use
688 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
691 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
693 * MAINTAINERS: Add self to Write After Approval list.
695 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
697 * infcmd.c (interrupt_target_command_wrapper): Delete.
698 (interrupt_target_command): Make non static.
699 (nofp_registers_info): Make static.
700 * stack.c (return_command_wrapper): Delete.
701 (return_command): Make non static.
703 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
705 * event-top.c (gdb_setup_readline): New function. Code moved from
706 _initialize_event_loop().
707 (_initialize_event_loop): Call gdb_setup_readline().
709 2002-10-02 Andrew Cagney <ac131313@redhat.com>
711 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
712 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
713 * gdbarch.h, gdbarch.c: Re-generate.
715 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
718 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
720 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
721 of fill_in_vptr_fieldno.
723 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
725 * inferior.h (registers_info, stepi_command, nexti_command,
726 continue_command, interrupt_target_command): Export from infcmd.c.
727 * frame.h (args_info, selected_frame_level_changed_hook,
728 return_command): Export from stack.c.
729 * v850ice.c (stepi_command, nexti_command, continue_command): use
730 prototypes from inferior.h.
731 * tracepoint.c (registers_info, args_info, locals_info): Use
732 prototypes from frame.h and inferior.h.
733 * Makefile.in (mi-main.o): Add dependency on frame.h.
735 2002-10-02 Andrew Cagney <ac131313@redhat.com>
737 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
738 value in register 3 adjusted by ppc_gp0_regnum.
740 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
742 2002-10-02 Marko Mlinar <markom@opencores.org>
744 * MAINTAINERS: Add myself to the Write After Approval list.
746 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
748 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
749 of the section for the N64 ABI, fixed.
751 * config/mips/tm-irix6.h: Include solib.h.
753 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
755 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
758 2002-10-01 Andrew Cagney <ac131313@redhat.com>
760 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
761 and that "mi0" syntax has been removed.
763 2002-09-30 David Carlton <carlton@math.stanford.edu>
765 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
766 * ppc-sysv-tdep.c: #include "gdb_string.h".
767 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
770 2002-10-01 Andrew Cagney <ac131313@redhat.com>
772 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
773 "vrsave"'s register number.
775 2002-09-30 Andrew Cagney <ac131313@redhat.com>
777 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
778 use frame_unwind_signed_register to obtain the PC.
779 (mips_frame_chain): Handle a generic dummy frame.
780 (mips_init_extra_frame_info): When a generic dummy frame, don't
781 re-compute the frame base.
782 (mips_pop_frame): Handle generic dummy frames.
783 (mips_gdbarch_init): When generic dummy frames, set
784 use_generic_dummy_frames, push_dummy_frame to
785 generic_push_dummy_frame, pc_in_call_dummy to
786 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
787 generic_save_dummy_frame_tos.
789 2002-09-30 Andrew Cagney <ac131313@redhat.com>
791 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
792 against TOP when TOP was explictly set.
793 (generic_push_dummy_frame): Set TOP to zero.
795 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
797 * event-loop.c (start_event_loop): Rename variable 'result' to
798 'gdb_result', to avoid conflicts with upcoming intepreters changes.
800 2002-09-30 Keith Seitz <keiths@redhat.com>
802 * gdb-events.sh (selected_thread_changed): New event.
803 * gdb-events.c: Regenerated.
804 * gdb-events.h: Regenerated.
806 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
808 * MAINTAINERS: Add self to Write After Approval list.
810 2002-09-30 Fernando Nasser <fnasser@redhat.com>
812 * disasm.c: New file.
813 * disasm.h: New file.
814 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
815 (compare_lines): Ditto.
817 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
819 (do_assembly_only): Ditto.
820 (do_disassembly): Renamed to gdb_disassembly and moved to
821 disasm.c. Sdded uiout argument.
822 * Makefile.in: Add new files. Reorder SFILES list. Update
823 dependencies. Include libgdb.a later in the insight executable.
825 2002-09-29 Andrew Cagney <ac131313@redhat.com>
827 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
828 bfd/elf64-alpha-fbsd.c.
830 2002-09-29 Andrew Cagney <ac131313@redhat.com>
832 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
835 2002-09-29 Andrew Cagney <ac131313@redhat.com>
837 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
839 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
841 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
842 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
843 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
844 (S_msg_sig_post_reply): Ditto.
846 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
848 * sh-tdep.c (sh_use_struct_convention): Use definition according
850 (sh_push_arguments): Store in register with correct endianess.
851 (sh_default_store_return_value): Ditto.
852 (sh_gdbarch_init): Set sizeof long double to 8.
854 2002-09-27 Mark Kettenis <kettenis@gnu.org>
856 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
857 Fix some whitespace problems.
859 2002-09-27 David Carlton <carlton@math.stanford.edu>
861 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
862 (mcore-tdep.o): Ditto.
863 (ns32k-tdep.o): Ditto.
864 (ns32knbsd-tdep.o): Ditto.
867 * cris-tdep.c: #include "gdb_string.h"
868 * mcore-tdep.c: Ditto.
869 * ns32k-tdep.c: Ditto.
870 * ns32knbsd-tdep.c: Ditto.
874 2002-09-27 David Carlton <carlton@math.stanford.edu>
876 * config/djgpp/fnchange.lst: Add entries for
877 gdb/testsuite/gdb.c++/m-static files.
879 2002-09-27 Jim Wilson <wilson@redhat.com>
881 * MAINTAINERS: Add myself to the Write After Approval list.
883 2002-09-26 Martin M. Hunt <hunt@redhat.com>
885 * mips-tdep.c (find_proc_desc): Initialize startaddr.
888 2002-09-26 Andrew Cagney <ac131313@redhat.com>
890 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
893 2002-09-26 Andrew Cagney <ac131313@redhat.com>
895 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
896 (rs6000_struct_return_address): Delete variable.
897 (rs6000_store_struct_return): Update.
898 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
899 deprecated_extract_struct_value_address.
900 (rs6000_frame_align): New function.
901 (rs6000_gdbarch_init): Set frame_align.
903 2002-09-26 Andrew Cagney <ac131313@redhat.com>
905 From Grace Sainsbury <graces@redhat.com>:
906 * Makefile.in (gdbtk-main.o): New target.
909 (main.o): Update dependencies.
910 (gdb$(EXEEXT)): Add gdb.o.
911 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
912 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
913 (SUBDIR_GDBTK_CLEAN): Set.
914 (install-gdbtk): Install the insight binary.
915 (uninstall-gdbtk): New target.
916 (all-gdbtk, clean-gdbtk): New rule.
917 * top.c (use_windows): Default to zero.
918 * main.c: Include "main.h".
920 (struct captured_main_args): Delete.
921 (gdb_main): New function.
925 2002-09-25 Andrew Cagney <cagney@redhat.com>
927 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
928 (frame_map_regnum_to_name): New function.
929 (frame_map_name_to_regnum): New function.
930 * frame.h (frame_map_name_to_regnum): Declare.
931 (frame_map_regnum_to_name): Declare.
932 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
933 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
934 * parse.c: Do not include "builtin-regs.h".
935 (target_map_name_to_register): Delete function.
936 (write_dollar_variable): Use frame_map_name_to_regnum.
937 * parser-defs.h (target_map_name_to_register): Delete declaration.
938 * expprint.c: Include "frame.h".
939 (print_subexp): Use frame_map_regnum_to_name.
940 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
941 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
943 2002-09-25 Andrew Cagney <ac131313@redhat.com>
945 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
946 wasn't saved, and the next innermost frame is a dummy, return the
947 dummy frame's link register.
949 2002-09-24 Jim Blandy <jimb@redhat.com>
952 * main.c (captured_main): Add a `break' after the case for 'b'.
954 2002-09-24 Keith Seitz <keiths@redhat.com>
956 * varobj.c (c_type_of_child): Use get_target_type instead
959 2002-09-22 Fernando Nasser <fnasser@redhat.com>
961 * source.c (get_current_or_default_source_symtab_and_line): Remove
963 (set_default_source_symtab_and_line): New function. Attempts to
964 determine a source file to list lines from if one is not currently
966 (get_current_source_symtab_and_line): Initialize sal.pc and
968 (set_current_source_symtab_and_line): Mark argument as const.
969 * source.h: Update declarations and comments.
970 * linespec.c (decode_line_1): Replace call to removed routine above.
971 * stack.c (print_frame_info_base): Ditto.
972 * cli/cli-cmds.c (edit_command): Ditto.
973 (list_command): Ditto.
975 2002-09-22 Fernando Nasser <fnasser@redhat.com>
977 * source.c (get_current_or_default_source_symtab_and_line): Initialize
978 sal.pc and sal.end fields.
979 (get_current_or_default_source_symtab_and_line): Ditto.
980 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
981 so we do not cause a new source symtab to be searched for (reverting an
982 unintentional change from the 2002-09-20 patch).
983 * scm-lang.c (scm_unpac): Ditto.
985 2002-09-21 Andrew Cagney <cagney@redhat.com>
987 * complaints.c (symfile_explanations): Remove new-line from
988 ``isolated_message''.
989 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
990 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
992 2002-09-20 Nick Clifton <nickc@redhat.com>
994 * NEWS: Announce that V850EA ISA is no longer supported.
995 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
997 2002-09-20 David Carlton <carlton@math.stanford.edu>
999 * Makefile.in (c-lang.o): Correct dependencies.
1000 (utils.o): Gather dependencies.
1002 * c-lang.c: #include "gdb_string.h"
1004 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1006 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1007 * cli/cli-cmds.c (list_command): New function. Implements the new
1009 (_init_cli_cmds): Add new command definition.
1010 * gdb.1: Document edit command.
1011 * doc/gdb.texinfo: Document edit command.
1013 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1015 * source.c: Make global variables current_source_symtab and
1016 current_source_line static.
1017 (list_command): Moved to cli/cli-cmds.c.
1018 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1019 (get_first_line_listed): New accessor function.
1020 (get_lines_to_list): New accessor function.
1021 (get_current_source_symtab_and_line): New function. Retrieves the
1022 position in the source code that we consider current.
1023 (get_current_or_default_source_symtab_and_line): New function.
1024 Like the above but attempts to determine a default position if one
1025 is not currently defined.
1026 (set_current_source_symtab_and_line): New function. Sets the source
1027 code position considered current and returns the previously set one.
1028 (clear_current_source_symtab_and_line): Reset stored information about
1029 a current source line.
1030 (_initialize_source): Remove registration for the "list" command and
1032 * source.h: Add declarations for the new functions above.
1033 * symtab.h: Remove declarations for the global variables mentioned
1035 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1036 obtain current source line.
1037 * linespec.c (decode_line_1): Ditto.
1038 * macroscope.c (default_macro_scope): Ditto.
1039 * scm-lang.c (scm_unpac): Ditto.
1040 * stack.c (print_frame_info_base): Ditto.
1041 * symfile.c (clear_symtab_users): Ditto.
1042 * symtab.c (decode_line_spec): Ditto.
1043 * cli/cli-cmds.c (list_command): Moved here from source.c.
1044 (ambiguous_line_spec): Moved here from source.c.
1045 (_init_cli_cmds): Add definition for "list" and its alias.
1046 * Makefile.in: Update dependencies.
1048 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1050 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1051 with what gcc thinks is correct.
1053 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1055 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1056 multiple register push instruction.
1058 2002-09-19 Jim Blandy <jimb@redhat.com>
1060 Add support for distinct host and target character sets.
1061 * charset.c, charset.h: New files.
1062 * c-exp.y: #include "charset.h".
1063 (yylex): Convert character and string literals to the target
1064 character set, before returning them as the semantic value of the
1066 * c-lang.c: #include "charset.h".
1067 (c_emit_char): Use charset-specific methods to recognize
1068 characters with backslash escape forms, to decide which characters
1069 to print literally and which to print using numeric escape
1070 sequences, and to convert target characters to host characters
1072 * utils.c: #include "charset.h".
1073 (no_control_char_error): New function.
1074 (parse_escape): Use charset-specific methods to recognize
1075 backslash escapes, parse `control character' notation, and convert
1076 characters from the host character set to the target character set.
1077 * configure.in: Set the default host character set.
1078 Check where to find iconv, and what its argument types might be.
1079 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1080 * Makefile.in (SFILES): List charset.c.
1081 (COMMON_OBS): List charset.o.
1082 (charset.o): New rule.
1083 (charset_h): New header dependency variable.
1084 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1085 (LIBICONV): New variable, set by configure.
1086 (CLIBS): Include $(LIBICONV) here.
1087 * aclocal.m4, config.in, configure: Regenerated.
1089 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1091 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1094 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1096 * gdb_mbuild.sh: New file.
1098 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1100 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1102 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1104 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1105 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1106 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1107 valops.c, value.h: Revert previous change.
1109 2002-09-18 Michael Snyder <msnyder@redhat.com>
1111 Preliminary support for Objective-C:
1112 * defs.h (language_objc): New enum value.
1113 (puts_filtered_tabular): Declaration only, exported from utils.c.
1114 (skip_quoted): Delete, declared in completer.h.
1115 * c-exp.y: Include completer.h.
1118 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1119 New operator enum values.
1120 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1121 * language.c (binop_result_type): Handle language_objc case.
1122 (integral_type, character_type, string_type, boolean_type,
1123 structured_type, binop_type_check): Ditto.
1124 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1125 (struct objc_specific): Add to general_symbol_info.
1126 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1127 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1128 * parser-defs.h (struct objc_class_str): New struct type.
1129 (start_msglist, end_msglist, add_msglist): Declaration only,
1130 exported from objc-lang.c.
1131 * value.h (value_of_local, value_nsstring,
1132 call_function_by_hand_expecting_type): Exported from valops.c.
1133 * valops.c (find_function_addr): Export.
1134 (call_function_by_hand_expecting_type): New function.
1135 (value_of_local): New function.
1136 * symfile.c (init_filename_language_table): Add ".m" extension
1138 * utils.c (puts_filtered_tabular): New function.
1139 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1140 (set/show demangle): Extend help-string to refer to ObjC.
1141 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1142 * stabsread.c (symbol_reference_defined): Objective-C symbols
1143 may contain colons: make allowances when scanning stabs strings
1145 (objc_find_colon): New function.
1146 * printcmd.c (address_info): If language == objc then print
1147 "self" instead of "this".
1148 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1149 OP_NSSTRING, and OP_SELF.
1150 (prefixify_subexp): Ditto.
1151 * source.c (print_source_lines): Mention objc in comment.
1152 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1155 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1157 * complaints.h: Update copyright.
1158 (struct complaints): Declare.
1159 (struct complaint): Make `message' constant.
1160 (internal_complaint): Declare.
1161 (complaint): Declare.
1162 (complaint_root): Delete declaration.
1163 (symfile_complaints): Delete declaration.
1164 (struct complaints): Add opaque declaration.
1165 (clear_complaints): Add a complaints parameter.
1166 * complaints.c: Update copyright.
1167 (enum complaint_series): Define.
1168 (complaint_root): Delete.
1169 (struct complaints): Define.
1170 (complaint_sentinel, symfile_complaint_book): New variables.
1171 (symfile_explanations, symfile_complaints): New variables.
1173 (get_complaints): New function.
1174 (vcomplaint): New function.
1175 (complaint): New function.
1176 (internal_complaint): New function.
1177 (complain): Call vcomplain with symfile_complaint.
1178 (clear_complaints): Rewrite.
1179 (_initialize_complaints): Use add_setshow_command.
1180 * Makefile.in (complaints.o): Update dependencies.
1181 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1182 to call to clear_complaints.
1183 (new_symfile_objfile, reread_symbols): Ditto.
1184 (oldsyms_complaint): Delete.
1185 (empty_symtab_complaint, unknown_option_complaint): Delete.
1186 (free_named_symtabs): Use complaint instead of complain.
1188 2002-09-18 Michael Snyder <msnyder@redhat.com>
1190 Contributed by Apple Computer, Inc. Merged with current sources
1191 by Adam Fedor <fedor@doc.com> [cagney].
1193 * objc-lang.c: First clean-up round: comments, indentation.
1194 * objc-lang.h: Ditto.
1195 * objc-lang.y: Ditto.
1197 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1199 * maint.c (maintenance_internal_error): Print the parameter as the
1201 (maintenance_internal_warning): New function.
1202 (_initialize_maint_cmds): Add command `maint internal-warning'.
1204 * defs.h (internal_warning, internal_vwarning): Declare.
1205 * utils.c (struct internal_problem): Define.
1206 (internal_vproblem): New function.
1207 (internal_warning): New function.
1208 (internal_vwarning): New function.
1209 (internal_warning_problem, internal_error_problem): New variables.
1210 (internal_verror): Just call internal_vproblem.
1212 2002-09-18 Michael Snyder <msnyder@redhat.com>
1214 * objc-lang.c: New file, support for Objective-C.
1215 Preliminary check-in, not yet integrated into gdb.
1216 * objc-lang.h: New file.
1217 * objc-exp.y: New file.
1219 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1221 * infrun.c (signal_stop_update): Convert definition to ISO C.
1222 (signal_print_update): Ditto.
1223 (signal_pass_update): Ditto.
1224 * inflow.c (terminal_save_ours): Ditto.
1226 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1229 * config/djgpp/fnchange.lst: Handle name clashes between
1230 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1233 * i386-linux-tdep.h: Fix tipo.
1235 2002-09-18 Adam Fedor <fedor@gnu.org>
1237 * MAINTAINERS: Add myself to the Write After Approval list.
1239 2002-09-18 Jim Blandy <jimb@redhat.com>
1241 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1242 texthigh and textlow to reader-specific structs caused
1243 objfile_relocate to miss them. This is fixable, but the work that
1244 the change was supposed to prepare GDB for never got done anyway.
1246 2002-09-18 David Carlton <carlton@math.stanford.edu>
1248 * MAINTAINERS: Alphabetize Write After Approval list.
1250 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1253 * values.c (value_static_field): Call read_var_value.
1255 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1257 * valops.c (hand_function_call): Align the initial stack pointer
1258 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1259 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1261 * mips-tdep.c (mips_frame_align): New function.
1262 (mips_gdbarch_init): Set frame_align.
1263 * gdbarch.sh (FRAME_ALIGN): New method.
1264 * gdbarch.h, gdbarch.c: Re-generate.
1266 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1268 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1271 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1273 * NEWS: Mention that MIPS $fp behavior changed.
1274 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1275 reference to FP_REGNUM.
1276 (mipsnbsd_cannot_store_register): Ditto.
1277 * mips-linux-nat.c: Update copyright.
1278 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1279 (mips_linux_cannot_store_register): Ditto.
1280 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1281 * config/mips/tm-mips.h: Update copyright.
1282 (FP_REGNUM): Delete macro.
1283 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1284 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1285 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1286 (mips_r3041_reg_names, mips_r3051_reg_names)
1287 (mips_r3081_reg_names): Replace "fp" with "".
1290 2002-09-17 Theodore A. Roth <troth@verinet.com>
1292 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1293 generic_read_register_dummy() (PR gdb/703).
1294 (avr_push_return_address): #if 0 out unused vars.
1295 (avr_gdbarch_init): Enable use of avr_push_return_address().
1297 2002-09-17 Michael Snyder <msnyder@redhat.com>
1299 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1300 RTE will take care of it.
1302 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1304 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1305 invalid, return SP_REGNUM.
1307 2002-09-17 Michael Snyder <msnyder@redhat.com>
1309 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1310 point registers without sign extension.
1312 2002-09-17 Andrew Cagney <cagney@redhat.com>
1314 * blockframe.c (deprecated_read_register_dummy): Rename
1315 generic_read_register_dummy.
1316 * frame.c (frame_unwind_signed_register): New function.
1317 (frame_unwind_unsigned_register): New function.
1318 * frame.h (frame_unwind_signed_register): Declare.
1319 (frame_unwind_unsigned_register): Declare.
1320 (deprecated_read_register_dummy): Rename
1321 generic_read_register_dummy.
1323 * h8300-tdep.c (h8300_frame_chain): Update.
1324 (h8300_frame_saved_pc): Update.
1325 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1326 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1327 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1328 (s390_frame_chain): Update.
1329 * v850-tdep.c (v850_find_callers_reg): Update.
1330 (v850_frame_saved_pc): Update.
1331 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1332 (m32r_find_callers_reg): Update.
1333 (m32r_frame_saved_pc): Update.
1334 * sh-tdep.c (sh_find_callers_reg): Update.
1335 (sh64_get_saved_pr): Update.
1336 (sh_init_extra_frame_info): Update.
1337 (sh_init_extra_frame_info): Update.
1338 (sh64_init_extra_frame_info): Update.
1339 (sh64_init_extra_frame_info): Update.
1340 * mcore-tdep.c (mcore_find_callers_reg): Update.
1341 (mcore_frame_saved_pc): Update.
1342 (mcore_init_extra_frame_info): Update.
1343 * i386-tdep.c (i386_frame_saved_pc): Update.
1344 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1345 (ia64_init_extra_frame_info): Update.
1346 (ia64_init_extra_frame_info): Update.
1347 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1348 * cris-tdep.c (cris_init_extra_frame_info): Update.
1349 * avr-tdep.c (avr_frame_chain): Update.
1350 (avr_init_extra_frame_info): Update.
1351 (avr_frame_saved_pc): Update.
1352 * arm-tdep.c (arm_find_callers_reg): Update.
1353 (arm_init_extra_frame_info): Update.
1354 (arm_frame_saved_pc): Update.
1356 2002-09-17 Tom Tromey <tromey@redhat.com>
1358 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1361 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1363 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1364 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1366 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1369 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1371 * osfsolib.c: Remove file, replaced by solib-osf.c.
1372 * Makefile.in: Remove compilation rules for osfsolib.c.
1374 2002-09-16 David Carlton <carlton@math.stanford.edu>
1376 * cp-valprint.c (cp_print_class_method): Correct args to
1377 check_stub_method_group.
1379 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1381 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1382 `set architecture'. Unify naming convention of functions.
1383 (h8300_skip_prologue): Improve prologue analysis.
1384 (h8300_push_arguments): Rewritten to more closely match GCC's
1385 bizarre argument-passing behavior, along with the comment describing
1387 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1388 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1389 sim, remote-e7000.c, remote-hms.c and remote.c
1391 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1393 * i386-tdep.c (gdb_print_insn_i386): Removed.
1394 (i386_print_insn): New function.
1395 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1396 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1399 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1401 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1404 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1406 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1407 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1408 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1410 2002-09-13 Christopher Faylor <cgf@redhat.com>
1412 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1414 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1416 * gdbtypes.c (check_stub_method): Make static.
1417 (check_stub_method_group): New function.
1418 * gdbtypes.h: Update prototypes.
1419 * cp-support.c: New file.
1420 * cp-support.h: New file.
1422 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1423 (update_method_name_from_physname): New function.
1424 (read_member_functions): Correct method names for operators
1425 and v3 constructors/destructors. Separate v2 constructors and
1427 * Makefile.in (stabsread.o): Update dependencies.
1428 (SFILES): Add cp-support.c.
1429 (COMMON_OBS): Add cp-support.o.
1430 (cp_support_h, cp-support.o): Add.
1432 * cp-valprint.c (cp_print_class_method): Call
1433 check_stub_method_group instead of check_stub_method. Remove
1435 * p-valprint.c (pascal_object_print_class_method): Likewise.
1436 * valops.c (search_struct_method): Likewise.
1437 (find_method_list, value_struct_elt_for_reference): Likewise.
1439 2002-09-13 Andrew Cagney <cagney@redhat.com>
1441 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1442 * gdbarch.h, gdbarch.c: Regenerate.
1444 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1446 * frame.c (find_saved_register): Delete function.
1447 * frame.h (find_saved_register): Delete declaration.
1450 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1452 * mips-tdep.c (read_next_frame_reg): Re-hack using
1453 frame_register_unwind.
1455 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1457 * mips-tdep.c (mips_get_saved_register): Re-hack using
1458 frame_register_unwind.
1460 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1462 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1463 vector. Will be useful for Interix.
1464 * gdbarch.h, gdbarch.c: Regenerate.
1466 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1467 name of the malloc function by NAME_OF_MALLOC.
1469 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1471 * value.h (find_function_in_inferior): Add const keyword to
1472 one of the parameters. Allows us to invoke this function with
1474 * valops.c (find_function_in_inferior): Likewise.
1476 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1478 * exec.c (xfer_memory): Fix compilation warning with old versions
1480 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1482 2002-09-12 David Carlton <carlton@math.stanford.edu>
1484 * symtab.h: Run through gdb_indent.h.
1485 Add 2002 to Copyright year list.
1487 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1489 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1491 * MAINTAINERS: Add myself to write after approval list.
1493 2002-09-11 J. Brobecker <brobecker@gnat.com>
1495 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1497 2002-09-11 J. Brobecker <brobecker@gnat.com>
1499 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1502 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1504 * procfs.c (do_detach): Clear current signal, not just fault.
1505 Corrects problem with breakpoint trap signal leaking to detached
1508 2002-09-10 Michael Snyder <msnyder@redhat.com>
1510 * buildsym.c (finish_block): Protect against null pointer.
1512 2002-09-10 Andrew Cagney <cagney@redhat.com>
1514 * infcmd.c (default_print_registers_info): Send all output to
1515 ``file'' instead of ``gdb_stdout''.
1517 2002-09-10 Michael Snyder <msnyder@redhat.com>
1519 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1520 LONGEST, and use signed register read (addresses are sign-
1523 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1525 * event-loop.c (gdb_do_one_event): Make public.
1526 * event-loop.h (gdb_do_one_event): Declare.
1528 2002-09-10 Jeff Law <law@redhat.com>
1530 * infttrace.c (child_resume): Simplify and rework to avoid
1533 2002-09-09 Fred Fish <fnf@intrinsity.com>
1535 * printcmd.c (print_scalar_formatted): "len" is the number of
1536 target bytes, NOT the number of target bits.
1538 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1540 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1541 * top.c (init_main): Set rl_terminal_name.
1543 2002-09-08 Aidan Skinner <aidan@velvet.net>
1545 * ada-lang.c (ada_array_bound, ada_type_match,
1546 _initialize_ada_language): Fix K&R definitions.
1547 * ada-tasks.c (get_current_task): Fix K&R definitions.
1548 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1550 2002-09-07 Christopher Faylor <cgf@redhat.com>
1552 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1555 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1557 * i386-tdep.c (i386_register_virtual_type,
1558 i386_register_convertible, i386_register_convert_to_virtual,
1559 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1560 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1561 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1562 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1563 Don't set push_arguments twice.
1565 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1566 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1567 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1568 sigtramp_end to NULL.
1569 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1571 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1573 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1576 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1577 * gdbarch.h, gdbarch.c: Re-generate.
1578 * blockframe.c (find_pc_sect_partial_function): Convert to use
1579 SIGTRAMP_START_P predicate.
1581 2002-09-05 Michael Snyder <msnyder@redhat.com>
1583 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1584 generic_dummy_frame method and old method. Also distinguish
1585 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1586 (arm_extract_return_value): Use new regcache method.
1588 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1589 adjustment that doesn't conform to the ABI.
1590 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1591 saved regcache, not from current regcache.
1593 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1595 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1598 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1600 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1601 if arm_apcs_32 is false.
1603 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1605 GDB 5.3 branch created.
1607 2002-09-03 Theodore A. Roth <troth@verinet.com>
1609 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1610 generic_unwind_get_saved_register.
1612 2002-09-03 David Carlton <carlton@math.stanford.edu>
1614 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1615 argument (PR gdb/653). Update call to smash_to_method_type.
1616 (read_structure_scope): Update call to dwarf2_add_member_fn.
1618 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1620 * x86-64-linux-tdep.c: Include gdb_string.h
1621 * x86-64-linux-nat.c: Ditto.
1623 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1625 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1626 when YYDEBUG is set to 1.
1627 * c-exp.y: Likewise.
1628 * f-exp.y: Likewise.
1629 * jv-exp.y: Likewise.
1630 * m2-exp.y: Likewise.
1631 * p-exp.y: Likewise.
1633 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1635 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1637 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1638 solib_svr4_fetch_link_map_offsets to
1639 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1640 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1641 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1642 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1643 solib-svr4.o, and solib-legacy.o.
1644 * config/i386/tm-nbsd.h: Include solib.h.
1646 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1648 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1649 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1650 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1651 comment noting that this needs its own target configuration.
1652 * config/i386/nbsd.mt: New file.
1653 * config/i386/nbsdaout.mt: Remove.
1654 * config/i386/nbsdelf.mt: Ditto.
1655 * config/i386/tm-nbsdaout.h: Ditto.
1657 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1659 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1660 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1661 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1663 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1664 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1665 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1667 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1669 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1670 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1671 * i386-tdep.h (i386bsd_init_abi): New prototype.
1672 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1673 function declaration.
1674 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1675 for NetBSD-a.out or NetBSD-ELF.
1676 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1677 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1678 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1679 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1681 (i386nbsd_pc_in_sigtramp): New function.
1682 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1683 i386nbsd_pc_in_sigtramp.
1684 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1685 and i386nbsdelf_init_abi OS ABI handlers.
1686 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1687 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1689 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1691 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1692 registers if the target really has them.
1694 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1696 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1699 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1701 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1703 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1704 (alphanbsd_skip_sigtramp_frame): New functions.
1705 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1706 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1707 to alphanbsd_sigcontext_addr.
1709 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1711 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1713 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1714 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1715 nbsd_pc_in_sigtramp.
1716 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1717 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1718 * nbsd-tdep.c: Include gdb_string.h.
1719 (nbsd_pc_in_sigtramp): New function.
1720 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1721 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1722 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1723 ppcnbsd_pc_in_sigtramp.
1724 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1725 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1726 shnbsd_pc_in_sigtramp.
1727 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1728 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1729 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1731 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1733 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1734 watchpoints to NULL.
1735 (insert_breakpoints): set val field of watchpoints if NULL.
1738 2002-08-29 Jim Blandy <jimb@redhat.com>
1740 * symtab.c (lookup_symbol_aux): In the cases where we find a
1741 minimal symbol of an appropriate name and use its address to
1742 select a symtab to read and search, use `name' (as passed to us)
1743 as the demangled name when searching the symtab's global and
1744 static blocks, not the minsym's name.
1746 2002-08-29 Keith Seitz <keiths@redhat.com>
1748 * stack.c (print_frame_info_base): Always set current_source_symtab
1749 and current_source_line.
1751 2002-08-29 Donn Terry <donnte@microsoft.com>
1753 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1755 2002-08-28 Keith Seitz <keiths@redhat.com>
1757 * stack.c (select_frame): Add FIXME concerning selected-frame
1759 (select_frame_command): Send selected-frame-level-changed
1760 event notification, but only if the level actually changed.
1761 (up_silently_base): Add selected-frame-level-changed event
1763 (down_silently_base): Likewise.
1765 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1767 * Makefile.in: Update dependencies for all gdb/*.c files.
1769 2002-08-27 Tom Tromey <tromey@redhat.com>
1771 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1772 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1773 Update dependencies.
1774 * i387-tdep.c: Include gdb_string.h.
1775 * osabi.c: Likewise.
1776 * i386-linux-nat.c: Likewise.
1777 * lin-lwp.c: Likewise.
1778 * ax-gdb.c: Likewise.
1779 * signals/signals.c: Likewise.
1780 * jv-valprint.c: Likewise.
1781 * p-lang.c: Likewise.
1782 * c-valprint.c: Likewise.
1783 * cp-abi.c: Likewise.
1785 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1787 * cli/cli-script.h (copy_command_lines): Export.
1788 * breakpoint.c: Include cli/cli-script.h.
1789 * Makefile.in (breakpoint.o): Update dependencies.
1791 2002-08-26 Michael Snyder <msnyder@redhat.com>
1793 * breakpoint.c (insert_breakpoints): Protect all references
1794 to 'process_warning'. Shorten long lines.
1796 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1798 * cli/cli-script.c (copy_command_lines): New function.
1799 * defs.h (copy_command_lines): Export.
1800 * testsuite/gdb.base/commands.exp: New tests for commands
1801 attached to a temporary breakpoint, and for commands that
1802 delete the breakpoint they are attached to.
1804 2002-08-26 Michael Snyder <msnyder@redhat.com>
1806 * breakpoint.c (bpstat_stop_status): Instead of copying the
1807 pointer to the breakpoint commands struct, make a new copy
1808 of the struct and point to that.
1809 (bpstat_clear): Free the commands struct.
1810 (bpstat_clear_actions): Free the commands struct.
1811 (bpstat_do_actions): Free the command actions. Also execute
1812 the local cleanups, instead of deleting them.
1813 (delete_breakpoint): Leave the commands field of the bpstat
1814 chain alone -- it will be freed later.
1816 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1818 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1819 deleted in 2002-08-20 commit. This function is still used by
1822 2002-08-26 Keith Seitz <keiths@redhat.com>
1824 * gdb-events.sh: Add selected-frame-level-changed event.
1825 * gdb-events.c: Regenerated.
1826 * gdb-events.h: Regenerated.
1828 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1831 * inflow.c (terminal_save_ours): New function to save terminal
1833 * inferior.h (terminal_save_ours): Declare.
1834 * target.c (debug_to_terminal_save_ours): New function.
1835 (cleanup_target): Defaults to_terminal_save_ours.
1836 (update_current_target): Inherit to_terminal_save_ours.
1837 (setup_target_debug): Set to_terminal_save_ours.
1838 * target.h (target_terminal_save_ours): New to save terminal settings.
1839 (target_ops): New member to_terminal_save_ours.
1840 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1841 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1842 * inftarg.c (init_child_ops): Likewise.
1843 * m3-nat.c (init_m3_ops): Likewise.
1844 * procfs.c (init_procfs_ops): Likewise.
1845 * wince.c (init_child_ops): Likewise.
1846 * win32-nat.c (init_child_ops): Likewise.
1847 * sol-thread.c (init_sol_thread_ops): Likewise.
1849 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1851 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1852 use regcache_* functions.
1853 (i386_gdbarch_init): Set store_return_value instead of
1854 deprecated_store_return_value.
1856 * regcache.c (regcache_raw_write_signed,
1857 regcache_raw_write_unsigned): New functions.
1858 * regcache.h (regcache_raw_write_signed,
1859 regcache_raw_write_unsigned): New prototypes.
1861 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1863 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1864 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1865 source file dependencies. Cleanup corresponding generator rules.
1867 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1869 * regcache.h (register_offset_hack): Declare.
1870 (regcache_cooked_read_using_offset_hack): Declare.
1871 (regcache_cooked_write_using_offset_hack): Declare.
1873 * regcache.c (register_offset_hack): New function.
1874 (regcache_cooked_read_using_offset_hack): New function.
1875 (regcache_cooked_write_using_offset_hack): New function.
1876 (regcache_dump): Check that the registers, according to their
1877 offset, are packed hard against each other.
1878 (cooked_xfer_using_offset_hack): New function.
1880 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1882 * regcache.c (struct regcache_descr): Add field register_type.
1883 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1885 (init_regcache_descr): Initialize register_type. Pass the descr
1886 to init_legacy_regcache_descr. Use register_type instead of
1887 REGISTER_VIRTUAL_TYPE.
1888 (register_type): New function.
1889 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1890 * regcache.h (register_type): Declare.
1892 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1894 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1895 instead of deprecated_store_return_value. Fix fallout from
1896 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1898 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1900 * regcache.c (max_register_size): New function.
1901 (init_legacy_regcache_descr): Ensure that max_register_size is
1902 large enough for REGISTER_VIRTUAL_SIZE.
1903 * regcache.h (max_register_size): Declare.
1905 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1907 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1909 (e500_extract_return_value): Change type of valbuf pointer to
1912 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1914 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1917 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1918 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1919 long long) to prevent compiler warning on 64-bit systems.
1921 2002-08-23 Andrew Cagney <cagney@redhat.com>
1923 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1924 (DEPRECATED_STORE_RETURN_VALUE): New method.
1925 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1926 * gdbarch.h, gdbarch.c: Re-generate.
1928 * values.c (set_return_value): Pass current_regcache to
1930 * arch-utils.h (legacy_store_return_value): Declare.
1931 * arch-utils.c (legacy_store_return_value): New function.
1932 (legacy_extract_return_value): Update parameters.
1934 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1936 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1937 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1938 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1939 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1940 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1941 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1942 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1943 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1944 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1945 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1948 * i386-tdep.c (i386_extract_return_value): Update.
1949 * arch-utils.c (legacy_extract_return_value): Update.
1950 * frv-tdep.c (frv_gdbarch_init): Update.
1951 * cris-tdep.c (cris_gdbarch_init): Update.
1952 * d10v-tdep.c (d10v_gdbarch_init): Update.
1953 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1954 * m68k-tdep.c (m68k_gdbarch_init): Update.
1955 * mcore-tdep.c (mcore_gdbarch_init): Update.
1956 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1957 * s390-tdep.c (s390_gdbarch_init): Update.
1958 * sparc-tdep.c (sparc_gdbarch_init): Update.
1959 * sh-tdep.c (sh_gdbarch_init): Update.
1960 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1961 * v850-tdep.c (v850_gdbarch_init): Update.
1962 * avr-tdep.c (avr_gdbarch_init): Update.
1963 * ia64-tdep.c (ia64_gdbarch_init): Update.
1964 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1965 * vax-tdep.c (vax_gdbarch_init): Update.
1966 * alpha-tdep.c (alpha_gdbarch_init): Update.
1967 * arm-tdep.c (arm_gdbarch_init): Update.
1968 * mips-tdep.c (mips_gdbarch_init): Update.
1969 * i386-tdep.c (i386_gdbarch_init): Update.
1971 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1973 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1974 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1976 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1978 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1981 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1983 * infrun.c (handle_inferior_event): Move a comment outside of a
1984 function call, in order to avoid indent reformatting this part
1985 of the code in an unreadable way.
1987 2002-08-23 Grace Sainsbury <graces@redhat.com>
1989 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1990 when breakpoints fail. Move general breakpoint error messages to
1992 * breakpoint.c (insert_breakpoints): Change warnings when
1993 breakpoints are nto inserted to specify the type. Remove call to
1994 memory_error when hardware breakpoints can't be inserted. Remove
1995 multiple calls to warning so all messages are sent to the user at
1997 (delete_breakpoints): Make insert error messsages more explicit.
1999 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2001 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2002 gdbserver/ChangeLog.
2004 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2006 * i386-tdep.c: Include "objfiles.h".
2007 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2008 skip_trampoline_code.
2009 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2010 (CPLUS_MARKER): Define to '.'.
2012 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2014 (linux_corefile_thread_callback): Increase args->num_notes.
2015 (linux_make_note_section): Initialize thread_args.num_notes, and
2016 use it to determine whether notes for any threads were created.
2018 2002-08-23 Donn Terry <donnte@microsoft.com>
2020 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2021 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2023 (write_with_trace): Conditionalize out the switch branch handling
2024 PCSHOLD if the corresponding macro is not defined. Likewise for
2025 PRSABORT and PRSTOP.
2026 This change will be needed by the Interix port.
2028 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2030 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2031 write_register wherever possible instead of manipulating the
2032 register bytes directly.
2033 Assign VALUE_CONTENTS to a variable and use that.
2034 The GPR numbers are now dependent on the architecture.
2036 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2038 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2040 (skip_prologue): Add support for BookE/e500 instructions.
2041 (e500_extract_return_value): New function.
2042 (frame_get_saved_regs): Add support for saving ev registers and
2044 (e500_store_return_value): New function.
2045 (rs6000_gdbarch_init): Move up default intializations of
2046 deprecated_extract_return_value and store_return_value. Overwrite
2047 init of store_return_value with e500 specific version.
2048 Set extract_return_value for e500.
2050 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2052 * blockframe.c (generic_call_dummy_register_unwind): Use
2053 regcache_cooked_read to catch cases in which the variable is
2054 stored in a pseudo register.
2056 2002-08-22 Andrew Cagney <cagney@redhat.com>
2058 * NEWS: Mention that the i960 has been made obsolete.
2059 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2061 (remote-nrom.o): Obsolete target.
2062 (remote-nindy.o, i960-tdep.o): Ditto.
2063 * remote-nrom.c: Make file obsolete.
2064 * remote-nindy.c, remote-vx960.c: Ditto.
2065 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2066 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2067 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2068 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2069 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2070 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2071 i960-*-vxworks* obsolete.
2072 * MAINTAINERS: Note that the i960 is obsolete.
2074 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2076 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2077 detach to allow reinitialization.
2079 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2081 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2084 2002-08-22 Jim Blandy <jimb@redhat.com>
2086 * coffread.c (coff_symfile_read): Don't try to read the line
2087 number table from disk if the image file doesn't have a symbol
2088 table; we'll never actually look at the info anyway, and Windows
2089 ships DLL's with bogus file offsets for the line number data.
2091 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2093 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2096 2002-08-21 Michael Snyder <msnyder@redhat.com>
2098 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2099 (MSYMBOL_SIZE): Replace macro with function.
2100 (DEFAULT_MIPS_TYPE): Delete unused macro.
2101 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2102 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2104 2002-08-21 Jim Blandy <jimb@redhat.com>
2106 * valops.c (value_cast): Simplify and correct logic for doing a
2107 static cast from a pointer to a base class to a pointer to a
2110 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2112 * infcmd.c (default_print_registers_info): Replace
2114 (registers_info): Use gdbarch_print_registers_info instead of
2116 * inferior.h (default_print_registers_info): Replace
2118 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2119 (DO_REGISTERS_INFO): Change to a predicate function.
2120 * gdbarch.h, gdbarch.c: Regenerate.
2122 2002-08-21 Keith Seitz <keiths@redhat.com>
2124 * gdb-events.sh: Add target-changed event.
2125 * gdb-events.c: Regenerated.
2126 * gdb-events.c: Regenerated.
2127 * valops.c (value_assign): Add target-changed event notification
2128 to inlval_register, lval_memory, and lval_reg_frame_relative.
2130 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2132 * NEWS: Add an entry regarding the improvement of the next/step
2133 operation on Alpha Tru64 multi-processor machines.
2135 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2137 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2139 * Makefile.in: Update all _h macro definitions.
2140 * Makefile.in (install-gdbtk): Move to install section.
2141 (rdi-share/libangsd.a): Move to end of file.
2143 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2145 * frame.c (frame_register_unwind): When a register, set addrp to
2146 the register's byte.
2148 2002-08-20 Michael Snyder <msnyder@redhat.com>
2150 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2151 used locally, so move them from the target machine header to here.
2152 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2153 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2155 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2157 2002-08-20 Andrew Cagney <cagney@redhat.com>
2159 * NEWS: Mention that the Apollo line was made obsolete.
2160 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2161 m68*-hp-hpux* obsolete.
2162 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2163 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2164 * buildsym.c (make_blockvector): Make static.
2165 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2166 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2167 (ALLDEPFILES): Remove dstread.c.
2168 (dstread.o): Obsolete make rule.
2169 * dstread.c: Makefile obsolete.
2171 * config/m68k/hp300hpux.mt: Ditto.
2172 * config/m68k/hp300hpux.mh: Ditto.
2173 * config/m68k/hp300bsd.mt: Ditto.
2174 * config/m68k/hp300bsd.mh: Ditto.
2175 * config/m68k/apollo68b.mt: Ditto.
2176 * config/m68k/apollo68v.mh: Ditto.
2177 * config/m68k/apollo68b.mh: Ditto.
2179 2002-08-20 Michael Snyder <msnyder@redhat.com>
2181 * mips-tdep.c (mips_in_return_stub): Make static.
2182 (mips_gdbarch_init): Set in_solib_return_trampoline.
2183 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2185 2002-08-20 Michael Snyder <msnyder@redhat.com>
2187 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2188 * gdbarch.c, gdbarch.h: Regenerate.
2189 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2191 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2193 2002-08-20 Michael Snyder <msnyder@redhat.com>
2195 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2196 (mips_gdbarch_init): Set skip_trampoline_code,
2197 in_solib_call_trampoline.
2198 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2199 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2201 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2203 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2205 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2206 vector type for ev registers.
2207 (e500_pseudo_register_read): New function.
2208 (e500_pseudo_register_write): New function.
2209 (e500_dwarf2_reg_to_regnum): New function.
2210 (PPC_UISA_NOFP_SPRS): New macro.
2211 (PPC_EV_REGS): New macro.
2212 (PPC_GPRS_PSEUDO_REGS): New macro.
2213 (registers_e500): New register set for e500.
2214 (variants): Add e500 variant.
2215 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2216 before setting architectural dependent variations. Initialize ev
2217 registers numbers. Add case for e500 architecture. Set the
2218 number of pseudo registers.
2220 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2222 * rs6000-tdep.c: Clean up comments.
2224 2002-08-20 Andrew Cagney <cagney@redhat.com>
2226 * h8300-tdep.c: Re-indent file.
2228 2002-08-20 Jim Blandy <jimb@redhat.com>
2230 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2233 2002-08-20 Keith Seitz <keiths@redhat.com>
2235 * breakpoints.c (watch_command_1): Use internal breakpoint
2236 when setting a watchpoint_scope breakpoint.
2238 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2240 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2241 (build_builtin_type_vec64i): Ditto.
2242 (build_builtin_type_vec128): Ditto.
2243 (build_builtin_type_vec128i): Ditto.
2245 2002-08-19 Michael Snyder <msnyder@redhat.com>
2247 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2248 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2249 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2250 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2251 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2252 CALL_DUMMY_ADDRESS): Delete.
2253 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2254 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2255 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2256 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2257 push_return_address.
2258 (mips_register_raw_size, mips_eabi_use_struct_convention,
2259 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2260 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2261 mips_init_extra_frame_info, mips_eabi_push_arguments,
2262 mips_n32n64_push_arguments, mips_push_return_address,
2263 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2264 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2266 2002-08-19 Michael Snyder <msnyder@redhat.com>
2268 * mips-tdep.c (mips_frame_num_args): New function.
2269 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2270 frame_saved_pc, frame_args_address, frame_locals_address,
2271 frame_num_args, and frame_args_skip.
2272 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2273 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2274 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2275 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2277 2002-08-20 Michael Snyder <msnyder@redhat.com>
2279 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2280 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2281 * mips-tdep.c (mips_store_struct_return): New function.
2282 (mips_extract_struct_value_address): New function.
2283 (mips_gdbarch_init): Set store_struct_return and
2284 extract_struct_value_address.
2286 2002-08-20 David Carlton <carlton@math.stanford.edu>
2288 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2289 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2290 (read_file_scope): Check that line_header is nonzero before
2291 decoding macro information.
2293 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2295 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2296 flag the general-purpose registers as floating-point on targets
2297 that don't support the floating-point registers.
2299 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2301 * rs6000-tdep.c (altivec_register_p): Delete.
2302 (rs6000_do_altivec_registers): Delete.
2303 (rs6000_altivec_registers_info): Delete.
2304 (rs6000_do_registers_info): Delete.
2305 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2306 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2308 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2310 * infcmd.c (do_registers_info): Print vector registers in hex
2312 (print_vector_info): Check that printing registers
2314 (print_float_info): Ditto.
2316 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2318 * mips-tdep.c (mips_gdbarch_init): Update.
2319 (mips_o32_extract_return_value): Rewrite.
2320 (mips_o32_store_return_value): Rewrite.
2321 (mips_o32_xfer_return_value): New function.
2322 (mips_xfer_register): Tweak debug print message. Allow for
2323 buf_offset when dumping the value transfered.
2325 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2327 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2328 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2329 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2330 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2331 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2333 2002-08-14 Michael Snyder <msnyder@redhat.com>
2335 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2337 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2339 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2341 (P): New macro to define a register as a pseudo register.
2342 (R, R4, R8, R16, FR32, R64, R0): Updated.
2343 (struct variant): Add new fields for number of pseudo registers
2344 and number of total registers.
2345 (tot_num_registers): New macro replacing....
2346 (num_registers): ...deleted macro.
2347 (num_registers): New function.
2348 (num_pseudo_registers): New function.
2349 (variants): Update all variants to intialize new fields correctly.
2350 Postpone initialization of number of pseudo regs and real regs.
2351 (init_variants): New function.
2352 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2355 2002-08-19 David Carlton <carlton@math.stanford.edu>
2357 * valops.c (search_struct_field): Change error message to treat
2358 return value of 0 from value_static_field as meaning that field is
2360 (value_struct_elt_for_reference): Ditto.
2361 * values.c (value_static_field): Treat an unresolved location the
2362 same as a nonexistent symbol. Fix PR gdb/635.
2363 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2364 enclosed. Fix PR gdb/574.
2365 * MAINTAINERS: Add self to Write After Approval list.
2367 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2369 * mips-tdep.c (mips_xfer_register): New function.
2370 (mips_n32n64_extract_return_value): Rewrite.
2371 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2372 instead of deprecated_extract_return_value.
2374 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2376 * rs6000-tdep.c (TDEP): Delete macro.
2377 (branch_dest): Replace use of TDEP macro with its body.
2378 (rs6000_pop_frame): Ditto.
2379 (rs6000_push_arguments): Ditto.
2380 (rs6000_skip_trampoline_code): Ditto.
2381 (rs6000_frame_saved_pc): Ditto.
2382 (rs6000_frame_chain): Ditto.
2383 (rs6000_register_name): Ditto.
2384 (rs6000_register_byte): Ditto.
2385 (rs6000_register_raw_size): Ditto.
2386 (rs6000_register_virtual_type): Ditto.
2387 (rs6000_register_convertible): Ditto.
2388 (rs6000_convert_from_func_ptr_addr): Ditto.
2390 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2392 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2394 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2395 MIPS_LINUX_JB_ELEMENT_SIZE.
2396 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2397 for MAX_REGISTER_RAW_SIZE arrays.
2398 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2399 MIPS_LINUX_JB_ELEMENT_SIZE.
2401 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2403 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2405 2002-08-19 Aidan Skinner <aidan@velvet.net>
2407 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2408 ada-valprint.c ada-tasks.c.
2409 (YYFILES): Add ada-exp.y.
2410 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2411 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2412 (ada-exp.tab.o): New target.
2414 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2416 * regcache.c (regcache_xfer_part): New function.
2417 (regcache_raw_read_part): New function.
2418 (regcache_raw_write_part): New function.
2419 (regcache_cooked_read_part): New function.
2420 (regcache_cooked_write_part): New function.
2421 * regcache.h (regcache_raw_read_part): Declare.
2422 (regcache_raw_write_part): Declare.
2423 (regcache_cooked_read_part): Declare.
2424 (regcache_cooked_write_part): Declare.
2426 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2428 * remote.c (remote_open_1): Add async_p.
2429 (remote_async_open_1): Delete.
2430 (open_remote_target): Delete.
2431 (remote_open, extended_remote_open): Update calls to remote_open_1.
2432 (remote_async_open, extended_remote_async_open): Call
2433 remote_open_1 instead of remote_async_open_1.
2435 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2437 * blockframe.c: Fix a few coding standard violations.
2439 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2441 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2443 * config/i386/tm-i386sco5.h: ... here. File removed.
2444 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2446 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2447 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2448 (TM_FILE): Set to tm-i386.h.
2449 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2450 * config/i386/tm-i386v.h: Remove file.
2451 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2452 instead of "i386/tm-i386v.h".
2453 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2454 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2456 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2457 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2460 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2462 * config/i386/nm-i386v.h: Add protection against
2464 (i386_register_u_addr): Remove prototype.
2465 (register_u_addr): New prototype.
2466 (REGISTER_U_ADDR): Redefine accordingly.
2467 * i386v-nat.c: Improve several comments.
2468 (i386_register_u_addr): Change signature and rename to
2469 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2472 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2474 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2475 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2476 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2477 deprecated_extract_return_value.
2478 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2479 rename mips_o32o64_push_arguments.
2480 (mips_gdbarch_init): Update.
2481 (mips_extract_return_value): Delete.
2482 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2483 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2484 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2485 (mips_n32n64_extract_return_value): Clone
2486 mips_extract_return_value.
2487 (mips_store_return_value): Delete.
2488 (mips_o32_store_return_value): Clone mips_store_return_value.
2489 (mips_o64_store_return_value): Clone mips_store_return_value.
2490 (mips_eabi_store_return_value): Clone mips_store_return_value.
2491 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2493 2002-08-18 Aidan Skinner <aidan@velvet.net>
2495 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2496 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2498 2002-08-18 Aidan Skinner <aidan@velvet.net>
2500 * ada-lang.c: Run through gdb_indent.sh.
2501 * ada-lang.h: Run through gdb_indent.sh.
2502 * ada-tasks.c: Run through gdb_indent.sh.
2503 * ada-typeprint.c: Run through gdb_indent.sh.
2504 * ada-valprint.c: Run through gdb_indent.sh.
2506 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2508 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2511 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2513 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2515 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2516 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2518 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2519 write_register_gen instead of write_register_bytes.
2521 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2522 i[3456]-*-osf1mk* configurations have been made obsolete.
2523 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2524 i[3456]86-*-osf1mk* hosts obsolete.
2525 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2527 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2528 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2529 config/i386/i386m3.mt, config/i386/nm-m3.h,
2530 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2531 config/i386/i386mk.mh, config/i386/i386mk.mt,
2532 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2534 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2535 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2536 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2538 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2540 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2541 (hppa_value_returned_from_stack): Declare.
2542 (hppa_extract_return_value): Declare.
2543 * config/pa/hppa.mt: New file.
2544 * configure.tgt: Recognize hppa*-*-*.
2545 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2547 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2549 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2552 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2554 * top.c (gdb_rl_operate_and_get_next): Make sure
2555 operate-and-get-next functions correctly even when the history
2556 list is completely filled.
2558 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2560 * MAINTAINERS (Target Instruction Set Architectures): Rename
2561 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2562 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2563 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2564 already listed under Host/Native.
2566 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2567 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2570 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2572 * config/ia64/ia64.mt: New file.
2573 * config/alpha/alpha.mt: New file.
2574 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2575 ia64-linux-gnu. Mention that ia64-elf is broken.
2576 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2578 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2580 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2581 generic_func_frame_valid instead of func_frame_valid.
2583 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2585 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2586 procfs appears to be broken when debugging on multi-processor
2587 machines. So enable software single stepping in order to avoid
2588 using the procfs interface to do next/step operations, using
2589 internal breakpoints instead.
2591 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2592 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2593 make this pc address equal to the value it would have if the
2594 system stepping capability was used. Also set a new flag used
2595 to ensure that we don't readjust the PC one more time later.
2597 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2598 address by DECR_PC_AFTER_BREAK when software single step is
2599 in use for this architecture, as this has already been taken
2600 care of in handle_inferior_event().
2602 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2604 * infrun.c (handle_inferior_event): Minor reformatting, to make
2605 a rather long condition expression easier to read.
2607 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2609 * Makefile.in (gdbtk.o): Move to end of file.
2610 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2611 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2612 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2613 (gdbtk-wrapper.o, gdbres.o): Ditto.
2615 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2617 * Makefile.in (copying.o): Separate out compile rule.
2618 (hpux-thread.o, procfs.o, signals.o): Ditto.
2619 (v850ice.o, z8k-tdep.o): Ditto.
2620 (tui-file.o): Move to TUI section.
2621 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2622 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2624 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2626 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2627 skip_trampoline_code, for better namespace-proofing.
2629 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2631 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2633 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2635 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2637 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2638 signal, check whether we hit a breakpoint before checking for a
2639 single step breakpoint. Otherwise, GDB fails to notice that a
2640 breakpoint has been hit when stepping onto a breakpoint.
2642 2002-08-16 Keith Seitz <keiths@redhat.com>
2644 * gdb-events.sh (clear_gdb_event_hooks): New function.
2645 * gdb-events.c: Regenerate.
2646 * gdb-events.h: Regenerate.
2648 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2650 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2651 not_a_sw_breakpoint.
2652 * breakpoint.h (bpstat_stop_status): Add parameter names.
2654 2002-08-16 Grace Sainsbury <graces@redhat.com>
2656 * remote.c (remote_insert_hw_breakpoint)
2657 (remote_remove_hw_breakpoint): Fix calculation of length field
2660 2002-08-15 Michael Snyder <msnyder@redhat.com>
2662 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2663 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2664 (supply_fpregset): Ditto.
2666 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2667 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2668 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2669 (TARGET_READ_SP): Delete.
2670 (DO_REGISTERS_INFO): Delete.
2671 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2673 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2674 from macros to functions.
2676 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2677 (mips_register_convertible, mips_register_convert_to_virtual,
2678 mips_register_convert_to_raw): Make static.
2679 (mips_read_sp): New function.
2680 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2681 (mips_do_registers_info): Make static.
2682 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2683 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2684 (mips_register_convert_from_type, mips_register_convert_to_type):
2686 (mips_gdbarch_init): Set up function_start_offset,
2687 register_virtual_size, pc_in_sigtramp.
2689 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2691 * infcmd.c (vector_info): New function.
2692 (_initialize_infcmd): Add command "info vector".
2693 (print_vector_info): New function.
2695 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2696 * gdbarch.h, gdbarch.c: Regenerate.
2698 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2700 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2701 ``print_all''. Only print vector registers when ``print_all''.
2703 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2705 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2706 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2708 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2709 Add `args' parameter.
2710 * gdbarch.h, gdbarch.c: Regenerate.
2712 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2714 * infcmd.c (float_info): Call print_float_info.
2715 (print_float_info): New function. By default, print the
2716 floating-point registers.
2718 * arch-utils.h (default_print_float_info): Delete declaration.
2719 * arch-utils.c (default_print_float_info): Delete function.
2721 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2723 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2726 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2729 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2730 * configure.host: Make i[3456]86-*-aix host obsolete.
2731 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2732 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2733 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2734 config/i386/xm-i386aix.h: Make files obsolete.
2735 * i386aix-nat.c: Make file obsolete.
2736 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2737 (i386aix-nat.o): Make target obsolete.
2739 * config/i386/nm-gnu.h: Removed.
2740 * config/i386/nm-i386gnu.h: New file.
2741 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2742 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2744 * config/i386/tm-i386gnu.h: ... here. Removed.
2745 * config/i386/xm-i386gnu.h: Removed.
2746 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2747 (NAT_FILE): Set to nm-i386gnu.h.
2748 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2749 * i386-tdep.c: New file.
2750 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2751 (i386gnu-tdep.o): Specify dependencies.
2753 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2755 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2756 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2757 Adjust a few comments to reflect reality a bit closer.
2758 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2759 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2760 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2761 target_insert_watchpoint, target_remove_watchpoint):
2763 * config/i386/nm-i386sco5.h: ... here.
2764 (kernel_u_size): Add prototype. Improve a few comments and add
2765 protection against multiple inclusion.
2767 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2770 * uw-thread.c (SP_ARG0): Define if not already defined.
2771 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2773 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2775 * config/i386/tm-i386.h: Don't include "regcache.h".
2777 * i387-tdep.h (i387_print_float_info): New prototype.
2778 * i387-tdep.c (print_i387_value, print_i387_ext,
2779 print_i387_status_word, print_i387_control_word): Add `struct
2780 ui_file *' argument and use it for output.
2781 (i387_print_float_info): Renamed from i387_float_info. Add
2782 `struct gdbarch *' and `struct ui_file *' arguments and use the
2784 * i386-tdep.c: Include "i387-tdep.h".
2785 (i386_gdbarch_init): Set print_float_info.
2786 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2787 (FLOAT_INFO): Remove define.
2789 2002-08-13 Michael Snyder <msnyder@redhat.com>
2791 * mips-tdep.c (mips_push_arguments): Rename to
2792 mips_eabi_push_arguments, and tune for EABI.
2793 (MIPS_REGS_HAVE_HOME_P): Delete.
2794 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2795 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2796 Delete references to mips_regs_have_home_p.
2798 2002-08-14 Keith Seitz <keiths@redhat.com>
2800 * Makefile.in (install-gdbtk): Create insight plugin directory.
2801 Install plugins.tcl file.
2803 2002-08-14 Keith Seitz <keiths@redhat.com>
2805 * configure.in: Move SUBDIRS to near top of the file so that
2806 --enable options may add things to it.
2807 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2808 * configure: Regenerate.
2810 2002-08-13 Michael Snyder <msnyder@redhat.com>
2812 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2813 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2814 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2816 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2818 * vax-tdep.c (vax_get_saved_register): Delete function.
2819 (vax_gdbarch_init): Update.
2820 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2821 (ns32k_gdbarch_init): Update.
2822 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2823 (alpha_gdbarch_init): Update.
2825 2002-08-13 Andrew Cagney <cagney@redhat.com>
2827 * regcache.c (init_regcache_descr): Overallocate the
2828 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2829 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2831 (set_register_cached): Add range checking assertions. Use
2834 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2836 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2837 numbers for MMX registers.
2839 2002-08-13 Andrew Cagney <cagney@redhat.com>
2841 * i386-tdep.c (i386_gdbarch_init): Use
2842 generic_unwind_get_saved_register.
2844 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2846 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2847 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2849 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2850 Delete. Add comment regarding this now-deleted target method.
2852 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2854 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2855 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2856 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2857 real PC and the page number (if it's within the memory bank window).
2858 (m68hc11_pseudo_register_write): Likewise when saving.
2859 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2860 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2861 (m68hc11_register_raw_size): And use 32-bit for it.
2862 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2863 16K memory bank is used by the prog; also use the virtual pc.
2865 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2867 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2868 (m68hc11_gdbarch_init): Install it in gdbarch.
2869 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2870 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2871 (MSYMBOL_SIZE): New for documentation.
2872 (insn_return_kind): Enum to specify how a function returns.
2873 (frame_extra_info): Cleanup and record the return mode.
2874 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2875 register in address computation.
2876 (m68hc11_get_return_insn): New to obtain the return instruction used
2878 (m68hc11_frame_init_saved_regs): Take into account the return
2879 instruction used by the function for far and interrupt functions.
2880 (m68hc11_init_extra_frame_info): Take into account page register.
2881 (m68hc11_frame_args_address): Adjust according to the return mode.
2882 (show_regs): Print page register only when it's used.
2884 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2886 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2887 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2888 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2890 (m68hc11_register_raw_size): Likewise.
2892 2002-08-13 Andrew Cagney <cagney@redhat.com>
2894 * i386-tdep.c (i386_register_name): Handle mmx registers.
2895 (mmx_regnum_p): New function.
2896 (i386_mmx_names): New array.
2897 (mmx_num_regs): New variable.
2898 (i386_pseudo_register_read): New function.
2899 (i386_pseudo_register_write): New function.
2900 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2902 * regcache.c (regcache_raw_read_unsigned): New function.
2903 (regcache_raw_read_signed): New function.
2904 * regcache.h (regcache_raw_read_unsigned): Declare.
2905 (regcache_raw_read_signed): Declare.
2907 2002-08-13 Andrew Cagney <cagney@redhat.com>
2909 * regcache.c (regcache_raw_read_as_address): Delete function.
2910 (regcache_cooked_read_signed): New function.
2911 (regcache_cooked_read_unsigned): New function.
2912 * regcache.h (regcache_cooked_read_signed): Declare.
2913 (regcache_cooked_read_unsigned): Declare.
2914 (regcache_raw_read_as_address): Delete declaration.
2916 * blockframe.c (generic_read_register_dummy): Use
2917 regcache_cooked_read_unsigned.
2918 * i386-tdep.c (i386_extract_struct_value_address): Use
2919 regcache_cooked_read_unsigned.
2921 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2924 double sizes according to ELF ABI flags.
2925 (gdbarch_tdep): Record elf_flags.
2927 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2929 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2930 (m6812_prolog): They can appear in 68HC12 function prologue.
2931 (m68hc11_frame_chain): Cleanup.
2933 2002-08-12 Andrew Cagney <cagney@redhat.com>
2935 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2937 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2938 (i386_linux_register_raw_size): Delete function.
2939 (i386_linux_init_abi): Update.
2940 * i386-tdep.c (i386_register_raw_size): Delete function.
2941 (i386_register_byte): Delete function.
2942 (i386_gdbarch_init): Update.
2943 (i386_register_size): Delete array.
2944 (i386_register_offset): Delete array.
2946 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2947 (REGISTER_RAW_SIZE): Delete macro.
2948 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2949 (REGISTER_BYTE): Delete macro.
2951 2002-08-11 Aidan Skinner <aidan@velvet.net>
2953 * ada-lang.c (ada_lookup_partial_symbol)
2954 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2955 prototype names so that grep ^func works properly.
2957 * ada-lang.c (ada_array_element_type)
2958 (ada_lookup_partial_symbol): Fix typos in parameter list.
2960 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2961 Fix prototype names so that grep ^func works properly.
2963 2002-08-10 Andrew Cagney <cagney@redhat.com>
2964 Elena Zannoni <ezannoni@redhat.com>
2965 Martin M. Hunt <hunt@redhat.com>
2967 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2968 (build_builtin_type_vec128i): Set the vector bit.
2969 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2970 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2971 (build_builtin_type_vec64): New function.
2972 (build_builtin_type_vec64i): New function.
2973 (build_gdbtypes): Initialize builtin_type_vec64 and
2974 builtin_type_vec64i.
2976 2002-08-09 Andrew Cagney <cagney@redhat.com>
2978 * regcache.c (regcache_dump): Compare the register offset
2980 * arch-utils.c (generic_register_byte): New function.
2981 * arch-utils.h (generic_register_byte): Declare.
2982 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2983 * gdbarch.h, gdbarch.c: Regenerate.
2985 2002-08-09 Andrew Cagney <cagney@redhat.com>
2987 * regcache.c: Include "gdbcmd.h"
2988 (_initialize_regcache): Add commands "maintenance print
2989 registers", "maintenance print raw-registers" and "maintenance
2990 print cooked-registers".
2991 (enum regcache_dump_what): Define.
2992 (dump_endian_bytes): New function.
2993 (regcache_dump): New function.
2994 (regcache_print): New function.
2995 (maintenance_print_registers): New function.
2996 (maintenance_print_raw_registers): New function.
2997 (maintenance_print_cooked_registers): New function.
2998 * Makefile.in (regcache.o): Update dependencies.
3000 2002-08-09 Michael Snyder <msnyder@redhat.com>
3002 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3003 (mips_push_arguments): Correct some comments. Use paddr_nz
3004 for printing addresses in debug output. Replace static
3005 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3006 (mips_n32n64_push_arguments): New function, cloned from
3007 mips_push_arguments and tuned for the n32/n64 ABI.
3008 (mips_push_register): Buffer needs dynamic allocation.
3009 (mips_print_register): Ditto.
3010 (do_gp_register_row): Ditto.
3011 (mips_store_return_value): Ditto.
3012 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3014 2002-08-09 Don Howard <dhoward@redhat.com>
3016 * memattr.c (mem_info_command): Print special case of upper bound
3017 as max CORE_ADDR + 1.
3019 2002-08-08 Michael Snyder <msnyder@redhat.com>
3021 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3022 returns structs by ref if they're too big to fit in two registers.
3024 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3026 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3028 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3029 mips_find_saved_regs().
3030 (mips_pop_frame): Likewise.
3032 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3034 * blockframe.c (frame_saved_regs_register_unwind): Revise
3035 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3038 2002-08-09 Grace Sainsbury <graces@redhat.com>
3040 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3041 T-packets; the 'a' is not taken as a register number.
3042 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3043 (remote_stopped_data_address): New functions; add to target
3045 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3046 prototypes to match other implementations of this
3047 function. replace integer argument with pointer -- the length
3048 field in the Z-packet is the length of what is pointed to or 1 if
3049 pointer is null. Add to target vector.
3050 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3054 * remote.c (remote_wait): Add support to extract optional
3055 watchpoint information from T-packet. Ignore unrecognized
3056 optional info in T-packet.
3057 (remote_async_wait): Ditto.
3059 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3061 * cli/cli-dump.c: Change fopen modes to use binary open modes
3062 as defined in include/fopen-bin.h throughout.
3064 2002-08-08 Michael Snyder <msnyder@redhat.com>
3066 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3068 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3070 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3071 assertion failure by returning early after a warning.
3073 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3075 * mips-tdep.c (mips_find_saved_regs): Make static.
3076 (mips_frame_init_saved_regs): New function.
3077 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3078 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3079 (mips_find_saved_regs): Delete declaration.
3081 2002-08-08 Grace Sainsbury <graces@redhat.com>
3083 * remote.c (remote_wait, remote_async_wait): Change
3084 thread_num from int to ULONGEST.
3085 (unpack_varlen_hex): Change result parameter from
3086 int * to ULONGEST *.
3088 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3090 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3091 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3093 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3095 2002-08-08 Andrew Cagney <cagney@redhat.com>
3097 * gcore.c (override_derive_stack_segment): Delete variable.
3098 (preempt_derive_stack_segment): Delete function.
3099 (derive_stack_segment): Delete function.
3100 (default_derive_stack_segment): Renamed to derive_stack_segment.
3101 (override_derive_heap_segment): Delete variable.
3102 (preempt_derive_heap_segment): Delete function.
3103 (derive_heap_segment): Delete function.
3104 (default_derive_heap_segment): Rename to derive_heap_segment.
3106 2002-08-06 Michael Snyder <msnyder@redhat.com>
3108 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3109 * mips-tdep.c (mips_EABI_use_struct_convention,
3110 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3111 New functions. (mips_use_struct_convention): Delete.
3112 (mips_gdbarch_init): set use_gdbarch_convention.
3114 2002-08-06 Michael Snyder <msnyder@redhat.com>
3116 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3117 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3118 mips_o32_reg_struct_has_addr): New functions.
3119 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3121 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3123 * regcache.c (pseudo_register): Delete function.
3124 (fetch_register): Delete function.
3125 (store_register): Delete function.
3126 (regcache_raw_read, legacy_read_register_gen): Use
3127 target_fetch_registers instead of fetch_register.
3128 (legacy_write_register_gen, regcache_raw_write): Use
3129 target_store_register instead of store_register.
3130 (write_register_bytes): Ditto.
3132 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3133 (STORE_PSEUDO_REGISTER): Delete.
3134 * gdbarch.h, gdbarch.c: Regenerate.
3136 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3138 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3139 write dump file binary.
3141 2002-08-05 Michael Snyder <msnyder@redhat.com>
3143 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3144 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3145 (mips_gdbarch_init): Set N32 target to be mips64.
3147 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3149 * frame.c (find_saved_register): Break out of loop once saved
3150 register address is found. Don't mention sparc in loop comment
3153 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3155 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3156 mips_default_saved_regsize to 8.
3158 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3160 * gcore.c: Do not include <sys/procfs.h>.
3161 * Makefile.in (gcore.o): Update dependencies.
3163 2002-08-06 Andrew Cagney <cagney@redhat.com>
3165 * configure.tgt: Make arc-*-* obsolete.
3166 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3167 * MAINTAINERS: Make arc-elf obsolete.
3168 * arc-tdep.c: Make file obsolete.
3169 * config/arc/arc.mt: Ditto.
3170 * config/arc/tm-arc.h: Ditto.
3172 2002-08-05 Theodore A. Roth <troth@verinet.com>
3174 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3176 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3178 * mcore-tdep.c (mcore_gdbarch_init): Use
3179 generic_unwind_get_saved_register instead of
3180 generic_get_saved_register.
3181 * v850-tdep.c (v850_gdbarch_init): Ditto.
3182 * frv-tdep.c (frv_gdbarch_init): Ditto.
3183 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3184 * s390-tdep.c (s390_gdbarch_init): Ditto.
3185 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3186 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3187 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3189 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3191 * objfiles.h: Add missing #include "symfile.h"
3193 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3195 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3197 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3198 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3201 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3203 * NEWS: Cleanup and nitpick.
3205 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3207 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3209 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3211 * Makefile.in (gdbtk-bp.o): Update dependencies.
3212 (gdbtk-register.o): Ditto.
3213 (gdbtk-varobj.o): Ditto.
3215 2002-08-03 Andrew Cagney <cagney@redhat.com>
3217 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3218 m68hc11_fetch_pseudo_register.
3219 (m68hc11_pseudo_register_write): Replace
3220 m68hc11_store_pseudo_register.
3221 (m68hc11_gdbarch_init): Update.
3223 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3225 * gdbarch.sh: Include "gdb_string.h".
3226 * gdbarch.c: Regenerate.
3228 * regcache.c: Include "gdb_string.h".
3229 * ax-general.c: Ditto.
3231 * std-regs.c: Ditto.
3232 * fbsd-proc.c: Ditto.
3235 * Makefile.in (regcache.o): Update dependencies.
3236 (thread.o, gdbarch.o): Ditto.
3237 (ax-general.o, gdbarch.o): Ditto.
3238 (varobj.o, std-regs.o): Ditto.
3239 (fbsd-proc.o): Specify dependencies.
3241 2002-08-02 Andrew Cagney <cagney@redhat.com>
3243 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3245 (regcache_cooked_write): Ditto.
3247 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3249 * regcache.c (regcache_cooked_read): New function.
3250 (regcache_cooked_write): New function.
3251 (read_register_gen): Rewrite using regcache_cooked_read.
3252 (write_register_gen): Rewrite using regcache_cooked_write.
3254 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3257 2002-08-02 Andrew Cagney <cagney@redhat.com>
3259 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3260 Replace the architecture methods register_read and register_write.
3261 * gdbarch.h, gdbarch.c: Regenerate.
3262 * regcache.c (init_regcache_descr): Update.
3263 (read_register_gen): Update.
3264 (write_register_gen): Update.
3265 (supply_register): Update comment.
3267 * sh-tdep.c (sh_gdbarch_init): Update.
3268 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3269 `regcache' and `gdbarch' parameters. Make `buffer' a void
3270 pointer. Update code.
3271 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3272 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3273 void pointer. Update code.
3274 (sh64_register_write): Delete.
3275 (sh4_register_read): Delete.
3276 (sh64_register_read): Delete.
3277 (sh4_register_write): Delete.
3278 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3279 void pointer, `to' parameter a void pointer.
3280 (sh_sh64_register_convert_to_raw): Ditto.
3282 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3284 * mips-tdep.c (mips_register_virtual_type): Use architecture
3285 invariant return values.
3287 2002-08-01 Andrew Cagney <cagney@redhat.com>
3289 * linux-proc.c: Include "gdb_string.h".
3290 * Makefile.in (linux-proc.o): Update dependency list.
3292 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3294 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3297 2002-08-01 Grace Sainsbury <graces@redhat.com>
3299 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3300 to_insert_watchpoint, to_remove_watchpoint,
3301 to_stopped_by_watchpoint, to_stopped_data_address,
3302 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3303 target vecctor. Define their corresponding macros so they call
3306 * target.c: Add default and debug versions of for
3307 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3308 to_insert_watchpoint, to_remove_watchpoint,
3309 to_stopped_by_watchpoint, to_stopped_data_address,
3310 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3312 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3314 * mips-tdep.c (mips_register_virtual_type): New function.
3315 (mips_gdbarch_init): Register mips_register_virtual_type()
3316 with gdbarch machinery.
3317 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3318 this file instead of tm-bigmips.h.
3319 (MIPS_REGSIZE): Delete this macro.
3320 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3321 multiarch version in mips-tdep.c will be found.
3323 2002-08-01 Andrew Cagney <cagney@redhat.com>
3325 * NEWS: Menion that CHILL has been made obsolete.
3327 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3328 * stabsread.c (read_range_type): Ditto.
3329 * gdbtypes.h: Ditto.
3330 * language.c (binop_type_check): Ditto.
3331 (binop_result_type): Ditto.
3332 (integral_type): Ditto.
3333 (character_type): Ditto.
3334 (string_type): Ditto.
3335 (boolean_type): Ditto.
3336 (structured_type): Ditto.
3337 (lang_bool_type): Ditto.
3338 (binop_type_check): Ditto.
3339 * language.h (_LANG_chill): Ditto.
3340 * dwarfread.c (set_cu_language): Ditto.
3341 * dwarfread.c (CHILL_PRODUCER): Ditto.
3342 * dwarfread.c (handle_producer): Ditto.
3343 * expression.h (enum exp_opcode): Ditto.
3344 * eval.c: Ditto for comments.
3345 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3346 * expprint.c (print_subexp): Ditto.
3347 (print_subexp): Ditto.
3348 * valops.c (value_cast): Ditto.
3349 (search_struct_field): Ditto.
3350 * value.h (COERCE_VARYING_ARRAY): Ditto.
3351 * symfile.c (init_filename_language_table): Ditto.
3352 (add_psymbol_with_dem_name_to_list): Ditto.
3353 * valarith.c (value_binop): Ditto.
3355 * valops.c (value_slice): Ditto.
3356 * symtab.h (union language_specific): Ditto.
3357 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3358 (SYMBOL_DEMANGLED_NAME): Ditto.
3359 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3360 * defs.h (enum language): Ditto.
3361 * symtab.c (got_symtab): Ditto.
3362 * utils.c (fprintf_symbol_filtered): Ditto.
3364 * ch-typeprint.c: Make file obsolete.
3365 * ch-valprint.c: Make file obsolete.
3366 * ch-lang.h: Make file obsolete.
3367 * ch-exp.c: Make file obsolete.
3368 * ch-lang.c: Make file obsolete.
3370 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3372 (TARGET_FLAGS_TO_PASS): Ditto.
3373 (CHILLFLAGS): Obsolete.
3375 (CHILL_FOR_TARGET): Obsolete.
3376 (CHILL_LIB): Obsolete.
3377 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3379 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3380 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3382 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3385 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3387 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3388 This does not change anything at the moment, but will be helpful
3389 later when full Ada support is integrated.
3391 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3393 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3396 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3398 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3399 and save it in a local variable. Use variable in later test.
3401 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3403 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3404 test. (Thanks to Daniel Jacobowitz.)
3406 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3408 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3409 (mips_abi_strings): Add "n64".
3410 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3412 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3414 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3415 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3417 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3419 * utils.c (host_pointer_to_address, address_to_host_pointer):
3420 Use gdb_assert() instead of explicit call to internal_error().
3422 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3424 * Makefile.in (rs6000-nat.o): Update dependencies.
3426 From Nicholas Duffek:
3427 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3428 (aix-thread.o): New rule.
3429 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3430 * config/powerpc/aix432.mh: New file.
3432 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3434 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3435 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3436 (fetch_core_registers, ppc_linux_supply_gregset)
3437 (ppc_linux_supply_fpregset): New functions.
3438 (ppc_linux_regset_core_fns): New.
3439 (_initialize_ppc_linux_tdep): Call add_core_fns.
3440 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3441 and ppc_linux_supply_gregset.
3442 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3443 (supply_fpregset): Call ppc_linux_supply_fpregset.
3444 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3446 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3448 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3450 * symtab.c (lookup_symbol): Demangle before lowercasing.
3452 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3454 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3456 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3457 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3458 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3459 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3461 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3462 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3463 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3464 (avr-tdep.o, mon960-rom.o): Ditto.
3465 (aout_stabs_gnu_h): Define.
3466 (symtab_h): Remove $(gdb_obstack_h).
3468 2002-07-30 Jim Blandy <jimb@redhat.com>
3470 Patch from David Carlton <carlton@math.stanford.edu>:
3471 * gdbinit.in: Move the `dir' commands that add GDB's own source
3472 directory to the search path to the end, so that the `gdb' source
3473 directory will be searched first.
3475 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3477 * gdb_obstack.h: New file.
3478 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3479 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3480 * objfiles.h: Include "gdb_obstack.h".
3481 * Makefile.in (gdb_obstack_h): Define.
3482 (symtab_h): Add $(gdb_obstack_h).
3483 (objfiles_h): Add $(gdb_obstack_h).
3485 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3486 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3487 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3488 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3489 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3490 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3491 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3492 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3494 * Makefile.in (bcache.o): Update dependencies.
3495 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3496 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3497 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3498 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3499 (stabsread.o, symfile.o, symmisc.o): Ditto.
3500 (symtab.o, typeprint.o, macroexp.o): Ditto.
3501 (macrotab.o, mdebugread.o): Ditto.
3502 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3503 (coff_ecoff_h, aout_aout64_h): Define.
3504 (aout_stabs_gnu_h, libaout_h): Define.
3506 2002-07-29 Andrew Cagney <cagney@redhat.com>
3508 * regcache.c (struct regcache_descr): Rename nr_registers to
3509 nr_cooked_registers. Revise comments describing the structure
3511 (init_regcache_descr): Update.
3512 (init_legacy_regcache_descr): Update.
3513 (read_register_gen, write_register_gen): When a cooked register in
3514 the raw register range, directly access the value from the raw
3517 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3519 * z8k-tdep.c: Do not include "obstack.h".
3520 * h8300-tdep.c, h8500-tdep.c: Ditto.
3521 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3522 * valprint.c, v850-tdep.c: Ditto.
3523 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3524 * mn10200-tdep.c: Ditto.
3526 * Makefile.in (z8k-tdep.o): Update dependencies.
3527 (m68hc11-tdep.o, valprint.o): Ditto.
3528 (v850-tdep.o, d10v-tdep.o): Ditto.
3529 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3530 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3531 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3532 (sh_opc_h, gdb_sim_sh_h): Define.
3533 (elf_sh_h, elf_bfd_h): Define.
3534 (opcode_m68hc11_h): Define.
3535 (OPCODES_SRC, OPCODES_DIR): define.
3536 (OPCODES): Use $(OPCODES_DIR).
3537 (gdb_sim_d10v_h): Rename sim_d10v_h.
3538 (gdb_sim_arm_h): Rename sim_arm_h.
3540 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3542 * utils.c (host_pointer_to_address, address_to_host_pointer):
3543 Change internal_error() message to indicate function responsible
3546 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3548 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3549 calls to local_hex_string_custom().
3551 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3553 * irix5-nat.c: Move IRIX shared library support from here...
3554 * solib-irix.c: ...to here. Revised substantially to work with
3555 generic solib framework.
3557 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3558 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3559 * mips-irix-tdep.c: New file.
3561 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3562 (mips-irix-tdep.o, solib-irix.o): New rules.
3563 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3565 * config/mips/irix6.mt (TDEPFILES): Likewise.
3566 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3568 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3570 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3571 disabled (via ``#if 0'') includes.
3573 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3575 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3576 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3577 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3578 Add support for the fpscr register.
3579 * rs6000-nat.c (regmap, fetch_inferior_registers)
3580 (store_inferior_registers, fetch_core_registers): Likewise.
3582 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3584 * rs6000-nat.c (language.h): Include.
3585 (special_regs): Delete this array.
3586 (regmap): New function.
3587 (fetch_register, store_register): Use regmap() to map gdb
3588 register numbers to ptrace register numbers. Also, use
3589 outputs from regmap() to make decisions regarding type of
3590 ptrace() call to make. In particular, don't compare against
3591 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3592 (fetch_inferior_registers, store_inferior_registers): Where
3593 possible, obtain register numbers from tdep struct. Don't
3594 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3595 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3596 (LAST_UISA_SP_REGNUM): Delete.
3598 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3600 * rs6000-nat.c (ppc-tdep.h): Include.
3601 (fetch_registers, store_register, fetch_core_registers): Don't
3602 access registers[] directly. Instead, use supply_register() or
3603 regcache_collect() as appropriate.
3604 (find_toc_address): Format hex address with local_hex_string().
3606 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3608 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3611 2002-07-24 Tom Tromey <tromey@redhat.com>
3613 * jv-exp.y: Marked all strings with _().
3614 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3616 (MethodInvocation, CastExpression, parse_number, yyerror,
3617 java_type_from_name, push_expression_name, yylex): Typo fixes.
3619 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3621 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3622 (tee_file_flush, tee_file_write, tee_file_fputs)
3623 (tee_file_isatty): New.
3624 * ui-file.h (tee_file_new): Add prototype.
3626 2002-07-24 Aidan Skinner <aidan@velvet.net>
3628 * ada-lang.c: Change k&r style function definitions to prototyped
3630 * ada-typeprint.c: Change k&r style function definitions to prototyped
3632 * ada-valprint.c: Change k&r style function definitions to prototyped
3635 2002-07-24 Andrew Cagney <cagney@redhat.com>
3637 * README: Remove reference to remote-bug.
3638 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3640 (m88k-nat.o): Delete rule.
3641 (m88k-tdep.o): Delete rule.
3642 (remote-bug.o): Delete rule.
3643 * MAINTAINERS: Mark as obsolete.
3644 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3645 * m88k-tdep.c: Make file obsolete.
3646 * config/m88k/m88k.mh: Ditto.
3647 * config/m88k/delta88v4.mh: Ditto.
3648 * config/m88k/delta88v4.mt: Ditto.
3649 * config/m88k/delta88.mt: Ditto.
3650 * config/m88k/delta88.mh: Ditto.
3651 * remote-bug.c: Ditto.
3652 * config/m88k/tm-delta88.h: Ditto.
3653 * config/m88k/nm-delta88v4.h: Ditto.
3654 * config/m88k/xm-delta88.h: Ditto.
3655 * config/m88k/xm-dgux.h: Ditto.
3656 * config/m88k/tm-m88k.h: Ditto.
3657 * config/m88k/nm-m88k.h: Ditto.
3658 * config/m88k/tm-delta88v4.h: Ditto.
3659 * m88k-nat.c: Ditto.
3660 * cxux-nat.c: Ditto.
3661 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3662 and m88*-*-* obsolete.
3663 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3666 2002-07-24 Andrew Cagney <cagney@redhat.com>
3668 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3669 constant. Same for local pointer variables.
3670 (extract_signed_integer): Ditto.
3671 * defs.h (extract_unsigned_integer): Update.
3672 (extract_signed_integer): Update.
3674 2002-07-24 Andrew Cagney <cagney@redhat.com>
3676 * regcache.c (regcache_raw_write): Change buf parameter to a
3677 constant void pointer.
3678 (regcache_raw_read): Change buf parameter to a void pointer.
3679 (legacy_write_register_gen): Change myaddr parameter a constant
3681 (supply_register): Change val parameter to a const void pointer.
3682 * regcache.h (regcache_raw_write): Update declaration.
3683 (regcache_raw_read): Update declaration.
3684 (supply_register): Update declaration.
3686 2002-07-24 Tom Tromey <tromey@redhat.com>
3688 * defs.h (gdb_readline_wrapper): Declare.
3689 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3690 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3691 * top.c (gdb_readline_wrapper): New function.
3692 (command_line_input): Use it.
3694 2002-07-24 Andrew Cagney <cagney@redhat.com>
3696 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3697 regcache_read and regcache_write.
3698 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3699 * regcache.c: Update.
3700 * sh-tdep.c (sh64_push_arguments): Update comment.
3701 (sh_pseudo_register_read): Update.
3702 (sh_pseudo_register_write): Update.
3703 (sh4_register_read): Update.
3704 (sh4_register_write): Update.
3705 (sh64_pseudo_register_read): Update.
3706 (sh64_pseudo_register_write): Update.
3707 (sh64_register_read): Update.
3708 (sh64_register_write): Update.
3709 * i386-tdep.c (i386_extract_return_value): Update.
3710 (i386_extract_struct_value_address): Update.
3711 (i386_extract_return_value): Update.
3712 * blockframe.c (generic_read_register_dummy): Update.
3713 (generic_call_dummy_register_unwind): Update
3714 * infrun.c (write_inferior_status_register): Update.
3716 2002-07-23 Jim Blandy <jimb@redhat.com>
3718 * parser-defs.h (expression_context_pc): Make this extern.
3719 (Thanks to Michael Snyder.)
3721 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3723 GDB 5.2.1 released from 5.2 branch.
3724 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3725 * README: Update to mention 5.2.1.
3727 2002-07-23 Mark Salter <msalter@redhat.com>
3729 * remote.c (remote_read_bytes): Fix check for error.
3731 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3733 * aix-thread.c (language.h): Include.
3734 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3735 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3736 Print newlines at end of debug messages.
3737 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3738 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3740 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3742 * aix-thread.c (ppc-tdep.h): Include.
3743 (special_register_p): New function.
3744 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3745 (store_regs_user_thread): Use register number information from
3746 gdbarch_tdep struct instead of hardcoded offsets relative to
3747 FIRST_UISA_SP_REGNUM.
3748 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3749 special_register_p() instead of using FPLAST_REGNUM and
3750 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3751 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3752 will be MQ's register number.
3754 2002-07-22 Michael Snyder <msnyder@redhat.com>
3756 * aix-thread.c (ops): Rename to aix_thread_ops.
3757 (base_ops): Rename to base_target.
3758 (ops_attach): Rename to aix_thread_attach.
3759 (ops_detach): Rename to aix_thread_detach.
3760 (ops_resume): Rename to aix_thread_detach.
3761 (ops_wait): Rename to aix_thread_wait.
3762 (ops_kill): Rename to aix_thread_kill.
3763 (init_ops): Rename to init_aix_thread_ops.
3764 (ops_fetch_register): Rename to aix_thread_fetch_register.
3765 (ops_store_register): Rename to aix_thread_store_register.
3766 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3767 (ops_thread_alive): Rename to aix_thread_thread_alive.
3768 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3769 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3770 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3771 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3772 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3773 (store_regs_lib): Rename to store_regs_user_thread.
3774 (store_regs_kern): Rename to store_regs_kernel_thread.
3776 2002-07-22 Michael Snyder <msnyder@redhat.com>
3778 * aix-thread.c (ops_prepare_to_store): Eliminate.
3779 (init_ops): Don't initialize ops.prepare_to_store.
3780 (store_regs_kern): Pre-fetch register buffers from child,
3781 because some registers may not be in the cache. Copy
3782 regs from register cache only if they are cached.
3783 (store_regs_lib): Copy regs from register cache only
3785 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3786 fill_gprs64): Ditto.
3788 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3790 * aix-thread.c (gdb_assert.h): Include.
3791 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3792 register sizes (from register cache) match size of buffer holding
3794 (fill_sprs32): Change parameter types to match those in the ptrace()
3796 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3797 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3799 2002-07-22 Michael Snyder <msnyder@redhat.com>
3801 * aix-thread.c (supply_sprs64): Cosmetic change.
3802 (supply_sprs32): Cosmetic change.
3803 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3804 (fill_sprs64): Use regcache_collect instead of read_register.
3805 (store_regs_lib): Use regcache_collect instead of
3806 read_register. Use fill_sprs32 instead of fill_sprs64,
3807 if debugging a 32-bit architecture.
3808 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3809 out of the register cache, instead of passing a pointer into
3810 the register cache directly to ptrace. Use regcache_collect
3811 insteaad of read_register.
3812 (ops_prepare_to_store): Use target_read_registers instead
3813 of read_register_bytes.
3815 2002-07-20 Aidan Skinner <aidan@velvet.net>
3817 * MAINTAINERS: Add self under write after approval.
3819 2002-07-20 Aidan Skinner <aidan@velvet.net>
3821 * ada-tasks.c: Change k&r style function definitions to prototyped
3824 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3826 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3827 * x86-64-tdep.c: Include "objfiles.h".
3828 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3829 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3831 2002-07-17 Michal Ludvig <michal@suse.cz>
3833 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3834 (update_context): Initialise cfa variable.
3836 2002-07-17 Michael Snyder <msnyder@redhat.com>
3838 * aix-thread.c: Shorten some long lines.
3839 Bring comments into line with code spec.
3841 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3843 * infrun.c: Re-indent using gdb_indent.sh.
3845 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3847 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3848 Leave the indentation temporarily untouched, to minimize the diffs.
3850 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3852 * stabsread.c: Make os9k sections of the code obsolete,
3854 * stabsread.h: Make os9k sections of the code obsolete.
3856 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3858 * linux-low.c (regsets_store_inferior_registers): Add free()
3859 at the end of a loop to prevent memory leak.
3860 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3861 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3862 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3864 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3866 2002-07-17 Jim Blandy <jimb@redhat.com>
3868 * macrocmd.c (info_macro_command): Remove newline from error
3871 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3873 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3874 (sh_gdbarch_init): Use it for sh-dsp.
3876 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3878 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3879 64-bit DWARF2 format.
3881 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3883 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3884 <sys/proc.h> when not available.
3886 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3888 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3889 * stabsread.c: Make os9k sections of the code obsolete.
3890 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3891 * config/i386/i386os9k.mt: Make file obsolete.
3892 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3893 (COMMON_OBS): Remove os9kread.o
3894 (SFILES): Remove os9kread.c.
3895 (os9kread.o, remote-os9k.o): Make target obsolete.
3896 * remote-os9k.c: Make file obsolete.
3897 * os9kread.c: Make file obsolete.
3900 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3902 * NEWS: Mention that the FR30 has been made obsolete.
3903 * fr30-tdep.c: Make file obsolete.
3904 * config/fr30/tm-fr30.h: Ditto.
3905 * config/fr30/fr30.mt: Ditto.
3906 * configure.tgt: Make fr30-*-elf obsolete.
3907 * MAINTAINERS: Make fr30-elf obsolete.
3909 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3911 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3912 found is not inside a section.
3914 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3916 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3918 (pdc_realloc): Use xrealloc() instead of realloc().
3920 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3922 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3923 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3924 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3927 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3929 * aix-thread.c (ptrace_check): Eliminate goto.
3930 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3933 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3935 * aix-thread.c (gdbcmd.h): Include.
3936 (DEBUG, DBG, DBG2, dbg): Eliminate.
3937 (debug_aix_thread): New static global.
3938 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3939 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3940 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3941 invocations to DBG and DBG2 macros to test against
3942 ``debug_aix_thread'' and call fprintf_unfiltered().
3943 (_initialize_aix_thread): Add new command "set debug aix-thread".
3945 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3947 From Gerhard Tonn <TON@de.ibm.com>:
3948 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3949 instead of supply_register.
3951 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3953 * dwarf2cfi.c: Include "gdb_assert.h".
3954 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3956 (update_context): Do not use __func__. Add missing ``break''.
3957 (update_context): Do not use __func__.
3959 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3961 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3962 and its setting. Set gdbarch instruction printing functions
3963 directly. For non-rs6000 case use new function
3964 gdb_print_insn_powerpc.
3965 (gdb_print_insn_powerpc): New function.
3967 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3969 * NEWS: Mention that the d30v has been marked obsolete.
3970 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3971 * configure.tgt: Mark d30v-*-* as obsolete.
3972 * d30v-tdep.c: Mark file as obsolete.
3973 * config/d30v/d30v.mt: Ditto.
3974 * config/d30v/tm-d30v.h: Ditto.
3976 2002-07-13 Aidan Skinner <aidan@velvet.net>
3978 * ada-tasks.c (add_task_entry): replace calls to
3979 malloc() with xmalloc
3980 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3982 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3983 ada_finish_decode_line_1, all_sals_for_line
3984 ada_breakpoint_rewrite): replace calls to free() with xfree()
3986 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3988 From Nicholas Duffek (with minor changes by Martin Hunt,
3989 Louis Hamilton, and Kevin Buettner):
3990 * aix-thread.c: New file.
3992 2002-07-12 Petr Sorfa <petrs@caldera.com>
3994 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3995 complaint for invalid attribute class or form.
3996 (read_func_scope): DW_AT_frame_base
3997 better handling of DW_AT_block*.
3998 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3999 better handling of DW_AT_block*.
4000 (read_common_block): DW_AT_location
4001 better handling of DW_AT_block*.
4002 (read_partial_die): DW_AT_location better handling
4004 (new_symbol): DW_AT_external better handling of
4005 DW_AT_block*. Proper initialization of variable
4007 (attr_form_is_block): New function that returns true
4008 if the attribute's form is of DW_FORM_block*.
4010 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4012 * valops.c (find_method_list): Remove comment about
4013 removed STATIC_MEMFUNCP argument.
4014 (value_find_oload_method_list): Likewise.
4016 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4018 From Nicholas Duffek:
4019 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4020 target_new_objfile_hook.
4022 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4024 From Nicholas Duffek:
4025 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4028 2002-07-12 Andrew Cagney <cagney@redhat.com>
4030 * MAINTAINERS: Mention --enable-sim-build-warnings.
4031 (m68hc11-elf): Disable sim build warnings.
4032 (m32r-elf): Mark as broken obsolete candidate.
4033 (x86_64-linux-gnu): Mark as buildable with -Werror.
4034 (arm-elf): Change -w to ``,'' which enables warnings but not
4037 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4039 * bcache.h: Update copyright.
4040 (struct bstring, struct bcache): Move definition to "bcache.c".
4041 Replaced by opaque declaration.
4042 (bcache_xfree): Replace free_bcache.
4043 (bcache_xmalloc, bcache_memory_used): Declare.
4045 * bcache.c: Update copyright.
4046 (struct bstring, struct bcache): Moved to here from "bcache.h".
4048 (bcache_xmalloc, bcache_memory_used): New functions.
4049 (bcache_xfree): Replace function free_bcache.
4051 * Makefile.in (objfiles.o): Add $(bcache_h).
4052 (objfiles_h): Remove $(bcache_h).
4053 (symfile.o): Add $(bcache_h).
4055 * symmisc.c: Update copyright.
4056 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4057 (print_objfile_statistics): Use bcache_memory_used.
4059 * symfile.c: Include "bcache.h".
4060 (reread_symbols): Use bcache_xfree.
4061 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4062 (add_psymbol_to_list): Pass psymbol_cache by value.
4063 (add_psymbol_with_dem_name_to_list): Ditto.
4065 * objfiles.h: Update copyright.
4066 (struct bcache): Declare opaque. Do not include "bcache.h".
4067 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4069 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4071 * objfiles.c: Include "bcache.h". Update copyright.
4072 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4074 (free_objfile): Use bcache_xfree.
4076 2002-07-11 Grace Sainsbury <graces@redhat.com>
4078 * monitor.c (monitor_fetch_register): Make name a constant.
4079 (monitor_store_register): Same.
4081 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4083 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4084 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4085 (finish_block) For non-function blocks, hash the symbol table. For
4086 function blocks, mark the symbol table as unhashed.
4087 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4088 (msymbol_hash_iw): Likewise.
4089 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4091 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4092 (lookup_minimal_symbol): Likewise for both.
4093 * symtab.h (struct block): Add `hashtable' flag. Comment the
4095 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4096 (ALL_BLOCK_SYMBOLS): Update.
4097 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4098 (struct symbol): Add `hash_next' pointer.
4099 * symtab.c (lookup_block_symbol): Search using the hash table when
4101 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4102 (search_symbols, find_addr_symbol): Likewise.
4104 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4105 (read_dst_symtab): Likewise.
4106 * jv-lang.c (get_java_class_symtab): Likewise.
4107 * mdebugread.c: Include "gdb_assert.h".
4108 (shrink_block): Assert that the block being modified is not hashed.
4109 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4110 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4112 (dump_symtab): Recognize hashed blocks.
4113 * printcmd.c (print_frame_args): Assert that function blocks do not
4114 have hashed symbol tables.
4115 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4116 (fill_in_ada_prototype, debug_print_block): Likewise.
4117 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4119 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4121 * stack.c (print_frame): Use result of frame_address_in_block()
4122 instead of fi->pc when evaluating symbols.
4123 (backtrace_command_1): Ditto.
4125 2002-07-11 Andrew Cagney <cagney@redhat.com>
4127 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4130 * arm-tdep.c (arm_register_name): Make return type constant.
4132 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4134 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4136 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4137 * s390-tdep.c (s390_fp_regnum): Ditto.
4138 (s390_read_fp): Ditto.
4139 (s390_pop_frame): Ditto.
4140 (_initialize_s390_tdep): Ditto.
4141 * remote.c (get_remote_state): Ditto.
4142 * procfs.c (mappingflags): Ditto.
4143 * memattr.c (_initialize_mem): Ditto.
4144 * mcore-tdep.c (mcore_pop_frame): Ditto.
4145 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4146 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4147 * language.c (set_case_str): Ditto.
4148 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4149 * frv-tdep.c (new_variant): Ditto.
4150 (frv_stopped_data_address): Ditto.
4151 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4152 (context_alloc): Ditto.
4153 (frame_state_alloc): Ditto.
4154 (unwind_tmp_obstack_init): Ditto.
4155 (unwind_tmp_obstack_free): Ditto.
4156 (cfi_read_fp): Ditto.
4157 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4158 (cris_pop_frame): Ditto.
4159 * c-lang.c (scanning_macro_expansion): Ditto.
4160 (finished_macro_expansion): Ditto.
4161 (c_preprocess_and_parse): Ditto.
4162 * gdbarch.sh: Ditto.
4163 * gdbarch.h, gdbarch.c: Regenerate.
4164 * config/mn10200/tm-mn10200.h: Adjust indentation.
4165 * target.c: Adjust indentation.
4166 * symtab.h: Adjust indentation.
4167 * stabsread.h: Adjust indentation.
4168 * remote-es.c: Adjust indentation.
4169 * os9kread.c: Adjust indentation.
4171 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4173 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4174 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4176 2002-07-10 Grace Sainsbury <graces@redhat.com>
4178 * NEWS: Mention m68k, mcore multi-arching.
4179 * MAINTAINERS: Change status of m68k, mcore to reflect
4182 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4184 * valops.c (find_overload_match): Free oload_syms.
4186 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4188 Define HAVE_SYS_PROC_H if sys/proc.h exists
4189 * configure.in: Add check for sys/proc.h
4190 * config.in: Regenerate.
4191 * configure: Regenerate.
4193 2002-07-09 Grace Sainsbury <graces@redhat.com>
4195 * config/m68k/tm-m68k.h: Remove macros wrapped in
4196 #if !GDB_MULTI_ARCH.
4198 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4200 * config.in, configure: Regenerate.
4202 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4204 * dwarf2cfi.c: Include "gcore.h".
4205 (execute_stack_op): Fix implementation of the
4206 DW_OP_deref and DW_OP_deref_size operators by letting do their
4207 lookup in the target.
4209 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4211 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4212 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4215 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4217 Fix PR gdb/595, gdb/602
4218 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4219 Don't call value_cast, just read the vtable pointer; update comments
4222 2002-07-05 Grace Sainsbury <graces@redhat.com>
4224 * config/mcore/tm-mcore.h: Remove file.
4225 * config/mcore/mcore.mt: Remove definition of TM_FILE
4226 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4228 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4230 * i386bsd-tdep.c: Include "gdb_string.h".
4232 2002-07-04 Grace Sainsbury <graces@redhat.com>
4234 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4235 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4237 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4238 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4239 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4240 (RETVAL_REGNUM): Move macros from tm-mcore.h
4241 (mcore_reg_struct_has_addr): New function.
4242 (mcore_gdbarch_init): Added initializations for the macros removed
4245 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4247 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4248 traditonal string branding within the ELF header.
4250 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4252 * symtab.c (remove_params): New function.
4253 (make_symbol_overload_list): Use it instead of cplus_demangle.
4254 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4256 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4258 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4260 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4262 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4263 and tdep->sigtramp_end.
4264 * i386obsd-nat.c: New file.
4265 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4267 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4268 Don't call get_current_frame().
4270 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4272 * i386-nat.c (child_post_startup_inferior): New function
4273 calling i386_cleanup_dregs if
4274 I386_USE_GENERIC_WATCHPOINTS is defined.
4275 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4276 conditional to acknowledge that i386-nat.c has its
4277 own child_post_startup_inferior function.
4279 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4281 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4282 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4283 instead of MAX_REGISTER_RAW_SIZE.
4284 (i386_extract_return_value, i386_extract_struct_value_address):
4285 Convert to use regcache.
4286 (i386_gdbarch_init): Set max_register_raw_size and
4287 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4288 Set extract_return_value and extract_struct_value_address instead
4289 of their deprecated variants.
4291 Convert i386 target to generic dummy frames.
4292 * i386-tdep.c: Include "symfile.h".
4293 (i386_frameless_signal_p): Consider a function to be frameless if
4294 the pc points at the first instruction of the function.
4295 (i386_frame_chain): Handle (generic) call dummies.
4296 (i386_frame_saved_pc): Likewise.
4297 (i386_frame_init_saved_regs): Remove code dealing with call
4298 dummies on the stack.
4299 (i386_push_dummy_frame): Removed.
4300 (i386_call_dummy_words): Removed.
4301 (i386_fix_call_dummy): Removed.
4302 (i386_push_return_address): New function.
4303 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4304 parameter, and don't call get_current_frame.
4305 (i386_pop_frame): New function.
4306 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4307 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4308 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4309 call_dummy_length to 0, set call_dummy_words to NULL, set
4310 sizeof_call_dummy_words to 0, set fix_call_dummy to
4311 generic_fix_call_dummy, set pc_in_call_dummy to
4312 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4313 generic_push_dummy_frame, set push_return_address to
4314 i386_push_return_address and set frame_chain_valid to
4315 generic_file_frame_chain_valid.
4317 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4319 * gdbarch.sh (struct regcache): Add opaque declaration.
4320 (EXTRACT_RETURN_VALUE): New architecture method.
4321 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4322 * gdbarch.h, gdbarch.c: Regenerate.
4323 * arch-utils.c (legacy_extract_return_value): New function.
4324 * arch-utils.h (legacy_extract_return_value): Declare.
4325 * values.c (value_being_returned): Re-enable code handling
4326 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4327 deprecated_grub_regcache_for_registers call to block handling
4328 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4329 (EXTRACT_RETURN_VALUE): Do not define.
4331 2002-07-03 Grace Sainsbury <graces@redhat.com>
4333 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4334 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4335 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4336 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4337 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4338 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4339 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4340 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4341 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4342 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4343 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4344 argument so the function fits the prototype in the architecture
4346 (mcore_pop_frame): Remove argument so the function fits the
4347 prototype. Use get_current_frame instead of the argument.
4348 (mcore_push_arguments): Change type of struct_return so the
4349 function can be used in the architecture vector.
4350 (mcore_store_struct_return): Add.
4351 (mcore_frame_init_saved_regs): Add.
4352 (mcore_gdbarch_init): Add function calls to replace the macros
4353 removed from tm-mcore.h
4355 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4357 * infcmd.c (print_return_value): Remove compatibility code calling
4358 deprecated_grub_regcache_for_registers.
4360 * values.c: Include "regcache.h".
4361 (value_being_returned): Update. Use
4362 deprecated_grub_regcache_for_registers to extract the register
4364 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4365 ``struct regcache''.
4366 * Makefile.in (values.o): Add dependency on $(regcache_h).
4368 * inferior.h (run_stack_dummy): Change type of second parameter to
4369 a ``struct regcache''.
4370 * valops.c (hand_function_call): Change type of retbuf to ``struct
4371 regcache''. Allocate using regcache_xmalloc, clean using
4372 make_cleanup_regcache_xfree.
4373 * infcmd.c (run_stack_dummy): Update. Use
4374 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4376 * regcache.c (do_regcache_xfree): New function.
4377 (make_cleanup_regcache_xfree): New function.
4378 * regcache.h (make_cleanup_regcache_xfree): Declare.
4380 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4382 * event-top.c (command_line_handler): Don't read past
4383 beginning of buffer.
4385 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4387 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4389 (varobj_create): Store frame_id for root.
4390 (varobj_gen_name): Use xasprintf.
4391 (varobj_update): Save and restore frame using get_frame_id() and
4393 (create_child): Use xasprintf.
4394 (new_root_variable): Initialize frame_id.
4395 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4396 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4397 to prevent memory leak.
4399 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4401 * valops.c (hand_function_call): Move declaration of retbuf to
4402 start of function, allocate using malloc, add a cleanup but before
4403 the inf_status cleanup, cleanup the buffer. Rename local variable
4404 old_chain to inf_status_cleanup.
4406 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4408 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4410 * cli/cli-decode.c (cmd_func_p): New function.
4411 (cmd_func): New function.
4413 * command.h: Add cmd_func() and cmd_func_p().
4415 2002-07-03 Grace Sainsbury <graces@redhat.com>
4417 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4418 (REGISTER_SIZE): Remove.
4419 (MAX_REGISTER_RAW_SIZE): Remove.
4420 (REGISTER_VIRTUAL_TYPE): Remove.
4421 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4422 (REGISTER_NAME): Remove.
4423 (USE_GENERIC_DUMMY_FRAMES): Remove.
4424 (CALL_DUMMY): Remove.
4425 (CALL_DUMMY_START_OFFSET): Remove.
4426 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4427 (CALL_DUMMY_LOCATION): Remove.
4428 (FIX_CALL_DUMMY): Remove.
4429 (CALL_DUMMY_ADDRESS): Remove.
4430 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4431 (SAVE_DUMMY_FRAME_TOS): Remove.
4432 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4433 (mcore_register_virtual_type): New function.
4434 (mcore_register_byte): New function.
4435 (mcore_register_size): New function.
4436 (mcore_register_name): New function.
4437 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4438 macros removed from tm-mcore.h.
4439 (mcore_dump_tdep): Add.
4440 (_initialize_mcore_tdep): Add gdbarch_register call.
4442 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4444 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4445 frameless_look_for_prologue, such that we actually call this
4448 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4450 * frame.h (frame_address_in_block): New function.
4452 * blockframe.c (frame_address_in_block): New function extracted
4453 from get_frame_block().
4454 (get_frame_block): Use frame_address_in_block().
4455 (block_innermost_frame): Use frame_address_in_block() to match
4456 the frame pc address against the block boundaries rather than
4457 the frame pc directly. This prevents a failure when a frame pc
4458 is actually a return-address pointing immediately after the end
4461 2002-07-02 Grace Sainsbury <graces@redhat.com>
4463 * MAINTAINERS: Add self under write after approval.
4465 2002-07-02 Grace Sainsbury <graces@redhat.com>
4467 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4468 used in architecture vector. The default is
4469 m68k_local_breakpoint_from_pc.
4470 (m68k_local_breakpoint_from_pc): Add.
4471 (enum): Add register numbers from tm-m68k.h.
4472 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4474 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4475 GDB_MULTI_ARCH_PARTIAL.
4476 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4477 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4479 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4480 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4481 to enum in m68k-tdep.c
4483 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4485 * solib-osf.c (open_map): Compute the list of shared libraries
4486 loaded by the inferior, rather than the list of libraries loaded
4487 by GDB itself. Otherwise, GDB ends up reading the symbols from
4488 the wrong shared libraries...
4490 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4492 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4493 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4495 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4497 (FRAMELESS_SIGNAL): Remove function.
4498 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4499 i386_linux_saved_pc_after_call): Removed.
4500 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4501 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4502 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4504 * i386-tdep.c (i386_frameless_signal_p): New function.
4505 (i386_frame_chain): Deal with frameless signals.
4506 (i386_sigtramp_saved_sp): New function.
4507 (i386_frame_saved_pc): Deal with frameless signals.
4508 (i386_saved_pc_after_call): Make sure the correct value is
4509 returned just after entry into a sigtramp.
4510 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4511 i386fbsd4_sc_sp_offset): New variables.
4512 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4513 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4514 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4515 similiar to what we already did for sc_pc_offset.
4516 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4519 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4521 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4523 * config/i386/tm-x86-64linux.h: New.
4524 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4526 * config/i386/nm-x86-64.h: Rename to ...
4527 * config/i386/nm-x86-64linux.h: ... this one.
4528 * config/i386/x86-64linux.mh: Reflect the above change.
4530 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4532 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4533 with sigcontext_addr. Add sc_sp_offset.
4534 (i386bsd_sigtramp_saved_pc): Remove prototype.
4535 (i386bsd_sicontext_addr): Add prototype.
4536 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4537 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4538 (i386_svr4_sigtramp_saved_pc): Removed.
4539 (i386_svr4_sigcontext_addr): New function.
4540 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4541 Initialize tdep->sigcontext_addr instead. Initialize
4542 tdep->sc_pc_offset and tdep->sc_sp_offset.
4543 (i386_gdbarch_init): Likewise.
4544 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4546 (i386bsd_sigtramp_saved_pc): Remove function.
4547 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4548 Initialize tdep->sigcontext_addr instead. Initialize
4550 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4551 of tdep->sigtramp_saved_pc.
4552 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4553 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4556 * i386-tdep.c (i386_frameless_function_invocation,
4557 i386_frame_num_args, i386_frame_init_saved_regs,
4558 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4559 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4560 i386_extract_return_value, i386_store_return_value,
4561 i386_extract_struct_value_address, i386_register_virtual_type,
4562 i386_register_convertible, i386_register_convert_to_virtual,
4563 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4564 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4567 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4569 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4571 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4572 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4573 this macro. Include "value.h".
4575 2002-06-30 Aidan Skinner <aidan@velvet.net>
4577 * ada-exp.tab.c: remove as it's a generated file
4578 * ada-lex.c: remove as it's a generated file
4580 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4582 * config/i386/tm-i386.h (struct frame_info, struct
4583 frame_saved_regs, struct value, struct type): Remove forward
4586 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4587 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4588 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4589 (FILL_FPXREGSET): Define.
4591 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4593 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4594 i[3456]86-*-netbsd* case.
4595 * config/i386/tm-obsd.h: Removed.
4596 * config/i386/obsd.mt: Removed.
4597 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4599 (MH_CFLAGS): Add -DYYDEBUG=0.
4601 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4602 i386nbsd_sc_pc_offset on OpenBSD too.
4604 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4605 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4606 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4608 * i386bsd-tdep.c: Include "arch-utils.h".
4609 (i386bsd_aout_in_solib_call_trampoline): New function.
4610 (i386bsd_init_abi): Set in_solib_call_trampoline to
4611 i386bsd_aout_in_solib_call_trampoline.
4612 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4613 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4615 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4617 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4618 (struct obstack, struct bcache): Add opaque declarations.
4619 * Makefile.in (macrotab_h): Update
4621 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4623 * blockframe.c (generic_find_dummy_frame): Change return type to
4624 ``struct regcache''.
4625 (struct dummy_frame): Replace field ``registers'' with regcache, a
4626 struct regcache object.
4627 (generic_find_dummy_frame): Update.
4628 (generic_push_dummy_frame): Update. Use regcache_xfree,
4629 regcache_xmalloc and regcache_cpy.
4630 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4632 (deprecated_generic_find_dummy_frame): Update.
4633 (generic_read_register_dummy): Update. Use
4634 regcache_read_as_address.
4635 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4636 (generic_get_saved_register): Update. Use regcache_read.
4638 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4640 * Makefile.in (objfiles_h): Add $(bcache_h).
4641 * objfiles.h: Include "bcache.h".
4643 * Makefile.in (symtab_h): Remove $(bcache_h).
4644 * symtab.h: Do not include "bcache.h".
4646 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4648 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4649 generic_func_frame_chain_valid.
4651 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4653 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4654 * config/i386/tm-fbsd.h: Likewise.
4656 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4658 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4659 generic_unwind_get_saved_register.
4661 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4663 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4664 * regcache.c (supply_register): Add missing argument to
4665 register_buffer call.
4667 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4669 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4670 Solaris /bin/grep does not not like it. From Peter Schauer.
4672 2002-06-26 Tom Tromey <tromey@redhat.com>
4674 * command.h (add_setshow_cmd): Declare.
4675 (add_setshow_cmd_full): Declare.
4676 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4677 returns void. Use add_setshow_cmd_full.
4678 (add_setshow_cmd_full): New function.
4679 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4680 (add_setshow_boolean_cmd): Likewise.
4682 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4684 * config/vax/tm-vax.h: Protect from multiple inclusion.
4685 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4686 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4687 * config/vax/tm-vaxbsd.h: ...here. New file.
4688 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4690 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4692 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4693 (BELIEVE_PCC_PROMOTION): Remove.
4694 (AP_REGNUM): Move to...
4695 * config/vax/nm-vax.h: ...here.
4696 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4697 (vax_breakpoint_from_pc): New function.
4698 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4699 and gdbarch_believe_pcc_promotion.
4701 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4703 * Makefile.in (vax_tdep_h): Define.
4704 (vax-tdep.o): Use $(vax_tdep_h).
4705 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4706 (vax_dump_tdep): New function.
4707 (_initialize_vax_tdep): Register vax_dump_tdep.
4708 * vax-tdep.h: Include osabi.h.
4709 (struct gdbarch_tdep): New.
4711 2002-06-26 Andrew Cagney <cagney@redhat.com>
4713 * frame.h (deprecated_generic_find_dummy_frame): Rename
4714 generic_find_dummy_frame.
4715 * blockframe.c (generic_find_dummy_frame): Make static.
4716 (deprecated_generic_find_dummy_frame): New function.
4717 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4718 generic_find_dummy_frame with deprecated_find_dummy_frame.
4719 (sh64_nofp_frame_init_saved_regs): Ditto.
4720 (sh_fp_frame_init_saved_regs): Ditto.
4721 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4722 (s390_frame_chain): Ditto.
4723 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4725 2002-06-26 Grace Sainsbury <graces@redhat.com>
4727 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4728 gdbarch vector are at the top.
4730 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4731 (FRAME_ARGS_ADDRESS): Remove.
4732 (FRAME_LOCALS_ADDRESS): Remove.
4733 (FRAME_NUM_ARGS): Remove.
4734 (FRAME_ARGS_SKIP): Remove.
4735 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4736 (m68k_gdbarch_init): Add gdbarch initializations for macros
4737 undefined in tm-m68k.h
4739 2002-06-26 Grace Sainsbury <graces@redhat.com>
4741 * monitor.h: Add the function regname to monitor_ops
4742 structure. This way NUM_REGS does not have to be a constant.
4743 * monitor.c (monitor_fetch_register): Added support for regname
4744 function. The function is called if the array regnames is NULL.
4745 (monitor_store_register): Same.
4746 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4748 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4749 cpu32bug_cmds.regname to point to new function.
4750 * abug-rom.c (abug_regname): Same as above.
4751 (init_abug_cmds): Same.
4752 * dbug-rom.c (dbug_regname): Same as above.
4753 (init_dbug_cmds): Same.
4754 * remote-est.c (est_regname): Same.
4755 (init_est_cmds): Same.
4756 * rom68k-rom.c (rom68k_regname): Same.
4757 (init_rom68k_cmds): Same.
4759 2002-06-25 Tom Tromey <tromey@redhat.com>
4761 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4763 2002-06-25 Andrew Cagney <cagney@redhat.com>
4765 * infrun.c (stop_registers): Change variable's type to ``struct
4767 (xmalloc_inferior_status): Delete function.
4768 (free_inferior_status): Delete function.
4769 (normal_stop): Use regcache_cpy.
4770 (struct inferior_status): Change type of fields ``stop_registers''
4771 and ``registers'' to ``struct regcache''.
4772 (write_inferior_status_register): Use regcache_write.
4773 (save_inferior_status): Instead of calling
4774 xmalloc_inferior_status, allocate the inf_status buffer directly.
4775 Use regcache_dup_no_passthrough and regcache_dup to save the
4777 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4778 Replace the stop_registers regcache instead of overriding it. Use
4779 regcache_xfree. Instead of calling free_inferior_status, xfree
4780 the buffer directly.
4781 (discard_inferior_status): Use regcache_xfree. Instead of calling
4782 free_inferior_status, xfree the buffer directly.
4783 (build_infrun): Use regcache_xmalloc.
4784 (_initialize_infrun): Delete redundant call to build_infrun.
4786 * Makefile.in (infcmd.o): Add $(regcache_h).
4788 * infcmd.c: Include "regcache.h".
4789 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4790 obtain the address of `stop_registers' register buffer.
4791 (print_return_value): Ditto.
4793 * inferior.h (struct regcache): Add opaque declaration.
4794 (stop_registers): Change variable's declared type to ``struct
4797 2002-06-24 Tom Tromey <tromey@redhat.com>
4799 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4800 * target.c (initialize_targets): Fixed typo in
4801 trust-readonly-sections `show' documentation.
4803 * main.c: Marked all strings with _().
4805 2002-06-24 Don Howard <dhoward@redhat.com>
4807 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4808 that means max CORE_ADDR+1.
4809 (lookup_mem_region): Ditto.
4810 (mem_info_command): Ditto.
4812 2002-06-24 Grace Sainsbury <graces@redhat.com>
4814 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4815 (REGISTER_BYTES_OK): Remove.
4816 (REGISTER_BYTES): Remove.
4817 (STORE_STRUCT_RETURN): Remove.
4818 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4819 (STORE_RETURN_VALUE): Remove.
4820 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4821 (FRAME_CHAIN): Remove.
4822 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4823 (FRAME_SAVED_PC): Remove.
4824 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4825 (m68k_store_struct_return): Add.
4826 (m68k_deprecated_extract_return_value): Add.
4827 (m68k_deprecated_extract_struct_value_address): Add.
4828 (m68k_store_return_value): Add.
4829 (m68k_frame_chain): Add.
4830 (m68k_frameless_function_invocation): Add.
4831 (m68k_frame_saved_pc): Add.
4832 (m68k_gdbarch_init): added set_gdbarch calls for new
4833 functions and deleted macros.
4835 2002-06-23 Tom Tromey <tromey@redhat.com>
4837 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4838 (ALLDEPFILES): Likewise.
4839 (udiheaders): Removed.
4840 (udip2soc.o): Likewise.
4841 (udi2go32.o): Likewise.
4843 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4845 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4847 * infrun.c (_initialize_infrun): Delete unnecessary call to
4850 * regcache.h: Update comments describing the regcache_cpy family
4852 (regcache_save, regcache_restore): Delete declaration.
4853 (regcache_save_no_passthrough): Delete declaration.
4854 (regcache_restore_no_passthrough): Delete declaration.
4855 * regcache.c (regcache_save): Delete function.
4856 (regcache_save_no_passthrough): Delete function.
4857 (regcache_restore): Delete function.
4858 (regcache_restore_no_passthrough): Delete function.
4860 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4862 * config/m68k/tm-m68k.h: Fix typo.
4863 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4864 (m68k_frame_init_saved_regs): Declare.
4866 2002-06-21 Jim Blandy <jimb@redhat.com>
4868 Remove some vestiges of Harris 88k support.
4869 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4870 register numbering quirk.
4871 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4872 odd symbols occurring in Harris 88k ELF targets.
4874 2002-06-21 Tom Tromey <tromey@redhat.com>
4876 * gdb_locale.h: New file.
4877 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4878 (defs_h): Added gdb_locale.h.
4879 * configure, config.in: Rebuilt.
4880 * configure.in (PACKAGE): Define.
4881 * defs.h: Include gdb_locale.h.
4882 * main.c (captured_main): Call setlocale, bindtextdomain,
4885 2002-06-21 Dave Brolley <brolley@redhat.com>
4887 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4888 * config/frv/frv.mt: New file.
4889 * config/frv/tm-frv.h: New file.
4890 * configure.tgt: Support frv-*-*.
4891 * Makefile.in (frv-tdep.o): New target.
4892 * frv-tdep.c: New file.
4893 * NEWS: Mention frv.
4895 2002-06-21 Dave Brolley <brolley@redhat.com>
4897 * MAINTAINERS: Add self to "Write After Approval" list.
4899 2002-06-21 Grace Sainsbury <graces@redhat.com>
4901 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4902 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4903 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4904 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4905 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4907 * m68k-tdep.c: Include arch-utils.h
4908 (m68k_register_raw_size): Add.
4909 (m68k_register_virtual_size): Add.
4910 (m68k_register_virtual_type): Add.
4911 (m68k_register_name): Add.
4912 (m68k_stack_align): Add.
4913 (m68k_register_byte): Add.
4914 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4917 2002-06-21 Grace Sainsbury <graces@redhat.com>
4919 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4920 m68k_find_saved_regs.
4921 (m68k_pop_frame): Removed saved_regs structure, and replaced
4922 references to it with frame->saved_regs.
4923 (m68k_gdbarch_init): Added function calls to initialize the
4925 (m68k_fix_call_dummy): Add.
4926 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4927 (CALL_DUMMY): Remove.
4928 (CALL_DUMMY_LENGTH): Remove.
4929 (CALL_DUMMY_START_OFFSET): Remove.
4930 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4931 (FIX_CALL_DUMMY): Remove.
4932 (PUSH_DUMMY_FRAME): Remove.
4933 (POP_FRAME): Remove.
4935 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4937 * parse.c (parse_fprintf): New function used to avoid calls to
4938 fprintf in bison parser generated debug code.
4939 * parser-defs.h: Declaration of new parse_fprintf function.
4940 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4941 Set YYDEBUG to 1 by default.
4942 Set YYFPRINTF as parse_fprintf.
4944 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4946 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4948 (pointer_encoding, enum ptr_encoding): New.
4949 (execute_cfa_program): Take care about pointer encoding.
4950 (dwarf2_build_frame_info): Only call parse_frame_info for
4951 .debug_frame and .eh_frame.
4952 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4953 fixed augmentation handling, added relative addressing,
4954 ignore duplicate FDEs. Added comments.
4955 * dwarf2cfi.c: Reindented.
4957 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4959 * event-top.c (command_handler): Don't use space_at_cmd_start
4960 unless there is sbrk() on the host. Assign time and space data
4961 to union fields of the appropriate length.
4963 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4965 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4966 x86_64_register_name. Return type changed to 'const char *'.
4967 (x86_64_register_name2nr): Rename to x86_64_register_number.
4968 (x86_64_gdbarch_init): Update to reflect the change.
4969 * x86-64-tdep.h: Ditto.
4970 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4971 (supply_fpregset): Ditto.
4973 2002-06-19 Andrew Cagney <cagney@redhat.com>
4975 * regcache.h: Update copyright.
4976 (struct regcache, struct gdbarch): Add opaque declarations.
4977 (current_regcache): Declare global variable.
4978 (regcache_read, regcache_write): Add gdbarch parameter.
4979 (regcache_save, regcache_save_no_passthrough)
4980 (regcache_restore, regcache_restore_no_passthrough)
4981 (regcache_dup, regcache_dup_no_passthrough)
4982 (regcache_cpy, regcache_cpy_no_passthrough)
4983 (deprecated_grub_regcache_for_registers)
4984 (deprecated_grub_regcache_for_register_valid)
4985 (regcache_valid_p): Add function declarations.
4987 * regcache.c: Update copyright.
4988 (regcache_descr_handle): New global variable.
4989 (struct regcache_descr): Define.
4990 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4991 (regcache_descr, xfree_regcache_descr): New functions.
4992 (struct regcache): Define.
4993 (regcache_xmalloc, regcache_xfree): New functions.
4994 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4995 (regcache_dup, regcache_dup_no_passthrough): New functions.
4996 (regcache_valid_p, regcache_read_as_address): New functions.
4997 (deprecated_grub_regcache_for_registers): New function.
4998 (deprecated_grub_regcache_for_register_valid): New function.
4999 (current_regcache): New global variable.
5000 (register_buffer): Add regcache parameter. Update calls.
5001 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5002 (read_register_gen, write_register_gen): Update register_buffer
5003 call. Test for legacy_p instead of gdbarch_register_read_p or
5004 gdbarch_register_write_p.
5005 (regcache_collect): Update register_buffer call.
5006 (build_regcache): Rewrite. Use deprecated grub functions.
5007 (regcache_save, regcache_save_no_passthrough): New functions.
5008 (regcache_restore, regcache_restore_no_passthrough): New
5010 (_initialize_regcache): Create the regcache_data_handle. Swap
5011 current_regcache global variable.
5013 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5014 parameter to regcache_read and regcache_write calls.
5015 (sh4_register_read): Ditto.
5016 (sh64_pseudo_register_read): Ditto.
5017 (sh64_register_read): Ditto.
5018 (sh_pseudo_register_write): Ditto.
5019 (sh4_register_write): Ditto.
5020 (sh64_pseudo_register_write): Ditto.
5021 (sh64_register_write): Ditto.
5023 * defs.h (XCALLOC): Define.
5025 2002-06-19 Grace Sainsbury <graces@redhat.com>
5027 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5028 * m68k-tdep.c (m68k_gdbarch_init): Added.
5029 (m68k_dump_tdep): Added.
5031 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5033 * ada-lang.c (fill_in_ada_prototype): Update comment.
5035 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5037 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5039 (mips_abi_string, mips_abi_strings): New.
5040 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5041 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5042 tdep->mips_abi_string. Honor mips_abi_string. Default to
5043 O32 if no ABI is found.
5044 (mips_dump_tdep): Use mips_abi_strings.
5045 (mips_abi_update): New function.
5046 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5047 ``set mips abi'' and ``show mips abi''. Check the size of
5050 2002-06-19 Andrew Cagney <cagney@redhat.com>
5052 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5055 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5057 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5058 current frame using only the first stack size adjustment. All
5059 subsequent size adjustments are not considered to be part of
5060 the "static" part of the current frame.
5061 Compute the address of the saved registers relative to the
5062 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5063 in use in this frame.
5065 2002-06-18 Don Howard <dhoward@redhat.com>
5067 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5068 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5069 suggesting this solution.
5071 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5073 * config/romp/xm-rtbsd.h: Delete file.
5074 * config/romp/rtbsd.mh: Delete file.
5076 2002-06-18 Keith Seitz <keiths@redhat.com>
5078 * breakpoint.c (condition_command): Post breakpoint_modify
5079 when a condition is added to an existing breakpoint.
5080 (commands_command): Likewise for commands.
5081 (set_ignore_count): Likewise for ignore counts.
5082 If no tty, do not simply return, still need to send event
5084 (ignore_command): Only print a newline if the command came
5086 Don't call breakpoints_changed, since this is now properly
5087 handled by set_ignore_count.
5089 2002-06-18 Andrew Cagney <cagney@redhat.com>
5091 * MAINTAINERS: Note that cris-elf target can be compiled with
5093 * cris-tdep.c (cris_register_name): Make return type constant.
5094 (cris_breakpoint_from_pc): Ditto.
5096 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5098 * frame.h (struct frame_info): Change type of context to
5101 2002-06-17 Andrew Cagney <cagney@redhat.com>
5103 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5105 * gdbarch.h, gdbarch.c: Regenerate.
5106 * config/mips/tm-mips.h (mips_register_name): Update.
5107 * i386-tdep.h (i386_register_name): Update.
5108 * mips-tdep.c (mips_register_name): Update
5109 * alpha-tdep.c (alpha_register_name): Update.
5110 * arch-utils.c (legacy_register_name): Update.
5111 * arch-utils.h (legacy_register_name): Update.
5112 * avr-tdep.c (avr_register_name): Update.
5113 * ia64-tdep.c (ia64_register_name): Update.
5114 * i386-tdep.c (i386_register_name): Update.
5115 * sparc-tdep.c (sparc32_register_name): Update.
5116 (sparc64_register_name): Update.
5117 (sparclite_register_name): Update.
5118 (sparclet_register_name): Update.
5119 * sh-tdep.c (sh_generic_register_name): Update.
5120 (sh_sh_register_name): Update.
5121 (sh_sh3_register_name): Update.
5122 (sh_sh3e_register_name): Update.
5123 (sh_sh_dsp_register_name): Update.
5124 (sh_sh3_dsp_register_name): Update.
5125 (sh_sh4_register_name): Update.
5126 (sh_sh64_register_name): Update.
5127 * s390-tdep.c (s390_register_name): Update.
5128 * rs6000-tdep.c (rs6000_register_name): Update.
5129 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5130 (ns32k_register_name_32382): Update.
5131 * d10v-tdep.c (d10v_ts2_register_name): Update.
5132 (d10v_ts3_register_name): Update.
5133 * xstormy16-tdep.c (xstormy16_register_name): Update.
5134 * vax-tdep.c (vax_register_name): Update.
5135 * v850-tdep.c (v850_register_name): Update.
5136 * m68hc11-tdep.c (m68hc11_register_name): Update.
5137 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5138 (am33_register_name): Update.
5140 2002-06-17 Grace Sainsbury <graces@redhat.com>
5142 * m68k-tdep.c: Reindented.
5144 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5146 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5147 list of predefined types.
5149 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5151 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5152 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5153 REGISTER_CONVERT_TO_RAW): Remove defines.
5154 (i386_register_virtual_type, i386_register_convertible,
5155 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5157 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5158 macros mentioned above.
5160 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5161 (i386lynx_saved_pc_after_call): Remove prototype.
5162 * i386ly-tdep.c: Include "i386-tdep.h".
5163 (i386lynx_saved_pc_after_call): Make static. Use
5164 read_memory_nobpt instead of read_memory. Use
5165 read_memory_unsigned_integer instead of read_memory_integer.
5166 (i386lynx_init_abi): New function.
5167 (i386lynx_coff_osabi_sniffer): New function.
5168 (_initialize_i386bsd_tdep): New function.
5170 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5171 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5172 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5173 (i386_fix_call_dummy): Remove prototype.
5174 * i386-tdep.c (i386_call_dummy_words): New variable.
5175 (i386_gdbarch_init): Adjust for removal of the
5176 macros mentioned above.
5178 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5180 * command.h (add_setshow_auto_boolean_cmd): Replace
5181 add_set_auto_boolean_cmd.
5182 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5183 add_set_auto_boolean_cmd.
5184 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5185 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5186 mask-address'' command.
5187 (show_mask_address): Add cmd parameter.
5188 * remote.c (add_packet_config_cmd): Update. Change type of
5189 set_func and show_func to cmd_sfunc_ftype.
5190 (_initialize_remote): Update `set remote Z-packet'
5191 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5192 (show_remote_protocol_e_packet_cmd): Ditto.
5193 (show_remote_protocol_E_packet_cmd): Ditto.
5194 (show_remote_protocol_P_packet_cmd): Ditto.
5195 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5196 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5197 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5198 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5199 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5200 (show_remote_protocol_Z_packet_cmd): Ditto.
5201 (show_remote_protocol_binary_download_cmd): Ditto.
5202 (show_remote_cmd): Pass NULL to all of above.
5204 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5206 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5207 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5208 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5209 POP_FRAME): Remove defines.
5210 (i386_push_arguments, i386_store_struct_return,
5211 i386_extract_return_value, i386_store_return_value,
5212 i386_extract_struct_value_address, i386_push_dummy_frame,
5213 i386_pop_frame): Renove prototypes.
5214 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5215 macros mentioned above.
5217 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5219 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5220 add_set_boolean_cmd.
5221 (add_setshow_cmd): New function.
5222 * command.h (add_setshow_boolean_cmd): Replace
5223 add_set_boolean_cmd.
5224 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5225 and ``set rdiromatzero''.
5226 * maint.c (_initialize_maint_cmds): Update commented out code.
5227 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5228 * target.c (initialize_targets): Update `set
5229 trust-readonly-sections'.
5230 * remote.c (_initialize_remote): Update `set remotebreak'.
5232 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5234 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5235 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5236 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5237 fit into multi-arch framework.
5238 (i386_breakpoint_from_pc): New function.
5239 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5242 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5243 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5244 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5245 (i386_frameless_function_invocation, i386_frame_num_args,
5246 i386_frame_init_saved_regs): Remove prototypes.
5247 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5248 macros mentioned above.
5250 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5252 * cli/cli-decode.c (set_cmd_cfunc): Update.
5253 (set_cmd_sfunc): Update.
5254 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5255 (set_cmd_sfunc, set_cmd_cfunc): Update.
5256 * cli/cli-decode.h: Update.
5258 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5260 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5261 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5263 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5265 * defs.h (auto_boolean): Declare enum.
5266 * command.h (cmd_auto_boolean): Delete enum.
5267 * mips-tdep.c (mask_address_var): Update.
5268 (mips_mask_address_p): Update.
5269 (show_mask_address): Update.
5270 * remote.c (struct packet_config): Update.
5271 (update_packet_config): Update.
5272 (show_packet_config_cmd): Update.
5273 (packet_ok): Update.
5274 (add_packet_config_cmd): Update.
5275 (_initialize_remote):
5276 * command.h: Update.
5277 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5278 (do_setshow_command): Update.
5279 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5280 * cli/cli-decode.h: Update.
5282 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5284 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5285 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5286 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5287 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5288 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5289 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5291 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5292 list of DJGPP COFF targets.
5294 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5295 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5296 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5297 (FP0_REGNUM): Remove define.
5298 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5299 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5300 (i386_register_virtual_size): Remove protoype.
5301 * i386-tdep.c (i386_register_virtual_size): Removed.
5302 (i386_extract_return_value, i386_store_return_value): Use
5303 FP0_REGNUM instead of NUM_FREGS to determine whether the
5304 floating-point registers are available.
5305 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5306 Adjust for removal of macros mentioned above.
5308 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5310 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5312 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5314 (supply_gregset, fill_gregset): Remove use of register keyword and
5315 remove declaration for regmap. Use I386_NUM_GREGS instead of
5316 NUM_REGS and NUM_FREGS.
5317 (FPREGSET_FSAVE_OFFSET): Remove.
5318 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5319 NUM_FREGS to determine whether the floating-point registers are
5322 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5323 gnu_store_registers): Replace usage of NUM_GREGS with
5326 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5327 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5328 usage of NUM_GREGS with I386_NUM_GREGS.
5330 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5332 * i386bsd-nat.c: Include "i386-tdep.h".
5333 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5336 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5337 and associated comment. They no longer make any sense, since we
5338 don't use this file anymore on Linux.
5340 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5341 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5342 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5343 elements in these arrays.
5344 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5347 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5349 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5350 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5352 2002-06-14 Andrew Cagney <cagney@redhat.com>
5354 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5355 EXTRACT_RETURN_VALUE.
5356 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5357 EXTRACT_STRUCT_VALUE_ADDRESS.
5358 * gdbarch.h, gdbarch.c: Regenerate.
5360 * values.c (value_being_returned): Handle
5361 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5362 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5364 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5365 * arm-tdep.c (arm_gdbarch_init): Update.
5366 * avr-tdep.c (avr_gdbarch_init): Update.
5367 * cris-tdep.c (cris_gdbarch_init): Update.
5368 * d10v-tdep.c (d10v_gdbarch_init): Update.
5369 * ia64-tdep.c (ia64_gdbarch_init): Update.
5370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5371 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5372 * s390-tdep.c (s390_gdbarch_init): Update.
5373 * sh-tdep.c (sh_gdbarch_init): Update.
5374 * s390-tdep.c (s390_gdbarch_init): Update.
5375 * sparc-tdep.c (sparc_gdbarch_init): Update.
5376 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5377 * v850-tdep.c (v850_gdbarch_init): Update.
5378 * vax-tdep.c (vax_gdbarch_init): Update.
5379 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5380 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5382 * config/arc/tm-arc.h: Update.
5383 * config/d30v/tm-d30v.h: Update.
5384 * config/fr30/tm-fr30.h: Update.
5385 * config/h8300/tm-h8300.h: Update.
5386 * config/h8500/tm-h8500.h: Update.
5387 * config/i386/tm-i386.h: Update.
5388 * config/i386/tm-ptx.h: Update.
5389 * config/i386/tm-symmetry.h: Update.
5390 * config/i960/tm-i960.h: Update.
5391 * config/m32r/tm-m32r.h: Update.
5392 * config/m68k/tm-delta68.h: Update.
5393 * config/m68k/tm-linux.h: Update.
5394 * config/m68k/tm-m68k.h: Update.
5395 * config/m88k/tm-m88k.h: Update.
5396 * config/mcore/tm-mcore.h: Update.
5397 * config/mips/tm-mips.h: Update.
5398 * config/mn10200/tm-mn10200.h: Update.
5399 * config/pa/tm-hppa.h: Update.
5400 * config/pa/tm-hppa64.h: Update.
5401 * config/sparc/tm-sp64.h: Update.
5402 * config/sparc/tm-sparc.h: Update.
5403 * config/sparc/tm-sparclet.h: Update.
5404 * config/z8k/tm-z8k.h: Update.
5406 2002-06-14 Andrew Cagney <cagney@redhat.com>
5408 * Makefile.in (i386_linux_tdep_h): Define.
5409 (i386_tdep_h, i387_tdep_h): Define.
5410 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5411 $(i386_tdep_h) and $(i387_tdep_h).
5412 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5414 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5416 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5417 Already covered by the default.
5419 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5420 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5421 (i386_gdbarch_init): Initialize long_double_format and long_double
5424 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5425 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5427 * config/i386/i386sol2.mh: ... here.
5428 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5429 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5430 (SIGCONTEXT_PC_OFFSET): Remove define.
5431 (IN_SIGTRAMP): Remove define.
5432 * i386-sol2-tdep.c: New file.
5434 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5435 * config/i386/tm-i386nw.h: Removed.
5437 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5438 USE_STRUCT_CONVENTION): Remove defines.
5439 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5440 (get_longjmp_target): Remove prototype.
5441 (IN_SIGTRAMP): Remove define.
5442 (i386bsd_in_sigtramp): Remove prototype.
5443 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5444 function. Update comment accordingly
5445 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5446 (FRAME_SAVED_PC): Remove define.
5447 (i386bsd_frame_saved_pc): Remove prototype.
5448 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5449 GET_LONGJMP_TARGET): Remove defines.
5450 (get_longjmp_target): Remove prototype.
5451 (IN_SIGTRAMP): Remove define.
5452 (i386bsd_in_sigtramp): Remove prototype.
5453 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5454 function. Update comment accordingly
5455 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5456 (FRAME_SAVED_PC): Remove define.
5457 (i386bsd_frame_saved_pc): Remove prototype.
5458 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5460 (USE_STRUCT_CONVENTION): Remove prototype.
5461 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5463 (_initialize_i386bsd_nat): Revise logic to determine some
5464 constants at compile time when compiling a native GDB. Warn if
5465 things don't match up with what we expect.
5466 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5468 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5469 to use date stored in `struct gdbarch_tdep'.
5470 (i386bsd_sigcontext_offset): Remove varaible.
5471 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5472 stored in `struct gdbarch_tdep'.
5473 (i386bsd_frame_saved_pc): Make static.
5474 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5475 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5476 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5477 i386fbsd4_sc_pc_offset): New variables.
5478 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5479 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5481 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5483 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5484 Modify the value of i386fbsd_sigtramp_start and
5485 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5486 i386fbsd_sigtramp_end.
5487 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5490 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5491 define to i386-linux-tdep.h.
5492 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5493 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5495 (i386_linux_register_name, i386_linux_register_byte,
5496 i386_linux_register_raw_size): Remove prototypes.
5497 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5498 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5499 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5500 TARGET_WRITE_PC): Remove defines.
5501 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5502 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5503 i386_linux_write_pc): Remove prototypes.
5504 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5505 (get_longjmp_target): Remove prototype.
5506 * i386-linux-tdep.h: New file.
5507 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5508 * i386-linux-tdep.c: Include "i386-tdep.h" and
5509 "i386-linux-tdep.h".
5510 (i386_linux_register_name, i386_linux_register_byte,
5511 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5512 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5514 (i386_linux_init_abi): New function.
5515 (_initialize_i386_linux_tdep): New function.
5517 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5518 (i386_saved_pc_after_call): Remove prototype.
5519 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5520 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5521 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5522 (i386_register_name, i386_stab_reg_to_regnum,
5523 i386_dwarf_reg_to_regnum): Remove prototypes.
5524 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5525 SIZEOF_SSE_REGS): Remove defines.
5526 (REGISTER_BYTES): Remove define.
5527 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5528 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5529 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5530 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5531 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5532 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5533 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5534 (get_longjmp_target): Remove prototype.
5535 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5536 (sigtramp_saved_pc): Remove define.
5537 (i386v4_sigtramp_saved_pc): Remove prototype.
5538 * config/i386/tm-go32.h (FRAME_CHAIN,
5539 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5540 (i386go32_frame_saved_pc): Remove prototype.
5541 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5542 (get_longjmp_target): Remove prototype.
5543 * i386-tdep.h: Include "osabi.h".
5544 (enum i386_abi): Removed.
5545 (enum struct_return): New enum.
5546 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5547 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5548 sc_pc_offset members.
5549 (i386_gdbarch_register_os_abi): Remove prototype.
5550 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5551 I386_SSE_NUM_REGS): New defines.
5552 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5553 I386_SSE_SIZEOF_REGS): New defines.
5554 (i386_register_name, i386_register_byte, i386_register_raw_size):
5556 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5557 (i386bsd_sigtramp_saved_pc): New prototype.
5558 * i386-tdep.c: Don't include "elf-bfd.h".
5559 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5560 i386_frame_chain, i386_saved_pc_after_call): Make static.
5561 (i386_frame_saved_pc): Rewrite to call architecture dependent
5562 function to deal with signal handlers. Make static.
5563 (i386go32_frame_saved_pc): Removed.
5564 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5566 (i386_get_longjmp_target): New function.
5567 (default_struct_convention, pcc_struct_convention,
5568 reg_struct_convention, valid_conventions, struct_convention): New
5570 (i386_use_struct_convention): New function.
5571 (i386v4_sigtramp_saved_pc): Renamed to
5572 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5573 (i386_pc_in_sigtramp): New function.
5574 (i386_abi_names): Removed.
5575 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5576 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5578 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5579 i386_gdbarch_register_os_abi): Removed.
5580 (struct i386_abi_handler): Removed.
5581 (i386_abi_handler_list): Removed.
5582 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5584 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5585 i386_nw_init_abi): New functions.
5586 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5587 Use set_gdbarch_xxx() calls instead of relying on macros for a
5589 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5590 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5591 Register the various architecture variants defined in this file.
5593 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5595 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5596 (struct main_type): Remove arg_types member. Update comments for
5598 (TYPE_ARG_TYPES): Remove.
5599 (TYPE_FN_FIELD_ARGS): Update.
5600 (smash_to_method_type): Update prototype.
5602 * c-typeprint.c (cp_type_print_method_args): Take method type
5603 instead of argument list. Use new argument layout. Simplify.
5604 (c_type_print_args): Use new argument layout. Simplify.
5605 (c_type_print_base): Update call to cp_type_print_method_args.
5606 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5607 argument; use die->type instead. Update call to
5608 smash_to_method_type.
5609 (read_structure_scope): Update call to dwarf2_add_member_fn.
5610 * gdbtypes.c (allocate_stub_method): Update comment.
5611 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5612 Use new argument layout.
5613 (check_stub_method): Use new argument layout. Don't count
5614 void as an argument.
5615 (print_arg_types): Update comments. Use new argument layout.
5616 (recursive_dump_type): Don't print arg_types member.
5617 * hpread.c (hpread_read_struct_type): Use new argument layout.
5618 (fixup_class_method_type): Likewise.
5619 (hpread_type_lookup): Likewise.
5620 * stabsread.c (read_type): Update calls to read_args and
5621 smash_to_method_type.
5622 (read_args): Use new argument layout. Simplify.
5623 * valops.c (typecmp): Use new argument layout. Update parameters
5624 and comments. Simplify.
5625 (hand_function_call): Use new argument layout.
5626 (search_struct_method): Update call to typecmp.
5627 (find_overload_match): Use new argument layout.
5629 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5631 * NEWS: Mention multithreaded debug support for gdbserver.
5633 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5635 * MAINTAINERS: Mention NEWS.
5637 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5639 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5640 (struct mips_objfile_private, compare_pdr_entries): New.
5641 (non_heuristic_proc_desc): Read the ".pdr" section if it
5644 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5646 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5647 (arm_debug): New static variable.
5648 (_initialize_arm_tdep): Add ``set debug arm'' command.
5650 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5652 * Makefile.in (sim_arm_h): Define.
5653 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5654 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5655 (arm_register_sim_regno): New function, map an internal REGNUM
5656 onto a simulator register number.
5657 (arm_gdbarch_init): Set register_sim_regno.
5659 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5661 * MAINTAINERS: Add self.
5663 2002-06-11 Jim Blandy <jimb@redhat.com>
5665 * source.c (source_info): Mention whether the symtab has
5666 information about preprocessor macros.
5668 Call the command `info macro', not `show macro'.
5669 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5671 (_initialize_macrocmd): Register `info_macro_command' in
5672 `infolist', not `showlist'.
5674 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5676 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5677 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5678 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5679 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5680 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5682 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5683 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5684 (_initialize_mips_tdep): Remove dead code.
5685 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5686 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5687 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5688 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5689 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5690 MIPS_LAST_FP_ARG_REGNUM): Remove.
5692 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5694 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5695 (unwind_tmp_obstack_free, parse_frame_info)
5696 (update_context, cfi_read_fp, cfi_write_fp)
5697 (cfi_frame_chain, cfi_init_extra_frame_info)
5698 (cfi_virtual_frame_pointer): Use the above function.
5699 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5701 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5703 * v850-tdep.c (v850_type_is_scalar): New function.
5704 (v850_use_struct_convention): Match current gcc implementation
5705 as close as possible.
5706 (v850_push_arguments): Fix stack_offset handling. Don't write
5707 struct_addr into register. This is done by v850_store_struct_return.
5708 (v850_extract_return_value): Care for structs.
5709 (v850_store_return_value): Ditto.
5710 (v850_store_struct_return): Actually write address.
5712 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5714 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5715 without debug information too.
5717 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5719 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5720 Make multi-arch pure.
5721 * gdbarch.h, gdbarch.c: Re-generate.
5722 * arm-tdep.c (arm_print_float_info): Update.
5723 * arch-utils.h (default_print_float_info): Update.
5724 * arch-utils.c (default_print_float_info): Update.
5725 * infcmd.c (float_info): Update call.
5727 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5729 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5730 the front of the initialize list.
5732 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5734 * infrun.c (struct inferior_status): Replace fields
5735 selected_frame_address and selected_level with field
5737 (save_inferior_status): Update. Use get_frame_id.
5738 (struct restore_selected_frame_args): Delete.
5739 (restore_selected_frame): Update. Use frame_find_by_id.
5740 (restore_inferior_status): Update.
5742 * breakpoint.h (struct breakpoint): Change type of
5743 watchpoint_frame to frame_id.
5744 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5745 call to get_current_frame.
5746 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5748 (watchpoint_check): Use frame_find_by_id.
5750 * frame.h (record_selected_frame): Delete declaration.
5751 * stack.c (record_selected_frame): Delete function.
5753 * frame.h (struct frame_id): Define.
5754 (get_frame_id): Declare.
5755 (frame_find_by_id): Declare.
5756 * frame.c (frame_find_by_id): New function.
5757 (get_frame_id): New function.
5759 2002-06-10 Andrey Volkov <avolkov@transas.com>
5761 * ser-e7kpc.c: Fix duplicated define and call of
5762 _initialize_ser_e7000pc
5764 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5766 * signals/signals.c (target_signal_from_host): Fix #ifdef
5768 (do_target_signal_to_host): Likewise.
5770 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5772 * mips-tdep.c (mips_find_abi_section): New function.
5773 (mips_gdbarch_init): Call it.
5775 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5777 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5778 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5779 after Andrew's 2002-06-08 gdbarch change.
5781 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5783 * i386-linux-nat.c (suppy_gregset): Don't supply
5784 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5786 (fill_gregset): Don't fetch it under the same circumstances.
5788 2002-06-09 Andrew Cagney <cagney@redhat.com>
5790 * Makefile.in (callback_h): Define.
5791 (remote_sim_h): Update path to remote-sim.h.
5792 (remote-rdp.o): Add $(callback_h).
5793 (remote-sim.o): Use $(callback_h).
5794 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5795 * remote-rdp.c: Include "gdb/callback.h".
5797 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5799 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5800 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5802 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5804 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5805 * rdi-share/serpardr.c: Ditto.
5806 * rdi-share/unixcomm.c: Ditto.
5807 * rdi-share/serdrv.c: Ditto.
5808 * rdi-share/hostchan.h: Ditto.
5809 * rdi-share/hostchan.c: Ditto.
5810 * rdi-share/host.h: Ditto.
5811 * rdi-share/devsw.c: Ditto.
5813 * objfiles.h: Change type of obj_private to void pointer.
5814 * pa64solib.c: Update copyright. Don't include "assert.h", use
5815 strcmp instead of STREQ, use LONGEST, do not use PTR
5816 * somsolib.c: Ditto.
5818 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5819 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5820 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5822 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5824 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5825 (default_get_saved_register): Delete function.
5826 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5827 generic_unwind_get_saved_register.
5828 * gdbarch.h, gdbarch.c: Re-generate.
5830 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5832 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5833 generic_func_frame_chain_valid.
5834 * gdbarch.h, gdbarch.c: Re-generate.
5835 * blockframe.c (generic_func_frame_chain_valid): Only check
5836 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5837 passing FP to PC_IN_CALL_DUMMY.
5840 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5842 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5843 (register_gdbarch_data): Initialize init_p.
5844 (gdbarch_data): Initialize data pointer using the init function.
5845 (init_gdbarch_data): Delete function.
5846 (gdbarch_update_p): Update.
5847 (initialize_non_multiarch): Update.
5848 (struct gdbarch): Add field initialized_p.
5849 * gdbarch.h, gdbarch.c: Re-generate.
5851 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5853 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5854 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5855 better do the things actually here.
5856 * x86-64-tdep.c (x86_64_register_name2nr): New.
5857 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5858 (x86_64_gdbarch_init): Respect the above change.
5859 * x86-64-tdep.h (x86_64_register_name2nr)
5860 (x86_64_register_nr2name): Add prototypes.
5861 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5863 2002-06-06 Michael Snyder <msnyder@redhat.com>
5865 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5866 Delete extra braces and re-indent.
5867 (d10v_store_return_value): Char return values
5868 must be shifted over by one byte in R0.
5869 (d10v_extract_return_value): Delete extra braces, re-indent.
5871 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5873 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5874 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5875 (d10v_integer_to_address): Rewrite.
5876 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5877 the d10v specific functions which take care of converting to the
5880 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5882 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5883 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5885 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5887 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5889 * config/tm-linux.h: Ditto.
5890 * config/alpha/tm-alphalinux.h: Ditto.
5891 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5892 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5893 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5894 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5895 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5896 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5897 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5898 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5899 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5900 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5901 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5902 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5903 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5904 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5905 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5906 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5907 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5908 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5909 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5910 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5911 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5912 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5913 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5914 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5915 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5916 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5917 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5918 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5919 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5920 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5921 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5922 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5923 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5924 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5925 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5926 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5927 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5929 2002-05-04 Aidan Skinner <aidan@velvet.net>
5931 * ada-exp.tab.c: New file
5932 * ada-exp.y: New file
5933 * ada-lang.c: New file
5934 * ada-lang.h: New file
5935 * ada-lex.c: New file
5936 * ada-lex.l: New file
5937 * ada-tasks.c: New file
5938 * ada-typeprint.c: New file
5939 * ada-valprint.c: New file
5941 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5943 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5944 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5946 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5948 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5949 insetead of ppc-linux-tdep.o.
5950 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5951 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5953 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5955 2002-05-07 Christian Groessler <chris@groessler.org>
5956 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5957 bit register contents for little endian hosts.
5959 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5961 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5964 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5966 * gdbarch.h: Regenerate.
5968 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5970 * MAINTAINERS: Add everyone to write-after-approval list.
5972 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5974 * stack.c (frame_info): Use frame_register_unwind instead of
5975 saved_regs. Mention when the SP is on the stack or in a register.
5977 * frame.h (frame_register_unwind_ftype): Define. Document.
5978 (struct frame_info): Add field register_unwind and
5979 register_unwind_cache.
5980 (frame_register_unwind): Declare.
5981 (generic_unwind_get_saved_register): Declare.
5983 * frame.c (frame_register_unwind): New function.
5984 (generic_unwind_get_saved_register): New function.
5986 * blockframe.c (generic_call_dummy_register_unwind): New function.
5987 (frame_saved_regs_register_unwind): New function.
5988 (set_unwind_by_pc): New function.
5989 (create_new_frame): New function.
5990 (get_prev_frame): New function.
5992 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5994 * a29k-share/: Delete directory.
5995 * remote-vx29k.c: Delete file.
5997 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5999 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6000 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6002 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6004 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6005 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6008 (sparcnbsd-tdep.o): New dependency lists.
6009 * NEWS: Note new UltraSPARC NetBSD native configuration.
6010 * configure.host (sparc64-*-netbsd*): New host.
6011 * configure.tgt (sparc-*-netbsdelf*)
6012 (sparc-*-netbsd*): Set gdb_target to nbsd.
6013 (sparc64-*-netbsd*): New target.
6014 * sparc64nbsd-nat.c: New file.
6015 * sparcnbsd-nat.c: New file.
6016 * sparcnbsd-tdep.c: New file.
6017 * sparcnbsd-tdep.h: New file.
6018 * config/sparc/nbsd.mt: New file.
6019 * config/sparc/nbsd64.mh: New file.
6020 * config/sparc/nbsd64.mt: New file.
6021 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6022 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6024 * config/sparc/nbsdaout.mt: Remove.
6025 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6026 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6028 * config/sparc/nbsdelf.mt: Remove.
6029 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6030 sparc-nat.c compatiblity defines.
6031 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6032 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6033 * config/sparc/tm-nbsd64.h: New file.
6034 * config/sparc/tm-nbsdaout.h: Remove.
6035 * config/sparc/xm-nbsd.h: Remove.
6037 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6039 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6040 * sparc-tdep.c: Include osabi.h.
6041 (gdbarch_tdep): Add osabi member.
6042 (_initialize_sparc_tdep): Use gdbarch_register.
6043 (sparc_gdbarch_init): Use generic OS ABI framework.
6044 (sparc_dump_tdep): New function.
6046 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6048 * corefile.c (do_captured_read_memory_integer): Return non-zero
6050 (safe_read_memory_integer): Copy result of memory read when
6051 status is non-zero. Also, add comments.
6053 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6055 * Makefile.in (ppc_tdep_h): Define.
6058 (rs6000-tdep.o): Use $(ppc_tdep_h).
6061 (ppcnbsd-tdep.o): New dependency lists.
6062 * ppc-tdep.h: Use generic OS ABI framework.
6063 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6064 (ppc_linux_init_abi): New functions.
6065 (ppc_sysv_abi_broken_use_struct_convention)
6066 (ppc_sysv_abi_use_struct_convention)
6067 (ppc_sysv_abi_push_arguments): Move to...
6068 * ppc-sysv-tdep.c: ...here.
6069 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6070 * rs6000-tdep.c (process_note_abi_tag_sections)
6071 (get_elfosabi): Remove.
6072 (rs6000_gdbarch_init): Use generic OS ABI framework.
6073 (rs6000_dump_tdep): New function.
6074 (_initialize_rs6000_tdep): Use gdbarch_register.
6075 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6076 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6077 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6078 of ppc-linux-tdep.o.
6079 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6080 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6081 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6082 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6083 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6084 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6086 2002-05-29 Jim Blandy <jimb@redhat.com>
6088 * macroscope.c (default_macro_scope): Put `void' in empty argument
6091 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6093 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6094 * arch-utils.c: Include "sim-regno.h".
6095 * gdbarch.sh: Don't include "sim-regno.h".
6096 * gdbarch.h, gdbarch.c: Regenerate.
6097 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6099 * arch-utils.h (legacy_register_sim_regno): To here.
6100 * remote-sim.c (legacy_register_sim_regno): Move function from
6102 * arch-utils.c (legacy_register_sim_regno): To here.
6104 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6106 * sim-regno.h: New file.
6107 * Makefile.in (sim_regno_h): Define.
6108 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6109 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6110 (legacy_register_sim_regno): New function.
6111 (one2one_register_sim_regno): New function.
6112 (gdbsim_fetch_register): Rewrite.
6113 (gdbsim_store_register): Only store a register when
6114 REGISTER_SIM_REGNO is valid.
6115 * d10v-tdep.c: Include "sim-regno.h".
6116 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6117 (d10v_ts3_register_sim_regno): Ditto.
6118 * gdbarch.sh: Include "sim-regno.h".
6119 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6120 * gdbarch.h, gdbarch.c: Regenerate.
6121 * arch-utils.h (default_register_sim_regno): Delete declaration.
6122 * arch-utils.c (default_register_sim_regno): Delete function.
6124 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6126 * ppcnbsd-nat.c: Rewrite.
6127 * ppcnbsd-tdep.c: New file.
6128 * ppcnbsd-tdep.h: New file.
6129 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6130 solib.o, and solib-svr4.o.
6131 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6132 nbsd-tdep.o, and corelow.o.
6134 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6136 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6137 `tr' and `sed'. Mention that `broken' targets are not expected to
6140 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6142 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6143 Let PC point right after the prologue before looking up symbols.
6145 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6147 * i386-tdep.c (i386_register_virtual_type): Return
6148 builtin_type_vec128i for SSE registers.
6150 * gdbtypes.h (builtin_type_vec128i): Declare.
6152 * gdbtypes.c (build_builtin_type_vec128i): New function.
6153 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6154 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6155 (build_gdbtypes): Initialize new builtin vector types.
6156 (_initialize_gdbtypes): Register new vector types with gdbarch.
6158 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6160 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6161 since it has been multi-arch'd.
6162 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6163 Move Alpha and VAX multi-arch news entries to same section
6164 as other multi-arch news.
6166 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6168 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6169 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6170 static. Rename some register numbers to put them in ns32k-tdep
6172 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6173 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6175 (_initialize_ns32k_tdep): Use gdbarch_register.
6176 * ns32k-tdep.h: New file.
6177 * ns32knbsd-tdep.c: New file.
6178 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6179 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6180 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6181 REGISTER_BYTES, REGISTER_BYTE): Remove.
6182 * config/ns32k/tm-ns32k.h: New file.
6183 * config/ns32k/tm-umax.h: Remove.
6185 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6187 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6188 ns32k_store_struct_return, ns32k_extract_return_value,
6189 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6191 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6192 ns32k_saved_pc_after_call.
6193 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6194 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6195 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6196 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6197 ns32k_extract_struct_value_address.
6199 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6201 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6202 ns32k_fix_call_dummy): New.
6203 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6204 ns32k_call_dummy_words.
6205 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6206 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6207 CALL_DUMMY_NARGS): Remove.
6208 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6210 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6212 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6213 ns32k_frame_saved_pc, ns32k_frame_args_address,
6214 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6215 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6216 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6217 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6218 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6219 (BREAKPOINT): Remove..
6220 (FRAME_CHAIN): Define as ns32k_frame_chain.
6221 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6222 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6223 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6224 (FRAME_FIND_SAVED_REGS): Remove.
6225 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6226 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6227 (POP_FRAME): Define as ns32k_pop_frame.
6229 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6231 * ns32k-tdep.c (ns32k_register_byte_32082,
6232 ns32k_register_byte_32382, ns32k_register_raw_size,
6233 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6235 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6236 ns32k_register_byte_32382.
6237 * config/ns32k/tm-umax.h: Update copyright years.
6238 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6239 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6240 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6241 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6242 (ns32k_get_enter_addr): Fix prototype.
6244 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6246 * ns32k-tdep.c: Update copyright years.
6247 (ns32k_register_name_32082): New function.
6248 (ns32k_register_name_32382): Ditto.
6249 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6250 (REGISTER_NAME): Define as ns32k_register_name_32382.
6251 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6252 (REGISTER_NAME): Define as ns32k_register_name_32082.
6254 2002-05-24 Jim Blandy <jimb@redhat.com>
6256 * dwarf2read.c (free_line_header): Use xfree, not free.
6258 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6260 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6261 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6263 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6265 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6267 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6269 From Ross Alexander at NEC Europe:
6270 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6272 2002-05-23 Michael Snyder <msnyder@redhat.com>
6274 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6275 for input, rather than parse_and_eval_address.
6277 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6279 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6280 * Makefile.in (sim_d10v_h): Update definition.
6282 2002-05-24 Andrew Cagney <cagney@redhat.com>
6284 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6285 change `2002-05-22 Michael Snyder' below.
6286 (d10v_push_arguments): Ditto.
6287 (d10v_extract_return_value): Ditto.
6289 2002-05-23 Jim Blandy <jimb@redhat.com>
6291 * macrotab.c (check_for_redefinition): Don't complain if the new
6292 definition is the same as the previous one. Take more arguments
6293 to allow the comparison.
6294 (macro_define_object, macro_define_function): Pass more arguments
6295 to check_for_redefinition.
6297 2002-05-22 Michael Snyder <msnyder@redhat.com>
6299 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6300 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6301 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6302 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6303 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6304 Add a temp variable to save a call (and a memory read).
6305 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6306 if possible (so that PC_IN_CALL_DUMMY will work).
6308 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6310 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6312 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6314 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6316 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6317 (dwarf2_build_frame_info): Add offset to fde->initial_location
6318 so that frames of shared libraries are mapped correctly.
6319 (execute_stack_op): Change type of 'result' from ULONGEST to
6322 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6324 * config/alpha/tm-nbsd.h: Include solib.h.
6326 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6328 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6329 assumptions about the host's byte order.
6331 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6333 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6335 * alphanbsd-tdep.c: Include solib-svr4.h.
6336 * shnbsd-tdep.c: Ditto.
6338 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6340 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6341 nbsd-tdep.h to dependency list.
6342 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6343 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6344 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6345 nbsdaout.mh and nbsdelf.mh consistently.
6346 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6347 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6348 nbsdaout.mt and nbsdelf.mh consistently.
6349 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6350 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6351 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6352 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6353 a.out shared library stuff from here...
6354 * config/nm-nbsdaout.h: ...to here.
6355 * config/tm-nbsd.h: Remove.
6356 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6357 * config/arm/nbsd.mh: Remove.
6358 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6360 * config/arm/nbsdaout.mh: New file.
6361 * config/arm/nbsdelf.mh: New file.
6362 * config/arm/nm-nbsdaout.h: New file.
6363 * config/i386/nbsd.mh: Remove.
6364 * config/i386/nbsd.mt: Remove.
6365 * config/i386/nbsdaout.mh: New file.
6366 * config/i386/nbsdaout.mt: New file.
6367 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6368 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6369 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6370 i386_register_u_addr): Remove.
6371 * config/i386/nm-nbsdaout.h: New file.
6372 * config/i386/nm-nbsdelf.h: Remove.
6373 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6374 (USE_STRUCT_CONVENTION): Remove.
6375 * config/i386/tm-nbsdaout.h: New file.
6376 * config/i386/tm-nbsdelf.h: Remove.
6377 * config/m68k/nbsd.mh: Remove.
6378 * config/m68k/nbsd.mt: Remove.
6379 * config/m68k/nbsdaout.mh: New file.
6380 * config/m68k/nbsdaout.mt: New file.
6381 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6382 * config/m68k/nm-nbsdaout.h: New file.
6383 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6384 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6385 * config/ns32k/nbsd.mh: Remove.
6386 * config/ns32k/nbsd.mt: Remove.
6387 * config/ns32k/nbsdaout.mh: New file.
6388 * config/ns32k/nbsdaout.mt: New file.
6389 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6390 * config/ns32k/nm-nbsdaout.h: New file.
6391 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6392 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6393 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6394 (SVR4_SHARED_LIBS): Remove.
6395 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6396 * config/sparc/nbsd.mh: Remove.
6397 * config/sparc/nbsd.mt: Remove.
6398 * config/sparc/nbsdaout.mh: New file.
6399 * config/sparc/nbsdaout.mt: New file.
6400 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6401 * config/sparc/nbsdelf.mt: New file.
6402 * config/sparc/nm-nbsdaout.h: New file.
6403 * config/sparc/nm-nbsdelf.h: Remove.
6404 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6405 * config/sparc/tm-nbsdaout.h: New file.
6407 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6409 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6411 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6413 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6415 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6417 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6419 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6421 * NEWS: Note new MIPS NetBSD native configuration.
6422 * configure.host (mips*-*-netbsd*): New host.
6423 * configure.tgt (mips*-*-netbsd*): New target.
6424 * mipsnbsd-nat.c: New file.
6425 * mipsnbsd-tdep.c: New file.
6426 * mipsnbsd-tdep.h: New file.
6427 * config/mips/nbsd.mh: New file.
6428 * config/mips/nbsd.mt: New file.
6429 * config/mips/nm-nbsd.h: New file.
6430 * config/mips/tm-nbsd.h: New file.
6432 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6434 * Makefile.in (SFILES): Add osabi.c.
6435 (COMMON_OBS): Add osabi.o.
6436 (osabi.o): New dependency list.
6437 * osabi.c: New file.
6438 * osabi.h: New file.
6439 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6441 * Makefile.in (alpha_tdep_h): Define and use instead of
6443 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6444 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6446 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6447 * alpha-tdep.h: Include osabi.h.
6448 (alpha_abi): Remove.
6449 (gdbarch_tdep): Use generic OS ABI framework.
6450 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6451 gdbarch_register_osabi.
6452 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6453 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6454 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6456 * Makefile.in (sh_tdep_h): Add osabi.h.
6457 * sh-tdep.h (sh_osabi): Remove.
6458 (gdbarch_tdep): Use generic OS ABI framework.
6459 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6460 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6461 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6462 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6464 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6465 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6466 gdbarch_register_osabi.
6467 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6468 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6469 (get_elfosabi): Rename to...
6470 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6471 ABI framework support routines.
6472 (arm_gdbarch_init): Use generic OS ABI framework.
6473 (arm_dump_tdep): Likewise.
6474 (_initialize_arm_tdep): Likewise.
6475 * arm-tdep.h: Include osabi.h.
6477 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6479 (arm_gdbarch_register_os_abi): Remove prototype.
6480 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6481 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6483 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6484 * mips-tdep.c: Include osabi.h.
6485 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6488 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6490 * h8300-tdep.c: Fix formatting.
6492 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6494 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6495 printing vector registers.
6497 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6499 From Fernando Nasser:
6500 * remote.c (remote_async_open_1): Re-throw the exception when the
6502 (remote_cisco_open): Ditto.
6503 (remote_open_1): Ditto.
6505 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6507 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6508 (remote_start_remote): Add uiout parameter. Pass through to
6509 remote_start_remote_dummy.
6510 (remote_open_1): Use catch_exception instead of catch_errors.
6511 (remote_async_open_1): Ditto.
6512 (remote_cisco_open): Ditto.
6514 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6516 * remote.c (remote_start_remote): Replace PTR with void pointer.
6517 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6520 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6522 * gdb_indent.sh: Allow the script to be run in the sim directory.
6524 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6526 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6527 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6529 * corelow.c (core_open): Only call set_gdbarch_from_file if
6532 2002-05-17 Andrey Volkov <avolkov@transas.com>
6534 * h8300-tdep.c: Add support of EXR register
6535 * config/h8300/tm-h8300.h: Ditto.
6537 2002-05-17 Andrey Volkov <avolkov@transas.com>
6539 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6541 2002-05-17 Andrey Volkov <avolkov@transas.com>
6543 * h8300-tdep.c: Change literal regnums to REGNO.
6545 2002-05-17 Jim Blandy <jimb@redhat.com>
6547 * NEWS: Note addition of macro support.
6549 Expand preprocessor macros in C expressions.
6550 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6551 (scan_macro_expansion, scanning_macro_expansion,
6552 finished_macro_expansion): New function declarations.
6553 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6554 variable declarations.
6555 * parser-defs.h (expression_context_pc): New declaration.
6556 * parse.c (expression_context_pc): New variable.
6557 (parse_exp_1): Set expression_context_pc, as well as
6558 expression_context_block.
6559 * c-exp.y (yylex): If we're not already reading the result of a
6560 macro expansion, try to macro-expand the next token. When we're
6561 done scanning a macro expansion, switch back to the mainline text.
6562 Commas and `if's in a macro's expansion don't terminate the input.
6563 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6564 (macro_original_text, macro_expanded_text,
6565 expression_macro_lookup_func, expression_macro_lookup_baton): New
6567 (scan_macro_expansion, scanning_macro_expansion,
6568 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6569 c_preprocess_and_parse): New functions.
6570 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6571 c_preprocess_and_parse, instead of c_parse.
6572 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6573 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6575 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6577 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6578 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6579 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6581 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6583 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6585 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6587 * Makefile.in (sh_tdep_h): Define and use.
6588 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6589 register enum): Move to...
6590 * * sh-tdep.h: ...here.
6591 * sh-tdep.c: Include sh-tdep.h.
6592 * sh3-rom.c: Likewise.
6593 * shnbsd-tdep.c: Likewise.
6595 2002-05-16 Michael Snyder <msnyder@redhat.com>
6597 * arm-tdep.c: Spelling fix in comment.
6599 2002-05-16 Jim Blandy <jimb@redhat.com>
6601 Add commands for manually expanding macros and showing their
6603 * macrocmd.c, macroscope.c, macroscope.h: New files.
6604 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6605 (macroscope_h): New variable.
6606 (HFILES_NO_SRCDIR): Add macroscope.h.
6607 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6608 (macroscope.o, macrocmd.o): New rules.
6610 Teach the Dwarf 2 reader to read macro information.
6611 * dwarf2read.c: #include "macrotab.h".
6612 (dwarf_macinfo_buffer): New variable.
6613 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6615 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6616 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6617 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6618 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6619 dwarf2_macro_spaces_in_definition): New complaints.
6620 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6621 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6622 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6623 the partial symbol table.
6624 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6625 from what's recorded in the partial symbol table.
6626 (read_file_scope): If the compilation unit has a
6627 `DW_AT_macro_info' attribute, read its macro information.
6628 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6630 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6633 * ser-tcp.c: Don't include <netinet/udp.h>.
6635 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6637 * MAINTAINERS: Update my email address.
6639 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6641 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6642 include file of the same name.
6644 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6646 * configure.tgt: Mark v850 as multi-arched.
6647 * config/v850/tm-v850.h: Remove file.
6648 * config/v850/v850.mt: Eliminate TM_FILE.
6650 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6652 * v850-tdep.c: Full multi-arch.
6653 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6654 Define GDB_MULTI_ARCH to 2.
6656 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6658 * p-exp.y (current_type): New static variable.
6659 Carries the type of the expression at the position that is parsed.
6660 (push_current_type, pop_current_type): Two new functions. Used
6661 to store/restore current_type in expression on specific tokens.
6662 (search_field): New static variable. Set to one after parsing a point
6663 as at that point only a FIELDNAME token should be searched.
6664 (FIELDNAME): New token. After a point only a token belonging to
6665 current_type type definition is allowed.
6666 (all over token rules): reset and change current_type according
6668 (exp '[' rule): insert implicit array index field if
6669 exp is a pascal string type.
6671 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6673 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6674 frame info. Use frame_info's saved_regs instead of matching member
6675 in extra_frame_info throughout.
6676 (v850_frame_init_saved_regs): New function.
6677 (v850_init_extra_frame_info): Move most functionality into
6678 v850_frame_init_saved_regs().
6679 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6680 (v850_frame_find_saved_regs): Remove declaration.
6681 (FRAME_FIND_SAVED_REGS): Remove definition.
6682 (v850_frame_init_saved_regs): Add declaration.
6683 (FRAME_INIT_SAVED_REGS): Add definition.
6685 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6687 * v850-tdep.c: Begin multi-arch'ing v850.
6688 (v850_target_architecture_hook): Remove function.
6689 (v850_gdbarch_init): New function. Add code previously in
6690 v850_target_architecture_hook().
6691 (_initialize_v850_tdep): Don't set target_architecture_hook.
6692 Call register_gdbarch_init() instead.
6694 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6696 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6697 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6698 (fixup_class_method_type): Likewise.
6700 2002-05-15 Jim Blandy <jimb@redhat.com>
6702 Add macro structures to GDB's symbol tables. Nobody puts anything
6704 * symtab.h (struct symtab): New member: `macro_table'.
6705 * buildsym.h (pending_macros): New global variable.
6706 * buildsym.c: #include "macrotab.h".
6707 (buildsym_init): Initialize `pending_macros'.
6708 (end_symtab): If we found macro information while reading a CU's
6709 debugging info, do build a symtab structure for it. Make the
6710 symtab point to the macro information, and clear the
6711 `pending_macros' pointer which held it while we were reading the
6713 (really_free_pendings): Free any pending macro table.
6714 * objfiles.h (struct objfile): New member: `macro_cache'.
6715 * objfiles.c (allocate_objfile): Set allocate and free functions
6716 for the macro cache's objstack.
6717 (free_objfile): Empty the macro cache's obstack.
6718 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6719 set new allocate and free functions for it.
6720 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6721 free functions for the macro cache's objstack. (Why is this
6722 function building its own objfile?)
6723 * symmisc.c (print_objfile_statistics): Print statistics on the
6725 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6727 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6729 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6730 (REGISTER_U_ADDR): Delete definition.
6731 (arm_register_u_addr): Delete declaration.
6733 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6735 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6736 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6738 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6740 * regcache.c (register_valid): Revise comments refering to "Not
6741 available" and "unavailable".
6742 * frame.c (frame_register_read): Ditto.
6743 * findvar.c (value_of_register): Ditto.
6745 2002-05-15 Andrew Cagney <cagney@redhat.com>
6747 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6748 (remote-sim.o): Update dependencies.
6749 (d10v-tdep.o): Specify dependencies.
6750 (sim_d10v_h): Define.
6752 2002-05-14 Jim Blandy <jimb@redhat.com>
6754 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6755 * macrotab.c (macro_lookup_inclusion, find_definition,
6756 new_macro_table): Same.
6758 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6759 not `! strcmp ()'. This is a dubious improvement.
6760 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6762 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6763 although it's not necessary, to avoid a warning.
6765 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6767 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6768 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6769 TYPE_INSTANCE_FLAGS.
6770 (struct main_type): New.
6771 (struct type): Move most members to struct main_type. Change
6772 cv_type and as_type to new type_chain member. Add instance_flags.
6773 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6774 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6775 (finish_cv_type): Remove prototype.
6776 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6778 (alloc_type_instance): New function.
6779 (smash_type): New function.
6780 (make_pointer_type, make_reference_type, make_function_type)
6781 (smash_to_member_type, smash_to_method_type): Call smash_type.
6782 (make_qualified_type): New function.
6783 (make_type_with_address_space): Call make_qualified_type.
6784 (make_cv_type): Likewise.
6785 (finish_cv_type): Remove unnecessary function.
6786 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6787 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6788 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6789 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6790 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6791 * hpread.c (hpread_read_struct_type): Likewise.
6792 * stabsread.c (read_struct_type): Likewise.
6794 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6796 * configure.tgt: Add a catch all sh* target, for cases like
6797 sh[2,3,4]-elf and sh-hms.
6799 2002-05-14 Keith Seitz <keiths@redhat.com>
6801 * event-loop.c (create_file_handler): Don't do anything but
6802 update data when we are given a fd which we are already
6805 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6807 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6808 (update_context): Use __func__ in warnings.
6810 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6812 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6813 and tcp_close to net_open and net_close.
6814 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6815 using UDP if requested. Don't try to disable Nagle on UDP
6817 * remote.c (remote_serial_open): New function. Warn about UDP.
6818 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6820 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6822 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6824 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6826 * configure.tgt: Remove sh-hms target.
6827 * MAINTAINERS: Don't list sh-hms as a separate target.
6829 2002-05-13 Jim Blandy <jimb@redhat.com>
6831 Add first preprocessor macro-expansion files.
6832 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6833 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6834 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6835 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6836 (COMMON_OBS): Add macrotab.o, macroexp.o.
6837 (macroexp.o, macrotab.o): New rules.
6839 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6841 * config/m88k/tm-m88k.h: Update copyright.
6842 (m88k_target_write_pc): Declare
6843 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6844 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6845 (SHIFT_INST_REGS): Update definition.
6846 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6847 using old definition of TARGET_WRITE_PC.
6848 * regcache.c (generic_target_write_pc): Delete code handling
6850 * gdbarch.sh (NNPC_REGNUM): Delete.
6851 * gdbarch.h, gdbarch.c: Regenerate.
6853 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6855 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6858 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6860 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6861 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6862 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6864 * c-typeprint.c (cp_type_print_method_args): Likewise.
6865 (c_type_print_args): Likewise.
6866 * d10v-tdep.c (d10v_push_arguments): Likewise.
6867 (d10v_extract_return_value): Likewise.
6868 * expprint.c (print_subexp): Likewise.
6869 * gdbtypes.c (lookup_primitive_typename): Likewise.
6870 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6871 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6872 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6873 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6874 (TYPE_VECTOR): Likewise.
6875 * hpread.c (hpread_read_struct_type)
6876 (fix_static_member_physnames, fixup_class_method_type)
6877 (hpread_type_lookup): Likewise.
6878 * mdebugread.c (parse_symbol, parse_type): Likewise.
6879 * p-lang.c (is_pascal_string_type): Likewise.
6880 * valops.c (hand_function_call): Likewise.
6881 * x86-64-tdep.c (classify_argument): Likewise.
6883 * hpread.c (hpread_read_function_type)
6884 (hpread_read_doc_function_type): Call replace_type.
6885 * dstread.c (create_new_type): Delete.
6886 (decode_dst_structure, process_dst_function): Call alloc_type.
6887 Use type access macros.
6889 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6891 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6892 the're not supported by the current architecture.
6893 (i387_fill_fxsave): Likewise.
6895 2002-05-12 Fred Fish <fnf@redhat.com>
6897 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6898 sect_index_xxx members to index the first slot in section_offsets
6899 if all of the section_offsets are zero.
6901 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6903 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6904 checked in with last change.
6906 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6908 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6909 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6912 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6914 * Makefile.in: Update dependencies.
6916 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6918 * language.c (local_hex_string_custom): Simplify. Do not depend
6919 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6921 * memattr.c (mem_info_command): Replace calls to
6922 longest_local_hex_string and longest_local_hex_string_custom.
6923 * buildsym.c (make_blockvector): Ditto.
6924 * solib.c (info_sharedlibrary_command): Ditto.
6925 * tracepoint.c (tracepoints_info): Ditto.
6926 * symtab.c (print_msymbol_info): Ditto.
6928 * language.c (local_hex_string): Delete.
6929 (local_hex_string_custom): Delete.
6930 (longest_local_hex_string): Rename to local_hex_string.
6931 (longest_local_hex_string_custom): Rename to
6932 local_hex_string_custom.
6933 * language.h (local_hex_string): Change parameter type to LONGEST.
6934 (local_hex_string_custom): Ditto.
6935 (longest_local_hex_string): Delete declaration.
6936 (longest_local_hex_string_custom): Ditto.
6938 * solib.c: Update copyright.
6939 * memattr.c: Update copyright.
6941 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6943 * arch-utils.h (legacy_register_to_value): Declare.
6944 (legacy_value_to_register): Declare.
6945 (legacy_convert_register_p): Declare.
6946 * arch-utils.c (legacy_register_to_value): New function.
6947 (legacy_value_to_register): New function.
6948 (legacy_convert_register_p): New function.
6950 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6951 (VALUE_TO_REGISTER): Define.
6952 (CONVERT_REGISTER_P): Define.
6953 * gdbarch.h, gdbarch.c: Regenerate.
6955 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6957 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6960 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6961 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6963 * Makefile.in: Update dependencies for valops.c.
6964 * valops.c: Include "gdb_assert.h".
6965 (typecmp): Skip THIS parameter to methods.
6966 (find_method_list): Remove static_memfuncp argument,
6967 update callers. Check for stub methods.
6968 (find_value_oload_method_list): Don't set *static_memfuncp.
6969 (find_overload_match): Don't check for stub methods. Assert
6970 that methods are not stubbed. Handle static methods.
6971 (value_find_oload_method_list): Remove static_memfuncp argument.
6972 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6973 to the argument list for static stub methods.
6974 * value.h (value_find_oload_method_list): Update prototype.
6976 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6978 * arch-utils.h (generic_register_size): Declare.
6979 (generic_register_raw_size, generic_register_virtual_size): Delete
6981 * arch-utils.c (generic_register_raw_size): Delete.
6982 (generic_register_size): New function.
6983 (generic_register_virtual_size): Delete.
6985 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6986 default generic_register_size.
6987 * gdbarch.h, gdbarch.c: Re-generate.
6989 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6990 register_virtual_size.
6991 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6992 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6994 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6996 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6997 * gdbarch.h, gdbarch.c: Regenerate.
6998 * gnu-v3-abi.c: Update copyright.
6999 (vtable_address_point_offset): Update.
7000 (gnuv3_rtti_type): Update.
7001 (gnuv3_baseclass_offset): Update.
7002 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7003 (init_fetch_link_map_offsets): Update.
7004 * remote.c (get_remote_state): Update.
7006 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7008 * TODO: Remove value_headof/value_from_vtable_info comment.
7009 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7010 * values.c (value_headof, value_from_vtable_info): Delete.
7011 * value.h (value_from_vtable_info): Delete prototype.
7013 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7015 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7016 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7018 (gdb_assert_h): Define.
7019 (gdb_wait_h): Define.
7020 (gdb_regex_h): Define.
7022 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7024 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7025 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7027 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7029 * nbsd-tdep.c: Fix comment.
7031 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7033 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7034 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7035 (nbsd-tdep.o): New dependency list.
7036 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7038 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7039 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7040 * nbsd-tdep.c: New file.
7041 * nbsd-tdep.h: New file.
7042 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7044 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7045 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7046 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7047 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7049 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7051 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7052 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7053 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7054 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7055 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7056 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7058 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7060 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7061 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7062 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7063 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7064 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7065 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7066 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7068 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7070 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7071 fetch_elfcore_registers to...
7072 * i386nbsd-tdep.c: ...here.
7073 (i386nbsd_use_struct_convention): Rename to...
7074 (i386nbsd_aout_use_struct_convention): ...this.
7075 (i386nbsd_supply_reg): New function.
7076 (i386nbsd_fill_reg): New function.
7077 (fetch_core_registers): Use i386nbsd_supply_reg.
7078 (fetch_elfcore_registers): Likewise.
7079 (_initialize_i386nbsd_tdep): New function.
7080 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7081 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7082 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7083 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7084 (i386nbsd_aout_use_struct_convention): ...this.
7086 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7088 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7089 (store_inferior_registers): Use shnbsd_fill_reg.
7090 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7091 sh_nbsd_supply_register): Collapse into...
7092 (shnbsd_supply_reg): ...this.
7093 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7094 (shnbsd_fill_reg): ...this.
7095 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7096 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7097 (fetch_core_registers): Use shnbsd_supply_reg.
7098 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7099 (sh_nbsd_core_fns): Rename to...
7100 (shnbsd_core_fns): ...this.
7101 (sh_nbsd_elfcore_fns): Rename to...
7102 (shnbsd_elfcore_fns): ...this.
7103 (sh_nbsd_init_abi): Rename to...
7104 (shnbsd_init_abi): ...this.
7105 (_initialize_sh_nbsd_tdep): Rename to...
7106 (_initialize_shnbsd_tdep): ...this.
7107 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7108 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7109 sh_nbsd_fill_register): Remove prototypes.
7110 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7112 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7114 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7115 (i387-nat.o): Delete dependency list.
7116 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7117 (x86-64-linux-nat.o): Likewise.
7118 * i387-nat.c: Delete file, moving contents to...
7119 * i387-tdep.c: ...here.
7120 * i387-nat.h: Rename...
7121 * i387-tdep.h: ...to this.
7122 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7123 * i386-linux-nat.c: Likewise.
7124 * i386bsd-nat.c: Likewise.
7125 * i386gnu-nat.c: Likewise.
7126 * i386nbsd-nat.c: Likewise.
7127 * i386v4-nat.c: Likewise.
7128 * x86-64-linux-nat.c: Likewise.
7129 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7130 * config/i386/go32.mh (NATDEPFILES): Likewise.
7131 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7132 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7133 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7134 * config/i386/linux.mh (NATDEPFILES): Likewise.
7135 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7136 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7137 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7138 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7140 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7142 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7143 (alphanbsd-nat.o): Remove dependency list.
7144 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7145 * alphanbsd-nat.c: Delete. Contents moved to...
7146 * alphanbsd-tdep.c: ...here.
7147 (_initialize_alphanbsd_tdep): Register core functions.
7148 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7150 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7152 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7153 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7154 (alphanbsd-nat.o): Likewise.
7155 (alphabsd-tdep.o): New dependency list.
7156 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7157 (fill_gregset): Use alphabsd_fill_reg.
7158 (supply_fpregset): Use alphabsd_supply_fpreg.
7159 (fill_fpregset): Use alphabsd_fill_fpreg.
7160 (fetch_inferior_registers): Use struct reg and struct fpreg
7161 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7162 and alphabsd_supply_fpreg.
7163 (store_inferior_registers): Use struct reg and struct fpreg
7164 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7165 and alphabsd_fill_fpreg.
7166 * alphabsd-tdep.c: New file.
7167 * alphabsd-tdep.h: New file.
7168 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7169 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7170 alphabsd_supply_fpreg.
7171 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7172 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7174 2002-05-11 Eric Christopher <echristo@redhat.com>
7176 * mips-tdep.c (mips_double_register_type): Fix thinko.
7177 (mips_single_register_type): Ditto.
7178 * MAINTAINERS: Add self.
7180 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7182 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7183 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7184 right thing on architectures with different endianness and/or
7187 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7189 From Christian Limpach <chris@Pin.LU>
7190 * configure.in: Change sed expression which comments out
7191 NATDEPFILES to also comment out continuation lines.
7192 * configure: Regenerate.
7194 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7196 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7199 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7201 * sh-tdep.c: Include correct file.
7203 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7205 New support for sh64-elf (sh5) target.
7207 * configure.tgt: For sh64-elf target, default to sh-elf.
7209 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7210 (struct gdbarch_tdep): Add new fields for new registers and ABI
7213 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7214 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7215 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7216 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7217 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7218 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7219 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7220 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7221 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7222 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7223 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7224 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7225 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7226 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7227 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7228 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7229 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7230 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7231 sign_extend, sh64_nofp_frame_init_saved_regs,
7232 sh64_init_extra_frame_info, sh64_get_saved_register,
7233 sh64_extract_struct_value_address, sh64_pop_frame,
7234 sh64_push_arguments, sh64_extract_return_value,
7235 sh64_store_return_value, sh64_show_media_regs,
7236 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7237 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7238 sh_sh64_register_virtual_type,
7239 sh_sh64_register_convert_to_virtual,
7240 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7241 sh64_register_read, sh64_pseudo_register_write,
7242 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7243 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7244 sh64_do_pseudo_register, sh_compact_do_registers_info,
7245 sh64_do_registers_info, sh_gdbarch_init): New functions.
7247 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7249 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7251 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7253 * linespec.c (decode_line_1): Check for a double quote after
7254 a filename correctly.
7256 2002-05-10 Jim Blandy <jimb@redhat.com>
7258 Properly track the size of the current objfile's .debug_line section.
7259 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7260 (DWARF_LINE_SIZE): New macro.
7261 (dwarf2_build_psymtabs_hard): Record the line section's size in
7262 the partial symbol table.
7263 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7266 2002-05-10 Petr Sorfa <petrs@caldera.com>
7268 * ia64-tdep.c: Handle breakpoints on L instruction type
7269 in MLX instruction bundle by moving the breakpoint to
7270 the third slot (X instruction type) as L holds only data.
7272 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7274 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7275 (process_one_symbol): Complain about discarding local symbols
7276 due to a misplaced N_LBRAC entry.
7278 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7280 From Daniel Berlin <dan@cgsoftware.com>
7281 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7282 decrease the depth we are at, in the case of templates.
7284 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7286 * mips-tdep.c (mips_float_register_type): New function.
7287 (mips_double_register_type): New function.
7288 (mips_print_register): Use them.
7289 (do_fp_register_row): Likewise.
7291 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7293 * signals/signals.c (signals): Remove conditional compilation around
7294 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7295 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7297 2002-05-09 Michael Snyder <msnyder@redhat.com>
7299 * remote-rdp.c (remote_rdp_can_run): Remove.
7301 2002-05-09 Tom Tromey <tromey@redhat.com>
7303 * jv-valprint.c (java_val_print): Handle `char' as a special case
7306 2002-05-09 Michael Snyder <msnyder@redhat.com>
7308 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7309 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7310 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7311 str r(0123),[sp,#nn].
7312 (arm_skip_prologue): Ditto. Also make disassembly
7313 order-independent by placing it in a loop.
7315 2002-05-06 Michael Snyder <msnyder@redhat.com>
7317 * stabsread.c (read_type): Add recognition for new attribute:
7318 "@V;" means that an array type is actually a vector.
7319 This is analogous to the vector flag that's been added to dwarf2.
7321 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7323 * i386-tdep.h (i386_abi): New enum.
7324 (struct gdbarch_tdep): Replace os_ident member with abi.
7325 (i386_gdbarch_register_os_abi): New prototype.
7326 * i386-tdep.c (i386_abi_names): New array.
7327 (process_note_abi_tag_sections): Removed.
7328 (process_note_sections): New function.
7329 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7330 (struct i386_abi_handler): New struct.
7331 (i386_abi_handler_list): New variable.
7332 (i386_gdbarch_register_os_abi): New function.
7333 (i386_gdbarch_init): Adapt for the changes given above.
7335 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7337 * gregset.h: Say "GNU/Linux".
7339 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7341 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7342 (build_gdbtypes): Build builtin_type_v2_float.
7343 (_initialize_gdbtypes): Register new builtin type.
7345 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7347 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7348 (clear_gdbarch_swap): New function.
7349 (initialize_non_multiarch): Call.
7350 (gdbarch_update_p): Before calling init(), swap out and clear the
7351 existing architecture.
7352 * gdbarch.c: Regenerate.
7354 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7356 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7359 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7361 * sh-nbsd-nat.c: Rename to...
7362 * shnbsd-nat.c: ...this.
7363 * sh-nbsd-tdep.c: Rename to...
7364 * shnbsd-tdep.c: ...this.
7365 * sh-nbsd-tdep.h: Rename to...
7366 * shnbsd-tdep.h: ...this.
7367 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7368 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7370 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7372 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7373 concatenation for command help messages.
7375 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7377 * NEWS: Note new sh*-*-netbsdelf* configuration.
7378 * configure.host: Set gdb_host_cpu to sh for all sh*.
7379 (sh*-*-netbsdelf*): New host.
7380 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7381 (sh*-*-netbsdelf*): New target.
7382 * sh-nbsd-nat.c: New file.
7383 * sh-nbsd-tdep.c: New file.
7384 * sh-nbsd-tdep.h: New file.
7385 * config/sh/nbsd.mh: New file.
7386 * config/sh/nbsd.mt: New file.
7387 * config/sh/nm-nbsd.h: New file.
7388 * config/sh/tm-nbsd.h: New file.
7390 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7392 * sh-tdep.c (sh_osabi_names): Declare.
7393 (process_note_abi_tag_sections): New function.
7394 (get_elfosabi): Ditto.
7395 (sh_gdbarch_register_os_abi): Ditto.
7396 (sh_dump_tdep): Ditto.
7397 _initialize_sh_tdep): Use gdbarch_register to register
7398 sh_gdbarch_init and sh_dump_tdep.
7399 * config/sh/tm-sh.h (sh_osabi): Declare.
7400 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7402 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7404 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7405 (thumb_scan_prologue): Ditto.
7406 (arm_find_callers_reg): Ditto.
7407 (arm_frame_chain): Ditto.
7408 (arm_init_extra_frame_info): Ditto.
7409 (arm_frame_saved_pc): Ditto.
7410 (arm_pop_frame): Ditto.
7411 (arm_push_return_address): New function.
7412 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7413 call_dummy_location, call_dummy_breakpoint_offset_p,
7414 call_dummy_breakpoint_offset, call_dummy_p,
7415 call_dummy_stack_adjust_p, call_dummy_words,
7416 sizeof_call_dummy_words, call_dummy_start_offset,
7417 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7418 call_dummy_address, push_return_address and push_dummy_frame for
7419 generic dummy frames.
7421 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7423 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7424 size computation for alloca.
7425 (sh_fp_frame_init_saved_regs): Likewise.
7427 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7429 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7430 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7431 * arm-tdep.c (arm_store_return_value): Use them.
7432 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7433 * remote-rdp.c (remote_rdp_fetch_register): Use
7434 ARM_MAX_REGISTER_RAW_SIZE.
7435 (remote_rdp_store_register): Likewise.
7437 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7439 * dwarf2cfi.c: Code cleanup, removed unused variables,
7440 added default labels to switch {} statements.
7441 * x86-64-tdep.c: Ditto.
7442 * x86-64-linux-nat.c: Ditto.
7444 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7446 * solib.h: Protect against multiple inclusion.
7448 2002-05-06 Jim Blandy <jimb@redhat.com>
7450 Add first preprocessor macro-expansion files.
7451 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7452 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7453 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7454 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7455 (COMMON_OBS): Add macrotab.o, macroexp.o.
7456 (macroexp.o, macrotab.o): New rules.
7458 Separate the job of reading the line number info statement program
7459 header (...expialidocious) out into its own function.
7460 * dwarf2read.c (struct line_head, struct filenames, struct
7461 directories): Replace with...
7462 (struct line_header): New structure, containing the full
7463 contents of the statement program header, including the
7464 include directory and file name tables.
7465 (read_file_scope): If we have line number info, instead of just
7466 calling dwarf_decode_lines to do all the work, call
7467 dwarf_decode_line_header first to get a `struct line_header'
7468 containing the data in the statement program header, and then
7469 pass that to dwarf_decode_lines, which will pick up where that
7470 left off. Be sure to clean up the `struct line_header' object.
7471 (dwarf_decode_line_header, free_line_header, add_include_dir,
7472 add_file_name): New functions.
7473 (dwarf_decode_lines): Move all the code to read the statement
7474 program header into dwarf_decode_line_header. Take the line
7475 header it built as the first argument, instead of the offset to
7476 the compilation unit's line number info. Use the new `struct
7477 line_header' type instead of the old structures. No need to do
7478 cleanups here now, since we don't allocate anything.
7479 (dwarf2_statement_list_fits_in_line_number_section,
7480 dwarf2_line_header_too_long): New complaints.
7482 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7484 * gdbtypes.c (init_vector_type): New function.
7485 (build_builtin_type_vec128): Simplify the representation of SIMD
7487 (build_gdbtypes): Initialize new builtin vector types.
7488 (_initialize_gdbtypes): Register new vector types with gdbarch.
7489 (builtin_type_v4_float, builtin_type_v4_int32,
7490 builtin_type_v8_int16, builtin_type_v16_int8,
7491 builtin_type_v2_int32, builtin_type_v4_int16,
7492 builtin_type_v8_int8): New (renamed) SIMD types.
7494 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7496 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7497 (i387_fill_fxsave): Likewise.
7499 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7501 * alpha-tdep.c (alpha_extract_return_value): Don't use
7502 non-constant array size in prototype.
7504 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7506 From Brian Taylor <briant at model dot com>:
7507 * ui-out.c (ui_out_field_core_addr): Use the function
7508 longest_local_hex_string_custom'to format addresses > 32 bits
7511 * ui-out.c (ui_out_field_core_addr): Update comment.
7513 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7515 * stack.c (select_and_print_frame): Make static. Delete the
7517 (func_command): Update call.
7518 (select_frame_command): Delete code computing the frame level.
7519 * frame.h (select_and_print_frame): Delete declaration.
7521 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7523 * sparc-tdep.c (sparc_get_saved_register): Comment why
7524 get_prev_frame call is safe.
7526 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7528 * frame.h (select_frame): Delete level parameter.
7529 * stack.c (select_frame): Update. Use frame_relative_level to
7530 obtain the frame's level.
7531 (select_and_print_frame): Update call.
7532 (select_frame_command): Ditto.
7533 (up_silently_base): Ditto.
7534 (down_silently_base): Ditto.
7535 * ocd.c (ocd_start_remote): Ditto.
7536 * remote-rdp.c (remote_rdp_open): Ditto.
7537 * remote-mips.c (mips_initialize): Ditto.
7538 (common_open): Ditto.
7539 * remote-e7000.c (e7000_start_remote): Ditto.
7540 * m3-nat.c (select_thread): Ditto.
7541 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7542 (child_get_current_exception_event): Ditto.
7543 * varobj.c (varobj_create): Ditto.
7544 (varobj_update): Ditto.
7545 (c_value_of_root): Ditto.
7546 * tracepoint.c (finish_tfind_command): Ditto.
7547 * corelow.c (core_open): Ditto.
7548 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7549 * thread.c (info_threads_command): Ditto.
7550 (switch_to_thread): Ditto.
7551 * infrun.c (normal_stop): Ditto.
7552 (restore_selected_frame): Ditto.
7553 (restore_inferior_status): Ditto.
7554 * breakpoint.c (insert_breakpoints): Ditto.
7555 (watchpoint_check): Ditto.
7556 (bpstat_stop_status): Ditto.
7557 (do_enable_breakpoint): Ditto.
7558 * blockframe.c (flush_cached_frames): Ditto.
7559 (reinit_frame_cache): Ditto.
7561 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7563 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7566 2002-05-04 Jim Blandy <jimb@redhat.com>
7568 * gdbtypes.c (replace_type): Doc fix.
7570 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7572 * valprint.c (strcat_longest): Delete commented out function.
7575 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7577 * MAINTAINERS: Mark a29k as deleted.
7578 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7579 Move new configurations to the top.
7580 * configure.tgt: Remove a29k.
7581 * config/a29k/tm-vx29k.h: Delete.
7582 * config/a29k/vx29k.mt: Delete.
7583 * config/a29k/tm-a29k.h: Delete.
7584 * config/a29k/a29k-udi.mt: Delete.
7585 * config/a29k/a29k.mt: Delete.
7586 * a29k-tdep.c: Delete.
7587 * remote-udi.c: Delete.
7588 * remote-mm.c: Delete.
7589 * remote-eb.c: Delete.
7590 * remote-adapt.c: Delete.
7591 * Makefile.in: Remove obsolete code.
7592 * config/s390/s390x.mt: Ditto.
7593 * config/s390/s390.mt: Ditto.
7594 * config/sparc/sparclynx.mh: Ditto.
7595 * config/sparc/linux.mh: Ditto.
7596 * config/pa/hppaosf.mh: Ditto.
7597 * config/pa/hppabsd.mh: Ditto.
7598 * config/ns32k/nbsd.mt: Ditto.
7599 * config/mips/vr5000.mt: Ditto.
7600 * config/m68k/sun3os4.mh: Ditto.
7601 * config/m68k/nbsd.mt: Ditto.
7602 * config/m68k/m68klynx.mh: Ditto.
7603 * config/m32r/m32r.mt: Ditto.
7604 * config/i386/x86-64linux.mt: Ditto.
7605 * config/i386/nbsdelf.mt: Ditto.
7606 * config/i386/nbsd.mt: Ditto.
7607 * config/i386/i386lynx.mh: Ditto.
7609 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7611 * target.c (debug_print_register): New function. Handle oversize
7613 (debug_to_fetch_registers): Call.
7614 (debug_to_store_registers): Call.
7616 2002-05-03 Jim Blandy <jimb@redhat.com>
7618 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7619 (read_type): Doc fix.
7620 * gdbtypes.c (replace_type): Doc fix.
7622 * stabsread.c (multiply_defined_struct): New complaint.
7623 (read_struct_type): If the type we were passed isn't empty, or
7624 incomplete, don't read the new struct type into it; complain,
7625 and return the original type unchanged. Take a new `type_code'
7626 argument, which is the type code for the new type.
7627 (read_type): Rather than storing the type's type code here, pass
7628 it as an argument to read_struct_type, and let that take care of
7629 storing it. That way, we don't overwrite the original type code,
7630 so read_struct_type can use it to decide whether we're overwriting
7631 something we shouldn't.
7632 (complain_about_struct_wipeout): New function.
7634 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7636 * gdbarch.sh: Assert that gdbarch is non-NULL.
7637 * gdbarch.c: Regenerate.
7639 2002-05-03 Jason Merrill <jason@redhat.com>
7641 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7644 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7646 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7647 (x86_64_dwarf2gdb_regno_map_length),
7648 (x86_64_dwarf2_reg_to_regnum): Added.
7649 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7650 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7651 (_initialize_x86_64_tdep): Synced with the change above.
7652 (x86_64_skip_prologue): Reformulated message.
7654 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7656 * f-exp.y: Also use new prev_lexptr variable
7657 to improve error reporting. Based on Michael Snyder
7658 2002-04-24 dated patch to c-exp.y.
7659 * jv-exp.y: Likewise.
7660 * m2-exp.y: Likewise.
7662 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7664 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7665 we are dealing with vectors.
7667 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7669 * config/m68k/tm-nbsd.h: Obvious fix,
7670 correct machine name.
7672 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7674 * p-typeprint.c (pascal_type_print_base): Add support
7675 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7677 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7679 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7680 for fondamental pascal 'char' type.
7682 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7684 * p-lang.h (is_pascal_string_type): Declaration changed,
7685 new sixth argument of type char ** added.
7686 * p-lang.c (is_pascal_string_type): Implementation
7687 changed. Args length_pos, length_size, string_pos, char_size
7688 can now be NULL. New argument arrayname set to the field
7689 name of the char array. Return value set to char array
7690 field index plus one.
7691 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7692 is_pascal_string_type function.
7694 2002-05-02 Andrew Cagney <cagney@redhat.com>
7696 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7697 <cagney@redhat.com> change.
7698 * gdbarch.c: Regenerate.
7700 2002-05-02 Andrew Cagney <cagney@redhat.com>
7702 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7703 before probing for a new one. Detect errorenous gdbarch_init
7705 * gdbarch.c: Regenerate.
7707 2002-05-01 Andrew Cagney <cagney@redhat.com>
7709 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7710 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7711 * config/v850/tm-v850.h: Ditto. Update copyright.
7713 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7715 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7718 2002-04-30 Michael Snyder <msnyder@redhat.com>
7720 * arm-tdep.c: Whitespace clean-ups.
7721 (arm_skip_prologue): Fix thinko; two lines
7722 should have been removed as part of 4/24 change.
7724 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7726 * rs6000-tdep.c: Added comment describing how fpscr register
7727 numbers were chosen.
7729 2002-04-30 Michael Snyder <msnyder@redhat.com>
7731 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7733 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7735 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7736 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7737 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7739 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7741 From Louis Hamilton <hamilton@redhat.com>:
7742 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7743 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7744 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7745 not bfd-private xcoff data, to determine wordsize.
7746 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7748 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7750 GDB 5.2 released from 5.2 branch.
7752 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7754 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7755 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7756 (x86_64_register_info_table): Added comments with register numbers.
7758 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7760 * rs6000-tdep.c (rs6000_extract_return_value,
7761 rs6000_store_return_value): Handle returning vectors.
7762 (rs6000_gdbarch_init): Use
7763 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7764 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7766 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7768 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7769 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7771 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7773 * hpread.c (hpread_psymtab_to_symtab_1,
7774 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7775 with fprintf_unfiltered (gdb_stderr,...).
7777 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7779 * remote-array.c (printf_monitor, write_monitor,
7780 array_insert_breakpoint, array_remove_breakpoint ):
7781 Replace fprintf (stderr,...
7782 with fprintf_unfiltered (gdb_stderr,....
7783 * remote-es.c: Likewise.
7784 * remote-os9k.c: Likewise.
7785 * remote-st.c: Likewise.
7787 2002-04-28 Andreas Schwab <schwab@suse.de>
7789 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7790 linux-proc.o and gcore.o.
7792 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7794 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7795 code without frame pointers.
7797 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7799 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7802 2002-04-26 Ben Elliston <bje@redhat.com>
7804 * target.c (do_xfer_memory): Correct reference to the new option
7805 "trust-readonly-sections".
7807 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7809 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7810 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7811 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7813 (read_array_type): Record the fact that this array type is really a
7814 vector (i.e. are passed in by value).
7816 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7818 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7819 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7820 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7821 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7822 * alpha-linux-tdep.c: Include frame.h.
7823 (alpha_linux_sigcontext_addr): New function.
7824 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7825 alpha_linux_sigcontext_addr.
7826 * alpha-osf1-tdep.c: Include gdbcore.h.
7827 (alpha_osf1_sigcontext_addr): New function.
7828 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7829 alpha_osf1_sigcontext_addr.
7830 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7831 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7833 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7835 * stack.c (selected_frame_level):
7836 (select_frame): Do not set selected_frame_level.
7837 * frame.h (selected_frame_level): Delete declaration.
7839 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7841 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7842 convert_from_func_ptr-addr when AIX / PowerOpen.
7844 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7846 * valops.c (hand_function_call): Call
7847 generic_save_call_dummy_addr.
7848 * frame.h (generic_save_call_dummy_addr): Declare.
7849 * blockframe.c (struct dummy_frame): Add fields call_lo and
7851 (generic_find_dummy_frame): Check for PC in range call_lo to
7852 call_hi instead of entry_point_address.
7853 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7854 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7855 (generic_save_call_dummy_addr): New function.
7857 2002-04-24 David S. Miller <davem@redhat.com>
7859 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7860 sparc_skip_prologue.
7861 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7862 information to find prologue when possible.
7863 (sparc_prologue_frameless_p): Call examine_prologue directly.
7864 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7865 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7867 (SKIP_PROLOGUE): Likewise.
7869 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7871 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7872 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7873 indicate that the condition it was testing is always true.
7874 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7875 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7876 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7878 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7880 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7881 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7882 tdep->jb_pc and tdep->jb_elt_size.
7883 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7884 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7885 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7886 * alpha-nat.c (get_longjmp_target): Remove.
7887 (JB_ELEMENT_SIZE): Ditto.
7889 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7890 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7891 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7892 to alpha_get_longjmp_target.
7893 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7894 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7895 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7897 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7899 * README: Update to GDB 5.2.
7901 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7903 * gdbarch.sh (LC_ALL): Set to `c'.
7905 2002-04-25 Theodore A. Roth <troth@verinet.com>
7907 * avr-tdep.c: Ran through gdb_indent.sh.
7909 2002-04-25 Theodore A. Roth <troth@verinet.com>
7911 * MAINTAINERS: Add myself as AVR maintainer.
7912 * NEWS: Note new target avr.
7914 2002-04-25 Theodore A. Roth <troth@verinet.com>
7916 * Makefile.in: Add support for AVR target.
7917 * configure.tgt: Add support for AVR target.
7918 * avr-tdep.c: New file
7919 * config/avr/avr.mt: New file.
7921 2002-04-25 Theodore A. Roth <troth@verinet.com>
7923 * MAINTAINERS: Add myself to write-after-approval.
7925 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7927 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7928 with fprintf_unfiltered (gdb_stderr,....
7930 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7933 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7935 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7937 * p-exp.y: Also use new prev_lexptr variable
7938 to improve error reporting. Based on Michael Snyder
7939 2002-04-24 dated patch to c-exp.y.
7941 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7943 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7944 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7945 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7947 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7949 (FUNCTION_START_OFFSET): Remove.
7950 (BREAKPOINT): Ditto.
7952 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7954 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7957 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7959 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7960 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7961 alpha_linux_pc_in_sigtramp.
7962 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7963 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7964 alpha_osf1_pc_in_sigtramp.
7965 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7966 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7967 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7968 alphafbsd_pc_in_sigtramp.
7969 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7970 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7971 alphanbsd_pc_in_sigtramp.
7972 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7973 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7975 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7977 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7979 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7981 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7983 (alphanbsd-nat.o): New dependency list.
7984 (alphanbsd-tdep.o): Ditto.
7985 * NEWS: Note new native NetBSD/alpha configuration.
7986 * alphanbsd-nat.c: New file.
7987 * alphanbsd-tdep.c: Ditto.
7988 * configure.host (alpha*-*-netbsd*): New host.
7989 * configure.tgt (alpha*-*-netbsd*): New target.
7990 * config/alpha/nbsd.mh: New file.
7991 * config/alpha/nbsd.mt: Ditto.
7992 * config/alpha/nm-nbsd.h: Ditto.
7993 * config/alpha/tm-nbsd.h: Ditto.
7995 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7997 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7998 (alpha-osf1-tdep.o): New dependency list.
7999 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8000 and skip_sigtramp_frame members.
8001 * alpha-linux-tdep.c: Include gdbcore.h.
8002 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8003 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8004 * alpha-osf1-tdep.c: New file.
8005 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8007 (alpha_frame_past_sigtramp_frame): New function.
8008 (alpha_dynamic_sigtramp_offset): Ditto.
8009 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8010 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8011 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8012 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8013 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8014 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8015 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8016 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8017 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8018 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8019 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8020 to find_solib_trampoline_target.
8021 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8022 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8023 (SKIP_TRAMPOLINE_CODE): Remove.
8024 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8025 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8026 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8027 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8028 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8029 (PROC_SIGTRAMP_MAGIC): Ditto.
8030 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8031 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8032 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8033 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8034 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8036 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8038 * NEWS: Note that Alpha targets are now multi-arch.
8040 2002-04-24 Michael Snyder <msnyder@redhat.com>
8042 * parser-defs.h (prev_lexptr): New external variable.
8043 * parse.c (parse_exp_1): Set prev_lexptr to null before
8044 calling the language-specific parser.
8045 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8046 (yyerror): Use prev_lexptr in error reporting.
8048 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8050 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8051 * gregset.h: If FILL_FPXREGSET is defined, provide
8052 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8053 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8054 is defined, call fill_fpxregset.
8056 2002-04-24 Roland McGrath <roland@frob.com>
8058 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8059 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8060 (supply_gregset, supply_fpregset): New functions.
8062 * gnu-nat.c (gnu_find_memory_regions): New function.
8063 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8064 (gnu_xfer_memory): Add a cast.
8066 2002-04-24 Michael Snyder <msnyder@redhat.com>
8068 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8069 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8070 of argument regs ("str r(0123), [r11, #-nn"]).
8071 (arm_skip_prologue): Better handling for frameless functions.
8072 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8073 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8075 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8077 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8078 NUM_PSEUDO_REGS can be used.
8080 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8082 * arch-utils.h: Update copyright.
8084 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8085 * gdbarch.h, gdbarch.c: Re-generate.
8087 * inferior.h (IN_SIGTRAMP): Delete definition.
8088 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8089 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8091 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8092 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8093 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8094 (find_proc_framesize): Ditto.
8095 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8096 (alpha_init_extra_frame_info): Ditto.
8097 * infrun.c (handle_inferior_event): Ditto.
8098 (handle_inferior_event): Ditto.
8099 (check_sigtramp2): Ditto.
8100 * blockframe.c (create_new_frame): Ditto.
8101 (get_prev_frame): Ditto.
8102 * ppc-linux-tdep.c: Update comments.
8103 * i386-linux-tdep.c: Update comments.
8104 * breakpoint.c (bpstat_what): Update comment.
8106 2002-04-24 David S. Miller <davem@redhat.com>
8108 * i960-tdep.c (register_in_window_p): New function.
8109 (i960_find_saved_register): Use it instead of
8110 REGISTER_IN_WINDOW_P.
8111 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8113 * symtab.h (find_stab_function_addr): Kill extern.
8114 * minsyms.c (find_stab_function_addr): Remove from here...
8115 * dbxread.c: ... to here, and mark it static.
8117 2002-04-20 David S. Miller <davem@redhat.com>
8119 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8120 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8122 2002-04-21 David S. Miller <davem@redhat.com>
8124 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8125 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8126 (vx_write_register): Likewise.
8128 2002-04-23 J. Brobecker <brobecker@gnat.com>
8130 * source.c (is_regular_file): New function.
8131 (openp): Check wether file to open is a regular file
8132 to avoid opening directories.
8134 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8136 * findvar.c (extract_signed_integer): Cast printf argument
8137 to suppress format warning.
8138 (extract_unsigned_integer): Likewise.
8139 * infcmd.c (registers_info): Likewise.
8140 * top.c (get_prompt_1): Likewise.
8141 * valops.c (value_assign): Likewise.
8142 * valprint.c (print_decimal): Likewise.
8144 2002-04-22 H.J. Lu (hjl@gnu.org)
8146 * c-exp.y (typebase): Support
8148 [long|long long|short] [signed|unsigned] [int|]
8152 signed [long|long long|short] int
8154 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8156 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8158 * vax-tdep.h: New file.
8159 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8160 Make several routines static.
8161 (vax_get_saved_register): New function.
8162 (vax_gdbarch_init): New function.
8163 (_initialize_vax_tdep): Register vax_gdbarch_init.
8164 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8165 Remove macros now under the control of gdbarch.
8167 2002-04-22 Michael Snyder <msnyder@redhat.com>
8169 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8170 Some whitespace and coding standards tweaks.
8172 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8174 * vax-tdep.c: Include regcache.h.
8175 (vax_call_dummy_words): New.
8176 (sizeof_vax_call_dummy_words): New.
8177 (vax_fix_call_dummy): New function.
8178 (vax_saved_pc_after_call): Ditto.
8179 * config/vax/tm-vax.h: Don't include regcache.h.
8180 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8181 (CALL_DUMMY): Remove.
8182 (CALL_DUMMY_WORDS): Define.
8183 (SIZEOF_CALL_DUMMY_WORDS): Define.
8184 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8186 2002-04-18 Michael Snyder <msnyder@redhat.com>
8188 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8190 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8192 * vax-tdep.c (vax_frame_chain): New function.
8193 (vax_push_dummy_frame): Ditto.
8194 (vax_pop_frame): Ditto.
8195 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8196 (FRAMELESS_FUNCTION_INVOCATION): Use
8197 generic_frameless_function_invocation_not.
8198 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8199 (POP_FRAME): Use vax_pop_frame.
8201 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8203 * vax-tdep.c (vax_store_struct_return): New function.
8204 (vax_extract_return_value): Ditto.
8205 (vax_store_return_value): Ditto.
8206 (vax_extract_struct_value_address): Ditto.
8207 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8208 vax_store_struct_return.
8209 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8210 (STORE_RETURN_VALUE): Use vax_store_return_value.
8211 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8213 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8215 * vax-tdep.c (vax_frame_saved_pc): New function.
8216 (vax_frame_args_address_correct): Ditto.
8217 (vax_frame_args_address): Ditto.
8218 (vax_frame_locals_address): Ditto.
8219 (vax_frame_num_args): Move code to be in proximity to
8220 other frame-related functions.
8221 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8222 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8223 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8224 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8225 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8227 2002-04-22 H.J. Lu (hjl@gnu.org)
8229 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8232 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8234 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8235 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8236 (FRAME_INIT_SAVED_REGS): New macro.
8238 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8240 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8242 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8244 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8246 (fetch_osf_core_registers): Likewise.
8247 (supply_gregset): Likewise.
8249 2002-04-22 J. Brobecker <brobecker@gnat.com>
8251 * symfile.h (get_section_index): Define.
8252 * symfile.c (get_section_index): New function.
8253 * mdebugread.c (SC_IS_SBSS): New macro.
8254 (SC_IS_BSS): Return true for the scBss storage class only, as
8255 the scSBss storage class refers to the .sbss section.
8256 (parse_partial_symbols): Discard the symbols which associated
8257 section does not exist.
8258 Make sure to use the .sbss section index for symbols which
8259 storage class is scBss, rather than using the .bss section index.
8261 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8263 * vax-tdep.c: Update copyright years.
8264 (vax_register_name): New function.
8265 (vax_register_byte): Ditto.
8266 (vax_register_raw_size): Ditto.
8267 (vax_register_virtual_size): Ditto.
8268 (vax_register_virtual_type): Ditto.
8269 * config/vax/tm-vax.h: Update copyright years.
8270 (REGISTER_NAMES): Remove.
8271 (REGISTER_NAME): Define.
8272 (REGISTER_BYTE): Use vax_register_byte.
8273 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8274 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8275 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8277 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8279 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8281 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8283 2002-04-21 David S. Miller <davem@redhat.com>
8285 * arch-utils.c (generic_prologue_frameless_p): Kill
8286 SKIP_PROLOGUE_FRAMELESS_P code.
8287 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8289 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8290 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8291 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8293 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8294 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8295 (sparc_gdbarch_init): Pass it to
8296 set_gdbarch_prologue_frameless_p.
8298 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8300 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8301 (alphabsd-nat.o): New dependency list.
8303 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8305 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8307 (alpha-linux-tdep.o): New dependency list.
8308 (alphafbsd-tdep.o): Likewise.
8310 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8312 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8314 * alpha-tdep.c: ...from here.
8315 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8317 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8319 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8320 prototype from here...
8321 * alpha-tdep.h: ...to here.
8323 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8325 * frame.h (selected_frame_level): Document as deprecated.
8326 (frame_relative_level): Declare.
8327 * stack.c (frame_relative_level): New function.
8328 (selected_frame_level): Document as deprecated.
8329 (select_frame): Do not set the selected_frame_level.
8331 * stack.c (frame_info, record_selected_frame): Update.
8332 (frame_command, current_frame_command): Update.
8333 (up_silently_base, up_command, down_silently_base): Update.
8334 (down_command): Update.
8335 * inflow.c (kill_command): Update.
8336 * tracepoint.c (finish_tfind_command): Update.
8337 * corelow.c (core_open): Update.
8338 * thread.c (info_threads_command): Update.
8339 (do_captured_thread_select): Update.
8340 * infcmd.c (finish_command): Update.
8341 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8343 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8345 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8347 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8349 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8352 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8354 * alphafbsd-tdep.c: Update copyright years. Include
8356 (alphafbsd_use_struct_convention): Make static.
8357 (alphafbsd_init_abi): New function.
8358 (_initialize_alphafbsd_tdep): New function.
8359 * config/alpha/tm-fbsd.h: Update copyright years.
8360 (USE_STRUCT_CONVENTION): Remove.
8362 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8364 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8365 an Alpha ABI variant.
8366 (alpha_abi_handler_list): Declare.
8367 (alpha_gdbarch_register_os_abi): New function.
8368 (alpha_gdbarch_init): Give registered ABI variant handlers a
8369 chance to tweak the gdbarch once we have set up defaults.
8370 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8372 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8374 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8375 to standard_coerce_float_to_double.
8376 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8378 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8380 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8381 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8382 from gdbarch_tdep rather than a constant.
8383 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8384 the default text address for all Alpha Unix ABIs.
8385 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8386 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8388 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8390 * alpha-tdep.h: New file. Includes several Alpha target constants
8392 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8393 let gdbarch deal with.
8394 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8395 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8397 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8398 Alpha target register names.
8399 * alphabsd-nat.c: Likewise.
8400 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8401 Alpha target register names. Make serveral routines static.
8402 (alpha_get_saved_register): New function.
8403 (alpha_abi_names): New.
8404 (process_note_abi_tag_sections): New function.
8405 (get_elfosabi): New function.
8406 (alpha_gdbarch_init): New function.
8407 (alpha_dump_tdep): New function.
8408 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8410 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8412 * frame.c (find_saved_register): Delete #ifdef
8413 HAVE_REGISTER_WINDOWS code.
8414 * config/sparc/tm-sparc.h: Update comments.
8415 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8417 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8419 * i960-tdep.c (i960_find_saved_register): New function.
8420 (i960_get_saved_register): New function.
8421 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8422 (i960_get_saved_register): Declare.
8423 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8425 2002-04-20 David S. Miller <davem@redhat.com>
8427 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8429 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8431 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8432 instead of NUM_PSEUDO_REGS.
8434 2002-04-20 David S. Miller <davem@redhat.com>
8436 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8437 GDB_MULTI_ARCH_PARTIAL
8438 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8439 define, let tm-sp64.h do it.
8441 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8443 * frame.c (find_saved_register): Avoid a NULL pointer
8444 dereference and actually walk the frame list.
8446 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8448 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8449 sorted in most most-recent-used order. Document.
8450 * gdbarch.h, gdbarch.c: Regenerate.
8452 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8454 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8456 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8457 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8458 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8461 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8464 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8465 (build_builtin_type_vec128): Ditto.
8466 (append_composite_type_field): Fix calculation of type length in
8469 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8471 * config/djgpp/README: Update.
8473 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8476 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8478 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8479 (alpha_setup_arbitrary_frame): ...to this.
8480 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8481 for alpha_setup_arbitrary_frame.
8483 2002-04-18 Andrew Cagney <cagney@redhat.com>
8485 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8486 * gdbarch.h, gdbarch.c: Regenerate.
8488 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8489 * target.h (memory_breakpoint_from_pc): Update declaration.
8490 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8492 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8493 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8494 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8495 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8496 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8497 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8498 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8499 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8500 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8501 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8502 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8503 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8505 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8507 * monitor.c (monitor_insert_breakpoint): Ditto.
8508 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8510 * config/mcore/tm-mcore.h: Update copyright.
8511 * mem-break.c: Ditto.
8512 * xstormy16-tdep.c: Ditto.
8514 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8516 * p-exp.y: Add precedence rule for '^' token.
8517 This removes the shift/reduce conflicts.
8518 Remove the comment concerning these shift/reduce conflicts.
8520 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8522 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8523 (registers_powerpc_nofp): New register set for processors
8524 without floating point unit.
8526 2002-04-18 David S. Miller <davem@redhat.com>
8528 * MAINTAINERS: Add myself to write-after-approval.
8530 2002-04-17 Michael Snyder <msnyder@redhat.com>
8532 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8534 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8536 * rs6000-tdep.c (frame_initial_stack_address): Use
8537 frame_register_read to read the alloca_reg.
8539 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8541 * frame.c (find_saved_register): Find saved registers in the next
8545 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8547 * gdbarch.sh (LANG): Set to ``c''.
8549 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8551 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8553 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8555 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8558 * hpread.c (hpread_get_lntt): Add declaration.
8559 Also fix PR gdb/391.
8561 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8563 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8564 * aclocal.m4, configure: Re-generate.
8567 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8569 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8570 instead of tm_print_insn.
8572 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8574 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8576 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8578 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8579 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8580 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8582 2002-04-12 Don Howard <dhoward@redhat.com>
8584 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8585 max_user_call_depth.
8586 (init_cmd_lists): Initialize the new value;
8587 * cli/cli-script.c (execute_user_command): Limit the call depth of
8588 user defined commands. This avoids a core-dump when user commands
8589 are infinitly recursive.
8591 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8593 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8594 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8595 from tdep struct instead of DEFAULT_LR_SAVE.
8596 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8597 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8598 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8600 2002-04-12 Michael Snyder <msnyder@redhat.com>
8602 * Remote.c: Spelling fix.
8603 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8604 If no symbol found for "sbrk", try "_sbrk".
8605 (make_output_phdrs): Use bfd_section_name.
8606 (gcore_copy_callback): Use bfd_section_name.
8607 * eval.c: Indentation fix-ups.
8608 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8609 in case it gets applied to an address that is already
8610 in the instruction space.
8611 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8612 * symfile.c: Fix indentation, long lines.
8613 * source.c: White space fix-up.
8615 2002-04-12 Andrew Cagney <cagney@redhat.com>
8617 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8618 * frame.c (frame_register_read): New function. Return non-zero on
8620 (read_relative_register_raw_bytes_for_frame): Delete.
8621 (read_relative_register_raw_bytes): Delete.
8622 * frame.h (frame_register_read): Declare.
8623 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8625 * infcmd.c (do_registers_info): Ditto.
8626 * hppa-tdep.c: Ditto.
8627 * rs6000-tdep.c: Ditto.
8628 * h8500-tdep.c: Ditto.
8629 * mips-tdep.c: Ditto.
8630 * h8300-tdep.c: Ditto.
8631 * z8k-tdep.c: Ditto.
8633 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8635 From Jimi X <jimix@watson.ibm.com>:
8636 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8639 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8641 From Jimi X <jimix@watson.ibm.com>:
8642 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8645 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8647 From Jimi X <jimix@watson.ibm.com>:
8648 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8649 register sets for these processor variants.
8651 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8653 * regformats/reg-ppc.dat: Support FPSCR.
8655 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8657 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8658 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8659 Add fpscr as an invalid/unfetchable register.
8660 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8661 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8662 (fill_fpregset): Add support for register fpscr.
8663 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8664 (fill_gregset): Account for the fact that register ``mq'' might
8666 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8667 (registers_power): Add fpscr to register set at slot 71.
8668 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8669 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8671 2002-04-11 Michael Snyder <msnyder@redhat.com>
8673 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8674 * configure: Regenerate.
8675 * config.in: Regenerate.
8676 * acconfig.h: Add define for _SYSCALL32.
8677 * core-sol2.c: Remove #define _SYSCALL32.
8678 * solib-legacy.c: Remove #define _SYSCALL32.
8680 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8682 * stack.c (select_frame): Cleanup internal error message, do not
8685 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8687 * stack.c (select_frame): Check that selected_frame and the
8688 specified level are as expected.
8689 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8691 * frame.h (struct frame_info): Add field `level'. Update
8693 Work-in-progress PR gdb/464.
8695 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8697 * maint.c (maint_print_section_info): Rename print_section_info.
8698 (print_bfd_section_info, print_objfile_section_info): Update.
8699 * inferior.h (struct gdbarch): Add opaque declaration.
8700 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8701 * gdbarch.h: Regenerate.
8703 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8705 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8706 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8707 (kernel_u_size): Added.
8708 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8709 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8711 2002-04-04 Jim Ingham <jingham@apple.com>
8713 * valarith.c (find_size_for_pointer_math): New function, either returns
8714 the size for a pointer's target, returns 1 for void *, or errors for
8716 (value_add, value_sub): use find_size_for_pointer_math.
8718 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8720 * linux-low.c (linux_look_up_symbols): New hook.
8721 (linux_target_ops): Add linux_look_up_symbols.
8722 * remote-utils.c (decode_address): New function.
8723 (look_up_one_symbol): New function.
8724 * server.c (handle_query): Call target look_up_symbols hook.
8725 * server.h (look_up_one_symbol): Add prototype.
8726 * target.h (struct target_ops): Add look_up_symbols hook.
8728 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8730 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8731 override FP_REGNUM with frame->fp. Update copyright.
8732 * parse.c (num_std_regs, std_regs): Delete.
8733 (target_map_name_to_register): Do not search std_regs. Update
8734 function description.
8735 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8736 declarations. Update copyright.
8739 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8741 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8742 after the last symbol in a block.
8744 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8746 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8747 is non zero as a found symbol.
8749 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8751 * findvar.c: Include "builtin-regs.h".
8752 (value_of_register): Call value_of_builtin_reg when applicable.
8753 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8754 (target_map_name_to_register): Call
8755 builtin_reg_map_name_to_regnum.
8756 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8757 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8758 (builtin_regs_h): Define.
8759 (builtin-regs.o): New target.
8760 (findvar.o): Add $(builtin_regs_h).
8761 * builtin-regs.c, builtin-regs.h: New files.
8762 * std-regs.c: New file.
8763 Partial fix for PR gdb/251.
8765 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8767 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8768 it's no longer required.
8770 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8772 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8774 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8776 From Jimi X <jimix@watson.ibm.com>:
8777 * rs6000-tdep.c (rs6000_software_single_step): Use
8778 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8779 and size. Use target_insert_breakpoint() and
8780 target_remove_breakpoint() to insert and remove breakpoints
8781 instead of explicit memory reads and writes.
8783 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8785 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8786 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8787 ELF_OBJECT_FORMAT ifdef.
8789 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8791 From Jimi X <jimix@watson.ibm.com>:
8792 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8794 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8796 From Jimi X <jimix@watson.ibm.com>:
8797 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8798 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8800 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8802 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8803 s/asprintf/xasprintf/.
8804 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8806 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8808 I believe Jeff Law denies responsability for this one:
8809 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8810 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8811 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8812 Work-around for PR gdb/366.
8814 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8816 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8817 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8818 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8820 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8822 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8823 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8826 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8828 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8831 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8833 * README (Reporting Bugs in GDB): Document the bug web page as the
8834 prefered way of submitting bugs.
8837 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8839 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8841 * gdbarch.h, gdbarch.c: Re-generate.
8843 2002-04-07 Andreas Schwab <schwab@suse.de>
8845 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8846 buffer to regcache_collect.
8848 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8850 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8851 * gdbarch.c, gdbarch.h: Re-generate.
8853 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8855 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8856 declaration. Fix -Werror.
8858 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8860 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8861 * gdbarch.c: Regenerate.
8863 2002-04-05 Michael Snyder <msnyder@redhat.com>
8865 * breakpoint.c (clear_command): Rewrite middle section to
8866 combine two loops with identical control conditions.
8867 Add a cleanup to eliminate a memory leak.
8868 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8870 2002-04-05 H.J. Lu (hjl@gnu.org)
8872 * solib-svr4.c (bkpt_names): Add "__start".
8874 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8876 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8877 as test for 64 bit target.
8879 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8881 * h8500-tdep.c (h8500_write_fp): Delete function.
8882 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8883 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8884 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8886 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8887 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8889 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8890 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8891 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8892 (d10v_write_fp): Delete function.
8893 * inferior.h (write_fp, generic_target_write_fp): Delete
8895 * regcache.c (generic_target_write_fp): Delete function.
8896 (write_fp): Delete function.
8897 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8898 * gdbarch.h, gdbarch.c: Regenerate.
8899 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8900 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8901 (sparc64_write_fp): Delete declaration.
8902 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8903 (h8500_write_fp): Delete declaration.
8905 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8907 * sparc-tdep.c (sparc64_write_fp): Delete.
8908 (sparc_push_dummy_frame): Replace write_fp call with code to store
8910 (sparc_gdbarch_init): Do not initialize write_fp.
8912 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8914 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8917 2002-03-29 Jim Blandy <jimb@redhat.com>
8919 * stack.c (get_selected_block): Add new argument `addr_in_block',
8920 used to return the exact code address we used to select the block,
8922 * blockframe.c (get_frame_block, get_current_block): Same.
8923 * frame.h (get_frame_block, get_current_block,
8924 get_selected_block): Update declarations.
8925 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8926 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8928 2002-04-05 Michael Snyder <msnyder@redhat.com>
8930 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8933 2002-04-05 J. Brobecker <brobecker@gnat.com>
8935 * utils.c (xfullpath): New function.
8936 * defs.h (xfullpath): Add declaration.
8937 * source.c (openp): Use xfullpath in place of gdb_realpath to
8938 avoid resolving the basename part of filenames when the
8939 associated file is a symbolic link. This fixes a potential
8940 inconsistency between the filenames known to GDB and the
8941 filenames it prints in the annotations.
8942 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8943 to be able to match a filename with either the real filename, or
8944 the name of any symbolic link to this file.
8945 (lookup_partial_symtab): Ditto.
8947 2002-04-04 Michael Snyder <msnyder@redhat.com>
8949 * breakpoint.c: Add support for hardware breakpoints in overlays.
8950 (overlay_events_enabled): New state variable.
8951 (insert_breakpoints): Use overlay_events_enabled to decide
8952 whether to attempt to set a breakpoint at the overlay load addr.
8953 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8954 (remove_breakpoint): Use overlay_events_enabled to decide
8955 whether breakpoints need to be removed from overlay load addr.
8956 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8957 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8958 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8959 disable_overlay_breakpoints): Update overlay_events_enabled.
8961 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8963 * dwarf2read.c (struct function_range): New.
8964 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8965 (check_cu_functions): New.
8966 (read_file_scope): Initialize global function lists.
8967 Call dwarf_decode_line after processing children.
8968 (read_func_scope): Add to global function list.
8969 (dwarf_decode_lines): Call check_cu_functions everywhere
8970 record_line is called. Call record_line with a linenumber
8971 of 0 to mark sequence ends.
8973 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8975 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8976 change sync with glibc.
8978 2002-04-03 Jim Blandy <jimb@redhat.com>
8980 * configure.in: Call AC_C_INLINE.
8981 * configure: Regenerated.
8983 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8985 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8986 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8988 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8990 * NEWS: Mention gcore support on FreeBSD/i386.
8992 * fbsd-proc.c: New file.
8993 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8994 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8996 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8999 2002-03-29 Jim Blandy <jimb@redhat.com>
9001 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9002 unescaped newlines in string literals, but newer ones don't. So
9005 2002-03-26 Michael Snyder <msnyder@redhat.com>
9006 Andrew Cagney <cagney@redhat.com>
9008 * cli/cli-dump.c: New file. Dump memory to file,
9009 restore file to memory.
9010 * cli/cli-dump.h: New file.
9011 * Makefile.in: Add rules, dependencies for cli-dump.o.
9012 * NEWS: Mention new commands.
9014 2002-03-28 Michael Snyder <msnyder@redhat.com>
9016 * symfile.c (symbol_file_add): Move test for null symbols to later.
9018 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9020 From veksler at il.ibm.com:
9021 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9022 the xstrduped original path.
9025 2002-03-27 Michael Snyder <msnyder@redhat.com>
9027 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9028 * infcmd.c (_initialize_infcmd): Ditto.
9029 * language.c (_initialize_language): Ditto.
9030 * symfile.c (_initialize_symfile): Ditto.
9031 * top.c (_init_main): Ditto.
9032 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9034 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9036 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9037 vector registers handling.
9038 (skip_prologue): Handle new AltiVec instructions. Fill in new
9039 fields of frame data.
9040 (frame_get_saved_regs): Fill in information for AltiVec registers.
9042 2002-03-27 Jim Blandy <jimb@redhat.com>
9044 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9045 a function; leave this macro here to invoke that function.
9046 (symbol_init_mangled_name): Declaration for that function.
9047 * symtab.c (symbol_init_mangled_name): New function.
9049 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9051 * valarith.c: Replace strerror with safe_strerror.
9052 * tracepoint.c: Ditto.
9054 * go32-nat.c: Ditto.
9058 2002-03-27 Andreas Schwab <schwab@suse.de>
9060 * event-top.c (command_line_handler): Remove useless if.
9062 2002-03-27 Andreas Jaeger <aj@suse.de>
9064 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9067 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9069 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9070 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9071 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9072 (x86_64_linux_dr_get_status, supply_gregset),
9073 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9074 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9075 (x86_64_register_info_table): Add.
9076 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9077 (x86_64_register_raw_size, x86_64_register_virtual_type),
9078 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9079 general x86_64_register_info_table.
9080 (i386_gdbarch_init): gdbarch_register_bytes is now set
9081 dynamicaly during initialization.
9082 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9083 * gdbserver/linux-x86-64-low.c: Ditto.
9085 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9087 * gdbserver/server.c (main): Call target_signal_to_host_p
9088 and target_signal_to_host on signals received from the remote.
9089 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9090 target_signal_from_host on signals sent to the remote.
9091 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9092 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9094 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9096 * signals/signals.c: Include "server.h" in gdbserver build.
9097 (target_signal_from_name): Don't use STREQ.
9098 (_initialize_signals): Likewise. Don't include function in
9101 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9103 * signals.c: Moved to...
9104 * signals/signals.c: Here.
9105 * Makefile (signals.o): Update.
9107 2002-03-26 Jeff Law (law@redhat.com)
9109 * somread.c (som_symtab_read): Remove some commented out code and
9110 updated related comments. Do not set the minimal symbol table to
9111 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9112 in a dynamic executable.
9113 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9114 where we are unable to find the minimal symbol for the given
9117 2002-03-25 Jeff Law (law@redhat.com)
9119 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9121 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9123 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9125 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9127 * command.h: Update copyright.
9128 (struct cmd_list_element): Replace definition with opaque
9130 (enum cmd_types): Document that it will eventually be moved to
9132 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9133 (MALLOCED_REPLACEMENT): Delete macro.
9134 * Makefile.in (cli_decode_h): Add $(command_h).
9135 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9136 * top.c: Include "cli/cli-decode.h".
9137 * completer.c: Include "cli/cli-decode.h".
9138 * maint.c: Include "cli/cli-decode.h".
9139 * cli/cli-decode.h: Include "command.h".
9140 (enum command_class): Delete.
9141 (enum cmd_types): Comment out.
9142 (enum cmd_auto_boolean): Delete.
9143 (enum var_types): Delete.
9145 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9147 * cli/cli-decode.c: Include "gdb_assert.h".
9148 (add_set_or_show_cmd): New static function.
9149 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9150 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9151 all fields, such as func, from the set command.
9153 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9155 * MAINTAINERS (sh-elf): Change warning flag to -w.
9157 2002-03-23 Andrew Cagney <cagney@redhat.com>
9159 * defs.h (error): Add printf format attribute.
9160 * thread-db.c (thread_from_lwp): Fix error format string.
9161 * stack.c (parse_frame_specification): Ditto.
9162 * cli/cli-decode.c (undef_cmd_error): Ditto.
9163 * scm-lang.c (scm_lookup_name): Ditto.
9164 * tracepoint.c (trace_error): Ditto.
9165 * remote-utils.c (usage): Ditto.
9166 * remote.c (compare_sections_command): Ditto.
9169 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9171 * gdbtypes.c (append_composite_type_field): New function.
9172 (init_composite_type): New function.
9173 * gdbtypes.h (append_composite_type_field): Declare.
9174 (init_composite_type): Ditto.
9176 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9178 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9180 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9181 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9182 structure returning convention for SYSV ABI case, but not
9183 for GNU/Linux, FreeBSD, or NetBSD.
9185 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9187 * symtab.h (lookup_block_symbol): Add mangled_name argument
9190 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9191 with new mangled_name argument.
9192 * linespec.c (decode_line_1): Likewise.
9193 * valops (value_of_this): Likewise.
9194 * symtab.c (lookup_transparent_type): Likewise.
9195 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9196 (lookup_symbol): If we are given a mangled name, pass it down
9197 to lookup_symbol_aux.
9198 (lookup_block_symbol): If we are given a mangled name to check
9199 against, only return symbols which match it.
9201 2002-03-22 Christopher Faylor <cgf@redhat.com>
9203 * win32-nat.c (child_create_inferior): Check for proper shell to use
9204 here, in case the user changes it on the fly.
9205 (_initialize_inftarg): Remove shell path considerations.
9207 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9209 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9210 for gdbarch_max_register_raw_size and max_register_virtual_size.
9211 Adjust copyright year.
9213 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9215 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9216 in a function to cover the entire beginning of the function
9217 as well if it does not already.
9219 2002-03-21 Tom Rix <trix@redhat.com>
9221 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9222 (rs6000_ptrace64): Renamed from ptrace64.
9224 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9226 * gdbserver/remote-utils.c (remote_open): Don't call
9227 getprotobyname, we're all using TCP here so just use
9229 * gdbserver/gdbreplay.c (remote_open): Ditto.
9231 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9233 * regcache.c (_initialize_regcache): No need to call
9234 build_regcache() at this time; it gets called whenever
9235 the gdbarch changes.
9237 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9239 * sparc-nat.c: Include sys/param.h where possible.
9241 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9244 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9245 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9246 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9248 * stabsread.c (rs6000_builtin_type): Likewise.
9249 (read_sun_floating_type): Likewise.
9251 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9253 * stabsread.c (read_member_functions): Remove skip code for duplicate
9254 constructor/destructor methods. Use standard parsing for these
9255 methods and just do not chain them to the list of methods after
9258 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9260 * coffread.c: Remove redundant static declarations. Replace
9261 occurrences of `PTR' with `void *'.
9262 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9263 * top.h (quit_cover): Likewise.
9264 * defs.h (catch_errors): Likewise.
9266 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9268 * defs.h (XMALLOC): Define.
9269 * gdb-events.sh (XMALLOC): Delete macro.
9270 * gdb-events.c, gdb-events.h: Regenerate.
9271 * gdbarch.sh (XMALLOC): Delete macro.
9272 * gdbarch.c: Regenerate.
9273 * serial.c (XMALLOC): Delete macro.
9274 * ui-file.c (XMALLOC): Ditto.
9275 * ser-unix.h (XMALLOC): Ditto.
9276 * sh-tdep.c (XMALLOC): Ditto.
9277 * ui-out.c (XMALLOC): Ditto.
9278 * utils.c (XMALLOC): Ditto.
9279 * i386-tdep.c (XMALLOC): Ditto.
9280 * gdb-events.c (XMALLOC): Ditto.
9281 * d10v-tdep.c (XMALLOC): Ditto.
9282 * cli-out.c (XMALLOC): Ditto.
9284 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9285 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9286 * ui-file.c, ui-out.c: Ditto.
9288 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9290 * command.h (struct cmd_list_element): Add field context.
9291 (set_cmd_context, get_cmd_context): Declare.
9292 * cli/cli-decode.h: Ditto.
9293 * cli/cli-decode.c (get_cmd_context): New function.
9294 (set_cmd_context): New function.
9295 (add_cmd): Initialize context.
9296 Part of fixing PR gdb/145 and PR gdb/146.
9298 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9300 * cli/cli-decode.c (cmd_type): New function.
9301 * command.h (cmd_type): Declare.
9302 * infrun.c (set_schedlock_func): Call function cmd_type.
9303 * kod.c (kod_set_os): Call cmd_type.
9304 * cris-tdep.c (cris_version_update): Use function cmd_type.
9305 (cris_mode_update, cris_abi_update): Ditto.
9307 * command.h: (execute_cmd_post_hook): Declare.
9308 (execute_cmd_pre_hook): Declare.
9309 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9310 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9311 functions. Execute pre/post hook while ensuring that afterwords
9313 * top.c (execute_command): Use execute_cmd_post_hook, and
9314 execute_cmd_pre_hook to execute pre/post commands.
9315 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9317 (hook_stop_stub): Call execute_cmd_pre_hook.
9319 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9321 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9322 set'' and this leads to a core dump. Move xstrdup of
9323 operating_system to after check that it is not NULL.
9325 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9327 * kod.c (kod_set_os): Remove unnecessary check that
9328 ``command->type'' is set_cmd.
9330 * valprint.c (set_input_radix): Use input_radix.
9331 (set_output_radix): Use output_radix.
9332 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9335 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9337 * value.h (struct value): Delete field ``substring_addr''. Change
9338 aligner fields to force_doublest_align, force_longest_align,
9339 force_core_addr_align and force_pointer_aligh.
9341 * value.h (struct value): Fix typo in above change.
9343 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9345 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9346 to fix internal_error from ``maintenance print architecture''.
9348 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9350 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9351 for gcc versions after gcc-2.8.1.
9353 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9355 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9356 for method resolution. Restore adjustment of ``this'' pointer after
9357 calling value_struct_elt, which was accidentally removed during the
9360 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9362 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9364 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9366 * value.h (value_of_register): Update.
9368 2002-03-14 Richard Henderson <rth@redhat.com>
9370 * configure.in: Detect declaration for canonicalize_file_name.
9371 * utils.c (canonicalize_file_name): Declare, if needed.
9372 (gdb_realpath): Prefer realpath if available and usable.
9373 * config.in, configure: Rebuild.
9375 2002-03-14 Richard Henderson <rth@redhat.com>
9377 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9378 a constant array bound.
9380 * MAINTAINERS: Add myself to write-after-approval.
9382 2002-03-14 Michael Snyder <msnyder@redhat.com>
9384 * symfile.c (syms_from_objfile): Return immediately if no syms.
9385 (symbol_file_add): Return immediately if no syms.
9386 (find_sym_fns): Return immediately if no syms.
9388 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9390 * gdbserver/remote-util.c (remote_open): Print remote-side's
9391 IP address when remote debugging over the network.
9393 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9395 * config/sparc/fbsd.mh: Fix copyright.
9396 * config/sparc/fbsd.mt: Likewise.
9398 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9400 * MAINTAINERS: Fix typo in name of gdb warnings option.
9401 (x86-64): Fix formating so that this can be parsed by awk.
9403 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9405 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9406 * defs.h: Include "gdb/signals.h".
9407 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9409 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9411 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9412 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9415 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9416 Don Howard <dhoward@redhat.com>
9418 * mips-tdep.c (ST0_FR): Define.
9419 (mips2_fp_compat): New function, temporarily disabled.
9420 (mips_read_fp_register_single): New function.
9421 (mips_read_fp_register_double): New function.
9422 (mips_print_register): Use them.
9423 (do_fp_register_row): Likewise.
9425 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9427 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9430 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9432 * stabsread.c (read_member_functions): Fix is_stub test for
9433 static member functions, improve comment.
9435 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9437 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9438 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9439 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9440 commands that set boolean values.
9441 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9442 (arm_rdi_resume): Always initialize PC.
9443 (arm_rdi_open): Don't use rslt as a boolean.
9444 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9445 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9446 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9447 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9449 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9451 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9452 * configure: Rebuilt.
9454 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9456 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9457 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9459 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9461 * cli/cli-decode.c (set_cmd_completer): New function.
9462 * command.h (set_cmd_completer): Declare.
9463 * cli/cli-decode.h (set_cmd_completer): Ditto.
9465 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9466 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9467 * win32-nat.c (_initialize_inftarg): Ditto.
9468 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9469 * proc-api.c (_initialize_proc_api): Ditto.
9470 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9471 * source.c (_initialize_source): Ditto.
9472 * exec.c (_initialize_exec): Ditto.
9473 * solib.c (_initialize_solib): Ditto.
9474 * top.c (init_main): Ditto.
9475 * tracepoint.c (_initialize_tracepoint): Ditto.
9476 * symfile.c (_initialize_symfile): Ditto.
9477 * printcmd.c (_initialize_printcmd): Ditto.
9478 * infcmd.c (_initialize_infcmd): Ditto.
9479 * corefile.c (_initialize_core): Ditto.
9481 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9483 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9485 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9487 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9489 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9491 * NEWS: Update headings, 5.2 has branched.
9493 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9495 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9496 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9497 (register_addr, REGISTER_RAW_SIZE): Likewise.
9498 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9499 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9501 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9503 * MAINTAINERS (x86-64): Add myself.
9504 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9505 changed value_ptr -> struct value *
9507 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9509 * configure.host (sparc64-*-freebsd): Add.
9510 * configure.tgt: Likewise.
9511 * config/sparc/fbsd.mh: New file.
9512 * config/sparc/fbsd.mt: Likewise.
9513 * config/sparc/nm-fbsd.h: Likewise.
9514 * config/sparc/tm-fbsd.h: Likewise.
9516 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9518 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9519 regformats/reg-s390x.dat.
9521 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9523 * utils.c: Add FIXME explaining true/false problem.
9525 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9527 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9529 2002-02-28 Michael Chastain <mec@shout.net>
9531 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9533 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9535 * gdbserver/linux-s390-low.c: New file.
9536 * regformats/reg-s390.dat: New file.
9537 * regformats/reg-s390x.dat: New file.
9538 * gdbserver/configure.srv: Add S/390.
9539 * gdbserver/Makefile.in: Add S/390.
9540 * configure.tgt: Enable gdbserver for S/390.
9542 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9544 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9545 first line of the doc string for "info dos", except at the end of
9546 the sentence, since the short help stops at the first period.
9548 2002-02-28 Jason Merrill <jason@redhat.com>
9550 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9552 2002-02-27 Fred Fish <fnf@redhat.com>
9554 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9555 comment (dumy -> dummy).
9557 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9559 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9561 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9563 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9565 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9567 * gdbserver/acconfig.h: New file.
9568 * gdbserver/i387-fp.c: New file.
9569 * gdbserver/i387-fp.h: New file.
9570 * gdbserver/linux-x86-64.c: New file.
9571 * regformats/reg-x86-64.dat: New file.
9572 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9573 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9574 * gdbserver/configure.in: Add support for regsets.
9575 * gdbserver/config.in: Regenerate.
9576 * gdbserver/configure: Regenerate.
9577 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9578 * gdbserver/linux-low.h: New file.
9579 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9581 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9582 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9583 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9584 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9585 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9586 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9587 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9588 "i387-fp.h". Add PTRACE_GETREGS and friends.
9589 * gdbserver/regcache.c (supply_register): New function.
9590 (supply_register_by_name): New function.
9591 (collect_register): New function.
9592 (collect_register_by_name): New function.
9594 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9596 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9597 (config.status): Add configure.srv dependency.
9598 (server_h): Add config.h dependency.
9600 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9602 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9603 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9604 * gdbserver/configure.srv: Change i386-*-linux* to use
9607 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9609 * x86-64-tdep.c: Re-indent. Update copyright date.
9611 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9613 From Michal Ludvig <mludvig@suse.cz>:
9614 * x86-64-tdep.c (value.h): Delete.
9615 (gdb_assert.h): Include.
9616 (x86_64_register_convert_to_virtual,
9617 x86_64_register_convert_to_raw ): Add check which lets only
9618 floating-point values to be converted.
9619 (value_push): Delete.
9620 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9621 (i386_gdbarch_init): Number of register_bytes fixed.
9623 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9625 * MAINTAINERS: Add x86-64 target.
9627 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9629 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9630 * osfsolib.c (solib_map_sections): Ditto.
9631 * irix5-nat.c (solib_map_sections): Ditto.
9632 * corelow.c (gdb_check_format): Ditto.
9633 * symfile.c (symfile_bfd_open): Ditto.
9634 * solib.c (solib_map_sections): Ditto.
9637 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9639 * remote.c (_initialize_remote): By default, disable ``e'' and
9640 ``E'' step out-of-range packets.
9642 2002-02-26 Andreas Schwab <schwab@suse.de>
9644 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9645 m68k_linux_frame_saved_pc.
9646 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9648 (SIGCONTEXT_PC_OFFSET): Remove.
9649 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9650 m68k_linux_sigtramp_saved_pc): New functions.
9651 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9652 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9653 (UCONTEXT_PC_OFFSET): Define.
9654 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9655 non-RT and RT signal trampolines.
9657 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9659 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9660 (TARGET_NBPG, STACK_END_ADDR): Delete
9661 (VARIABLES_INSIDE_BLOCK): Delete.
9663 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9665 * utils.c (perror_with_name): Make string parameter constant.
9666 (print_sys_errmsg): Ditto.
9668 * defs.h (perror_with_name): Update.
9669 (print_sys_errmsg): Update.
9672 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9674 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9675 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9677 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9679 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9680 if it already matches the current architecture from the exec file.
9681 Include arch-utils.h for gdbarch_info_init prototype.
9682 * Makefile.in (rs6000-nat.o): Update dependencies.
9684 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9686 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9687 list of exported variables.
9689 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9691 * gdbserver/configure.srv: New file.
9692 * gdbserver/configure.in: Use configure.srv instead
9693 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9695 * gdbserver/configure: Regenerated.
9696 * gdbserver/terminal.h: New file.
9697 * gdbserver/Makefile.in: Update for configure changes. Remove
9698 more unneeded include paths.
9700 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9702 From wiz at danbala:
9703 * config/sparc/tm-sp64.h: Fix grammar and typos.
9706 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9708 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9709 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9710 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9711 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9712 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9713 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9714 * s390-tdep.c: Ditto.
9715 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9716 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9717 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9718 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9719 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9720 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9721 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9722 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9723 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9724 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9727 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9729 * lin-thread.c: Delete file.
9730 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9731 to gdb_proc_service.h.
9732 * configure: Re-generate.
9734 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9735 * serial.c (serial_open): Delete check for "ocd".
9738 * Makefile.in (linux-thread.o): Delete target.
9739 * linux-thread.c: Delete file.
9741 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9742 renamed SH files to be consistent.
9744 * symtab.c (sort_search_symbols): Use xfree.
9746 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9748 * arm-linux-tdep.c (arm_linux_init_abi): Register
9749 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9750 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9751 definition with undef, since we don't want the sysvr4 definition.
9752 (SKIP_TRAMPOLINE_CODE): Likewise.
9754 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9756 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9758 * configure.in: (AC_CHECK_FUNCS) Added test for
9759 canonicalize_file_name Regenerated.
9760 * config.in, configure: Regenerated.
9761 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9762 defined use canonicalize_file_name.
9764 2002-02-23 Michael Chastain <mec@shout.net>
9766 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9768 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9770 * README: Remove references to cygnus.com.
9771 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9772 dot com'' form. Remove references to cygnus.com and sourceware.
9774 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9776 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9777 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9778 1003.1-2001 no longer allows "head -1".
9779 * gdb/Makefile.in (version.c): Likewise.
9780 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9781 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9782 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9784 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9786 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9787 * command.h (cmd_cfunc_eq): Declare.
9788 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9790 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9791 ``struct cmd_list_element *''.
9792 * cli/cli-cmds.c (is_complete_command): Update. Use
9794 * top.c (execute_command): Pass the command to
9795 is_complete_command.
9796 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9798 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9800 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9801 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9802 architecture defines.
9803 * s390-tdep.c (s390_gdbarch_init): Likewise.
9805 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9807 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9808 (arm_linux_push_arguments): Likewise.
9809 (arm_linux_init_abi): Register them. Also register linux-specific
9811 (find_minsym_and_objfile): Use strcmp, not STREQ.
9812 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9813 (arm_linux_call_dummy_words): Delete declaration.
9814 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9815 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9817 (LOWEST_PC): Delete.
9819 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9821 * maint.c (print_section_info): Do not prepend `0x' to filepos
9822 output, it will be handled by local_hex_string_custom.
9824 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9826 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9827 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9828 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9830 2002-02-22 Jim Blandy <jimb@redhat.com>
9832 Indicate that the bcache functions don't change the strings
9834 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9835 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9837 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9839 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9841 2002-02-21 Christopher Faylor <cgf@redhat.com>
9843 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9844 find the complete path to a loaded DLL.
9846 2002-02-21 Fred Fish <fnf@redhat.com>
9848 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9849 that marks the end of the range of a function, enter a line number
9850 entry that has a line number of zero and a PC offset that matches
9851 the end of the function. This starts a range of PC's for which no
9852 line number information is known.
9853 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9854 PC's for which no line number info is found (line number is zero)
9855 then we didn't find any valid line information.
9856 * symtab.h: Document use of zero line number entry.
9858 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9860 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9861 (have_ptrace_getvrregs): Define for run time checks.
9862 (gdb_vrregset_t): New type for Altivec register handling.
9863 (fetch_register, store_register): Fetch/store altivec register
9865 (fetch_altivec_register, store_altivec_register): New functions.
9866 (supply_vrregset, fill_vrregset): New functions.
9867 (fetch_altivec_registers, store_altivec_registers): New functions.
9868 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9871 2002-02-21 Jiri Smid <smid@suse.cz>
9873 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9875 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9877 * Makefile.in (armnbsd-nat.o): Update dependencies.
9878 * armnbsd-nat.c (supply_gregset): New function. Common code to
9879 supply the integer register set.
9880 (supply_fparegset): New function. Similar for FPA registers.
9881 (fetch_regs, fetch_fp_regs): Use them.
9882 (fetch_core_registers): Likewise.
9883 (fetch_elfcore_registers): New function.
9884 (arm_netbsd_elfcore_fns): New core-file type specification.
9885 (_initialize_arm_netbsd_nat): Register it.
9887 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9889 * armnbsd-nat.c: Include gdbcore.h.
9890 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9891 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9892 'void' to declaration, to shut up ARI.
9893 (fetch_core_registers): Make static. Rewrite using supply_register.
9894 (arm_netbsd_core_fns): New core-file type specification.
9895 (_initialize_arm_netbsd_nat): New function.
9897 2002-02-21 Christopher Faylor <cgf@redhat.com>
9899 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9902 2002-02-20 Christopher Faylor <cgf@redhat.com>
9904 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9907 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9909 * jv-exp.y (parse_number): Change type of implicit longs
9910 to builtin_type_uint64.
9912 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9914 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9915 to be an integer instead of a `union wait'.
9917 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9919 * mips-linux-nat.c: Call the operating system GNU/Linux.
9920 * mips-linux-tdep.c: Likewise.
9921 * mips-tdep.c: Likewise.
9923 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9926 * jv-exp.y (parse_number): Handle 64-bit integers.
9928 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9930 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9931 AC_STDC_HEADERS to AC_HEADER_STDC.
9932 * gdbserver/configure: Regenerated.
9934 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9936 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9938 * sparc-tdep.c (get_longjmp_target): Likewise.
9940 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9942 * News: Add news about ARM and Multi-arch. Mention the new target
9945 2002-02-19 Jim Blandy <jimb@redhat.com>
9947 * stabsread.c (error_type_complaint): Improve error message.
9949 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9951 * gdbserver/README: Update documentation.
9952 * gdbserver/configure.in: Update configury to match documentation.
9953 * gdbserver/Makefile.in: Likewise.
9954 * gdbserver/configure: Regenerated.
9955 * gdbserver/aclocal.m4: New file, generated by aclocal.
9956 * gdbserver/config.in: New file, generated by autoheader.
9958 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9960 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9963 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9965 * arm-tdep.h (enum arm_float_model): New enum.
9966 (struct gdbarch_tdep): Add fp_model.
9967 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9968 up floating-point conversions until we know the floating-point model
9969 in use by the inferior. Don't complain about being unable to
9970 determine the ABI of the inferior when we don't have one.
9971 (arm_extract_return_value): Support different floating-point models.
9972 (arm_store_return_value): Likewise.
9973 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9975 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9977 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9979 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9980 of ``current_gdbarch''.
9982 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9984 * armnbsd-nat.c : ANSIfy all function declarations.
9985 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9986 (fetch_inferior_registers): Re-implement in terms of above.
9987 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9988 (store_inferior_registers): Re-implement in terms of above.
9990 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9992 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9994 * arm-linux-tdep.c: Likewise.
9995 * config/arm/tm-linux.h: Likewise.
9997 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9999 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10000 * config/arm/nbsd.mt (TM_FILE): Delete.
10001 * config/arm/tm-nbsd.h: Delete.
10003 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10005 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10006 Initialize CALL_DUMMY_LENGTH.
10008 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10010 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10012 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10013 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10014 defines one thing and that is incorrect for this port.
10015 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10017 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10019 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10021 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10023 * win32-nat.c (display_selector): New function. Displays information
10024 about the information returned by GetThreadSelectorEntry API function.
10025 (display_selectors): New function. Displays the infomation of
10026 the selector given as argument, or of CS, DS ans FS selectors
10027 if no argument is given.
10028 ( _initialize_inftarg): Add "w32" as info prefix command.
10029 Add "info w32 selector" as command calling display_selectors.
10031 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10033 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10034 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10037 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10039 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10041 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10043 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10044 (arm_fix_call_dummy): Call it.
10045 (arm_call_dummy_breakpoint_offset): Delete.
10046 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10047 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10049 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10051 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10052 Default to func_frame_chain_valid.
10053 * gdbarch.h, gdbarch.c: Re-generate.
10054 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10056 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10058 * ppc-linux-nat.c: Update copyright.
10059 (fetch_register, store_register): Add tid parameter, don't compute
10061 (fetch_ppc_registers, store_ppc_registers): Add tid
10062 parameter. Pass it along to callees.
10063 (fetch_inferior_registers, store_inferior_registers): Compute tid
10064 here, and pass it to calleed functions.
10065 (fill_gregset, supply_fpregset): Clean up formatting.
10067 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10069 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10070 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10072 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10074 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10075 * gdbarch.c gdbarch.h: Regenerate.
10076 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10078 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10079 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10080 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10082 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10083 * arm-tdep.c (arm_get_longjmp_target): New function.
10084 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10085 this to a positive value register arm_get_longjmp_target as the
10087 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10088 (arm_linux_init_abi): Set up longjmp description in tdep.
10089 * armnbsd-nat.c (get_longjmp_target): Delete.
10090 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10091 description in tdep.
10092 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10093 (get_longjmp_target): Delete declaration.
10094 (GET_LONGJMP_TARGET): Delete.
10095 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10096 (GET_LONGJMP_TARGET): Delete.
10098 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10100 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10101 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10102 of ``current_gdbarch''.
10104 2002-02-17 Tom Tromey <tromey@redhat.com>
10106 * cli/cli-cmds.c (compare_strings): New function.
10107 (complete_command): Only print each unique item once.
10108 * completer.h (complete_line): Declare.
10109 * completer.c (complete_line): New function.
10110 (line_completion_function): Use it.
10112 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10114 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10115 * gdbarch.h, gdbarch.c: Re-generate.
10117 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10119 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10121 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10123 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10124 * valops.c (value_arg_coerce): Don't take the address of a reference
10125 to convert an argument to a reference.
10127 2002-02-15 Christopher Faylor <cgf@redhat.com>
10129 * win32-nat.c (get_image_name): New function.
10130 (handle_load_dll): Use get_image_name function.
10131 (get_child_debug_event): Avoid registering debug events until possibly
10132 execed process is started.
10133 (child_create_inferior): Allow invocation via shell so that command
10134 line redirection, etc. works ok.
10135 (_initialize_inftarg): Add new command: "set shell" to control whether
10136 a shell is used to start a process.
10138 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10140 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10141 instead of find_register_by_number.
10142 (cannot_store_register): Likewise.
10144 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10146 * dwarf2read.c: Replace fprintf (stderr, ...) by
10147 fprintf_unfiltered (gdb_stderr, ...).
10149 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10151 * gdbserver/gdbserver.1: Document --attach.
10153 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10155 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10157 * arm-tdep.c (arm_default_arm_le_breakpoint)
10158 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10159 (arm_default_thumb_be_breakpoint): New. Initialize them from
10160 traditional breakpoint defines.
10161 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10162 (arm_gdbarch_init): Initialize new breakpoint variables.
10163 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10164 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10165 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10166 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10168 (arm_netbsd_init_abi_common): ... here; new function.
10169 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10170 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10171 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10172 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10174 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10176 * arm-tdep.h (enum arm_abi): New enum.
10177 (struct gdbarch_tdep): New structure.
10178 (LOWEST_PC): Provide a default.
10179 (arm_gdbarch_register_os_abi): Declare new function.
10180 * arm-tdep.c (arm_abi_names): New array.
10181 (process_note_abi_tag_sections): New function.
10182 (get_elfosabi): New function.
10183 (arm_gdbarch_register_os_abi): New function.
10184 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10185 support for that ABI has been built in, then call the appropriate
10186 configuration routine. Use gdbarch_num_regs() to get the number
10188 (arm_dump_tdep): New function.
10189 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10190 place-holder functions.
10191 (_initialize_arm_tdep): Register them.
10192 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10194 * armnbsd-tdep.c: New file.
10195 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10196 * config/arm/nbsd.mt (TDEPFILES): Add it.
10197 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10199 * armnbsd-nat.c: Include regcache.h.
10200 * Makefile.in (armnbsd-nat.o): Update dependency list.
10202 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10204 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10206 * gdbserver/Makefile.in: Fix typos in target rules.
10208 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10210 Fix part of PR gdb/267.
10211 * linespec.c (find_methods): Handle constructors specially for now.
10213 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10215 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10217 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10218 standard_coerce_float_to_double().
10220 2002-02-14 Christopher Faylor <cgf@redhat.com>
10222 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10225 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10227 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10228 find_variant_by_name, because it confuses the multiarch
10229 framework. Return NULL if there isn't an architecture with the
10230 user supplied name, instead of forcing a different one without
10231 recording the change with the multiarch machinery.
10232 (find_variant_by_name): Delete.
10234 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10236 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10237 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10239 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10241 * stack.c (print_frame_info_base): When calling
10242 print_frame_info_listing_hook, set current_source_symtab.
10244 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10246 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10247 and remove unused $(INCLUDE_DIR).
10248 Add regcache.c to OBS.
10249 Add generated register protocol files to clean target.
10250 Update dependencies for new objects, obsolete old target code.
10252 * gdbserver/linux-low.c: Remove all platform-specific code to
10253 new files. Remove various dead code. Update to use regcache
10255 * gdbserver/remote-utils.c (fromhex): Add return statement
10257 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10259 (input_interrupt): Add integer parameter to match prototype
10260 of a signal handler.
10261 (outreg): Use register_data ().
10262 (prepare_resume_reply): Use gdbserver_expedite_regs.
10263 * gdbserver/server.c (main): Dynamically allocate own_buf because
10264 PBUFSIZ is no longer constant. Use registers_to_string () and
10265 registers_from_string ().
10266 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10267 for error (), fatal (), and warning (). Update definition of
10268 PBUFSIZ to use regcache functionality. Add include guard.
10269 * gdbserver/utils.c (fatal): Add missing ``const''.
10270 (warning): New function.
10272 * regformats/regdat.sh: Include "regcache.h" in generated files.
10273 Provide init_registers () function.
10274 * regformats/regdef.h: Add prototype for set_register_cache ().
10277 * gdbserver/linux-arm-low.c: New file.
10278 * gdbserver/linux-i386-low.c: New file.
10279 * gdbserver/linux-ia64-low.c: New file.
10280 * gdbserver/linux-m68k-low.c: New file.
10281 * gdbserver/linux-mips-low.c: New file.
10282 * gdbserver/linux-ppc-low.c: New file.
10283 * gdbserver/linux-sh-low.c: New file.
10285 * gdbserver/regcache.c: New file.
10286 * gdbserver/regcache.h: New file.
10288 * gdbserver/low-linux.c: Removed obsolete file.
10290 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10292 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10293 * config/i386/linux.mt: Likewise.
10294 * config/ia64/linux.mt: Likewise.
10295 * config/m68k/linux.mh: Likewise.
10296 * config/powerpc/linux.mh: Likewise.
10297 * config/mips/linux.mt: Likewise.
10299 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10301 * config/i386/i386lynx.mh: Mark gdbserver variables
10302 as (currently) obsolete for this target.
10303 * config/i386/nbsd.mt: Likewise.
10304 * config/i386/nbsdelf.mt: Likewise.
10305 * config/m32r/m32r.mt: Likewise.
10306 * config/m68k/m68klynx.mh: Likewise.
10307 * config/m68k/nbsd.mt: Likewise.
10308 * config/m68k/sun3os4.mh: Likewise.
10309 * config/mips/vr5000.mt: Likewise.
10310 * config/ns32k/nbsd.mt: Likewise.
10311 * config/pa/hppabsd.mh: Likewise.
10312 * config/pa/hppaosf.mh: Likewise.
10313 * config/powerpc/nbsd.mt: Likewise.
10314 * config/rs6000/rs6000lynx.mh: Likewise.
10315 * config/s390/s390.mt: Likewise.
10316 * config/s390/s390x.mt: Likewise.
10317 * config/sparc/sparclynx.mh: Likewise.
10318 * config/sparc/sun4os4.mh: Likewise.
10319 * config/i386/x86-64linux.mt: Likewise.
10320 * config/sparc/linux.mh: Likewise.
10322 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10324 * configure.tgt: Configure gdbserver only for known working
10325 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10326 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10327 SUBDIRS if it is configured. Update comment for ${nativefile}.
10328 * configure: Regenerated.
10330 2002-02-13 Michael Snyder <msnyder@redhat.com>
10332 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10334 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10335 (default_gcore_mach): Just return 0, work around a problem in bfd.
10336 (default_gcore_target): OK to return NULL if exec_bfd is null.
10337 (make_mem_sec): Use a cast, avoid a warning.
10339 * procfs.c (find_memory_regions_callback): Use a cast instead of
10340 calling host_pointer_to_address (which complains if
10341 sizeof (host pointer) != sizeof (target pointer)).
10342 (procfs_make_note_section): Avoid overflow in psargs string.
10344 * procfs.c (procfs_make_note_section): Make the default
10345 implementation return an error.
10347 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10349 * procfs.c (procfs_make_note_section): Provide a default definition
10350 (for alpha-dec-osf4.0f). Fix typos.
10352 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10354 * linux-proc.c: Add include of regcache.h.
10355 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10357 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10359 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10360 * memattr.c (create_mem_region): Disallow useless empty region.
10361 Regions are half-open intervals, so allow [A..B) [B..C) as
10364 2002-02-13 Michael Chastain <mec@shout.net>
10366 * defs.h: Kill CONST_PTR.
10367 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10368 * c-lang.c (c_builtin_types): Likewise.
10369 * ch-lang.c (ch_builtin_types): Likewise.
10370 * f-lang.c (f_builtin_types): Likewise.
10371 * language.c (unknown_builtin_types): Likewise.
10372 * m2-lang.c (m2_builtin_types): Likewise.
10373 * p-lang.c (pascal_builtin_types): Likewise.
10374 * scm-lang.c (c_builtin_types): Likewise.
10376 2002-02-13 Keith Seitz <keiths@redhat.com>
10378 * arm-tdep.h (arm_get_next_pc): Add declaration.
10380 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10382 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10383 with other related struct-returning functions.
10384 (arm_extract_struct_value_address): New function.
10385 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10386 initialize float_format, double_format and long_double_format as
10387 appropriate to the endianness of the target.
10388 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10389 (arm_use_struct_convention): Delete declaration.
10390 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10392 2002-02-13 Keith Seitz <keiths@redhat.com>
10394 * defs.h (core_addr_to_string_nz): New function.
10396 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10398 Apply missing bits of 2002-01-15 patch.
10399 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10400 (fill_fpregset): Use i387_fill_fsave.
10402 2002-02-12 Keith Seitz <keiths@redhat.com>
10404 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10405 (core_addr_to_string_nz): New function.
10407 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10409 * arm-linux-nat.c: Really include arm-tdep.h.
10410 * config/arm/tm-linux.h (struct type, struct value): Declare.
10412 2002-02-11 Michael Snyder <msnyder@redhat.com>
10414 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10415 (gcore section): Ifdef for Solaris and Unixware only.
10416 (procfs_do_thread_registers): Unixware needs one lwpstatus
10417 per thread (not one prstatus or pstatus).
10418 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10419 not over all gdb threads. For unixware, call elfcore_write_pstatus
10420 once before iterating over threads.
10422 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10424 * arm-tdep.h: New file.
10425 * arm-tdep.c: Include arm-tdep.h.
10426 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10427 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10428 (arm_print_float_info, arm_register_type, convert_to_extended)
10429 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10430 (arm_extract_return_value, arm_register_name): Make static.
10431 (arm_software_single_step): Similarly. Fix types in declaration.
10432 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10433 (arm_store_return_value, arm_store_struct_return): New functions.
10434 (arm_gdbarch_init): Register the above functions. Also register
10435 call_dummy_start_offset, sizeof_call_dummy_words,
10436 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10437 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10438 max_register_virtual_size, register_size. Set up
10439 prologue_cache.saved_regs here, rather than ...
10440 (_initialize_arm_tdep): ... here.
10441 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10443 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10444 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10445 (arm_print_float_info, arm_register_type, convert_to_extended)
10446 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10447 (arm_extract_return_value, arm_register_name): Delete declarations.
10448 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10449 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10450 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10451 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10452 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10453 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10454 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10455 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10456 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10457 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10458 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10459 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10461 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10462 * remote-rdi.c remote-rdp.c: Likewise.
10463 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10464 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10465 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10468 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10469 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10470 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10471 from non-ARM_ prefixed definitions.
10472 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10474 * remote-rdi.c remote-rdp.c: Likewise.
10475 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10477 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10479 * arm-tdep.c (arm_frameless_function_invocation)
10480 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10481 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10482 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10483 (arm_pop_frame, arm_get_next_pc): Make static.
10484 (arm_gdbarch_init): Register above in gdbarch structure.
10485 (arm_read_fp): Renamed from arm_target_read_fp.
10486 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10487 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10488 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10489 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10490 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10491 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10492 (arm_pc_is_thumb_dummy): Delete declarations.
10493 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10494 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10495 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10496 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10498 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10500 * symtab.c (compare_search_syms): New function.
10501 (sort_search_symbols): New function.
10502 (search_symbols): Sort symbols after searching rather than
10505 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10507 * NEWS: Linux -> GNU/Linux.
10509 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10511 * gdbarch.sh: For for level one methods, disallow a definition
10512 when partially multi-arched. Add comments explaining rationale.
10513 * gdbarch.h: Re-generate.
10515 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10517 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10518 multi-arch partial.
10520 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10522 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10523 field. Use diff -u.
10524 * gdbarch.c: Re-generate.
10526 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10528 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10529 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10532 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10534 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10535 multi-arch partial.
10536 (PUSH_ARGUMENTS): Switch to using predefault.
10537 * gdbarch.c: Regenerate.
10539 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10541 * valops.c (PUSH_ARGUMENTS): Delete definition.
10542 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10543 partial. Default to default_push_arguments.
10544 * gdbarch.h, gdbarch.c: Regenerate.
10546 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10548 * defs.h (throw_exception): Rename return_to_top_level. Update
10550 * utils.c (error_stream, internal_verror, quit): Ditto.
10551 * top.c (throw_exception, catcher): Ditto.
10552 * sparclet-rom.c (sparclet_load): Ditto.
10553 * remote.c (interrupt_query, minitelnet): Ditto.
10554 * remote-sds.c (interrupt_query): Ditto.
10555 * remote-mips.c (mips_error, mips_kill): Ditto.
10556 * ocd.c (interrupt_query): Ditto.
10557 * monitor.c (monitor_interrupt_query): Ditto.
10558 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10559 * target.h: Update comment.
10561 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10563 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10565 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10566 default_double_format.
10567 * gdbarch.h, gdbarch.c: Re-generate.
10568 * findvar.c (floatformat_unknown): Delete variable definition.
10569 * doublest.h (floatformat_unknown): Delete variable declaration.
10571 2002-02-09 Jim Blandy <jimb@redhat.com>
10573 * stabsread.c (read_type): Add code to parse Sun's syntax for
10574 prototyped function types.
10576 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10578 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10579 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10581 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10583 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10584 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10585 now _initialize_xcoffsolib gets called again and overrides the
10586 commands from solib.c in a native configuration.
10588 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10590 * doublest.c (store_typed_floating): Don't try to return a value.
10593 2002-02-08 Jim Blandy <jimb@redhat.com>
10595 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10596 is prototyped and has no arguments, print its argument list as
10599 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10601 * MAINTAINERS (write-after-approval): Add myself.
10602 (paper-trail): I've escaped!
10604 2002-02-08 Christopher Faylor <cgf@redhat.com>
10606 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10608 (_initialize_check_for_gdb_ini): Ditto.
10610 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10612 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10613 xaprintf -> xasprintf.
10615 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10617 * win32-nat.c: Remove use of printf and sprintf functions.
10619 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10621 * arm-tdep.c (arm_frame_chain_valid): Make static.
10622 (arm_push_arguments): Likewise.
10623 (arm_gdbarch_init): New function.
10624 (_initialize_arm_tdep): Call it.
10625 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10626 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10627 (FRAME_CHAIN_VALID): Delete.
10628 (arm_frame_chain_valid): Delete declaration.
10629 (PUSH_ARGUMENTS): Delete.
10630 (arm_push_arguments): Delete declaration.
10631 (CALL_DUMMY_P): Delete.
10633 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10634 Corinna Vinschen <vinschen@redhat.com>
10636 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10637 on builtin float types.
10639 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10641 * utils.c: Include <curses.h> before "bfd.h".
10642 * tui/tui-hooks.c: Likewise.
10643 * tui/tui.c: Likewise.
10644 * tui/tuiCommand.c: Likewise.
10645 * tui/tuiData.c: Likewise.
10646 * tui/tuiDataWin.c: Likewise.
10647 * tui/tuiDisassem.c: Likewise.
10648 * tui/tuiGeneralWin.c: Likewise.
10649 * tui/tuiIO.c: Likewise.
10650 * tui/tuiLayout.c: Likewise.
10651 * tui/tuiRegs.c: Likewise.
10652 * tui/tuiSource.c: Likewise.
10653 * tui/tuiSourceWin.c: Likewise.
10654 * tui/tuiStack.c: Likewise.
10655 * tui/tuiWin.c: Likewise.
10657 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10659 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10660 to include space for pseudoregs as well. Update loops accordingly.
10661 (sh_fp_frame_init_saved_regs): Ditto.
10662 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10664 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10666 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10667 Add Richard Earnshaw to Arm maintainers.
10669 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10671 * defs.h (warning_begin): Delete declaration.
10673 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10676 2002-02-07 Michael Snyder <msnyder@redhat.com>
10678 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10679 Logic bug, remove misplaced else.
10681 2002-02-07 Klee Dienes <klee@apple.com>
10683 * fork-inferior.c (fork_inferior): Add '!' to the list of
10684 characters that need to be quoted when building a string for the
10685 shell. Quote '!' specifically with a backslash, since CSH chokes
10686 when trying to evaluate "str!str".
10688 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10690 * rdi-share/host.h: Only provide a typedef for bool if it is not
10693 2002-02-04 Michael Snyder <msnyder@redhat.com>
10695 * breakpoint.h (enum bptype): Add new overlay event bp type.
10696 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10698 * breakpoint.c (create_internal_breakpoint): New function.
10699 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10700 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10701 (create_thread_event_breakpoint): Ditto.
10702 (create_solib_event_breakpoint): Ditto.
10703 (create_overlay_event_breakpoint): New function.
10704 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10705 (update_breakpoints_after_exec): Delete and re-initialize
10706 overlay event breakpoints after an exec. Add FIXME comment
10707 about longjmp breakpoint.
10708 (print_it_typical): Ignore overlay event breakpoints.
10709 (print_one_breakpoint): Ditto.
10711 (bpstat_what): Do not stop for overlay event breakpoints.
10712 (delete_breakpoint): Don't delete overlay event breakpoints.
10713 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10714 (breakpoint_re_set): Re-create overlay event breakpoint.
10716 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10717 (overlay_manual_command): Disable overlay breakpoints.
10718 (overlay_off_command): Disable overlay breakpoints.
10720 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10722 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10723 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10724 to here from config/tm-arm.h.
10725 (coff_sym_is_thumb): Make static.
10726 (arm_elf_make_msymbol_special): New function.
10727 (arm_coff_make_msymbol_special): New function.
10728 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10729 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10730 (coff_sym_is_thumb): Delete declaration.
10731 (arm_elf_make_msymbol_special): Declare.
10732 (arm_coff_make_msymbol_special): Declare.
10733 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10734 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10736 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10738 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10740 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10742 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10743 * gdbarch.c gdbarch.h: Regenerate.
10744 * arch-utils.c (default_print_float_info): New function.
10745 * arch-utils.h (default_print_float_info): Prototype it.
10746 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10747 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10748 (PRINT_FLOAT_INFO): Document it.
10750 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10751 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10752 (PRINT_FLOAT_INFO): Define.
10754 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10756 * win32-nat.c (_initialize_check_for_gdb_ini):
10757 Add typecast to sprintf argument to suppress a warning.
10759 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10761 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10762 to allow easier handling of pass state.
10763 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10764 that gives exception name and address.
10765 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10766 and set last_sig value to ourstatus->value.sig. Some missing
10768 (child_continue): Correctly report continue_status.
10769 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10770 TARGET_SIGNAL_0 (new default value).
10771 (child_resume): consider sig argument passed to decide if
10772 the exception should be passed to debuggee or not.
10774 2002-02-05 Michael Snyder <msnyder@redhat.com>
10776 * regcache.c (fetch_register): Call target_fetch_register
10777 only if we don't call FETCH_PSEUDO_REGISTER.
10778 (store_register): Call target_store_register only if we
10779 don't call STORE_PSEUDO_REGISTER.
10781 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10783 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10784 ELF_MAKE_MSYMBOL_SPECIAL.
10785 * gdbarch.c, gdbarch.h: Regenerate.
10786 * arch-utils.c (default_make_msymbol_special): New function.
10787 * arch-utils.h (default_make_msymbol_special): Export.
10788 * elfread.c (elf_symtab_read): Compile use of
10789 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10791 * coffread.c (coff_symtab_read): Ditto, for
10792 COFF_MAKE_MSYMBOL_SPECIAL.
10794 2002-02-05 Jim Blandy <jimb@redhat.com>
10796 * solib-svr4.c (svr4_truncate_ptr): New function.
10797 (svr4_relocate_section_addresses): Do the address arithmetic with
10798 the appropriate truncation for target addresses, even when
10799 CORE_ADDR is larger than a target address.
10801 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10803 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10806 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10808 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10811 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10813 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10815 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10817 * gdbserver/linux-low.c: Remove unused include files.
10819 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10821 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10822 (read_inferior_memory): Use it.
10823 (write_inferior_memory): Likewise.
10825 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10827 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10828 grubbing through sys_errlist.
10830 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10832 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10834 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10835 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10837 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10839 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10840 (do_sfunc, set_cmd_sfunc): New functions.
10842 * command.h (struct cmd_list_element): Add field func.
10843 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10844 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10845 * cli/cli-decode.h: Ditto.
10847 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10848 (help_all, help_cmd_list): Ditto.
10849 (find_cmd, complete_on_cmdlist): Ditto.
10850 * top.c (execute_command): Ditto.
10852 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10855 * infcmd.c (notice_args_read): Fix function signature.
10857 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10858 * cli/cli-decode.c (add_set_cmd): Ditto.
10859 * utils.c (initialize_utils): Ditto.
10860 * maint.c (_initialize_maint_cmds): Ditto.
10861 * infrun.c (_initialize_infrun): Ditto.
10862 * demangle.c (_initialize_demangler): Ditto.
10863 * remote.c (add_packet_config_cmd): Ditto.
10864 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10865 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10866 * proc-api.c (_initialize_proc_api): Ditto.
10867 * kod.c (_initialize_kod): Ditto.
10868 * valprint.c (_initialize_valprint): Ditto.
10869 * top.c (init_main): Ditto.
10870 * infcmd.c (_initialize_infcmd): Ditto.
10871 * corefile.c (_initialize_core): Ditto.
10872 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10873 * arch-utils.c (initialize_current_architecture): Ditto.
10874 (_initialize_gdbarch_utils): Ditto.
10875 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10877 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10878 * wince.c (_initialize_inftarg): Ditto.
10879 * symfile.c (_initialize_symfile): Ditto.
10880 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10881 * language.c (_initialize_language): Ditto.
10882 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10884 2002-02-04 Michael Snyder <msnyder@redhat.com>
10886 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10888 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10890 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10891 Add rules for building the register data files.
10893 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10895 * regformats/regdat.sh: Add braces to the definition of
10896 expedite_regs_${arch}.
10898 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10900 * regformats/regdef.h (struct reg): Add comment describing the
10901 requirements for offset and size fields.
10903 2002-02-04 Andreas Schwab <schwab@suse.de>
10905 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10906 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10908 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10910 * gdbarch.sh (copyright): Update years in generated header.
10911 (SMASH_TEXT_ADDRESS): Add rule.
10912 * gdbarch.h, gdbarch.c: Re-generate.
10913 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10914 * dbxread.c: Likewise.
10915 * dwarfread.c: Likewise.
10916 * elfread.c: Likewise.
10917 * somread.c: Likewise.
10919 * arm-tdep.c (arm_smash_text_address): New function.
10920 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10922 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10924 Add support for hardware watchpoints on win32 native.
10925 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10926 CONTEXT_DEBUG_REGISTERS.
10927 (dr variable): New variable. Static array containing a local copy
10928 of debug registers.
10929 (debug_registers_changed): New variable. Reflects when debug registers
10930 are changed and need to be written to inferior.
10931 (debug_registers_used): New variable. Reflects when any debug register
10932 was set, used when new threads are created.
10933 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10935 (thread_rec): Set dr array if id is the thread of current_event .
10936 (child_continue, child_resume): Change the debug registers for all
10937 threads if debug_registers_changed.
10938 (child_add_thread): Change the debug registers if debug_registers_used.
10939 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10940 Link nm.h to new nm-cygwin.h file.
10941 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10942 of hardware registers.
10944 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10946 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10947 Restore behavour broken by 2002-01-20 Andrew Cagney
10948 <ac131313@redhat.com> IEEE_FLOAT removal.
10950 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10952 * c-valprint.c (c_val_print): Pass a proper valaddr to
10953 cp_print_class_method.
10954 * valops.c (search_struct_method): If there is only one method
10955 and args is NULL, return that method.
10957 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10959 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10960 accessing tag_name directly.
10962 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10964 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10965 of accessing tag_name directly.
10967 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10970 * gdbtypes.c (replace_type): New function.
10971 * gdbtypes.h (replace_type): Add prototype.
10972 * stabsread.c (read_type): Use replace_type.
10974 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10976 * Makefile.in (memattr.o): Add missing dependencies rule.
10978 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10980 * breakpoint.c (break_at_finish_command): Really export.
10981 (break_at_finish_at_depth_command): Ditto.
10982 (tbreak_at_finish_command): Ditto.
10983 * hppa-tdep.c: Include completer.h.
10984 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10985 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10987 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10989 * utils.c (do_write): New function.
10990 (error_stream): Rewrite combining the code from error_begin and
10992 (verror): Rewrite using error_stream.
10993 (error_begin): Delete function.
10995 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10997 * utils.c (error_begin): Make static.
10998 * defs.h (error_begin): Delete declaration.
11000 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11001 (decode_line_1): Use cplusplus_error instead of error_begin,
11002 cplusplus_hint and return_to_top_level.
11003 * coffread.c (coff_symfile_read): Use error instead of error_begin
11004 and return_to_top_level.
11005 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11007 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11009 * language.h (type_error, range_error): Make string parameter
11011 * language.c (warning_pre_print): Delete extern declaration.
11012 * dwarfread.c (warning_pre_print): Ditto.
11013 * language.c (type_error, range_error): Rewrite to use verror and
11014 vwarning instead of warning_begin.
11016 2002-02-01 Michael Snyder <msnyder@redhat.com>
11018 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11019 (set_ignore_count): Move misplaced comment back where it belongs.
11021 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11023 * command.h (NO_FUNCTION): Delete macro.
11024 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11025 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11026 * tracepoint.c (_initialize_tracepoint): Ditto.
11027 * cli/cli-decode.c (add_set_cmd): Ditto.
11028 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11030 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11032 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11033 Update ``this'' pointer when calling virtual functions.
11035 2002-02-01 Michael Snyder <msnyder@redhat.com>
11037 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11038 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11040 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11042 * regformats/reg-arm.dat: New file.
11043 * regformats/reg-i386.dat: New file.
11044 * regformats/reg-ia64.dat: New file.
11045 * regformats/reg-m68k.dat: New file.
11046 * regformats/reg-mips.dat: New file.
11047 * regformats/reg-ppc.dat: New file.
11048 * regformats/reg-sh.dat: New file.
11049 * regformats/regdef.h: New file.
11050 * regformats/regdat.sh: New file.
11052 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11054 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11055 (arm_frame_args_address, arm_frame_locals_address): New functions.
11056 (arm_frame_num_args): New function.
11057 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11058 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11059 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11061 2002-01-31 Michael Snyder <msnyder@redhat.com>
11063 * breakpoint.c (break_at_finish_command): Export.
11064 (break_at_finish_at_depth_command): Export.
11065 (tbreak_at_finish_command): Export.
11066 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11067 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11068 "txbreak" commands, which are HPPA specific.
11070 * printcmd.c (disassemble_command): Remove an ancient
11071 artifact of an old merge.
11073 * symfile.h (enum overlay_debugging_state):
11074 Define enum constant values for overlay mode.
11075 * symfile.c (overlay_debugging): Use enums instead of literals.
11076 (overlay_is_mapped, overlay_auto_command,
11077 overlay_manual_command): Ditto.
11079 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11080 breakpoint_here_p, breakpoint_inserted_here_p,
11081 breakpoint_thread_match, bpstat_stop_status,
11082 describe_other_breakpoints, check_duplicates, clear_command):
11083 Coding standard fixes.
11085 * target.c (target_xfer_memory): Add spaces, coding standard.
11086 (do_xfer_memory): Add missing line to trust-readonly
11087 code: check bfd SEC_READONLY flag for section.
11089 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11091 * PROBLEMS: Fix typo, 5.1->5.1.1.
11093 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11095 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11096 data symbols, since we search based on textlow and texthigh.
11097 (find_pc_sect_symtab): Likewise.
11099 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11101 * defs.h (vwarning): Declare.
11102 * utils.c (vwarning): New function.
11103 (warning): Call vwarning.
11104 (warning_begin): Delete function.
11106 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11107 the warning message.
11108 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11111 2002-01-30 Michael Snyder <msnyder@redhat.com>
11113 * NEWS: Mention "set trust-readonly-sections" command.
11114 Mention generate-core-file command.
11116 2002-01-15 Michael Snyder <msnyder@redhat.com>
11118 * target.c: New command, "set trust-readonly-sections on".
11119 (do_xfer_memory): Honor the suggestion to trust readonly sections
11120 by reading them from the object file instead of from the target.
11121 (initialize_targets): Register command "set trust-readonly-sections".
11123 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11125 * parse.c (target_map_name_to_register): Simplify, search regs and
11126 pseudo-regs using a single loop.
11128 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11130 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11132 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11134 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11135 * config/i386/i386v42mp.mh: Add i387-nat.o .
11136 * i386v4-nat.c: Include i387-nat.h.
11137 (supply_fpregset): Use i387_supply_fsave.
11138 (fill_fpregset): Use i387_fill_fsave.
11140 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11142 * arm-tdep.c (arm_call_dummy_words): Define.
11143 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11144 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11145 (CALL_DUMMY_WORDS): Define.
11146 (arm_call_dummy_words): Declare.
11147 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11148 (arm_linux_call_dummy_words): Declare.
11150 2002-01-30 Andreas Schwab <schwab@suse.de>
11152 * m68klinux-nat.c: Fix last change to use regcache_collect
11153 instead of referencing registers[] directly.
11155 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11157 * parse.c (target_map_name_to_register): Delete code wrapped in
11158 #ifdef REGISTER_NAME_ALIAS_HOOK.
11160 2002-01-28 Michael Snyder <msnyder@redhat.com>
11162 * regcache.c (legacy_read_register_gen): Need to be able to
11163 read pseudo-register as well as real register.
11164 (legacy_write_register_gen): Ditto.
11166 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11168 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11169 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11170 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11171 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11172 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11173 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11174 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11175 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11176 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11177 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11178 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11179 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11180 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11181 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11182 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11183 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11184 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11185 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11186 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11187 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11189 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11191 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11192 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11193 (initialize_current_architecture): Update target_byte_order using
11194 information from BFD.
11195 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11196 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11198 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11200 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11201 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11203 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11204 #ifdef INVALID_FLOAT.
11205 * infcmd.c (do_registers_info): Ditto.
11206 * values.c (unpack_double): Ditto. Add comment.
11208 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11209 already commented out.
11211 2002-01-26 Andreas Schwab <schwab@suse.de>
11213 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11214 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11215 registers and add support for PTRACE_GETREGS.
11217 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11219 GDB 5.1.1 released from 5.1 branch.
11220 * NEWS: Add 5.1.1 news.
11221 * README: Sync with 5.1 branch.
11223 2002-01-23 Fred Fish <fnf@redhat.com>
11225 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11226 stabstring on initial malloc. Reallocing will copy it for us,
11229 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11231 * Makefile.in (hpread_h): Delete.
11232 (HFILES_NO_SRCDIR): Remove hpread.h.
11233 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11234 (hpread.o): Update dependencies.
11235 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11237 * hp-psymtab-read.c: Remove file.
11238 * hp-symtab-read.c: Remove file.
11239 * hpread.h: Remove file.
11241 * hpread.c: Merge all contents of hp-psymtab-read.c,
11242 hp-symtab-read.c and hpread.h into this file, as it was prior to
11245 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11246 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11247 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11248 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11250 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11252 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11253 fill_gregset): Call gdbarch_tdep() just once, assign result to
11254 variable and use that, instead of calling the function several
11257 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11259 * configure.host: Accept sparcv9 as alias for sparc64.
11260 * configure.tgt: Likewise.
11262 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11264 * solib-aix5.c (build_so_list_from_mapfile)
11265 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11266 arguments is not reversed.
11267 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11268 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11270 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11272 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11273 modified version of obsolete sh_fetch_pseudo_register.
11274 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11275 (sh4_register_read): New function.
11276 (sh_pseudo_register_write): New function. Renamed and modified
11277 version of obsolete sh_store_pseudo_register.
11278 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11279 (sh4_register_write): New function.
11280 (sh_gdbarch_init): Remove setting of gdbarch function
11281 fetch_pseudo_register and store_pseudo_register. Remove setting of
11282 register_convert_to_raw, register_convert_to_virtual,
11283 register_convertible.
11284 (sh_sh4_register_convertible): Delete. No longer needed. All is
11285 taken care by architecture specific functions
11286 register_read/register_write.
11287 (sh_sh4_register_convert_to_virtual): Make static.
11288 (sh_sh4_register_convert_to_raw): Ditto.
11290 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11292 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11293 (floatformat_is_nan, floatformat_mantissa): Ditto.
11295 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11296 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11297 builtin_type_ieee_double_little,
11298 builtin_type_ieee_double_littlebyte_bigword,
11299 builtin_type_m68881_ext, builtin_type_i960_ext,
11300 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11301 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11302 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11303 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11305 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11307 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11308 parameter. Set frameless flag if it exists and depended of
11309 whether the scanned function is frameless or not.
11310 (xstormy16_skip_prologue): If function is frameless, return
11311 result of xstormy16_scan_prologue().
11312 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11315 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11317 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11318 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11319 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11320 sh_sh4_register_byte, sh_sh4_register_raw_size,
11321 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11322 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11323 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11324 sh_store_pseudo_register, sh_do_pseudo_register): Call
11325 gdbarch_tdep() just once, assign result to variable and use that,
11326 instead of calling the function several times.
11328 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11330 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11331 macros instead of LAST_FPU_CTRL_REGNUM.
11332 (store_register): Likewise.
11334 2002-01-21 Jim Blandy <jimb@redhat.com>
11336 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11337 is up-to-date before running the program, not just when a program
11340 2002-01-21 Fred Fish <fnf@redhat.com>
11342 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11343 when we have found all instructions we are looking for.
11345 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11347 * arm-tdep.c (arm_register_name): New function.
11348 (arm_registers_names): Make static.
11349 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11350 (arm_register_name): Declare.
11351 (REGISTER_NAME): Use it.
11353 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11354 Kevin Buettner <kevinb@redhat.com>
11356 Convert arm targets to new FRAME interface.
11357 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11358 (arm_frame_find_save_regs): Delete.
11359 (arm_frame_init_saved_regs): New.
11360 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11361 Allocate extra_info as required. Convert all uses of fsr.regs
11362 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11364 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11365 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11366 (check_prologue_cache, save_prologue_cache): Likewise.
11367 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11368 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11369 (FRAME_FIND_SAVED_REGS): Delete.
11370 (arm_frame_find_saved_regs): Delete prototype.
11371 (arm_frame_init_saved_regs): New prototype.
11372 (FRAME_INIT_SAVED_REGS): Define.
11374 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11376 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11378 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11380 From Jeff Law <law@redhat.com>:
11381 * infttrace.c: Include <sys/pstat.h>.
11382 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11383 exec file if the ttrace equivalent fails.
11385 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11387 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11388 (closeLogFile): Ditto.
11390 2002-01-20 Michael Chastain <mec@shout.net>
11392 * top.c (print_gdb_version): Bump copyright year to 2002.
11394 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11396 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11397 Zannoni and Eli Zaretskii.
11399 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11401 * buildsym.c: Update copyright years.
11402 * c-typeprint.c: Likewise.
11403 * dwarf2read.c: Likewise.
11404 * f-typeprint.c: Likewise.
11405 * gdbtypes.c: Likewise.
11406 * gdbtypes.h: Likewise.
11407 * hp-symtab-read.c: Likewise.
11408 * hpread.c: Likewise.
11409 * mdebugread.c: Likewise.
11410 * p-typeprint.c: Likewise.
11412 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11414 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11415 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11416 byte-order selectable.
11417 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11418 * arch-utils.c: Ditto.
11419 (set_endian): Ditto.
11420 (set_endian_from_file): Ditto.
11421 * gdbserver/low-sim.c (create_inferior): Ditto.
11422 * gdbarch.sh: Ditto.
11423 * gdbarch.h: Re-generate.
11424 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11425 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11426 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11427 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11428 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11429 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11430 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11431 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11433 * config/mips/tm-wince.h: Remove #undef of macro
11434 TARGET_BYTE_ORDER_SELECTABLE.
11435 * config/sh/tm-wince.h: Ditto.
11437 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11439 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11440 member function fields. Add accessor macro
11441 TYPE_FN_FIELD_ARTIFICIAL.
11442 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11443 * c-typeprint.c (c_type_print_base): Skip artificial member
11446 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11448 * f-typeprint.c: Delete unused function f_type_print_args.
11449 * p-typeprint.c: Delete unused function pascal_type_print_args.
11451 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11453 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11454 comment. Add ``artificial'' to ``union field_location''.
11456 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11458 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11459 * mdebugread.c (parse_symbol): Likewise.
11460 * stabsread.c (define_symbol): Likewise.
11461 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11462 initializing TYPE_FIELD_BITPOS to n (obsolete).
11463 (hpread_doc_function_type): Likewise.
11464 * hpread.c (hpread_function_type): Likewise.
11466 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11468 * configure.in (host_makefile_frag): Only require a host makefile
11469 fragment when a native build.
11470 * configure: Re-generate.
11472 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11474 * doublest.h (floatformat_from_type): Declare.
11475 * doublest.c (floatformat_from_type): New function.
11476 (convert_typed_floating): Use.
11478 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11479 call to function floatformat_from_type.
11481 * gdbarch.sh (IEEE_FLOAT): Delete.
11482 * gdbarch.h, gdbarch.c: Re-generate.
11483 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11484 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11485 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11486 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11487 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11488 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11489 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11490 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11491 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11492 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11493 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11494 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11496 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11497 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11498 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11499 * sh-tdep.c (sh_gdbarch_init): Ditto.
11500 * mips-tdep.c (mips_gdbarch_init): Ditto.
11501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11502 * cris-tdep.c (cris_gdbarch_init): Ditto.
11504 2002-01-20 Jiri Smid <smid@suse.cz>
11506 * configure.host, configure.tgt: Support x86-64.
11507 * NEWS: Note new target x86-64.
11509 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11510 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11511 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11512 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11513 x86-64-linux-nat.o): Fix dependencies.
11515 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11517 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11518 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11519 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11520 * config/sparc/xm-sun4os4.h: Delete file.
11521 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11523 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11525 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11526 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11527 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11528 * config/i386/i386lynx.mh (XM_FILE): Delete.
11529 * config/rs6000/xm-rs6000ly.h: Delete file.
11530 * config/sparc/xm-sparclynx.h: Delete file.
11531 * config/m68k/xm-m68klynx.h: Delete file.
11532 * config/i386/xm-i386lynx.h: Delete file.
11533 * config/xm-lynx.h: Delete file.
11534 * config/djgpp/fnchange.lst: Update.
11536 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11538 * alpha-tdep.c (alpha_register_byte): New function.
11539 (alpha_register_raw_size): Ditto.
11540 (alpha_register_virtual_size): Ditto.
11541 (alpha_skip_prologue_internal): Renamed from
11542 alpha_skip_prologue.
11543 (alpha_skip_prologue): New version that calls
11544 alpha_skip_prologue_internal.
11545 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11546 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11547 second argument from alpha_skip_prologue.
11548 (REGISTER_BYTE): Use alpha_register_byte.
11549 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11550 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11551 (FRAMELESS_FUNCTION_INVOCATION): Use
11552 generic_frameless_function_invocation_not.
11553 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11554 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11556 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11558 * config/mips/xm-news-mips.h: Delete file.
11559 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11561 * config/m88k/xm-m88k.h: Delete file.
11562 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11563 * config/m88k/xm-delta88v4.h: Ditto.
11564 * config/m88k/xm-delta88.h: Ditto.
11566 * config/alpha/xm-fbsd.h: Delete file.
11567 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11569 * config/sparc/xm-sparc.h: Delete file.
11570 * Makefile.in (xm-sun4os4.h): Delete dependency.
11571 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11572 * config/sparc/xm-sun4os4.h: Ditto.
11573 * config/sparc/xm-linux.h: Ditto.
11575 * config/i386/xm-windows.h: Delete file.
11577 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11579 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11580 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11582 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11584 * alpha-tdep.c (alpha_call_dummy_words): New.
11585 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11586 (CALL_DUMMY_P): Define.
11587 (CALL_DUMMY_WORDS): Define.
11588 (SIZEOF_CALL_DUMMY_WORDS): Define.
11590 2002-01-19 Per Bothner <per@bothner.com>
11592 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11593 isn't NULL, which can happen with some gcj-3.x-produced code.
11595 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11597 * alpha-tdep.c (alpha_register_virtual_type): New function.
11598 (alpha_init_frame_pc_first): Ditto.
11599 (alpha_fix_call_dummy): Ditto.
11600 (alpha_store_struct_return): Ditto.
11601 (alpha_extract_struct_value_address): Ditto.
11602 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11603 alpha_register_virtual_type.
11604 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11605 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11606 alpha_extract_struct_value_address.
11607 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11608 (INIT_FRAME_PC): Use init_frame_pc_noop.
11609 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11611 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11613 * i386gnu-nat.c: Include "i386-tdep.h".
11614 (fetch_fpregs): Simplify code dealing with uninitialized floating
11615 point states such that it doesn't require FP7_REGNUM.
11617 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11619 * alpha-tdep.c (frame_extra_info): New.
11620 (alpha_find_saved_regs): Make static. Use
11622 (alpha_frame_init_saved_regs): New function.
11623 (alpha_frame_saved_pc): Use frame->extra_info.
11624 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11625 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11626 (init_extra_frame_info): Rename to...
11627 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11628 (alpha_print_extra_frame_info): New function.
11629 (alpha_frame_locals_address): Ditto.
11630 (alpha_frame_args_address): Ditto.
11631 (alpha_pop_frame): Use frame->extra_info.
11632 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11633 alpha_frame_args_address.
11634 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11635 (alpha_find_saved_regs): Remove prototype.
11636 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11637 (EXTRA_FRAME_INFO): Remove.
11638 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11639 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11641 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11643 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11644 (alpha_cannot_fetch_register): Ditto.
11645 (alpha_cannot_store_register): Ditto.
11646 (alpha_register_convertible): Ditto.
11647 (alpha_use_struct_convention): Ditto.
11648 * config/alpha/tm-alpha.h: Update copyright years.
11649 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11650 (INNER_THAN): Use core_addr_lessthan.
11651 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11652 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11653 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11654 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11655 (FRAME_CHAIN): Remove unnecessary cast.
11657 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11659 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11662 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11664 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11665 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11666 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11667 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11668 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11669 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11670 * x86-64-linux-nat.c: Ditto.
11672 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11674 * alpha-tdep.c (alpha_register_name): New function.
11675 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11676 (REGISTER_NAME): Define.
11678 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11680 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11682 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11684 * alpha-tdep.c: Update copyright years.
11685 (alpha_next_pc): New function.
11686 (alpha_software_single_step): Ditto.
11687 * config/alpha/tm-alpha.h: Add prototype for
11688 alpha_software_single_step.
11690 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11692 * alphabsd-nat.c: Update copyright years.
11693 (fill_gregset): Use regcache_collect.
11694 (fill_fpregset): Likewise.
11695 (fetch_inferior_registers): Only fetch integer registers
11696 if requested to do so.
11697 (store_inferior_registers): Only store integer registers
11698 if requested to do so.
11700 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11702 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11703 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11704 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11705 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11706 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11707 * config/arm/linux.mh (XDEPFILES): Delete.
11708 * config/arm/nbsd.mh (XDEPFILES): Delete.
11709 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11710 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11711 * config/i386/i386m3.mh (XDEPFILES): Delete.
11712 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11713 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11714 * config/i386/fbsd.mh (XDEPFILES): Delete.
11715 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11716 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11717 * config/i386/i386v4.mh (XDEPFILES): Delete.
11718 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11719 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11720 * config/i386/i386aix.mh (XDEPFILES): Delete.
11721 * config/i386/go32.mh (XDEPFILES): Delete.
11722 * config/i386/cygwin.mh (XDEPFILES): Delete.
11723 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11724 * config/i386/i386mach.mh (XDEPFILES): Delete.
11725 * config/i386/i386v32.mh (XDEPFILES): Delete.
11726 * config/i386/linux.mh (XDEPFILES): Delete.
11727 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11728 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11729 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11730 * config/i386/i386sco.mh (XDEPFILES): Delete.
11731 * config/i386/i386v.mh (XDEPFILES): Delete.
11732 * config/i386/nbsd.mh (XDEPFILES): Delete.
11733 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11734 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11735 * config/i386/symmetry.mh (XDEPFILES): Delete.
11736 * config/i386/obsd.mh (XDEPFILES): Delete.
11737 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11738 * config/ia64/linux.mh (XDEPFILES): Delete.
11739 * config/ia64/aix.mh (XDEPFILES): Delete.
11740 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11741 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11742 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11743 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11744 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11745 * config/m68k/linux.mh (XDEPFILES): Delete.
11746 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11747 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11748 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11749 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11750 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11751 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11752 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11753 * config/m88k/delta88.mh (XDEPFILES): Delete.
11754 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11755 * config/m88k/m88k.mh (XDEPFILES): Delete.
11756 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11757 * config/mips/linux.mh (XDEPFILES): Delete.
11758 * config/mips/irix6.mh (XDEPFILES): Delete.
11759 * config/mips/irix5.mh (XDEPFILES): Delete.
11760 * config/mips/irix4.mh (XDEPFILES): Delete.
11761 * config/mips/irix3.mh (XDEPFILES): Delete.
11762 * config/mips/decstation.mh (XDEPFILES): Delete.
11763 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11764 (NATDEPFILES): Move core-aout.o to here.
11765 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11766 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11767 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11768 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11769 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11770 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11771 * config/pa/hpux11.mh (XDEPFILES): Delete.
11772 * config/powerpc/aix.mh (XDEPFILES): Delete.
11773 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11774 * config/powerpc/linux.mh (XDEPFILES): Delete.
11775 * config/romp/rtbsd.mh: Rename XDEPFILES.
11776 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11777 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11778 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11779 * config/s390/s390.mh (XDEPFILES): Delete.
11780 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11781 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11782 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11783 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11784 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11785 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11786 * config/sparc/linux.mh (XDEPFILES): Delete.
11787 * config/vax/vaxult.mh (XDEPFILES): Delete.
11788 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11789 * Makefile.in (DEPFILES): Remove XDEPFILES.
11791 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11793 * utils.c (internal_verror): Fix comments, default is yes not no.
11794 Update queries to match. Default to quit and dump core.
11796 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11798 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11800 * defs.h, event-top.c, gdbcmd.h: Ditto.
11801 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11802 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11803 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11804 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11805 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11806 * mi/mi-main.c:Ditto.
11808 * stack.c, symfile.c: Update copyright.
11810 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11812 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11813 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11814 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11815 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11817 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11819 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11820 * gdbserver/low-lynx.c (myattach): Likewise.
11821 * gdbserver/low-nbsd.c (myattach): Likewise.
11822 * gdbserver/low-sim.c (myattach): Likewise.
11823 * gdbserver/low-sparc.c (myattach): Likewise.
11824 * gdbserver/low-sun3.c (myattach): Likewise.
11826 * gdbserver/low-linux.c (myattach): New function.
11828 * gdbserver/server.c (attach_inferior): New function.
11829 (main): Handle "--attach".
11831 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11833 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11836 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11838 * c-typeprint.c (is_type_conversion_operator): Add additional
11839 check for non-conversion operators.
11841 2002-01-15 Michael Snyder <msnyder@redhat.com>
11843 * linux-proc.c: Add "info proc" command, a la procfs.c.
11844 (read_mapping): New function, abstract and re-use code.
11845 (linux_find_memory_regions): Use new func read_mapping.
11846 (linux_info_proc_cmd): New function, implement "info proc".
11847 (_initialize_linux_proc): Add new command "info proc".
11849 2002-01-15 Michael Snyder <msnyder@redhat.com>
11851 * symfile.c (generic_load): Use bfd_map_over_sections method
11852 instead of manipulating bfd structure members directly.
11853 (add_section_size_callback): New function, bfd sections callback
11854 used by generic_load.
11855 (load_sections_callback): New function, bfd sections callback
11856 used by generic_load.
11858 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11860 [Based on work by Jim Blandy]
11861 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11862 (builtin_type_vec128): Export.
11863 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11865 (builtin_type_vec128): New builtin type for 128 bit vector
11867 (build_gdbtypes): Initialize builtin_type_v16qi and
11868 builtin_type_v8hi. Create the vec128 register builtin type
11870 (build_builtin_type_vec128): New function.
11871 (_initialize_gdbtypes): Register builtin_type_v16qi and
11872 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11873 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11874 AltiVec register to new builtin type.
11876 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11878 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11881 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11883 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11884 CLEAN_UP_REGISTER_VALUE.
11885 * regcache.c (supply_register): Update only call.
11887 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11889 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11890 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11891 a29k-*-vxworks* targets as obsolete.
11893 2002-01-14 Michael Snyder <msnyder@redhat.com>
11895 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11896 until we can resolve portability issues.
11897 * gregset.h: Remove references to fpxregs.
11898 * gcore.c (gcore_command): Initialize note_sec to NULL.
11900 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11902 * signals.c (target_signal_to_name): Rewrite. Only use
11903 signals[].name when in bounds and non-NULL.
11905 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11907 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11908 * signals.c (target_signal_to_name): Verify that SIG is within the
11909 bounds of the signals array.
11911 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11913 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11915 2002-01-13 Keith Seitz <keiths@redhat.com>
11917 * stack.c (print_frame_info_base): Print the frame's pc
11918 only if when print_frame_info_listing_hook is not defined.
11920 2002-01-13 Keith Seitz <keiths@redhat.com>
11922 * varobj.c (varobj_set_value): Make sure that there were no
11923 errors evaluating the object before attempting to set its
11925 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11926 so this offset adjustment is no longer necessary.
11927 (create_child): Don't set the error flag if the child is
11928 a CPLUS_FAKE_CHILD.
11929 (value_of_child): If value_fetch_lazy fails, return NULL
11930 so that callers will be notified that an error occurred.
11931 (c_value_of_variable): Delay check of variable's validity
11932 until later. We actually want all structs and unions to have
11934 Do not return "???" for variables which could not be evaluated.
11935 This error condition must be returned to the caller so that it
11936 can get the error condition from gdb.
11937 (cplus_name_of_child): Adjust index for vptr before figuring
11938 out the name of the child.
11939 (cplus_value_of_child): If a child's (real) parent is not valid,
11940 don't even bother trying to give a value for it. Just return
11941 an error. Change all instances in this function.
11942 (cplus_type_of_child): If our parent is one of the "fake"
11943 parents, we need to get at the type of the real parent, and
11944 derive the child's true type using this information.
11946 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11948 From 2002-01-09 John Marshall <johnm@falch.net>:
11949 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11950 sources.redhat.com, and tweak some related URLs which had
11951 suffered from linkrot.
11953 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11956 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11957 structures passed in registers.
11959 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11961 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11962 white space which prevented compilation. Reported by DSK
11963 <dsk@student.unsw.edu.au>.
11965 2002-01-11 Michael Snyder <msnyder@redhat.com>
11967 * symfile.c (build_section_addr_info_from_section_tab):
11968 Use bfd access method instead of manipulating bfd directly.
11969 (syms_from_objfile): Ditto.
11970 (simple_overlay_update_1): Ditto.
11971 (simple_overlay_update): Ditto.
11972 (generic_load): Ditto.
11973 (overlay_unmapped_address): FIXME comment, bfd access methods.
11974 (sections_overlap): FIXME comment, bfd access methods.
11975 (pc_in_mapped_range): FIXME comment, bfd access methods.
11976 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11977 (section_is_mapped): FIXME comment, bfd access methods.
11978 (section_is_overlay): FIXME comment, bfd access methods.
11980 * symfile.c (generic_load): Whitespace and long line cleanups.
11981 Remove duplicate variable, change several local variables to
11982 more appropriate data types.
11983 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11985 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11987 From Peter Schauer:
11988 * language.c (longest_local_hex_string_custom): Use phex_nz to
11989 convert NUM to a hex string.
11991 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11993 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11995 Update Copyright year.
11997 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11999 * language.c (longest_raw_hex_string): Delete unused function.
12001 2002-01-11 Petr Sorfa <petrs@caldera.com>
12003 * MAINTAINERS (write-after-approval): Add myself.
12004 * dwarf2read.c (read_tag_string_type): Handling of
12006 (read_tag_string_type): FORTRAN fix to prevent propagation of
12008 (set_cu_language): Handling of DW_LANG_Fortran95
12010 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12012 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12013 GETPID(inferior_ptid).
12014 (store_inferior_registers): Likewise.
12016 2002-01-10 Jason Merrill <jason@redhat.com>
12018 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12021 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12023 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12024 and bfd/elf32-sh-nbsd.c.
12026 2002-01-10 Michael Snyder <msnyder@redhat.com>
12028 * NEWS: Mention --pid and corefile/proc-id behavior change.
12030 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12031 * gcore.c: Include cli/cli-decode.h instead of command.h.
12033 * main.c (captured_main): Add new command line option "--pid".
12034 If the second command line argument (following the symbol-file)
12035 begins with a digit, try to attach to it before trying to open
12037 (print_gdb_help): Document the "--pid" argument.
12039 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12041 * completer.c (command_completer): New function.
12043 * completer.h <command_completer>: Add prototype.
12045 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12046 completer for the "help" command.
12048 2002-01-09 Jason Merrill <jason@redhat.com>
12050 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12052 2002-01-09 Michael Snyder <msnyder@redhat.com>
12054 * i386-linux-nat.c (fill_fpxregset): Make global.
12055 (store_fpxregset): Ditto.
12057 * gregset.h (gdb_fpxregset_t): Define.
12058 (supply_fpxregset): Prototype.
12059 (fill_fpxregset): Prototype.
12061 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12063 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12065 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12066 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12067 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12069 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12071 * MAINTAINERS: Update target maintainer rules so that any
12072 Maintainer can approve a tested patch for a maintenance-only
12075 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12077 * MAINTAINERS (write-after-approval): Add myself.
12079 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12082 2002-01-08 Michael Snyder <msnyder@redhat.com>
12084 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12085 real name of the executable, rather than the /proc name.
12087 2002-01-03 Michael Snyder <msnyder@redhat.com>
12089 Implement a "generate-core-file" command in gdb, save target state.
12090 * gcore.c: New file. Implement new command 'generate-core-file'.
12091 Save a corefile image of the current state of the inferior.
12092 * linux-proc.c: Add linux-specific code for saving corefiles.
12093 * target.h (struct target_ops): Add new target vectors for saving
12094 corefiles; to_find_memory_regions and to_make_corefile_notes.
12095 (target_find_memory_regions): New macro.
12096 (target_make_corefile_notes): New macro.
12097 * target.c (update_current_target): Inherit new target methods.
12098 (dummy_find_memory_regions): New place-holder method.
12099 (dummy_make_corefile_notes): New place-holder method.
12100 (init_dummy_target): Initialize new dummy target vectors.
12101 * exec.c (exec_set_find_memory_regions): New function.
12102 Allow the exec_ops vector for memory regions to be taken over.
12103 (exec_make_note_section): New function, target vector method.
12104 * defs.h (exec_set_find_memory_regions): Export prototype.
12105 * procfs.c (proc_find_memory_regions): New function, corefile method.
12106 (procfs_make_note_section): New function, corefile method.
12107 (init_procfs_ops): Set new target vector pointers.
12108 (find_memory_regions_callback): New function.
12109 (procfs_do_thread_registers): New function.
12110 (procfs_corefile_thread_callback): New function.
12111 * sol-thread.c (sol_find_memory_regions): New function.
12112 (sol_make_note_section): New function.
12113 (init_sol_thread_ops): Initialize new target vectors.
12114 * inftarg.c (inftarg_set_find_memory_regions): New function.
12115 Allow to_find_memory_regions vector to be taken over.
12116 (inftarg_set_make_corefile_notes): New function.
12117 Allow to_make_corefile_notes vector to be taken over.
12118 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12119 interface layer if not target_has_execution (may be a corefile).
12120 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12121 * config/sparc/sun4sol2.mh: Ditto.
12122 * config/alpha/alpha-linux.mh: Ditto.
12123 * config/arm/linux.mh: Ditto.
12124 * config/i386/x86-64linux.mh: Ditto.
12125 * config/ia64/linux.mh: Ditto.
12126 * config/m68k/linux.mh: Ditto.
12127 * config/mips/linux.mh: Ditto.
12128 * config/powerpc/linux.mh: Ditto.
12129 * config/sparc/linux.mh: Ditto.
12131 2002-01-07 Michael Snyder <msnyder@redhat.com>
12133 * arm-linux-nat.c: Remove references to regcache.c internal data
12134 (registers[] and register_valid[]).
12136 2002-01-07 Michael Snyder <msnyder@redhat.com>
12138 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12139 so that attaching to a pid will automatically read the process's
12140 symbol file and shlibs.
12141 * Makefile.in: Add rule for linux-proc.o.
12142 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12143 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12144 * config/arm/linux.mh: Ditto.
12145 * config/i386/linux.mh: Ditto.
12146 * config/i386/x86-64linux.mh: Ditto.
12147 * config/ia64/linux.mh: Ditto.
12148 * config/m68k/linux.mh: Ditto.
12149 * config/mips/linux.mh: Ditto.
12150 * config/powerpc/linux.mh: Ditto.
12151 * config/sparc/linux.mh: Ditto.
12153 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12155 * win32-nat.c: Add i386-tdep.h dependency.
12157 2002-01-07 Michael Snyder <msnyder@redhat.com>
12159 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12160 instead of bfd_get_arch_size. Don't bail out just because
12161 there's no exec_bfd.
12163 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12164 * p-valprint.c (pascal_object_print_value): Ditto.
12165 * somread.c (som_symtab_read): Ditto.
12166 * symfile.c (simple_free_overlay_region_table): Ditto.
12167 * valops.c (value_assign): Ditto.
12169 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12170 use tilde_expand and strerror for opening save-tracepoints file.
12172 * thread-db.c (thread_db_new_objfile): Indendation fix.
12174 * infptrace.c (GDB_MAX_ALLOCA): New define.
12175 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12176 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12177 can be overridden with whatever value is appropriate to the host).
12178 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12179 alloca to allocate potentially large buffer.
12180 * rs6000-nat.c (child_xfer_memory): Ditto.
12181 * symm-nat.c (child_xfer_memory): Ditto.
12182 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12184 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12186 From Nick Clifton <nickc@redhat.com>
12187 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12189 2002-01-07 Michael Snyder <msnyder@redhat.com>
12191 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12192 Don't use exec_bfd if it's NULL.
12194 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12196 * valops.c (value_arg_coerce): Fix formatting.
12198 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12200 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12201 * gnu-nat.c: Ditto.
12203 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12205 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12206 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12207 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12208 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12209 z8k-coff have not been multi-arched. Update z8k-coff build
12212 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12214 * MAINTAINERS: Mark a29k target as obsolete.
12215 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12216 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12218 * NEWS: Note that a29k targets are obsolete.
12219 * a29k-tdep.c: Mark as obsolete.
12220 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12221 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12222 a29k-*-vxworks* targets as obsolete.
12223 * remote-adapt.c: Obsolete.
12224 * remote-eb.c: Obsolete.
12225 * remote-mm.c: Obsolete.
12226 * remote-udi.c: Obsolete.
12227 * config/a29k/a29k-udi.mt: Obsolete.
12228 * config/a29k/a29k.mt: Obsolete.
12229 * config/a29k/tm-a29k.h: Obsolete.
12230 * config/a29k/tm-vx29k.h: Obsolete.
12231 * config/a29k/vx29k.mt: Obsolete.
12233 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12235 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12236 with BFD_ENDIAN_BIG.
12238 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12240 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12241 * configure, config.in: Re-generate.
12242 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12243 * defs.h: Do not include <endian.h>.
12245 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12247 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12248 * config.in: Regenerate.
12249 * configure.in: Update copyright years.
12250 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12251 * configure: Regenerate.
12252 * i386bsd-nat.c: Update copyright years.
12253 (fill_gregset): Use regcache_collect.
12254 (fetch_inferior_registers): Only fetch integer registers
12255 if requested to do so. Add support for XMM registers
12256 using PT_GETXMMREGS.
12257 (store_inferior_registers): Only store integer registers
12258 if requested to do so. Add support for XMM registers
12259 using PT_SETXMMREGS.
12260 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12261 (store_inferior_registers): Remove.
12262 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12263 (fetch_elfcore_registers): New function.
12264 (i386nbsd_elfcore_fns): New.
12265 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12266 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12268 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12269 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12270 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12271 * config/i386/tm-nbsd.h: Update copyright years.
12272 (HAVE_SSE_REGS): Define.
12273 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12274 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12275 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12276 (SIGCONTEXT_PC_OFFSET): Remove.
12277 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12279 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12281 * configure.tgt: Remove powerpc-*-macos* target.
12282 * config/m68k/xm-mpw.h: Delete file.
12283 * config/xm-mpw.h: Delete file.
12284 * ser-mac.c: Delete file.
12285 * mpw-make.sed: Delete file.
12286 * mpw-config.in: Delete file.
12287 * mac-xdep.c: Delete file.
12288 * mac-gdb.r: Delete file.
12289 * mac-defs.h: Delete file.
12290 * mac-nat.c: Delete file.
12291 * config/powerpc/macos.mh: Delete file.
12292 * config/powerpc/macos.mt: Delete file.
12293 * config/powerpc/nm-macos.h: Delete file.
12294 * config/powerpc/tm-macos.h: Delete file.
12295 * source.c (openp, open_source_file): Remove obsolete code.
12296 * top.c (gdb_readline): Ditto.
12297 * utils.c (query): Ditto.
12298 * event-top.c (display_gdb_prompt): Ditto.
12299 * Makefile.in (ser-mac.o): Delete obsolete target.
12302 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12304 * defs.h (BIG_ENDIAN): Delete macro definition.
12305 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12306 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12307 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12308 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12309 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12310 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12311 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12312 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12313 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12314 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12315 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12316 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12317 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12318 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12319 * gdbarch.c: Re-generate.
12321 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12323 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12326 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12328 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12330 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12332 * value.h (value_ptr): Delete typedef.
12334 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12336 * i386nbsd-nat.c: Update copyright years.
12337 Include i386-tdep.h.
12339 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12341 * stabsread.c: Update copyright years.
12343 From Debashis Mahata <debashis.mahata@wipro.com>:
12344 (read_struct_fields): Deal with Sun C compiler erroneous stab
12345 output for structs and unions.
12348 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12350 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12353 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12355 * cp-abi.c: Fix whitespace.
12356 (baseclass_offset): New wrapper function.
12357 * cp-abi.h (baseclass_offset): Add prototype.
12358 (struct cp_abi_ops): Add baseclass_offset pointer.
12360 * valops.c (vb_match): Move to...
12361 * gnu-v2-abi.c (vb_match): here.
12362 * valops.c (baseclass_offset): Move to...
12363 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12365 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12367 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12368 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12369 * hpacc-abi.c (init_hpacc_ops): Likewise.
12371 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12373 * valops.c (find_overload_match): Accept obj as a
12374 reference parameter. Update it before returning.
12375 * value.h (find_overload_match): Update prototype.
12376 * eval.c (evaluate_subexp_standard): Pass object to
12377 find_overload_match by reference.
12379 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12381 * valarith.c: Replace value_ptr with struct value pointer. Remove
12382 register attribute from value declarations.
12385 * scm-lang.c (scm_lookup_name): Ditto.
12387 2002-01-03 Michael Snyder <msnyder@redhat.com>
12389 Abstract the functionality of iterating over mapped memory
12390 regions into a general purpose iterator function.
12391 * procfs.c (iterate_over_mappings): New function, general purpose
12392 iterator for memory sections.
12393 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12394 (solib_mappings_callback): New function, callback for above.
12395 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12396 (info_mappings_callback): New function, callback for above.
12398 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12400 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12402 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12403 * i386-tdep.c: Include "elf-bfd.h".
12404 (process_note_abi_tag_sections): New function.
12405 (i386_gdbarch_init): Add code to recognize various OS/ABI
12408 * maint.c (_initialize_maint_cmds): Add missing \ in
12411 For older changes see ChangeLog-2001
12417 version-control: never