1 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
5 2002-09-18 Andrew Cagney <ac131313@redhat.com>
7 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
8 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
9 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
10 valops.c, value.h: Revert previous change.
12 2002-09-18 Michael Snyder <msnyder@redhat.com>
14 Preliminary support for Objective-C:
15 * defs.h (language_objc): New enum value.
16 (puts_filtered_tabular): Declaration only, exported from utils.c.
17 (skip_quoted): Delete, declared in completer.h.
18 * c-exp.y: Include completer.h.
21 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
22 New operator enum values.
23 * language.h (CAST_IS_CONVERSION): Test for language_objc.
24 * language.c (binop_result_type): Handle language_objc case.
25 (integral_type, character_type, string_type, boolean_type,
26 structured_type, binop_type_check): Ditto.
27 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
28 (struct objc_specific): Add to general_symbol_info.
29 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
30 (SYMBOL_DEMANGLED_NAME): Handle objc case.
31 * parser-defs.h (struct objc_class_str): New struct type.
32 (start_msglist, end_msglist, add_msglist): Declaration only,
33 exported from objc-lang.c.
34 * value.h (value_of_local, value_nsstring,
35 call_function_by_hand_expecting_type): Exported from valops.c.
36 * valops.c (find_function_addr): Export.
37 (call_function_by_hand_expecting_type): New function.
38 (value_of_local): New function.
39 * symfile.c (init_filename_language_table): Add ".m" extension
41 * utils.c (puts_filtered_tabular): New function.
42 (fprintf_symbol_filtered): Add objc demangling support (disabled).
43 (set/show demangle): Extend help-string to refer to ObjC.
44 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
45 * stabsread.c (symbol_reference_defined): Objective-C symbols
46 may contain colons: make allowances when scanning stabs strings
48 (objc_find_colon): New function.
49 * printcmd.c (address_info): If language == objc then print
50 "self" instead of "this".
51 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
52 OP_NSSTRING, and OP_SELF.
53 (prefixify_subexp): Ditto.
54 * source.c (print_source_lines): Mention objc in comment.
55 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
58 2002-09-18 Andrew Cagney <ac131313@redhat.com>
60 * complaints.h: Update copyright.
61 (struct complaints): Declare.
62 (struct complaint): Make `message' constant.
63 (internal_complaint): Declare.
65 (complaint_root): Delete declaration.
66 (symfile_complaints): Delete declaration.
67 (struct complaints): Add opaque declaration.
68 (clear_complaints): Add a complaints parameter.
69 * complaints.c: Update copyright.
70 (enum complaint_series): Define.
71 (complaint_root): Delete.
72 (struct complaints): Define.
73 (complaint_sentinel, symfile_complaint_book): New variables.
74 (symfile_explanations, symfile_complaints): New variables.
76 (get_complaints): New function.
77 (vcomplaint): New function.
78 (complaint): New function.
79 (internal_complaint): New function.
80 (complain): Call vcomplain with symfile_complaint.
81 (clear_complaints): Rewrite.
82 (_initialize_complaints): Use add_setshow_command.
83 * Makefile.in (complaints.o): Update dependencies.
84 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
85 to call to clear_complaints.
86 (new_symfile_objfile, reread_symbols): Ditto.
87 (oldsyms_complaint): Delete.
88 (empty_symtab_complaint, unknown_option_complaint): Delete.
89 (free_named_symtabs): Use complaint instead of complain.
91 2002-09-18 Michael Snyder <msnyder@redhat.com>
93 * objc-lang.c: First clean-up round: comments, indentation.
97 2002-09-18 Andrew Cagney <ac131313@redhat.com>
99 * maint.c (maintenance_internal_error): Print the parameter as the
101 (maintenance_internal_warning): New function.
102 (_initialize_maint_cmds): Add command `maint internal-warning'.
104 * defs.h (internal_warning, internal_vwarning): Declare.
105 * utils.c (struct internal_problem): Define.
106 (internal_vproblem): New function.
107 (internal_warning): New function.
108 (internal_vwarning): New function.
109 (internal_warning_problem, internal_error_problem): New variables.
110 (internal_verror): Just call internal_vproblem.
112 2002-09-18 Michael Snyder <msnyder@redhat.com>
114 * objc-lang.c: New file, support for Objective-C.
115 Preliminary check-in, not yet integrated into gdb.
116 * objc-lang.h: New file.
117 * objc-exp.y: New file.
119 2002-09-18 Andrew Cagney <ac131313@redhat.com>
121 * infrun.c (signal_stop_update): Convert definition to ISO C.
122 (signal_print_update): Ditto.
123 (signal_pass_update): Ditto.
124 * inflow.c (terminal_save_ours): Ditto.
126 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
129 * config/djgpp/fnchange.lst: Handle name clashes between
130 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
133 * i386-linux-tdep.h: Fix tipo.
135 2002-09-18 Adam Fedor <fedor@gnu.org>
137 * MAINTAINERS: Add myself to the Write After Approval list.
139 2002-09-18 Jim Blandy <jimb@redhat.com>
141 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
142 texthigh and textlow to reader-specific structs caused
143 objfile_relocate to miss them. This is fixable, but the work that
144 the change was supposed to prepare GDB for never got done anyway.
146 2002-09-18 David Carlton <carlton@math.stanford.edu>
148 * MAINTAINERS: Alphabetize Write After Approval list.
150 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
153 * values.c (value_static_field): Call read_var_value.
155 2002-09-18 Andrew Cagney <ac131313@redhat.com>
157 * valops.c (hand_function_call): Align the initial stack pointer
158 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
159 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
161 * mips-tdep.c (mips_frame_align): New function.
162 (mips_gdbarch_init): Set frame_align.
163 * gdbarch.sh (FRAME_ALIGN): New method.
164 * gdbarch.h, gdbarch.c: Re-generate.
166 2002-09-18 Michal Ludvig <mludvig@suse.cz>
168 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
171 2002-09-17 Andrew Cagney <ac131313@redhat.com>
173 * NEWS: Mention that MIPS $fp behavior changed.
174 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
175 reference to FP_REGNUM.
176 (mipsnbsd_cannot_store_register): Ditto.
177 * mips-linux-nat.c: Update copyright.
178 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
179 (mips_linux_cannot_store_register): Ditto.
180 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
181 * config/mips/tm-mips.h: Update copyright.
182 (FP_REGNUM): Delete macro.
183 (MIPS_REGISTER_NAMES): Replace "fp" with "".
184 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
185 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
186 (mips_r3041_reg_names, mips_r3051_reg_names)
187 (mips_r3081_reg_names): Replace "fp" with "".
190 2002-09-17 Theodore A. Roth <troth@verinet.com>
192 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
193 generic_read_register_dummy() (PR gdb/703).
194 (avr_push_return_address): #if 0 out unused vars.
195 (avr_gdbarch_init): Enable use of avr_push_return_address().
197 2002-09-17 Michael Snyder <msnyder@redhat.com>
199 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
200 RTE will take care of it.
202 2002-09-17 Andrew Cagney <ac131313@redhat.com>
204 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
205 invalid, return SP_REGNUM.
207 2002-09-17 Michael Snyder <msnyder@redhat.com>
209 * mips-tdep.c (mips_pop_frame): Read saved values of floating
210 point registers without sign extension.
212 2002-09-17 Andrew Cagney <cagney@redhat.com>
214 * blockframe.c (deprecated_read_register_dummy): Rename
215 generic_read_register_dummy.
216 * frame.c (frame_unwind_signed_register): New function.
217 (frame_unwind_unsigned_register): New function.
218 * frame.h (frame_unwind_signed_register): Declare.
219 (frame_unwind_unsigned_register): Declare.
220 (deprecated_read_register_dummy): Rename
221 generic_read_register_dummy.
223 * h8300-tdep.c (h8300_frame_chain): Update.
224 (h8300_frame_saved_pc): Update.
225 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
226 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
227 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
228 (s390_frame_chain): Update.
229 * v850-tdep.c (v850_find_callers_reg): Update.
230 (v850_frame_saved_pc): Update.
231 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
232 (m32r_find_callers_reg): Update.
233 (m32r_frame_saved_pc): Update.
234 * sh-tdep.c (sh_find_callers_reg): Update.
235 (sh64_get_saved_pr): Update.
236 (sh_init_extra_frame_info): Update.
237 (sh_init_extra_frame_info): Update.
238 (sh64_init_extra_frame_info): Update.
239 (sh64_init_extra_frame_info): Update.
240 * mcore-tdep.c (mcore_find_callers_reg): Update.
241 (mcore_frame_saved_pc): Update.
242 (mcore_init_extra_frame_info): Update.
243 * i386-tdep.c (i386_frame_saved_pc): Update.
244 * ia64-tdep.c (ia64_frame_saved_pc): Update.
245 (ia64_init_extra_frame_info): Update.
246 (ia64_init_extra_frame_info): Update.
247 * d10v-tdep.c (d10v_frame_saved_pc): Update.
248 * cris-tdep.c (cris_init_extra_frame_info): Update.
249 * avr-tdep.c (avr_frame_chain): Update.
250 (avr_init_extra_frame_info): Update.
251 (avr_frame_saved_pc): Update.
252 * arm-tdep.c (arm_find_callers_reg): Update.
253 (arm_init_extra_frame_info): Update.
254 (arm_frame_saved_pc): Update.
256 2002-09-17 Tom Tromey <tromey@redhat.com>
258 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
261 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
263 * MAINTAINERS: Remove "non multi-arched" text from h8300.
264 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
266 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
269 2002-09-16 Joel Brobecker <brobecker@gnat.com>
271 * osfsolib.c: Remove file, replaced by solib-osf.c.
272 * Makefile.in: Remove compilation rules for osfsolib.c.
274 2002-09-16 David Carlton <carlton@math.stanford.edu>
276 * cp-valprint.c (cp_print_class_method): Correct args to
277 check_stub_method_group.
279 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
281 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
282 `set architecture'. Unify naming convention of functions.
283 (h8300_skip_prologue): Improve prologue analysis.
284 (h8300_push_arguments): Rewritten to more closely match GCC's
285 bizarre argument-passing behavior, along with the comment describing
287 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
288 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
289 sim, remote-e7000.c, remote-hms.c and remote.c
291 2002-09-15 Mark Kettenis <kettenis@gnu.org>
293 * i386-tdep.c (gdb_print_insn_i386): Removed.
294 (i386_print_insn): New function.
295 (i386_gdbarch_init): Set print_insn to i386_print_insns.
296 (_initialize_i386_tdep): Don't initialize tm_print_insn and
299 2002-09-14 Mark Kettenis <kettenis@gnu.org>
301 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
304 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
306 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
307 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
308 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
310 2002-09-13 Christopher Faylor <cgf@redhat.com>
312 * win32-nat.c (child_create_inferior): Honor 'tty' command.
314 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
316 * gdbtypes.c (check_stub_method): Make static.
317 (check_stub_method_group): New function.
318 * gdbtypes.h: Update prototypes.
319 * cp-support.c: New file.
320 * cp-support.h: New file.
322 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
323 (update_method_name_from_physname): New function.
324 (read_member_functions): Correct method names for operators
325 and v3 constructors/destructors. Separate v2 constructors and
327 * Makefile.in (stabsread.o): Update dependencies.
328 (SFILES): Add cp-support.c.
329 (COMMON_OBS): Add cp-support.o.
330 (cp_support_h, cp-support.o): Add.
332 * cp-valprint.c (cp_print_class_method): Call
333 check_stub_method_group instead of check_stub_method. Remove
335 * p-valprint.c (pascal_object_print_class_method): Likewise.
336 * valops.c (search_struct_method): Likewise.
337 (find_method_list, value_struct_elt_for_reference): Likewise.
339 2002-09-13 Andrew Cagney <cagney@redhat.com>
341 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
342 * gdbarch.h, gdbarch.c: Regenerate.
344 2002-09-13 Andrew Cagney <ac131313@redhat.com>
346 * frame.c (find_saved_register): Delete function.
347 * frame.h (find_saved_register): Delete declaration.
350 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
352 * mips-tdep.c (read_next_frame_reg): Re-hack using
353 frame_register_unwind.
355 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
357 * mips-tdep.c (mips_get_saved_register): Re-hack using
358 frame_register_unwind.
360 2002-09-12 Joel Brobecker <brobecker@gnat.com>
362 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
363 vector. Will be useful for Interix.
364 * gdbarch.h, gdbarch.c: Regenerate.
366 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
367 name of the malloc function by NAME_OF_MALLOC.
369 2002-09-12 Joel Brobecker <brobecker@gnat.com>
371 * value.h (find_function_in_inferior): Add const keyword to
372 one of the parameters. Allows us to invoke this function with
374 * valops.c (find_function_in_inferior): Likewise.
376 2002-09-12 Joel Brobecker <brobecker@gnat.com>
378 * exec.c (xfer_memory): Fix compilation warning with old versions
380 * tracepoint.c (trace_find_tracepoint_command): Likewise.
382 2002-09-12 David Carlton <carlton@math.stanford.edu>
384 * symtab.h: Run through gdb_indent.h.
385 Add 2002 to Copyright year list.
387 2002-09-12 Alan Modra <amodra@bigpond.net.au>
389 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
391 * MAINTAINERS: Add myself to write after approval list.
393 2002-09-11 J. Brobecker <brobecker@gnat.com>
395 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
397 2002-09-11 J. Brobecker <brobecker@gnat.com>
399 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
402 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
404 * procfs.c (do_detach): Clear current signal, not just fault.
405 Corrects problem with breakpoint trap signal leaking to detached
408 2002-09-10 Michael Snyder <msnyder@redhat.com>
410 * buildsym.c (finish_block): Protect against null pointer.
412 2002-09-10 Andrew Cagney <cagney@redhat.com>
414 * infcmd.c (default_print_registers_info): Send all output to
415 ``file'' instead of ``gdb_stdout''.
417 2002-09-10 Michael Snyder <msnyder@redhat.com>
419 * mips-tdep.c (mips_extract_struct_value_address): Make val a
420 LONGEST, and use signed register read (addresses are sign-
423 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
425 * event-loop.c (gdb_do_one_event): Make public.
426 * event-loop.h (gdb_do_one_event): Declare.
428 2002-09-10 Jeff Law <law@redhat.com>
430 * infttrace.c (child_resume): Simplify and rework to avoid
433 2002-09-09 Fred Fish <fnf@intrinsity.com>
435 * printcmd.c (print_scalar_formatted): "len" is the number of
436 target bytes, NOT the number of target bits.
438 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
440 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
441 * top.c (init_main): Set rl_terminal_name.
443 2002-09-08 Aidan Skinner <aidan@velvet.net>
445 * ada-lang.c (ada_array_bound, ada_type_match,
446 _initialize_ada_language): Fix K&R definitions.
447 * ada-tasks.c (get_current_task): Fix K&R definitions.
448 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
450 2002-09-07 Christopher Faylor <cgf@redhat.com>
452 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
455 2002-09-06 Mark Kettenis <kettenis@gnu.org>
457 * i386-tdep.c (i386_register_virtual_type,
458 i386_register_convertible, i386_register_convert_to_virtual,
459 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
460 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
461 (i386_gdbarch_init): Fix comment. Add comments on calls that set
462 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
463 Don't set push_arguments twice.
465 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
466 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
467 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
468 sigtramp_end to NULL.
469 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
471 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
473 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
476 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
477 * gdbarch.h, gdbarch.c: Re-generate.
478 * blockframe.c (find_pc_sect_partial_function): Convert to use
479 SIGTRAMP_START_P predicate.
481 2002-09-05 Michael Snyder <msnyder@redhat.com>
483 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
484 generic_dummy_frame method and old method. Also distinguish
485 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
486 (arm_extract_return_value): Use new regcache method.
488 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
489 adjustment that doesn't conform to the ABI.
490 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
491 saved regcache, not from current regcache.
493 2002-09-05 Andrew Cagney <ac131313@redhat.com>
495 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
498 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
500 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
501 if arm_apcs_32 is false.
503 2002-09-04 Andrew Cagney <ac131313@redhat.com>
505 GDB 5.3 branch created.
507 2002-09-03 Theodore A. Roth <troth@verinet.com>
509 * gdb/avr-tdep.c (avr_gdbarch_init): Use
510 generic_unwind_get_saved_register.
512 2002-09-03 David Carlton <carlton@math.stanford.edu>
514 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
515 argument (PR gdb/653). Update call to smash_to_method_type.
516 (read_structure_scope): Update call to dwarf2_add_member_fn.
518 2002-09-03 Michal Ludvig <mludvig@suse.cz>
520 * x86-64-linux-tdep.c: Include gdb_string.h
521 * x86-64-linux-nat.c: Ditto.
523 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
525 * ada-exp.y (yyname, yyrule): Remap global variables that appear
526 when YYDEBUG is set to 1.
529 * jv-exp.y: Likewise.
530 * m2-exp.y: Likewise.
533 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
535 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
537 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
538 solib_svr4_fetch_link_map_offsets to
539 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
540 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
541 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
542 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
543 solib-svr4.o, and solib-legacy.o.
544 * config/i386/tm-nbsd.h: Include solib.h.
546 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
548 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
549 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
550 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
551 comment noting that this needs its own target configuration.
552 * config/i386/nbsd.mt: New file.
553 * config/i386/nbsdaout.mt: Remove.
554 * config/i386/nbsdelf.mt: Ditto.
555 * config/i386/tm-nbsdaout.h: Ditto.
557 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
559 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
560 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
561 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
563 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
564 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
565 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
567 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
569 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
570 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
571 * i386-tdep.h (i386bsd_init_abi): New prototype.
572 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
573 function declaration.
574 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
575 for NetBSD-a.out or NetBSD-ELF.
576 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
577 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
578 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
579 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
581 (i386nbsd_pc_in_sigtramp): New function.
582 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
583 i386nbsd_pc_in_sigtramp.
584 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
585 and i386nbsdelf_init_abi OS ABI handlers.
586 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
587 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
589 2002-09-02 Mark Kettenis <kettenis@gnu.org>
591 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
592 registers if the target really has them.
594 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
596 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
599 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
601 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
603 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
604 (alphanbsd_skip_sigtramp_frame): New functions.
605 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
606 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
607 to alphanbsd_sigcontext_addr.
609 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
611 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
613 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
614 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
616 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
617 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
618 * nbsd-tdep.c: Include gdb_string.h.
619 (nbsd_pc_in_sigtramp): New function.
620 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
621 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
622 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
623 ppcnbsd_pc_in_sigtramp.
624 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
625 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
626 shnbsd_pc_in_sigtramp.
627 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
628 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
629 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
631 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
633 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
635 (insert_breakpoints): set val field of watchpoints if NULL.
638 2002-08-29 Jim Blandy <jimb@redhat.com>
640 * symtab.c (lookup_symbol_aux): In the cases where we find a
641 minimal symbol of an appropriate name and use its address to
642 select a symtab to read and search, use `name' (as passed to us)
643 as the demangled name when searching the symtab's global and
644 static blocks, not the minsym's name.
646 2002-08-29 Keith Seitz <keiths@redhat.com>
648 * stack.c (print_frame_info_base): Always set current_source_symtab
649 and current_source_line.
651 2002-08-29 Donn Terry <donnte@microsoft.com>
653 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
655 2002-08-28 Keith Seitz <keiths@redhat.com>
657 * stack.c (select_frame): Add FIXME concerning selected-frame
659 (select_frame_command): Send selected-frame-level-changed
660 event notification, but only if the level actually changed.
661 (up_silently_base): Add selected-frame-level-changed event
663 (down_silently_base): Likewise.
665 2002-08-28 Andrew Cagney <ac131313@redhat.com>
667 * Makefile.in: Update dependencies for all gdb/*.c files.
669 2002-08-27 Tom Tromey <tromey@redhat.com>
671 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
672 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
674 * i387-tdep.c: Include gdb_string.h.
676 * i386-linux-nat.c: Likewise.
677 * lin-lwp.c: Likewise.
678 * ax-gdb.c: Likewise.
679 * signals/signals.c: Likewise.
680 * jv-valprint.c: Likewise.
681 * p-lang.c: Likewise.
682 * c-valprint.c: Likewise.
683 * cp-abi.c: Likewise.
685 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
687 * cli/cli-script.h (copy_command_lines): Export.
688 * breakpoint.c: Include cli/cli-script.h.
689 * Makefile.in (breakpoint.o): Update dependencies.
691 2002-08-26 Michael Snyder <msnyder@redhat.com>
693 * breakpoint.c (insert_breakpoints): Protect all references
694 to 'process_warning'. Shorten long lines.
696 2002-08-26 Joel Brobecker <brobecker@gnat.com>
698 * cli/cli-script.c (copy_command_lines): New function.
699 * defs.h (copy_command_lines): Export.
700 * testsuite/gdb.base/commands.exp: New tests for commands
701 attached to a temporary breakpoint, and for commands that
702 delete the breakpoint they are attached to.
704 2002-08-26 Michael Snyder <msnyder@redhat.com>
706 * breakpoint.c (bpstat_stop_status): Instead of copying the
707 pointer to the breakpoint commands struct, make a new copy
708 of the struct and point to that.
709 (bpstat_clear): Free the commands struct.
710 (bpstat_clear_actions): Free the commands struct.
711 (bpstat_do_actions): Free the command actions. Also execute
712 the local cleanups, instead of deleting them.
713 (delete_breakpoint): Leave the commands field of the bpstat
714 chain alone -- it will be freed later.
716 2002-08-26 Kevin Buettner <kevinb@redhat.com>
718 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
719 deleted in 2002-08-20 commit. This function is still used by
722 2002-08-26 Keith Seitz <keiths@redhat.com>
724 * gdb-events.sh: Add selected-frame-level-changed event.
725 * gdb-events.c: Regenerated.
726 * gdb-events.h: Regenerated.
728 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
731 * inflow.c (terminal_save_ours): New function to save terminal
733 * inferior.h (terminal_save_ours): Declare.
734 * target.c (debug_to_terminal_save_ours): New function.
735 (cleanup_target): Defaults to_terminal_save_ours.
736 (update_current_target): Inherit to_terminal_save_ours.
737 (setup_target_debug): Set to_terminal_save_ours.
738 * target.h (target_terminal_save_ours): New to save terminal settings.
739 (target_ops): New member to_terminal_save_ours.
740 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
741 * hpux-thread.c (init_hpux_thread_ops): Likewise.
742 * inftarg.c (init_child_ops): Likewise.
743 * m3-nat.c (init_m3_ops): Likewise.
744 * procfs.c (init_procfs_ops): Likewise.
745 * wince.c (init_child_ops): Likewise.
746 * win32-nat.c (init_child_ops): Likewise.
747 * sol-thread.c (init_sol_thread_ops): Likewise.
749 2002-08-26 Mark Kettenis <kettenis@gnu.org>
751 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
752 use regcache_* functions.
753 (i386_gdbarch_init): Set store_return_value instead of
754 deprecated_store_return_value.
756 * regcache.c (regcache_raw_write_signed,
757 regcache_raw_write_unsigned): New functions.
758 * regcache.h (regcache_raw_write_signed,
759 regcache_raw_write_unsigned): New prototypes.
761 2002-08-25 Andrew Cagney <ac131313@redhat.com>
763 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
764 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
765 source file dependencies. Cleanup corresponding generator rules.
767 2002-08-25 Andrew Cagney <ac131313@redhat.com>
769 * regcache.h (register_offset_hack): Declare.
770 (regcache_cooked_read_using_offset_hack): Declare.
771 (regcache_cooked_write_using_offset_hack): Declare.
773 * regcache.c (register_offset_hack): New function.
774 (regcache_cooked_read_using_offset_hack): New function.
775 (regcache_cooked_write_using_offset_hack): New function.
776 (regcache_dump): Check that the registers, according to their
777 offset, are packed hard against each other.
778 (cooked_xfer_using_offset_hack): New function.
780 2002-08-25 Andrew Cagney <ac131313@redhat.com>
782 * regcache.c (struct regcache_descr): Add field register_type.
783 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
785 (init_regcache_descr): Initialize register_type. Pass the descr
786 to init_legacy_regcache_descr. Use register_type instead of
787 REGISTER_VIRTUAL_TYPE.
788 (register_type): New function.
789 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
790 * regcache.h (register_type): Declare.
792 2002-08-25 Andrew Cagney <ac131313@redhat.com>
794 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
795 instead of deprecated_store_return_value. Fix fallout from
796 2002-08-23 Andrew Cagney <cagney@redhat.com>.
798 2002-08-25 Andrew Cagney <ac131313@redhat.com>
800 * regcache.c (max_register_size): New function.
801 (init_legacy_regcache_descr): Ensure that max_register_size is
802 large enough for REGISTER_VIRTUAL_SIZE.
803 * regcache.h (max_register_size): Declare.
805 2002-08-24 Andrew Cagney <ac131313@redhat.com>
807 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
809 (e500_extract_return_value): Change type of valbuf pointer to
812 2002-08-24 Mark Kettenis <kettenis@gnu.org>
814 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
817 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
818 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
819 long long) to prevent compiler warning on 64-bit systems.
821 2002-08-23 Andrew Cagney <cagney@redhat.com>
823 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
824 (DEPRECATED_STORE_RETURN_VALUE): New method.
825 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
826 * gdbarch.h, gdbarch.c: Re-generate.
828 * values.c (set_return_value): Pass current_regcache to
830 * arch-utils.h (legacy_store_return_value): Declare.
831 * arch-utils.c (legacy_store_return_value): New function.
832 (legacy_extract_return_value): Update parameters.
834 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
836 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
837 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
838 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
839 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
840 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
841 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
842 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
843 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
844 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
845 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
848 * i386-tdep.c (i386_extract_return_value): Update.
849 * arch-utils.c (legacy_extract_return_value): Update.
850 * frv-tdep.c (frv_gdbarch_init): Update.
851 * cris-tdep.c (cris_gdbarch_init): Update.
852 * d10v-tdep.c (d10v_gdbarch_init): Update.
853 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
854 * m68k-tdep.c (m68k_gdbarch_init): Update.
855 * mcore-tdep.c (mcore_gdbarch_init): Update.
856 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
857 * s390-tdep.c (s390_gdbarch_init): Update.
858 * sparc-tdep.c (sparc_gdbarch_init): Update.
859 * sh-tdep.c (sh_gdbarch_init): Update.
860 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
861 * v850-tdep.c (v850_gdbarch_init): Update.
862 * avr-tdep.c (avr_gdbarch_init): Update.
863 * ia64-tdep.c (ia64_gdbarch_init): Update.
864 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
865 * vax-tdep.c (vax_gdbarch_init): Update.
866 * alpha-tdep.c (alpha_gdbarch_init): Update.
867 * arm-tdep.c (arm_gdbarch_init): Update.
868 * mips-tdep.c (mips_gdbarch_init): Update.
869 * i386-tdep.c (i386_gdbarch_init): Update.
871 2002-08-23 Andrew Cagney <ac131313@redhat.com>
873 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
874 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
876 2002-08-24 Mark Kettenis <kettenis@gnu.org>
878 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
881 2002-08-23 Joel Brobecker <brobecker@gnat.com>
883 * infrun.c (handle_inferior_event): Move a comment outside of a
884 function call, in order to avoid indent reformatting this part
885 of the code in an unreadable way.
887 2002-08-23 Grace Sainsbury <graces@redhat.com>
889 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
890 when breakpoints fail. Move general breakpoint error messages to
892 * breakpoint.c (insert_breakpoints): Change warnings when
893 breakpoints are nto inserted to specify the type. Remove call to
894 memory_error when hardware breakpoints can't be inserted. Remove
895 multiple calls to warning so all messages are sent to the user at
897 (delete_breakpoints): Make insert error messsages more explicit.
899 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
901 * ChangeLog: Move gdbserver entries after GDB 5.2 to
904 2002-08-23 Mark Kettenis <kettenis@gnu.org>
906 * i386-tdep.c: Include "objfiles.h".
907 (i386_svr4_init_abi): Set in_solib_call_trampoline and
908 skip_trampoline_code.
909 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
910 (CPLUS_MARKER): Define to '.'.
912 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
914 (linux_corefile_thread_callback): Increase args->num_notes.
915 (linux_make_note_section): Initialize thread_args.num_notes, and
916 use it to determine whether notes for any threads were created.
918 2002-08-23 Donn Terry <donnte@microsoft.com>
920 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
921 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
923 (write_with_trace): Conditionalize out the switch branch handling
924 PCSHOLD if the corresponding macro is not defined. Likewise for
926 This change will be needed by the Interix port.
928 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
930 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
931 write_register wherever possible instead of manipulating the
932 register bytes directly.
933 Assign VALUE_CONTENTS to a variable and use that.
934 The GPR numbers are now dependent on the architecture.
936 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
938 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
940 (skip_prologue): Add support for BookE/e500 instructions.
941 (e500_extract_return_value): New function.
942 (frame_get_saved_regs): Add support for saving ev registers and
944 (e500_store_return_value): New function.
945 (rs6000_gdbarch_init): Move up default intializations of
946 deprecated_extract_return_value and store_return_value. Overwrite
947 init of store_return_value with e500 specific version.
948 Set extract_return_value for e500.
950 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
952 * blockframe.c (generic_call_dummy_register_unwind): Use
953 regcache_cooked_read to catch cases in which the variable is
954 stored in a pseudo register.
956 2002-08-22 Andrew Cagney <cagney@redhat.com>
958 * NEWS: Mention that the i960 has been made obsolete.
959 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
961 (remote-nrom.o): Obsolete target.
962 (remote-nindy.o, i960-tdep.o): Ditto.
963 * remote-nrom.c: Make file obsolete.
964 * remote-nindy.c, remote-vx960.c: Ditto.
965 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
966 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
967 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
968 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
969 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
970 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
971 i960-*-vxworks* obsolete.
972 * MAINTAINERS: Note that the i960 is obsolete.
974 2002-08-21 Corinna Vinschen <vinschen@redhat.com
976 * aix-thread.c (aix_thread_detach): Disable thread debugging on
977 detach to allow reinitialization.
979 2002-08-22 Andrew Cagney <ac131313@redhat.com>
981 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
984 2002-08-22 Jim Blandy <jimb@redhat.com>
986 * coffread.c (coff_symfile_read): Don't try to read the line
987 number table from disk if the image file doesn't have a symbol
988 table; we'll never actually look at the info anyway, and Windows
989 ships DLL's with bogus file offsets for the line number data.
991 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
993 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
996 2002-08-21 Michael Snyder <msnyder@redhat.com>
998 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
999 (MSYMBOL_SIZE): Replace macro with function.
1000 (DEFAULT_MIPS_TYPE): Delete unused macro.
1001 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1002 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1004 2002-08-21 Jim Blandy <jimb@redhat.com>
1006 * valops.c (value_cast): Simplify and correct logic for doing a
1007 static cast from a pointer to a base class to a pointer to a
1010 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1012 * infcmd.c (default_print_registers_info): Replace
1014 (registers_info): Use gdbarch_print_registers_info instead of
1016 * inferior.h (default_print_registers_info): Replace
1018 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1019 (DO_REGISTERS_INFO): Change to a predicate function.
1020 * gdbarch.h, gdbarch.c: Regenerate.
1022 2002-08-21 Keith Seitz <keiths@redhat.com>
1024 * gdb-events.sh: Add target-changed event.
1025 * gdb-events.c: Regenerated.
1026 * gdb-events.c: Regenerated.
1027 * valops.c (value_assign): Add target-changed event notification
1028 to inlval_register, lval_memory, and lval_reg_frame_relative.
1030 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1032 * NEWS: Add an entry regarding the improvement of the next/step
1033 operation on Alpha Tru64 multi-processor machines.
1035 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1037 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1039 * Makefile.in: Update all _h macro definitions.
1040 * Makefile.in (install-gdbtk): Move to install section.
1041 (rdi-share/libangsd.a): Move to end of file.
1043 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1045 * frame.c (frame_register_unwind): When a register, set addrp to
1046 the register's byte.
1048 2002-08-20 Michael Snyder <msnyder@redhat.com>
1050 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1051 used locally, so move them from the target machine header to here.
1052 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1053 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1055 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1057 2002-08-20 Andrew Cagney <cagney@redhat.com>
1059 * NEWS: Mention that the Apollo line was made obsolete.
1060 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1061 m68*-hp-hpux* obsolete.
1062 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1063 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1064 * buildsym.c (make_blockvector): Make static.
1065 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1066 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1067 (ALLDEPFILES): Remove dstread.c.
1068 (dstread.o): Obsolete make rule.
1069 * dstread.c: Makefile obsolete.
1071 * config/m68k/hp300hpux.mt: Ditto.
1072 * config/m68k/hp300hpux.mh: Ditto.
1073 * config/m68k/hp300bsd.mt: Ditto.
1074 * config/m68k/hp300bsd.mh: Ditto.
1075 * config/m68k/apollo68b.mt: Ditto.
1076 * config/m68k/apollo68v.mh: Ditto.
1077 * config/m68k/apollo68b.mh: Ditto.
1079 2002-08-20 Michael Snyder <msnyder@redhat.com>
1081 * mips-tdep.c (mips_in_return_stub): Make static.
1082 (mips_gdbarch_init): Set in_solib_return_trampoline.
1083 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1085 2002-08-20 Michael Snyder <msnyder@redhat.com>
1087 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1088 * gdbarch.c, gdbarch.h: Regenerate.
1089 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1091 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1093 2002-08-20 Michael Snyder <msnyder@redhat.com>
1095 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1096 (mips_gdbarch_init): Set skip_trampoline_code,
1097 in_solib_call_trampoline.
1098 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1099 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1101 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1103 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1105 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1106 vector type for ev registers.
1107 (e500_pseudo_register_read): New function.
1108 (e500_pseudo_register_write): New function.
1109 (e500_dwarf2_reg_to_regnum): New function.
1110 (PPC_UISA_NOFP_SPRS): New macro.
1111 (PPC_EV_REGS): New macro.
1112 (PPC_GPRS_PSEUDO_REGS): New macro.
1113 (registers_e500): New register set for e500.
1114 (variants): Add e500 variant.
1115 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1116 before setting architectural dependent variations. Initialize ev
1117 registers numbers. Add case for e500 architecture. Set the
1118 number of pseudo registers.
1120 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1122 * rs6000-tdep.c: Clean up comments.
1124 2002-08-20 Andrew Cagney <cagney@redhat.com>
1126 * h8300-tdep.c: Re-indent file.
1128 2002-08-20 Jim Blandy <jimb@redhat.com>
1130 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1133 2002-08-20 Keith Seitz <keiths@redhat.com>
1135 * breakpoints.c (watch_command_1): Use internal breakpoint
1136 when setting a watchpoint_scope breakpoint.
1138 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1140 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1141 (build_builtin_type_vec64i): Ditto.
1142 (build_builtin_type_vec128): Ditto.
1143 (build_builtin_type_vec128i): Ditto.
1145 2002-08-19 Michael Snyder <msnyder@redhat.com>
1147 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1148 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1149 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1150 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1151 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1152 CALL_DUMMY_ADDRESS): Delete.
1153 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1154 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1155 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1156 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1157 push_return_address.
1158 (mips_register_raw_size, mips_eabi_use_struct_convention,
1159 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1160 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1161 mips_init_extra_frame_info, mips_eabi_push_arguments,
1162 mips_n32n64_push_arguments, mips_push_return_address,
1163 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1164 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1166 2002-08-19 Michael Snyder <msnyder@redhat.com>
1168 * mips-tdep.c (mips_frame_num_args): New function.
1169 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1170 frame_saved_pc, frame_args_address, frame_locals_address,
1171 frame_num_args, and frame_args_skip.
1172 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1173 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1174 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1175 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1177 2002-08-20 Michael Snyder <msnyder@redhat.com>
1179 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1180 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1181 * mips-tdep.c (mips_store_struct_return): New function.
1182 (mips_extract_struct_value_address): New function.
1183 (mips_gdbarch_init): Set store_struct_return and
1184 extract_struct_value_address.
1186 2002-08-20 David Carlton <carlton@math.stanford.edu>
1188 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1189 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1190 (read_file_scope): Check that line_header is nonzero before
1191 decoding macro information.
1193 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1195 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1196 flag the general-purpose registers as floating-point on targets
1197 that don't support the floating-point registers.
1199 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1201 * rs6000-tdep.c (altivec_register_p): Delete.
1202 (rs6000_do_altivec_registers): Delete.
1203 (rs6000_altivec_registers_info): Delete.
1204 (rs6000_do_registers_info): Delete.
1205 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1206 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1208 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1210 * infcmd.c (do_registers_info): Print vector registers in hex
1212 (print_vector_info): Check that printing registers
1214 (print_float_info): Ditto.
1216 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1218 * mips-tdep.c (mips_gdbarch_init): Update.
1219 (mips_o32_extract_return_value): Rewrite.
1220 (mips_o32_store_return_value): Rewrite.
1221 (mips_o32_xfer_return_value): New function.
1222 (mips_xfer_register): Tweak debug print message. Allow for
1223 buf_offset when dumping the value transfered.
1225 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1227 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1228 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1229 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1230 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1231 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1233 2002-08-14 Michael Snyder <msnyder@redhat.com>
1235 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1237 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1239 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1241 (P): New macro to define a register as a pseudo register.
1242 (R, R4, R8, R16, FR32, R64, R0): Updated.
1243 (struct variant): Add new fields for number of pseudo registers
1244 and number of total registers.
1245 (tot_num_registers): New macro replacing....
1246 (num_registers): ...deleted macro.
1247 (num_registers): New function.
1248 (num_pseudo_registers): New function.
1249 (variants): Update all variants to intialize new fields correctly.
1250 Postpone initialization of number of pseudo regs and real regs.
1251 (init_variants): New function.
1252 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1255 2002-08-19 David Carlton <carlton@math.stanford.edu>
1257 * valops.c (search_struct_field): Change error message to treat
1258 return value of 0 from value_static_field as meaning that field is
1260 (value_struct_elt_for_reference): Ditto.
1261 * values.c (value_static_field): Treat an unresolved location the
1262 same as a nonexistent symbol. Fix PR gdb/635.
1263 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1264 enclosed. Fix PR gdb/574.
1265 * MAINTAINERS: Add self to Write After Approval list.
1267 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1269 * mips-tdep.c (mips_xfer_register): New function.
1270 (mips_n32n64_extract_return_value): Rewrite.
1271 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1272 instead of deprecated_extract_return_value.
1274 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1276 * rs6000-tdep.c (TDEP): Delete macro.
1277 (branch_dest): Replace use of TDEP macro with its body.
1278 (rs6000_pop_frame): Ditto.
1279 (rs6000_push_arguments): Ditto.
1280 (rs6000_skip_trampoline_code): Ditto.
1281 (rs6000_frame_saved_pc): Ditto.
1282 (rs6000_frame_chain): Ditto.
1283 (rs6000_register_name): Ditto.
1284 (rs6000_register_byte): Ditto.
1285 (rs6000_register_raw_size): Ditto.
1286 (rs6000_register_virtual_type): Ditto.
1287 (rs6000_register_convertible): Ditto.
1288 (rs6000_convert_from_func_ptr_addr): Ditto.
1290 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1292 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1294 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1295 MIPS_LINUX_JB_ELEMENT_SIZE.
1296 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1297 for MAX_REGISTER_RAW_SIZE arrays.
1298 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1299 MIPS_LINUX_JB_ELEMENT_SIZE.
1301 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1303 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1305 2002-08-19 Aidan Skinner <aidan@velvet.net>
1307 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1308 ada-valprint.c ada-tasks.c.
1309 (YYFILES): Add ada-exp.y.
1310 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1311 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1312 (ada-exp.tab.o): New target.
1314 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1316 * regcache.c (regcache_xfer_part): New function.
1317 (regcache_raw_read_part): New function.
1318 (regcache_raw_write_part): New function.
1319 (regcache_cooked_read_part): New function.
1320 (regcache_cooked_write_part): New function.
1321 * regcache.h (regcache_raw_read_part): Declare.
1322 (regcache_raw_write_part): Declare.
1323 (regcache_cooked_read_part): Declare.
1324 (regcache_cooked_write_part): Declare.
1326 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1328 * remote.c (remote_open_1): Add async_p.
1329 (remote_async_open_1): Delete.
1330 (open_remote_target): Delete.
1331 (remote_open, extended_remote_open): Update calls to remote_open_1.
1332 (remote_async_open, extended_remote_async_open): Call
1333 remote_open_1 instead of remote_async_open_1.
1335 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1337 * blockframe.c: Fix a few coding standard violations.
1339 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1341 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1343 * config/i386/tm-i386sco5.h: ... here. File removed.
1344 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1346 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1347 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1348 (TM_FILE): Set to tm-i386.h.
1349 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1350 * config/i386/tm-i386v.h: Remove file.
1351 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1352 instead of "i386/tm-i386v.h".
1353 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1354 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1356 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1357 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1360 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1362 * config/i386/nm-i386v.h: Add protection against
1364 (i386_register_u_addr): Remove prototype.
1365 (register_u_addr): New prototype.
1366 (REGISTER_U_ADDR): Redefine accordingly.
1367 * i386v-nat.c: Improve several comments.
1368 (i386_register_u_addr): Change signature and rename to
1369 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1372 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1374 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1375 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1376 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1377 deprecated_extract_return_value.
1378 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1379 rename mips_o32o64_push_arguments.
1380 (mips_gdbarch_init): Update.
1381 (mips_extract_return_value): Delete.
1382 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1383 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1384 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1385 (mips_n32n64_extract_return_value): Clone
1386 mips_extract_return_value.
1387 (mips_store_return_value): Delete.
1388 (mips_o32_store_return_value): Clone mips_store_return_value.
1389 (mips_o64_store_return_value): Clone mips_store_return_value.
1390 (mips_eabi_store_return_value): Clone mips_store_return_value.
1391 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1393 2002-08-18 Aidan Skinner <aidan@velvet.net>
1395 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1396 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1398 2002-08-18 Aidan Skinner <aidan@velvet.net>
1400 * ada-lang.c: Run through gdb_indent.sh.
1401 * ada-lang.h: Run through gdb_indent.sh.
1402 * ada-tasks.c: Run through gdb_indent.sh.
1403 * ada-typeprint.c: Run through gdb_indent.sh.
1404 * ada-valprint.c: Run through gdb_indent.sh.
1406 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1408 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1411 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1413 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1415 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1416 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1418 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1419 write_register_gen instead of write_register_bytes.
1421 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1422 i[3456]-*-osf1mk* configurations have been made obsolete.
1423 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1424 i[3456]86-*-osf1mk* hosts obsolete.
1425 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1427 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1428 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1429 config/i386/i386m3.mt, config/i386/nm-m3.h,
1430 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1431 config/i386/i386mk.mh, config/i386/i386mk.mt,
1432 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1434 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1435 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1436 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1438 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1440 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1441 (hppa_value_returned_from_stack): Declare.
1442 (hppa_extract_return_value): Declare.
1443 * config/pa/hppa.mt: New file.
1444 * configure.tgt: Recognize hppa*-*-*.
1445 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1447 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1449 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1452 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1454 * top.c (gdb_rl_operate_and_get_next): Make sure
1455 operate-and-get-next functions correctly even when the history
1456 list is completely filled.
1458 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1460 * MAINTAINERS (Target Instruction Set Architectures): Rename
1461 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1462 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1463 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1464 already listed under Host/Native.
1466 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1467 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1470 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1472 * config/ia64/ia64.mt: New file.
1473 * config/alpha/alpha.mt: New file.
1474 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1475 ia64-linux-gnu. Mention that ia64-elf is broken.
1476 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1478 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1480 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1481 generic_func_frame_valid instead of func_frame_valid.
1483 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1485 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1486 procfs appears to be broken when debugging on multi-processor
1487 machines. So enable software single stepping in order to avoid
1488 using the procfs interface to do next/step operations, using
1489 internal breakpoints instead.
1491 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1492 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1493 make this pc address equal to the value it would have if the
1494 system stepping capability was used. Also set a new flag used
1495 to ensure that we don't readjust the PC one more time later.
1497 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1498 address by DECR_PC_AFTER_BREAK when software single step is
1499 in use for this architecture, as this has already been taken
1500 care of in handle_inferior_event().
1502 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1504 * infrun.c (handle_inferior_event): Minor reformatting, to make
1505 a rather long condition expression easier to read.
1507 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1509 * Makefile.in (gdbtk.o): Move to end of file.
1510 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1511 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1512 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1513 (gdbtk-wrapper.o, gdbres.o): Ditto.
1515 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1517 * Makefile.in (copying.o): Separate out compile rule.
1518 (hpux-thread.o, procfs.o, signals.o): Ditto.
1519 (v850ice.o, z8k-tdep.o): Ditto.
1520 (tui-file.o): Move to TUI section.
1521 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1522 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1524 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1526 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1527 skip_trampoline_code, for better namespace-proofing.
1529 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1531 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1533 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1535 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1537 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1538 signal, check whether we hit a breakpoint before checking for a
1539 single step breakpoint. Otherwise, GDB fails to notice that a
1540 breakpoint has been hit when stepping onto a breakpoint.
1542 2002-08-16 Keith Seitz <keiths@redhat.com>
1544 * gdb-events.sh (clear_gdb_event_hooks): New function.
1545 * gdb-events.c: Regenerate.
1546 * gdb-events.h: Regenerate.
1548 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1550 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1551 not_a_sw_breakpoint.
1552 * breakpoint.h (bpstat_stop_status): Add parameter names.
1554 2002-08-16 Grace Sainsbury <graces@redhat.com>
1556 * remote.c (remote_insert_hw_breakpoint)
1557 (remote_remove_hw_breakpoint): Fix calculation of length field
1560 2002-08-15 Michael Snyder <msnyder@redhat.com>
1562 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1563 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1564 (supply_fpregset): Ditto.
1566 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1567 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1568 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1569 (TARGET_READ_SP): Delete.
1570 (DO_REGISTERS_INFO): Delete.
1571 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1573 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1574 from macros to functions.
1576 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1577 (mips_register_convertible, mips_register_convert_to_virtual,
1578 mips_register_convert_to_raw): Make static.
1579 (mips_read_sp): New function.
1580 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1581 (mips_do_registers_info): Make static.
1582 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1583 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1584 (mips_register_convert_from_type, mips_register_convert_to_type):
1586 (mips_gdbarch_init): Set up function_start_offset,
1587 register_virtual_size, pc_in_sigtramp.
1589 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1591 * infcmd.c (vector_info): New function.
1592 (_initialize_infcmd): Add command "info vector".
1593 (print_vector_info): New function.
1595 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1596 * gdbarch.h, gdbarch.c: Regenerate.
1598 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1600 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1601 ``print_all''. Only print vector registers when ``print_all''.
1603 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1605 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1606 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1608 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1609 Add `args' parameter.
1610 * gdbarch.h, gdbarch.c: Regenerate.
1612 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1614 * infcmd.c (float_info): Call print_float_info.
1615 (print_float_info): New function. By default, print the
1616 floating-point registers.
1618 * arch-utils.h (default_print_float_info): Delete declaration.
1619 * arch-utils.c (default_print_float_info): Delete function.
1621 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1623 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1626 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1629 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1630 * configure.host: Make i[3456]86-*-aix host obsolete.
1631 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1632 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1633 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1634 config/i386/xm-i386aix.h: Make files obsolete.
1635 * i386aix-nat.c: Make file obsolete.
1636 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1637 (i386aix-nat.o): Make target obsolete.
1639 * config/i386/nm-gnu.h: Removed.
1640 * config/i386/nm-i386gnu.h: New file.
1641 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1642 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1644 * config/i386/tm-i386gnu.h: ... here. Removed.
1645 * config/i386/xm-i386gnu.h: Removed.
1646 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1647 (NAT_FILE): Set to nm-i386gnu.h.
1648 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1649 * i386-tdep.c: New file.
1650 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1651 (i386gnu-tdep.o): Specify dependencies.
1653 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1655 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1656 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1657 Adjust a few comments to reflect reality a bit closer.
1658 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1659 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1660 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1661 target_insert_watchpoint, target_remove_watchpoint):
1663 * config/i386/nm-i386sco5.h: ... here.
1664 (kernel_u_size): Add prototype. Improve a few comments and add
1665 protection against multiple inclusion.
1667 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1670 * uw-thread.c (SP_ARG0): Define if not already defined.
1671 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1673 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1675 * config/i386/tm-i386.h: Don't include "regcache.h".
1677 * i387-tdep.h (i387_print_float_info): New prototype.
1678 * i387-tdep.c (print_i387_value, print_i387_ext,
1679 print_i387_status_word, print_i387_control_word): Add `struct
1680 ui_file *' argument and use it for output.
1681 (i387_print_float_info): Renamed from i387_float_info. Add
1682 `struct gdbarch *' and `struct ui_file *' arguments and use the
1684 * i386-tdep.c: Include "i387-tdep.h".
1685 (i386_gdbarch_init): Set print_float_info.
1686 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1687 (FLOAT_INFO): Remove define.
1689 2002-08-13 Michael Snyder <msnyder@redhat.com>
1691 * mips-tdep.c (mips_push_arguments): Rename to
1692 mips_eabi_push_arguments, and tune for EABI.
1693 (MIPS_REGS_HAVE_HOME_P): Delete.
1694 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1695 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1696 Delete references to mips_regs_have_home_p.
1698 2002-08-14 Keith Seitz <keiths@redhat.com>
1700 * Makefile.in (install-gdbtk): Create insight plugin directory.
1701 Install plugins.tcl file.
1703 2002-08-14 Keith Seitz <keiths@redhat.com>
1705 * configure.in: Move SUBDIRS to near top of the file so that
1706 --enable options may add things to it.
1707 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1708 * configure: Regenerate.
1710 2002-08-13 Michael Snyder <msnyder@redhat.com>
1712 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1713 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1714 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1716 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1718 * vax-tdep.c (vax_get_saved_register): Delete function.
1719 (vax_gdbarch_init): Update.
1720 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1721 (ns32k_gdbarch_init): Update.
1722 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1723 (alpha_gdbarch_init): Update.
1725 2002-08-13 Andrew Cagney <cagney@redhat.com>
1727 * regcache.c (init_regcache_descr): Overallocate the
1728 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1729 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1731 (set_register_cached): Add range checking assertions. Use
1734 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1736 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1737 numbers for MMX registers.
1739 2002-08-13 Andrew Cagney <cagney@redhat.com>
1741 * i386-tdep.c (i386_gdbarch_init): Use
1742 generic_unwind_get_saved_register.
1744 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1746 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1747 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1749 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1750 Delete. Add comment regarding this now-deleted target method.
1752 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1754 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1755 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1756 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1757 real PC and the page number (if it's within the memory bank window).
1758 (m68hc11_pseudo_register_write): Likewise when saving.
1759 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1760 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1761 (m68hc11_register_raw_size): And use 32-bit for it.
1762 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1763 16K memory bank is used by the prog; also use the virtual pc.
1765 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1767 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1768 (m68hc11_gdbarch_init): Install it in gdbarch.
1769 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1770 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1771 (MSYMBOL_SIZE): New for documentation.
1772 (insn_return_kind): Enum to specify how a function returns.
1773 (frame_extra_info): Cleanup and record the return mode.
1774 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1775 register in address computation.
1776 (m68hc11_get_return_insn): New to obtain the return instruction used
1778 (m68hc11_frame_init_saved_regs): Take into account the return
1779 instruction used by the function for far and interrupt functions.
1780 (m68hc11_init_extra_frame_info): Take into account page register.
1781 (m68hc11_frame_args_address): Adjust according to the return mode.
1782 (show_regs): Print page register only when it's used.
1784 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1786 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1787 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1788 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1790 (m68hc11_register_raw_size): Likewise.
1792 2002-08-13 Andrew Cagney <cagney@redhat.com>
1794 * i386-tdep.c (i386_register_name): Handle mmx registers.
1795 (mmx_regnum_p): New function.
1796 (i386_mmx_names): New array.
1797 (mmx_num_regs): New variable.
1798 (i386_pseudo_register_read): New function.
1799 (i386_pseudo_register_write): New function.
1800 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1802 * regcache.c (regcache_raw_read_unsigned): New function.
1803 (regcache_raw_read_signed): New function.
1804 * regcache.h (regcache_raw_read_unsigned): Declare.
1805 (regcache_raw_read_signed): Declare.
1807 2002-08-13 Andrew Cagney <cagney@redhat.com>
1809 * regcache.c (regcache_raw_read_as_address): Delete function.
1810 (regcache_cooked_read_signed): New function.
1811 (regcache_cooked_read_unsigned): New function.
1812 * regcache.h (regcache_cooked_read_signed): Declare.
1813 (regcache_cooked_read_unsigned): Declare.
1814 (regcache_raw_read_as_address): Delete declaration.
1816 * blockframe.c (generic_read_register_dummy): Use
1817 regcache_cooked_read_unsigned.
1818 * i386-tdep.c (i386_extract_struct_value_address): Use
1819 regcache_cooked_read_unsigned.
1821 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1824 double sizes according to ELF ABI flags.
1825 (gdbarch_tdep): Record elf_flags.
1827 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1829 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1830 (m6812_prolog): They can appear in 68HC12 function prologue.
1831 (m68hc11_frame_chain): Cleanup.
1833 2002-08-12 Andrew Cagney <cagney@redhat.com>
1835 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1837 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1838 (i386_linux_register_raw_size): Delete function.
1839 (i386_linux_init_abi): Update.
1840 * i386-tdep.c (i386_register_raw_size): Delete function.
1841 (i386_register_byte): Delete function.
1842 (i386_gdbarch_init): Update.
1843 (i386_register_size): Delete array.
1844 (i386_register_offset): Delete array.
1846 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1847 (REGISTER_RAW_SIZE): Delete macro.
1848 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1849 (REGISTER_BYTE): Delete macro.
1851 2002-08-11 Aidan Skinner <aidan@velvet.net>
1853 * ada-lang.c (ada_lookup_partial_symbol)
1854 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1855 prototype names so that grep ^func works properly.
1857 * ada-lang.c (ada_array_element_type)
1858 (ada_lookup_partial_symbol): Fix typos in parameter list.
1860 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1861 Fix prototype names so that grep ^func works properly.
1863 2002-08-10 Andrew Cagney <cagney@redhat.com>
1864 Elena Zannoni <ezannoni@redhat.com>
1865 Martin M. Hunt <hunt@redhat.com>
1867 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1868 (build_builtin_type_vec128i): Set the vector bit.
1869 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1870 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1871 (build_builtin_type_vec64): New function.
1872 (build_builtin_type_vec64i): New function.
1873 (build_gdbtypes): Initialize builtin_type_vec64 and
1874 builtin_type_vec64i.
1876 2002-08-09 Andrew Cagney <cagney@redhat.com>
1878 * regcache.c (regcache_dump): Compare the register offset
1880 * arch-utils.c (generic_register_byte): New function.
1881 * arch-utils.h (generic_register_byte): Declare.
1882 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1883 * gdbarch.h, gdbarch.c: Regenerate.
1885 2002-08-09 Andrew Cagney <cagney@redhat.com>
1887 * regcache.c: Include "gdbcmd.h"
1888 (_initialize_regcache): Add commands "maintenance print
1889 registers", "maintenance print raw-registers" and "maintenance
1890 print cooked-registers".
1891 (enum regcache_dump_what): Define.
1892 (dump_endian_bytes): New function.
1893 (regcache_dump): New function.
1894 (regcache_print): New function.
1895 (maintenance_print_registers): New function.
1896 (maintenance_print_raw_registers): New function.
1897 (maintenance_print_cooked_registers): New function.
1898 * Makefile.in (regcache.o): Update dependencies.
1900 2002-08-09 Michael Snyder <msnyder@redhat.com>
1902 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1903 (mips_push_arguments): Correct some comments. Use paddr_nz
1904 for printing addresses in debug output. Replace static
1905 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1906 (mips_n32n64_push_arguments): New function, cloned from
1907 mips_push_arguments and tuned for the n32/n64 ABI.
1908 (mips_push_register): Buffer needs dynamic allocation.
1909 (mips_print_register): Ditto.
1910 (do_gp_register_row): Ditto.
1911 (mips_store_return_value): Ditto.
1912 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1914 2002-08-09 Don Howard <dhoward@redhat.com>
1916 * memattr.c (mem_info_command): Print special case of upper bound
1917 as max CORE_ADDR + 1.
1919 2002-08-08 Michael Snyder <msnyder@redhat.com>
1921 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1922 returns structs by ref if they're too big to fit in two registers.
1924 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1926 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1928 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1929 mips_find_saved_regs().
1930 (mips_pop_frame): Likewise.
1932 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1934 * blockframe.c (frame_saved_regs_register_unwind): Revise
1935 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1938 2002-08-09 Grace Sainsbury <graces@redhat.com>
1940 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1941 T-packets; the 'a' is not taken as a register number.
1942 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1943 (remote_stopped_data_address): New functions; add to target
1945 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1946 prototypes to match other implementations of this
1947 function. replace integer argument with pointer -- the length
1948 field in the Z-packet is the length of what is pointed to or 1 if
1949 pointer is null. Add to target vector.
1950 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1954 * remote.c (remote_wait): Add support to extract optional
1955 watchpoint information from T-packet. Ignore unrecognized
1956 optional info in T-packet.
1957 (remote_async_wait): Ditto.
1959 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1961 * cli/cli-dump.c: Change fopen modes to use binary open modes
1962 as defined in include/fopen-bin.h throughout.
1964 2002-08-08 Michael Snyder <msnyder@redhat.com>
1966 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1968 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1970 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1971 assertion failure by returning early after a warning.
1973 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1975 * mips-tdep.c (mips_find_saved_regs): Make static.
1976 (mips_frame_init_saved_regs): New function.
1977 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1978 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1979 (mips_find_saved_regs): Delete declaration.
1981 2002-08-08 Grace Sainsbury <graces@redhat.com>
1983 * remote.c (remote_wait, remote_async_wait): Change
1984 thread_num from int to ULONGEST.
1985 (unpack_varlen_hex): Change result parameter from
1986 int * to ULONGEST *.
1988 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1990 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1991 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1993 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1995 2002-08-08 Andrew Cagney <cagney@redhat.com>
1997 * gcore.c (override_derive_stack_segment): Delete variable.
1998 (preempt_derive_stack_segment): Delete function.
1999 (derive_stack_segment): Delete function.
2000 (default_derive_stack_segment): Renamed to derive_stack_segment.
2001 (override_derive_heap_segment): Delete variable.
2002 (preempt_derive_heap_segment): Delete function.
2003 (derive_heap_segment): Delete function.
2004 (default_derive_heap_segment): Rename to derive_heap_segment.
2006 2002-08-06 Michael Snyder <msnyder@redhat.com>
2008 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2009 * mips-tdep.c (mips_EABI_use_struct_convention,
2010 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2011 New functions. (mips_use_struct_convention): Delete.
2012 (mips_gdbarch_init): set use_gdbarch_convention.
2014 2002-08-06 Michael Snyder <msnyder@redhat.com>
2016 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2017 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2018 mips_o32_reg_struct_has_addr): New functions.
2019 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2021 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2023 * regcache.c (pseudo_register): Delete function.
2024 (fetch_register): Delete function.
2025 (store_register): Delete function.
2026 (regcache_raw_read, legacy_read_register_gen): Use
2027 target_fetch_registers instead of fetch_register.
2028 (legacy_write_register_gen, regcache_raw_write): Use
2029 target_store_register instead of store_register.
2030 (write_register_bytes): Ditto.
2032 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2033 (STORE_PSEUDO_REGISTER): Delete.
2034 * gdbarch.h, gdbarch.c: Regenerate.
2036 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2038 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2039 write dump file binary.
2041 2002-08-05 Michael Snyder <msnyder@redhat.com>
2043 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2044 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2045 (mips_gdbarch_init): Set N32 target to be mips64.
2047 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2049 * frame.c (find_saved_register): Break out of loop once saved
2050 register address is found. Don't mention sparc in loop comment
2053 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2055 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2056 mips_default_saved_regsize to 8.
2058 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2060 * gcore.c: Do not include <sys/procfs.h>.
2061 * Makefile.in (gcore.o): Update dependencies.
2063 2002-08-06 Andrew Cagney <cagney@redhat.com>
2065 * configure.tgt: Make arc-*-* obsolete.
2066 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2067 * MAINTAINERS: Make arc-elf obsolete.
2068 * arc-tdep.c: Make file obsolete.
2069 * config/arc/arc.mt: Ditto.
2070 * config/arc/tm-arc.h: Ditto.
2072 2002-08-05 Theodore A. Roth <troth@verinet.com>
2074 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2076 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2078 * mcore-tdep.c (mcore_gdbarch_init): Use
2079 generic_unwind_get_saved_register instead of
2080 generic_get_saved_register.
2081 * v850-tdep.c (v850_gdbarch_init): Ditto.
2082 * frv-tdep.c (frv_gdbarch_init): Ditto.
2083 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2084 * s390-tdep.c (s390_gdbarch_init): Ditto.
2085 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2086 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2087 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2089 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2091 * objfiles.h: Add missing #include "symfile.h"
2093 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2095 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2097 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2098 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2101 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2103 * NEWS: Cleanup and nitpick.
2105 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2107 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2109 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2111 * Makefile.in (gdbtk-bp.o): Update dependencies.
2112 (gdbtk-register.o): Ditto.
2113 (gdbtk-varobj.o): Ditto.
2115 2002-08-03 Andrew Cagney <cagney@redhat.com>
2117 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2118 m68hc11_fetch_pseudo_register.
2119 (m68hc11_pseudo_register_write): Replace
2120 m68hc11_store_pseudo_register.
2121 (m68hc11_gdbarch_init): Update.
2123 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2125 * gdbarch.sh: Include "gdb_string.h".
2126 * gdbarch.c: Regenerate.
2128 * regcache.c: Include "gdb_string.h".
2129 * ax-general.c: Ditto.
2131 * std-regs.c: Ditto.
2132 * fbsd-proc.c: Ditto.
2135 * Makefile.in (regcache.o): Update dependencies.
2136 (thread.o, gdbarch.o): Ditto.
2137 (ax-general.o, gdbarch.o): Ditto.
2138 (varobj.o, std-regs.o): Ditto.
2139 (fbsd-proc.o): Specify dependencies.
2141 2002-08-02 Andrew Cagney <cagney@redhat.com>
2143 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2145 (regcache_cooked_write): Ditto.
2147 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2149 * regcache.c (regcache_cooked_read): New function.
2150 (regcache_cooked_write): New function.
2151 (read_register_gen): Rewrite using regcache_cooked_read.
2152 (write_register_gen): Rewrite using regcache_cooked_write.
2154 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2157 2002-08-02 Andrew Cagney <cagney@redhat.com>
2159 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2160 Replace the architecture methods register_read and register_write.
2161 * gdbarch.h, gdbarch.c: Regenerate.
2162 * regcache.c (init_regcache_descr): Update.
2163 (read_register_gen): Update.
2164 (write_register_gen): Update.
2165 (supply_register): Update comment.
2167 * sh-tdep.c (sh_gdbarch_init): Update.
2168 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2169 `regcache' and `gdbarch' parameters. Make `buffer' a void
2170 pointer. Update code.
2171 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2172 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2173 void pointer. Update code.
2174 (sh64_register_write): Delete.
2175 (sh4_register_read): Delete.
2176 (sh64_register_read): Delete.
2177 (sh4_register_write): Delete.
2178 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2179 void pointer, `to' parameter a void pointer.
2180 (sh_sh64_register_convert_to_raw): Ditto.
2182 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2184 * mips-tdep.c (mips_register_virtual_type): Use architecture
2185 invariant return values.
2187 2002-08-01 Andrew Cagney <cagney@redhat.com>
2189 * linux-proc.c: Include "gdb_string.h".
2190 * Makefile.in (linux-proc.o): Update dependency list.
2192 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2194 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2197 2002-08-01 Grace Sainsbury <graces@redhat.com>
2199 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2200 to_insert_watchpoint, to_remove_watchpoint,
2201 to_stopped_by_watchpoint, to_stopped_data_address,
2202 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2203 target vecctor. Define their corresponding macros so they call
2206 * target.c: Add default and debug versions of for
2207 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2208 to_insert_watchpoint, to_remove_watchpoint,
2209 to_stopped_by_watchpoint, to_stopped_data_address,
2210 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2212 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2214 * mips-tdep.c (mips_register_virtual_type): New function.
2215 (mips_gdbarch_init): Register mips_register_virtual_type()
2216 with gdbarch machinery.
2217 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2218 this file instead of tm-bigmips.h.
2219 (MIPS_REGSIZE): Delete this macro.
2220 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2221 multiarch version in mips-tdep.c will be found.
2223 2002-08-01 Andrew Cagney <cagney@redhat.com>
2225 * NEWS: Menion that CHILL has been made obsolete.
2227 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2228 * stabsread.c (read_range_type): Ditto.
2229 * gdbtypes.h: Ditto.
2230 * language.c (binop_type_check): Ditto.
2231 (binop_result_type): Ditto.
2232 (integral_type): Ditto.
2233 (character_type): Ditto.
2234 (string_type): Ditto.
2235 (boolean_type): Ditto.
2236 (structured_type): Ditto.
2237 (lang_bool_type): Ditto.
2238 (binop_type_check): Ditto.
2239 * language.h (_LANG_chill): Ditto.
2240 * dwarfread.c (set_cu_language): Ditto.
2241 * dwarfread.c (CHILL_PRODUCER): Ditto.
2242 * dwarfread.c (handle_producer): Ditto.
2243 * expression.h (enum exp_opcode): Ditto.
2244 * eval.c: Ditto for comments.
2245 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2246 * expprint.c (print_subexp): Ditto.
2247 (print_subexp): Ditto.
2248 * valops.c (value_cast): Ditto.
2249 (search_struct_field): Ditto.
2250 * value.h (COERCE_VARYING_ARRAY): Ditto.
2251 * symfile.c (init_filename_language_table): Ditto.
2252 (add_psymbol_with_dem_name_to_list): Ditto.
2253 * valarith.c (value_binop): Ditto.
2255 * valops.c (value_slice): Ditto.
2256 * symtab.h (union language_specific): Ditto.
2257 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2258 (SYMBOL_DEMANGLED_NAME): Ditto.
2259 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2260 * defs.h (enum language): Ditto.
2261 * symtab.c (got_symtab): Ditto.
2262 * utils.c (fprintf_symbol_filtered): Ditto.
2264 * ch-typeprint.c: Make file obsolete.
2265 * ch-valprint.c: Make file obsolete.
2266 * ch-lang.h: Make file obsolete.
2267 * ch-exp.c: Make file obsolete.
2268 * ch-lang.c: Make file obsolete.
2270 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2272 (TARGET_FLAGS_TO_PASS): Ditto.
2273 (CHILLFLAGS): Obsolete.
2275 (CHILL_FOR_TARGET): Obsolete.
2276 (CHILL_LIB): Obsolete.
2277 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2279 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2280 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2282 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2285 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2287 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2288 This does not change anything at the moment, but will be helpful
2289 later when full Ada support is integrated.
2291 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2293 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2296 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2298 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2299 and save it in a local variable. Use variable in later test.
2301 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2303 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2304 test. (Thanks to Daniel Jacobowitz.)
2306 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2308 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2309 (mips_abi_strings): Add "n64".
2310 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2312 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2314 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2315 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2317 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2319 * utils.c (host_pointer_to_address, address_to_host_pointer):
2320 Use gdb_assert() instead of explicit call to internal_error().
2322 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2324 * Makefile.in (rs6000-nat.o): Update dependencies.
2326 From Nicholas Duffek:
2327 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2328 (aix-thread.o): New rule.
2329 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2330 * config/powerpc/aix432.mh: New file.
2332 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2334 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2335 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2336 (fetch_core_registers, ppc_linux_supply_gregset)
2337 (ppc_linux_supply_fpregset): New functions.
2338 (ppc_linux_regset_core_fns): New.
2339 (_initialize_ppc_linux_tdep): Call add_core_fns.
2340 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2341 and ppc_linux_supply_gregset.
2342 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2343 (supply_fpregset): Call ppc_linux_supply_fpregset.
2344 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2346 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2348 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2350 * symtab.c (lookup_symbol): Demangle before lowercasing.
2352 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2354 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2356 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2357 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2358 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2359 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2361 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2362 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2363 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2364 (avr-tdep.o, mon960-rom.o): Ditto.
2365 (aout_stabs_gnu_h): Define.
2366 (symtab_h): Remove $(gdb_obstack_h).
2368 2002-07-30 Jim Blandy <jimb@redhat.com>
2370 Patch from David Carlton <carlton@math.stanford.edu>:
2371 * gdbinit.in: Move the `dir' commands that add GDB's own source
2372 directory to the search path to the end, so that the `gdb' source
2373 directory will be searched first.
2375 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2377 * gdb_obstack.h: New file.
2378 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2379 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2380 * objfiles.h: Include "gdb_obstack.h".
2381 * Makefile.in (gdb_obstack_h): Define.
2382 (symtab_h): Add $(gdb_obstack_h).
2383 (objfiles_h): Add $(gdb_obstack_h).
2385 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2386 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2387 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2388 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2389 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2390 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2391 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2392 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2394 * Makefile.in (bcache.o): Update dependencies.
2395 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2396 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2397 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2398 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2399 (stabsread.o, symfile.o, symmisc.o): Ditto.
2400 (symtab.o, typeprint.o, macroexp.o): Ditto.
2401 (macrotab.o, mdebugread.o): Ditto.
2402 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2403 (coff_ecoff_h, aout_aout64_h): Define.
2404 (aout_stabs_gnu_h, libaout_h): Define.
2406 2002-07-29 Andrew Cagney <cagney@redhat.com>
2408 * regcache.c (struct regcache_descr): Rename nr_registers to
2409 nr_cooked_registers. Revise comments describing the structure
2411 (init_regcache_descr): Update.
2412 (init_legacy_regcache_descr): Update.
2413 (read_register_gen, write_register_gen): When a cooked register in
2414 the raw register range, directly access the value from the raw
2417 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2419 * z8k-tdep.c: Do not include "obstack.h".
2420 * h8300-tdep.c, h8500-tdep.c: Ditto.
2421 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2422 * valprint.c, v850-tdep.c: Ditto.
2423 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2424 * mn10200-tdep.c: Ditto.
2426 * Makefile.in (z8k-tdep.o): Update dependencies.
2427 (m68hc11-tdep.o, valprint.o): Ditto.
2428 (v850-tdep.o, d10v-tdep.o): Ditto.
2429 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2430 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2431 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2432 (sh_opc_h, gdb_sim_sh_h): Define.
2433 (elf_sh_h, elf_bfd_h): Define.
2434 (opcode_m68hc11_h): Define.
2435 (OPCODES_SRC, OPCODES_DIR): define.
2436 (OPCODES): Use $(OPCODES_DIR).
2437 (gdb_sim_d10v_h): Rename sim_d10v_h.
2438 (gdb_sim_arm_h): Rename sim_arm_h.
2440 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2442 * utils.c (host_pointer_to_address, address_to_host_pointer):
2443 Change internal_error() message to indicate function responsible
2446 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2448 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2449 calls to local_hex_string_custom().
2451 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2453 * irix5-nat.c: Move IRIX shared library support from here...
2454 * solib-irix.c: ...to here. Revised substantially to work with
2455 generic solib framework.
2457 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2458 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2459 * mips-irix-tdep.c: New file.
2461 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2462 (mips-irix-tdep.o, solib-irix.o): New rules.
2463 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2465 * config/mips/irix6.mt (TDEPFILES): Likewise.
2466 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2468 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2470 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2471 disabled (via ``#if 0'') includes.
2473 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2475 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2476 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2477 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2478 Add support for the fpscr register.
2479 * rs6000-nat.c (regmap, fetch_inferior_registers)
2480 (store_inferior_registers, fetch_core_registers): Likewise.
2482 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2484 * rs6000-nat.c (language.h): Include.
2485 (special_regs): Delete this array.
2486 (regmap): New function.
2487 (fetch_register, store_register): Use regmap() to map gdb
2488 register numbers to ptrace register numbers. Also, use
2489 outputs from regmap() to make decisions regarding type of
2490 ptrace() call to make. In particular, don't compare against
2491 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2492 (fetch_inferior_registers, store_inferior_registers): Where
2493 possible, obtain register numbers from tdep struct. Don't
2494 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2495 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2496 (LAST_UISA_SP_REGNUM): Delete.
2498 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2500 * rs6000-nat.c (ppc-tdep.h): Include.
2501 (fetch_registers, store_register, fetch_core_registers): Don't
2502 access registers[] directly. Instead, use supply_register() or
2503 regcache_collect() as appropriate.
2504 (find_toc_address): Format hex address with local_hex_string().
2506 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2508 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2511 2002-07-24 Tom Tromey <tromey@redhat.com>
2513 * jv-exp.y: Marked all strings with _().
2514 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2516 (MethodInvocation, CastExpression, parse_number, yyerror,
2517 java_type_from_name, push_expression_name, yylex): Typo fixes.
2519 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2521 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2522 (tee_file_flush, tee_file_write, tee_file_fputs)
2523 (tee_file_isatty): New.
2524 * ui-file.h (tee_file_new): Add prototype.
2526 2002-07-24 Aidan Skinner <aidan@velvet.net>
2528 * ada-lang.c: Change k&r style function definitions to prototyped
2530 * ada-typeprint.c: Change k&r style function definitions to prototyped
2532 * ada-valprint.c: Change k&r style function definitions to prototyped
2535 2002-07-24 Andrew Cagney <cagney@redhat.com>
2537 * README: Remove reference to remote-bug.
2538 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2540 (m88k-nat.o): Delete rule.
2541 (m88k-tdep.o): Delete rule.
2542 (remote-bug.o): Delete rule.
2543 * MAINTAINERS: Mark as obsolete.
2544 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2545 * m88k-tdep.c: Make file obsolete.
2546 * config/m88k/m88k.mh: Ditto.
2547 * config/m88k/delta88v4.mh: Ditto.
2548 * config/m88k/delta88v4.mt: Ditto.
2549 * config/m88k/delta88.mt: Ditto.
2550 * config/m88k/delta88.mh: Ditto.
2551 * remote-bug.c: Ditto.
2552 * config/m88k/tm-delta88.h: Ditto.
2553 * config/m88k/nm-delta88v4.h: Ditto.
2554 * config/m88k/xm-delta88.h: Ditto.
2555 * config/m88k/xm-dgux.h: Ditto.
2556 * config/m88k/tm-m88k.h: Ditto.
2557 * config/m88k/nm-m88k.h: Ditto.
2558 * config/m88k/tm-delta88v4.h: Ditto.
2559 * m88k-nat.c: Ditto.
2560 * cxux-nat.c: Ditto.
2561 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2562 and m88*-*-* obsolete.
2563 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2566 2002-07-24 Andrew Cagney <cagney@redhat.com>
2568 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2569 constant. Same for local pointer variables.
2570 (extract_signed_integer): Ditto.
2571 * defs.h (extract_unsigned_integer): Update.
2572 (extract_signed_integer): Update.
2574 2002-07-24 Andrew Cagney <cagney@redhat.com>
2576 * regcache.c (regcache_raw_write): Change buf parameter to a
2577 constant void pointer.
2578 (regcache_raw_read): Change buf parameter to a void pointer.
2579 (legacy_write_register_gen): Change myaddr parameter a constant
2581 (supply_register): Change val parameter to a const void pointer.
2582 * regcache.h (regcache_raw_write): Update declaration.
2583 (regcache_raw_read): Update declaration.
2584 (supply_register): Update declaration.
2586 2002-07-24 Tom Tromey <tromey@redhat.com>
2588 * defs.h (gdb_readline_wrapper): Declare.
2589 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2590 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2591 * top.c (gdb_readline_wrapper): New function.
2592 (command_line_input): Use it.
2594 2002-07-24 Andrew Cagney <cagney@redhat.com>
2596 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2597 regcache_read and regcache_write.
2598 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2599 * regcache.c: Update.
2600 * sh-tdep.c (sh64_push_arguments): Update comment.
2601 (sh_pseudo_register_read): Update.
2602 (sh_pseudo_register_write): Update.
2603 (sh4_register_read): Update.
2604 (sh4_register_write): Update.
2605 (sh64_pseudo_register_read): Update.
2606 (sh64_pseudo_register_write): Update.
2607 (sh64_register_read): Update.
2608 (sh64_register_write): Update.
2609 * i386-tdep.c (i386_extract_return_value): Update.
2610 (i386_extract_struct_value_address): Update.
2611 (i386_extract_return_value): Update.
2612 * blockframe.c (generic_read_register_dummy): Update.
2613 (generic_call_dummy_register_unwind): Update
2614 * infrun.c (write_inferior_status_register): Update.
2616 2002-07-23 Jim Blandy <jimb@redhat.com>
2618 * parser-defs.h (expression_context_pc): Make this extern.
2619 (Thanks to Michael Snyder.)
2621 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2623 GDB 5.2.1 released from 5.2 branch.
2624 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2625 * README: Update to mention 5.2.1.
2627 2002-07-23 Mark Salter <msalter@redhat.com>
2629 * remote.c (remote_read_bytes): Fix check for error.
2631 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2633 * aix-thread.c (language.h): Include.
2634 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2635 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2636 Print newlines at end of debug messages.
2637 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2638 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2640 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2642 * aix-thread.c (ppc-tdep.h): Include.
2643 (special_register_p): New function.
2644 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2645 (store_regs_user_thread): Use register number information from
2646 gdbarch_tdep struct instead of hardcoded offsets relative to
2647 FIRST_UISA_SP_REGNUM.
2648 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2649 special_register_p() instead of using FPLAST_REGNUM and
2650 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2651 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2652 will be MQ's register number.
2654 2002-07-22 Michael Snyder <msnyder@redhat.com>
2656 * aix-thread.c (ops): Rename to aix_thread_ops.
2657 (base_ops): Rename to base_target.
2658 (ops_attach): Rename to aix_thread_attach.
2659 (ops_detach): Rename to aix_thread_detach.
2660 (ops_resume): Rename to aix_thread_detach.
2661 (ops_wait): Rename to aix_thread_wait.
2662 (ops_kill): Rename to aix_thread_kill.
2663 (init_ops): Rename to init_aix_thread_ops.
2664 (ops_fetch_register): Rename to aix_thread_fetch_register.
2665 (ops_store_register): Rename to aix_thread_store_register.
2666 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2667 (ops_thread_alive): Rename to aix_thread_thread_alive.
2668 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2669 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2670 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2671 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2672 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2673 (store_regs_lib): Rename to store_regs_user_thread.
2674 (store_regs_kern): Rename to store_regs_kernel_thread.
2676 2002-07-22 Michael Snyder <msnyder@redhat.com>
2678 * aix-thread.c (ops_prepare_to_store): Eliminate.
2679 (init_ops): Don't initialize ops.prepare_to_store.
2680 (store_regs_kern): Pre-fetch register buffers from child,
2681 because some registers may not be in the cache. Copy
2682 regs from register cache only if they are cached.
2683 (store_regs_lib): Copy regs from register cache only
2685 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2686 fill_gprs64): Ditto.
2688 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2690 * aix-thread.c (gdb_assert.h): Include.
2691 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2692 register sizes (from register cache) match size of buffer holding
2694 (fill_sprs32): Change parameter types to match those in the ptrace()
2696 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2697 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2699 2002-07-22 Michael Snyder <msnyder@redhat.com>
2701 * aix-thread.c (supply_sprs64): Cosmetic change.
2702 (supply_sprs32): Cosmetic change.
2703 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2704 (fill_sprs64): Use regcache_collect instead of read_register.
2705 (store_regs_lib): Use regcache_collect instead of
2706 read_register. Use fill_sprs32 instead of fill_sprs64,
2707 if debugging a 32-bit architecture.
2708 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2709 out of the register cache, instead of passing a pointer into
2710 the register cache directly to ptrace. Use regcache_collect
2711 insteaad of read_register.
2712 (ops_prepare_to_store): Use target_read_registers instead
2713 of read_register_bytes.
2715 2002-07-20 Aidan Skinner <aidan@velvet.net>
2717 * MAINTAINERS: Add self under write after approval.
2719 2002-07-20 Aidan Skinner <aidan@velvet.net>
2721 * ada-tasks.c: Change k&r style function definitions to prototyped
2724 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2726 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2727 * x86-64-tdep.c: Include "objfiles.h".
2728 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2729 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2731 2002-07-17 Michal Ludvig <michal@suse.cz>
2733 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2734 (update_context): Initialise cfa variable.
2736 2002-07-17 Michael Snyder <msnyder@redhat.com>
2738 * aix-thread.c: Shorten some long lines.
2739 Bring comments into line with code spec.
2741 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2743 * infrun.c: Re-indent using gdb_indent.sh.
2745 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2747 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2748 Leave the indentation temporarily untouched, to minimize the diffs.
2750 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2752 * stabsread.c: Make os9k sections of the code obsolete,
2754 * stabsread.h: Make os9k sections of the code obsolete.
2756 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2758 * linux-low.c (regsets_store_inferior_registers): Add free()
2759 at the end of a loop to prevent memory leak.
2760 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2761 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2762 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2764 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2766 2002-07-17 Jim Blandy <jimb@redhat.com>
2768 * macrocmd.c (info_macro_command): Remove newline from error
2771 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2773 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2774 (sh_gdbarch_init): Use it for sh-dsp.
2776 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2778 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2779 64-bit DWARF2 format.
2781 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2783 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2784 <sys/proc.h> when not available.
2786 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2788 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2789 * stabsread.c: Make os9k sections of the code obsolete.
2790 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2791 * config/i386/i386os9k.mt: Make file obsolete.
2792 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2793 (COMMON_OBS): Remove os9kread.o
2794 (SFILES): Remove os9kread.c.
2795 (os9kread.o, remote-os9k.o): Make target obsolete.
2796 * remote-os9k.c: Make file obsolete.
2797 * os9kread.c: Make file obsolete.
2800 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2802 * NEWS: Mention that the FR30 has been made obsolete.
2803 * fr30-tdep.c: Make file obsolete.
2804 * config/fr30/tm-fr30.h: Ditto.
2805 * config/fr30/fr30.mt: Ditto.
2806 * configure.tgt: Make fr30-*-elf obsolete.
2807 * MAINTAINERS: Make fr30-elf obsolete.
2809 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2811 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2812 found is not inside a section.
2814 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2816 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2818 (pdc_realloc): Use xrealloc() instead of realloc().
2820 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2822 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2823 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2824 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2827 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2829 * aix-thread.c (ptrace_check): Eliminate goto.
2830 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2833 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2835 * aix-thread.c (gdbcmd.h): Include.
2836 (DEBUG, DBG, DBG2, dbg): Eliminate.
2837 (debug_aix_thread): New static global.
2838 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2839 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2840 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2841 invocations to DBG and DBG2 macros to test against
2842 ``debug_aix_thread'' and call fprintf_unfiltered().
2843 (_initialize_aix_thread): Add new command "set debug aix-thread".
2845 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2847 From Gerhard Tonn <TON@de.ibm.com>:
2848 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2849 instead of supply_register.
2851 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2853 * dwarf2cfi.c: Include "gdb_assert.h".
2854 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2856 (update_context): Do not use __func__. Add missing ``break''.
2857 (update_context): Do not use __func__.
2859 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2861 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2862 and its setting. Set gdbarch instruction printing functions
2863 directly. For non-rs6000 case use new function
2864 gdb_print_insn_powerpc.
2865 (gdb_print_insn_powerpc): New function.
2867 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2869 * NEWS: Mention that the d30v has been marked obsolete.
2870 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2871 * configure.tgt: Mark d30v-*-* as obsolete.
2872 * d30v-tdep.c: Mark file as obsolete.
2873 * config/d30v/d30v.mt: Ditto.
2874 * config/d30v/tm-d30v.h: Ditto.
2876 2002-07-13 Aidan Skinner <aidan@velvet.net>
2878 * ada-tasks.c (add_task_entry): replace calls to
2879 malloc() with xmalloc
2880 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2882 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2883 ada_finish_decode_line_1, all_sals_for_line
2884 ada_breakpoint_rewrite): replace calls to free() with xfree()
2886 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2888 From Nicholas Duffek (with minor changes by Martin Hunt,
2889 Louis Hamilton, and Kevin Buettner):
2890 * aix-thread.c: New file.
2892 2002-07-12 Petr Sorfa <petrs@caldera.com>
2894 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2895 complaint for invalid attribute class or form.
2896 (read_func_scope): DW_AT_frame_base
2897 better handling of DW_AT_block*.
2898 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2899 better handling of DW_AT_block*.
2900 (read_common_block): DW_AT_location
2901 better handling of DW_AT_block*.
2902 (read_partial_die): DW_AT_location better handling
2904 (new_symbol): DW_AT_external better handling of
2905 DW_AT_block*. Proper initialization of variable
2907 (attr_form_is_block): New function that returns true
2908 if the attribute's form is of DW_FORM_block*.
2910 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2912 * valops.c (find_method_list): Remove comment about
2913 removed STATIC_MEMFUNCP argument.
2914 (value_find_oload_method_list): Likewise.
2916 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2918 From Nicholas Duffek:
2919 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2920 target_new_objfile_hook.
2922 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2924 From Nicholas Duffek:
2925 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2928 2002-07-12 Andrew Cagney <cagney@redhat.com>
2930 * MAINTAINERS: Mention --enable-sim-build-warnings.
2931 (m68hc11-elf): Disable sim build warnings.
2932 (m32r-elf): Mark as broken obsolete candidate.
2933 (x86_64-linux-gnu): Mark as buildable with -Werror.
2934 (arm-elf): Change -w to ``,'' which enables warnings but not
2937 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2939 * bcache.h: Update copyright.
2940 (struct bstring, struct bcache): Move definition to "bcache.c".
2941 Replaced by opaque declaration.
2942 (bcache_xfree): Replace free_bcache.
2943 (bcache_xmalloc, bcache_memory_used): Declare.
2945 * bcache.c: Update copyright.
2946 (struct bstring, struct bcache): Moved to here from "bcache.h".
2948 (bcache_xmalloc, bcache_memory_used): New functions.
2949 (bcache_xfree): Replace function free_bcache.
2951 * Makefile.in (objfiles.o): Add $(bcache_h).
2952 (objfiles_h): Remove $(bcache_h).
2953 (symfile.o): Add $(bcache_h).
2955 * symmisc.c: Update copyright.
2956 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2957 (print_objfile_statistics): Use bcache_memory_used.
2959 * symfile.c: Include "bcache.h".
2960 (reread_symbols): Use bcache_xfree.
2961 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2962 (add_psymbol_to_list): Pass psymbol_cache by value.
2963 (add_psymbol_with_dem_name_to_list): Ditto.
2965 * objfiles.h: Update copyright.
2966 (struct bcache): Declare opaque. Do not include "bcache.h".
2967 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2969 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2971 * objfiles.c: Include "bcache.h". Update copyright.
2972 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2974 (free_objfile): Use bcache_xfree.
2976 2002-07-11 Grace Sainsbury <graces@redhat.com>
2978 * monitor.c (monitor_fetch_register): Make name a constant.
2979 (monitor_store_register): Same.
2981 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2983 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2984 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2985 (finish_block) For non-function blocks, hash the symbol table. For
2986 function blocks, mark the symbol table as unhashed.
2987 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2988 (msymbol_hash_iw): Likewise.
2989 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2991 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2992 (lookup_minimal_symbol): Likewise for both.
2993 * symtab.h (struct block): Add `hashtable' flag. Comment the
2995 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2996 (ALL_BLOCK_SYMBOLS): Update.
2997 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2998 (struct symbol): Add `hash_next' pointer.
2999 * symtab.c (lookup_block_symbol): Search using the hash table when
3001 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3002 (search_symbols, find_addr_symbol): Likewise.
3004 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3005 (read_dst_symtab): Likewise.
3006 * jv-lang.c (get_java_class_symtab): Likewise.
3007 * mdebugread.c: Include "gdb_assert.h".
3008 (shrink_block): Assert that the block being modified is not hashed.
3009 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3010 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3012 (dump_symtab): Recognize hashed blocks.
3013 * printcmd.c (print_frame_args): Assert that function blocks do not
3014 have hashed symbol tables.
3015 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3016 (fill_in_ada_prototype, debug_print_block): Likewise.
3017 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3019 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3021 * stack.c (print_frame): Use result of frame_address_in_block()
3022 instead of fi->pc when evaluating symbols.
3023 (backtrace_command_1): Ditto.
3025 2002-07-11 Andrew Cagney <cagney@redhat.com>
3027 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3030 * arm-tdep.c (arm_register_name): Make return type constant.
3032 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3034 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3036 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3037 * s390-tdep.c (s390_fp_regnum): Ditto.
3038 (s390_read_fp): Ditto.
3039 (s390_pop_frame): Ditto.
3040 (_initialize_s390_tdep): Ditto.
3041 * remote.c (get_remote_state): Ditto.
3042 * procfs.c (mappingflags): Ditto.
3043 * memattr.c (_initialize_mem): Ditto.
3044 * mcore-tdep.c (mcore_pop_frame): Ditto.
3045 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3046 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3047 * language.c (set_case_str): Ditto.
3048 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3049 * frv-tdep.c (new_variant): Ditto.
3050 (frv_stopped_data_address): Ditto.
3051 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3052 (context_alloc): Ditto.
3053 (frame_state_alloc): Ditto.
3054 (unwind_tmp_obstack_init): Ditto.
3055 (unwind_tmp_obstack_free): Ditto.
3056 (cfi_read_fp): Ditto.
3057 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3058 (cris_pop_frame): Ditto.
3059 * c-lang.c (scanning_macro_expansion): Ditto.
3060 (finished_macro_expansion): Ditto.
3061 (c_preprocess_and_parse): Ditto.
3062 * gdbarch.sh: Ditto.
3063 * gdbarch.h, gdbarch.c: Regenerate.
3064 * config/mn10200/tm-mn10200.h: Adjust indentation.
3065 * target.c: Adjust indentation.
3066 * symtab.h: Adjust indentation.
3067 * stabsread.h: Adjust indentation.
3068 * remote-es.c: Adjust indentation.
3069 * os9kread.c: Adjust indentation.
3071 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3073 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3074 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3076 2002-07-10 Grace Sainsbury <graces@redhat.com>
3078 * NEWS: Mention m68k, mcore multi-arching.
3079 * MAINTAINERS: Change status of m68k, mcore to reflect
3082 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3084 * valops.c (find_overload_match): Free oload_syms.
3086 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3088 Define HAVE_SYS_PROC_H if sys/proc.h exists
3089 * configure.in: Add check for sys/proc.h
3090 * config.in: Regenerate.
3091 * configure: Regenerate.
3093 2002-07-09 Grace Sainsbury <graces@redhat.com>
3095 * config/m68k/tm-m68k.h: Remove macros wrapped in
3096 #if !GDB_MULTI_ARCH.
3098 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3100 * config.in, configure: Regenerate.
3102 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3104 * dwarf2cfi.c: Include "gcore.h".
3105 (execute_stack_op): Fix implementation of the
3106 DW_OP_deref and DW_OP_deref_size operators by letting do their
3107 lookup in the target.
3109 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3111 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3112 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3115 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3117 Fix PR gdb/595, gdb/602
3118 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3119 Don't call value_cast, just read the vtable pointer; update comments
3122 2002-07-05 Grace Sainsbury <graces@redhat.com>
3124 * config/mcore/tm-mcore.h: Remove file.
3125 * config/mcore/mcore.mt: Remove definition of TM_FILE
3126 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3128 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3130 * i386bsd-tdep.c: Include "gdb_string.h".
3132 2002-07-04 Grace Sainsbury <graces@redhat.com>
3134 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3135 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3137 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3138 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3139 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3140 (RETVAL_REGNUM): Move macros from tm-mcore.h
3141 (mcore_reg_struct_has_addr): New function.
3142 (mcore_gdbarch_init): Added initializations for the macros removed
3145 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3147 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3148 traditonal string branding within the ELF header.
3150 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3152 * symtab.c (remove_params): New function.
3153 (make_symbol_overload_list): Use it instead of cplus_demangle.
3154 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3156 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3158 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3160 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3162 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3163 and tdep->sigtramp_end.
3164 * i386obsd-nat.c: New file.
3165 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3167 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3168 Don't call get_current_frame().
3170 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3172 * i386-nat.c (child_post_startup_inferior): New function
3173 calling i386_cleanup_dregs if
3174 I386_USE_GENERIC_WATCHPOINTS is defined.
3175 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3176 conditional to acknowledge that i386-nat.c has its
3177 own child_post_startup_inferior function.
3179 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3181 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3182 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3183 instead of MAX_REGISTER_RAW_SIZE.
3184 (i386_extract_return_value, i386_extract_struct_value_address):
3185 Convert to use regcache.
3186 (i386_gdbarch_init): Set max_register_raw_size and
3187 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3188 Set extract_return_value and extract_struct_value_address instead
3189 of their deprecated variants.
3191 Convert i386 target to generic dummy frames.
3192 * i386-tdep.c: Include "symfile.h".
3193 (i386_frameless_signal_p): Consider a function to be frameless if
3194 the pc points at the first instruction of the function.
3195 (i386_frame_chain): Handle (generic) call dummies.
3196 (i386_frame_saved_pc): Likewise.
3197 (i386_frame_init_saved_regs): Remove code dealing with call
3198 dummies on the stack.
3199 (i386_push_dummy_frame): Removed.
3200 (i386_call_dummy_words): Removed.
3201 (i386_fix_call_dummy): Removed.
3202 (i386_push_return_address): New function.
3203 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3204 parameter, and don't call get_current_frame.
3205 (i386_pop_frame): New function.
3206 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3207 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3208 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3209 call_dummy_length to 0, set call_dummy_words to NULL, set
3210 sizeof_call_dummy_words to 0, set fix_call_dummy to
3211 generic_fix_call_dummy, set pc_in_call_dummy to
3212 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3213 generic_push_dummy_frame, set push_return_address to
3214 i386_push_return_address and set frame_chain_valid to
3215 generic_file_frame_chain_valid.
3217 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3219 * gdbarch.sh (struct regcache): Add opaque declaration.
3220 (EXTRACT_RETURN_VALUE): New architecture method.
3221 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3222 * gdbarch.h, gdbarch.c: Regenerate.
3223 * arch-utils.c (legacy_extract_return_value): New function.
3224 * arch-utils.h (legacy_extract_return_value): Declare.
3225 * values.c (value_being_returned): Re-enable code handling
3226 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3227 deprecated_grub_regcache_for_registers call to block handling
3228 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3229 (EXTRACT_RETURN_VALUE): Do not define.
3231 2002-07-03 Grace Sainsbury <graces@redhat.com>
3233 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3234 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3235 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3236 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3237 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3238 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3239 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3240 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3241 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3242 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3243 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3244 argument so the function fits the prototype in the architecture
3246 (mcore_pop_frame): Remove argument so the function fits the
3247 prototype. Use get_current_frame instead of the argument.
3248 (mcore_push_arguments): Change type of struct_return so the
3249 function can be used in the architecture vector.
3250 (mcore_store_struct_return): Add.
3251 (mcore_frame_init_saved_regs): Add.
3252 (mcore_gdbarch_init): Add function calls to replace the macros
3253 removed from tm-mcore.h
3255 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3257 * infcmd.c (print_return_value): Remove compatibility code calling
3258 deprecated_grub_regcache_for_registers.
3260 * values.c: Include "regcache.h".
3261 (value_being_returned): Update. Use
3262 deprecated_grub_regcache_for_registers to extract the register
3264 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3265 ``struct regcache''.
3266 * Makefile.in (values.o): Add dependency on $(regcache_h).
3268 * inferior.h (run_stack_dummy): Change type of second parameter to
3269 a ``struct regcache''.
3270 * valops.c (hand_function_call): Change type of retbuf to ``struct
3271 regcache''. Allocate using regcache_xmalloc, clean using
3272 make_cleanup_regcache_xfree.
3273 * infcmd.c (run_stack_dummy): Update. Use
3274 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3276 * regcache.c (do_regcache_xfree): New function.
3277 (make_cleanup_regcache_xfree): New function.
3278 * regcache.h (make_cleanup_regcache_xfree): Declare.
3280 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3282 * event-top.c (command_line_handler): Don't read past
3283 beginning of buffer.
3285 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3287 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3289 (varobj_create): Store frame_id for root.
3290 (varobj_gen_name): Use xasprintf.
3291 (varobj_update): Save and restore frame using get_frame_id() and
3293 (create_child): Use xasprintf.
3294 (new_root_variable): Initialize frame_id.
3295 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3296 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3297 to prevent memory leak.
3299 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3301 * valops.c (hand_function_call): Move declaration of retbuf to
3302 start of function, allocate using malloc, add a cleanup but before
3303 the inf_status cleanup, cleanup the buffer. Rename local variable
3304 old_chain to inf_status_cleanup.
3306 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3308 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3310 * cli/cli-decode.c (cmd_func_p): New function.
3311 (cmd_func): New function.
3313 * command.h: Add cmd_func() and cmd_func_p().
3315 2002-07-03 Grace Sainsbury <graces@redhat.com>
3317 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3318 (REGISTER_SIZE): Remove.
3319 (MAX_REGISTER_RAW_SIZE): Remove.
3320 (REGISTER_VIRTUAL_TYPE): Remove.
3321 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3322 (REGISTER_NAME): Remove.
3323 (USE_GENERIC_DUMMY_FRAMES): Remove.
3324 (CALL_DUMMY): Remove.
3325 (CALL_DUMMY_START_OFFSET): Remove.
3326 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3327 (CALL_DUMMY_LOCATION): Remove.
3328 (FIX_CALL_DUMMY): Remove.
3329 (CALL_DUMMY_ADDRESS): Remove.
3330 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3331 (SAVE_DUMMY_FRAME_TOS): Remove.
3332 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3333 (mcore_register_virtual_type): New function.
3334 (mcore_register_byte): New function.
3335 (mcore_register_size): New function.
3336 (mcore_register_name): New function.
3337 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3338 macros removed from tm-mcore.h.
3339 (mcore_dump_tdep): Add.
3340 (_initialize_mcore_tdep): Add gdbarch_register call.
3342 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3344 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3345 frameless_look_for_prologue, such that we actually call this
3348 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3350 * frame.h (frame_address_in_block): New function.
3352 * blockframe.c (frame_address_in_block): New function extracted
3353 from get_frame_block().
3354 (get_frame_block): Use frame_address_in_block().
3355 (block_innermost_frame): Use frame_address_in_block() to match
3356 the frame pc address against the block boundaries rather than
3357 the frame pc directly. This prevents a failure when a frame pc
3358 is actually a return-address pointing immediately after the end
3361 2002-07-02 Grace Sainsbury <graces@redhat.com>
3363 * MAINTAINERS: Add self under write after approval.
3365 2002-07-02 Grace Sainsbury <graces@redhat.com>
3367 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3368 used in architecture vector. The default is
3369 m68k_local_breakpoint_from_pc.
3370 (m68k_local_breakpoint_from_pc): Add.
3371 (enum): Add register numbers from tm-m68k.h.
3372 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3374 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3375 GDB_MULTI_ARCH_PARTIAL.
3376 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3377 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3379 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3380 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3381 to enum in m68k-tdep.c
3383 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3385 * solib-osf.c (open_map): Compute the list of shared libraries
3386 loaded by the inferior, rather than the list of libraries loaded
3387 by GDB itself. Otherwise, GDB ends up reading the symbols from
3388 the wrong shared libraries...
3390 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3392 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3393 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3395 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3397 (FRAMELESS_SIGNAL): Remove function.
3398 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3399 i386_linux_saved_pc_after_call): Removed.
3400 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3401 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3402 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3404 * i386-tdep.c (i386_frameless_signal_p): New function.
3405 (i386_frame_chain): Deal with frameless signals.
3406 (i386_sigtramp_saved_sp): New function.
3407 (i386_frame_saved_pc): Deal with frameless signals.
3408 (i386_saved_pc_after_call): Make sure the correct value is
3409 returned just after entry into a sigtramp.
3410 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3411 i386fbsd4_sc_sp_offset): New variables.
3412 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3413 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3414 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3415 similiar to what we already did for sc_pc_offset.
3416 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3419 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3421 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3423 * config/i386/tm-x86-64linux.h: New.
3424 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3426 * config/i386/nm-x86-64.h: Rename to ...
3427 * config/i386/nm-x86-64linux.h: ... this one.
3428 * config/i386/x86-64linux.mh: Reflect the above change.
3430 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3432 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3433 with sigcontext_addr. Add sc_sp_offset.
3434 (i386bsd_sigtramp_saved_pc): Remove prototype.
3435 (i386bsd_sicontext_addr): Add prototype.
3436 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3437 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3438 (i386_svr4_sigtramp_saved_pc): Removed.
3439 (i386_svr4_sigcontext_addr): New function.
3440 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3441 Initialize tdep->sigcontext_addr instead. Initialize
3442 tdep->sc_pc_offset and tdep->sc_sp_offset.
3443 (i386_gdbarch_init): Likewise.
3444 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3446 (i386bsd_sigtramp_saved_pc): Remove function.
3447 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3448 Initialize tdep->sigcontext_addr instead. Initialize
3450 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3451 of tdep->sigtramp_saved_pc.
3452 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3453 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3456 * i386-tdep.c (i386_frameless_function_invocation,
3457 i386_frame_num_args, i386_frame_init_saved_regs,
3458 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3459 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3460 i386_extract_return_value, i386_store_return_value,
3461 i386_extract_struct_value_address, i386_register_virtual_type,
3462 i386_register_convertible, i386_register_convert_to_virtual,
3463 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3464 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3467 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3469 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3471 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3472 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3473 this macro. Include "value.h".
3475 2002-06-30 Aidan Skinner <aidan@velvet.net>
3477 * ada-exp.tab.c: remove as it's a generated file
3478 * ada-lex.c: remove as it's a generated file
3480 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3482 * config/i386/tm-i386.h (struct frame_info, struct
3483 frame_saved_regs, struct value, struct type): Remove forward
3486 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3487 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3488 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3489 (FILL_FPXREGSET): Define.
3491 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3493 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3494 i[3456]86-*-netbsd* case.
3495 * config/i386/tm-obsd.h: Removed.
3496 * config/i386/obsd.mt: Removed.
3497 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3499 (MH_CFLAGS): Add -DYYDEBUG=0.
3501 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3502 i386nbsd_sc_pc_offset on OpenBSD too.
3504 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3505 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3506 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3508 * i386bsd-tdep.c: Include "arch-utils.h".
3509 (i386bsd_aout_in_solib_call_trampoline): New function.
3510 (i386bsd_init_abi): Set in_solib_call_trampoline to
3511 i386bsd_aout_in_solib_call_trampoline.
3512 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3513 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3515 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3517 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3518 (struct obstack, struct bcache): Add opaque declarations.
3519 * Makefile.in (macrotab_h): Update
3521 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3523 * blockframe.c (generic_find_dummy_frame): Change return type to
3524 ``struct regcache''.
3525 (struct dummy_frame): Replace field ``registers'' with regcache, a
3526 struct regcache object.
3527 (generic_find_dummy_frame): Update.
3528 (generic_push_dummy_frame): Update. Use regcache_xfree,
3529 regcache_xmalloc and regcache_cpy.
3530 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3532 (deprecated_generic_find_dummy_frame): Update.
3533 (generic_read_register_dummy): Update. Use
3534 regcache_read_as_address.
3535 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3536 (generic_get_saved_register): Update. Use regcache_read.
3538 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3540 * Makefile.in (objfiles_h): Add $(bcache_h).
3541 * objfiles.h: Include "bcache.h".
3543 * Makefile.in (symtab_h): Remove $(bcache_h).
3544 * symtab.h: Do not include "bcache.h".
3546 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3548 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3549 generic_func_frame_chain_valid.
3551 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3553 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3554 * config/i386/tm-fbsd.h: Likewise.
3556 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3558 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3559 generic_unwind_get_saved_register.
3561 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3563 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3564 * regcache.c (supply_register): Add missing argument to
3565 register_buffer call.
3567 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3569 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3570 Solaris /bin/grep does not not like it. From Peter Schauer.
3572 2002-06-26 Tom Tromey <tromey@redhat.com>
3574 * command.h (add_setshow_cmd): Declare.
3575 (add_setshow_cmd_full): Declare.
3576 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3577 returns void. Use add_setshow_cmd_full.
3578 (add_setshow_cmd_full): New function.
3579 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3580 (add_setshow_boolean_cmd): Likewise.
3582 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3584 * config/vax/tm-vax.h: Protect from multiple inclusion.
3585 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3586 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3587 * config/vax/tm-vaxbsd.h: ...here. New file.
3588 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3590 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3592 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3593 (BELIEVE_PCC_PROMOTION): Remove.
3594 (AP_REGNUM): Move to...
3595 * config/vax/nm-vax.h: ...here.
3596 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3597 (vax_breakpoint_from_pc): New function.
3598 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3599 and gdbarch_believe_pcc_promotion.
3601 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3603 * Makefile.in (vax_tdep_h): Define.
3604 (vax-tdep.o): Use $(vax_tdep_h).
3605 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3606 (vax_dump_tdep): New function.
3607 (_initialize_vax_tdep): Register vax_dump_tdep.
3608 * vax-tdep.h: Include osabi.h.
3609 (struct gdbarch_tdep): New.
3611 2002-06-26 Andrew Cagney <cagney@redhat.com>
3613 * frame.h (deprecated_generic_find_dummy_frame): Rename
3614 generic_find_dummy_frame.
3615 * blockframe.c (generic_find_dummy_frame): Make static.
3616 (deprecated_generic_find_dummy_frame): New function.
3617 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3618 generic_find_dummy_frame with deprecated_find_dummy_frame.
3619 (sh64_nofp_frame_init_saved_regs): Ditto.
3620 (sh_fp_frame_init_saved_regs): Ditto.
3621 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3622 (s390_frame_chain): Ditto.
3623 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3625 2002-06-26 Grace Sainsbury <graces@redhat.com>
3627 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3628 gdbarch vector are at the top.
3630 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3631 (FRAME_ARGS_ADDRESS): Remove.
3632 (FRAME_LOCALS_ADDRESS): Remove.
3633 (FRAME_NUM_ARGS): Remove.
3634 (FRAME_ARGS_SKIP): Remove.
3635 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3636 (m68k_gdbarch_init): Add gdbarch initializations for macros
3637 undefined in tm-m68k.h
3639 2002-06-26 Grace Sainsbury <graces@redhat.com>
3641 * monitor.h: Add the function regname to monitor_ops
3642 structure. This way NUM_REGS does not have to be a constant.
3643 * monitor.c (monitor_fetch_register): Added support for regname
3644 function. The function is called if the array regnames is NULL.
3645 (monitor_store_register): Same.
3646 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3648 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3649 cpu32bug_cmds.regname to point to new function.
3650 * abug-rom.c (abug_regname): Same as above.
3651 (init_abug_cmds): Same.
3652 * dbug-rom.c (dbug_regname): Same as above.
3653 (init_dbug_cmds): Same.
3654 * remote-est.c (est_regname): Same.
3655 (init_est_cmds): Same.
3656 * rom68k-rom.c (rom68k_regname): Same.
3657 (init_rom68k_cmds): Same.
3659 2002-06-25 Tom Tromey <tromey@redhat.com>
3661 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3663 2002-06-25 Andrew Cagney <cagney@redhat.com>
3665 * infrun.c (stop_registers): Change variable's type to ``struct
3667 (xmalloc_inferior_status): Delete function.
3668 (free_inferior_status): Delete function.
3669 (normal_stop): Use regcache_cpy.
3670 (struct inferior_status): Change type of fields ``stop_registers''
3671 and ``registers'' to ``struct regcache''.
3672 (write_inferior_status_register): Use regcache_write.
3673 (save_inferior_status): Instead of calling
3674 xmalloc_inferior_status, allocate the inf_status buffer directly.
3675 Use regcache_dup_no_passthrough and regcache_dup to save the
3677 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3678 Replace the stop_registers regcache instead of overriding it. Use
3679 regcache_xfree. Instead of calling free_inferior_status, xfree
3680 the buffer directly.
3681 (discard_inferior_status): Use regcache_xfree. Instead of calling
3682 free_inferior_status, xfree the buffer directly.
3683 (build_infrun): Use regcache_xmalloc.
3684 (_initialize_infrun): Delete redundant call to build_infrun.
3686 * Makefile.in (infcmd.o): Add $(regcache_h).
3688 * infcmd.c: Include "regcache.h".
3689 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3690 obtain the address of `stop_registers' register buffer.
3691 (print_return_value): Ditto.
3693 * inferior.h (struct regcache): Add opaque declaration.
3694 (stop_registers): Change variable's declared type to ``struct
3697 2002-06-24 Tom Tromey <tromey@redhat.com>
3699 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3700 * target.c (initialize_targets): Fixed typo in
3701 trust-readonly-sections `show' documentation.
3703 * main.c: Marked all strings with _().
3705 2002-06-24 Don Howard <dhoward@redhat.com>
3707 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3708 that means max CORE_ADDR+1.
3709 (lookup_mem_region): Ditto.
3710 (mem_info_command): Ditto.
3712 2002-06-24 Grace Sainsbury <graces@redhat.com>
3714 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3715 (REGISTER_BYTES_OK): Remove.
3716 (REGISTER_BYTES): Remove.
3717 (STORE_STRUCT_RETURN): Remove.
3718 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3719 (STORE_RETURN_VALUE): Remove.
3720 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3721 (FRAME_CHAIN): Remove.
3722 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3723 (FRAME_SAVED_PC): Remove.
3724 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3725 (m68k_store_struct_return): Add.
3726 (m68k_deprecated_extract_return_value): Add.
3727 (m68k_deprecated_extract_struct_value_address): Add.
3728 (m68k_store_return_value): Add.
3729 (m68k_frame_chain): Add.
3730 (m68k_frameless_function_invocation): Add.
3731 (m68k_frame_saved_pc): Add.
3732 (m68k_gdbarch_init): added set_gdbarch calls for new
3733 functions and deleted macros.
3735 2002-06-23 Tom Tromey <tromey@redhat.com>
3737 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3738 (ALLDEPFILES): Likewise.
3739 (udiheaders): Removed.
3740 (udip2soc.o): Likewise.
3741 (udi2go32.o): Likewise.
3743 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3745 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3747 * infrun.c (_initialize_infrun): Delete unnecessary call to
3750 * regcache.h: Update comments describing the regcache_cpy family
3752 (regcache_save, regcache_restore): Delete declaration.
3753 (regcache_save_no_passthrough): Delete declaration.
3754 (regcache_restore_no_passthrough): Delete declaration.
3755 * regcache.c (regcache_save): Delete function.
3756 (regcache_save_no_passthrough): Delete function.
3757 (regcache_restore): Delete function.
3758 (regcache_restore_no_passthrough): Delete function.
3760 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3762 * config/m68k/tm-m68k.h: Fix typo.
3763 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3764 (m68k_frame_init_saved_regs): Declare.
3766 2002-06-21 Jim Blandy <jimb@redhat.com>
3768 Remove some vestiges of Harris 88k support.
3769 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3770 register numbering quirk.
3771 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3772 odd symbols occurring in Harris 88k ELF targets.
3774 2002-06-21 Tom Tromey <tromey@redhat.com>
3776 * gdb_locale.h: New file.
3777 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3778 (defs_h): Added gdb_locale.h.
3779 * configure, config.in: Rebuilt.
3780 * configure.in (PACKAGE): Define.
3781 * defs.h: Include gdb_locale.h.
3782 * main.c (captured_main): Call setlocale, bindtextdomain,
3785 2002-06-21 Dave Brolley <brolley@redhat.com>
3787 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3788 * config/frv/frv.mt: New file.
3789 * config/frv/tm-frv.h: New file.
3790 * configure.tgt: Support frv-*-*.
3791 * Makefile.in (frv-tdep.o): New target.
3792 * frv-tdep.c: New file.
3793 * NEWS: Mention frv.
3795 2002-06-21 Dave Brolley <brolley@redhat.com>
3797 * MAINTAINERS: Add self to "Write After Approval" list.
3799 2002-06-21 Grace Sainsbury <graces@redhat.com>
3801 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3802 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3803 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3804 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3805 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3807 * m68k-tdep.c: Include arch-utils.h
3808 (m68k_register_raw_size): Add.
3809 (m68k_register_virtual_size): Add.
3810 (m68k_register_virtual_type): Add.
3811 (m68k_register_name): Add.
3812 (m68k_stack_align): Add.
3813 (m68k_register_byte): Add.
3814 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3817 2002-06-21 Grace Sainsbury <graces@redhat.com>
3819 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3820 m68k_find_saved_regs.
3821 (m68k_pop_frame): Removed saved_regs structure, and replaced
3822 references to it with frame->saved_regs.
3823 (m68k_gdbarch_init): Added function calls to initialize the
3825 (m68k_fix_call_dummy): Add.
3826 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3827 (CALL_DUMMY): Remove.
3828 (CALL_DUMMY_LENGTH): Remove.
3829 (CALL_DUMMY_START_OFFSET): Remove.
3830 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3831 (FIX_CALL_DUMMY): Remove.
3832 (PUSH_DUMMY_FRAME): Remove.
3833 (POP_FRAME): Remove.
3835 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3837 * parse.c (parse_fprintf): New function used to avoid calls to
3838 fprintf in bison parser generated debug code.
3839 * parser-defs.h: Declaration of new parse_fprintf function.
3840 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3841 Set YYDEBUG to 1 by default.
3842 Set YYFPRINTF as parse_fprintf.
3844 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3846 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3848 (pointer_encoding, enum ptr_encoding): New.
3849 (execute_cfa_program): Take care about pointer encoding.
3850 (dwarf2_build_frame_info): Only call parse_frame_info for
3851 .debug_frame and .eh_frame.
3852 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3853 fixed augmentation handling, added relative addressing,
3854 ignore duplicate FDEs. Added comments.
3855 * dwarf2cfi.c: Reindented.
3857 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3859 * event-top.c (command_handler): Don't use space_at_cmd_start
3860 unless there is sbrk() on the host. Assign time and space data
3861 to union fields of the appropriate length.
3863 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3865 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3866 x86_64_register_name. Return type changed to 'const char *'.
3867 (x86_64_register_name2nr): Rename to x86_64_register_number.
3868 (x86_64_gdbarch_init): Update to reflect the change.
3869 * x86-64-tdep.h: Ditto.
3870 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3871 (supply_fpregset): Ditto.
3873 2002-06-19 Andrew Cagney <cagney@redhat.com>
3875 * regcache.h: Update copyright.
3876 (struct regcache, struct gdbarch): Add opaque declarations.
3877 (current_regcache): Declare global variable.
3878 (regcache_read, regcache_write): Add gdbarch parameter.
3879 (regcache_save, regcache_save_no_passthrough)
3880 (regcache_restore, regcache_restore_no_passthrough)
3881 (regcache_dup, regcache_dup_no_passthrough)
3882 (regcache_cpy, regcache_cpy_no_passthrough)
3883 (deprecated_grub_regcache_for_registers)
3884 (deprecated_grub_regcache_for_register_valid)
3885 (regcache_valid_p): Add function declarations.
3887 * regcache.c: Update copyright.
3888 (regcache_descr_handle): New global variable.
3889 (struct regcache_descr): Define.
3890 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3891 (regcache_descr, xfree_regcache_descr): New functions.
3892 (struct regcache): Define.
3893 (regcache_xmalloc, regcache_xfree): New functions.
3894 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3895 (regcache_dup, regcache_dup_no_passthrough): New functions.
3896 (regcache_valid_p, regcache_read_as_address): New functions.
3897 (deprecated_grub_regcache_for_registers): New function.
3898 (deprecated_grub_regcache_for_register_valid): New function.
3899 (current_regcache): New global variable.
3900 (register_buffer): Add regcache parameter. Update calls.
3901 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3902 (read_register_gen, write_register_gen): Update register_buffer
3903 call. Test for legacy_p instead of gdbarch_register_read_p or
3904 gdbarch_register_write_p.
3905 (regcache_collect): Update register_buffer call.
3906 (build_regcache): Rewrite. Use deprecated grub functions.
3907 (regcache_save, regcache_save_no_passthrough): New functions.
3908 (regcache_restore, regcache_restore_no_passthrough): New
3910 (_initialize_regcache): Create the regcache_data_handle. Swap
3911 current_regcache global variable.
3913 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3914 parameter to regcache_read and regcache_write calls.
3915 (sh4_register_read): Ditto.
3916 (sh64_pseudo_register_read): Ditto.
3917 (sh64_register_read): Ditto.
3918 (sh_pseudo_register_write): Ditto.
3919 (sh4_register_write): Ditto.
3920 (sh64_pseudo_register_write): Ditto.
3921 (sh64_register_write): Ditto.
3923 * defs.h (XCALLOC): Define.
3925 2002-06-19 Grace Sainsbury <graces@redhat.com>
3927 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3928 * m68k-tdep.c (m68k_gdbarch_init): Added.
3929 (m68k_dump_tdep): Added.
3931 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3933 * ada-lang.c (fill_in_ada_prototype): Update comment.
3935 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3937 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3939 (mips_abi_string, mips_abi_strings): New.
3940 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3941 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3942 tdep->mips_abi_string. Honor mips_abi_string. Default to
3943 O32 if no ABI is found.
3944 (mips_dump_tdep): Use mips_abi_strings.
3945 (mips_abi_update): New function.
3946 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3947 ``set mips abi'' and ``show mips abi''. Check the size of
3950 2002-06-19 Andrew Cagney <cagney@redhat.com>
3952 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3955 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3957 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3958 current frame using only the first stack size adjustment. All
3959 subsequent size adjustments are not considered to be part of
3960 the "static" part of the current frame.
3961 Compute the address of the saved registers relative to the
3962 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3963 in use in this frame.
3965 2002-06-18 Don Howard <dhoward@redhat.com>
3967 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3968 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3969 suggesting this solution.
3971 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3973 * config/romp/xm-rtbsd.h: Delete file.
3974 * config/romp/rtbsd.mh: Delete file.
3976 2002-06-18 Keith Seitz <keiths@redhat.com>
3978 * breakpoint.c (condition_command): Post breakpoint_modify
3979 when a condition is added to an existing breakpoint.
3980 (commands_command): Likewise for commands.
3981 (set_ignore_count): Likewise for ignore counts.
3982 If no tty, do not simply return, still need to send event
3984 (ignore_command): Only print a newline if the command came
3986 Don't call breakpoints_changed, since this is now properly
3987 handled by set_ignore_count.
3989 2002-06-18 Andrew Cagney <cagney@redhat.com>
3991 * MAINTAINERS: Note that cris-elf target can be compiled with
3993 * cris-tdep.c (cris_register_name): Make return type constant.
3994 (cris_breakpoint_from_pc): Ditto.
3996 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3998 * frame.h (struct frame_info): Change type of context to
4001 2002-06-17 Andrew Cagney <cagney@redhat.com>
4003 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4005 * gdbarch.h, gdbarch.c: Regenerate.
4006 * config/mips/tm-mips.h (mips_register_name): Update.
4007 * i386-tdep.h (i386_register_name): Update.
4008 * mips-tdep.c (mips_register_name): Update
4009 * alpha-tdep.c (alpha_register_name): Update.
4010 * arch-utils.c (legacy_register_name): Update.
4011 * arch-utils.h (legacy_register_name): Update.
4012 * avr-tdep.c (avr_register_name): Update.
4013 * ia64-tdep.c (ia64_register_name): Update.
4014 * i386-tdep.c (i386_register_name): Update.
4015 * sparc-tdep.c (sparc32_register_name): Update.
4016 (sparc64_register_name): Update.
4017 (sparclite_register_name): Update.
4018 (sparclet_register_name): Update.
4019 * sh-tdep.c (sh_generic_register_name): Update.
4020 (sh_sh_register_name): Update.
4021 (sh_sh3_register_name): Update.
4022 (sh_sh3e_register_name): Update.
4023 (sh_sh_dsp_register_name): Update.
4024 (sh_sh3_dsp_register_name): Update.
4025 (sh_sh4_register_name): Update.
4026 (sh_sh64_register_name): Update.
4027 * s390-tdep.c (s390_register_name): Update.
4028 * rs6000-tdep.c (rs6000_register_name): Update.
4029 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4030 (ns32k_register_name_32382): Update.
4031 * d10v-tdep.c (d10v_ts2_register_name): Update.
4032 (d10v_ts3_register_name): Update.
4033 * xstormy16-tdep.c (xstormy16_register_name): Update.
4034 * vax-tdep.c (vax_register_name): Update.
4035 * v850-tdep.c (v850_register_name): Update.
4036 * m68hc11-tdep.c (m68hc11_register_name): Update.
4037 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4038 (am33_register_name): Update.
4040 2002-06-17 Grace Sainsbury <graces@redhat.com>
4042 * m68k-tdep.c: Reindented.
4044 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4046 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4047 list of predefined types.
4049 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4051 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4052 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4053 REGISTER_CONVERT_TO_RAW): Remove defines.
4054 (i386_register_virtual_type, i386_register_convertible,
4055 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4057 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4058 macros mentioned above.
4060 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4061 (i386lynx_saved_pc_after_call): Remove prototype.
4062 * i386ly-tdep.c: Include "i386-tdep.h".
4063 (i386lynx_saved_pc_after_call): Make static. Use
4064 read_memory_nobpt instead of read_memory. Use
4065 read_memory_unsigned_integer instead of read_memory_integer.
4066 (i386lynx_init_abi): New function.
4067 (i386lynx_coff_osabi_sniffer): New function.
4068 (_initialize_i386bsd_tdep): New function.
4070 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4071 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4072 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4073 (i386_fix_call_dummy): Remove prototype.
4074 * i386-tdep.c (i386_call_dummy_words): New variable.
4075 (i386_gdbarch_init): Adjust for removal of the
4076 macros mentioned above.
4078 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4080 * command.h (add_setshow_auto_boolean_cmd): Replace
4081 add_set_auto_boolean_cmd.
4082 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4083 add_set_auto_boolean_cmd.
4084 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4085 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4086 mask-address'' command.
4087 (show_mask_address): Add cmd parameter.
4088 * remote.c (add_packet_config_cmd): Update. Change type of
4089 set_func and show_func to cmd_sfunc_ftype.
4090 (_initialize_remote): Update `set remote Z-packet'
4091 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4092 (show_remote_protocol_e_packet_cmd): Ditto.
4093 (show_remote_protocol_E_packet_cmd): Ditto.
4094 (show_remote_protocol_P_packet_cmd): Ditto.
4095 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4096 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4097 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4098 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4099 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4100 (show_remote_protocol_Z_packet_cmd): Ditto.
4101 (show_remote_protocol_binary_download_cmd): Ditto.
4102 (show_remote_cmd): Pass NULL to all of above.
4104 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4106 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4107 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4108 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4109 POP_FRAME): Remove defines.
4110 (i386_push_arguments, i386_store_struct_return,
4111 i386_extract_return_value, i386_store_return_value,
4112 i386_extract_struct_value_address, i386_push_dummy_frame,
4113 i386_pop_frame): Renove prototypes.
4114 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4115 macros mentioned above.
4117 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4119 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4120 add_set_boolean_cmd.
4121 (add_setshow_cmd): New function.
4122 * command.h (add_setshow_boolean_cmd): Replace
4123 add_set_boolean_cmd.
4124 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4125 and ``set rdiromatzero''.
4126 * maint.c (_initialize_maint_cmds): Update commented out code.
4127 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4128 * target.c (initialize_targets): Update `set
4129 trust-readonly-sections'.
4130 * remote.c (_initialize_remote): Update `set remotebreak'.
4132 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4134 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4135 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4136 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4137 fit into multi-arch framework.
4138 (i386_breakpoint_from_pc): New function.
4139 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4142 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4143 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4144 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4145 (i386_frameless_function_invocation, i386_frame_num_args,
4146 i386_frame_init_saved_regs): Remove prototypes.
4147 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4148 macros mentioned above.
4150 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4152 * cli/cli-decode.c (set_cmd_cfunc): Update.
4153 (set_cmd_sfunc): Update.
4154 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4155 (set_cmd_sfunc, set_cmd_cfunc): Update.
4156 * cli/cli-decode.h: Update.
4158 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4160 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4161 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4163 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4165 * defs.h (auto_boolean): Declare enum.
4166 * command.h (cmd_auto_boolean): Delete enum.
4167 * mips-tdep.c (mask_address_var): Update.
4168 (mips_mask_address_p): Update.
4169 (show_mask_address): Update.
4170 * remote.c (struct packet_config): Update.
4171 (update_packet_config): Update.
4172 (show_packet_config_cmd): Update.
4173 (packet_ok): Update.
4174 (add_packet_config_cmd): Update.
4175 (_initialize_remote):
4176 * command.h: Update.
4177 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4178 (do_setshow_command): Update.
4179 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4180 * cli/cli-decode.h: Update.
4182 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4184 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4185 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4186 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4187 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4188 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4189 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4191 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4192 list of DJGPP COFF targets.
4194 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4195 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4196 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4197 (FP0_REGNUM): Remove define.
4198 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4199 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4200 (i386_register_virtual_size): Remove protoype.
4201 * i386-tdep.c (i386_register_virtual_size): Removed.
4202 (i386_extract_return_value, i386_store_return_value): Use
4203 FP0_REGNUM instead of NUM_FREGS to determine whether the
4204 floating-point registers are available.
4205 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4206 Adjust for removal of macros mentioned above.
4208 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4210 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4212 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4214 (supply_gregset, fill_gregset): Remove use of register keyword and
4215 remove declaration for regmap. Use I386_NUM_GREGS instead of
4216 NUM_REGS and NUM_FREGS.
4217 (FPREGSET_FSAVE_OFFSET): Remove.
4218 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4219 NUM_FREGS to determine whether the floating-point registers are
4222 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4223 gnu_store_registers): Replace usage of NUM_GREGS with
4226 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4227 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4228 usage of NUM_GREGS with I386_NUM_GREGS.
4230 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4232 * i386bsd-nat.c: Include "i386-tdep.h".
4233 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4236 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4237 and associated comment. They no longer make any sense, since we
4238 don't use this file anymore on Linux.
4240 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4241 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4242 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4243 elements in these arrays.
4244 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4247 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4249 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4250 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4252 2002-06-14 Andrew Cagney <cagney@redhat.com>
4254 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4255 EXTRACT_RETURN_VALUE.
4256 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4257 EXTRACT_STRUCT_VALUE_ADDRESS.
4258 * gdbarch.h, gdbarch.c: Regenerate.
4260 * values.c (value_being_returned): Handle
4261 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4262 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4264 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4265 * arm-tdep.c (arm_gdbarch_init): Update.
4266 * avr-tdep.c (avr_gdbarch_init): Update.
4267 * cris-tdep.c (cris_gdbarch_init): Update.
4268 * d10v-tdep.c (d10v_gdbarch_init): Update.
4269 * ia64-tdep.c (ia64_gdbarch_init): Update.
4270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4272 * s390-tdep.c (s390_gdbarch_init): Update.
4273 * sh-tdep.c (sh_gdbarch_init): Update.
4274 * s390-tdep.c (s390_gdbarch_init): Update.
4275 * sparc-tdep.c (sparc_gdbarch_init): Update.
4276 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4277 * v850-tdep.c (v850_gdbarch_init): Update.
4278 * vax-tdep.c (vax_gdbarch_init): Update.
4279 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4280 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4282 * config/arc/tm-arc.h: Update.
4283 * config/d30v/tm-d30v.h: Update.
4284 * config/fr30/tm-fr30.h: Update.
4285 * config/h8300/tm-h8300.h: Update.
4286 * config/h8500/tm-h8500.h: Update.
4287 * config/i386/tm-i386.h: Update.
4288 * config/i386/tm-ptx.h: Update.
4289 * config/i386/tm-symmetry.h: Update.
4290 * config/i960/tm-i960.h: Update.
4291 * config/m32r/tm-m32r.h: Update.
4292 * config/m68k/tm-delta68.h: Update.
4293 * config/m68k/tm-linux.h: Update.
4294 * config/m68k/tm-m68k.h: Update.
4295 * config/m88k/tm-m88k.h: Update.
4296 * config/mcore/tm-mcore.h: Update.
4297 * config/mips/tm-mips.h: Update.
4298 * config/mn10200/tm-mn10200.h: Update.
4299 * config/pa/tm-hppa.h: Update.
4300 * config/pa/tm-hppa64.h: Update.
4301 * config/sparc/tm-sp64.h: Update.
4302 * config/sparc/tm-sparc.h: Update.
4303 * config/sparc/tm-sparclet.h: Update.
4304 * config/z8k/tm-z8k.h: Update.
4306 2002-06-14 Andrew Cagney <cagney@redhat.com>
4308 * Makefile.in (i386_linux_tdep_h): Define.
4309 (i386_tdep_h, i387_tdep_h): Define.
4310 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4311 $(i386_tdep_h) and $(i387_tdep_h).
4312 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4314 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4316 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4317 Already covered by the default.
4319 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4320 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4321 (i386_gdbarch_init): Initialize long_double_format and long_double
4324 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4325 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4327 * config/i386/i386sol2.mh: ... here.
4328 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4329 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4330 (SIGCONTEXT_PC_OFFSET): Remove define.
4331 (IN_SIGTRAMP): Remove define.
4332 * i386-sol2-tdep.c: New file.
4334 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4335 * config/i386/tm-i386nw.h: Removed.
4337 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4338 USE_STRUCT_CONVENTION): Remove defines.
4339 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4340 (get_longjmp_target): Remove prototype.
4341 (IN_SIGTRAMP): Remove define.
4342 (i386bsd_in_sigtramp): Remove prototype.
4343 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4344 function. Update comment accordingly
4345 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4346 (FRAME_SAVED_PC): Remove define.
4347 (i386bsd_frame_saved_pc): Remove prototype.
4348 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4349 GET_LONGJMP_TARGET): Remove defines.
4350 (get_longjmp_target): Remove prototype.
4351 (IN_SIGTRAMP): Remove define.
4352 (i386bsd_in_sigtramp): Remove prototype.
4353 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4354 function. Update comment accordingly
4355 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4356 (FRAME_SAVED_PC): Remove define.
4357 (i386bsd_frame_saved_pc): Remove prototype.
4358 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4360 (USE_STRUCT_CONVENTION): Remove prototype.
4361 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4363 (_initialize_i386bsd_nat): Revise logic to determine some
4364 constants at compile time when compiling a native GDB. Warn if
4365 things don't match up with what we expect.
4366 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4368 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4369 to use date stored in `struct gdbarch_tdep'.
4370 (i386bsd_sigcontext_offset): Remove varaible.
4371 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4372 stored in `struct gdbarch_tdep'.
4373 (i386bsd_frame_saved_pc): Make static.
4374 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4375 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4376 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4377 i386fbsd4_sc_pc_offset): New variables.
4378 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4379 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4381 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4383 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4384 Modify the value of i386fbsd_sigtramp_start and
4385 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4386 i386fbsd_sigtramp_end.
4387 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4390 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4391 define to i386-linux-tdep.h.
4392 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4393 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4395 (i386_linux_register_name, i386_linux_register_byte,
4396 i386_linux_register_raw_size): Remove prototypes.
4397 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4398 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4399 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4400 TARGET_WRITE_PC): Remove defines.
4401 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4402 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4403 i386_linux_write_pc): Remove prototypes.
4404 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4405 (get_longjmp_target): Remove prototype.
4406 * i386-linux-tdep.h: New file.
4407 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4408 * i386-linux-tdep.c: Include "i386-tdep.h" and
4409 "i386-linux-tdep.h".
4410 (i386_linux_register_name, i386_linux_register_byte,
4411 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4412 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4414 (i386_linux_init_abi): New function.
4415 (_initialize_i386_linux_tdep): New function.
4417 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4418 (i386_saved_pc_after_call): Remove prototype.
4419 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4420 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4421 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4422 (i386_register_name, i386_stab_reg_to_regnum,
4423 i386_dwarf_reg_to_regnum): Remove prototypes.
4424 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4425 SIZEOF_SSE_REGS): Remove defines.
4426 (REGISTER_BYTES): Remove define.
4427 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4428 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4429 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4430 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4431 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4432 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4433 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4434 (get_longjmp_target): Remove prototype.
4435 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4436 (sigtramp_saved_pc): Remove define.
4437 (i386v4_sigtramp_saved_pc): Remove prototype.
4438 * config/i386/tm-go32.h (FRAME_CHAIN,
4439 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4440 (i386go32_frame_saved_pc): Remove prototype.
4441 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4442 (get_longjmp_target): Remove prototype.
4443 * i386-tdep.h: Include "osabi.h".
4444 (enum i386_abi): Removed.
4445 (enum struct_return): New enum.
4446 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4447 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4448 sc_pc_offset members.
4449 (i386_gdbarch_register_os_abi): Remove prototype.
4450 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4451 I386_SSE_NUM_REGS): New defines.
4452 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4453 I386_SSE_SIZEOF_REGS): New defines.
4454 (i386_register_name, i386_register_byte, i386_register_raw_size):
4456 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4457 (i386bsd_sigtramp_saved_pc): New prototype.
4458 * i386-tdep.c: Don't include "elf-bfd.h".
4459 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4460 i386_frame_chain, i386_saved_pc_after_call): Make static.
4461 (i386_frame_saved_pc): Rewrite to call architecture dependent
4462 function to deal with signal handlers. Make static.
4463 (i386go32_frame_saved_pc): Removed.
4464 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4466 (i386_get_longjmp_target): New function.
4467 (default_struct_convention, pcc_struct_convention,
4468 reg_struct_convention, valid_conventions, struct_convention): New
4470 (i386_use_struct_convention): New function.
4471 (i386v4_sigtramp_saved_pc): Renamed to
4472 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4473 (i386_pc_in_sigtramp): New function.
4474 (i386_abi_names): Removed.
4475 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4476 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4478 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4479 i386_gdbarch_register_os_abi): Removed.
4480 (struct i386_abi_handler): Removed.
4481 (i386_abi_handler_list): Removed.
4482 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4484 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4485 i386_nw_init_abi): New functions.
4486 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4487 Use set_gdbarch_xxx() calls instead of relying on macros for a
4489 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4490 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4491 Register the various architecture variants defined in this file.
4493 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4495 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4496 (struct main_type): Remove arg_types member. Update comments for
4498 (TYPE_ARG_TYPES): Remove.
4499 (TYPE_FN_FIELD_ARGS): Update.
4500 (smash_to_method_type): Update prototype.
4502 * c-typeprint.c (cp_type_print_method_args): Take method type
4503 instead of argument list. Use new argument layout. Simplify.
4504 (c_type_print_args): Use new argument layout. Simplify.
4505 (c_type_print_base): Update call to cp_type_print_method_args.
4506 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4507 argument; use die->type instead. Update call to
4508 smash_to_method_type.
4509 (read_structure_scope): Update call to dwarf2_add_member_fn.
4510 * gdbtypes.c (allocate_stub_method): Update comment.
4511 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4512 Use new argument layout.
4513 (check_stub_method): Use new argument layout. Don't count
4514 void as an argument.
4515 (print_arg_types): Update comments. Use new argument layout.
4516 (recursive_dump_type): Don't print arg_types member.
4517 * hpread.c (hpread_read_struct_type): Use new argument layout.
4518 (fixup_class_method_type): Likewise.
4519 (hpread_type_lookup): Likewise.
4520 * stabsread.c (read_type): Update calls to read_args and
4521 smash_to_method_type.
4522 (read_args): Use new argument layout. Simplify.
4523 * valops.c (typecmp): Use new argument layout. Update parameters
4524 and comments. Simplify.
4525 (hand_function_call): Use new argument layout.
4526 (search_struct_method): Update call to typecmp.
4527 (find_overload_match): Use new argument layout.
4529 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4531 * NEWS: Mention multithreaded debug support for gdbserver.
4533 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4535 * MAINTAINERS: Mention NEWS.
4537 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4539 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4540 (struct mips_objfile_private, compare_pdr_entries): New.
4541 (non_heuristic_proc_desc): Read the ".pdr" section if it
4544 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4546 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4547 (arm_debug): New static variable.
4548 (_initialize_arm_tdep): Add ``set debug arm'' command.
4550 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4552 * Makefile.in (sim_arm_h): Define.
4553 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4554 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4555 (arm_register_sim_regno): New function, map an internal REGNUM
4556 onto a simulator register number.
4557 (arm_gdbarch_init): Set register_sim_regno.
4559 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4561 * MAINTAINERS: Add self.
4563 2002-06-11 Jim Blandy <jimb@redhat.com>
4565 * source.c (source_info): Mention whether the symtab has
4566 information about preprocessor macros.
4568 Call the command `info macro', not `show macro'.
4569 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4571 (_initialize_macrocmd): Register `info_macro_command' in
4572 `infolist', not `showlist'.
4574 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4576 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4577 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4578 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4579 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4580 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4582 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4583 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4584 (_initialize_mips_tdep): Remove dead code.
4585 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4586 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4587 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4588 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4589 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4590 MIPS_LAST_FP_ARG_REGNUM): Remove.
4592 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4594 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4595 (unwind_tmp_obstack_free, parse_frame_info)
4596 (update_context, cfi_read_fp, cfi_write_fp)
4597 (cfi_frame_chain, cfi_init_extra_frame_info)
4598 (cfi_virtual_frame_pointer): Use the above function.
4599 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4601 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4603 * v850-tdep.c (v850_type_is_scalar): New function.
4604 (v850_use_struct_convention): Match current gcc implementation
4605 as close as possible.
4606 (v850_push_arguments): Fix stack_offset handling. Don't write
4607 struct_addr into register. This is done by v850_store_struct_return.
4608 (v850_extract_return_value): Care for structs.
4609 (v850_store_return_value): Ditto.
4610 (v850_store_struct_return): Actually write address.
4612 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4614 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4615 without debug information too.
4617 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4619 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4620 Make multi-arch pure.
4621 * gdbarch.h, gdbarch.c: Re-generate.
4622 * arm-tdep.c (arm_print_float_info): Update.
4623 * arch-utils.h (default_print_float_info): Update.
4624 * arch-utils.c (default_print_float_info): Update.
4625 * infcmd.c (float_info): Update call.
4627 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4629 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4630 the front of the initialize list.
4632 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4634 * infrun.c (struct inferior_status): Replace fields
4635 selected_frame_address and selected_level with field
4637 (save_inferior_status): Update. Use get_frame_id.
4638 (struct restore_selected_frame_args): Delete.
4639 (restore_selected_frame): Update. Use frame_find_by_id.
4640 (restore_inferior_status): Update.
4642 * breakpoint.h (struct breakpoint): Change type of
4643 watchpoint_frame to frame_id.
4644 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4645 call to get_current_frame.
4646 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4648 (watchpoint_check): Use frame_find_by_id.
4650 * frame.h (record_selected_frame): Delete declaration.
4651 * stack.c (record_selected_frame): Delete function.
4653 * frame.h (struct frame_id): Define.
4654 (get_frame_id): Declare.
4655 (frame_find_by_id): Declare.
4656 * frame.c (frame_find_by_id): New function.
4657 (get_frame_id): New function.
4659 2002-06-10 Andrey Volkov <avolkov@transas.com>
4661 * ser-e7kpc.c: Fix duplicated define and call of
4662 _initialize_ser_e7000pc
4664 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4666 * signals/signals.c (target_signal_from_host): Fix #ifdef
4668 (do_target_signal_to_host): Likewise.
4670 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4672 * mips-tdep.c (mips_find_abi_section): New function.
4673 (mips_gdbarch_init): Call it.
4675 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4677 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4678 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4679 after Andrew's 2002-06-08 gdbarch change.
4681 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4683 * i386-linux-nat.c (suppy_gregset): Don't supply
4684 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4686 (fill_gregset): Don't fetch it under the same circumstances.
4688 2002-06-09 Andrew Cagney <cagney@redhat.com>
4690 * Makefile.in (callback_h): Define.
4691 (remote_sim_h): Update path to remote-sim.h.
4692 (remote-rdp.o): Add $(callback_h).
4693 (remote-sim.o): Use $(callback_h).
4694 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4695 * remote-rdp.c: Include "gdb/callback.h".
4697 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4699 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4700 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4702 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4704 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4705 * rdi-share/serpardr.c: Ditto.
4706 * rdi-share/unixcomm.c: Ditto.
4707 * rdi-share/serdrv.c: Ditto.
4708 * rdi-share/hostchan.h: Ditto.
4709 * rdi-share/hostchan.c: Ditto.
4710 * rdi-share/host.h: Ditto.
4711 * rdi-share/devsw.c: Ditto.
4713 * objfiles.h: Change type of obj_private to void pointer.
4714 * pa64solib.c: Update copyright. Don't include "assert.h", use
4715 strcmp instead of STREQ, use LONGEST, do not use PTR
4716 * somsolib.c: Ditto.
4718 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4719 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4720 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4722 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4724 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4725 (default_get_saved_register): Delete function.
4726 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4727 generic_unwind_get_saved_register.
4728 * gdbarch.h, gdbarch.c: Re-generate.
4730 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4732 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4733 generic_func_frame_chain_valid.
4734 * gdbarch.h, gdbarch.c: Re-generate.
4735 * blockframe.c (generic_func_frame_chain_valid): Only check
4736 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4737 passing FP to PC_IN_CALL_DUMMY.
4740 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4742 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4743 (register_gdbarch_data): Initialize init_p.
4744 (gdbarch_data): Initialize data pointer using the init function.
4745 (init_gdbarch_data): Delete function.
4746 (gdbarch_update_p): Update.
4747 (initialize_non_multiarch): Update.
4748 (struct gdbarch): Add field initialized_p.
4749 * gdbarch.h, gdbarch.c: Re-generate.
4751 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4753 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4754 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4755 better do the things actually here.
4756 * x86-64-tdep.c (x86_64_register_name2nr): New.
4757 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4758 (x86_64_gdbarch_init): Respect the above change.
4759 * x86-64-tdep.h (x86_64_register_name2nr)
4760 (x86_64_register_nr2name): Add prototypes.
4761 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4763 2002-06-06 Michael Snyder <msnyder@redhat.com>
4765 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4766 Delete extra braces and re-indent.
4767 (d10v_store_return_value): Char return values
4768 must be shifted over by one byte in R0.
4769 (d10v_extract_return_value): Delete extra braces, re-indent.
4771 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4773 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4774 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4775 (d10v_integer_to_address): Rewrite.
4776 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4777 the d10v specific functions which take care of converting to the
4780 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4782 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4783 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4785 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4787 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4789 * config/tm-linux.h: Ditto.
4790 * config/alpha/tm-alphalinux.h: Ditto.
4791 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4792 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4793 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4794 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4795 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4796 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4797 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4798 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4799 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4800 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4801 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4802 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4803 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4804 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4805 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4806 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4807 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4808 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4809 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4810 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4811 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4812 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4813 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4814 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4815 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4816 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4817 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4818 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4819 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4820 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4821 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4822 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4823 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4824 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4825 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4826 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4827 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4829 2002-05-04 Aidan Skinner <aidan@velvet.net>
4831 * ada-exp.tab.c: New file
4832 * ada-exp.y: New file
4833 * ada-lang.c: New file
4834 * ada-lang.h: New file
4835 * ada-lex.c: New file
4836 * ada-lex.l: New file
4837 * ada-tasks.c: New file
4838 * ada-typeprint.c: New file
4839 * ada-valprint.c: New file
4841 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4843 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4844 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4846 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4848 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4849 insetead of ppc-linux-tdep.o.
4850 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4851 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4853 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4855 2002-05-07 Christian Groessler <chris@groessler.org>
4856 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4857 bit register contents for little endian hosts.
4859 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4861 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4864 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4866 * gdbarch.h: Regenerate.
4868 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4870 * MAINTAINERS: Add everyone to write-after-approval list.
4872 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4874 * stack.c (frame_info): Use frame_register_unwind instead of
4875 saved_regs. Mention when the SP is on the stack or in a register.
4877 * frame.h (frame_register_unwind_ftype): Define. Document.
4878 (struct frame_info): Add field register_unwind and
4879 register_unwind_cache.
4880 (frame_register_unwind): Declare.
4881 (generic_unwind_get_saved_register): Declare.
4883 * frame.c (frame_register_unwind): New function.
4884 (generic_unwind_get_saved_register): New function.
4886 * blockframe.c (generic_call_dummy_register_unwind): New function.
4887 (frame_saved_regs_register_unwind): New function.
4888 (set_unwind_by_pc): New function.
4889 (create_new_frame): New function.
4890 (get_prev_frame): New function.
4892 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4894 * a29k-share/: Delete directory.
4895 * remote-vx29k.c: Delete file.
4897 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4899 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4900 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4902 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4904 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4905 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4908 (sparcnbsd-tdep.o): New dependency lists.
4909 * NEWS: Note new UltraSPARC NetBSD native configuration.
4910 * configure.host (sparc64-*-netbsd*): New host.
4911 * configure.tgt (sparc-*-netbsdelf*)
4912 (sparc-*-netbsd*): Set gdb_target to nbsd.
4913 (sparc64-*-netbsd*): New target.
4914 * sparc64nbsd-nat.c: New file.
4915 * sparcnbsd-nat.c: New file.
4916 * sparcnbsd-tdep.c: New file.
4917 * sparcnbsd-tdep.h: New file.
4918 * config/sparc/nbsd.mt: New file.
4919 * config/sparc/nbsd64.mh: New file.
4920 * config/sparc/nbsd64.mt: New file.
4921 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4922 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4924 * config/sparc/nbsdaout.mt: Remove.
4925 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4926 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4928 * config/sparc/nbsdelf.mt: Remove.
4929 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4930 sparc-nat.c compatiblity defines.
4931 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4932 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4933 * config/sparc/tm-nbsd64.h: New file.
4934 * config/sparc/tm-nbsdaout.h: Remove.
4935 * config/sparc/xm-nbsd.h: Remove.
4937 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4939 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4940 * sparc-tdep.c: Include osabi.h.
4941 (gdbarch_tdep): Add osabi member.
4942 (_initialize_sparc_tdep): Use gdbarch_register.
4943 (sparc_gdbarch_init): Use generic OS ABI framework.
4944 (sparc_dump_tdep): New function.
4946 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4948 * corefile.c (do_captured_read_memory_integer): Return non-zero
4950 (safe_read_memory_integer): Copy result of memory read when
4951 status is non-zero. Also, add comments.
4953 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4955 * Makefile.in (ppc_tdep_h): Define.
4958 (rs6000-tdep.o): Use $(ppc_tdep_h).
4961 (ppcnbsd-tdep.o): New dependency lists.
4962 * ppc-tdep.h: Use generic OS ABI framework.
4963 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4964 (ppc_linux_init_abi): New functions.
4965 (ppc_sysv_abi_broken_use_struct_convention)
4966 (ppc_sysv_abi_use_struct_convention)
4967 (ppc_sysv_abi_push_arguments): Move to...
4968 * ppc-sysv-tdep.c: ...here.
4969 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4970 * rs6000-tdep.c (process_note_abi_tag_sections)
4971 (get_elfosabi): Remove.
4972 (rs6000_gdbarch_init): Use generic OS ABI framework.
4973 (rs6000_dump_tdep): New function.
4974 (_initialize_rs6000_tdep): Use gdbarch_register.
4975 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4976 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4977 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4978 of ppc-linux-tdep.o.
4979 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4980 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4981 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4982 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4983 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4984 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4986 2002-05-29 Jim Blandy <jimb@redhat.com>
4988 * macroscope.c (default_macro_scope): Put `void' in empty argument
4991 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4993 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4994 * arch-utils.c: Include "sim-regno.h".
4995 * gdbarch.sh: Don't include "sim-regno.h".
4996 * gdbarch.h, gdbarch.c: Regenerate.
4997 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4999 * arch-utils.h (legacy_register_sim_regno): To here.
5000 * remote-sim.c (legacy_register_sim_regno): Move function from
5002 * arch-utils.c (legacy_register_sim_regno): To here.
5004 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5006 * sim-regno.h: New file.
5007 * Makefile.in (sim_regno_h): Define.
5008 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5009 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5010 (legacy_register_sim_regno): New function.
5011 (one2one_register_sim_regno): New function.
5012 (gdbsim_fetch_register): Rewrite.
5013 (gdbsim_store_register): Only store a register when
5014 REGISTER_SIM_REGNO is valid.
5015 * d10v-tdep.c: Include "sim-regno.h".
5016 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5017 (d10v_ts3_register_sim_regno): Ditto.
5018 * gdbarch.sh: Include "sim-regno.h".
5019 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5020 * gdbarch.h, gdbarch.c: Regenerate.
5021 * arch-utils.h (default_register_sim_regno): Delete declaration.
5022 * arch-utils.c (default_register_sim_regno): Delete function.
5024 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5026 * ppcnbsd-nat.c: Rewrite.
5027 * ppcnbsd-tdep.c: New file.
5028 * ppcnbsd-tdep.h: New file.
5029 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5030 solib.o, and solib-svr4.o.
5031 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5032 nbsd-tdep.o, and corelow.o.
5034 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5036 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5037 `tr' and `sed'. Mention that `broken' targets are not expected to
5040 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5042 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5043 Let PC point right after the prologue before looking up symbols.
5045 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5047 * i386-tdep.c (i386_register_virtual_type): Return
5048 builtin_type_vec128i for SSE registers.
5050 * gdbtypes.h (builtin_type_vec128i): Declare.
5052 * gdbtypes.c (build_builtin_type_vec128i): New function.
5053 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5054 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5055 (build_gdbtypes): Initialize new builtin vector types.
5056 (_initialize_gdbtypes): Register new vector types with gdbarch.
5058 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5060 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5061 since it has been multi-arch'd.
5062 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5063 Move Alpha and VAX multi-arch news entries to same section
5064 as other multi-arch news.
5066 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5068 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5069 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5070 static. Rename some register numbers to put them in ns32k-tdep
5072 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5073 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5075 (_initialize_ns32k_tdep): Use gdbarch_register.
5076 * ns32k-tdep.h: New file.
5077 * ns32knbsd-tdep.c: New file.
5078 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5079 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5080 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5081 REGISTER_BYTES, REGISTER_BYTE): Remove.
5082 * config/ns32k/tm-ns32k.h: New file.
5083 * config/ns32k/tm-umax.h: Remove.
5085 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5087 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5088 ns32k_store_struct_return, ns32k_extract_return_value,
5089 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5091 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5092 ns32k_saved_pc_after_call.
5093 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5094 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5095 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5096 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5097 ns32k_extract_struct_value_address.
5099 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5101 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5102 ns32k_fix_call_dummy): New.
5103 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5104 ns32k_call_dummy_words.
5105 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5106 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5107 CALL_DUMMY_NARGS): Remove.
5108 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5110 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5112 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5113 ns32k_frame_saved_pc, ns32k_frame_args_address,
5114 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5115 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5116 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5117 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5118 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5119 (BREAKPOINT): Remove..
5120 (FRAME_CHAIN): Define as ns32k_frame_chain.
5121 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5122 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5123 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5124 (FRAME_FIND_SAVED_REGS): Remove.
5125 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5126 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5127 (POP_FRAME): Define as ns32k_pop_frame.
5129 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5131 * ns32k-tdep.c (ns32k_register_byte_32082,
5132 ns32k_register_byte_32382, ns32k_register_raw_size,
5133 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5135 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5136 ns32k_register_byte_32382.
5137 * config/ns32k/tm-umax.h: Update copyright years.
5138 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5139 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5140 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5141 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5142 (ns32k_get_enter_addr): Fix prototype.
5144 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5146 * ns32k-tdep.c: Update copyright years.
5147 (ns32k_register_name_32082): New function.
5148 (ns32k_register_name_32382): Ditto.
5149 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5150 (REGISTER_NAME): Define as ns32k_register_name_32382.
5151 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5152 (REGISTER_NAME): Define as ns32k_register_name_32082.
5154 2002-05-24 Jim Blandy <jimb@redhat.com>
5156 * dwarf2read.c (free_line_header): Use xfree, not free.
5158 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5160 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5161 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5163 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5165 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5167 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5169 From Ross Alexander at NEC Europe:
5170 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5172 2002-05-23 Michael Snyder <msnyder@redhat.com>
5174 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5175 for input, rather than parse_and_eval_address.
5177 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5179 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5180 * Makefile.in (sim_d10v_h): Update definition.
5182 2002-05-24 Andrew Cagney <cagney@redhat.com>
5184 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5185 change `2002-05-22 Michael Snyder' below.
5186 (d10v_push_arguments): Ditto.
5187 (d10v_extract_return_value): Ditto.
5189 2002-05-23 Jim Blandy <jimb@redhat.com>
5191 * macrotab.c (check_for_redefinition): Don't complain if the new
5192 definition is the same as the previous one. Take more arguments
5193 to allow the comparison.
5194 (macro_define_object, macro_define_function): Pass more arguments
5195 to check_for_redefinition.
5197 2002-05-22 Michael Snyder <msnyder@redhat.com>
5199 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5200 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5201 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5202 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5203 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5204 Add a temp variable to save a call (and a memory read).
5205 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5206 if possible (so that PC_IN_CALL_DUMMY will work).
5208 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5210 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5212 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5214 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5216 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5217 (dwarf2_build_frame_info): Add offset to fde->initial_location
5218 so that frames of shared libraries are mapped correctly.
5219 (execute_stack_op): Change type of 'result' from ULONGEST to
5222 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5224 * config/alpha/tm-nbsd.h: Include solib.h.
5226 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5228 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5229 assumptions about the host's byte order.
5231 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5233 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5235 * alphanbsd-tdep.c: Include solib-svr4.h.
5236 * shnbsd-tdep.c: Ditto.
5238 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5240 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5241 nbsd-tdep.h to dependency list.
5242 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5243 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5244 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5245 nbsdaout.mh and nbsdelf.mh consistently.
5246 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5247 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5248 nbsdaout.mt and nbsdelf.mh consistently.
5249 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5250 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5251 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5252 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5253 a.out shared library stuff from here...
5254 * config/nm-nbsdaout.h: ...to here.
5255 * config/tm-nbsd.h: Remove.
5256 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5257 * config/arm/nbsd.mh: Remove.
5258 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5260 * config/arm/nbsdaout.mh: New file.
5261 * config/arm/nbsdelf.mh: New file.
5262 * config/arm/nm-nbsdaout.h: New file.
5263 * config/i386/nbsd.mh: Remove.
5264 * config/i386/nbsd.mt: Remove.
5265 * config/i386/nbsdaout.mh: New file.
5266 * config/i386/nbsdaout.mt: New file.
5267 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5268 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5269 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5270 i386_register_u_addr): Remove.
5271 * config/i386/nm-nbsdaout.h: New file.
5272 * config/i386/nm-nbsdelf.h: Remove.
5273 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5274 (USE_STRUCT_CONVENTION): Remove.
5275 * config/i386/tm-nbsdaout.h: New file.
5276 * config/i386/tm-nbsdelf.h: Remove.
5277 * config/m68k/nbsd.mh: Remove.
5278 * config/m68k/nbsd.mt: Remove.
5279 * config/m68k/nbsdaout.mh: New file.
5280 * config/m68k/nbsdaout.mt: New file.
5281 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5282 * config/m68k/nm-nbsdaout.h: New file.
5283 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5284 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5285 * config/ns32k/nbsd.mh: Remove.
5286 * config/ns32k/nbsd.mt: Remove.
5287 * config/ns32k/nbsdaout.mh: New file.
5288 * config/ns32k/nbsdaout.mt: New file.
5289 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5290 * config/ns32k/nm-nbsdaout.h: New file.
5291 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5292 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5293 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5294 (SVR4_SHARED_LIBS): Remove.
5295 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5296 * config/sparc/nbsd.mh: Remove.
5297 * config/sparc/nbsd.mt: Remove.
5298 * config/sparc/nbsdaout.mh: New file.
5299 * config/sparc/nbsdaout.mt: New file.
5300 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5301 * config/sparc/nbsdelf.mt: New file.
5302 * config/sparc/nm-nbsdaout.h: New file.
5303 * config/sparc/nm-nbsdelf.h: Remove.
5304 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5305 * config/sparc/tm-nbsdaout.h: New file.
5307 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5309 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5311 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5313 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5315 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5317 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5319 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5321 * NEWS: Note new MIPS NetBSD native configuration.
5322 * configure.host (mips*-*-netbsd*): New host.
5323 * configure.tgt (mips*-*-netbsd*): New target.
5324 * mipsnbsd-nat.c: New file.
5325 * mipsnbsd-tdep.c: New file.
5326 * mipsnbsd-tdep.h: New file.
5327 * config/mips/nbsd.mh: New file.
5328 * config/mips/nbsd.mt: New file.
5329 * config/mips/nm-nbsd.h: New file.
5330 * config/mips/tm-nbsd.h: New file.
5332 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5334 * Makefile.in (SFILES): Add osabi.c.
5335 (COMMON_OBS): Add osabi.o.
5336 (osabi.o): New dependency list.
5337 * osabi.c: New file.
5338 * osabi.h: New file.
5339 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5341 * Makefile.in (alpha_tdep_h): Define and use instead of
5343 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5344 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5346 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5347 * alpha-tdep.h: Include osabi.h.
5348 (alpha_abi): Remove.
5349 (gdbarch_tdep): Use generic OS ABI framework.
5350 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5351 gdbarch_register_osabi.
5352 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5353 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5354 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5356 * Makefile.in (sh_tdep_h): Add osabi.h.
5357 * sh-tdep.h (sh_osabi): Remove.
5358 (gdbarch_tdep): Use generic OS ABI framework.
5359 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5360 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5361 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5362 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5364 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5365 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5366 gdbarch_register_osabi.
5367 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5368 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5369 (get_elfosabi): Rename to...
5370 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5371 ABI framework support routines.
5372 (arm_gdbarch_init): Use generic OS ABI framework.
5373 (arm_dump_tdep): Likewise.
5374 (_initialize_arm_tdep): Likewise.
5375 * arm-tdep.h: Include osabi.h.
5377 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5379 (arm_gdbarch_register_os_abi): Remove prototype.
5380 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5381 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5383 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5384 * mips-tdep.c: Include osabi.h.
5385 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5388 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5390 * h8300-tdep.c: Fix formatting.
5392 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5394 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5395 printing vector registers.
5397 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5399 From Fernando Nasser:
5400 * remote.c (remote_async_open_1): Re-throw the exception when the
5402 (remote_cisco_open): Ditto.
5403 (remote_open_1): Ditto.
5405 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5407 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5408 (remote_start_remote): Add uiout parameter. Pass through to
5409 remote_start_remote_dummy.
5410 (remote_open_1): Use catch_exception instead of catch_errors.
5411 (remote_async_open_1): Ditto.
5412 (remote_cisco_open): Ditto.
5414 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5416 * remote.c (remote_start_remote): Replace PTR with void pointer.
5417 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5420 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5422 * gdb_indent.sh: Allow the script to be run in the sim directory.
5424 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5426 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5427 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5429 * corelow.c (core_open): Only call set_gdbarch_from_file if
5432 2002-05-17 Andrey Volkov <avolkov@transas.com>
5434 * h8300-tdep.c: Add support of EXR register
5435 * config/h8300/tm-h8300.h: Ditto.
5437 2002-05-17 Andrey Volkov <avolkov@transas.com>
5439 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5441 2002-05-17 Andrey Volkov <avolkov@transas.com>
5443 * h8300-tdep.c: Change literal regnums to REGNO.
5445 2002-05-17 Jim Blandy <jimb@redhat.com>
5447 * NEWS: Note addition of macro support.
5449 Expand preprocessor macros in C expressions.
5450 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5451 (scan_macro_expansion, scanning_macro_expansion,
5452 finished_macro_expansion): New function declarations.
5453 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5454 variable declarations.
5455 * parser-defs.h (expression_context_pc): New declaration.
5456 * parse.c (expression_context_pc): New variable.
5457 (parse_exp_1): Set expression_context_pc, as well as
5458 expression_context_block.
5459 * c-exp.y (yylex): If we're not already reading the result of a
5460 macro expansion, try to macro-expand the next token. When we're
5461 done scanning a macro expansion, switch back to the mainline text.
5462 Commas and `if's in a macro's expansion don't terminate the input.
5463 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5464 (macro_original_text, macro_expanded_text,
5465 expression_macro_lookup_func, expression_macro_lookup_baton): New
5467 (scan_macro_expansion, scanning_macro_expansion,
5468 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5469 c_preprocess_and_parse): New functions.
5470 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5471 c_preprocess_and_parse, instead of c_parse.
5472 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5473 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5475 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5477 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5478 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5479 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5481 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5483 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5485 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5487 * Makefile.in (sh_tdep_h): Define and use.
5488 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5489 register enum): Move to...
5490 * * sh-tdep.h: ...here.
5491 * sh-tdep.c: Include sh-tdep.h.
5492 * sh3-rom.c: Likewise.
5493 * shnbsd-tdep.c: Likewise.
5495 2002-05-16 Michael Snyder <msnyder@redhat.com>
5497 * arm-tdep.c: Spelling fix in comment.
5499 2002-05-16 Jim Blandy <jimb@redhat.com>
5501 Add commands for manually expanding macros and showing their
5503 * macrocmd.c, macroscope.c, macroscope.h: New files.
5504 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5505 (macroscope_h): New variable.
5506 (HFILES_NO_SRCDIR): Add macroscope.h.
5507 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5508 (macroscope.o, macrocmd.o): New rules.
5510 Teach the Dwarf 2 reader to read macro information.
5511 * dwarf2read.c: #include "macrotab.h".
5512 (dwarf_macinfo_buffer): New variable.
5513 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5515 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5516 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5517 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5518 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5519 dwarf2_macro_spaces_in_definition): New complaints.
5520 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5521 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5522 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5523 the partial symbol table.
5524 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5525 from what's recorded in the partial symbol table.
5526 (read_file_scope): If the compilation unit has a
5527 `DW_AT_macro_info' attribute, read its macro information.
5528 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5530 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5533 * ser-tcp.c: Don't include <netinet/udp.h>.
5535 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5537 * MAINTAINERS: Update my email address.
5539 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5541 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5542 include file of the same name.
5544 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5546 * configure.tgt: Mark v850 as multi-arched.
5547 * config/v850/tm-v850.h: Remove file.
5548 * config/v850/v850.mt: Eliminate TM_FILE.
5550 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5552 * v850-tdep.c: Full multi-arch.
5553 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5554 Define GDB_MULTI_ARCH to 2.
5556 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5558 * p-exp.y (current_type): New static variable.
5559 Carries the type of the expression at the position that is parsed.
5560 (push_current_type, pop_current_type): Two new functions. Used
5561 to store/restore current_type in expression on specific tokens.
5562 (search_field): New static variable. Set to one after parsing a point
5563 as at that point only a FIELDNAME token should be searched.
5564 (FIELDNAME): New token. After a point only a token belonging to
5565 current_type type definition is allowed.
5566 (all over token rules): reset and change current_type according
5568 (exp '[' rule): insert implicit array index field if
5569 exp is a pascal string type.
5571 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5573 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5574 frame info. Use frame_info's saved_regs instead of matching member
5575 in extra_frame_info throughout.
5576 (v850_frame_init_saved_regs): New function.
5577 (v850_init_extra_frame_info): Move most functionality into
5578 v850_frame_init_saved_regs().
5579 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5580 (v850_frame_find_saved_regs): Remove declaration.
5581 (FRAME_FIND_SAVED_REGS): Remove definition.
5582 (v850_frame_init_saved_regs): Add declaration.
5583 (FRAME_INIT_SAVED_REGS): Add definition.
5585 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5587 * v850-tdep.c: Begin multi-arch'ing v850.
5588 (v850_target_architecture_hook): Remove function.
5589 (v850_gdbarch_init): New function. Add code previously in
5590 v850_target_architecture_hook().
5591 (_initialize_v850_tdep): Don't set target_architecture_hook.
5592 Call register_gdbarch_init() instead.
5594 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5596 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5597 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5598 (fixup_class_method_type): Likewise.
5600 2002-05-15 Jim Blandy <jimb@redhat.com>
5602 Add macro structures to GDB's symbol tables. Nobody puts anything
5604 * symtab.h (struct symtab): New member: `macro_table'.
5605 * buildsym.h (pending_macros): New global variable.
5606 * buildsym.c: #include "macrotab.h".
5607 (buildsym_init): Initialize `pending_macros'.
5608 (end_symtab): If we found macro information while reading a CU's
5609 debugging info, do build a symtab structure for it. Make the
5610 symtab point to the macro information, and clear the
5611 `pending_macros' pointer which held it while we were reading the
5613 (really_free_pendings): Free any pending macro table.
5614 * objfiles.h (struct objfile): New member: `macro_cache'.
5615 * objfiles.c (allocate_objfile): Set allocate and free functions
5616 for the macro cache's objstack.
5617 (free_objfile): Empty the macro cache's obstack.
5618 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5619 set new allocate and free functions for it.
5620 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5621 free functions for the macro cache's objstack. (Why is this
5622 function building its own objfile?)
5623 * symmisc.c (print_objfile_statistics): Print statistics on the
5625 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5627 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5629 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5630 (REGISTER_U_ADDR): Delete definition.
5631 (arm_register_u_addr): Delete declaration.
5633 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5635 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5636 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5638 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5640 * regcache.c (register_valid): Revise comments refering to "Not
5641 available" and "unavailable".
5642 * frame.c (frame_register_read): Ditto.
5643 * findvar.c (value_of_register): Ditto.
5645 2002-05-15 Andrew Cagney <cagney@redhat.com>
5647 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5648 (remote-sim.o): Update dependencies.
5649 (d10v-tdep.o): Specify dependencies.
5650 (sim_d10v_h): Define.
5652 2002-05-14 Jim Blandy <jimb@redhat.com>
5654 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5655 * macrotab.c (macro_lookup_inclusion, find_definition,
5656 new_macro_table): Same.
5658 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5659 not `! strcmp ()'. This is a dubious improvement.
5660 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5662 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5663 although it's not necessary, to avoid a warning.
5665 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5667 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5668 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5669 TYPE_INSTANCE_FLAGS.
5670 (struct main_type): New.
5671 (struct type): Move most members to struct main_type. Change
5672 cv_type and as_type to new type_chain member. Add instance_flags.
5673 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5674 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5675 (finish_cv_type): Remove prototype.
5676 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5678 (alloc_type_instance): New function.
5679 (smash_type): New function.
5680 (make_pointer_type, make_reference_type, make_function_type)
5681 (smash_to_member_type, smash_to_method_type): Call smash_type.
5682 (make_qualified_type): New function.
5683 (make_type_with_address_space): Call make_qualified_type.
5684 (make_cv_type): Likewise.
5685 (finish_cv_type): Remove unnecessary function.
5686 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5687 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5688 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5689 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5690 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5691 * hpread.c (hpread_read_struct_type): Likewise.
5692 * stabsread.c (read_struct_type): Likewise.
5694 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5696 * configure.tgt: Add a catch all sh* target, for cases like
5697 sh[2,3,4]-elf and sh-hms.
5699 2002-05-14 Keith Seitz <keiths@redhat.com>
5701 * event-loop.c (create_file_handler): Don't do anything but
5702 update data when we are given a fd which we are already
5705 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5707 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5708 (update_context): Use __func__ in warnings.
5710 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5712 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5713 and tcp_close to net_open and net_close.
5714 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5715 using UDP if requested. Don't try to disable Nagle on UDP
5717 * remote.c (remote_serial_open): New function. Warn about UDP.
5718 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5720 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5722 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5724 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5726 * configure.tgt: Remove sh-hms target.
5727 * MAINTAINERS: Don't list sh-hms as a separate target.
5729 2002-05-13 Jim Blandy <jimb@redhat.com>
5731 Add first preprocessor macro-expansion files.
5732 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5733 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5734 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5735 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5736 (COMMON_OBS): Add macrotab.o, macroexp.o.
5737 (macroexp.o, macrotab.o): New rules.
5739 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5741 * config/m88k/tm-m88k.h: Update copyright.
5742 (m88k_target_write_pc): Declare
5743 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5744 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5745 (SHIFT_INST_REGS): Update definition.
5746 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5747 using old definition of TARGET_WRITE_PC.
5748 * regcache.c (generic_target_write_pc): Delete code handling
5750 * gdbarch.sh (NNPC_REGNUM): Delete.
5751 * gdbarch.h, gdbarch.c: Regenerate.
5753 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5755 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5758 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5760 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5761 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5762 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5764 * c-typeprint.c (cp_type_print_method_args): Likewise.
5765 (c_type_print_args): Likewise.
5766 * d10v-tdep.c (d10v_push_arguments): Likewise.
5767 (d10v_extract_return_value): Likewise.
5768 * expprint.c (print_subexp): Likewise.
5769 * gdbtypes.c (lookup_primitive_typename): Likewise.
5770 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5771 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5772 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5773 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5774 (TYPE_VECTOR): Likewise.
5775 * hpread.c (hpread_read_struct_type)
5776 (fix_static_member_physnames, fixup_class_method_type)
5777 (hpread_type_lookup): Likewise.
5778 * mdebugread.c (parse_symbol, parse_type): Likewise.
5779 * p-lang.c (is_pascal_string_type): Likewise.
5780 * valops.c (hand_function_call): Likewise.
5781 * x86-64-tdep.c (classify_argument): Likewise.
5783 * hpread.c (hpread_read_function_type)
5784 (hpread_read_doc_function_type): Call replace_type.
5785 * dstread.c (create_new_type): Delete.
5786 (decode_dst_structure, process_dst_function): Call alloc_type.
5787 Use type access macros.
5789 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5791 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5792 the're not supported by the current architecture.
5793 (i387_fill_fxsave): Likewise.
5795 2002-05-12 Fred Fish <fnf@redhat.com>
5797 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5798 sect_index_xxx members to index the first slot in section_offsets
5799 if all of the section_offsets are zero.
5801 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5803 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5804 checked in with last change.
5806 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5808 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5809 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5812 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5814 * Makefile.in: Update dependencies.
5816 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5818 * language.c (local_hex_string_custom): Simplify. Do not depend
5819 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5821 * memattr.c (mem_info_command): Replace calls to
5822 longest_local_hex_string and longest_local_hex_string_custom.
5823 * buildsym.c (make_blockvector): Ditto.
5824 * solib.c (info_sharedlibrary_command): Ditto.
5825 * tracepoint.c (tracepoints_info): Ditto.
5826 * symtab.c (print_msymbol_info): Ditto.
5828 * language.c (local_hex_string): Delete.
5829 (local_hex_string_custom): Delete.
5830 (longest_local_hex_string): Rename to local_hex_string.
5831 (longest_local_hex_string_custom): Rename to
5832 local_hex_string_custom.
5833 * language.h (local_hex_string): Change parameter type to LONGEST.
5834 (local_hex_string_custom): Ditto.
5835 (longest_local_hex_string): Delete declaration.
5836 (longest_local_hex_string_custom): Ditto.
5838 * solib.c: Update copyright.
5839 * memattr.c: Update copyright.
5841 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5843 * arch-utils.h (legacy_register_to_value): Declare.
5844 (legacy_value_to_register): Declare.
5845 (legacy_convert_register_p): Declare.
5846 * arch-utils.c (legacy_register_to_value): New function.
5847 (legacy_value_to_register): New function.
5848 (legacy_convert_register_p): New function.
5850 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5851 (VALUE_TO_REGISTER): Define.
5852 (CONVERT_REGISTER_P): Define.
5853 * gdbarch.h, gdbarch.c: Regenerate.
5855 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5857 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5860 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5861 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5863 * Makefile.in: Update dependencies for valops.c.
5864 * valops.c: Include "gdb_assert.h".
5865 (typecmp): Skip THIS parameter to methods.
5866 (find_method_list): Remove static_memfuncp argument,
5867 update callers. Check for stub methods.
5868 (find_value_oload_method_list): Don't set *static_memfuncp.
5869 (find_overload_match): Don't check for stub methods. Assert
5870 that methods are not stubbed. Handle static methods.
5871 (value_find_oload_method_list): Remove static_memfuncp argument.
5872 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5873 to the argument list for static stub methods.
5874 * value.h (value_find_oload_method_list): Update prototype.
5876 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5878 * arch-utils.h (generic_register_size): Declare.
5879 (generic_register_raw_size, generic_register_virtual_size): Delete
5881 * arch-utils.c (generic_register_raw_size): Delete.
5882 (generic_register_size): New function.
5883 (generic_register_virtual_size): Delete.
5885 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5886 default generic_register_size.
5887 * gdbarch.h, gdbarch.c: Re-generate.
5889 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5890 register_virtual_size.
5891 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5892 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5894 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5896 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5897 * gdbarch.h, gdbarch.c: Regenerate.
5898 * gnu-v3-abi.c: Update copyright.
5899 (vtable_address_point_offset): Update.
5900 (gnuv3_rtti_type): Update.
5901 (gnuv3_baseclass_offset): Update.
5902 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5903 (init_fetch_link_map_offsets): Update.
5904 * remote.c (get_remote_state): Update.
5906 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5908 * TODO: Remove value_headof/value_from_vtable_info comment.
5909 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5910 * values.c (value_headof, value_from_vtable_info): Delete.
5911 * value.h (value_from_vtable_info): Delete prototype.
5913 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5915 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5916 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5918 (gdb_assert_h): Define.
5919 (gdb_wait_h): Define.
5920 (gdb_regex_h): Define.
5922 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5924 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5925 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5927 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5929 * nbsd-tdep.c: Fix comment.
5931 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5933 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5934 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5935 (nbsd-tdep.o): New dependency list.
5936 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5938 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5939 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5940 * nbsd-tdep.c: New file.
5941 * nbsd-tdep.h: New file.
5942 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5944 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5945 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5946 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5947 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5949 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5951 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5952 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5953 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5954 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5955 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5956 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5958 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5960 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5961 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5962 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5963 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5964 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5965 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5966 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5968 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5970 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5971 fetch_elfcore_registers to...
5972 * i386nbsd-tdep.c: ...here.
5973 (i386nbsd_use_struct_convention): Rename to...
5974 (i386nbsd_aout_use_struct_convention): ...this.
5975 (i386nbsd_supply_reg): New function.
5976 (i386nbsd_fill_reg): New function.
5977 (fetch_core_registers): Use i386nbsd_supply_reg.
5978 (fetch_elfcore_registers): Likewise.
5979 (_initialize_i386nbsd_tdep): New function.
5980 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5981 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5982 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5983 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5984 (i386nbsd_aout_use_struct_convention): ...this.
5986 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5988 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5989 (store_inferior_registers): Use shnbsd_fill_reg.
5990 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5991 sh_nbsd_supply_register): Collapse into...
5992 (shnbsd_supply_reg): ...this.
5993 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5994 (shnbsd_fill_reg): ...this.
5995 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5996 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5997 (fetch_core_registers): Use shnbsd_supply_reg.
5998 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5999 (sh_nbsd_core_fns): Rename to...
6000 (shnbsd_core_fns): ...this.
6001 (sh_nbsd_elfcore_fns): Rename to...
6002 (shnbsd_elfcore_fns): ...this.
6003 (sh_nbsd_init_abi): Rename to...
6004 (shnbsd_init_abi): ...this.
6005 (_initialize_sh_nbsd_tdep): Rename to...
6006 (_initialize_shnbsd_tdep): ...this.
6007 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6008 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6009 sh_nbsd_fill_register): Remove prototypes.
6010 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6012 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6014 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6015 (i387-nat.o): Delete dependency list.
6016 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6017 (x86-64-linux-nat.o): Likewise.
6018 * i387-nat.c: Delete file, moving contents to...
6019 * i387-tdep.c: ...here.
6020 * i387-nat.h: Rename...
6021 * i387-tdep.h: ...to this.
6022 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6023 * i386-linux-nat.c: Likewise.
6024 * i386bsd-nat.c: Likewise.
6025 * i386gnu-nat.c: Likewise.
6026 * i386nbsd-nat.c: Likewise.
6027 * i386v4-nat.c: Likewise.
6028 * x86-64-linux-nat.c: Likewise.
6029 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6030 * config/i386/go32.mh (NATDEPFILES): Likewise.
6031 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6032 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6033 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6034 * config/i386/linux.mh (NATDEPFILES): Likewise.
6035 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6036 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6037 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6038 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6040 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6042 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6043 (alphanbsd-nat.o): Remove dependency list.
6044 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6045 * alphanbsd-nat.c: Delete. Contents moved to...
6046 * alphanbsd-tdep.c: ...here.
6047 (_initialize_alphanbsd_tdep): Register core functions.
6048 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6050 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6052 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6053 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6054 (alphanbsd-nat.o): Likewise.
6055 (alphabsd-tdep.o): New dependency list.
6056 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6057 (fill_gregset): Use alphabsd_fill_reg.
6058 (supply_fpregset): Use alphabsd_supply_fpreg.
6059 (fill_fpregset): Use alphabsd_fill_fpreg.
6060 (fetch_inferior_registers): Use struct reg and struct fpreg
6061 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6062 and alphabsd_supply_fpreg.
6063 (store_inferior_registers): Use struct reg and struct fpreg
6064 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6065 and alphabsd_fill_fpreg.
6066 * alphabsd-tdep.c: New file.
6067 * alphabsd-tdep.h: New file.
6068 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6069 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6070 alphabsd_supply_fpreg.
6071 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6072 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6074 2002-05-11 Eric Christopher <echristo@redhat.com>
6076 * mips-tdep.c (mips_double_register_type): Fix thinko.
6077 (mips_single_register_type): Ditto.
6078 * MAINTAINERS: Add self.
6080 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6082 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6083 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6084 right thing on architectures with different endianness and/or
6087 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6089 From Christian Limpach <chris@Pin.LU>
6090 * configure.in: Change sed expression which comments out
6091 NATDEPFILES to also comment out continuation lines.
6092 * configure: Regenerate.
6094 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6096 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6099 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6101 * sh-tdep.c: Include correct file.
6103 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6105 New support for sh64-elf (sh5) target.
6107 * configure.tgt: For sh64-elf target, default to sh-elf.
6109 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6110 (struct gdbarch_tdep): Add new fields for new registers and ABI
6113 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6114 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6115 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6116 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6117 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6118 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6119 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6120 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6121 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6122 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6123 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6124 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6125 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6126 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6127 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6128 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6129 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6130 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6131 sign_extend, sh64_nofp_frame_init_saved_regs,
6132 sh64_init_extra_frame_info, sh64_get_saved_register,
6133 sh64_extract_struct_value_address, sh64_pop_frame,
6134 sh64_push_arguments, sh64_extract_return_value,
6135 sh64_store_return_value, sh64_show_media_regs,
6136 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6137 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6138 sh_sh64_register_virtual_type,
6139 sh_sh64_register_convert_to_virtual,
6140 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6141 sh64_register_read, sh64_pseudo_register_write,
6142 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6143 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6144 sh64_do_pseudo_register, sh_compact_do_registers_info,
6145 sh64_do_registers_info, sh_gdbarch_init): New functions.
6147 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6149 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6151 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6153 * linespec.c (decode_line_1): Check for a double quote after
6154 a filename correctly.
6156 2002-05-10 Jim Blandy <jimb@redhat.com>
6158 Properly track the size of the current objfile's .debug_line section.
6159 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6160 (DWARF_LINE_SIZE): New macro.
6161 (dwarf2_build_psymtabs_hard): Record the line section's size in
6162 the partial symbol table.
6163 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6166 2002-05-10 Petr Sorfa <petrs@caldera.com>
6168 * ia64-tdep.c: Handle breakpoints on L instruction type
6169 in MLX instruction bundle by moving the breakpoint to
6170 the third slot (X instruction type) as L holds only data.
6172 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6174 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6175 (process_one_symbol): Complain about discarding local symbols
6176 due to a misplaced N_LBRAC entry.
6178 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6180 From Daniel Berlin <dan@cgsoftware.com>
6181 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6182 decrease the depth we are at, in the case of templates.
6184 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6186 * mips-tdep.c (mips_float_register_type): New function.
6187 (mips_double_register_type): New function.
6188 (mips_print_register): Use them.
6189 (do_fp_register_row): Likewise.
6191 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6193 * signals/signals.c (signals): Remove conditional compilation around
6194 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6195 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6197 2002-05-09 Michael Snyder <msnyder@redhat.com>
6199 * remote-rdp.c (remote_rdp_can_run): Remove.
6201 2002-05-09 Tom Tromey <tromey@redhat.com>
6203 * jv-valprint.c (java_val_print): Handle `char' as a special case
6206 2002-05-09 Michael Snyder <msnyder@redhat.com>
6208 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6209 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6210 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6211 str r(0123),[sp,#nn].
6212 (arm_skip_prologue): Ditto. Also make disassembly
6213 order-independent by placing it in a loop.
6215 2002-05-06 Michael Snyder <msnyder@redhat.com>
6217 * stabsread.c (read_type): Add recognition for new attribute:
6218 "@V;" means that an array type is actually a vector.
6219 This is analogous to the vector flag that's been added to dwarf2.
6221 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6223 * i386-tdep.h (i386_abi): New enum.
6224 (struct gdbarch_tdep): Replace os_ident member with abi.
6225 (i386_gdbarch_register_os_abi): New prototype.
6226 * i386-tdep.c (i386_abi_names): New array.
6227 (process_note_abi_tag_sections): Removed.
6228 (process_note_sections): New function.
6229 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6230 (struct i386_abi_handler): New struct.
6231 (i386_abi_handler_list): New variable.
6232 (i386_gdbarch_register_os_abi): New function.
6233 (i386_gdbarch_init): Adapt for the changes given above.
6235 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6237 * gregset.h: Say "GNU/Linux".
6239 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6241 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6242 (build_gdbtypes): Build builtin_type_v2_float.
6243 (_initialize_gdbtypes): Register new builtin type.
6245 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6247 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6248 (clear_gdbarch_swap): New function.
6249 (initialize_non_multiarch): Call.
6250 (gdbarch_update_p): Before calling init(), swap out and clear the
6251 existing architecture.
6252 * gdbarch.c: Regenerate.
6254 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6256 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6259 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6261 * sh-nbsd-nat.c: Rename to...
6262 * shnbsd-nat.c: ...this.
6263 * sh-nbsd-tdep.c: Rename to...
6264 * shnbsd-tdep.c: ...this.
6265 * sh-nbsd-tdep.h: Rename to...
6266 * shnbsd-tdep.h: ...this.
6267 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6268 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6270 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6272 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6273 concatenation for command help messages.
6275 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6277 * NEWS: Note new sh*-*-netbsdelf* configuration.
6278 * configure.host: Set gdb_host_cpu to sh for all sh*.
6279 (sh*-*-netbsdelf*): New host.
6280 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6281 (sh*-*-netbsdelf*): New target.
6282 * sh-nbsd-nat.c: New file.
6283 * sh-nbsd-tdep.c: New file.
6284 * sh-nbsd-tdep.h: New file.
6285 * config/sh/nbsd.mh: New file.
6286 * config/sh/nbsd.mt: New file.
6287 * config/sh/nm-nbsd.h: New file.
6288 * config/sh/tm-nbsd.h: New file.
6290 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6292 * sh-tdep.c (sh_osabi_names): Declare.
6293 (process_note_abi_tag_sections): New function.
6294 (get_elfosabi): Ditto.
6295 (sh_gdbarch_register_os_abi): Ditto.
6296 (sh_dump_tdep): Ditto.
6297 _initialize_sh_tdep): Use gdbarch_register to register
6298 sh_gdbarch_init and sh_dump_tdep.
6299 * config/sh/tm-sh.h (sh_osabi): Declare.
6300 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6302 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6304 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6305 (thumb_scan_prologue): Ditto.
6306 (arm_find_callers_reg): Ditto.
6307 (arm_frame_chain): Ditto.
6308 (arm_init_extra_frame_info): Ditto.
6309 (arm_frame_saved_pc): Ditto.
6310 (arm_pop_frame): Ditto.
6311 (arm_push_return_address): New function.
6312 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6313 call_dummy_location, call_dummy_breakpoint_offset_p,
6314 call_dummy_breakpoint_offset, call_dummy_p,
6315 call_dummy_stack_adjust_p, call_dummy_words,
6316 sizeof_call_dummy_words, call_dummy_start_offset,
6317 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6318 call_dummy_address, push_return_address and push_dummy_frame for
6319 generic dummy frames.
6321 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6323 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6324 size computation for alloca.
6325 (sh_fp_frame_init_saved_regs): Likewise.
6327 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6329 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6330 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6331 * arm-tdep.c (arm_store_return_value): Use them.
6332 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6333 * remote-rdp.c (remote_rdp_fetch_register): Use
6334 ARM_MAX_REGISTER_RAW_SIZE.
6335 (remote_rdp_store_register): Likewise.
6337 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6339 * dwarf2cfi.c: Code cleanup, removed unused variables,
6340 added default labels to switch {} statements.
6341 * x86-64-tdep.c: Ditto.
6342 * x86-64-linux-nat.c: Ditto.
6344 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6346 * solib.h: Protect against multiple inclusion.
6348 2002-05-06 Jim Blandy <jimb@redhat.com>
6350 Add first preprocessor macro-expansion files.
6351 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6352 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6353 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6354 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6355 (COMMON_OBS): Add macrotab.o, macroexp.o.
6356 (macroexp.o, macrotab.o): New rules.
6358 Separate the job of reading the line number info statement program
6359 header (...expialidocious) out into its own function.
6360 * dwarf2read.c (struct line_head, struct filenames, struct
6361 directories): Replace with...
6362 (struct line_header): New structure, containing the full
6363 contents of the statement program header, including the
6364 include directory and file name tables.
6365 (read_file_scope): If we have line number info, instead of just
6366 calling dwarf_decode_lines to do all the work, call
6367 dwarf_decode_line_header first to get a `struct line_header'
6368 containing the data in the statement program header, and then
6369 pass that to dwarf_decode_lines, which will pick up where that
6370 left off. Be sure to clean up the `struct line_header' object.
6371 (dwarf_decode_line_header, free_line_header, add_include_dir,
6372 add_file_name): New functions.
6373 (dwarf_decode_lines): Move all the code to read the statement
6374 program header into dwarf_decode_line_header. Take the line
6375 header it built as the first argument, instead of the offset to
6376 the compilation unit's line number info. Use the new `struct
6377 line_header' type instead of the old structures. No need to do
6378 cleanups here now, since we don't allocate anything.
6379 (dwarf2_statement_list_fits_in_line_number_section,
6380 dwarf2_line_header_too_long): New complaints.
6382 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6384 * gdbtypes.c (init_vector_type): New function.
6385 (build_builtin_type_vec128): Simplify the representation of SIMD
6387 (build_gdbtypes): Initialize new builtin vector types.
6388 (_initialize_gdbtypes): Register new vector types with gdbarch.
6389 (builtin_type_v4_float, builtin_type_v4_int32,
6390 builtin_type_v8_int16, builtin_type_v16_int8,
6391 builtin_type_v2_int32, builtin_type_v4_int16,
6392 builtin_type_v8_int8): New (renamed) SIMD types.
6394 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6396 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6397 (i387_fill_fxsave): Likewise.
6399 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6401 * alpha-tdep.c (alpha_extract_return_value): Don't use
6402 non-constant array size in prototype.
6404 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6406 From Brian Taylor <briant at model dot com>:
6407 * ui-out.c (ui_out_field_core_addr): Use the function
6408 longest_local_hex_string_custom'to format addresses > 32 bits
6411 * ui-out.c (ui_out_field_core_addr): Update comment.
6413 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6415 * stack.c (select_and_print_frame): Make static. Delete the
6417 (func_command): Update call.
6418 (select_frame_command): Delete code computing the frame level.
6419 * frame.h (select_and_print_frame): Delete declaration.
6421 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6423 * sparc-tdep.c (sparc_get_saved_register): Comment why
6424 get_prev_frame call is safe.
6426 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6428 * frame.h (select_frame): Delete level parameter.
6429 * stack.c (select_frame): Update. Use frame_relative_level to
6430 obtain the frame's level.
6431 (select_and_print_frame): Update call.
6432 (select_frame_command): Ditto.
6433 (up_silently_base): Ditto.
6434 (down_silently_base): Ditto.
6435 * ocd.c (ocd_start_remote): Ditto.
6436 * remote-rdp.c (remote_rdp_open): Ditto.
6437 * remote-mips.c (mips_initialize): Ditto.
6438 (common_open): Ditto.
6439 * remote-e7000.c (e7000_start_remote): Ditto.
6440 * m3-nat.c (select_thread): Ditto.
6441 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6442 (child_get_current_exception_event): Ditto.
6443 * varobj.c (varobj_create): Ditto.
6444 (varobj_update): Ditto.
6445 (c_value_of_root): Ditto.
6446 * tracepoint.c (finish_tfind_command): Ditto.
6447 * corelow.c (core_open): Ditto.
6448 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6449 * thread.c (info_threads_command): Ditto.
6450 (switch_to_thread): Ditto.
6451 * infrun.c (normal_stop): Ditto.
6452 (restore_selected_frame): Ditto.
6453 (restore_inferior_status): Ditto.
6454 * breakpoint.c (insert_breakpoints): Ditto.
6455 (watchpoint_check): Ditto.
6456 (bpstat_stop_status): Ditto.
6457 (do_enable_breakpoint): Ditto.
6458 * blockframe.c (flush_cached_frames): Ditto.
6459 (reinit_frame_cache): Ditto.
6461 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6463 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6466 2002-05-04 Jim Blandy <jimb@redhat.com>
6468 * gdbtypes.c (replace_type): Doc fix.
6470 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6472 * valprint.c (strcat_longest): Delete commented out function.
6475 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6477 * MAINTAINERS: Mark a29k as deleted.
6478 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6479 Move new configurations to the top.
6480 * configure.tgt: Remove a29k.
6481 * config/a29k/tm-vx29k.h: Delete.
6482 * config/a29k/vx29k.mt: Delete.
6483 * config/a29k/tm-a29k.h: Delete.
6484 * config/a29k/a29k-udi.mt: Delete.
6485 * config/a29k/a29k.mt: Delete.
6486 * a29k-tdep.c: Delete.
6487 * remote-udi.c: Delete.
6488 * remote-mm.c: Delete.
6489 * remote-eb.c: Delete.
6490 * remote-adapt.c: Delete.
6491 * Makefile.in: Remove obsolete code.
6492 * config/s390/s390x.mt: Ditto.
6493 * config/s390/s390.mt: Ditto.
6494 * config/sparc/sparclynx.mh: Ditto.
6495 * config/sparc/linux.mh: Ditto.
6496 * config/pa/hppaosf.mh: Ditto.
6497 * config/pa/hppabsd.mh: Ditto.
6498 * config/ns32k/nbsd.mt: Ditto.
6499 * config/mips/vr5000.mt: Ditto.
6500 * config/m68k/sun3os4.mh: Ditto.
6501 * config/m68k/nbsd.mt: Ditto.
6502 * config/m68k/m68klynx.mh: Ditto.
6503 * config/m32r/m32r.mt: Ditto.
6504 * config/i386/x86-64linux.mt: Ditto.
6505 * config/i386/nbsdelf.mt: Ditto.
6506 * config/i386/nbsd.mt: Ditto.
6507 * config/i386/i386lynx.mh: Ditto.
6509 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6511 * target.c (debug_print_register): New function. Handle oversize
6513 (debug_to_fetch_registers): Call.
6514 (debug_to_store_registers): Call.
6516 2002-05-03 Jim Blandy <jimb@redhat.com>
6518 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6519 (read_type): Doc fix.
6520 * gdbtypes.c (replace_type): Doc fix.
6522 * stabsread.c (multiply_defined_struct): New complaint.
6523 (read_struct_type): If the type we were passed isn't empty, or
6524 incomplete, don't read the new struct type into it; complain,
6525 and return the original type unchanged. Take a new `type_code'
6526 argument, which is the type code for the new type.
6527 (read_type): Rather than storing the type's type code here, pass
6528 it as an argument to read_struct_type, and let that take care of
6529 storing it. That way, we don't overwrite the original type code,
6530 so read_struct_type can use it to decide whether we're overwriting
6531 something we shouldn't.
6532 (complain_about_struct_wipeout): New function.
6534 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6536 * gdbarch.sh: Assert that gdbarch is non-NULL.
6537 * gdbarch.c: Regenerate.
6539 2002-05-03 Jason Merrill <jason@redhat.com>
6541 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6544 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6546 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6547 (x86_64_dwarf2gdb_regno_map_length),
6548 (x86_64_dwarf2_reg_to_regnum): Added.
6549 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6550 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6551 (_initialize_x86_64_tdep): Synced with the change above.
6552 (x86_64_skip_prologue): Reformulated message.
6554 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6556 * f-exp.y: Also use new prev_lexptr variable
6557 to improve error reporting. Based on Michael Snyder
6558 2002-04-24 dated patch to c-exp.y.
6559 * jv-exp.y: Likewise.
6560 * m2-exp.y: Likewise.
6562 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6564 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6565 we are dealing with vectors.
6567 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6569 * config/m68k/tm-nbsd.h: Obvious fix,
6570 correct machine name.
6572 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6574 * p-typeprint.c (pascal_type_print_base): Add support
6575 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6577 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6579 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6580 for fondamental pascal 'char' type.
6582 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6584 * p-lang.h (is_pascal_string_type): Declaration changed,
6585 new sixth argument of type char ** added.
6586 * p-lang.c (is_pascal_string_type): Implementation
6587 changed. Args length_pos, length_size, string_pos, char_size
6588 can now be NULL. New argument arrayname set to the field
6589 name of the char array. Return value set to char array
6590 field index plus one.
6591 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6592 is_pascal_string_type function.
6594 2002-05-02 Andrew Cagney <cagney@redhat.com>
6596 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6597 <cagney@redhat.com> change.
6598 * gdbarch.c: Regenerate.
6600 2002-05-02 Andrew Cagney <cagney@redhat.com>
6602 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6603 before probing for a new one. Detect errorenous gdbarch_init
6605 * gdbarch.c: Regenerate.
6607 2002-05-01 Andrew Cagney <cagney@redhat.com>
6609 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6610 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6611 * config/v850/tm-v850.h: Ditto. Update copyright.
6613 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6615 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6618 2002-04-30 Michael Snyder <msnyder@redhat.com>
6620 * arm-tdep.c: Whitespace clean-ups.
6621 (arm_skip_prologue): Fix thinko; two lines
6622 should have been removed as part of 4/24 change.
6624 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6626 * rs6000-tdep.c: Added comment describing how fpscr register
6627 numbers were chosen.
6629 2002-04-30 Michael Snyder <msnyder@redhat.com>
6631 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6633 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6635 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6636 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6637 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6639 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6641 From Louis Hamilton <hamilton@redhat.com>:
6642 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6643 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6644 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6645 not bfd-private xcoff data, to determine wordsize.
6646 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6648 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6650 GDB 5.2 released from 5.2 branch.
6652 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6654 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6655 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6656 (x86_64_register_info_table): Added comments with register numbers.
6658 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6660 * rs6000-tdep.c (rs6000_extract_return_value,
6661 rs6000_store_return_value): Handle returning vectors.
6662 (rs6000_gdbarch_init): Use
6663 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6664 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6666 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6668 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6669 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6671 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6673 * hpread.c (hpread_psymtab_to_symtab_1,
6674 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6675 with fprintf_unfiltered (gdb_stderr,...).
6677 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6679 * remote-array.c (printf_monitor, write_monitor,
6680 array_insert_breakpoint, array_remove_breakpoint ):
6681 Replace fprintf (stderr,...
6682 with fprintf_unfiltered (gdb_stderr,....
6683 * remote-es.c: Likewise.
6684 * remote-os9k.c: Likewise.
6685 * remote-st.c: Likewise.
6687 2002-04-28 Andreas Schwab <schwab@suse.de>
6689 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6690 linux-proc.o and gcore.o.
6692 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6694 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6695 code without frame pointers.
6697 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6699 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6702 2002-04-26 Ben Elliston <bje@redhat.com>
6704 * target.c (do_xfer_memory): Correct reference to the new option
6705 "trust-readonly-sections".
6707 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6709 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6710 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6711 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6713 (read_array_type): Record the fact that this array type is really a
6714 vector (i.e. are passed in by value).
6716 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6718 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6719 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6720 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6721 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6722 * alpha-linux-tdep.c: Include frame.h.
6723 (alpha_linux_sigcontext_addr): New function.
6724 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6725 alpha_linux_sigcontext_addr.
6726 * alpha-osf1-tdep.c: Include gdbcore.h.
6727 (alpha_osf1_sigcontext_addr): New function.
6728 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6729 alpha_osf1_sigcontext_addr.
6730 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6731 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6733 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6735 * stack.c (selected_frame_level):
6736 (select_frame): Do not set selected_frame_level.
6737 * frame.h (selected_frame_level): Delete declaration.
6739 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6741 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6742 convert_from_func_ptr-addr when AIX / PowerOpen.
6744 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6746 * valops.c (hand_function_call): Call
6747 generic_save_call_dummy_addr.
6748 * frame.h (generic_save_call_dummy_addr): Declare.
6749 * blockframe.c (struct dummy_frame): Add fields call_lo and
6751 (generic_find_dummy_frame): Check for PC in range call_lo to
6752 call_hi instead of entry_point_address.
6753 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6754 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6755 (generic_save_call_dummy_addr): New function.
6757 2002-04-24 David S. Miller <davem@redhat.com>
6759 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6760 sparc_skip_prologue.
6761 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6762 information to find prologue when possible.
6763 (sparc_prologue_frameless_p): Call examine_prologue directly.
6764 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6765 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6767 (SKIP_PROLOGUE): Likewise.
6769 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6771 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6772 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6773 indicate that the condition it was testing is always true.
6774 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6775 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6776 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6778 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6780 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6781 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6782 tdep->jb_pc and tdep->jb_elt_size.
6783 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6784 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6785 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6786 * alpha-nat.c (get_longjmp_target): Remove.
6787 (JB_ELEMENT_SIZE): Ditto.
6789 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6790 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6791 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6792 to alpha_get_longjmp_target.
6793 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6794 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6795 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6797 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6799 * README: Update to GDB 5.2.
6801 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6803 * gdbarch.sh (LC_ALL): Set to `c'.
6805 2002-04-25 Theodore A. Roth <troth@verinet.com>
6807 * avr-tdep.c: Ran through gdb_indent.sh.
6809 2002-04-25 Theodore A. Roth <troth@verinet.com>
6811 * MAINTAINERS: Add myself as AVR maintainer.
6812 * NEWS: Note new target avr.
6814 2002-04-25 Theodore A. Roth <troth@verinet.com>
6816 * Makefile.in: Add support for AVR target.
6817 * configure.tgt: Add support for AVR target.
6818 * avr-tdep.c: New file
6819 * config/avr/avr.mt: New file.
6821 2002-04-25 Theodore A. Roth <troth@verinet.com>
6823 * MAINTAINERS: Add myself to write-after-approval.
6825 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6827 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6828 with fprintf_unfiltered (gdb_stderr,....
6830 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6833 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6835 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6837 * p-exp.y: Also use new prev_lexptr variable
6838 to improve error reporting. Based on Michael Snyder
6839 2002-04-24 dated patch to c-exp.y.
6841 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6843 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6844 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6845 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6847 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6849 (FUNCTION_START_OFFSET): Remove.
6850 (BREAKPOINT): Ditto.
6852 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6854 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6857 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6859 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6860 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6861 alpha_linux_pc_in_sigtramp.
6862 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6863 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6864 alpha_osf1_pc_in_sigtramp.
6865 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6866 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6867 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6868 alphafbsd_pc_in_sigtramp.
6869 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6870 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6871 alphanbsd_pc_in_sigtramp.
6872 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6873 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6875 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6877 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6879 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6881 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6883 (alphanbsd-nat.o): New dependency list.
6884 (alphanbsd-tdep.o): Ditto.
6885 * NEWS: Note new native NetBSD/alpha configuration.
6886 * alphanbsd-nat.c: New file.
6887 * alphanbsd-tdep.c: Ditto.
6888 * configure.host (alpha*-*-netbsd*): New host.
6889 * configure.tgt (alpha*-*-netbsd*): New target.
6890 * config/alpha/nbsd.mh: New file.
6891 * config/alpha/nbsd.mt: Ditto.
6892 * config/alpha/nm-nbsd.h: Ditto.
6893 * config/alpha/tm-nbsd.h: Ditto.
6895 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6897 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6898 (alpha-osf1-tdep.o): New dependency list.
6899 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6900 and skip_sigtramp_frame members.
6901 * alpha-linux-tdep.c: Include gdbcore.h.
6902 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6903 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6904 * alpha-osf1-tdep.c: New file.
6905 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6907 (alpha_frame_past_sigtramp_frame): New function.
6908 (alpha_dynamic_sigtramp_offset): Ditto.
6909 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6910 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6911 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6912 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6913 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6914 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6915 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6916 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6917 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6918 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6919 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6920 to find_solib_trampoline_target.
6921 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6922 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6923 (SKIP_TRAMPOLINE_CODE): Remove.
6924 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6925 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6926 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6927 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6928 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6929 (PROC_SIGTRAMP_MAGIC): Ditto.
6930 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6931 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6932 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6933 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6934 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6936 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6938 * NEWS: Note that Alpha targets are now multi-arch.
6940 2002-04-24 Michael Snyder <msnyder@redhat.com>
6942 * parser-defs.h (prev_lexptr): New external variable.
6943 * parse.c (parse_exp_1): Set prev_lexptr to null before
6944 calling the language-specific parser.
6945 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6946 (yyerror): Use prev_lexptr in error reporting.
6948 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6950 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6951 * gregset.h: If FILL_FPXREGSET is defined, provide
6952 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6953 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6954 is defined, call fill_fpxregset.
6956 2002-04-24 Roland McGrath <roland@frob.com>
6958 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6959 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6960 (supply_gregset, supply_fpregset): New functions.
6962 * gnu-nat.c (gnu_find_memory_regions): New function.
6963 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6964 (gnu_xfer_memory): Add a cast.
6966 2002-04-24 Michael Snyder <msnyder@redhat.com>
6968 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6969 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6970 of argument regs ("str r(0123), [r11, #-nn"]).
6971 (arm_skip_prologue): Better handling for frameless functions.
6972 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6973 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6975 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6977 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6978 NUM_PSEUDO_REGS can be used.
6980 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6982 * arch-utils.h: Update copyright.
6984 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6985 * gdbarch.h, gdbarch.c: Re-generate.
6987 * inferior.h (IN_SIGTRAMP): Delete definition.
6988 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6989 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6991 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6992 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6993 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6994 (find_proc_framesize): Ditto.
6995 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6996 (alpha_init_extra_frame_info): Ditto.
6997 * infrun.c (handle_inferior_event): Ditto.
6998 (handle_inferior_event): Ditto.
6999 (check_sigtramp2): Ditto.
7000 * blockframe.c (create_new_frame): Ditto.
7001 (get_prev_frame): Ditto.
7002 * ppc-linux-tdep.c: Update comments.
7003 * i386-linux-tdep.c: Update comments.
7004 * breakpoint.c (bpstat_what): Update comment.
7006 2002-04-24 David S. Miller <davem@redhat.com>
7008 * i960-tdep.c (register_in_window_p): New function.
7009 (i960_find_saved_register): Use it instead of
7010 REGISTER_IN_WINDOW_P.
7011 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7013 * symtab.h (find_stab_function_addr): Kill extern.
7014 * minsyms.c (find_stab_function_addr): Remove from here...
7015 * dbxread.c: ... to here, and mark it static.
7017 2002-04-20 David S. Miller <davem@redhat.com>
7019 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7020 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7022 2002-04-21 David S. Miller <davem@redhat.com>
7024 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7025 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7026 (vx_write_register): Likewise.
7028 2002-04-23 J. Brobecker <brobecker@gnat.com>
7030 * source.c (is_regular_file): New function.
7031 (openp): Check wether file to open is a regular file
7032 to avoid opening directories.
7034 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7036 * findvar.c (extract_signed_integer): Cast printf argument
7037 to suppress format warning.
7038 (extract_unsigned_integer): Likewise.
7039 * infcmd.c (registers_info): Likewise.
7040 * top.c (get_prompt_1): Likewise.
7041 * valops.c (value_assign): Likewise.
7042 * valprint.c (print_decimal): Likewise.
7044 2002-04-22 H.J. Lu (hjl@gnu.org)
7046 * c-exp.y (typebase): Support
7048 [long|long long|short] [signed|unsigned] [int|]
7052 signed [long|long long|short] int
7054 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7056 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7058 * vax-tdep.h: New file.
7059 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7060 Make several routines static.
7061 (vax_get_saved_register): New function.
7062 (vax_gdbarch_init): New function.
7063 (_initialize_vax_tdep): Register vax_gdbarch_init.
7064 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7065 Remove macros now under the control of gdbarch.
7067 2002-04-22 Michael Snyder <msnyder@redhat.com>
7069 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7070 Some whitespace and coding standards tweaks.
7072 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7074 * vax-tdep.c: Include regcache.h.
7075 (vax_call_dummy_words): New.
7076 (sizeof_vax_call_dummy_words): New.
7077 (vax_fix_call_dummy): New function.
7078 (vax_saved_pc_after_call): Ditto.
7079 * config/vax/tm-vax.h: Don't include regcache.h.
7080 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7081 (CALL_DUMMY): Remove.
7082 (CALL_DUMMY_WORDS): Define.
7083 (SIZEOF_CALL_DUMMY_WORDS): Define.
7084 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7086 2002-04-18 Michael Snyder <msnyder@redhat.com>
7088 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7090 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7092 * vax-tdep.c (vax_frame_chain): New function.
7093 (vax_push_dummy_frame): Ditto.
7094 (vax_pop_frame): Ditto.
7095 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7096 (FRAMELESS_FUNCTION_INVOCATION): Use
7097 generic_frameless_function_invocation_not.
7098 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7099 (POP_FRAME): Use vax_pop_frame.
7101 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7103 * vax-tdep.c (vax_store_struct_return): New function.
7104 (vax_extract_return_value): Ditto.
7105 (vax_store_return_value): Ditto.
7106 (vax_extract_struct_value_address): Ditto.
7107 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7108 vax_store_struct_return.
7109 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7110 (STORE_RETURN_VALUE): Use vax_store_return_value.
7111 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7113 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7115 * vax-tdep.c (vax_frame_saved_pc): New function.
7116 (vax_frame_args_address_correct): Ditto.
7117 (vax_frame_args_address): Ditto.
7118 (vax_frame_locals_address): Ditto.
7119 (vax_frame_num_args): Move code to be in proximity to
7120 other frame-related functions.
7121 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7122 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7123 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7124 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7125 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7127 2002-04-22 H.J. Lu (hjl@gnu.org)
7129 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7132 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7134 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7135 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7136 (FRAME_INIT_SAVED_REGS): New macro.
7138 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7140 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7142 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7144 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7146 (fetch_osf_core_registers): Likewise.
7147 (supply_gregset): Likewise.
7149 2002-04-22 J. Brobecker <brobecker@gnat.com>
7151 * symfile.h (get_section_index): Define.
7152 * symfile.c (get_section_index): New function.
7153 * mdebugread.c (SC_IS_SBSS): New macro.
7154 (SC_IS_BSS): Return true for the scBss storage class only, as
7155 the scSBss storage class refers to the .sbss section.
7156 (parse_partial_symbols): Discard the symbols which associated
7157 section does not exist.
7158 Make sure to use the .sbss section index for symbols which
7159 storage class is scBss, rather than using the .bss section index.
7161 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7163 * vax-tdep.c: Update copyright years.
7164 (vax_register_name): New function.
7165 (vax_register_byte): Ditto.
7166 (vax_register_raw_size): Ditto.
7167 (vax_register_virtual_size): Ditto.
7168 (vax_register_virtual_type): Ditto.
7169 * config/vax/tm-vax.h: Update copyright years.
7170 (REGISTER_NAMES): Remove.
7171 (REGISTER_NAME): Define.
7172 (REGISTER_BYTE): Use vax_register_byte.
7173 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7174 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7175 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7177 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7179 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7181 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7183 2002-04-21 David S. Miller <davem@redhat.com>
7185 * arch-utils.c (generic_prologue_frameless_p): Kill
7186 SKIP_PROLOGUE_FRAMELESS_P code.
7187 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7189 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7190 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7191 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7193 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7194 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7195 (sparc_gdbarch_init): Pass it to
7196 set_gdbarch_prologue_frameless_p.
7198 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7200 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7201 (alphabsd-nat.o): New dependency list.
7203 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7205 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7207 (alpha-linux-tdep.o): New dependency list.
7208 (alphafbsd-tdep.o): Likewise.
7210 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7212 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7214 * alpha-tdep.c: ...from here.
7215 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7217 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7219 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7220 prototype from here...
7221 * alpha-tdep.h: ...to here.
7223 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7225 * frame.h (selected_frame_level): Document as deprecated.
7226 (frame_relative_level): Declare.
7227 * stack.c (frame_relative_level): New function.
7228 (selected_frame_level): Document as deprecated.
7229 (select_frame): Do not set the selected_frame_level.
7231 * stack.c (frame_info, record_selected_frame): Update.
7232 (frame_command, current_frame_command): Update.
7233 (up_silently_base, up_command, down_silently_base): Update.
7234 (down_command): Update.
7235 * inflow.c (kill_command): Update.
7236 * tracepoint.c (finish_tfind_command): Update.
7237 * corelow.c (core_open): Update.
7238 * thread.c (info_threads_command): Update.
7239 (do_captured_thread_select): Update.
7240 * infcmd.c (finish_command): Update.
7241 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7243 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7245 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7247 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7249 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7252 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7254 * alphafbsd-tdep.c: Update copyright years. Include
7256 (alphafbsd_use_struct_convention): Make static.
7257 (alphafbsd_init_abi): New function.
7258 (_initialize_alphafbsd_tdep): New function.
7259 * config/alpha/tm-fbsd.h: Update copyright years.
7260 (USE_STRUCT_CONVENTION): Remove.
7262 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7264 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7265 an Alpha ABI variant.
7266 (alpha_abi_handler_list): Declare.
7267 (alpha_gdbarch_register_os_abi): New function.
7268 (alpha_gdbarch_init): Give registered ABI variant handlers a
7269 chance to tweak the gdbarch once we have set up defaults.
7270 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7272 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7274 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7275 to standard_coerce_float_to_double.
7276 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7278 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7280 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7281 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7282 from gdbarch_tdep rather than a constant.
7283 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7284 the default text address for all Alpha Unix ABIs.
7285 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7286 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7288 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7290 * alpha-tdep.h: New file. Includes several Alpha target constants
7292 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7293 let gdbarch deal with.
7294 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7295 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7297 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7298 Alpha target register names.
7299 * alphabsd-nat.c: Likewise.
7300 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7301 Alpha target register names. Make serveral routines static.
7302 (alpha_get_saved_register): New function.
7303 (alpha_abi_names): New.
7304 (process_note_abi_tag_sections): New function.
7305 (get_elfosabi): New function.
7306 (alpha_gdbarch_init): New function.
7307 (alpha_dump_tdep): New function.
7308 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7310 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7312 * frame.c (find_saved_register): Delete #ifdef
7313 HAVE_REGISTER_WINDOWS code.
7314 * config/sparc/tm-sparc.h: Update comments.
7315 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7317 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7319 * i960-tdep.c (i960_find_saved_register): New function.
7320 (i960_get_saved_register): New function.
7321 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7322 (i960_get_saved_register): Declare.
7323 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7325 2002-04-20 David S. Miller <davem@redhat.com>
7327 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7329 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7331 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7332 instead of NUM_PSEUDO_REGS.
7334 2002-04-20 David S. Miller <davem@redhat.com>
7336 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7337 GDB_MULTI_ARCH_PARTIAL
7338 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7339 define, let tm-sp64.h do it.
7341 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7343 * frame.c (find_saved_register): Avoid a NULL pointer
7344 dereference and actually walk the frame list.
7346 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7348 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7349 sorted in most most-recent-used order. Document.
7350 * gdbarch.h, gdbarch.c: Regenerate.
7352 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7354 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7356 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7357 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7358 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7361 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7364 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7365 (build_builtin_type_vec128): Ditto.
7366 (append_composite_type_field): Fix calculation of type length in
7369 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7371 * config/djgpp/README: Update.
7373 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7376 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7378 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7379 (alpha_setup_arbitrary_frame): ...to this.
7380 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7381 for alpha_setup_arbitrary_frame.
7383 2002-04-18 Andrew Cagney <cagney@redhat.com>
7385 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7386 * gdbarch.h, gdbarch.c: Regenerate.
7388 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7389 * target.h (memory_breakpoint_from_pc): Update declaration.
7390 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7392 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7393 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7394 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7395 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7396 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7397 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7398 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7399 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7400 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7401 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7402 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7403 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7405 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7407 * monitor.c (monitor_insert_breakpoint): Ditto.
7408 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7410 * config/mcore/tm-mcore.h: Update copyright.
7411 * mem-break.c: Ditto.
7412 * xstormy16-tdep.c: Ditto.
7414 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7416 * p-exp.y: Add precedence rule for '^' token.
7417 This removes the shift/reduce conflicts.
7418 Remove the comment concerning these shift/reduce conflicts.
7420 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7422 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7423 (registers_powerpc_nofp): New register set for processors
7424 without floating point unit.
7426 2002-04-18 David S. Miller <davem@redhat.com>
7428 * MAINTAINERS: Add myself to write-after-approval.
7430 2002-04-17 Michael Snyder <msnyder@redhat.com>
7432 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7434 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7436 * rs6000-tdep.c (frame_initial_stack_address): Use
7437 frame_register_read to read the alloca_reg.
7439 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7441 * frame.c (find_saved_register): Find saved registers in the next
7445 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7447 * gdbarch.sh (LANG): Set to ``c''.
7449 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7451 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7453 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7455 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7458 * hpread.c (hpread_get_lntt): Add declaration.
7459 Also fix PR gdb/391.
7461 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7463 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7464 * aclocal.m4, configure: Re-generate.
7467 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7469 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7470 instead of tm_print_insn.
7472 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7474 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7476 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7478 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7479 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7480 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7482 2002-04-12 Don Howard <dhoward@redhat.com>
7484 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7485 max_user_call_depth.
7486 (init_cmd_lists): Initialize the new value;
7487 * cli/cli-script.c (execute_user_command): Limit the call depth of
7488 user defined commands. This avoids a core-dump when user commands
7489 are infinitly recursive.
7491 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7493 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7494 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7495 from tdep struct instead of DEFAULT_LR_SAVE.
7496 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7497 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7498 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7500 2002-04-12 Michael Snyder <msnyder@redhat.com>
7502 * Remote.c: Spelling fix.
7503 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7504 If no symbol found for "sbrk", try "_sbrk".
7505 (make_output_phdrs): Use bfd_section_name.
7506 (gcore_copy_callback): Use bfd_section_name.
7507 * eval.c: Indentation fix-ups.
7508 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7509 in case it gets applied to an address that is already
7510 in the instruction space.
7511 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7512 * symfile.c: Fix indentation, long lines.
7513 * source.c: White space fix-up.
7515 2002-04-12 Andrew Cagney <cagney@redhat.com>
7517 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7518 * frame.c (frame_register_read): New function. Return non-zero on
7520 (read_relative_register_raw_bytes_for_frame): Delete.
7521 (read_relative_register_raw_bytes): Delete.
7522 * frame.h (frame_register_read): Declare.
7523 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7525 * infcmd.c (do_registers_info): Ditto.
7526 * hppa-tdep.c: Ditto.
7527 * rs6000-tdep.c: Ditto.
7528 * h8500-tdep.c: Ditto.
7529 * mips-tdep.c: Ditto.
7530 * h8300-tdep.c: Ditto.
7531 * z8k-tdep.c: Ditto.
7533 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7535 From Jimi X <jimix@watson.ibm.com>:
7536 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7539 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7541 From Jimi X <jimix@watson.ibm.com>:
7542 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7545 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7547 From Jimi X <jimix@watson.ibm.com>:
7548 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7549 register sets for these processor variants.
7551 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7553 * regformats/reg-ppc.dat: Support FPSCR.
7555 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7557 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7558 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7559 Add fpscr as an invalid/unfetchable register.
7560 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7561 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7562 (fill_fpregset): Add support for register fpscr.
7563 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7564 (fill_gregset): Account for the fact that register ``mq'' might
7566 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7567 (registers_power): Add fpscr to register set at slot 71.
7568 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7569 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7571 2002-04-11 Michael Snyder <msnyder@redhat.com>
7573 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7574 * configure: Regenerate.
7575 * config.in: Regenerate.
7576 * acconfig.h: Add define for _SYSCALL32.
7577 * core-sol2.c: Remove #define _SYSCALL32.
7578 * solib-legacy.c: Remove #define _SYSCALL32.
7580 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7582 * stack.c (select_frame): Cleanup internal error message, do not
7585 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7587 * stack.c (select_frame): Check that selected_frame and the
7588 specified level are as expected.
7589 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7591 * frame.h (struct frame_info): Add field `level'. Update
7593 Work-in-progress PR gdb/464.
7595 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7597 * maint.c (maint_print_section_info): Rename print_section_info.
7598 (print_bfd_section_info, print_objfile_section_info): Update.
7599 * inferior.h (struct gdbarch): Add opaque declaration.
7600 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7601 * gdbarch.h: Regenerate.
7603 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7605 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7606 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7607 (kernel_u_size): Added.
7608 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7609 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7611 2002-04-04 Jim Ingham <jingham@apple.com>
7613 * valarith.c (find_size_for_pointer_math): New function, either returns
7614 the size for a pointer's target, returns 1 for void *, or errors for
7616 (value_add, value_sub): use find_size_for_pointer_math.
7618 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7620 * linux-low.c (linux_look_up_symbols): New hook.
7621 (linux_target_ops): Add linux_look_up_symbols.
7622 * remote-utils.c (decode_address): New function.
7623 (look_up_one_symbol): New function.
7624 * server.c (handle_query): Call target look_up_symbols hook.
7625 * server.h (look_up_one_symbol): Add prototype.
7626 * target.h (struct target_ops): Add look_up_symbols hook.
7628 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7630 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7631 override FP_REGNUM with frame->fp. Update copyright.
7632 * parse.c (num_std_regs, std_regs): Delete.
7633 (target_map_name_to_register): Do not search std_regs. Update
7634 function description.
7635 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7636 declarations. Update copyright.
7639 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7641 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7642 after the last symbol in a block.
7644 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7646 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7647 is non zero as a found symbol.
7649 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7651 * findvar.c: Include "builtin-regs.h".
7652 (value_of_register): Call value_of_builtin_reg when applicable.
7653 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7654 (target_map_name_to_register): Call
7655 builtin_reg_map_name_to_regnum.
7656 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7657 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7658 (builtin_regs_h): Define.
7659 (builtin-regs.o): New target.
7660 (findvar.o): Add $(builtin_regs_h).
7661 * builtin-regs.c, builtin-regs.h: New files.
7662 * std-regs.c: New file.
7663 Partial fix for PR gdb/251.
7665 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7667 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7668 it's no longer required.
7670 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7672 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7674 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7676 From Jimi X <jimix@watson.ibm.com>:
7677 * rs6000-tdep.c (rs6000_software_single_step): Use
7678 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7679 and size. Use target_insert_breakpoint() and
7680 target_remove_breakpoint() to insert and remove breakpoints
7681 instead of explicit memory reads and writes.
7683 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7685 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7686 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7687 ELF_OBJECT_FORMAT ifdef.
7689 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7691 From Jimi X <jimix@watson.ibm.com>:
7692 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7694 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7696 From Jimi X <jimix@watson.ibm.com>:
7697 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7698 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7700 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7702 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7703 s/asprintf/xasprintf/.
7704 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7706 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7708 I believe Jeff Law denies responsability for this one:
7709 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7710 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7711 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7712 Work-around for PR gdb/366.
7714 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7716 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7717 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7718 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7720 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7722 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7723 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7726 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7728 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7731 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7733 * README (Reporting Bugs in GDB): Document the bug web page as the
7734 prefered way of submitting bugs.
7737 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7739 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7741 * gdbarch.h, gdbarch.c: Re-generate.
7743 2002-04-07 Andreas Schwab <schwab@suse.de>
7745 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7746 buffer to regcache_collect.
7748 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7750 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7751 * gdbarch.c, gdbarch.h: Re-generate.
7753 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7755 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7756 declaration. Fix -Werror.
7758 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7760 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7761 * gdbarch.c: Regenerate.
7763 2002-04-05 Michael Snyder <msnyder@redhat.com>
7765 * breakpoint.c (clear_command): Rewrite middle section to
7766 combine two loops with identical control conditions.
7767 Add a cleanup to eliminate a memory leak.
7768 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7770 2002-04-05 H.J. Lu (hjl@gnu.org)
7772 * solib-svr4.c (bkpt_names): Add "__start".
7774 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7776 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7777 as test for 64 bit target.
7779 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7781 * h8500-tdep.c (h8500_write_fp): Delete function.
7782 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7783 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7784 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7785 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7786 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7787 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7789 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7790 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7791 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7792 (d10v_write_fp): Delete function.
7793 * inferior.h (write_fp, generic_target_write_fp): Delete
7795 * regcache.c (generic_target_write_fp): Delete function.
7796 (write_fp): Delete function.
7797 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7798 * gdbarch.h, gdbarch.c: Regenerate.
7799 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7800 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7801 (sparc64_write_fp): Delete declaration.
7802 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7803 (h8500_write_fp): Delete declaration.
7805 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7807 * sparc-tdep.c (sparc64_write_fp): Delete.
7808 (sparc_push_dummy_frame): Replace write_fp call with code to store
7810 (sparc_gdbarch_init): Do not initialize write_fp.
7812 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7814 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7817 2002-03-29 Jim Blandy <jimb@redhat.com>
7819 * stack.c (get_selected_block): Add new argument `addr_in_block',
7820 used to return the exact code address we used to select the block,
7822 * blockframe.c (get_frame_block, get_current_block): Same.
7823 * frame.h (get_frame_block, get_current_block,
7824 get_selected_block): Update declarations.
7825 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7826 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7828 2002-04-05 Michael Snyder <msnyder@redhat.com>
7830 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7833 2002-04-05 J. Brobecker <brobecker@gnat.com>
7835 * utils.c (xfullpath): New function.
7836 * defs.h (xfullpath): Add declaration.
7837 * source.c (openp): Use xfullpath in place of gdb_realpath to
7838 avoid resolving the basename part of filenames when the
7839 associated file is a symbolic link. This fixes a potential
7840 inconsistency between the filenames known to GDB and the
7841 filenames it prints in the annotations.
7842 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7843 to be able to match a filename with either the real filename, or
7844 the name of any symbolic link to this file.
7845 (lookup_partial_symtab): Ditto.
7847 2002-04-04 Michael Snyder <msnyder@redhat.com>
7849 * breakpoint.c: Add support for hardware breakpoints in overlays.
7850 (overlay_events_enabled): New state variable.
7851 (insert_breakpoints): Use overlay_events_enabled to decide
7852 whether to attempt to set a breakpoint at the overlay load addr.
7853 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7854 (remove_breakpoint): Use overlay_events_enabled to decide
7855 whether breakpoints need to be removed from overlay load addr.
7856 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7857 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7858 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7859 disable_overlay_breakpoints): Update overlay_events_enabled.
7861 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7863 * dwarf2read.c (struct function_range): New.
7864 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7865 (check_cu_functions): New.
7866 (read_file_scope): Initialize global function lists.
7867 Call dwarf_decode_line after processing children.
7868 (read_func_scope): Add to global function list.
7869 (dwarf_decode_lines): Call check_cu_functions everywhere
7870 record_line is called. Call record_line with a linenumber
7871 of 0 to mark sequence ends.
7873 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7875 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7876 change sync with glibc.
7878 2002-04-03 Jim Blandy <jimb@redhat.com>
7880 * configure.in: Call AC_C_INLINE.
7881 * configure: Regenerated.
7883 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7885 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7886 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7888 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7890 * NEWS: Mention gcore support on FreeBSD/i386.
7892 * fbsd-proc.c: New file.
7893 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7894 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7896 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7899 2002-03-29 Jim Blandy <jimb@redhat.com>
7901 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7902 unescaped newlines in string literals, but newer ones don't. So
7905 2002-03-26 Michael Snyder <msnyder@redhat.com>
7906 Andrew Cagney <cagney@redhat.com>
7908 * cli/cli-dump.c: New file. Dump memory to file,
7909 restore file to memory.
7910 * cli/cli-dump.h: New file.
7911 * Makefile.in: Add rules, dependencies for cli-dump.o.
7912 * NEWS: Mention new commands.
7914 2002-03-28 Michael Snyder <msnyder@redhat.com>
7916 * symfile.c (symbol_file_add): Move test for null symbols to later.
7918 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7920 From veksler at il.ibm.com:
7921 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7922 the xstrduped original path.
7925 2002-03-27 Michael Snyder <msnyder@redhat.com>
7927 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7928 * infcmd.c (_initialize_infcmd): Ditto.
7929 * language.c (_initialize_language): Ditto.
7930 * symfile.c (_initialize_symfile): Ditto.
7931 * top.c (_init_main): Ditto.
7932 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7934 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7936 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7937 vector registers handling.
7938 (skip_prologue): Handle new AltiVec instructions. Fill in new
7939 fields of frame data.
7940 (frame_get_saved_regs): Fill in information for AltiVec registers.
7942 2002-03-27 Jim Blandy <jimb@redhat.com>
7944 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7945 a function; leave this macro here to invoke that function.
7946 (symbol_init_mangled_name): Declaration for that function.
7947 * symtab.c (symbol_init_mangled_name): New function.
7949 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7951 * valarith.c: Replace strerror with safe_strerror.
7952 * tracepoint.c: Ditto.
7954 * go32-nat.c: Ditto.
7958 2002-03-27 Andreas Schwab <schwab@suse.de>
7960 * event-top.c (command_line_handler): Remove useless if.
7962 2002-03-27 Andreas Jaeger <aj@suse.de>
7964 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7967 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7969 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7970 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7971 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7972 (x86_64_linux_dr_get_status, supply_gregset),
7973 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7974 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7975 (x86_64_register_info_table): Add.
7976 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7977 (x86_64_register_raw_size, x86_64_register_virtual_type),
7978 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7979 general x86_64_register_info_table.
7980 (i386_gdbarch_init): gdbarch_register_bytes is now set
7981 dynamicaly during initialization.
7982 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7983 * gdbserver/linux-x86-64-low.c: Ditto.
7985 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7987 * gdbserver/server.c (main): Call target_signal_to_host_p
7988 and target_signal_to_host on signals received from the remote.
7989 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7990 target_signal_from_host on signals sent to the remote.
7991 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7992 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7994 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7996 * signals/signals.c: Include "server.h" in gdbserver build.
7997 (target_signal_from_name): Don't use STREQ.
7998 (_initialize_signals): Likewise. Don't include function in
8001 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8003 * signals.c: Moved to...
8004 * signals/signals.c: Here.
8005 * Makefile (signals.o): Update.
8007 2002-03-26 Jeff Law (law@redhat.com)
8009 * somread.c (som_symtab_read): Remove some commented out code and
8010 updated related comments. Do not set the minimal symbol table to
8011 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8012 in a dynamic executable.
8013 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8014 where we are unable to find the minimal symbol for the given
8017 2002-03-25 Jeff Law (law@redhat.com)
8019 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8021 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8023 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8025 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8027 * command.h: Update copyright.
8028 (struct cmd_list_element): Replace definition with opaque
8030 (enum cmd_types): Document that it will eventually be moved to
8032 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8033 (MALLOCED_REPLACEMENT): Delete macro.
8034 * Makefile.in (cli_decode_h): Add $(command_h).
8035 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8036 * top.c: Include "cli/cli-decode.h".
8037 * completer.c: Include "cli/cli-decode.h".
8038 * maint.c: Include "cli/cli-decode.h".
8039 * cli/cli-decode.h: Include "command.h".
8040 (enum command_class): Delete.
8041 (enum cmd_types): Comment out.
8042 (enum cmd_auto_boolean): Delete.
8043 (enum var_types): Delete.
8045 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8047 * cli/cli-decode.c: Include "gdb_assert.h".
8048 (add_set_or_show_cmd): New static function.
8049 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8050 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8051 all fields, such as func, from the set command.
8053 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8055 * MAINTAINERS (sh-elf): Change warning flag to -w.
8057 2002-03-23 Andrew Cagney <cagney@redhat.com>
8059 * defs.h (error): Add printf format attribute.
8060 * thread-db.c (thread_from_lwp): Fix error format string.
8061 * stack.c (parse_frame_specification): Ditto.
8062 * cli/cli-decode.c (undef_cmd_error): Ditto.
8063 * scm-lang.c (scm_lookup_name): Ditto.
8064 * tracepoint.c (trace_error): Ditto.
8065 * remote-utils.c (usage): Ditto.
8066 * remote.c (compare_sections_command): Ditto.
8069 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8071 * gdbtypes.c (append_composite_type_field): New function.
8072 (init_composite_type): New function.
8073 * gdbtypes.h (append_composite_type_field): Declare.
8074 (init_composite_type): Ditto.
8076 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8078 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8080 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8081 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8082 structure returning convention for SYSV ABI case, but not
8083 for GNU/Linux, FreeBSD, or NetBSD.
8085 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8087 * symtab.h (lookup_block_symbol): Add mangled_name argument
8090 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8091 with new mangled_name argument.
8092 * linespec.c (decode_line_1): Likewise.
8093 * valops (value_of_this): Likewise.
8094 * symtab.c (lookup_transparent_type): Likewise.
8095 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8096 (lookup_symbol): If we are given a mangled name, pass it down
8097 to lookup_symbol_aux.
8098 (lookup_block_symbol): If we are given a mangled name to check
8099 against, only return symbols which match it.
8101 2002-03-22 Christopher Faylor <cgf@redhat.com>
8103 * win32-nat.c (child_create_inferior): Check for proper shell to use
8104 here, in case the user changes it on the fly.
8105 (_initialize_inftarg): Remove shell path considerations.
8107 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8109 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8110 for gdbarch_max_register_raw_size and max_register_virtual_size.
8111 Adjust copyright year.
8113 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8115 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8116 in a function to cover the entire beginning of the function
8117 as well if it does not already.
8119 2002-03-21 Tom Rix <trix@redhat.com>
8121 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8122 (rs6000_ptrace64): Renamed from ptrace64.
8124 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8126 * gdbserver/remote-utils.c (remote_open): Don't call
8127 getprotobyname, we're all using TCP here so just use
8129 * gdbserver/gdbreplay.c (remote_open): Ditto.
8131 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8133 * regcache.c (_initialize_regcache): No need to call
8134 build_regcache() at this time; it gets called whenever
8135 the gdbarch changes.
8137 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8139 * sparc-nat.c: Include sys/param.h where possible.
8141 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8144 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8145 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8146 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8148 * stabsread.c (rs6000_builtin_type): Likewise.
8149 (read_sun_floating_type): Likewise.
8151 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8153 * stabsread.c (read_member_functions): Remove skip code for duplicate
8154 constructor/destructor methods. Use standard parsing for these
8155 methods and just do not chain them to the list of methods after
8158 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8160 * coffread.c: Remove redundant static declarations. Replace
8161 occurrences of `PTR' with `void *'.
8162 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8163 * top.h (quit_cover): Likewise.
8164 * defs.h (catch_errors): Likewise.
8166 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8168 * defs.h (XMALLOC): Define.
8169 * gdb-events.sh (XMALLOC): Delete macro.
8170 * gdb-events.c, gdb-events.h: Regenerate.
8171 * gdbarch.sh (XMALLOC): Delete macro.
8172 * gdbarch.c: Regenerate.
8173 * serial.c (XMALLOC): Delete macro.
8174 * ui-file.c (XMALLOC): Ditto.
8175 * ser-unix.h (XMALLOC): Ditto.
8176 * sh-tdep.c (XMALLOC): Ditto.
8177 * ui-out.c (XMALLOC): Ditto.
8178 * utils.c (XMALLOC): Ditto.
8179 * i386-tdep.c (XMALLOC): Ditto.
8180 * gdb-events.c (XMALLOC): Ditto.
8181 * d10v-tdep.c (XMALLOC): Ditto.
8182 * cli-out.c (XMALLOC): Ditto.
8184 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8185 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8186 * ui-file.c, ui-out.c: Ditto.
8188 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8190 * command.h (struct cmd_list_element): Add field context.
8191 (set_cmd_context, get_cmd_context): Declare.
8192 * cli/cli-decode.h: Ditto.
8193 * cli/cli-decode.c (get_cmd_context): New function.
8194 (set_cmd_context): New function.
8195 (add_cmd): Initialize context.
8196 Part of fixing PR gdb/145 and PR gdb/146.
8198 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8200 * cli/cli-decode.c (cmd_type): New function.
8201 * command.h (cmd_type): Declare.
8202 * infrun.c (set_schedlock_func): Call function cmd_type.
8203 * kod.c (kod_set_os): Call cmd_type.
8204 * cris-tdep.c (cris_version_update): Use function cmd_type.
8205 (cris_mode_update, cris_abi_update): Ditto.
8207 * command.h: (execute_cmd_post_hook): Declare.
8208 (execute_cmd_pre_hook): Declare.
8209 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8210 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8211 functions. Execute pre/post hook while ensuring that afterwords
8213 * top.c (execute_command): Use execute_cmd_post_hook, and
8214 execute_cmd_pre_hook to execute pre/post commands.
8215 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8217 (hook_stop_stub): Call execute_cmd_pre_hook.
8219 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8221 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8222 set'' and this leads to a core dump. Move xstrdup of
8223 operating_system to after check that it is not NULL.
8225 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8227 * kod.c (kod_set_os): Remove unnecessary check that
8228 ``command->type'' is set_cmd.
8230 * valprint.c (set_input_radix): Use input_radix.
8231 (set_output_radix): Use output_radix.
8232 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8235 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8237 * value.h (struct value): Delete field ``substring_addr''. Change
8238 aligner fields to force_doublest_align, force_longest_align,
8239 force_core_addr_align and force_pointer_aligh.
8241 * value.h (struct value): Fix typo in above change.
8243 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8245 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8246 to fix internal_error from ``maintenance print architecture''.
8248 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8250 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8251 for gcc versions after gcc-2.8.1.
8253 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8255 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8256 for method resolution. Restore adjustment of ``this'' pointer after
8257 calling value_struct_elt, which was accidentally removed during the
8260 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8262 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8264 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8266 * value.h (value_of_register): Update.
8268 2002-03-14 Richard Henderson <rth@redhat.com>
8270 * configure.in: Detect declaration for canonicalize_file_name.
8271 * utils.c (canonicalize_file_name): Declare, if needed.
8272 (gdb_realpath): Prefer realpath if available and usable.
8273 * config.in, configure: Rebuild.
8275 2002-03-14 Richard Henderson <rth@redhat.com>
8277 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8278 a constant array bound.
8280 * MAINTAINERS: Add myself to write-after-approval.
8282 2002-03-14 Michael Snyder <msnyder@redhat.com>
8284 * symfile.c (syms_from_objfile): Return immediately if no syms.
8285 (symbol_file_add): Return immediately if no syms.
8286 (find_sym_fns): Return immediately if no syms.
8288 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8290 * gdbserver/remote-util.c (remote_open): Print remote-side's
8291 IP address when remote debugging over the network.
8293 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8295 * config/sparc/fbsd.mh: Fix copyright.
8296 * config/sparc/fbsd.mt: Likewise.
8298 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8300 * MAINTAINERS: Fix typo in name of gdb warnings option.
8301 (x86-64): Fix formating so that this can be parsed by awk.
8303 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8305 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8306 * defs.h: Include "gdb/signals.h".
8307 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8309 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8311 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8312 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8315 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8316 Don Howard <dhoward@redhat.com>
8318 * mips-tdep.c (ST0_FR): Define.
8319 (mips2_fp_compat): New function, temporarily disabled.
8320 (mips_read_fp_register_single): New function.
8321 (mips_read_fp_register_double): New function.
8322 (mips_print_register): Use them.
8323 (do_fp_register_row): Likewise.
8325 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8327 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8330 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8332 * stabsread.c (read_member_functions): Fix is_stub test for
8333 static member functions, improve comment.
8335 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8337 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8338 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8339 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8340 commands that set boolean values.
8341 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8342 (arm_rdi_resume): Always initialize PC.
8343 (arm_rdi_open): Don't use rslt as a boolean.
8344 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8345 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8346 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8347 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8349 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8351 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8352 * configure: Rebuilt.
8354 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8356 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8357 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8359 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8361 * cli/cli-decode.c (set_cmd_completer): New function.
8362 * command.h (set_cmd_completer): Declare.
8363 * cli/cli-decode.h (set_cmd_completer): Ditto.
8365 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8366 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8367 * win32-nat.c (_initialize_inftarg): Ditto.
8368 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8369 * proc-api.c (_initialize_proc_api): Ditto.
8370 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8371 * source.c (_initialize_source): Ditto.
8372 * exec.c (_initialize_exec): Ditto.
8373 * solib.c (_initialize_solib): Ditto.
8374 * top.c (init_main): Ditto.
8375 * tracepoint.c (_initialize_tracepoint): Ditto.
8376 * symfile.c (_initialize_symfile): Ditto.
8377 * printcmd.c (_initialize_printcmd): Ditto.
8378 * infcmd.c (_initialize_infcmd): Ditto.
8379 * corefile.c (_initialize_core): Ditto.
8381 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8383 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8385 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8387 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8389 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8391 * NEWS: Update headings, 5.2 has branched.
8393 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8395 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8396 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8397 (register_addr, REGISTER_RAW_SIZE): Likewise.
8398 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8399 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8401 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8403 * MAINTAINERS (x86-64): Add myself.
8404 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8405 changed value_ptr -> struct value *
8407 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8409 * configure.host (sparc64-*-freebsd): Add.
8410 * configure.tgt: Likewise.
8411 * config/sparc/fbsd.mh: New file.
8412 * config/sparc/fbsd.mt: Likewise.
8413 * config/sparc/nm-fbsd.h: Likewise.
8414 * config/sparc/tm-fbsd.h: Likewise.
8416 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8418 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8419 regformats/reg-s390x.dat.
8421 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8423 * utils.c: Add FIXME explaining true/false problem.
8425 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8427 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8429 2002-02-28 Michael Chastain <mec@shout.net>
8431 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8433 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8435 * gdbserver/linux-s390-low.c: New file.
8436 * regformats/reg-s390.dat: New file.
8437 * regformats/reg-s390x.dat: New file.
8438 * gdbserver/configure.srv: Add S/390.
8439 * gdbserver/Makefile.in: Add S/390.
8440 * configure.tgt: Enable gdbserver for S/390.
8442 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8444 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8445 first line of the doc string for "info dos", except at the end of
8446 the sentence, since the short help stops at the first period.
8448 2002-02-28 Jason Merrill <jason@redhat.com>
8450 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8452 2002-02-27 Fred Fish <fnf@redhat.com>
8454 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8455 comment (dumy -> dummy).
8457 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8459 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8461 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8463 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8465 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8467 * gdbserver/acconfig.h: New file.
8468 * gdbserver/i387-fp.c: New file.
8469 * gdbserver/i387-fp.h: New file.
8470 * gdbserver/linux-x86-64.c: New file.
8471 * regformats/reg-x86-64.dat: New file.
8472 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8473 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8474 * gdbserver/configure.in: Add support for regsets.
8475 * gdbserver/config.in: Regenerate.
8476 * gdbserver/configure: Regenerate.
8477 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8478 * gdbserver/linux-low.h: New file.
8479 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8481 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8482 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8483 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8484 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8485 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8486 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8487 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8488 "i387-fp.h". Add PTRACE_GETREGS and friends.
8489 * gdbserver/regcache.c (supply_register): New function.
8490 (supply_register_by_name): New function.
8491 (collect_register): New function.
8492 (collect_register_by_name): New function.
8494 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8496 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8497 (config.status): Add configure.srv dependency.
8498 (server_h): Add config.h dependency.
8500 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8502 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8503 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8504 * gdbserver/configure.srv: Change i386-*-linux* to use
8507 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8509 * x86-64-tdep.c: Re-indent. Update copyright date.
8511 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8513 From Michal Ludvig <mludvig@suse.cz>:
8514 * x86-64-tdep.c (value.h): Delete.
8515 (gdb_assert.h): Include.
8516 (x86_64_register_convert_to_virtual,
8517 x86_64_register_convert_to_raw ): Add check which lets only
8518 floating-point values to be converted.
8519 (value_push): Delete.
8520 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8521 (i386_gdbarch_init): Number of register_bytes fixed.
8523 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8525 * MAINTAINERS: Add x86-64 target.
8527 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8529 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8530 * osfsolib.c (solib_map_sections): Ditto.
8531 * irix5-nat.c (solib_map_sections): Ditto.
8532 * corelow.c (gdb_check_format): Ditto.
8533 * symfile.c (symfile_bfd_open): Ditto.
8534 * solib.c (solib_map_sections): Ditto.
8537 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8539 * remote.c (_initialize_remote): By default, disable ``e'' and
8540 ``E'' step out-of-range packets.
8542 2002-02-26 Andreas Schwab <schwab@suse.de>
8544 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8545 m68k_linux_frame_saved_pc.
8546 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8548 (SIGCONTEXT_PC_OFFSET): Remove.
8549 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8550 m68k_linux_sigtramp_saved_pc): New functions.
8551 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8552 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8553 (UCONTEXT_PC_OFFSET): Define.
8554 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8555 non-RT and RT signal trampolines.
8557 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8559 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8560 (TARGET_NBPG, STACK_END_ADDR): Delete
8561 (VARIABLES_INSIDE_BLOCK): Delete.
8563 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8565 * utils.c (perror_with_name): Make string parameter constant.
8566 (print_sys_errmsg): Ditto.
8568 * defs.h (perror_with_name): Update.
8569 (print_sys_errmsg): Update.
8572 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8574 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8575 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8577 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8579 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8580 if it already matches the current architecture from the exec file.
8581 Include arch-utils.h for gdbarch_info_init prototype.
8582 * Makefile.in (rs6000-nat.o): Update dependencies.
8584 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8586 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8587 list of exported variables.
8589 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8591 * gdbserver/configure.srv: New file.
8592 * gdbserver/configure.in: Use configure.srv instead
8593 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8595 * gdbserver/configure: Regenerated.
8596 * gdbserver/terminal.h: New file.
8597 * gdbserver/Makefile.in: Update for configure changes. Remove
8598 more unneeded include paths.
8600 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8602 From wiz at danbala:
8603 * config/sparc/tm-sp64.h: Fix grammar and typos.
8606 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8608 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8609 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8610 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8611 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8612 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8613 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8614 * s390-tdep.c: Ditto.
8615 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8616 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8617 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8618 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8619 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8620 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8621 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8622 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8623 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8624 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8627 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8629 * lin-thread.c: Delete file.
8630 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8631 to gdb_proc_service.h.
8632 * configure: Re-generate.
8634 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8635 * serial.c (serial_open): Delete check for "ocd".
8638 * Makefile.in (linux-thread.o): Delete target.
8639 * linux-thread.c: Delete file.
8641 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8642 renamed SH files to be consistent.
8644 * symtab.c (sort_search_symbols): Use xfree.
8646 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8648 * arm-linux-tdep.c (arm_linux_init_abi): Register
8649 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8650 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8651 definition with undef, since we don't want the sysvr4 definition.
8652 (SKIP_TRAMPOLINE_CODE): Likewise.
8654 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8656 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8658 * configure.in: (AC_CHECK_FUNCS) Added test for
8659 canonicalize_file_name Regenerated.
8660 * config.in, configure: Regenerated.
8661 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8662 defined use canonicalize_file_name.
8664 2002-02-23 Michael Chastain <mec@shout.net>
8666 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8668 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8670 * README: Remove references to cygnus.com.
8671 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8672 dot com'' form. Remove references to cygnus.com and sourceware.
8674 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8676 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8677 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8678 1003.1-2001 no longer allows "head -1".
8679 * gdb/Makefile.in (version.c): Likewise.
8680 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8681 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8682 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8684 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8686 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8687 * command.h (cmd_cfunc_eq): Declare.
8688 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8690 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8691 ``struct cmd_list_element *''.
8692 * cli/cli-cmds.c (is_complete_command): Update. Use
8694 * top.c (execute_command): Pass the command to
8695 is_complete_command.
8696 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8698 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8700 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8701 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8702 architecture defines.
8703 * s390-tdep.c (s390_gdbarch_init): Likewise.
8705 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8707 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8708 (arm_linux_push_arguments): Likewise.
8709 (arm_linux_init_abi): Register them. Also register linux-specific
8711 (find_minsym_and_objfile): Use strcmp, not STREQ.
8712 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8713 (arm_linux_call_dummy_words): Delete declaration.
8714 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8715 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8717 (LOWEST_PC): Delete.
8719 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8721 * maint.c (print_section_info): Do not prepend `0x' to filepos
8722 output, it will be handled by local_hex_string_custom.
8724 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8726 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8727 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8728 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8730 2002-02-22 Jim Blandy <jimb@redhat.com>
8732 Indicate that the bcache functions don't change the strings
8734 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8735 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8737 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8739 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8741 2002-02-21 Christopher Faylor <cgf@redhat.com>
8743 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8744 find the complete path to a loaded DLL.
8746 2002-02-21 Fred Fish <fnf@redhat.com>
8748 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8749 that marks the end of the range of a function, enter a line number
8750 entry that has a line number of zero and a PC offset that matches
8751 the end of the function. This starts a range of PC's for which no
8752 line number information is known.
8753 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8754 PC's for which no line number info is found (line number is zero)
8755 then we didn't find any valid line information.
8756 * symtab.h: Document use of zero line number entry.
8758 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8760 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8761 (have_ptrace_getvrregs): Define for run time checks.
8762 (gdb_vrregset_t): New type for Altivec register handling.
8763 (fetch_register, store_register): Fetch/store altivec register
8765 (fetch_altivec_register, store_altivec_register): New functions.
8766 (supply_vrregset, fill_vrregset): New functions.
8767 (fetch_altivec_registers, store_altivec_registers): New functions.
8768 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8771 2002-02-21 Jiri Smid <smid@suse.cz>
8773 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8775 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8777 * Makefile.in (armnbsd-nat.o): Update dependencies.
8778 * armnbsd-nat.c (supply_gregset): New function. Common code to
8779 supply the integer register set.
8780 (supply_fparegset): New function. Similar for FPA registers.
8781 (fetch_regs, fetch_fp_regs): Use them.
8782 (fetch_core_registers): Likewise.
8783 (fetch_elfcore_registers): New function.
8784 (arm_netbsd_elfcore_fns): New core-file type specification.
8785 (_initialize_arm_netbsd_nat): Register it.
8787 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8789 * armnbsd-nat.c: Include gdbcore.h.
8790 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8791 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8792 'void' to declaration, to shut up ARI.
8793 (fetch_core_registers): Make static. Rewrite using supply_register.
8794 (arm_netbsd_core_fns): New core-file type specification.
8795 (_initialize_arm_netbsd_nat): New function.
8797 2002-02-21 Christopher Faylor <cgf@redhat.com>
8799 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8802 2002-02-20 Christopher Faylor <cgf@redhat.com>
8804 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8807 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8809 * jv-exp.y (parse_number): Change type of implicit longs
8810 to builtin_type_uint64.
8812 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8814 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8815 to be an integer instead of a `union wait'.
8817 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8819 * mips-linux-nat.c: Call the operating system GNU/Linux.
8820 * mips-linux-tdep.c: Likewise.
8821 * mips-tdep.c: Likewise.
8823 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8826 * jv-exp.y (parse_number): Handle 64-bit integers.
8828 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8830 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8831 AC_STDC_HEADERS to AC_HEADER_STDC.
8832 * gdbserver/configure: Regenerated.
8834 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8836 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8838 * sparc-tdep.c (get_longjmp_target): Likewise.
8840 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8842 * News: Add news about ARM and Multi-arch. Mention the new target
8845 2002-02-19 Jim Blandy <jimb@redhat.com>
8847 * stabsread.c (error_type_complaint): Improve error message.
8849 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8851 * gdbserver/README: Update documentation.
8852 * gdbserver/configure.in: Update configury to match documentation.
8853 * gdbserver/Makefile.in: Likewise.
8854 * gdbserver/configure: Regenerated.
8855 * gdbserver/aclocal.m4: New file, generated by aclocal.
8856 * gdbserver/config.in: New file, generated by autoheader.
8858 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8860 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8863 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8865 * arm-tdep.h (enum arm_float_model): New enum.
8866 (struct gdbarch_tdep): Add fp_model.
8867 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8868 up floating-point conversions until we know the floating-point model
8869 in use by the inferior. Don't complain about being unable to
8870 determine the ABI of the inferior when we don't have one.
8871 (arm_extract_return_value): Support different floating-point models.
8872 (arm_store_return_value): Likewise.
8873 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8875 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8877 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8879 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8880 of ``current_gdbarch''.
8882 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8884 * armnbsd-nat.c : ANSIfy all function declarations.
8885 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8886 (fetch_inferior_registers): Re-implement in terms of above.
8887 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8888 (store_inferior_registers): Re-implement in terms of above.
8890 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8892 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8894 * arm-linux-tdep.c: Likewise.
8895 * config/arm/tm-linux.h: Likewise.
8897 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8899 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8900 * config/arm/nbsd.mt (TM_FILE): Delete.
8901 * config/arm/tm-nbsd.h: Delete.
8903 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8905 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8906 Initialize CALL_DUMMY_LENGTH.
8908 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8910 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8912 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8913 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8914 defines one thing and that is incorrect for this port.
8915 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8917 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8919 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8921 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8923 * win32-nat.c (display_selector): New function. Displays information
8924 about the information returned by GetThreadSelectorEntry API function.
8925 (display_selectors): New function. Displays the infomation of
8926 the selector given as argument, or of CS, DS ans FS selectors
8927 if no argument is given.
8928 ( _initialize_inftarg): Add "w32" as info prefix command.
8929 Add "info w32 selector" as command calling display_selectors.
8931 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8933 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8934 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8937 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8939 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8941 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8943 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8944 (arm_fix_call_dummy): Call it.
8945 (arm_call_dummy_breakpoint_offset): Delete.
8946 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8947 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8949 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8951 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8952 Default to func_frame_chain_valid.
8953 * gdbarch.h, gdbarch.c: Re-generate.
8954 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8956 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8958 * ppc-linux-nat.c: Update copyright.
8959 (fetch_register, store_register): Add tid parameter, don't compute
8961 (fetch_ppc_registers, store_ppc_registers): Add tid
8962 parameter. Pass it along to callees.
8963 (fetch_inferior_registers, store_inferior_registers): Compute tid
8964 here, and pass it to calleed functions.
8965 (fill_gregset, supply_fpregset): Clean up formatting.
8967 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8969 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8970 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8972 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8974 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8975 * gdbarch.c gdbarch.h: Regenerate.
8976 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8978 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8979 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8980 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8982 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8983 * arm-tdep.c (arm_get_longjmp_target): New function.
8984 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8985 this to a positive value register arm_get_longjmp_target as the
8987 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8988 (arm_linux_init_abi): Set up longjmp description in tdep.
8989 * armnbsd-nat.c (get_longjmp_target): Delete.
8990 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8991 description in tdep.
8992 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8993 (get_longjmp_target): Delete declaration.
8994 (GET_LONGJMP_TARGET): Delete.
8995 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8996 (GET_LONGJMP_TARGET): Delete.
8998 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9000 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9001 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9002 of ``current_gdbarch''.
9004 2002-02-17 Tom Tromey <tromey@redhat.com>
9006 * cli/cli-cmds.c (compare_strings): New function.
9007 (complete_command): Only print each unique item once.
9008 * completer.h (complete_line): Declare.
9009 * completer.c (complete_line): New function.
9010 (line_completion_function): Use it.
9012 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9014 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9015 * gdbarch.h, gdbarch.c: Re-generate.
9017 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9019 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9021 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9023 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9024 * valops.c (value_arg_coerce): Don't take the address of a reference
9025 to convert an argument to a reference.
9027 2002-02-15 Christopher Faylor <cgf@redhat.com>
9029 * win32-nat.c (get_image_name): New function.
9030 (handle_load_dll): Use get_image_name function.
9031 (get_child_debug_event): Avoid registering debug events until possibly
9032 execed process is started.
9033 (child_create_inferior): Allow invocation via shell so that command
9034 line redirection, etc. works ok.
9035 (_initialize_inftarg): Add new command: "set shell" to control whether
9036 a shell is used to start a process.
9038 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9040 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9041 instead of find_register_by_number.
9042 (cannot_store_register): Likewise.
9044 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9046 * dwarf2read.c: Replace fprintf (stderr, ...) by
9047 fprintf_unfiltered (gdb_stderr, ...).
9049 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9051 * gdbserver/gdbserver.1: Document --attach.
9053 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9055 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9057 * arm-tdep.c (arm_default_arm_le_breakpoint)
9058 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9059 (arm_default_thumb_be_breakpoint): New. Initialize them from
9060 traditional breakpoint defines.
9061 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9062 (arm_gdbarch_init): Initialize new breakpoint variables.
9063 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9064 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9065 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9066 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9068 (arm_netbsd_init_abi_common): ... here; new function.
9069 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9070 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9071 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9072 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9074 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9076 * arm-tdep.h (enum arm_abi): New enum.
9077 (struct gdbarch_tdep): New structure.
9078 (LOWEST_PC): Provide a default.
9079 (arm_gdbarch_register_os_abi): Declare new function.
9080 * arm-tdep.c (arm_abi_names): New array.
9081 (process_note_abi_tag_sections): New function.
9082 (get_elfosabi): New function.
9083 (arm_gdbarch_register_os_abi): New function.
9084 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9085 support for that ABI has been built in, then call the appropriate
9086 configuration routine. Use gdbarch_num_regs() to get the number
9088 (arm_dump_tdep): New function.
9089 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9090 place-holder functions.
9091 (_initialize_arm_tdep): Register them.
9092 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9094 * armnbsd-tdep.c: New file.
9095 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9096 * config/arm/nbsd.mt (TDEPFILES): Add it.
9097 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9099 * armnbsd-nat.c: Include regcache.h.
9100 * Makefile.in (armnbsd-nat.o): Update dependency list.
9102 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9104 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9106 * gdbserver/Makefile.in: Fix typos in target rules.
9108 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9110 Fix part of PR gdb/267.
9111 * linespec.c (find_methods): Handle constructors specially for now.
9113 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9115 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9117 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9118 standard_coerce_float_to_double().
9120 2002-02-14 Christopher Faylor <cgf@redhat.com>
9122 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9125 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9127 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9128 find_variant_by_name, because it confuses the multiarch
9129 framework. Return NULL if there isn't an architecture with the
9130 user supplied name, instead of forcing a different one without
9131 recording the change with the multiarch machinery.
9132 (find_variant_by_name): Delete.
9134 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9136 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9137 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9139 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9141 * stack.c (print_frame_info_base): When calling
9142 print_frame_info_listing_hook, set current_source_symtab.
9144 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9146 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9147 and remove unused $(INCLUDE_DIR).
9148 Add regcache.c to OBS.
9149 Add generated register protocol files to clean target.
9150 Update dependencies for new objects, obsolete old target code.
9152 * gdbserver/linux-low.c: Remove all platform-specific code to
9153 new files. Remove various dead code. Update to use regcache
9155 * gdbserver/remote-utils.c (fromhex): Add return statement
9157 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9159 (input_interrupt): Add integer parameter to match prototype
9160 of a signal handler.
9161 (outreg): Use register_data ().
9162 (prepare_resume_reply): Use gdbserver_expedite_regs.
9163 * gdbserver/server.c (main): Dynamically allocate own_buf because
9164 PBUFSIZ is no longer constant. Use registers_to_string () and
9165 registers_from_string ().
9166 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9167 for error (), fatal (), and warning (). Update definition of
9168 PBUFSIZ to use regcache functionality. Add include guard.
9169 * gdbserver/utils.c (fatal): Add missing ``const''.
9170 (warning): New function.
9172 * regformats/regdat.sh: Include "regcache.h" in generated files.
9173 Provide init_registers () function.
9174 * regformats/regdef.h: Add prototype for set_register_cache ().
9177 * gdbserver/linux-arm-low.c: New file.
9178 * gdbserver/linux-i386-low.c: New file.
9179 * gdbserver/linux-ia64-low.c: New file.
9180 * gdbserver/linux-m68k-low.c: New file.
9181 * gdbserver/linux-mips-low.c: New file.
9182 * gdbserver/linux-ppc-low.c: New file.
9183 * gdbserver/linux-sh-low.c: New file.
9185 * gdbserver/regcache.c: New file.
9186 * gdbserver/regcache.h: New file.
9188 * gdbserver/low-linux.c: Removed obsolete file.
9190 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9192 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9193 * config/i386/linux.mt: Likewise.
9194 * config/ia64/linux.mt: Likewise.
9195 * config/m68k/linux.mh: Likewise.
9196 * config/powerpc/linux.mh: Likewise.
9197 * config/mips/linux.mt: Likewise.
9199 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9201 * config/i386/i386lynx.mh: Mark gdbserver variables
9202 as (currently) obsolete for this target.
9203 * config/i386/nbsd.mt: Likewise.
9204 * config/i386/nbsdelf.mt: Likewise.
9205 * config/m32r/m32r.mt: Likewise.
9206 * config/m68k/m68klynx.mh: Likewise.
9207 * config/m68k/nbsd.mt: Likewise.
9208 * config/m68k/sun3os4.mh: Likewise.
9209 * config/mips/vr5000.mt: Likewise.
9210 * config/ns32k/nbsd.mt: Likewise.
9211 * config/pa/hppabsd.mh: Likewise.
9212 * config/pa/hppaosf.mh: Likewise.
9213 * config/powerpc/nbsd.mt: Likewise.
9214 * config/rs6000/rs6000lynx.mh: Likewise.
9215 * config/s390/s390.mt: Likewise.
9216 * config/s390/s390x.mt: Likewise.
9217 * config/sparc/sparclynx.mh: Likewise.
9218 * config/sparc/sun4os4.mh: Likewise.
9219 * config/i386/x86-64linux.mt: Likewise.
9220 * config/sparc/linux.mh: Likewise.
9222 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9224 * configure.tgt: Configure gdbserver only for known working
9225 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9226 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9227 SUBDIRS if it is configured. Update comment for ${nativefile}.
9228 * configure: Regenerated.
9230 2002-02-13 Michael Snyder <msnyder@redhat.com>
9232 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9234 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9235 (default_gcore_mach): Just return 0, work around a problem in bfd.
9236 (default_gcore_target): OK to return NULL if exec_bfd is null.
9237 (make_mem_sec): Use a cast, avoid a warning.
9239 * procfs.c (find_memory_regions_callback): Use a cast instead of
9240 calling host_pointer_to_address (which complains if
9241 sizeof (host pointer) != sizeof (target pointer)).
9242 (procfs_make_note_section): Avoid overflow in psargs string.
9244 * procfs.c (procfs_make_note_section): Make the default
9245 implementation return an error.
9247 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9249 * procfs.c (procfs_make_note_section): Provide a default definition
9250 (for alpha-dec-osf4.0f). Fix typos.
9252 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9254 * linux-proc.c: Add include of regcache.h.
9255 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9257 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9259 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9260 * memattr.c (create_mem_region): Disallow useless empty region.
9261 Regions are half-open intervals, so allow [A..B) [B..C) as
9264 2002-02-13 Michael Chastain <mec@shout.net>
9266 * defs.h: Kill CONST_PTR.
9267 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9268 * c-lang.c (c_builtin_types): Likewise.
9269 * ch-lang.c (ch_builtin_types): Likewise.
9270 * f-lang.c (f_builtin_types): Likewise.
9271 * language.c (unknown_builtin_types): Likewise.
9272 * m2-lang.c (m2_builtin_types): Likewise.
9273 * p-lang.c (pascal_builtin_types): Likewise.
9274 * scm-lang.c (c_builtin_types): Likewise.
9276 2002-02-13 Keith Seitz <keiths@redhat.com>
9278 * arm-tdep.h (arm_get_next_pc): Add declaration.
9280 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9282 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9283 with other related struct-returning functions.
9284 (arm_extract_struct_value_address): New function.
9285 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9286 initialize float_format, double_format and long_double_format as
9287 appropriate to the endianness of the target.
9288 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9289 (arm_use_struct_convention): Delete declaration.
9290 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9292 2002-02-13 Keith Seitz <keiths@redhat.com>
9294 * defs.h (core_addr_to_string_nz): New function.
9296 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9298 Apply missing bits of 2002-01-15 patch.
9299 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9300 (fill_fpregset): Use i387_fill_fsave.
9302 2002-02-12 Keith Seitz <keiths@redhat.com>
9304 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9305 (core_addr_to_string_nz): New function.
9307 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9309 * arm-linux-nat.c: Really include arm-tdep.h.
9310 * config/arm/tm-linux.h (struct type, struct value): Declare.
9312 2002-02-11 Michael Snyder <msnyder@redhat.com>
9314 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9315 (gcore section): Ifdef for Solaris and Unixware only.
9316 (procfs_do_thread_registers): Unixware needs one lwpstatus
9317 per thread (not one prstatus or pstatus).
9318 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9319 not over all gdb threads. For unixware, call elfcore_write_pstatus
9320 once before iterating over threads.
9322 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9324 * arm-tdep.h: New file.
9325 * arm-tdep.c: Include arm-tdep.h.
9326 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9327 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9328 (arm_print_float_info, arm_register_type, convert_to_extended)
9329 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9330 (arm_extract_return_value, arm_register_name): Make static.
9331 (arm_software_single_step): Similarly. Fix types in declaration.
9332 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9333 (arm_store_return_value, arm_store_struct_return): New functions.
9334 (arm_gdbarch_init): Register the above functions. Also register
9335 call_dummy_start_offset, sizeof_call_dummy_words,
9336 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9337 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9338 max_register_virtual_size, register_size. Set up
9339 prologue_cache.saved_regs here, rather than ...
9340 (_initialize_arm_tdep): ... here.
9341 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9343 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9344 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9345 (arm_print_float_info, arm_register_type, convert_to_extended)
9346 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9347 (arm_extract_return_value, arm_register_name): Delete declarations.
9348 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9349 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9350 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9351 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9352 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9353 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9354 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9355 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9356 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9357 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9358 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9359 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9361 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9362 * remote-rdi.c remote-rdp.c: Likewise.
9363 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9364 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9365 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9368 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9369 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9370 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9371 from non-ARM_ prefixed definitions.
9372 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9374 * remote-rdi.c remote-rdp.c: Likewise.
9375 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9377 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9379 * arm-tdep.c (arm_frameless_function_invocation)
9380 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9381 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9382 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9383 (arm_pop_frame, arm_get_next_pc): Make static.
9384 (arm_gdbarch_init): Register above in gdbarch structure.
9385 (arm_read_fp): Renamed from arm_target_read_fp.
9386 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9387 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9388 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9389 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9390 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9391 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9392 (arm_pc_is_thumb_dummy): Delete declarations.
9393 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9394 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9395 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9396 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9398 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9400 * symtab.c (compare_search_syms): New function.
9401 (sort_search_symbols): New function.
9402 (search_symbols): Sort symbols after searching rather than
9405 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9407 * NEWS: Linux -> GNU/Linux.
9409 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9411 * gdbarch.sh: For for level one methods, disallow a definition
9412 when partially multi-arched. Add comments explaining rationale.
9413 * gdbarch.h: Re-generate.
9415 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9417 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9420 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9422 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9424 * gdbarch.c: Re-generate.
9426 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9428 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9429 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9432 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9434 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9436 (PUSH_ARGUMENTS): Switch to using predefault.
9437 * gdbarch.c: Regenerate.
9439 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9441 * valops.c (PUSH_ARGUMENTS): Delete definition.
9442 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9443 partial. Default to default_push_arguments.
9444 * gdbarch.h, gdbarch.c: Regenerate.
9446 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9448 * defs.h (throw_exception): Rename return_to_top_level. Update
9450 * utils.c (error_stream, internal_verror, quit): Ditto.
9451 * top.c (throw_exception, catcher): Ditto.
9452 * sparclet-rom.c (sparclet_load): Ditto.
9453 * remote.c (interrupt_query, minitelnet): Ditto.
9454 * remote-sds.c (interrupt_query): Ditto.
9455 * remote-mips.c (mips_error, mips_kill): Ditto.
9456 * ocd.c (interrupt_query): Ditto.
9457 * monitor.c (monitor_interrupt_query): Ditto.
9458 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9459 * target.h: Update comment.
9461 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9463 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9465 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9466 default_double_format.
9467 * gdbarch.h, gdbarch.c: Re-generate.
9468 * findvar.c (floatformat_unknown): Delete variable definition.
9469 * doublest.h (floatformat_unknown): Delete variable declaration.
9471 2002-02-09 Jim Blandy <jimb@redhat.com>
9473 * stabsread.c (read_type): Add code to parse Sun's syntax for
9474 prototyped function types.
9476 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9478 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9479 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9481 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9483 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9484 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9485 now _initialize_xcoffsolib gets called again and overrides the
9486 commands from solib.c in a native configuration.
9488 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9490 * doublest.c (store_typed_floating): Don't try to return a value.
9493 2002-02-08 Jim Blandy <jimb@redhat.com>
9495 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9496 is prototyped and has no arguments, print its argument list as
9499 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9501 * MAINTAINERS (write-after-approval): Add myself.
9502 (paper-trail): I've escaped!
9504 2002-02-08 Christopher Faylor <cgf@redhat.com>
9506 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9508 (_initialize_check_for_gdb_ini): Ditto.
9510 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9512 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9513 xaprintf -> xasprintf.
9515 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9517 * win32-nat.c: Remove use of printf and sprintf functions.
9519 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9521 * arm-tdep.c (arm_frame_chain_valid): Make static.
9522 (arm_push_arguments): Likewise.
9523 (arm_gdbarch_init): New function.
9524 (_initialize_arm_tdep): Call it.
9525 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9526 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9527 (FRAME_CHAIN_VALID): Delete.
9528 (arm_frame_chain_valid): Delete declaration.
9529 (PUSH_ARGUMENTS): Delete.
9530 (arm_push_arguments): Delete declaration.
9531 (CALL_DUMMY_P): Delete.
9533 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9534 Corinna Vinschen <vinschen@redhat.com>
9536 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9537 on builtin float types.
9539 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9541 * utils.c: Include <curses.h> before "bfd.h".
9542 * tui/tui-hooks.c: Likewise.
9543 * tui/tui.c: Likewise.
9544 * tui/tuiCommand.c: Likewise.
9545 * tui/tuiData.c: Likewise.
9546 * tui/tuiDataWin.c: Likewise.
9547 * tui/tuiDisassem.c: Likewise.
9548 * tui/tuiGeneralWin.c: Likewise.
9549 * tui/tuiIO.c: Likewise.
9550 * tui/tuiLayout.c: Likewise.
9551 * tui/tuiRegs.c: Likewise.
9552 * tui/tuiSource.c: Likewise.
9553 * tui/tuiSourceWin.c: Likewise.
9554 * tui/tuiStack.c: Likewise.
9555 * tui/tuiWin.c: Likewise.
9557 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9559 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9560 to include space for pseudoregs as well. Update loops accordingly.
9561 (sh_fp_frame_init_saved_regs): Ditto.
9562 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9564 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9566 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9567 Add Richard Earnshaw to Arm maintainers.
9569 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9571 * defs.h (warning_begin): Delete declaration.
9573 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9576 2002-02-07 Michael Snyder <msnyder@redhat.com>
9578 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9579 Logic bug, remove misplaced else.
9581 2002-02-07 Klee Dienes <klee@apple.com>
9583 * fork-inferior.c (fork_inferior): Add '!' to the list of
9584 characters that need to be quoted when building a string for the
9585 shell. Quote '!' specifically with a backslash, since CSH chokes
9586 when trying to evaluate "str!str".
9588 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9590 * rdi-share/host.h: Only provide a typedef for bool if it is not
9593 2002-02-04 Michael Snyder <msnyder@redhat.com>
9595 * breakpoint.h (enum bptype): Add new overlay event bp type.
9596 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9598 * breakpoint.c (create_internal_breakpoint): New function.
9599 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9600 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9601 (create_thread_event_breakpoint): Ditto.
9602 (create_solib_event_breakpoint): Ditto.
9603 (create_overlay_event_breakpoint): New function.
9604 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9605 (update_breakpoints_after_exec): Delete and re-initialize
9606 overlay event breakpoints after an exec. Add FIXME comment
9607 about longjmp breakpoint.
9608 (print_it_typical): Ignore overlay event breakpoints.
9609 (print_one_breakpoint): Ditto.
9611 (bpstat_what): Do not stop for overlay event breakpoints.
9612 (delete_breakpoint): Don't delete overlay event breakpoints.
9613 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9614 (breakpoint_re_set): Re-create overlay event breakpoint.
9616 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9617 (overlay_manual_command): Disable overlay breakpoints.
9618 (overlay_off_command): Disable overlay breakpoints.
9620 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9622 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9623 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9624 to here from config/tm-arm.h.
9625 (coff_sym_is_thumb): Make static.
9626 (arm_elf_make_msymbol_special): New function.
9627 (arm_coff_make_msymbol_special): New function.
9628 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9629 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9630 (coff_sym_is_thumb): Delete declaration.
9631 (arm_elf_make_msymbol_special): Declare.
9632 (arm_coff_make_msymbol_special): Declare.
9633 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9634 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9636 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9638 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9640 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9642 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9643 * gdbarch.c gdbarch.h: Regenerate.
9644 * arch-utils.c (default_print_float_info): New function.
9645 * arch-utils.h (default_print_float_info): Prototype it.
9646 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9647 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9648 (PRINT_FLOAT_INFO): Document it.
9650 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9651 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9652 (PRINT_FLOAT_INFO): Define.
9654 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9656 * win32-nat.c (_initialize_check_for_gdb_ini):
9657 Add typecast to sprintf argument to suppress a warning.
9659 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9661 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9662 to allow easier handling of pass state.
9663 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9664 that gives exception name and address.
9665 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9666 and set last_sig value to ourstatus->value.sig. Some missing
9668 (child_continue): Correctly report continue_status.
9669 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9670 TARGET_SIGNAL_0 (new default value).
9671 (child_resume): consider sig argument passed to decide if
9672 the exception should be passed to debuggee or not.
9674 2002-02-05 Michael Snyder <msnyder@redhat.com>
9676 * regcache.c (fetch_register): Call target_fetch_register
9677 only if we don't call FETCH_PSEUDO_REGISTER.
9678 (store_register): Call target_store_register only if we
9679 don't call STORE_PSEUDO_REGISTER.
9681 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9683 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9684 ELF_MAKE_MSYMBOL_SPECIAL.
9685 * gdbarch.c, gdbarch.h: Regenerate.
9686 * arch-utils.c (default_make_msymbol_special): New function.
9687 * arch-utils.h (default_make_msymbol_special): Export.
9688 * elfread.c (elf_symtab_read): Compile use of
9689 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9691 * coffread.c (coff_symtab_read): Ditto, for
9692 COFF_MAKE_MSYMBOL_SPECIAL.
9694 2002-02-05 Jim Blandy <jimb@redhat.com>
9696 * solib-svr4.c (svr4_truncate_ptr): New function.
9697 (svr4_relocate_section_addresses): Do the address arithmetic with
9698 the appropriate truncation for target addresses, even when
9699 CORE_ADDR is larger than a target address.
9701 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9703 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9706 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9708 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9711 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9713 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9715 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9717 * gdbserver/linux-low.c: Remove unused include files.
9719 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9721 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9722 (read_inferior_memory): Use it.
9723 (write_inferior_memory): Likewise.
9725 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9727 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9728 grubbing through sys_errlist.
9730 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9732 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9734 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9735 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9737 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9739 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9740 (do_sfunc, set_cmd_sfunc): New functions.
9742 * command.h (struct cmd_list_element): Add field func.
9743 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9744 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9745 * cli/cli-decode.h: Ditto.
9747 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9748 (help_all, help_cmd_list): Ditto.
9749 (find_cmd, complete_on_cmdlist): Ditto.
9750 * top.c (execute_command): Ditto.
9752 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9755 * infcmd.c (notice_args_read): Fix function signature.
9757 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9758 * cli/cli-decode.c (add_set_cmd): Ditto.
9759 * utils.c (initialize_utils): Ditto.
9760 * maint.c (_initialize_maint_cmds): Ditto.
9761 * infrun.c (_initialize_infrun): Ditto.
9762 * demangle.c (_initialize_demangler): Ditto.
9763 * remote.c (add_packet_config_cmd): Ditto.
9764 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9765 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9766 * proc-api.c (_initialize_proc_api): Ditto.
9767 * kod.c (_initialize_kod): Ditto.
9768 * valprint.c (_initialize_valprint): Ditto.
9769 * top.c (init_main): Ditto.
9770 * infcmd.c (_initialize_infcmd): Ditto.
9771 * corefile.c (_initialize_core): Ditto.
9772 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9773 * arch-utils.c (initialize_current_architecture): Ditto.
9774 (_initialize_gdbarch_utils): Ditto.
9775 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9777 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9778 * wince.c (_initialize_inftarg): Ditto.
9779 * symfile.c (_initialize_symfile): Ditto.
9780 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9781 * language.c (_initialize_language): Ditto.
9782 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9784 2002-02-04 Michael Snyder <msnyder@redhat.com>
9786 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9788 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9790 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9791 Add rules for building the register data files.
9793 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9795 * regformats/regdat.sh: Add braces to the definition of
9796 expedite_regs_${arch}.
9798 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9800 * regformats/regdef.h (struct reg): Add comment describing the
9801 requirements for offset and size fields.
9803 2002-02-04 Andreas Schwab <schwab@suse.de>
9805 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9806 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9808 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9810 * gdbarch.sh (copyright): Update years in generated header.
9811 (SMASH_TEXT_ADDRESS): Add rule.
9812 * gdbarch.h, gdbarch.c: Re-generate.
9813 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9814 * dbxread.c: Likewise.
9815 * dwarfread.c: Likewise.
9816 * elfread.c: Likewise.
9817 * somread.c: Likewise.
9819 * arm-tdep.c (arm_smash_text_address): New function.
9820 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9822 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9824 Add support for hardware watchpoints on win32 native.
9825 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9826 CONTEXT_DEBUG_REGISTERS.
9827 (dr variable): New variable. Static array containing a local copy
9829 (debug_registers_changed): New variable. Reflects when debug registers
9830 are changed and need to be written to inferior.
9831 (debug_registers_used): New variable. Reflects when any debug register
9832 was set, used when new threads are created.
9833 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9835 (thread_rec): Set dr array if id is the thread of current_event .
9836 (child_continue, child_resume): Change the debug registers for all
9837 threads if debug_registers_changed.
9838 (child_add_thread): Change the debug registers if debug_registers_used.
9839 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9840 Link nm.h to new nm-cygwin.h file.
9841 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9842 of hardware registers.
9844 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9846 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9847 Restore behavour broken by 2002-01-20 Andrew Cagney
9848 <ac131313@redhat.com> IEEE_FLOAT removal.
9850 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9852 * c-valprint.c (c_val_print): Pass a proper valaddr to
9853 cp_print_class_method.
9854 * valops.c (search_struct_method): If there is only one method
9855 and args is NULL, return that method.
9857 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9859 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9860 accessing tag_name directly.
9862 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9864 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9865 of accessing tag_name directly.
9867 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9870 * gdbtypes.c (replace_type): New function.
9871 * gdbtypes.h (replace_type): Add prototype.
9872 * stabsread.c (read_type): Use replace_type.
9874 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9876 * Makefile.in (memattr.o): Add missing dependencies rule.
9878 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9880 * breakpoint.c (break_at_finish_command): Really export.
9881 (break_at_finish_at_depth_command): Ditto.
9882 (tbreak_at_finish_command): Ditto.
9883 * hppa-tdep.c: Include completer.h.
9884 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9885 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9887 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9889 * utils.c (do_write): New function.
9890 (error_stream): Rewrite combining the code from error_begin and
9892 (verror): Rewrite using error_stream.
9893 (error_begin): Delete function.
9895 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9897 * utils.c (error_begin): Make static.
9898 * defs.h (error_begin): Delete declaration.
9900 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9901 (decode_line_1): Use cplusplus_error instead of error_begin,
9902 cplusplus_hint and return_to_top_level.
9903 * coffread.c (coff_symfile_read): Use error instead of error_begin
9904 and return_to_top_level.
9905 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9907 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9909 * language.h (type_error, range_error): Make string parameter
9911 * language.c (warning_pre_print): Delete extern declaration.
9912 * dwarfread.c (warning_pre_print): Ditto.
9913 * language.c (type_error, range_error): Rewrite to use verror and
9914 vwarning instead of warning_begin.
9916 2002-02-01 Michael Snyder <msnyder@redhat.com>
9918 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9919 (set_ignore_count): Move misplaced comment back where it belongs.
9921 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9923 * command.h (NO_FUNCTION): Delete macro.
9924 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9925 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9926 * tracepoint.c (_initialize_tracepoint): Ditto.
9927 * cli/cli-decode.c (add_set_cmd): Ditto.
9928 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9930 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9932 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9933 Update ``this'' pointer when calling virtual functions.
9935 2002-02-01 Michael Snyder <msnyder@redhat.com>
9937 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9938 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9940 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9942 * regformats/reg-arm.dat: New file.
9943 * regformats/reg-i386.dat: New file.
9944 * regformats/reg-ia64.dat: New file.
9945 * regformats/reg-m68k.dat: New file.
9946 * regformats/reg-mips.dat: New file.
9947 * regformats/reg-ppc.dat: New file.
9948 * regformats/reg-sh.dat: New file.
9949 * regformats/regdef.h: New file.
9950 * regformats/regdat.sh: New file.
9952 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9954 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9955 (arm_frame_args_address, arm_frame_locals_address): New functions.
9956 (arm_frame_num_args): New function.
9957 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9958 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9959 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9961 2002-01-31 Michael Snyder <msnyder@redhat.com>
9963 * breakpoint.c (break_at_finish_command): Export.
9964 (break_at_finish_at_depth_command): Export.
9965 (tbreak_at_finish_command): Export.
9966 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9967 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9968 "tbreak" commands, which are HPPA specific.
9970 * printcmd.c (disassemble_command): Remove an ancient
9971 artifact of an old merge.
9973 * symfile.h (enum overlay_debugging_state):
9974 Define enum constant values for overlay mode.
9975 * symfile.c (overlay_debugging): Use enums instead of literals.
9976 (overlay_is_mapped, overlay_auto_command,
9977 overlay_manual_command): Ditto.
9979 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9980 breakpoint_here_p, breakpoint_inserted_here_p,
9981 breakpoint_thread_match, bpstat_stop_status,
9982 describe_other_breakpoints, check_duplicates, clear_command):
9983 Coding standard fixes.
9985 * target.c (target_xfer_memory): Add spaces, coding standard.
9986 (do_xfer_memory): Add missing line to trust-readonly
9987 code: check bfd SEC_READONLY flag for section.
9989 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9991 * PROBLEMS: Fix typo, 5.1->5.1.1.
9993 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9995 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9996 data symbols, since we search based on textlow and texthigh.
9997 (find_pc_sect_symtab): Likewise.
9999 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10001 * defs.h (vwarning): Declare.
10002 * utils.c (vwarning): New function.
10003 (warning): Call vwarning.
10004 (warning_begin): Delete function.
10006 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10007 the warning message.
10008 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10011 2002-01-30 Michael Snyder <msnyder@redhat.com>
10013 * NEWS: Mention "set trust-readonly-sections" command.
10014 Mention generate-core-file command.
10016 2002-01-15 Michael Snyder <msnyder@redhat.com>
10018 * target.c: New command, "set trust-readonly-sections on".
10019 (do_xfer_memory): Honor the suggestion to trust readonly sections
10020 by reading them from the object file instead of from the target.
10021 (initialize_targets): Register command "set trust-readonly-sections".
10023 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10025 * parse.c (target_map_name_to_register): Simplify, search regs and
10026 pseudo-regs using a single loop.
10028 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10030 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10032 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10034 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10035 * config/i386/i386v42mp.mh: Add i387-nat.o .
10036 * i386v4-nat.c: Include i387-nat.h.
10037 (supply_fpregset): Use i387_supply_fsave.
10038 (fill_fpregset): Use i387_fill_fsave.
10040 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10042 * arm-tdep.c (arm_call_dummy_words): Define.
10043 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10044 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10045 (CALL_DUMMY_WORDS): Define.
10046 (arm_call_dummy_words): Declare.
10047 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10048 (arm_linux_call_dummy_words): Declare.
10050 2002-01-30 Andreas Schwab <schwab@suse.de>
10052 * m68klinux-nat.c: Fix last change to use regcache_collect
10053 instead of referencing registers[] directly.
10055 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10057 * parse.c (target_map_name_to_register): Delete code wrapped in
10058 #ifdef REGISTER_NAME_ALIAS_HOOK.
10060 2002-01-28 Michael Snyder <msnyder@redhat.com>
10062 * regcache.c (legacy_read_register_gen): Need to be able to
10063 read pseudo-register as well as real register.
10064 (legacy_write_register_gen): Ditto.
10066 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10068 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10069 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10070 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10071 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10072 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10073 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10074 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10075 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10076 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10077 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10078 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10079 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10080 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10081 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10082 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10083 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10084 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10085 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10086 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10087 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10089 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10091 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10092 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10093 (initialize_current_architecture): Update target_byte_order using
10094 information from BFD.
10095 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10096 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10098 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10100 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10101 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10103 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10104 #ifdef INVALID_FLOAT.
10105 * infcmd.c (do_registers_info): Ditto.
10106 * values.c (unpack_double): Ditto. Add comment.
10108 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10109 already commented out.
10111 2002-01-26 Andreas Schwab <schwab@suse.de>
10113 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10114 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10115 registers and add support for PTRACE_GETREGS.
10117 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10119 GDB 5.1.1 released from 5.1 branch.
10120 * NEWS: Add 5.1.1 news.
10121 * README: Sync with 5.1 branch.
10123 2002-01-23 Fred Fish <fnf@redhat.com>
10125 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10126 stabstring on initial malloc. Reallocing will copy it for us,
10129 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10131 * Makefile.in (hpread_h): Delete.
10132 (HFILES_NO_SRCDIR): Remove hpread.h.
10133 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10134 (hpread.o): Update dependencies.
10135 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10137 * hp-psymtab-read.c: Remove file.
10138 * hp-symtab-read.c: Remove file.
10139 * hpread.h: Remove file.
10141 * hpread.c: Merge all contents of hp-psymtab-read.c,
10142 hp-symtab-read.c and hpread.h into this file, as it was prior to
10145 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10146 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10147 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10148 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10150 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10152 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10153 fill_gregset): Call gdbarch_tdep() just once, assign result to
10154 variable and use that, instead of calling the function several
10157 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10159 * configure.host: Accept sparcv9 as alias for sparc64.
10160 * configure.tgt: Likewise.
10162 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10164 * solib-aix5.c (build_so_list_from_mapfile)
10165 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10166 arguments is not reversed.
10167 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10168 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10170 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10172 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10173 modified version of obsolete sh_fetch_pseudo_register.
10174 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10175 (sh4_register_read): New function.
10176 (sh_pseudo_register_write): New function. Renamed and modified
10177 version of obsolete sh_store_pseudo_register.
10178 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10179 (sh4_register_write): New function.
10180 (sh_gdbarch_init): Remove setting of gdbarch function
10181 fetch_pseudo_register and store_pseudo_register. Remove setting of
10182 register_convert_to_raw, register_convert_to_virtual,
10183 register_convertible.
10184 (sh_sh4_register_convertible): Delete. No longer needed. All is
10185 taken care by architecture specific functions
10186 register_read/register_write.
10187 (sh_sh4_register_convert_to_virtual): Make static.
10188 (sh_sh4_register_convert_to_raw): Ditto.
10190 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10192 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10193 (floatformat_is_nan, floatformat_mantissa): Ditto.
10195 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10196 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10197 builtin_type_ieee_double_little,
10198 builtin_type_ieee_double_littlebyte_bigword,
10199 builtin_type_m68881_ext, builtin_type_i960_ext,
10200 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10201 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10202 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10203 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10205 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10207 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10208 parameter. Set frameless flag if it exists and depended of
10209 whether the scanned function is frameless or not.
10210 (xstormy16_skip_prologue): If function is frameless, return
10211 result of xstormy16_scan_prologue().
10212 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10215 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10217 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10218 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10219 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10220 sh_sh4_register_byte, sh_sh4_register_raw_size,
10221 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10222 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10223 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10224 sh_store_pseudo_register, sh_do_pseudo_register): Call
10225 gdbarch_tdep() just once, assign result to variable and use that,
10226 instead of calling the function several times.
10228 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10230 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10231 macros instead of LAST_FPU_CTRL_REGNUM.
10232 (store_register): Likewise.
10234 2002-01-21 Jim Blandy <jimb@redhat.com>
10236 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10237 is up-to-date before running the program, not just when a program
10240 2002-01-21 Fred Fish <fnf@redhat.com>
10242 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10243 when we have found all instructions we are looking for.
10245 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10247 * arm-tdep.c (arm_register_name): New function.
10248 (arm_registers_names): Make static.
10249 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10250 (arm_register_name): Declare.
10251 (REGISTER_NAME): Use it.
10253 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10254 Kevin Buettner <kevinb@redhat.com>
10256 Convert arm targets to new FRAME interface.
10257 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10258 (arm_frame_find_save_regs): Delete.
10259 (arm_frame_init_saved_regs): New.
10260 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10261 Allocate extra_info as required. Convert all uses of fsr.regs
10262 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10264 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10265 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10266 (check_prologue_cache, save_prologue_cache): Likewise.
10267 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10268 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10269 (FRAME_FIND_SAVED_REGS): Delete.
10270 (arm_frame_find_saved_regs): Delete prototype.
10271 (arm_frame_init_saved_regs): New prototype.
10272 (FRAME_INIT_SAVED_REGS): Define.
10274 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10276 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10278 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10280 From Jeff Law <law@redhat.com>:
10281 * infttrace.c: Include <sys/pstat.h>.
10282 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10283 exec file if the ttrace equivalent fails.
10285 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10287 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10288 (closeLogFile): Ditto.
10290 2002-01-20 Michael Chastain <mec@shout.net>
10292 * top.c (print_gdb_version): Bump copyright year to 2002.
10294 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10296 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10297 Zannoni and Eli Zaretskii.
10299 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10301 * buildsym.c: Update copyright years.
10302 * c-typeprint.c: Likewise.
10303 * dwarf2read.c: Likewise.
10304 * f-typeprint.c: Likewise.
10305 * gdbtypes.c: Likewise.
10306 * gdbtypes.h: Likewise.
10307 * hp-symtab-read.c: Likewise.
10308 * hpread.c: Likewise.
10309 * mdebugread.c: Likewise.
10310 * p-typeprint.c: Likewise.
10312 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10314 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10315 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10316 byte-order selectable.
10317 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10318 * arch-utils.c: Ditto.
10319 (set_endian): Ditto.
10320 (set_endian_from_file): Ditto.
10321 * gdbserver/low-sim.c (create_inferior): Ditto.
10322 * gdbarch.sh: Ditto.
10323 * gdbarch.h: Re-generate.
10324 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10325 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10326 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10327 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10328 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10329 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10330 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10331 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10333 * config/mips/tm-wince.h: Remove #undef of macro
10334 TARGET_BYTE_ORDER_SELECTABLE.
10335 * config/sh/tm-wince.h: Ditto.
10337 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10339 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10340 member function fields. Add accessor macro
10341 TYPE_FN_FIELD_ARTIFICIAL.
10342 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10343 * c-typeprint.c (c_type_print_base): Skip artificial member
10346 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10348 * f-typeprint.c: Delete unused function f_type_print_args.
10349 * p-typeprint.c: Delete unused function pascal_type_print_args.
10351 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10353 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10354 comment. Add ``artificial'' to ``union field_location''.
10356 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10358 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10359 * mdebugread.c (parse_symbol): Likewise.
10360 * stabsread.c (define_symbol): Likewise.
10361 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10362 initializing TYPE_FIELD_BITPOS to n (obsolete).
10363 (hpread_doc_function_type): Likewise.
10364 * hpread.c (hpread_function_type): Likewise.
10366 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10368 * configure.in (host_makefile_frag): Only require a host makefile
10369 fragment when a native build.
10370 * configure: Re-generate.
10372 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10374 * doublest.h (floatformat_from_type): Declare.
10375 * doublest.c (floatformat_from_type): New function.
10376 (convert_typed_floating): Use.
10378 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10379 call to function floatformat_from_type.
10381 * gdbarch.sh (IEEE_FLOAT): Delete.
10382 * gdbarch.h, gdbarch.c: Re-generate.
10383 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10384 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10385 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10386 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10387 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10388 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10389 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10390 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10391 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10392 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10393 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10394 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10396 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10397 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10398 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10399 * sh-tdep.c (sh_gdbarch_init): Ditto.
10400 * mips-tdep.c (mips_gdbarch_init): Ditto.
10401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10402 * cris-tdep.c (cris_gdbarch_init): Ditto.
10404 2002-01-20 Jiri Smid <smid@suse.cz>
10406 * configure.host, configure.tgt: Support x86-64.
10407 * NEWS: Note new target x86-64.
10409 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10410 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10411 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10412 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10413 x86-64-linux-nat.o): Fix dependencies.
10415 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10417 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10418 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10419 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10420 * config/sparc/xm-sun4os4.h: Delete file.
10421 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10423 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10425 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10426 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10427 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10428 * config/i386/i386lynx.mh (XM_FILE): Delete.
10429 * config/rs6000/xm-rs6000ly.h: Delete file.
10430 * config/sparc/xm-sparclynx.h: Delete file.
10431 * config/m68k/xm-m68klynx.h: Delete file.
10432 * config/i386/xm-i386lynx.h: Delete file.
10433 * config/xm-lynx.h: Delete file.
10434 * config/djgpp/fnchange.lst: Update.
10436 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10438 * alpha-tdep.c (alpha_register_byte): New function.
10439 (alpha_register_raw_size): Ditto.
10440 (alpha_register_virtual_size): Ditto.
10441 (alpha_skip_prologue_internal): Renamed from
10442 alpha_skip_prologue.
10443 (alpha_skip_prologue): New version that calls
10444 alpha_skip_prologue_internal.
10445 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10446 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10447 second argument from alpha_skip_prologue.
10448 (REGISTER_BYTE): Use alpha_register_byte.
10449 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10450 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10451 (FRAMELESS_FUNCTION_INVOCATION): Use
10452 generic_frameless_function_invocation_not.
10453 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10454 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10456 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10458 * config/mips/xm-news-mips.h: Delete file.
10459 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10461 * config/m88k/xm-m88k.h: Delete file.
10462 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10463 * config/m88k/xm-delta88v4.h: Ditto.
10464 * config/m88k/xm-delta88.h: Ditto.
10466 * config/alpha/xm-fbsd.h: Delete file.
10467 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10469 * config/sparc/xm-sparc.h: Delete file.
10470 * Makefile.in (xm-sun4os4.h): Delete dependency.
10471 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10472 * config/sparc/xm-sun4os4.h: Ditto.
10473 * config/sparc/xm-linux.h: Ditto.
10475 * config/i386/xm-windows.h: Delete file.
10477 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10479 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10480 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10482 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10484 * alpha-tdep.c (alpha_call_dummy_words): New.
10485 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10486 (CALL_DUMMY_P): Define.
10487 (CALL_DUMMY_WORDS): Define.
10488 (SIZEOF_CALL_DUMMY_WORDS): Define.
10490 2002-01-19 Per Bothner <per@bothner.com>
10492 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10493 isn't NULL, which can happen with some gcj-3.x-produced code.
10495 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10497 * alpha-tdep.c (alpha_register_virtual_type): New function.
10498 (alpha_init_frame_pc_first): Ditto.
10499 (alpha_fix_call_dummy): Ditto.
10500 (alpha_store_struct_return): Ditto.
10501 (alpha_extract_struct_value_address): Ditto.
10502 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10503 alpha_register_virtual_type.
10504 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10505 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10506 alpha_extract_struct_value_address.
10507 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10508 (INIT_FRAME_PC): Use init_frame_pc_noop.
10509 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10511 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10513 * i386gnu-nat.c: Include "i386-tdep.h".
10514 (fetch_fpregs): Simplify code dealing with uninitialized floating
10515 point states such that it doesn't require FP7_REGNUM.
10517 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10519 * alpha-tdep.c (frame_extra_info): New.
10520 (alpha_find_saved_regs): Make static. Use
10522 (alpha_frame_init_saved_regs): New function.
10523 (alpha_frame_saved_pc): Use frame->extra_info.
10524 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10525 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10526 (init_extra_frame_info): Rename to...
10527 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10528 (alpha_print_extra_frame_info): New function.
10529 (alpha_frame_locals_address): Ditto.
10530 (alpha_frame_args_address): Ditto.
10531 (alpha_pop_frame): Use frame->extra_info.
10532 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10533 alpha_frame_args_address.
10534 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10535 (alpha_find_saved_regs): Remove prototype.
10536 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10537 (EXTRA_FRAME_INFO): Remove.
10538 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10539 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10541 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10543 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10544 (alpha_cannot_fetch_register): Ditto.
10545 (alpha_cannot_store_register): Ditto.
10546 (alpha_register_convertible): Ditto.
10547 (alpha_use_struct_convention): Ditto.
10548 * config/alpha/tm-alpha.h: Update copyright years.
10549 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10550 (INNER_THAN): Use core_addr_lessthan.
10551 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10552 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10553 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10554 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10555 (FRAME_CHAIN): Remove unnecessary cast.
10557 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10559 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10562 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10564 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10565 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10566 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10567 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10568 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10569 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10570 * x86-64-linux-nat.c: Ditto.
10572 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10574 * alpha-tdep.c (alpha_register_name): New function.
10575 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10576 (REGISTER_NAME): Define.
10578 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10580 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10582 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10584 * alpha-tdep.c: Update copyright years.
10585 (alpha_next_pc): New function.
10586 (alpha_software_single_step): Ditto.
10587 * config/alpha/tm-alpha.h: Add prototype for
10588 alpha_software_single_step.
10590 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10592 * alphabsd-nat.c: Update copyright years.
10593 (fill_gregset): Use regcache_collect.
10594 (fill_fpregset): Likewise.
10595 (fetch_inferior_registers): Only fetch integer registers
10596 if requested to do so.
10597 (store_inferior_registers): Only store integer registers
10598 if requested to do so.
10600 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10602 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10603 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10604 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10605 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10606 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10607 * config/arm/linux.mh (XDEPFILES): Delete.
10608 * config/arm/nbsd.mh (XDEPFILES): Delete.
10609 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10610 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10611 * config/i386/i386m3.mh (XDEPFILES): Delete.
10612 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10613 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10614 * config/i386/fbsd.mh (XDEPFILES): Delete.
10615 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10616 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10617 * config/i386/i386v4.mh (XDEPFILES): Delete.
10618 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10619 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10620 * config/i386/i386aix.mh (XDEPFILES): Delete.
10621 * config/i386/go32.mh (XDEPFILES): Delete.
10622 * config/i386/cygwin.mh (XDEPFILES): Delete.
10623 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10624 * config/i386/i386mach.mh (XDEPFILES): Delete.
10625 * config/i386/i386v32.mh (XDEPFILES): Delete.
10626 * config/i386/linux.mh (XDEPFILES): Delete.
10627 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10628 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10629 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10630 * config/i386/i386sco.mh (XDEPFILES): Delete.
10631 * config/i386/i386v.mh (XDEPFILES): Delete.
10632 * config/i386/nbsd.mh (XDEPFILES): Delete.
10633 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10634 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10635 * config/i386/symmetry.mh (XDEPFILES): Delete.
10636 * config/i386/obsd.mh (XDEPFILES): Delete.
10637 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10638 * config/ia64/linux.mh (XDEPFILES): Delete.
10639 * config/ia64/aix.mh (XDEPFILES): Delete.
10640 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10641 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10642 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10643 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10644 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10645 * config/m68k/linux.mh (XDEPFILES): Delete.
10646 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10647 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10648 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10649 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10650 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10651 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10652 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10653 * config/m88k/delta88.mh (XDEPFILES): Delete.
10654 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10655 * config/m88k/m88k.mh (XDEPFILES): Delete.
10656 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10657 * config/mips/linux.mh (XDEPFILES): Delete.
10658 * config/mips/irix6.mh (XDEPFILES): Delete.
10659 * config/mips/irix5.mh (XDEPFILES): Delete.
10660 * config/mips/irix4.mh (XDEPFILES): Delete.
10661 * config/mips/irix3.mh (XDEPFILES): Delete.
10662 * config/mips/decstation.mh (XDEPFILES): Delete.
10663 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10664 (NATDEPFILES): Move core-aout.o to here.
10665 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10666 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10667 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10668 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10669 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10670 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10671 * config/pa/hpux11.mh (XDEPFILES): Delete.
10672 * config/powerpc/aix.mh (XDEPFILES): Delete.
10673 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10674 * config/powerpc/linux.mh (XDEPFILES): Delete.
10675 * config/romp/rtbsd.mh: Rename XDEPFILES.
10676 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10677 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10678 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10679 * config/s390/s390.mh (XDEPFILES): Delete.
10680 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10681 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10682 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10683 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10684 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10685 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10686 * config/sparc/linux.mh (XDEPFILES): Delete.
10687 * config/vax/vaxult.mh (XDEPFILES): Delete.
10688 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10689 * Makefile.in (DEPFILES): Remove XDEPFILES.
10691 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10693 * utils.c (internal_verror): Fix comments, default is yes not no.
10694 Update queries to match. Default to quit and dump core.
10696 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10698 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10700 * defs.h, event-top.c, gdbcmd.h: Ditto.
10701 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10702 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10703 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10704 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10705 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10706 * mi/mi-main.c:Ditto.
10708 * stack.c, symfile.c: Update copyright.
10710 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10712 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10713 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10714 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10715 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10717 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10719 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10720 * gdbserver/low-lynx.c (myattach): Likewise.
10721 * gdbserver/low-nbsd.c (myattach): Likewise.
10722 * gdbserver/low-sim.c (myattach): Likewise.
10723 * gdbserver/low-sparc.c (myattach): Likewise.
10724 * gdbserver/low-sun3.c (myattach): Likewise.
10726 * gdbserver/low-linux.c (myattach): New function.
10728 * gdbserver/server.c (attach_inferior): New function.
10729 (main): Handle "--attach".
10731 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10733 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10736 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10738 * c-typeprint.c (is_type_conversion_operator): Add additional
10739 check for non-conversion operators.
10741 2002-01-15 Michael Snyder <msnyder@redhat.com>
10743 * linux-proc.c: Add "info proc" command, a la procfs.c.
10744 (read_mapping): New function, abstract and re-use code.
10745 (linux_find_memory_regions): Use new func read_mapping.
10746 (linux_info_proc_cmd): New function, implement "info proc".
10747 (_initialize_linux_proc): Add new command "info proc".
10749 2002-01-15 Michael Snyder <msnyder@redhat.com>
10751 * symfile.c (generic_load): Use bfd_map_over_sections method
10752 instead of manipulating bfd structure members directly.
10753 (add_section_size_callback): New function, bfd sections callback
10754 used by generic_load.
10755 (load_sections_callback): New function, bfd sections callback
10756 used by generic_load.
10758 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10760 [Based on work by Jim Blandy]
10761 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10762 (builtin_type_vec128): Export.
10763 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10765 (builtin_type_vec128): New builtin type for 128 bit vector
10767 (build_gdbtypes): Initialize builtin_type_v16qi and
10768 builtin_type_v8hi. Create the vec128 register builtin type
10770 (build_builtin_type_vec128): New function.
10771 (_initialize_gdbtypes): Register builtin_type_v16qi and
10772 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10773 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10774 AltiVec register to new builtin type.
10776 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10778 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10781 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10783 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10784 CLEAN_UP_REGISTER_VALUE.
10785 * regcache.c (supply_register): Update only call.
10787 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10789 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10790 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10791 a29k-*-vxworks* targets as obsolete.
10793 2002-01-14 Michael Snyder <msnyder@redhat.com>
10795 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10796 until we can resolve portability issues.
10797 * gregset.h: Remove references to fpxregs.
10798 * gcore.c (gcore_command): Initialize note_sec to NULL.
10800 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10802 * signals.c (target_signal_to_name): Rewrite. Only use
10803 signals[].name when in bounds and non-NULL.
10805 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10807 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10808 * signals.c (target_signal_to_name): Verify that SIG is within the
10809 bounds of the signals array.
10811 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10813 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10815 2002-01-13 Keith Seitz <keiths@redhat.com>
10817 * stack.c (print_frame_info_base): Print the frame's pc
10818 only if when print_frame_info_listing_hook is not defined.
10820 2002-01-13 Keith Seitz <keiths@redhat.com>
10822 * varobj.c (varobj_set_value): Make sure that there were no
10823 errors evaluating the object before attempting to set its
10825 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10826 so this offset adjustment is no longer necessary.
10827 (create_child): Don't set the error flag if the child is
10828 a CPLUS_FAKE_CHILD.
10829 (value_of_child): If value_fetch_lazy fails, return NULL
10830 so that callers will be notified that an error occurred.
10831 (c_value_of_variable): Delay check of variable's validity
10832 until later. We actually want all structs and unions to have
10834 Do not return "???" for variables which could not be evaluated.
10835 This error condition must be returned to the caller so that it
10836 can get the error condition from gdb.
10837 (cplus_name_of_child): Adjust index for vptr before figuring
10838 out the name of the child.
10839 (cplus_value_of_child): If a child's (real) parent is not valid,
10840 don't even bother trying to give a value for it. Just return
10841 an error. Change all instances in this function.
10842 (cplus_type_of_child): If our parent is one of the "fake"
10843 parents, we need to get at the type of the real parent, and
10844 derive the child's true type using this information.
10846 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10848 From 2002-01-09 John Marshall <johnm@falch.net>:
10849 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10850 sources.redhat.com, and tweak some related URLs which had
10851 suffered from linkrot.
10853 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10856 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10857 structures passed in registers.
10859 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10861 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10862 white space which prevented compilation. Reported by DSK
10863 <dsk@student.unsw.edu.au>.
10865 2002-01-11 Michael Snyder <msnyder@redhat.com>
10867 * symfile.c (build_section_addr_info_from_section_tab):
10868 Use bfd access method instead of manipulating bfd directly.
10869 (syms_from_objfile): Ditto.
10870 (simple_overlay_update_1): Ditto.
10871 (simple_overlay_update): Ditto.
10872 (generic_load): Ditto.
10873 (overlay_unmapped_address): FIXME comment, bfd access methods.
10874 (sections_overlap): FIXME comment, bfd access methods.
10875 (pc_in_mapped_range): FIXME comment, bfd access methods.
10876 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10877 (section_is_mapped): FIXME comment, bfd access methods.
10878 (section_is_overlay): FIXME comment, bfd access methods.
10880 * symfile.c (generic_load): Whitespace and long line cleanups.
10881 Remove duplicate variable, change several local variables to
10882 more appropriate data types.
10883 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10885 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10887 From Peter Schauer:
10888 * language.c (longest_local_hex_string_custom): Use phex_nz to
10889 convert NUM to a hex string.
10891 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10893 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10895 Update Copyright year.
10897 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10899 * language.c (longest_raw_hex_string): Delete unused function.
10901 2002-01-11 Petr Sorfa <petrs@caldera.com>
10903 * MAINTAINERS (write-after-approval): Add myself.
10904 * dwarf2read.c (read_tag_string_type): Handling of
10906 (read_tag_string_type): FORTRAN fix to prevent propagation of
10908 (set_cu_language): Handling of DW_LANG_Fortran95
10910 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10912 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10913 GETPID(inferior_ptid).
10914 (store_inferior_registers): Likewise.
10916 2002-01-10 Jason Merrill <jason@redhat.com>
10918 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10921 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10923 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10924 and bfd/elf32-sh-nbsd.c.
10926 2002-01-10 Michael Snyder <msnyder@redhat.com>
10928 * NEWS: Mention --pid and corefile/proc-id behavior change.
10930 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10931 * gcore.c: Include cli/cli-decode.h instead of command.h.
10933 * main.c (captured_main): Add new command line option "--pid".
10934 If the second command line argument (following the symbol-file)
10935 begins with a digit, try to attach to it before trying to open
10937 (print_gdb_help): Document the "--pid" argument.
10939 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10941 * completer.c (command_completer): New function.
10943 * completer.h <command_completer>: Add prototype.
10945 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10946 completer for the "help" command.
10948 2002-01-09 Jason Merrill <jason@redhat.com>
10950 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10952 2002-01-09 Michael Snyder <msnyder@redhat.com>
10954 * i386-linux-nat.c (fill_fpxregset): Make global.
10955 (store_fpxregset): Ditto.
10957 * gregset.h (gdb_fpxregset_t): Define.
10958 (supply_fpxregset): Prototype.
10959 (fill_fpxregset): Prototype.
10961 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10963 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10965 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10966 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10967 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10969 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10971 * MAINTAINERS: Update target maintainer rules so that any
10972 Maintainer can approve a tested patch for a maintenance-only
10975 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10977 * MAINTAINERS (write-after-approval): Add myself.
10979 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10982 2002-01-08 Michael Snyder <msnyder@redhat.com>
10984 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10985 real name of the executable, rather than the /proc name.
10987 2002-01-03 Michael Snyder <msnyder@redhat.com>
10989 Implement a "generate-core-file" command in gdb, save target state.
10990 * gcore.c: New file. Implement new command 'generate-core-file'.
10991 Save a corefile image of the current state of the inferior.
10992 * linux-proc.c: Add linux-specific code for saving corefiles.
10993 * target.h (struct target_ops): Add new target vectors for saving
10994 corefiles; to_find_memory_regions and to_make_corefile_notes.
10995 (target_find_memory_regions): New macro.
10996 (target_make_corefile_notes): New macro.
10997 * target.c (update_current_target): Inherit new target methods.
10998 (dummy_find_memory_regions): New place-holder method.
10999 (dummy_make_corefile_notes): New place-holder method.
11000 (init_dummy_target): Initialize new dummy target vectors.
11001 * exec.c (exec_set_find_memory_regions): New function.
11002 Allow the exec_ops vector for memory regions to be taken over.
11003 (exec_make_note_section): New function, target vector method.
11004 * defs.h (exec_set_find_memory_regions): Export prototype.
11005 * procfs.c (proc_find_memory_regions): New function, corefile method.
11006 (procfs_make_note_section): New function, corefile method.
11007 (init_procfs_ops): Set new target vector pointers.
11008 (find_memory_regions_callback): New function.
11009 (procfs_do_thread_registers): New function.
11010 (procfs_corefile_thread_callback): New function.
11011 * sol-thread.c (sol_find_memory_regions): New function.
11012 (sol_make_note_section): New function.
11013 (init_sol_thread_ops): Initialize new target vectors.
11014 * inftarg.c (inftarg_set_find_memory_regions): New function.
11015 Allow to_find_memory_regions vector to be taken over.
11016 (inftarg_set_make_corefile_notes): New function.
11017 Allow to_make_corefile_notes vector to be taken over.
11018 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11019 interface layer if not target_has_execution (may be a corefile).
11020 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11021 * config/sparc/sun4sol2.mh: Ditto.
11022 * config/alpha/alpha-linux.mh: Ditto.
11023 * config/arm/linux.mh: Ditto.
11024 * config/i386/x86-64linux.mh: Ditto.
11025 * config/ia64/linux.mh: Ditto.
11026 * config/m68k/linux.mh: Ditto.
11027 * config/mips/linux.mh: Ditto.
11028 * config/powerpc/linux.mh: Ditto.
11029 * config/sparc/linux.mh: Ditto.
11031 2002-01-07 Michael Snyder <msnyder@redhat.com>
11033 * arm-linux-nat.c: Remove references to regcache.c internal data
11034 (registers[] and register_valid[]).
11036 2002-01-07 Michael Snyder <msnyder@redhat.com>
11038 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11039 so that attaching to a pid will automatically read the process's
11040 symbol file and shlibs.
11041 * Makefile.in: Add rule for linux-proc.o.
11042 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11043 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11044 * config/arm/linux.mh: Ditto.
11045 * config/i386/linux.mh: Ditto.
11046 * config/i386/x86-64linux.mh: Ditto.
11047 * config/ia64/linux.mh: Ditto.
11048 * config/m68k/linux.mh: Ditto.
11049 * config/mips/linux.mh: Ditto.
11050 * config/powerpc/linux.mh: Ditto.
11051 * config/sparc/linux.mh: Ditto.
11053 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11055 * win32-nat.c: Add i386-tdep.h dependency.
11057 2002-01-07 Michael Snyder <msnyder@redhat.com>
11059 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11060 instead of bfd_get_arch_size. Don't bail out just because
11061 there's no exec_bfd.
11063 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11064 * p-valprint.c (pascal_object_print_value): Ditto.
11065 * somread.c (som_symtab_read): Ditto.
11066 * symfile.c (simple_free_overlay_region_table): Ditto.
11067 * valops.c (value_assign): Ditto.
11069 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11070 use tilde_expand and strerror for opening save-tracepoints file.
11072 * thread-db.c (thread_db_new_objfile): Indendation fix.
11074 * infptrace.c (GDB_MAX_ALLOCA): New define.
11075 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11076 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11077 can be overridden with whatever value is appropriate to the host).
11078 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11079 alloca to allocate potentially large buffer.
11080 * rs6000-nat.c (child_xfer_memory): Ditto.
11081 * symm-nat.c (child_xfer_memory): Ditto.
11082 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11084 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11086 From Nick Clifton <nickc@redhat.com>
11087 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11089 2002-01-07 Michael Snyder <msnyder@redhat.com>
11091 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11092 Don't use exec_bfd if it's NULL.
11094 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11096 * valops.c (value_arg_coerce): Fix formatting.
11098 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11100 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11101 * gnu-nat.c: Ditto.
11103 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11105 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11106 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11107 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11108 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11109 z8k-coff have not been multi-arched. Update z8k-coff build
11112 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11114 * MAINTAINERS: Mark a29k target as obsolete.
11115 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11116 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11118 * NEWS: Note that a29k targets are obsolete.
11119 * a29k-tdep.c: Mark as obsolete.
11120 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11121 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11122 a29k-*-vxworks* targets as obsolete.
11123 * remote-adapt.c: Obsolete.
11124 * remote-eb.c: Obsolete.
11125 * remote-mm.c: Obsolete.
11126 * remote-udi.c: Obsolete.
11127 * config/a29k/a29k-udi.mt: Obsolete.
11128 * config/a29k/a29k.mt: Obsolete.
11129 * config/a29k/tm-a29k.h: Obsolete.
11130 * config/a29k/tm-vx29k.h: Obsolete.
11131 * config/a29k/vx29k.mt: Obsolete.
11133 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11135 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11136 with BFD_ENDIAN_BIG.
11138 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11140 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11141 * configure, config.in: Re-generate.
11142 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11143 * defs.h: Do not include <endian.h>.
11145 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11147 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11148 * config.in: Regenerate.
11149 * configure.in: Update copyright years.
11150 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11151 * configure: Regenerate.
11152 * i386bsd-nat.c: Update copyright years.
11153 (fill_gregset): Use regcache_collect.
11154 (fetch_inferior_registers): Only fetch integer registers
11155 if requested to do so. Add support for XMM registers
11156 using PT_GETXMMREGS.
11157 (store_inferior_registers): Only store integer registers
11158 if requested to do so. Add support for XMM registers
11159 using PT_SETXMMREGS.
11160 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11161 (store_inferior_registers): Remove.
11162 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11163 (fetch_elfcore_registers): New function.
11164 (i386nbsd_elfcore_fns): New.
11165 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11166 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11168 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11169 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11170 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11171 * config/i386/tm-nbsd.h: Update copyright years.
11172 (HAVE_SSE_REGS): Define.
11173 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11174 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11175 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11176 (SIGCONTEXT_PC_OFFSET): Remove.
11177 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11179 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11181 * configure.tgt: Remove powerpc-*-macos* target.
11182 * config/m68k/xm-mpw.h: Delete file.
11183 * config/xm-mpw.h: Delete file.
11184 * ser-mac.c: Delete file.
11185 * mpw-make.sed: Delete file.
11186 * mpw-config.in: Delete file.
11187 * mac-xdep.c: Delete file.
11188 * mac-gdb.r: Delete file.
11189 * mac-defs.h: Delete file.
11190 * mac-nat.c: Delete file.
11191 * config/powerpc/macos.mh: Delete file.
11192 * config/powerpc/macos.mt: Delete file.
11193 * config/powerpc/nm-macos.h: Delete file.
11194 * config/powerpc/tm-macos.h: Delete file.
11195 * source.c (openp, open_source_file): Remove obsolete code.
11196 * top.c (gdb_readline): Ditto.
11197 * utils.c (query): Ditto.
11198 * event-top.c (display_gdb_prompt): Ditto.
11199 * Makefile.in (ser-mac.o): Delete obsolete target.
11202 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11204 * defs.h (BIG_ENDIAN): Delete macro definition.
11205 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11206 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11207 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11208 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11209 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11210 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11211 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11212 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11213 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11214 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11215 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11216 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11217 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11218 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11219 * gdbarch.c: Re-generate.
11221 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11223 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11226 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11228 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11230 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11232 * value.h (value_ptr): Delete typedef.
11234 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11236 * i386nbsd-nat.c: Update copyright years.
11237 Include i386-tdep.h.
11239 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11241 * stabsread.c: Update copyright years.
11243 From Debashis Mahata <debashis.mahata@wipro.com>:
11244 (read_struct_fields): Deal with Sun C compiler erroneous stab
11245 output for structs and unions.
11248 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11250 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11253 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11255 * cp-abi.c: Fix whitespace.
11256 (baseclass_offset): New wrapper function.
11257 * cp-abi.h (baseclass_offset): Add prototype.
11258 (struct cp_abi_ops): Add baseclass_offset pointer.
11260 * valops.c (vb_match): Move to...
11261 * gnu-v2-abi.c (vb_match): here.
11262 * valops.c (baseclass_offset): Move to...
11263 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11265 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11267 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11268 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11269 * hpacc-abi.c (init_hpacc_ops): Likewise.
11271 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11273 * valops.c (find_overload_match): Accept obj as a
11274 reference parameter. Update it before returning.
11275 * value.h (find_overload_match): Update prototype.
11276 * eval.c (evaluate_subexp_standard): Pass object to
11277 find_overload_match by reference.
11279 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11281 * valarith.c: Replace value_ptr with struct value pointer. Remove
11282 register attribute from value declarations.
11285 * scm-lang.c (scm_lookup_name): Ditto.
11287 2002-01-03 Michael Snyder <msnyder@redhat.com>
11289 Abstract the functionality of iterating over mapped memory
11290 regions into a general purpose iterator function.
11291 * procfs.c (iterate_over_mappings): New function, general purpose
11292 iterator for memory sections.
11293 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11294 (solib_mappings_callback): New function, callback for above.
11295 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11296 (info_mappings_callback): New function, callback for above.
11298 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11300 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11302 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11303 * i386-tdep.c: Include "elf-bfd.h".
11304 (process_note_abi_tag_sections): New function.
11305 (i386_gdbarch_init): Add code to recognize various OS/ABI
11308 * maint.c (_initialize_maint_cmds): Add missing \ in
11311 For older changes see ChangeLog-2001
11317 version-control: never