1 2002-09-21 Andrew Cagney <cagney@redhat.com>
3 * complaints.c (symfile_explanations): Remove new-line from
5 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
6 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
8 2002-09-20 Nick Clifton <nickc@redhat.com>
10 * NEWS: Announce that V850EA ISA is no longer supported.
11 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
13 2002-09-20 David Carlton <carlton@math.stanford.edu>
15 * Makefile.in (c-lang.o): Correct dependencies.
16 (utils.o): Gather dependencies.
18 * c-lang.c: #include "gdb_string.h"
20 2002-09-20 Fernando Nasser <fnasser@redhat.com>
22 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
23 * cli/cli-cmds.c (list_command): New function. Implements the new
25 (_init_cli_cmds): Add new command definition.
26 * gdb.1: Document edit command.
27 * doc/gdb.texinfo: Document edit command.
29 2002-09-20 Fernando Nasser <fnasser@redhat.com>
31 * source.c: Make global variables current_source_symtab and
32 current_source_line static.
33 (list_command): Moved to cli/cli-cmds.c.
34 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
35 (get_first_line_listed): New accessor function.
36 (get_lines_to_list): New accessor function.
37 (get_current_source_symtab_and_line): New function. Retrieves the
38 position in the source code that we consider current.
39 (get_current_or_default_source_symtab_and_line): New function.
40 Like the above but attempts to determine a default position if one
41 is not currently defined.
42 (set_current_source_symtab_and_line): New function. Sets the source
43 code position considered current and returns the previously set one.
44 (clear_current_source_symtab_and_line): Reset stored information about
45 a current source line.
46 (_initialize_source): Remove registration for the "list" command and
48 * source.h: Add declarations for the new functions above.
49 * symtab.h: Remove declarations for the global variables mentioned
51 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
52 obtain current source line.
53 * linespec.c (decode_line_1): Ditto.
54 * macroscope.c (default_macro_scope): Ditto.
55 * scm-lang.c (scm_unpac): Ditto.
56 * stack.c (print_frame_info_base): Ditto.
57 * symfile.c (clear_symtab_users): Ditto.
58 * symtab.c (decode_line_spec): Ditto.
59 * cli/cli-cmds.c (list_command): Moved here from source.c.
60 (ambiguous_line_spec): Moved here from source.c.
61 (_init_cli_cmds): Add definition for "list" and its alias.
62 * Makefile.in: Update dependencies.
64 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
66 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
67 with what gcc thinks is correct.
69 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
71 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
72 multiple register push instruction.
74 2002-09-19 Jim Blandy <jimb@redhat.com>
76 Add support for distinct host and target character sets.
77 * charset.c, charset.h: New files.
78 * c-exp.y: #include "charset.h".
79 (yylex): Convert character and string literals to the target
80 character set, before returning them as the semantic value of the
82 * c-lang.c: #include "charset.h".
83 (c_emit_char): Use charset-specific methods to recognize
84 characters with backslash escape forms, to decide which characters
85 to print literally and which to print using numeric escape
86 sequences, and to convert target characters to host characters
88 * utils.c: #include "charset.h".
89 (no_control_char_error): New function.
90 (parse_escape): Use charset-specific methods to recognize
91 backslash escapes, parse `control character' notation, and convert
92 characters from the host character set to the target character set.
93 * configure.in: Set the default host character set.
94 Check where to find iconv, and what its argument types might be.
95 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
96 * Makefile.in (SFILES): List charset.c.
97 (COMMON_OBS): List charset.o.
98 (charset.o): New rule.
99 (charset_h): New header dependency variable.
100 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
101 (LIBICONV): New variable, set by configure.
102 (CLIBS): Include $(LIBICONV) here.
103 * aclocal.m4, config.in, configure: Regenerated.
105 2002-09-19 Joel Brobecker <brobecker@gnat.com>
107 * ada-exp.y: Add missing semicolons to end rules. Fixes a
110 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
112 * gdb_mbuild.sh: New file.
114 2002-09-19 Andrew Cagney <ac131313@redhat.com>
116 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
118 2002-09-18 Andrew Cagney <ac131313@redhat.com>
120 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
121 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
122 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
123 valops.c, value.h: Revert previous change.
125 2002-09-18 Michael Snyder <msnyder@redhat.com>
127 Preliminary support for Objective-C:
128 * defs.h (language_objc): New enum value.
129 (puts_filtered_tabular): Declaration only, exported from utils.c.
130 (skip_quoted): Delete, declared in completer.h.
131 * c-exp.y: Include completer.h.
134 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
135 New operator enum values.
136 * language.h (CAST_IS_CONVERSION): Test for language_objc.
137 * language.c (binop_result_type): Handle language_objc case.
138 (integral_type, character_type, string_type, boolean_type,
139 structured_type, binop_type_check): Ditto.
140 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
141 (struct objc_specific): Add to general_symbol_info.
142 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
143 (SYMBOL_DEMANGLED_NAME): Handle objc case.
144 * parser-defs.h (struct objc_class_str): New struct type.
145 (start_msglist, end_msglist, add_msglist): Declaration only,
146 exported from objc-lang.c.
147 * value.h (value_of_local, value_nsstring,
148 call_function_by_hand_expecting_type): Exported from valops.c.
149 * valops.c (find_function_addr): Export.
150 (call_function_by_hand_expecting_type): New function.
151 (value_of_local): New function.
152 * symfile.c (init_filename_language_table): Add ".m" extension
154 * utils.c (puts_filtered_tabular): New function.
155 (fprintf_symbol_filtered): Add objc demangling support (disabled).
156 (set/show demangle): Extend help-string to refer to ObjC.
157 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
158 * stabsread.c (symbol_reference_defined): Objective-C symbols
159 may contain colons: make allowances when scanning stabs strings
161 (objc_find_colon): New function.
162 * printcmd.c (address_info): If language == objc then print
163 "self" instead of "this".
164 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
165 OP_NSSTRING, and OP_SELF.
166 (prefixify_subexp): Ditto.
167 * source.c (print_source_lines): Mention objc in comment.
168 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
171 2002-09-18 Andrew Cagney <ac131313@redhat.com>
173 * complaints.h: Update copyright.
174 (struct complaints): Declare.
175 (struct complaint): Make `message' constant.
176 (internal_complaint): Declare.
177 (complaint): Declare.
178 (complaint_root): Delete declaration.
179 (symfile_complaints): Delete declaration.
180 (struct complaints): Add opaque declaration.
181 (clear_complaints): Add a complaints parameter.
182 * complaints.c: Update copyright.
183 (enum complaint_series): Define.
184 (complaint_root): Delete.
185 (struct complaints): Define.
186 (complaint_sentinel, symfile_complaint_book): New variables.
187 (symfile_explanations, symfile_complaints): New variables.
189 (get_complaints): New function.
190 (vcomplaint): New function.
191 (complaint): New function.
192 (internal_complaint): New function.
193 (complain): Call vcomplain with symfile_complaint.
194 (clear_complaints): Rewrite.
195 (_initialize_complaints): Use add_setshow_command.
196 * Makefile.in (complaints.o): Update dependencies.
197 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
198 to call to clear_complaints.
199 (new_symfile_objfile, reread_symbols): Ditto.
200 (oldsyms_complaint): Delete.
201 (empty_symtab_complaint, unknown_option_complaint): Delete.
202 (free_named_symtabs): Use complaint instead of complain.
204 2002-09-18 Michael Snyder <msnyder@redhat.com>
206 Contributed by Apple Computer, Inc. Merged with current sources
207 by Adam Fedor <fedor@doc.com> [cagney].
209 * objc-lang.c: First clean-up round: comments, indentation.
210 * objc-lang.h: Ditto.
211 * objc-lang.y: Ditto.
213 2002-09-18 Andrew Cagney <ac131313@redhat.com>
215 * maint.c (maintenance_internal_error): Print the parameter as the
217 (maintenance_internal_warning): New function.
218 (_initialize_maint_cmds): Add command `maint internal-warning'.
220 * defs.h (internal_warning, internal_vwarning): Declare.
221 * utils.c (struct internal_problem): Define.
222 (internal_vproblem): New function.
223 (internal_warning): New function.
224 (internal_vwarning): New function.
225 (internal_warning_problem, internal_error_problem): New variables.
226 (internal_verror): Just call internal_vproblem.
228 2002-09-18 Michael Snyder <msnyder@redhat.com>
230 * objc-lang.c: New file, support for Objective-C.
231 Preliminary check-in, not yet integrated into gdb.
232 * objc-lang.h: New file.
233 * objc-exp.y: New file.
235 2002-09-18 Andrew Cagney <ac131313@redhat.com>
237 * infrun.c (signal_stop_update): Convert definition to ISO C.
238 (signal_print_update): Ditto.
239 (signal_pass_update): Ditto.
240 * inflow.c (terminal_save_ours): Ditto.
242 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
245 * config/djgpp/fnchange.lst: Handle name clashes between
246 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
249 * i386-linux-tdep.h: Fix tipo.
251 2002-09-18 Adam Fedor <fedor@gnu.org>
253 * MAINTAINERS: Add myself to the Write After Approval list.
255 2002-09-18 Jim Blandy <jimb@redhat.com>
257 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
258 texthigh and textlow to reader-specific structs caused
259 objfile_relocate to miss them. This is fixable, but the work that
260 the change was supposed to prepare GDB for never got done anyway.
262 2002-09-18 David Carlton <carlton@math.stanford.edu>
264 * MAINTAINERS: Alphabetize Write After Approval list.
266 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
269 * values.c (value_static_field): Call read_var_value.
271 2002-09-18 Andrew Cagney <ac131313@redhat.com>
273 * valops.c (hand_function_call): Align the initial stack pointer
274 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
275 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
277 * mips-tdep.c (mips_frame_align): New function.
278 (mips_gdbarch_init): Set frame_align.
279 * gdbarch.sh (FRAME_ALIGN): New method.
280 * gdbarch.h, gdbarch.c: Re-generate.
282 2002-09-18 Michal Ludvig <mludvig@suse.cz>
284 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
287 2002-09-17 Andrew Cagney <ac131313@redhat.com>
289 * NEWS: Mention that MIPS $fp behavior changed.
290 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
291 reference to FP_REGNUM.
292 (mipsnbsd_cannot_store_register): Ditto.
293 * mips-linux-nat.c: Update copyright.
294 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
295 (mips_linux_cannot_store_register): Ditto.
296 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
297 * config/mips/tm-mips.h: Update copyright.
298 (FP_REGNUM): Delete macro.
299 (MIPS_REGISTER_NAMES): Replace "fp" with "".
300 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
301 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
302 (mips_r3041_reg_names, mips_r3051_reg_names)
303 (mips_r3081_reg_names): Replace "fp" with "".
306 2002-09-17 Theodore A. Roth <troth@verinet.com>
308 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
309 generic_read_register_dummy() (PR gdb/703).
310 (avr_push_return_address): #if 0 out unused vars.
311 (avr_gdbarch_init): Enable use of avr_push_return_address().
313 2002-09-17 Michael Snyder <msnyder@redhat.com>
315 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
316 RTE will take care of it.
318 2002-09-17 Andrew Cagney <ac131313@redhat.com>
320 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
321 invalid, return SP_REGNUM.
323 2002-09-17 Michael Snyder <msnyder@redhat.com>
325 * mips-tdep.c (mips_pop_frame): Read saved values of floating
326 point registers without sign extension.
328 2002-09-17 Andrew Cagney <cagney@redhat.com>
330 * blockframe.c (deprecated_read_register_dummy): Rename
331 generic_read_register_dummy.
332 * frame.c (frame_unwind_signed_register): New function.
333 (frame_unwind_unsigned_register): New function.
334 * frame.h (frame_unwind_signed_register): Declare.
335 (frame_unwind_unsigned_register): Declare.
336 (deprecated_read_register_dummy): Rename
337 generic_read_register_dummy.
339 * h8300-tdep.c (h8300_frame_chain): Update.
340 (h8300_frame_saved_pc): Update.
341 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
342 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
343 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
344 (s390_frame_chain): Update.
345 * v850-tdep.c (v850_find_callers_reg): Update.
346 (v850_frame_saved_pc): Update.
347 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
348 (m32r_find_callers_reg): Update.
349 (m32r_frame_saved_pc): Update.
350 * sh-tdep.c (sh_find_callers_reg): Update.
351 (sh64_get_saved_pr): Update.
352 (sh_init_extra_frame_info): Update.
353 (sh_init_extra_frame_info): Update.
354 (sh64_init_extra_frame_info): Update.
355 (sh64_init_extra_frame_info): Update.
356 * mcore-tdep.c (mcore_find_callers_reg): Update.
357 (mcore_frame_saved_pc): Update.
358 (mcore_init_extra_frame_info): Update.
359 * i386-tdep.c (i386_frame_saved_pc): Update.
360 * ia64-tdep.c (ia64_frame_saved_pc): Update.
361 (ia64_init_extra_frame_info): Update.
362 (ia64_init_extra_frame_info): Update.
363 * d10v-tdep.c (d10v_frame_saved_pc): Update.
364 * cris-tdep.c (cris_init_extra_frame_info): Update.
365 * avr-tdep.c (avr_frame_chain): Update.
366 (avr_init_extra_frame_info): Update.
367 (avr_frame_saved_pc): Update.
368 * arm-tdep.c (arm_find_callers_reg): Update.
369 (arm_init_extra_frame_info): Update.
370 (arm_frame_saved_pc): Update.
372 2002-09-17 Tom Tromey <tromey@redhat.com>
374 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
377 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
379 * MAINTAINERS: Remove "non multi-arched" text from h8300.
380 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
382 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
385 2002-09-16 Joel Brobecker <brobecker@gnat.com>
387 * osfsolib.c: Remove file, replaced by solib-osf.c.
388 * Makefile.in: Remove compilation rules for osfsolib.c.
390 2002-09-16 David Carlton <carlton@math.stanford.edu>
392 * cp-valprint.c (cp_print_class_method): Correct args to
393 check_stub_method_group.
395 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
397 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
398 `set architecture'. Unify naming convention of functions.
399 (h8300_skip_prologue): Improve prologue analysis.
400 (h8300_push_arguments): Rewritten to more closely match GCC's
401 bizarre argument-passing behavior, along with the comment describing
403 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
404 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
405 sim, remote-e7000.c, remote-hms.c and remote.c
407 2002-09-15 Mark Kettenis <kettenis@gnu.org>
409 * i386-tdep.c (gdb_print_insn_i386): Removed.
410 (i386_print_insn): New function.
411 (i386_gdbarch_init): Set print_insn to i386_print_insns.
412 (_initialize_i386_tdep): Don't initialize tm_print_insn and
415 2002-09-14 Mark Kettenis <kettenis@gnu.org>
417 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
420 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
422 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
423 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
424 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
426 2002-09-13 Christopher Faylor <cgf@redhat.com>
428 * win32-nat.c (child_create_inferior): Honor 'tty' command.
430 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
432 * gdbtypes.c (check_stub_method): Make static.
433 (check_stub_method_group): New function.
434 * gdbtypes.h: Update prototypes.
435 * cp-support.c: New file.
436 * cp-support.h: New file.
438 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
439 (update_method_name_from_physname): New function.
440 (read_member_functions): Correct method names for operators
441 and v3 constructors/destructors. Separate v2 constructors and
443 * Makefile.in (stabsread.o): Update dependencies.
444 (SFILES): Add cp-support.c.
445 (COMMON_OBS): Add cp-support.o.
446 (cp_support_h, cp-support.o): Add.
448 * cp-valprint.c (cp_print_class_method): Call
449 check_stub_method_group instead of check_stub_method. Remove
451 * p-valprint.c (pascal_object_print_class_method): Likewise.
452 * valops.c (search_struct_method): Likewise.
453 (find_method_list, value_struct_elt_for_reference): Likewise.
455 2002-09-13 Andrew Cagney <cagney@redhat.com>
457 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
458 * gdbarch.h, gdbarch.c: Regenerate.
460 2002-09-13 Andrew Cagney <ac131313@redhat.com>
462 * frame.c (find_saved_register): Delete function.
463 * frame.h (find_saved_register): Delete declaration.
466 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
468 * mips-tdep.c (read_next_frame_reg): Re-hack using
469 frame_register_unwind.
471 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
473 * mips-tdep.c (mips_get_saved_register): Re-hack using
474 frame_register_unwind.
476 2002-09-12 Joel Brobecker <brobecker@gnat.com>
478 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
479 vector. Will be useful for Interix.
480 * gdbarch.h, gdbarch.c: Regenerate.
482 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
483 name of the malloc function by NAME_OF_MALLOC.
485 2002-09-12 Joel Brobecker <brobecker@gnat.com>
487 * value.h (find_function_in_inferior): Add const keyword to
488 one of the parameters. Allows us to invoke this function with
490 * valops.c (find_function_in_inferior): Likewise.
492 2002-09-12 Joel Brobecker <brobecker@gnat.com>
494 * exec.c (xfer_memory): Fix compilation warning with old versions
496 * tracepoint.c (trace_find_tracepoint_command): Likewise.
498 2002-09-12 David Carlton <carlton@math.stanford.edu>
500 * symtab.h: Run through gdb_indent.h.
501 Add 2002 to Copyright year list.
503 2002-09-12 Alan Modra <amodra@bigpond.net.au>
505 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
507 * MAINTAINERS: Add myself to write after approval list.
509 2002-09-11 J. Brobecker <brobecker@gnat.com>
511 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
513 2002-09-11 J. Brobecker <brobecker@gnat.com>
515 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
518 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
520 * procfs.c (do_detach): Clear current signal, not just fault.
521 Corrects problem with breakpoint trap signal leaking to detached
524 2002-09-10 Michael Snyder <msnyder@redhat.com>
526 * buildsym.c (finish_block): Protect against null pointer.
528 2002-09-10 Andrew Cagney <cagney@redhat.com>
530 * infcmd.c (default_print_registers_info): Send all output to
531 ``file'' instead of ``gdb_stdout''.
533 2002-09-10 Michael Snyder <msnyder@redhat.com>
535 * mips-tdep.c (mips_extract_struct_value_address): Make val a
536 LONGEST, and use signed register read (addresses are sign-
539 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
541 * event-loop.c (gdb_do_one_event): Make public.
542 * event-loop.h (gdb_do_one_event): Declare.
544 2002-09-10 Jeff Law <law@redhat.com>
546 * infttrace.c (child_resume): Simplify and rework to avoid
549 2002-09-09 Fred Fish <fnf@intrinsity.com>
551 * printcmd.c (print_scalar_formatted): "len" is the number of
552 target bytes, NOT the number of target bits.
554 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
556 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
557 * top.c (init_main): Set rl_terminal_name.
559 2002-09-08 Aidan Skinner <aidan@velvet.net>
561 * ada-lang.c (ada_array_bound, ada_type_match,
562 _initialize_ada_language): Fix K&R definitions.
563 * ada-tasks.c (get_current_task): Fix K&R definitions.
564 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
566 2002-09-07 Christopher Faylor <cgf@redhat.com>
568 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
571 2002-09-06 Mark Kettenis <kettenis@gnu.org>
573 * i386-tdep.c (i386_register_virtual_type,
574 i386_register_convertible, i386_register_convert_to_virtual,
575 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
576 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
577 (i386_gdbarch_init): Fix comment. Add comments on calls that set
578 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
579 Don't set push_arguments twice.
581 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
582 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
583 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
584 sigtramp_end to NULL.
585 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
587 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
589 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
592 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
593 * gdbarch.h, gdbarch.c: Re-generate.
594 * blockframe.c (find_pc_sect_partial_function): Convert to use
595 SIGTRAMP_START_P predicate.
597 2002-09-05 Michael Snyder <msnyder@redhat.com>
599 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
600 generic_dummy_frame method and old method. Also distinguish
601 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
602 (arm_extract_return_value): Use new regcache method.
604 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
605 adjustment that doesn't conform to the ABI.
606 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
607 saved regcache, not from current regcache.
609 2002-09-05 Andrew Cagney <ac131313@redhat.com>
611 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
614 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
616 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
617 if arm_apcs_32 is false.
619 2002-09-04 Andrew Cagney <ac131313@redhat.com>
621 GDB 5.3 branch created.
623 2002-09-03 Theodore A. Roth <troth@verinet.com>
625 * gdb/avr-tdep.c (avr_gdbarch_init): Use
626 generic_unwind_get_saved_register.
628 2002-09-03 David Carlton <carlton@math.stanford.edu>
630 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
631 argument (PR gdb/653). Update call to smash_to_method_type.
632 (read_structure_scope): Update call to dwarf2_add_member_fn.
634 2002-09-03 Michal Ludvig <mludvig@suse.cz>
636 * x86-64-linux-tdep.c: Include gdb_string.h
637 * x86-64-linux-nat.c: Ditto.
639 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
641 * ada-exp.y (yyname, yyrule): Remap global variables that appear
642 when YYDEBUG is set to 1.
645 * jv-exp.y: Likewise.
646 * m2-exp.y: Likewise.
649 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
651 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
653 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
654 solib_svr4_fetch_link_map_offsets to
655 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
656 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
657 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
658 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
659 solib-svr4.o, and solib-legacy.o.
660 * config/i386/tm-nbsd.h: Include solib.h.
662 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
664 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
665 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
666 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
667 comment noting that this needs its own target configuration.
668 * config/i386/nbsd.mt: New file.
669 * config/i386/nbsdaout.mt: Remove.
670 * config/i386/nbsdelf.mt: Ditto.
671 * config/i386/tm-nbsdaout.h: Ditto.
673 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
675 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
676 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
677 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
679 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
680 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
681 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
683 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
685 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
686 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
687 * i386-tdep.h (i386bsd_init_abi): New prototype.
688 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
689 function declaration.
690 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
691 for NetBSD-a.out or NetBSD-ELF.
692 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
693 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
694 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
695 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
697 (i386nbsd_pc_in_sigtramp): New function.
698 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
699 i386nbsd_pc_in_sigtramp.
700 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
701 and i386nbsdelf_init_abi OS ABI handlers.
702 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
703 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
705 2002-09-02 Mark Kettenis <kettenis@gnu.org>
707 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
708 registers if the target really has them.
710 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
712 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
715 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
717 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
719 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
720 (alphanbsd_skip_sigtramp_frame): New functions.
721 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
722 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
723 to alphanbsd_sigcontext_addr.
725 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
727 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
729 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
730 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
732 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
733 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
734 * nbsd-tdep.c: Include gdb_string.h.
735 (nbsd_pc_in_sigtramp): New function.
736 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
737 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
738 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
739 ppcnbsd_pc_in_sigtramp.
740 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
741 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
742 shnbsd_pc_in_sigtramp.
743 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
744 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
745 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
747 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
749 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
751 (insert_breakpoints): set val field of watchpoints if NULL.
754 2002-08-29 Jim Blandy <jimb@redhat.com>
756 * symtab.c (lookup_symbol_aux): In the cases where we find a
757 minimal symbol of an appropriate name and use its address to
758 select a symtab to read and search, use `name' (as passed to us)
759 as the demangled name when searching the symtab's global and
760 static blocks, not the minsym's name.
762 2002-08-29 Keith Seitz <keiths@redhat.com>
764 * stack.c (print_frame_info_base): Always set current_source_symtab
765 and current_source_line.
767 2002-08-29 Donn Terry <donnte@microsoft.com>
769 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
771 2002-08-28 Keith Seitz <keiths@redhat.com>
773 * stack.c (select_frame): Add FIXME concerning selected-frame
775 (select_frame_command): Send selected-frame-level-changed
776 event notification, but only if the level actually changed.
777 (up_silently_base): Add selected-frame-level-changed event
779 (down_silently_base): Likewise.
781 2002-08-28 Andrew Cagney <ac131313@redhat.com>
783 * Makefile.in: Update dependencies for all gdb/*.c files.
785 2002-08-27 Tom Tromey <tromey@redhat.com>
787 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
788 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
790 * i387-tdep.c: Include gdb_string.h.
792 * i386-linux-nat.c: Likewise.
793 * lin-lwp.c: Likewise.
794 * ax-gdb.c: Likewise.
795 * signals/signals.c: Likewise.
796 * jv-valprint.c: Likewise.
797 * p-lang.c: Likewise.
798 * c-valprint.c: Likewise.
799 * cp-abi.c: Likewise.
801 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
803 * cli/cli-script.h (copy_command_lines): Export.
804 * breakpoint.c: Include cli/cli-script.h.
805 * Makefile.in (breakpoint.o): Update dependencies.
807 2002-08-26 Michael Snyder <msnyder@redhat.com>
809 * breakpoint.c (insert_breakpoints): Protect all references
810 to 'process_warning'. Shorten long lines.
812 2002-08-26 Joel Brobecker <brobecker@gnat.com>
814 * cli/cli-script.c (copy_command_lines): New function.
815 * defs.h (copy_command_lines): Export.
816 * testsuite/gdb.base/commands.exp: New tests for commands
817 attached to a temporary breakpoint, and for commands that
818 delete the breakpoint they are attached to.
820 2002-08-26 Michael Snyder <msnyder@redhat.com>
822 * breakpoint.c (bpstat_stop_status): Instead of copying the
823 pointer to the breakpoint commands struct, make a new copy
824 of the struct and point to that.
825 (bpstat_clear): Free the commands struct.
826 (bpstat_clear_actions): Free the commands struct.
827 (bpstat_do_actions): Free the command actions. Also execute
828 the local cleanups, instead of deleting them.
829 (delete_breakpoint): Leave the commands field of the bpstat
830 chain alone -- it will be freed later.
832 2002-08-26 Kevin Buettner <kevinb@redhat.com>
834 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
835 deleted in 2002-08-20 commit. This function is still used by
838 2002-08-26 Keith Seitz <keiths@redhat.com>
840 * gdb-events.sh: Add selected-frame-level-changed event.
841 * gdb-events.c: Regenerated.
842 * gdb-events.h: Regenerated.
844 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
847 * inflow.c (terminal_save_ours): New function to save terminal
849 * inferior.h (terminal_save_ours): Declare.
850 * target.c (debug_to_terminal_save_ours): New function.
851 (cleanup_target): Defaults to_terminal_save_ours.
852 (update_current_target): Inherit to_terminal_save_ours.
853 (setup_target_debug): Set to_terminal_save_ours.
854 * target.h (target_terminal_save_ours): New to save terminal settings.
855 (target_ops): New member to_terminal_save_ours.
856 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
857 * hpux-thread.c (init_hpux_thread_ops): Likewise.
858 * inftarg.c (init_child_ops): Likewise.
859 * m3-nat.c (init_m3_ops): Likewise.
860 * procfs.c (init_procfs_ops): Likewise.
861 * wince.c (init_child_ops): Likewise.
862 * win32-nat.c (init_child_ops): Likewise.
863 * sol-thread.c (init_sol_thread_ops): Likewise.
865 2002-08-26 Mark Kettenis <kettenis@gnu.org>
867 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
868 use regcache_* functions.
869 (i386_gdbarch_init): Set store_return_value instead of
870 deprecated_store_return_value.
872 * regcache.c (regcache_raw_write_signed,
873 regcache_raw_write_unsigned): New functions.
874 * regcache.h (regcache_raw_write_signed,
875 regcache_raw_write_unsigned): New prototypes.
877 2002-08-25 Andrew Cagney <ac131313@redhat.com>
879 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
880 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
881 source file dependencies. Cleanup corresponding generator rules.
883 2002-08-25 Andrew Cagney <ac131313@redhat.com>
885 * regcache.h (register_offset_hack): Declare.
886 (regcache_cooked_read_using_offset_hack): Declare.
887 (regcache_cooked_write_using_offset_hack): Declare.
889 * regcache.c (register_offset_hack): New function.
890 (regcache_cooked_read_using_offset_hack): New function.
891 (regcache_cooked_write_using_offset_hack): New function.
892 (regcache_dump): Check that the registers, according to their
893 offset, are packed hard against each other.
894 (cooked_xfer_using_offset_hack): New function.
896 2002-08-25 Andrew Cagney <ac131313@redhat.com>
898 * regcache.c (struct regcache_descr): Add field register_type.
899 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
901 (init_regcache_descr): Initialize register_type. Pass the descr
902 to init_legacy_regcache_descr. Use register_type instead of
903 REGISTER_VIRTUAL_TYPE.
904 (register_type): New function.
905 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
906 * regcache.h (register_type): Declare.
908 2002-08-25 Andrew Cagney <ac131313@redhat.com>
910 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
911 instead of deprecated_store_return_value. Fix fallout from
912 2002-08-23 Andrew Cagney <cagney@redhat.com>.
914 2002-08-25 Andrew Cagney <ac131313@redhat.com>
916 * regcache.c (max_register_size): New function.
917 (init_legacy_regcache_descr): Ensure that max_register_size is
918 large enough for REGISTER_VIRTUAL_SIZE.
919 * regcache.h (max_register_size): Declare.
921 2002-08-24 Andrew Cagney <ac131313@redhat.com>
923 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
925 (e500_extract_return_value): Change type of valbuf pointer to
928 2002-08-24 Mark Kettenis <kettenis@gnu.org>
930 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
933 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
934 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
935 long long) to prevent compiler warning on 64-bit systems.
937 2002-08-23 Andrew Cagney <cagney@redhat.com>
939 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
940 (DEPRECATED_STORE_RETURN_VALUE): New method.
941 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
942 * gdbarch.h, gdbarch.c: Re-generate.
944 * values.c (set_return_value): Pass current_regcache to
946 * arch-utils.h (legacy_store_return_value): Declare.
947 * arch-utils.c (legacy_store_return_value): New function.
948 (legacy_extract_return_value): Update parameters.
950 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
952 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
953 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
954 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
955 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
956 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
957 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
958 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
959 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
960 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
961 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
964 * i386-tdep.c (i386_extract_return_value): Update.
965 * arch-utils.c (legacy_extract_return_value): Update.
966 * frv-tdep.c (frv_gdbarch_init): Update.
967 * cris-tdep.c (cris_gdbarch_init): Update.
968 * d10v-tdep.c (d10v_gdbarch_init): Update.
969 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
970 * m68k-tdep.c (m68k_gdbarch_init): Update.
971 * mcore-tdep.c (mcore_gdbarch_init): Update.
972 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
973 * s390-tdep.c (s390_gdbarch_init): Update.
974 * sparc-tdep.c (sparc_gdbarch_init): Update.
975 * sh-tdep.c (sh_gdbarch_init): Update.
976 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
977 * v850-tdep.c (v850_gdbarch_init): Update.
978 * avr-tdep.c (avr_gdbarch_init): Update.
979 * ia64-tdep.c (ia64_gdbarch_init): Update.
980 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
981 * vax-tdep.c (vax_gdbarch_init): Update.
982 * alpha-tdep.c (alpha_gdbarch_init): Update.
983 * arm-tdep.c (arm_gdbarch_init): Update.
984 * mips-tdep.c (mips_gdbarch_init): Update.
985 * i386-tdep.c (i386_gdbarch_init): Update.
987 2002-08-23 Andrew Cagney <ac131313@redhat.com>
989 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
990 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
992 2002-08-24 Mark Kettenis <kettenis@gnu.org>
994 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
997 2002-08-23 Joel Brobecker <brobecker@gnat.com>
999 * infrun.c (handle_inferior_event): Move a comment outside of a
1000 function call, in order to avoid indent reformatting this part
1001 of the code in an unreadable way.
1003 2002-08-23 Grace Sainsbury <graces@redhat.com>
1005 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1006 when breakpoints fail. Move general breakpoint error messages to
1008 * breakpoint.c (insert_breakpoints): Change warnings when
1009 breakpoints are nto inserted to specify the type. Remove call to
1010 memory_error when hardware breakpoints can't be inserted. Remove
1011 multiple calls to warning so all messages are sent to the user at
1013 (delete_breakpoints): Make insert error messsages more explicit.
1015 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1017 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1018 gdbserver/ChangeLog.
1020 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1022 * i386-tdep.c: Include "objfiles.h".
1023 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1024 skip_trampoline_code.
1025 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1026 (CPLUS_MARKER): Define to '.'.
1028 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1030 (linux_corefile_thread_callback): Increase args->num_notes.
1031 (linux_make_note_section): Initialize thread_args.num_notes, and
1032 use it to determine whether notes for any threads were created.
1034 2002-08-23 Donn Terry <donnte@microsoft.com>
1036 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1037 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1039 (write_with_trace): Conditionalize out the switch branch handling
1040 PCSHOLD if the corresponding macro is not defined. Likewise for
1041 PRSABORT and PRSTOP.
1042 This change will be needed by the Interix port.
1044 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1046 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1047 write_register wherever possible instead of manipulating the
1048 register bytes directly.
1049 Assign VALUE_CONTENTS to a variable and use that.
1050 The GPR numbers are now dependent on the architecture.
1052 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1054 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1056 (skip_prologue): Add support for BookE/e500 instructions.
1057 (e500_extract_return_value): New function.
1058 (frame_get_saved_regs): Add support for saving ev registers and
1060 (e500_store_return_value): New function.
1061 (rs6000_gdbarch_init): Move up default intializations of
1062 deprecated_extract_return_value and store_return_value. Overwrite
1063 init of store_return_value with e500 specific version.
1064 Set extract_return_value for e500.
1066 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1068 * blockframe.c (generic_call_dummy_register_unwind): Use
1069 regcache_cooked_read to catch cases in which the variable is
1070 stored in a pseudo register.
1072 2002-08-22 Andrew Cagney <cagney@redhat.com>
1074 * NEWS: Mention that the i960 has been made obsolete.
1075 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1077 (remote-nrom.o): Obsolete target.
1078 (remote-nindy.o, i960-tdep.o): Ditto.
1079 * remote-nrom.c: Make file obsolete.
1080 * remote-nindy.c, remote-vx960.c: Ditto.
1081 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1082 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1083 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1084 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1085 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1086 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1087 i960-*-vxworks* obsolete.
1088 * MAINTAINERS: Note that the i960 is obsolete.
1090 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1092 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1093 detach to allow reinitialization.
1095 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1097 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1100 2002-08-22 Jim Blandy <jimb@redhat.com>
1102 * coffread.c (coff_symfile_read): Don't try to read the line
1103 number table from disk if the image file doesn't have a symbol
1104 table; we'll never actually look at the info anyway, and Windows
1105 ships DLL's with bogus file offsets for the line number data.
1107 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1109 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1112 2002-08-21 Michael Snyder <msnyder@redhat.com>
1114 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1115 (MSYMBOL_SIZE): Replace macro with function.
1116 (DEFAULT_MIPS_TYPE): Delete unused macro.
1117 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1118 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1120 2002-08-21 Jim Blandy <jimb@redhat.com>
1122 * valops.c (value_cast): Simplify and correct logic for doing a
1123 static cast from a pointer to a base class to a pointer to a
1126 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1128 * infcmd.c (default_print_registers_info): Replace
1130 (registers_info): Use gdbarch_print_registers_info instead of
1132 * inferior.h (default_print_registers_info): Replace
1134 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1135 (DO_REGISTERS_INFO): Change to a predicate function.
1136 * gdbarch.h, gdbarch.c: Regenerate.
1138 2002-08-21 Keith Seitz <keiths@redhat.com>
1140 * gdb-events.sh: Add target-changed event.
1141 * gdb-events.c: Regenerated.
1142 * gdb-events.c: Regenerated.
1143 * valops.c (value_assign): Add target-changed event notification
1144 to inlval_register, lval_memory, and lval_reg_frame_relative.
1146 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1148 * NEWS: Add an entry regarding the improvement of the next/step
1149 operation on Alpha Tru64 multi-processor machines.
1151 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1153 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1155 * Makefile.in: Update all _h macro definitions.
1156 * Makefile.in (install-gdbtk): Move to install section.
1157 (rdi-share/libangsd.a): Move to end of file.
1159 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1161 * frame.c (frame_register_unwind): When a register, set addrp to
1162 the register's byte.
1164 2002-08-20 Michael Snyder <msnyder@redhat.com>
1166 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1167 used locally, so move them from the target machine header to here.
1168 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1169 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1171 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1173 2002-08-20 Andrew Cagney <cagney@redhat.com>
1175 * NEWS: Mention that the Apollo line was made obsolete.
1176 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1177 m68*-hp-hpux* obsolete.
1178 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1179 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1180 * buildsym.c (make_blockvector): Make static.
1181 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1182 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1183 (ALLDEPFILES): Remove dstread.c.
1184 (dstread.o): Obsolete make rule.
1185 * dstread.c: Makefile obsolete.
1187 * config/m68k/hp300hpux.mt: Ditto.
1188 * config/m68k/hp300hpux.mh: Ditto.
1189 * config/m68k/hp300bsd.mt: Ditto.
1190 * config/m68k/hp300bsd.mh: Ditto.
1191 * config/m68k/apollo68b.mt: Ditto.
1192 * config/m68k/apollo68v.mh: Ditto.
1193 * config/m68k/apollo68b.mh: Ditto.
1195 2002-08-20 Michael Snyder <msnyder@redhat.com>
1197 * mips-tdep.c (mips_in_return_stub): Make static.
1198 (mips_gdbarch_init): Set in_solib_return_trampoline.
1199 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1201 2002-08-20 Michael Snyder <msnyder@redhat.com>
1203 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1204 * gdbarch.c, gdbarch.h: Regenerate.
1205 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1207 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1209 2002-08-20 Michael Snyder <msnyder@redhat.com>
1211 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1212 (mips_gdbarch_init): Set skip_trampoline_code,
1213 in_solib_call_trampoline.
1214 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1215 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1217 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1219 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1221 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1222 vector type for ev registers.
1223 (e500_pseudo_register_read): New function.
1224 (e500_pseudo_register_write): New function.
1225 (e500_dwarf2_reg_to_regnum): New function.
1226 (PPC_UISA_NOFP_SPRS): New macro.
1227 (PPC_EV_REGS): New macro.
1228 (PPC_GPRS_PSEUDO_REGS): New macro.
1229 (registers_e500): New register set for e500.
1230 (variants): Add e500 variant.
1231 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1232 before setting architectural dependent variations. Initialize ev
1233 registers numbers. Add case for e500 architecture. Set the
1234 number of pseudo registers.
1236 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1238 * rs6000-tdep.c: Clean up comments.
1240 2002-08-20 Andrew Cagney <cagney@redhat.com>
1242 * h8300-tdep.c: Re-indent file.
1244 2002-08-20 Jim Blandy <jimb@redhat.com>
1246 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1249 2002-08-20 Keith Seitz <keiths@redhat.com>
1251 * breakpoints.c (watch_command_1): Use internal breakpoint
1252 when setting a watchpoint_scope breakpoint.
1254 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1256 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1257 (build_builtin_type_vec64i): Ditto.
1258 (build_builtin_type_vec128): Ditto.
1259 (build_builtin_type_vec128i): Ditto.
1261 2002-08-19 Michael Snyder <msnyder@redhat.com>
1263 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1264 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1265 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1266 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1267 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1268 CALL_DUMMY_ADDRESS): Delete.
1269 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1270 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1271 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1272 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1273 push_return_address.
1274 (mips_register_raw_size, mips_eabi_use_struct_convention,
1275 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1276 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1277 mips_init_extra_frame_info, mips_eabi_push_arguments,
1278 mips_n32n64_push_arguments, mips_push_return_address,
1279 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1280 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1282 2002-08-19 Michael Snyder <msnyder@redhat.com>
1284 * mips-tdep.c (mips_frame_num_args): New function.
1285 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1286 frame_saved_pc, frame_args_address, frame_locals_address,
1287 frame_num_args, and frame_args_skip.
1288 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1289 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1290 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1291 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1293 2002-08-20 Michael Snyder <msnyder@redhat.com>
1295 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1296 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1297 * mips-tdep.c (mips_store_struct_return): New function.
1298 (mips_extract_struct_value_address): New function.
1299 (mips_gdbarch_init): Set store_struct_return and
1300 extract_struct_value_address.
1302 2002-08-20 David Carlton <carlton@math.stanford.edu>
1304 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1305 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1306 (read_file_scope): Check that line_header is nonzero before
1307 decoding macro information.
1309 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1311 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1312 flag the general-purpose registers as floating-point on targets
1313 that don't support the floating-point registers.
1315 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1317 * rs6000-tdep.c (altivec_register_p): Delete.
1318 (rs6000_do_altivec_registers): Delete.
1319 (rs6000_altivec_registers_info): Delete.
1320 (rs6000_do_registers_info): Delete.
1321 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1322 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1324 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1326 * infcmd.c (do_registers_info): Print vector registers in hex
1328 (print_vector_info): Check that printing registers
1330 (print_float_info): Ditto.
1332 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1334 * mips-tdep.c (mips_gdbarch_init): Update.
1335 (mips_o32_extract_return_value): Rewrite.
1336 (mips_o32_store_return_value): Rewrite.
1337 (mips_o32_xfer_return_value): New function.
1338 (mips_xfer_register): Tweak debug print message. Allow for
1339 buf_offset when dumping the value transfered.
1341 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1343 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1344 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1345 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1346 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1347 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1349 2002-08-14 Michael Snyder <msnyder@redhat.com>
1351 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1353 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1355 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1357 (P): New macro to define a register as a pseudo register.
1358 (R, R4, R8, R16, FR32, R64, R0): Updated.
1359 (struct variant): Add new fields for number of pseudo registers
1360 and number of total registers.
1361 (tot_num_registers): New macro replacing....
1362 (num_registers): ...deleted macro.
1363 (num_registers): New function.
1364 (num_pseudo_registers): New function.
1365 (variants): Update all variants to intialize new fields correctly.
1366 Postpone initialization of number of pseudo regs and real regs.
1367 (init_variants): New function.
1368 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1371 2002-08-19 David Carlton <carlton@math.stanford.edu>
1373 * valops.c (search_struct_field): Change error message to treat
1374 return value of 0 from value_static_field as meaning that field is
1376 (value_struct_elt_for_reference): Ditto.
1377 * values.c (value_static_field): Treat an unresolved location the
1378 same as a nonexistent symbol. Fix PR gdb/635.
1379 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1380 enclosed. Fix PR gdb/574.
1381 * MAINTAINERS: Add self to Write After Approval list.
1383 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1385 * mips-tdep.c (mips_xfer_register): New function.
1386 (mips_n32n64_extract_return_value): Rewrite.
1387 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1388 instead of deprecated_extract_return_value.
1390 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1392 * rs6000-tdep.c (TDEP): Delete macro.
1393 (branch_dest): Replace use of TDEP macro with its body.
1394 (rs6000_pop_frame): Ditto.
1395 (rs6000_push_arguments): Ditto.
1396 (rs6000_skip_trampoline_code): Ditto.
1397 (rs6000_frame_saved_pc): Ditto.
1398 (rs6000_frame_chain): Ditto.
1399 (rs6000_register_name): Ditto.
1400 (rs6000_register_byte): Ditto.
1401 (rs6000_register_raw_size): Ditto.
1402 (rs6000_register_virtual_type): Ditto.
1403 (rs6000_register_convertible): Ditto.
1404 (rs6000_convert_from_func_ptr_addr): Ditto.
1406 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1408 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1410 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1411 MIPS_LINUX_JB_ELEMENT_SIZE.
1412 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1413 for MAX_REGISTER_RAW_SIZE arrays.
1414 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1415 MIPS_LINUX_JB_ELEMENT_SIZE.
1417 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1419 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1421 2002-08-19 Aidan Skinner <aidan@velvet.net>
1423 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1424 ada-valprint.c ada-tasks.c.
1425 (YYFILES): Add ada-exp.y.
1426 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1427 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1428 (ada-exp.tab.o): New target.
1430 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1432 * regcache.c (regcache_xfer_part): New function.
1433 (regcache_raw_read_part): New function.
1434 (regcache_raw_write_part): New function.
1435 (regcache_cooked_read_part): New function.
1436 (regcache_cooked_write_part): New function.
1437 * regcache.h (regcache_raw_read_part): Declare.
1438 (regcache_raw_write_part): Declare.
1439 (regcache_cooked_read_part): Declare.
1440 (regcache_cooked_write_part): Declare.
1442 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1444 * remote.c (remote_open_1): Add async_p.
1445 (remote_async_open_1): Delete.
1446 (open_remote_target): Delete.
1447 (remote_open, extended_remote_open): Update calls to remote_open_1.
1448 (remote_async_open, extended_remote_async_open): Call
1449 remote_open_1 instead of remote_async_open_1.
1451 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1453 * blockframe.c: Fix a few coding standard violations.
1455 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1457 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1459 * config/i386/tm-i386sco5.h: ... here. File removed.
1460 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1462 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1463 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1464 (TM_FILE): Set to tm-i386.h.
1465 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1466 * config/i386/tm-i386v.h: Remove file.
1467 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1468 instead of "i386/tm-i386v.h".
1469 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1470 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1472 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1473 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1476 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1478 * config/i386/nm-i386v.h: Add protection against
1480 (i386_register_u_addr): Remove prototype.
1481 (register_u_addr): New prototype.
1482 (REGISTER_U_ADDR): Redefine accordingly.
1483 * i386v-nat.c: Improve several comments.
1484 (i386_register_u_addr): Change signature and rename to
1485 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1488 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1490 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1491 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1492 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1493 deprecated_extract_return_value.
1494 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1495 rename mips_o32o64_push_arguments.
1496 (mips_gdbarch_init): Update.
1497 (mips_extract_return_value): Delete.
1498 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1499 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1500 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1501 (mips_n32n64_extract_return_value): Clone
1502 mips_extract_return_value.
1503 (mips_store_return_value): Delete.
1504 (mips_o32_store_return_value): Clone mips_store_return_value.
1505 (mips_o64_store_return_value): Clone mips_store_return_value.
1506 (mips_eabi_store_return_value): Clone mips_store_return_value.
1507 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1509 2002-08-18 Aidan Skinner <aidan@velvet.net>
1511 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1512 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1514 2002-08-18 Aidan Skinner <aidan@velvet.net>
1516 * ada-lang.c: Run through gdb_indent.sh.
1517 * ada-lang.h: Run through gdb_indent.sh.
1518 * ada-tasks.c: Run through gdb_indent.sh.
1519 * ada-typeprint.c: Run through gdb_indent.sh.
1520 * ada-valprint.c: Run through gdb_indent.sh.
1522 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1524 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1527 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1529 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1531 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1532 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1534 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1535 write_register_gen instead of write_register_bytes.
1537 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1538 i[3456]-*-osf1mk* configurations have been made obsolete.
1539 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1540 i[3456]86-*-osf1mk* hosts obsolete.
1541 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1543 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1544 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1545 config/i386/i386m3.mt, config/i386/nm-m3.h,
1546 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1547 config/i386/i386mk.mh, config/i386/i386mk.mt,
1548 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1550 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1551 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1552 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1554 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1556 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1557 (hppa_value_returned_from_stack): Declare.
1558 (hppa_extract_return_value): Declare.
1559 * config/pa/hppa.mt: New file.
1560 * configure.tgt: Recognize hppa*-*-*.
1561 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1563 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1565 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1568 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1570 * top.c (gdb_rl_operate_and_get_next): Make sure
1571 operate-and-get-next functions correctly even when the history
1572 list is completely filled.
1574 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1576 * MAINTAINERS (Target Instruction Set Architectures): Rename
1577 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1578 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1579 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1580 already listed under Host/Native.
1582 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1583 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1586 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1588 * config/ia64/ia64.mt: New file.
1589 * config/alpha/alpha.mt: New file.
1590 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1591 ia64-linux-gnu. Mention that ia64-elf is broken.
1592 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1594 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1596 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1597 generic_func_frame_valid instead of func_frame_valid.
1599 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1601 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1602 procfs appears to be broken when debugging on multi-processor
1603 machines. So enable software single stepping in order to avoid
1604 using the procfs interface to do next/step operations, using
1605 internal breakpoints instead.
1607 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1608 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1609 make this pc address equal to the value it would have if the
1610 system stepping capability was used. Also set a new flag used
1611 to ensure that we don't readjust the PC one more time later.
1613 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1614 address by DECR_PC_AFTER_BREAK when software single step is
1615 in use for this architecture, as this has already been taken
1616 care of in handle_inferior_event().
1618 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1620 * infrun.c (handle_inferior_event): Minor reformatting, to make
1621 a rather long condition expression easier to read.
1623 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1625 * Makefile.in (gdbtk.o): Move to end of file.
1626 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1627 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1628 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1629 (gdbtk-wrapper.o, gdbres.o): Ditto.
1631 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1633 * Makefile.in (copying.o): Separate out compile rule.
1634 (hpux-thread.o, procfs.o, signals.o): Ditto.
1635 (v850ice.o, z8k-tdep.o): Ditto.
1636 (tui-file.o): Move to TUI section.
1637 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1638 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1640 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1642 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1643 skip_trampoline_code, for better namespace-proofing.
1645 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1647 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1649 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1651 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1653 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1654 signal, check whether we hit a breakpoint before checking for a
1655 single step breakpoint. Otherwise, GDB fails to notice that a
1656 breakpoint has been hit when stepping onto a breakpoint.
1658 2002-08-16 Keith Seitz <keiths@redhat.com>
1660 * gdb-events.sh (clear_gdb_event_hooks): New function.
1661 * gdb-events.c: Regenerate.
1662 * gdb-events.h: Regenerate.
1664 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1666 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1667 not_a_sw_breakpoint.
1668 * breakpoint.h (bpstat_stop_status): Add parameter names.
1670 2002-08-16 Grace Sainsbury <graces@redhat.com>
1672 * remote.c (remote_insert_hw_breakpoint)
1673 (remote_remove_hw_breakpoint): Fix calculation of length field
1676 2002-08-15 Michael Snyder <msnyder@redhat.com>
1678 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1679 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1680 (supply_fpregset): Ditto.
1682 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1683 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1684 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1685 (TARGET_READ_SP): Delete.
1686 (DO_REGISTERS_INFO): Delete.
1687 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1689 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1690 from macros to functions.
1692 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1693 (mips_register_convertible, mips_register_convert_to_virtual,
1694 mips_register_convert_to_raw): Make static.
1695 (mips_read_sp): New function.
1696 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1697 (mips_do_registers_info): Make static.
1698 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1699 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1700 (mips_register_convert_from_type, mips_register_convert_to_type):
1702 (mips_gdbarch_init): Set up function_start_offset,
1703 register_virtual_size, pc_in_sigtramp.
1705 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1707 * infcmd.c (vector_info): New function.
1708 (_initialize_infcmd): Add command "info vector".
1709 (print_vector_info): New function.
1711 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1712 * gdbarch.h, gdbarch.c: Regenerate.
1714 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1716 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1717 ``print_all''. Only print vector registers when ``print_all''.
1719 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1721 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1722 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1724 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1725 Add `args' parameter.
1726 * gdbarch.h, gdbarch.c: Regenerate.
1728 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1730 * infcmd.c (float_info): Call print_float_info.
1731 (print_float_info): New function. By default, print the
1732 floating-point registers.
1734 * arch-utils.h (default_print_float_info): Delete declaration.
1735 * arch-utils.c (default_print_float_info): Delete function.
1737 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1739 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1742 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1745 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1746 * configure.host: Make i[3456]86-*-aix host obsolete.
1747 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1748 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1749 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1750 config/i386/xm-i386aix.h: Make files obsolete.
1751 * i386aix-nat.c: Make file obsolete.
1752 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1753 (i386aix-nat.o): Make target obsolete.
1755 * config/i386/nm-gnu.h: Removed.
1756 * config/i386/nm-i386gnu.h: New file.
1757 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1758 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1760 * config/i386/tm-i386gnu.h: ... here. Removed.
1761 * config/i386/xm-i386gnu.h: Removed.
1762 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1763 (NAT_FILE): Set to nm-i386gnu.h.
1764 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1765 * i386-tdep.c: New file.
1766 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1767 (i386gnu-tdep.o): Specify dependencies.
1769 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1771 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1772 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1773 Adjust a few comments to reflect reality a bit closer.
1774 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1775 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1776 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1777 target_insert_watchpoint, target_remove_watchpoint):
1779 * config/i386/nm-i386sco5.h: ... here.
1780 (kernel_u_size): Add prototype. Improve a few comments and add
1781 protection against multiple inclusion.
1783 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1786 * uw-thread.c (SP_ARG0): Define if not already defined.
1787 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1789 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1791 * config/i386/tm-i386.h: Don't include "regcache.h".
1793 * i387-tdep.h (i387_print_float_info): New prototype.
1794 * i387-tdep.c (print_i387_value, print_i387_ext,
1795 print_i387_status_word, print_i387_control_word): Add `struct
1796 ui_file *' argument and use it for output.
1797 (i387_print_float_info): Renamed from i387_float_info. Add
1798 `struct gdbarch *' and `struct ui_file *' arguments and use the
1800 * i386-tdep.c: Include "i387-tdep.h".
1801 (i386_gdbarch_init): Set print_float_info.
1802 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1803 (FLOAT_INFO): Remove define.
1805 2002-08-13 Michael Snyder <msnyder@redhat.com>
1807 * mips-tdep.c (mips_push_arguments): Rename to
1808 mips_eabi_push_arguments, and tune for EABI.
1809 (MIPS_REGS_HAVE_HOME_P): Delete.
1810 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1811 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1812 Delete references to mips_regs_have_home_p.
1814 2002-08-14 Keith Seitz <keiths@redhat.com>
1816 * Makefile.in (install-gdbtk): Create insight plugin directory.
1817 Install plugins.tcl file.
1819 2002-08-14 Keith Seitz <keiths@redhat.com>
1821 * configure.in: Move SUBDIRS to near top of the file so that
1822 --enable options may add things to it.
1823 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1824 * configure: Regenerate.
1826 2002-08-13 Michael Snyder <msnyder@redhat.com>
1828 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1829 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1830 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1832 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1834 * vax-tdep.c (vax_get_saved_register): Delete function.
1835 (vax_gdbarch_init): Update.
1836 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1837 (ns32k_gdbarch_init): Update.
1838 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1839 (alpha_gdbarch_init): Update.
1841 2002-08-13 Andrew Cagney <cagney@redhat.com>
1843 * regcache.c (init_regcache_descr): Overallocate the
1844 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1845 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1847 (set_register_cached): Add range checking assertions. Use
1850 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1852 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1853 numbers for MMX registers.
1855 2002-08-13 Andrew Cagney <cagney@redhat.com>
1857 * i386-tdep.c (i386_gdbarch_init): Use
1858 generic_unwind_get_saved_register.
1860 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1862 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1863 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1865 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1866 Delete. Add comment regarding this now-deleted target method.
1868 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1870 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1871 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1872 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1873 real PC and the page number (if it's within the memory bank window).
1874 (m68hc11_pseudo_register_write): Likewise when saving.
1875 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1876 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1877 (m68hc11_register_raw_size): And use 32-bit for it.
1878 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1879 16K memory bank is used by the prog; also use the virtual pc.
1881 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1883 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1884 (m68hc11_gdbarch_init): Install it in gdbarch.
1885 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1886 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1887 (MSYMBOL_SIZE): New for documentation.
1888 (insn_return_kind): Enum to specify how a function returns.
1889 (frame_extra_info): Cleanup and record the return mode.
1890 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1891 register in address computation.
1892 (m68hc11_get_return_insn): New to obtain the return instruction used
1894 (m68hc11_frame_init_saved_regs): Take into account the return
1895 instruction used by the function for far and interrupt functions.
1896 (m68hc11_init_extra_frame_info): Take into account page register.
1897 (m68hc11_frame_args_address): Adjust according to the return mode.
1898 (show_regs): Print page register only when it's used.
1900 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1902 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1903 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1904 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1906 (m68hc11_register_raw_size): Likewise.
1908 2002-08-13 Andrew Cagney <cagney@redhat.com>
1910 * i386-tdep.c (i386_register_name): Handle mmx registers.
1911 (mmx_regnum_p): New function.
1912 (i386_mmx_names): New array.
1913 (mmx_num_regs): New variable.
1914 (i386_pseudo_register_read): New function.
1915 (i386_pseudo_register_write): New function.
1916 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1918 * regcache.c (regcache_raw_read_unsigned): New function.
1919 (regcache_raw_read_signed): New function.
1920 * regcache.h (regcache_raw_read_unsigned): Declare.
1921 (regcache_raw_read_signed): Declare.
1923 2002-08-13 Andrew Cagney <cagney@redhat.com>
1925 * regcache.c (regcache_raw_read_as_address): Delete function.
1926 (regcache_cooked_read_signed): New function.
1927 (regcache_cooked_read_unsigned): New function.
1928 * regcache.h (regcache_cooked_read_signed): Declare.
1929 (regcache_cooked_read_unsigned): Declare.
1930 (regcache_raw_read_as_address): Delete declaration.
1932 * blockframe.c (generic_read_register_dummy): Use
1933 regcache_cooked_read_unsigned.
1934 * i386-tdep.c (i386_extract_struct_value_address): Use
1935 regcache_cooked_read_unsigned.
1937 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1940 double sizes according to ELF ABI flags.
1941 (gdbarch_tdep): Record elf_flags.
1943 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1945 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1946 (m6812_prolog): They can appear in 68HC12 function prologue.
1947 (m68hc11_frame_chain): Cleanup.
1949 2002-08-12 Andrew Cagney <cagney@redhat.com>
1951 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1953 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1954 (i386_linux_register_raw_size): Delete function.
1955 (i386_linux_init_abi): Update.
1956 * i386-tdep.c (i386_register_raw_size): Delete function.
1957 (i386_register_byte): Delete function.
1958 (i386_gdbarch_init): Update.
1959 (i386_register_size): Delete array.
1960 (i386_register_offset): Delete array.
1962 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1963 (REGISTER_RAW_SIZE): Delete macro.
1964 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1965 (REGISTER_BYTE): Delete macro.
1967 2002-08-11 Aidan Skinner <aidan@velvet.net>
1969 * ada-lang.c (ada_lookup_partial_symbol)
1970 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1971 prototype names so that grep ^func works properly.
1973 * ada-lang.c (ada_array_element_type)
1974 (ada_lookup_partial_symbol): Fix typos in parameter list.
1976 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1977 Fix prototype names so that grep ^func works properly.
1979 2002-08-10 Andrew Cagney <cagney@redhat.com>
1980 Elena Zannoni <ezannoni@redhat.com>
1981 Martin M. Hunt <hunt@redhat.com>
1983 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1984 (build_builtin_type_vec128i): Set the vector bit.
1985 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1986 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1987 (build_builtin_type_vec64): New function.
1988 (build_builtin_type_vec64i): New function.
1989 (build_gdbtypes): Initialize builtin_type_vec64 and
1990 builtin_type_vec64i.
1992 2002-08-09 Andrew Cagney <cagney@redhat.com>
1994 * regcache.c (regcache_dump): Compare the register offset
1996 * arch-utils.c (generic_register_byte): New function.
1997 * arch-utils.h (generic_register_byte): Declare.
1998 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1999 * gdbarch.h, gdbarch.c: Regenerate.
2001 2002-08-09 Andrew Cagney <cagney@redhat.com>
2003 * regcache.c: Include "gdbcmd.h"
2004 (_initialize_regcache): Add commands "maintenance print
2005 registers", "maintenance print raw-registers" and "maintenance
2006 print cooked-registers".
2007 (enum regcache_dump_what): Define.
2008 (dump_endian_bytes): New function.
2009 (regcache_dump): New function.
2010 (regcache_print): New function.
2011 (maintenance_print_registers): New function.
2012 (maintenance_print_raw_registers): New function.
2013 (maintenance_print_cooked_registers): New function.
2014 * Makefile.in (regcache.o): Update dependencies.
2016 2002-08-09 Michael Snyder <msnyder@redhat.com>
2018 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2019 (mips_push_arguments): Correct some comments. Use paddr_nz
2020 for printing addresses in debug output. Replace static
2021 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2022 (mips_n32n64_push_arguments): New function, cloned from
2023 mips_push_arguments and tuned for the n32/n64 ABI.
2024 (mips_push_register): Buffer needs dynamic allocation.
2025 (mips_print_register): Ditto.
2026 (do_gp_register_row): Ditto.
2027 (mips_store_return_value): Ditto.
2028 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2030 2002-08-09 Don Howard <dhoward@redhat.com>
2032 * memattr.c (mem_info_command): Print special case of upper bound
2033 as max CORE_ADDR + 1.
2035 2002-08-08 Michael Snyder <msnyder@redhat.com>
2037 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2038 returns structs by ref if they're too big to fit in two registers.
2040 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2042 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2044 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2045 mips_find_saved_regs().
2046 (mips_pop_frame): Likewise.
2048 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2050 * blockframe.c (frame_saved_regs_register_unwind): Revise
2051 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2054 2002-08-09 Grace Sainsbury <graces@redhat.com>
2056 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2057 T-packets; the 'a' is not taken as a register number.
2058 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2059 (remote_stopped_data_address): New functions; add to target
2061 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2062 prototypes to match other implementations of this
2063 function. replace integer argument with pointer -- the length
2064 field in the Z-packet is the length of what is pointed to or 1 if
2065 pointer is null. Add to target vector.
2066 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2070 * remote.c (remote_wait): Add support to extract optional
2071 watchpoint information from T-packet. Ignore unrecognized
2072 optional info in T-packet.
2073 (remote_async_wait): Ditto.
2075 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2077 * cli/cli-dump.c: Change fopen modes to use binary open modes
2078 as defined in include/fopen-bin.h throughout.
2080 2002-08-08 Michael Snyder <msnyder@redhat.com>
2082 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2084 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2086 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2087 assertion failure by returning early after a warning.
2089 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2091 * mips-tdep.c (mips_find_saved_regs): Make static.
2092 (mips_frame_init_saved_regs): New function.
2093 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2094 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2095 (mips_find_saved_regs): Delete declaration.
2097 2002-08-08 Grace Sainsbury <graces@redhat.com>
2099 * remote.c (remote_wait, remote_async_wait): Change
2100 thread_num from int to ULONGEST.
2101 (unpack_varlen_hex): Change result parameter from
2102 int * to ULONGEST *.
2104 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2106 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2107 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2109 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2111 2002-08-08 Andrew Cagney <cagney@redhat.com>
2113 * gcore.c (override_derive_stack_segment): Delete variable.
2114 (preempt_derive_stack_segment): Delete function.
2115 (derive_stack_segment): Delete function.
2116 (default_derive_stack_segment): Renamed to derive_stack_segment.
2117 (override_derive_heap_segment): Delete variable.
2118 (preempt_derive_heap_segment): Delete function.
2119 (derive_heap_segment): Delete function.
2120 (default_derive_heap_segment): Rename to derive_heap_segment.
2122 2002-08-06 Michael Snyder <msnyder@redhat.com>
2124 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2125 * mips-tdep.c (mips_EABI_use_struct_convention,
2126 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2127 New functions. (mips_use_struct_convention): Delete.
2128 (mips_gdbarch_init): set use_gdbarch_convention.
2130 2002-08-06 Michael Snyder <msnyder@redhat.com>
2132 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2133 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2134 mips_o32_reg_struct_has_addr): New functions.
2135 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2137 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2139 * regcache.c (pseudo_register): Delete function.
2140 (fetch_register): Delete function.
2141 (store_register): Delete function.
2142 (regcache_raw_read, legacy_read_register_gen): Use
2143 target_fetch_registers instead of fetch_register.
2144 (legacy_write_register_gen, regcache_raw_write): Use
2145 target_store_register instead of store_register.
2146 (write_register_bytes): Ditto.
2148 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2149 (STORE_PSEUDO_REGISTER): Delete.
2150 * gdbarch.h, gdbarch.c: Regenerate.
2152 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2154 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2155 write dump file binary.
2157 2002-08-05 Michael Snyder <msnyder@redhat.com>
2159 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2160 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2161 (mips_gdbarch_init): Set N32 target to be mips64.
2163 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2165 * frame.c (find_saved_register): Break out of loop once saved
2166 register address is found. Don't mention sparc in loop comment
2169 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2171 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2172 mips_default_saved_regsize to 8.
2174 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2176 * gcore.c: Do not include <sys/procfs.h>.
2177 * Makefile.in (gcore.o): Update dependencies.
2179 2002-08-06 Andrew Cagney <cagney@redhat.com>
2181 * configure.tgt: Make arc-*-* obsolete.
2182 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2183 * MAINTAINERS: Make arc-elf obsolete.
2184 * arc-tdep.c: Make file obsolete.
2185 * config/arc/arc.mt: Ditto.
2186 * config/arc/tm-arc.h: Ditto.
2188 2002-08-05 Theodore A. Roth <troth@verinet.com>
2190 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2192 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2194 * mcore-tdep.c (mcore_gdbarch_init): Use
2195 generic_unwind_get_saved_register instead of
2196 generic_get_saved_register.
2197 * v850-tdep.c (v850_gdbarch_init): Ditto.
2198 * frv-tdep.c (frv_gdbarch_init): Ditto.
2199 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2200 * s390-tdep.c (s390_gdbarch_init): Ditto.
2201 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2202 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2203 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2205 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2207 * objfiles.h: Add missing #include "symfile.h"
2209 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2211 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2213 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2214 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2217 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2219 * NEWS: Cleanup and nitpick.
2221 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2223 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2225 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2227 * Makefile.in (gdbtk-bp.o): Update dependencies.
2228 (gdbtk-register.o): Ditto.
2229 (gdbtk-varobj.o): Ditto.
2231 2002-08-03 Andrew Cagney <cagney@redhat.com>
2233 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2234 m68hc11_fetch_pseudo_register.
2235 (m68hc11_pseudo_register_write): Replace
2236 m68hc11_store_pseudo_register.
2237 (m68hc11_gdbarch_init): Update.
2239 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2241 * gdbarch.sh: Include "gdb_string.h".
2242 * gdbarch.c: Regenerate.
2244 * regcache.c: Include "gdb_string.h".
2245 * ax-general.c: Ditto.
2247 * std-regs.c: Ditto.
2248 * fbsd-proc.c: Ditto.
2251 * Makefile.in (regcache.o): Update dependencies.
2252 (thread.o, gdbarch.o): Ditto.
2253 (ax-general.o, gdbarch.o): Ditto.
2254 (varobj.o, std-regs.o): Ditto.
2255 (fbsd-proc.o): Specify dependencies.
2257 2002-08-02 Andrew Cagney <cagney@redhat.com>
2259 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2261 (regcache_cooked_write): Ditto.
2263 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2265 * regcache.c (regcache_cooked_read): New function.
2266 (regcache_cooked_write): New function.
2267 (read_register_gen): Rewrite using regcache_cooked_read.
2268 (write_register_gen): Rewrite using regcache_cooked_write.
2270 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2273 2002-08-02 Andrew Cagney <cagney@redhat.com>
2275 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2276 Replace the architecture methods register_read and register_write.
2277 * gdbarch.h, gdbarch.c: Regenerate.
2278 * regcache.c (init_regcache_descr): Update.
2279 (read_register_gen): Update.
2280 (write_register_gen): Update.
2281 (supply_register): Update comment.
2283 * sh-tdep.c (sh_gdbarch_init): Update.
2284 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2285 `regcache' and `gdbarch' parameters. Make `buffer' a void
2286 pointer. Update code.
2287 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2288 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2289 void pointer. Update code.
2290 (sh64_register_write): Delete.
2291 (sh4_register_read): Delete.
2292 (sh64_register_read): Delete.
2293 (sh4_register_write): Delete.
2294 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2295 void pointer, `to' parameter a void pointer.
2296 (sh_sh64_register_convert_to_raw): Ditto.
2298 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2300 * mips-tdep.c (mips_register_virtual_type): Use architecture
2301 invariant return values.
2303 2002-08-01 Andrew Cagney <cagney@redhat.com>
2305 * linux-proc.c: Include "gdb_string.h".
2306 * Makefile.in (linux-proc.o): Update dependency list.
2308 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2310 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2313 2002-08-01 Grace Sainsbury <graces@redhat.com>
2315 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2316 to_insert_watchpoint, to_remove_watchpoint,
2317 to_stopped_by_watchpoint, to_stopped_data_address,
2318 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2319 target vecctor. Define their corresponding macros so they call
2322 * target.c: Add default and debug versions of for
2323 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2324 to_insert_watchpoint, to_remove_watchpoint,
2325 to_stopped_by_watchpoint, to_stopped_data_address,
2326 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2328 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2330 * mips-tdep.c (mips_register_virtual_type): New function.
2331 (mips_gdbarch_init): Register mips_register_virtual_type()
2332 with gdbarch machinery.
2333 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2334 this file instead of tm-bigmips.h.
2335 (MIPS_REGSIZE): Delete this macro.
2336 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2337 multiarch version in mips-tdep.c will be found.
2339 2002-08-01 Andrew Cagney <cagney@redhat.com>
2341 * NEWS: Menion that CHILL has been made obsolete.
2343 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2344 * stabsread.c (read_range_type): Ditto.
2345 * gdbtypes.h: Ditto.
2346 * language.c (binop_type_check): Ditto.
2347 (binop_result_type): Ditto.
2348 (integral_type): Ditto.
2349 (character_type): Ditto.
2350 (string_type): Ditto.
2351 (boolean_type): Ditto.
2352 (structured_type): Ditto.
2353 (lang_bool_type): Ditto.
2354 (binop_type_check): Ditto.
2355 * language.h (_LANG_chill): Ditto.
2356 * dwarfread.c (set_cu_language): Ditto.
2357 * dwarfread.c (CHILL_PRODUCER): Ditto.
2358 * dwarfread.c (handle_producer): Ditto.
2359 * expression.h (enum exp_opcode): Ditto.
2360 * eval.c: Ditto for comments.
2361 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2362 * expprint.c (print_subexp): Ditto.
2363 (print_subexp): Ditto.
2364 * valops.c (value_cast): Ditto.
2365 (search_struct_field): Ditto.
2366 * value.h (COERCE_VARYING_ARRAY): Ditto.
2367 * symfile.c (init_filename_language_table): Ditto.
2368 (add_psymbol_with_dem_name_to_list): Ditto.
2369 * valarith.c (value_binop): Ditto.
2371 * valops.c (value_slice): Ditto.
2372 * symtab.h (union language_specific): Ditto.
2373 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2374 (SYMBOL_DEMANGLED_NAME): Ditto.
2375 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2376 * defs.h (enum language): Ditto.
2377 * symtab.c (got_symtab): Ditto.
2378 * utils.c (fprintf_symbol_filtered): Ditto.
2380 * ch-typeprint.c: Make file obsolete.
2381 * ch-valprint.c: Make file obsolete.
2382 * ch-lang.h: Make file obsolete.
2383 * ch-exp.c: Make file obsolete.
2384 * ch-lang.c: Make file obsolete.
2386 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2388 (TARGET_FLAGS_TO_PASS): Ditto.
2389 (CHILLFLAGS): Obsolete.
2391 (CHILL_FOR_TARGET): Obsolete.
2392 (CHILL_LIB): Obsolete.
2393 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2395 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2396 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2398 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2401 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2403 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2404 This does not change anything at the moment, but will be helpful
2405 later when full Ada support is integrated.
2407 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2409 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2412 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2414 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2415 and save it in a local variable. Use variable in later test.
2417 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2419 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2420 test. (Thanks to Daniel Jacobowitz.)
2422 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2424 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2425 (mips_abi_strings): Add "n64".
2426 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2428 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2430 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2431 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2433 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2435 * utils.c (host_pointer_to_address, address_to_host_pointer):
2436 Use gdb_assert() instead of explicit call to internal_error().
2438 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2440 * Makefile.in (rs6000-nat.o): Update dependencies.
2442 From Nicholas Duffek:
2443 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2444 (aix-thread.o): New rule.
2445 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2446 * config/powerpc/aix432.mh: New file.
2448 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2450 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2451 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2452 (fetch_core_registers, ppc_linux_supply_gregset)
2453 (ppc_linux_supply_fpregset): New functions.
2454 (ppc_linux_regset_core_fns): New.
2455 (_initialize_ppc_linux_tdep): Call add_core_fns.
2456 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2457 and ppc_linux_supply_gregset.
2458 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2459 (supply_fpregset): Call ppc_linux_supply_fpregset.
2460 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2462 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2464 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2466 * symtab.c (lookup_symbol): Demangle before lowercasing.
2468 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2470 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2472 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2473 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2474 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2475 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2477 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2478 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2479 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2480 (avr-tdep.o, mon960-rom.o): Ditto.
2481 (aout_stabs_gnu_h): Define.
2482 (symtab_h): Remove $(gdb_obstack_h).
2484 2002-07-30 Jim Blandy <jimb@redhat.com>
2486 Patch from David Carlton <carlton@math.stanford.edu>:
2487 * gdbinit.in: Move the `dir' commands that add GDB's own source
2488 directory to the search path to the end, so that the `gdb' source
2489 directory will be searched first.
2491 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2493 * gdb_obstack.h: New file.
2494 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2495 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2496 * objfiles.h: Include "gdb_obstack.h".
2497 * Makefile.in (gdb_obstack_h): Define.
2498 (symtab_h): Add $(gdb_obstack_h).
2499 (objfiles_h): Add $(gdb_obstack_h).
2501 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2502 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2503 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2504 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2505 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2506 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2507 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2508 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2510 * Makefile.in (bcache.o): Update dependencies.
2511 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2512 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2513 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2514 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2515 (stabsread.o, symfile.o, symmisc.o): Ditto.
2516 (symtab.o, typeprint.o, macroexp.o): Ditto.
2517 (macrotab.o, mdebugread.o): Ditto.
2518 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2519 (coff_ecoff_h, aout_aout64_h): Define.
2520 (aout_stabs_gnu_h, libaout_h): Define.
2522 2002-07-29 Andrew Cagney <cagney@redhat.com>
2524 * regcache.c (struct regcache_descr): Rename nr_registers to
2525 nr_cooked_registers. Revise comments describing the structure
2527 (init_regcache_descr): Update.
2528 (init_legacy_regcache_descr): Update.
2529 (read_register_gen, write_register_gen): When a cooked register in
2530 the raw register range, directly access the value from the raw
2533 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2535 * z8k-tdep.c: Do not include "obstack.h".
2536 * h8300-tdep.c, h8500-tdep.c: Ditto.
2537 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2538 * valprint.c, v850-tdep.c: Ditto.
2539 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2540 * mn10200-tdep.c: Ditto.
2542 * Makefile.in (z8k-tdep.o): Update dependencies.
2543 (m68hc11-tdep.o, valprint.o): Ditto.
2544 (v850-tdep.o, d10v-tdep.o): Ditto.
2545 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2546 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2547 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2548 (sh_opc_h, gdb_sim_sh_h): Define.
2549 (elf_sh_h, elf_bfd_h): Define.
2550 (opcode_m68hc11_h): Define.
2551 (OPCODES_SRC, OPCODES_DIR): define.
2552 (OPCODES): Use $(OPCODES_DIR).
2553 (gdb_sim_d10v_h): Rename sim_d10v_h.
2554 (gdb_sim_arm_h): Rename sim_arm_h.
2556 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2558 * utils.c (host_pointer_to_address, address_to_host_pointer):
2559 Change internal_error() message to indicate function responsible
2562 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2564 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2565 calls to local_hex_string_custom().
2567 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2569 * irix5-nat.c: Move IRIX shared library support from here...
2570 * solib-irix.c: ...to here. Revised substantially to work with
2571 generic solib framework.
2573 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2574 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2575 * mips-irix-tdep.c: New file.
2577 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2578 (mips-irix-tdep.o, solib-irix.o): New rules.
2579 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2581 * config/mips/irix6.mt (TDEPFILES): Likewise.
2582 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2584 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2586 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2587 disabled (via ``#if 0'') includes.
2589 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2591 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2592 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2593 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2594 Add support for the fpscr register.
2595 * rs6000-nat.c (regmap, fetch_inferior_registers)
2596 (store_inferior_registers, fetch_core_registers): Likewise.
2598 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2600 * rs6000-nat.c (language.h): Include.
2601 (special_regs): Delete this array.
2602 (regmap): New function.
2603 (fetch_register, store_register): Use regmap() to map gdb
2604 register numbers to ptrace register numbers. Also, use
2605 outputs from regmap() to make decisions regarding type of
2606 ptrace() call to make. In particular, don't compare against
2607 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2608 (fetch_inferior_registers, store_inferior_registers): Where
2609 possible, obtain register numbers from tdep struct. Don't
2610 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2611 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2612 (LAST_UISA_SP_REGNUM): Delete.
2614 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2616 * rs6000-nat.c (ppc-tdep.h): Include.
2617 (fetch_registers, store_register, fetch_core_registers): Don't
2618 access registers[] directly. Instead, use supply_register() or
2619 regcache_collect() as appropriate.
2620 (find_toc_address): Format hex address with local_hex_string().
2622 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2624 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2627 2002-07-24 Tom Tromey <tromey@redhat.com>
2629 * jv-exp.y: Marked all strings with _().
2630 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2632 (MethodInvocation, CastExpression, parse_number, yyerror,
2633 java_type_from_name, push_expression_name, yylex): Typo fixes.
2635 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2637 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2638 (tee_file_flush, tee_file_write, tee_file_fputs)
2639 (tee_file_isatty): New.
2640 * ui-file.h (tee_file_new): Add prototype.
2642 2002-07-24 Aidan Skinner <aidan@velvet.net>
2644 * ada-lang.c: Change k&r style function definitions to prototyped
2646 * ada-typeprint.c: Change k&r style function definitions to prototyped
2648 * ada-valprint.c: Change k&r style function definitions to prototyped
2651 2002-07-24 Andrew Cagney <cagney@redhat.com>
2653 * README: Remove reference to remote-bug.
2654 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2656 (m88k-nat.o): Delete rule.
2657 (m88k-tdep.o): Delete rule.
2658 (remote-bug.o): Delete rule.
2659 * MAINTAINERS: Mark as obsolete.
2660 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2661 * m88k-tdep.c: Make file obsolete.
2662 * config/m88k/m88k.mh: Ditto.
2663 * config/m88k/delta88v4.mh: Ditto.
2664 * config/m88k/delta88v4.mt: Ditto.
2665 * config/m88k/delta88.mt: Ditto.
2666 * config/m88k/delta88.mh: Ditto.
2667 * remote-bug.c: Ditto.
2668 * config/m88k/tm-delta88.h: Ditto.
2669 * config/m88k/nm-delta88v4.h: Ditto.
2670 * config/m88k/xm-delta88.h: Ditto.
2671 * config/m88k/xm-dgux.h: Ditto.
2672 * config/m88k/tm-m88k.h: Ditto.
2673 * config/m88k/nm-m88k.h: Ditto.
2674 * config/m88k/tm-delta88v4.h: Ditto.
2675 * m88k-nat.c: Ditto.
2676 * cxux-nat.c: Ditto.
2677 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2678 and m88*-*-* obsolete.
2679 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2682 2002-07-24 Andrew Cagney <cagney@redhat.com>
2684 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2685 constant. Same for local pointer variables.
2686 (extract_signed_integer): Ditto.
2687 * defs.h (extract_unsigned_integer): Update.
2688 (extract_signed_integer): Update.
2690 2002-07-24 Andrew Cagney <cagney@redhat.com>
2692 * regcache.c (regcache_raw_write): Change buf parameter to a
2693 constant void pointer.
2694 (regcache_raw_read): Change buf parameter to a void pointer.
2695 (legacy_write_register_gen): Change myaddr parameter a constant
2697 (supply_register): Change val parameter to a const void pointer.
2698 * regcache.h (regcache_raw_write): Update declaration.
2699 (regcache_raw_read): Update declaration.
2700 (supply_register): Update declaration.
2702 2002-07-24 Tom Tromey <tromey@redhat.com>
2704 * defs.h (gdb_readline_wrapper): Declare.
2705 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2706 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2707 * top.c (gdb_readline_wrapper): New function.
2708 (command_line_input): Use it.
2710 2002-07-24 Andrew Cagney <cagney@redhat.com>
2712 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2713 regcache_read and regcache_write.
2714 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2715 * regcache.c: Update.
2716 * sh-tdep.c (sh64_push_arguments): Update comment.
2717 (sh_pseudo_register_read): Update.
2718 (sh_pseudo_register_write): Update.
2719 (sh4_register_read): Update.
2720 (sh4_register_write): Update.
2721 (sh64_pseudo_register_read): Update.
2722 (sh64_pseudo_register_write): Update.
2723 (sh64_register_read): Update.
2724 (sh64_register_write): Update.
2725 * i386-tdep.c (i386_extract_return_value): Update.
2726 (i386_extract_struct_value_address): Update.
2727 (i386_extract_return_value): Update.
2728 * blockframe.c (generic_read_register_dummy): Update.
2729 (generic_call_dummy_register_unwind): Update
2730 * infrun.c (write_inferior_status_register): Update.
2732 2002-07-23 Jim Blandy <jimb@redhat.com>
2734 * parser-defs.h (expression_context_pc): Make this extern.
2735 (Thanks to Michael Snyder.)
2737 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2739 GDB 5.2.1 released from 5.2 branch.
2740 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2741 * README: Update to mention 5.2.1.
2743 2002-07-23 Mark Salter <msalter@redhat.com>
2745 * remote.c (remote_read_bytes): Fix check for error.
2747 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2749 * aix-thread.c (language.h): Include.
2750 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2751 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2752 Print newlines at end of debug messages.
2753 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2754 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2756 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2758 * aix-thread.c (ppc-tdep.h): Include.
2759 (special_register_p): New function.
2760 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2761 (store_regs_user_thread): Use register number information from
2762 gdbarch_tdep struct instead of hardcoded offsets relative to
2763 FIRST_UISA_SP_REGNUM.
2764 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2765 special_register_p() instead of using FPLAST_REGNUM and
2766 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2767 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2768 will be MQ's register number.
2770 2002-07-22 Michael Snyder <msnyder@redhat.com>
2772 * aix-thread.c (ops): Rename to aix_thread_ops.
2773 (base_ops): Rename to base_target.
2774 (ops_attach): Rename to aix_thread_attach.
2775 (ops_detach): Rename to aix_thread_detach.
2776 (ops_resume): Rename to aix_thread_detach.
2777 (ops_wait): Rename to aix_thread_wait.
2778 (ops_kill): Rename to aix_thread_kill.
2779 (init_ops): Rename to init_aix_thread_ops.
2780 (ops_fetch_register): Rename to aix_thread_fetch_register.
2781 (ops_store_register): Rename to aix_thread_store_register.
2782 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2783 (ops_thread_alive): Rename to aix_thread_thread_alive.
2784 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2785 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2786 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2787 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2788 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2789 (store_regs_lib): Rename to store_regs_user_thread.
2790 (store_regs_kern): Rename to store_regs_kernel_thread.
2792 2002-07-22 Michael Snyder <msnyder@redhat.com>
2794 * aix-thread.c (ops_prepare_to_store): Eliminate.
2795 (init_ops): Don't initialize ops.prepare_to_store.
2796 (store_regs_kern): Pre-fetch register buffers from child,
2797 because some registers may not be in the cache. Copy
2798 regs from register cache only if they are cached.
2799 (store_regs_lib): Copy regs from register cache only
2801 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2802 fill_gprs64): Ditto.
2804 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2806 * aix-thread.c (gdb_assert.h): Include.
2807 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2808 register sizes (from register cache) match size of buffer holding
2810 (fill_sprs32): Change parameter types to match those in the ptrace()
2812 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2813 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2815 2002-07-22 Michael Snyder <msnyder@redhat.com>
2817 * aix-thread.c (supply_sprs64): Cosmetic change.
2818 (supply_sprs32): Cosmetic change.
2819 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2820 (fill_sprs64): Use regcache_collect instead of read_register.
2821 (store_regs_lib): Use regcache_collect instead of
2822 read_register. Use fill_sprs32 instead of fill_sprs64,
2823 if debugging a 32-bit architecture.
2824 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2825 out of the register cache, instead of passing a pointer into
2826 the register cache directly to ptrace. Use regcache_collect
2827 insteaad of read_register.
2828 (ops_prepare_to_store): Use target_read_registers instead
2829 of read_register_bytes.
2831 2002-07-20 Aidan Skinner <aidan@velvet.net>
2833 * MAINTAINERS: Add self under write after approval.
2835 2002-07-20 Aidan Skinner <aidan@velvet.net>
2837 * ada-tasks.c: Change k&r style function definitions to prototyped
2840 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2842 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2843 * x86-64-tdep.c: Include "objfiles.h".
2844 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2845 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2847 2002-07-17 Michal Ludvig <michal@suse.cz>
2849 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2850 (update_context): Initialise cfa variable.
2852 2002-07-17 Michael Snyder <msnyder@redhat.com>
2854 * aix-thread.c: Shorten some long lines.
2855 Bring comments into line with code spec.
2857 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2859 * infrun.c: Re-indent using gdb_indent.sh.
2861 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2863 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2864 Leave the indentation temporarily untouched, to minimize the diffs.
2866 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2868 * stabsread.c: Make os9k sections of the code obsolete,
2870 * stabsread.h: Make os9k sections of the code obsolete.
2872 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2874 * linux-low.c (regsets_store_inferior_registers): Add free()
2875 at the end of a loop to prevent memory leak.
2876 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2877 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2878 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2880 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2882 2002-07-17 Jim Blandy <jimb@redhat.com>
2884 * macrocmd.c (info_macro_command): Remove newline from error
2887 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2889 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2890 (sh_gdbarch_init): Use it for sh-dsp.
2892 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2894 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2895 64-bit DWARF2 format.
2897 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2899 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2900 <sys/proc.h> when not available.
2902 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2904 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2905 * stabsread.c: Make os9k sections of the code obsolete.
2906 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2907 * config/i386/i386os9k.mt: Make file obsolete.
2908 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2909 (COMMON_OBS): Remove os9kread.o
2910 (SFILES): Remove os9kread.c.
2911 (os9kread.o, remote-os9k.o): Make target obsolete.
2912 * remote-os9k.c: Make file obsolete.
2913 * os9kread.c: Make file obsolete.
2916 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2918 * NEWS: Mention that the FR30 has been made obsolete.
2919 * fr30-tdep.c: Make file obsolete.
2920 * config/fr30/tm-fr30.h: Ditto.
2921 * config/fr30/fr30.mt: Ditto.
2922 * configure.tgt: Make fr30-*-elf obsolete.
2923 * MAINTAINERS: Make fr30-elf obsolete.
2925 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2927 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2928 found is not inside a section.
2930 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2932 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2934 (pdc_realloc): Use xrealloc() instead of realloc().
2936 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2938 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2939 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2940 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2943 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2945 * aix-thread.c (ptrace_check): Eliminate goto.
2946 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2949 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2951 * aix-thread.c (gdbcmd.h): Include.
2952 (DEBUG, DBG, DBG2, dbg): Eliminate.
2953 (debug_aix_thread): New static global.
2954 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2955 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2956 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2957 invocations to DBG and DBG2 macros to test against
2958 ``debug_aix_thread'' and call fprintf_unfiltered().
2959 (_initialize_aix_thread): Add new command "set debug aix-thread".
2961 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2963 From Gerhard Tonn <TON@de.ibm.com>:
2964 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2965 instead of supply_register.
2967 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2969 * dwarf2cfi.c: Include "gdb_assert.h".
2970 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2972 (update_context): Do not use __func__. Add missing ``break''.
2973 (update_context): Do not use __func__.
2975 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2977 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2978 and its setting. Set gdbarch instruction printing functions
2979 directly. For non-rs6000 case use new function
2980 gdb_print_insn_powerpc.
2981 (gdb_print_insn_powerpc): New function.
2983 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2985 * NEWS: Mention that the d30v has been marked obsolete.
2986 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2987 * configure.tgt: Mark d30v-*-* as obsolete.
2988 * d30v-tdep.c: Mark file as obsolete.
2989 * config/d30v/d30v.mt: Ditto.
2990 * config/d30v/tm-d30v.h: Ditto.
2992 2002-07-13 Aidan Skinner <aidan@velvet.net>
2994 * ada-tasks.c (add_task_entry): replace calls to
2995 malloc() with xmalloc
2996 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2998 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2999 ada_finish_decode_line_1, all_sals_for_line
3000 ada_breakpoint_rewrite): replace calls to free() with xfree()
3002 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3004 From Nicholas Duffek (with minor changes by Martin Hunt,
3005 Louis Hamilton, and Kevin Buettner):
3006 * aix-thread.c: New file.
3008 2002-07-12 Petr Sorfa <petrs@caldera.com>
3010 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3011 complaint for invalid attribute class or form.
3012 (read_func_scope): DW_AT_frame_base
3013 better handling of DW_AT_block*.
3014 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3015 better handling of DW_AT_block*.
3016 (read_common_block): DW_AT_location
3017 better handling of DW_AT_block*.
3018 (read_partial_die): DW_AT_location better handling
3020 (new_symbol): DW_AT_external better handling of
3021 DW_AT_block*. Proper initialization of variable
3023 (attr_form_is_block): New function that returns true
3024 if the attribute's form is of DW_FORM_block*.
3026 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3028 * valops.c (find_method_list): Remove comment about
3029 removed STATIC_MEMFUNCP argument.
3030 (value_find_oload_method_list): Likewise.
3032 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3034 From Nicholas Duffek:
3035 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3036 target_new_objfile_hook.
3038 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3040 From Nicholas Duffek:
3041 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3044 2002-07-12 Andrew Cagney <cagney@redhat.com>
3046 * MAINTAINERS: Mention --enable-sim-build-warnings.
3047 (m68hc11-elf): Disable sim build warnings.
3048 (m32r-elf): Mark as broken obsolete candidate.
3049 (x86_64-linux-gnu): Mark as buildable with -Werror.
3050 (arm-elf): Change -w to ``,'' which enables warnings but not
3053 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3055 * bcache.h: Update copyright.
3056 (struct bstring, struct bcache): Move definition to "bcache.c".
3057 Replaced by opaque declaration.
3058 (bcache_xfree): Replace free_bcache.
3059 (bcache_xmalloc, bcache_memory_used): Declare.
3061 * bcache.c: Update copyright.
3062 (struct bstring, struct bcache): Moved to here from "bcache.h".
3064 (bcache_xmalloc, bcache_memory_used): New functions.
3065 (bcache_xfree): Replace function free_bcache.
3067 * Makefile.in (objfiles.o): Add $(bcache_h).
3068 (objfiles_h): Remove $(bcache_h).
3069 (symfile.o): Add $(bcache_h).
3071 * symmisc.c: Update copyright.
3072 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3073 (print_objfile_statistics): Use bcache_memory_used.
3075 * symfile.c: Include "bcache.h".
3076 (reread_symbols): Use bcache_xfree.
3077 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3078 (add_psymbol_to_list): Pass psymbol_cache by value.
3079 (add_psymbol_with_dem_name_to_list): Ditto.
3081 * objfiles.h: Update copyright.
3082 (struct bcache): Declare opaque. Do not include "bcache.h".
3083 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3085 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3087 * objfiles.c: Include "bcache.h". Update copyright.
3088 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3090 (free_objfile): Use bcache_xfree.
3092 2002-07-11 Grace Sainsbury <graces@redhat.com>
3094 * monitor.c (monitor_fetch_register): Make name a constant.
3095 (monitor_store_register): Same.
3097 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3099 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3100 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3101 (finish_block) For non-function blocks, hash the symbol table. For
3102 function blocks, mark the symbol table as unhashed.
3103 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3104 (msymbol_hash_iw): Likewise.
3105 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3107 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3108 (lookup_minimal_symbol): Likewise for both.
3109 * symtab.h (struct block): Add `hashtable' flag. Comment the
3111 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3112 (ALL_BLOCK_SYMBOLS): Update.
3113 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3114 (struct symbol): Add `hash_next' pointer.
3115 * symtab.c (lookup_block_symbol): Search using the hash table when
3117 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3118 (search_symbols, find_addr_symbol): Likewise.
3120 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3121 (read_dst_symtab): Likewise.
3122 * jv-lang.c (get_java_class_symtab): Likewise.
3123 * mdebugread.c: Include "gdb_assert.h".
3124 (shrink_block): Assert that the block being modified is not hashed.
3125 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3126 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3128 (dump_symtab): Recognize hashed blocks.
3129 * printcmd.c (print_frame_args): Assert that function blocks do not
3130 have hashed symbol tables.
3131 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3132 (fill_in_ada_prototype, debug_print_block): Likewise.
3133 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3135 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3137 * stack.c (print_frame): Use result of frame_address_in_block()
3138 instead of fi->pc when evaluating symbols.
3139 (backtrace_command_1): Ditto.
3141 2002-07-11 Andrew Cagney <cagney@redhat.com>
3143 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3146 * arm-tdep.c (arm_register_name): Make return type constant.
3148 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3150 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3152 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3153 * s390-tdep.c (s390_fp_regnum): Ditto.
3154 (s390_read_fp): Ditto.
3155 (s390_pop_frame): Ditto.
3156 (_initialize_s390_tdep): Ditto.
3157 * remote.c (get_remote_state): Ditto.
3158 * procfs.c (mappingflags): Ditto.
3159 * memattr.c (_initialize_mem): Ditto.
3160 * mcore-tdep.c (mcore_pop_frame): Ditto.
3161 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3162 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3163 * language.c (set_case_str): Ditto.
3164 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3165 * frv-tdep.c (new_variant): Ditto.
3166 (frv_stopped_data_address): Ditto.
3167 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3168 (context_alloc): Ditto.
3169 (frame_state_alloc): Ditto.
3170 (unwind_tmp_obstack_init): Ditto.
3171 (unwind_tmp_obstack_free): Ditto.
3172 (cfi_read_fp): Ditto.
3173 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3174 (cris_pop_frame): Ditto.
3175 * c-lang.c (scanning_macro_expansion): Ditto.
3176 (finished_macro_expansion): Ditto.
3177 (c_preprocess_and_parse): Ditto.
3178 * gdbarch.sh: Ditto.
3179 * gdbarch.h, gdbarch.c: Regenerate.
3180 * config/mn10200/tm-mn10200.h: Adjust indentation.
3181 * target.c: Adjust indentation.
3182 * symtab.h: Adjust indentation.
3183 * stabsread.h: Adjust indentation.
3184 * remote-es.c: Adjust indentation.
3185 * os9kread.c: Adjust indentation.
3187 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3189 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3190 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3192 2002-07-10 Grace Sainsbury <graces@redhat.com>
3194 * NEWS: Mention m68k, mcore multi-arching.
3195 * MAINTAINERS: Change status of m68k, mcore to reflect
3198 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3200 * valops.c (find_overload_match): Free oload_syms.
3202 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3204 Define HAVE_SYS_PROC_H if sys/proc.h exists
3205 * configure.in: Add check for sys/proc.h
3206 * config.in: Regenerate.
3207 * configure: Regenerate.
3209 2002-07-09 Grace Sainsbury <graces@redhat.com>
3211 * config/m68k/tm-m68k.h: Remove macros wrapped in
3212 #if !GDB_MULTI_ARCH.
3214 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3216 * config.in, configure: Regenerate.
3218 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3220 * dwarf2cfi.c: Include "gcore.h".
3221 (execute_stack_op): Fix implementation of the
3222 DW_OP_deref and DW_OP_deref_size operators by letting do their
3223 lookup in the target.
3225 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3227 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3228 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3231 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3233 Fix PR gdb/595, gdb/602
3234 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3235 Don't call value_cast, just read the vtable pointer; update comments
3238 2002-07-05 Grace Sainsbury <graces@redhat.com>
3240 * config/mcore/tm-mcore.h: Remove file.
3241 * config/mcore/mcore.mt: Remove definition of TM_FILE
3242 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3244 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3246 * i386bsd-tdep.c: Include "gdb_string.h".
3248 2002-07-04 Grace Sainsbury <graces@redhat.com>
3250 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3251 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3253 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3254 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3255 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3256 (RETVAL_REGNUM): Move macros from tm-mcore.h
3257 (mcore_reg_struct_has_addr): New function.
3258 (mcore_gdbarch_init): Added initializations for the macros removed
3261 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3263 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3264 traditonal string branding within the ELF header.
3266 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3268 * symtab.c (remove_params): New function.
3269 (make_symbol_overload_list): Use it instead of cplus_demangle.
3270 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3272 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3274 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3276 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3278 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3279 and tdep->sigtramp_end.
3280 * i386obsd-nat.c: New file.
3281 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3283 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3284 Don't call get_current_frame().
3286 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3288 * i386-nat.c (child_post_startup_inferior): New function
3289 calling i386_cleanup_dregs if
3290 I386_USE_GENERIC_WATCHPOINTS is defined.
3291 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3292 conditional to acknowledge that i386-nat.c has its
3293 own child_post_startup_inferior function.
3295 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3297 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3298 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3299 instead of MAX_REGISTER_RAW_SIZE.
3300 (i386_extract_return_value, i386_extract_struct_value_address):
3301 Convert to use regcache.
3302 (i386_gdbarch_init): Set max_register_raw_size and
3303 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3304 Set extract_return_value and extract_struct_value_address instead
3305 of their deprecated variants.
3307 Convert i386 target to generic dummy frames.
3308 * i386-tdep.c: Include "symfile.h".
3309 (i386_frameless_signal_p): Consider a function to be frameless if
3310 the pc points at the first instruction of the function.
3311 (i386_frame_chain): Handle (generic) call dummies.
3312 (i386_frame_saved_pc): Likewise.
3313 (i386_frame_init_saved_regs): Remove code dealing with call
3314 dummies on the stack.
3315 (i386_push_dummy_frame): Removed.
3316 (i386_call_dummy_words): Removed.
3317 (i386_fix_call_dummy): Removed.
3318 (i386_push_return_address): New function.
3319 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3320 parameter, and don't call get_current_frame.
3321 (i386_pop_frame): New function.
3322 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3323 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3324 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3325 call_dummy_length to 0, set call_dummy_words to NULL, set
3326 sizeof_call_dummy_words to 0, set fix_call_dummy to
3327 generic_fix_call_dummy, set pc_in_call_dummy to
3328 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3329 generic_push_dummy_frame, set push_return_address to
3330 i386_push_return_address and set frame_chain_valid to
3331 generic_file_frame_chain_valid.
3333 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3335 * gdbarch.sh (struct regcache): Add opaque declaration.
3336 (EXTRACT_RETURN_VALUE): New architecture method.
3337 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3338 * gdbarch.h, gdbarch.c: Regenerate.
3339 * arch-utils.c (legacy_extract_return_value): New function.
3340 * arch-utils.h (legacy_extract_return_value): Declare.
3341 * values.c (value_being_returned): Re-enable code handling
3342 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3343 deprecated_grub_regcache_for_registers call to block handling
3344 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3345 (EXTRACT_RETURN_VALUE): Do not define.
3347 2002-07-03 Grace Sainsbury <graces@redhat.com>
3349 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3350 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3351 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3352 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3353 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3354 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3355 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3356 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3357 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3358 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3359 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3360 argument so the function fits the prototype in the architecture
3362 (mcore_pop_frame): Remove argument so the function fits the
3363 prototype. Use get_current_frame instead of the argument.
3364 (mcore_push_arguments): Change type of struct_return so the
3365 function can be used in the architecture vector.
3366 (mcore_store_struct_return): Add.
3367 (mcore_frame_init_saved_regs): Add.
3368 (mcore_gdbarch_init): Add function calls to replace the macros
3369 removed from tm-mcore.h
3371 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3373 * infcmd.c (print_return_value): Remove compatibility code calling
3374 deprecated_grub_regcache_for_registers.
3376 * values.c: Include "regcache.h".
3377 (value_being_returned): Update. Use
3378 deprecated_grub_regcache_for_registers to extract the register
3380 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3381 ``struct regcache''.
3382 * Makefile.in (values.o): Add dependency on $(regcache_h).
3384 * inferior.h (run_stack_dummy): Change type of second parameter to
3385 a ``struct regcache''.
3386 * valops.c (hand_function_call): Change type of retbuf to ``struct
3387 regcache''. Allocate using regcache_xmalloc, clean using
3388 make_cleanup_regcache_xfree.
3389 * infcmd.c (run_stack_dummy): Update. Use
3390 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3392 * regcache.c (do_regcache_xfree): New function.
3393 (make_cleanup_regcache_xfree): New function.
3394 * regcache.h (make_cleanup_regcache_xfree): Declare.
3396 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3398 * event-top.c (command_line_handler): Don't read past
3399 beginning of buffer.
3401 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3403 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3405 (varobj_create): Store frame_id for root.
3406 (varobj_gen_name): Use xasprintf.
3407 (varobj_update): Save and restore frame using get_frame_id() and
3409 (create_child): Use xasprintf.
3410 (new_root_variable): Initialize frame_id.
3411 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3412 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3413 to prevent memory leak.
3415 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3417 * valops.c (hand_function_call): Move declaration of retbuf to
3418 start of function, allocate using malloc, add a cleanup but before
3419 the inf_status cleanup, cleanup the buffer. Rename local variable
3420 old_chain to inf_status_cleanup.
3422 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3424 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3426 * cli/cli-decode.c (cmd_func_p): New function.
3427 (cmd_func): New function.
3429 * command.h: Add cmd_func() and cmd_func_p().
3431 2002-07-03 Grace Sainsbury <graces@redhat.com>
3433 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3434 (REGISTER_SIZE): Remove.
3435 (MAX_REGISTER_RAW_SIZE): Remove.
3436 (REGISTER_VIRTUAL_TYPE): Remove.
3437 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3438 (REGISTER_NAME): Remove.
3439 (USE_GENERIC_DUMMY_FRAMES): Remove.
3440 (CALL_DUMMY): Remove.
3441 (CALL_DUMMY_START_OFFSET): Remove.
3442 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3443 (CALL_DUMMY_LOCATION): Remove.
3444 (FIX_CALL_DUMMY): Remove.
3445 (CALL_DUMMY_ADDRESS): Remove.
3446 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3447 (SAVE_DUMMY_FRAME_TOS): Remove.
3448 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3449 (mcore_register_virtual_type): New function.
3450 (mcore_register_byte): New function.
3451 (mcore_register_size): New function.
3452 (mcore_register_name): New function.
3453 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3454 macros removed from tm-mcore.h.
3455 (mcore_dump_tdep): Add.
3456 (_initialize_mcore_tdep): Add gdbarch_register call.
3458 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3460 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3461 frameless_look_for_prologue, such that we actually call this
3464 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3466 * frame.h (frame_address_in_block): New function.
3468 * blockframe.c (frame_address_in_block): New function extracted
3469 from get_frame_block().
3470 (get_frame_block): Use frame_address_in_block().
3471 (block_innermost_frame): Use frame_address_in_block() to match
3472 the frame pc address against the block boundaries rather than
3473 the frame pc directly. This prevents a failure when a frame pc
3474 is actually a return-address pointing immediately after the end
3477 2002-07-02 Grace Sainsbury <graces@redhat.com>
3479 * MAINTAINERS: Add self under write after approval.
3481 2002-07-02 Grace Sainsbury <graces@redhat.com>
3483 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3484 used in architecture vector. The default is
3485 m68k_local_breakpoint_from_pc.
3486 (m68k_local_breakpoint_from_pc): Add.
3487 (enum): Add register numbers from tm-m68k.h.
3488 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3490 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3491 GDB_MULTI_ARCH_PARTIAL.
3492 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3493 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3495 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3496 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3497 to enum in m68k-tdep.c
3499 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3501 * solib-osf.c (open_map): Compute the list of shared libraries
3502 loaded by the inferior, rather than the list of libraries loaded
3503 by GDB itself. Otherwise, GDB ends up reading the symbols from
3504 the wrong shared libraries...
3506 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3508 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3509 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3511 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3513 (FRAMELESS_SIGNAL): Remove function.
3514 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3515 i386_linux_saved_pc_after_call): Removed.
3516 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3517 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3518 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3520 * i386-tdep.c (i386_frameless_signal_p): New function.
3521 (i386_frame_chain): Deal with frameless signals.
3522 (i386_sigtramp_saved_sp): New function.
3523 (i386_frame_saved_pc): Deal with frameless signals.
3524 (i386_saved_pc_after_call): Make sure the correct value is
3525 returned just after entry into a sigtramp.
3526 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3527 i386fbsd4_sc_sp_offset): New variables.
3528 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3529 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3530 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3531 similiar to what we already did for sc_pc_offset.
3532 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3535 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3537 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3539 * config/i386/tm-x86-64linux.h: New.
3540 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3542 * config/i386/nm-x86-64.h: Rename to ...
3543 * config/i386/nm-x86-64linux.h: ... this one.
3544 * config/i386/x86-64linux.mh: Reflect the above change.
3546 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3548 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3549 with sigcontext_addr. Add sc_sp_offset.
3550 (i386bsd_sigtramp_saved_pc): Remove prototype.
3551 (i386bsd_sicontext_addr): Add prototype.
3552 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3553 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3554 (i386_svr4_sigtramp_saved_pc): Removed.
3555 (i386_svr4_sigcontext_addr): New function.
3556 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3557 Initialize tdep->sigcontext_addr instead. Initialize
3558 tdep->sc_pc_offset and tdep->sc_sp_offset.
3559 (i386_gdbarch_init): Likewise.
3560 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3562 (i386bsd_sigtramp_saved_pc): Remove function.
3563 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3564 Initialize tdep->sigcontext_addr instead. Initialize
3566 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3567 of tdep->sigtramp_saved_pc.
3568 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3569 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3572 * i386-tdep.c (i386_frameless_function_invocation,
3573 i386_frame_num_args, i386_frame_init_saved_regs,
3574 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3575 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3576 i386_extract_return_value, i386_store_return_value,
3577 i386_extract_struct_value_address, i386_register_virtual_type,
3578 i386_register_convertible, i386_register_convert_to_virtual,
3579 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3580 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3583 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3585 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3587 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3588 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3589 this macro. Include "value.h".
3591 2002-06-30 Aidan Skinner <aidan@velvet.net>
3593 * ada-exp.tab.c: remove as it's a generated file
3594 * ada-lex.c: remove as it's a generated file
3596 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3598 * config/i386/tm-i386.h (struct frame_info, struct
3599 frame_saved_regs, struct value, struct type): Remove forward
3602 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3603 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3604 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3605 (FILL_FPXREGSET): Define.
3607 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3609 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3610 i[3456]86-*-netbsd* case.
3611 * config/i386/tm-obsd.h: Removed.
3612 * config/i386/obsd.mt: Removed.
3613 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3615 (MH_CFLAGS): Add -DYYDEBUG=0.
3617 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3618 i386nbsd_sc_pc_offset on OpenBSD too.
3620 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3621 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3622 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3624 * i386bsd-tdep.c: Include "arch-utils.h".
3625 (i386bsd_aout_in_solib_call_trampoline): New function.
3626 (i386bsd_init_abi): Set in_solib_call_trampoline to
3627 i386bsd_aout_in_solib_call_trampoline.
3628 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3629 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3631 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3633 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3634 (struct obstack, struct bcache): Add opaque declarations.
3635 * Makefile.in (macrotab_h): Update
3637 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3639 * blockframe.c (generic_find_dummy_frame): Change return type to
3640 ``struct regcache''.
3641 (struct dummy_frame): Replace field ``registers'' with regcache, a
3642 struct regcache object.
3643 (generic_find_dummy_frame): Update.
3644 (generic_push_dummy_frame): Update. Use regcache_xfree,
3645 regcache_xmalloc and regcache_cpy.
3646 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3648 (deprecated_generic_find_dummy_frame): Update.
3649 (generic_read_register_dummy): Update. Use
3650 regcache_read_as_address.
3651 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3652 (generic_get_saved_register): Update. Use regcache_read.
3654 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3656 * Makefile.in (objfiles_h): Add $(bcache_h).
3657 * objfiles.h: Include "bcache.h".
3659 * Makefile.in (symtab_h): Remove $(bcache_h).
3660 * symtab.h: Do not include "bcache.h".
3662 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3664 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3665 generic_func_frame_chain_valid.
3667 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3669 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3670 * config/i386/tm-fbsd.h: Likewise.
3672 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3674 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3675 generic_unwind_get_saved_register.
3677 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3679 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3680 * regcache.c (supply_register): Add missing argument to
3681 register_buffer call.
3683 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3685 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3686 Solaris /bin/grep does not not like it. From Peter Schauer.
3688 2002-06-26 Tom Tromey <tromey@redhat.com>
3690 * command.h (add_setshow_cmd): Declare.
3691 (add_setshow_cmd_full): Declare.
3692 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3693 returns void. Use add_setshow_cmd_full.
3694 (add_setshow_cmd_full): New function.
3695 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3696 (add_setshow_boolean_cmd): Likewise.
3698 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3700 * config/vax/tm-vax.h: Protect from multiple inclusion.
3701 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3702 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3703 * config/vax/tm-vaxbsd.h: ...here. New file.
3704 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3706 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3708 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3709 (BELIEVE_PCC_PROMOTION): Remove.
3710 (AP_REGNUM): Move to...
3711 * config/vax/nm-vax.h: ...here.
3712 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3713 (vax_breakpoint_from_pc): New function.
3714 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3715 and gdbarch_believe_pcc_promotion.
3717 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3719 * Makefile.in (vax_tdep_h): Define.
3720 (vax-tdep.o): Use $(vax_tdep_h).
3721 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3722 (vax_dump_tdep): New function.
3723 (_initialize_vax_tdep): Register vax_dump_tdep.
3724 * vax-tdep.h: Include osabi.h.
3725 (struct gdbarch_tdep): New.
3727 2002-06-26 Andrew Cagney <cagney@redhat.com>
3729 * frame.h (deprecated_generic_find_dummy_frame): Rename
3730 generic_find_dummy_frame.
3731 * blockframe.c (generic_find_dummy_frame): Make static.
3732 (deprecated_generic_find_dummy_frame): New function.
3733 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3734 generic_find_dummy_frame with deprecated_find_dummy_frame.
3735 (sh64_nofp_frame_init_saved_regs): Ditto.
3736 (sh_fp_frame_init_saved_regs): Ditto.
3737 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3738 (s390_frame_chain): Ditto.
3739 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3741 2002-06-26 Grace Sainsbury <graces@redhat.com>
3743 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3744 gdbarch vector are at the top.
3746 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3747 (FRAME_ARGS_ADDRESS): Remove.
3748 (FRAME_LOCALS_ADDRESS): Remove.
3749 (FRAME_NUM_ARGS): Remove.
3750 (FRAME_ARGS_SKIP): Remove.
3751 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3752 (m68k_gdbarch_init): Add gdbarch initializations for macros
3753 undefined in tm-m68k.h
3755 2002-06-26 Grace Sainsbury <graces@redhat.com>
3757 * monitor.h: Add the function regname to monitor_ops
3758 structure. This way NUM_REGS does not have to be a constant.
3759 * monitor.c (monitor_fetch_register): Added support for regname
3760 function. The function is called if the array regnames is NULL.
3761 (monitor_store_register): Same.
3762 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3764 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3765 cpu32bug_cmds.regname to point to new function.
3766 * abug-rom.c (abug_regname): Same as above.
3767 (init_abug_cmds): Same.
3768 * dbug-rom.c (dbug_regname): Same as above.
3769 (init_dbug_cmds): Same.
3770 * remote-est.c (est_regname): Same.
3771 (init_est_cmds): Same.
3772 * rom68k-rom.c (rom68k_regname): Same.
3773 (init_rom68k_cmds): Same.
3775 2002-06-25 Tom Tromey <tromey@redhat.com>
3777 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3779 2002-06-25 Andrew Cagney <cagney@redhat.com>
3781 * infrun.c (stop_registers): Change variable's type to ``struct
3783 (xmalloc_inferior_status): Delete function.
3784 (free_inferior_status): Delete function.
3785 (normal_stop): Use regcache_cpy.
3786 (struct inferior_status): Change type of fields ``stop_registers''
3787 and ``registers'' to ``struct regcache''.
3788 (write_inferior_status_register): Use regcache_write.
3789 (save_inferior_status): Instead of calling
3790 xmalloc_inferior_status, allocate the inf_status buffer directly.
3791 Use regcache_dup_no_passthrough and regcache_dup to save the
3793 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3794 Replace the stop_registers regcache instead of overriding it. Use
3795 regcache_xfree. Instead of calling free_inferior_status, xfree
3796 the buffer directly.
3797 (discard_inferior_status): Use regcache_xfree. Instead of calling
3798 free_inferior_status, xfree the buffer directly.
3799 (build_infrun): Use regcache_xmalloc.
3800 (_initialize_infrun): Delete redundant call to build_infrun.
3802 * Makefile.in (infcmd.o): Add $(regcache_h).
3804 * infcmd.c: Include "regcache.h".
3805 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3806 obtain the address of `stop_registers' register buffer.
3807 (print_return_value): Ditto.
3809 * inferior.h (struct regcache): Add opaque declaration.
3810 (stop_registers): Change variable's declared type to ``struct
3813 2002-06-24 Tom Tromey <tromey@redhat.com>
3815 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3816 * target.c (initialize_targets): Fixed typo in
3817 trust-readonly-sections `show' documentation.
3819 * main.c: Marked all strings with _().
3821 2002-06-24 Don Howard <dhoward@redhat.com>
3823 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3824 that means max CORE_ADDR+1.
3825 (lookup_mem_region): Ditto.
3826 (mem_info_command): Ditto.
3828 2002-06-24 Grace Sainsbury <graces@redhat.com>
3830 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3831 (REGISTER_BYTES_OK): Remove.
3832 (REGISTER_BYTES): Remove.
3833 (STORE_STRUCT_RETURN): Remove.
3834 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3835 (STORE_RETURN_VALUE): Remove.
3836 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3837 (FRAME_CHAIN): Remove.
3838 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3839 (FRAME_SAVED_PC): Remove.
3840 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3841 (m68k_store_struct_return): Add.
3842 (m68k_deprecated_extract_return_value): Add.
3843 (m68k_deprecated_extract_struct_value_address): Add.
3844 (m68k_store_return_value): Add.
3845 (m68k_frame_chain): Add.
3846 (m68k_frameless_function_invocation): Add.
3847 (m68k_frame_saved_pc): Add.
3848 (m68k_gdbarch_init): added set_gdbarch calls for new
3849 functions and deleted macros.
3851 2002-06-23 Tom Tromey <tromey@redhat.com>
3853 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3854 (ALLDEPFILES): Likewise.
3855 (udiheaders): Removed.
3856 (udip2soc.o): Likewise.
3857 (udi2go32.o): Likewise.
3859 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3861 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3863 * infrun.c (_initialize_infrun): Delete unnecessary call to
3866 * regcache.h: Update comments describing the regcache_cpy family
3868 (regcache_save, regcache_restore): Delete declaration.
3869 (regcache_save_no_passthrough): Delete declaration.
3870 (regcache_restore_no_passthrough): Delete declaration.
3871 * regcache.c (regcache_save): Delete function.
3872 (regcache_save_no_passthrough): Delete function.
3873 (regcache_restore): Delete function.
3874 (regcache_restore_no_passthrough): Delete function.
3876 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3878 * config/m68k/tm-m68k.h: Fix typo.
3879 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3880 (m68k_frame_init_saved_regs): Declare.
3882 2002-06-21 Jim Blandy <jimb@redhat.com>
3884 Remove some vestiges of Harris 88k support.
3885 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3886 register numbering quirk.
3887 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3888 odd symbols occurring in Harris 88k ELF targets.
3890 2002-06-21 Tom Tromey <tromey@redhat.com>
3892 * gdb_locale.h: New file.
3893 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3894 (defs_h): Added gdb_locale.h.
3895 * configure, config.in: Rebuilt.
3896 * configure.in (PACKAGE): Define.
3897 * defs.h: Include gdb_locale.h.
3898 * main.c (captured_main): Call setlocale, bindtextdomain,
3901 2002-06-21 Dave Brolley <brolley@redhat.com>
3903 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3904 * config/frv/frv.mt: New file.
3905 * config/frv/tm-frv.h: New file.
3906 * configure.tgt: Support frv-*-*.
3907 * Makefile.in (frv-tdep.o): New target.
3908 * frv-tdep.c: New file.
3909 * NEWS: Mention frv.
3911 2002-06-21 Dave Brolley <brolley@redhat.com>
3913 * MAINTAINERS: Add self to "Write After Approval" list.
3915 2002-06-21 Grace Sainsbury <graces@redhat.com>
3917 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3918 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3919 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3920 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3921 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3923 * m68k-tdep.c: Include arch-utils.h
3924 (m68k_register_raw_size): Add.
3925 (m68k_register_virtual_size): Add.
3926 (m68k_register_virtual_type): Add.
3927 (m68k_register_name): Add.
3928 (m68k_stack_align): Add.
3929 (m68k_register_byte): Add.
3930 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3933 2002-06-21 Grace Sainsbury <graces@redhat.com>
3935 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3936 m68k_find_saved_regs.
3937 (m68k_pop_frame): Removed saved_regs structure, and replaced
3938 references to it with frame->saved_regs.
3939 (m68k_gdbarch_init): Added function calls to initialize the
3941 (m68k_fix_call_dummy): Add.
3942 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3943 (CALL_DUMMY): Remove.
3944 (CALL_DUMMY_LENGTH): Remove.
3945 (CALL_DUMMY_START_OFFSET): Remove.
3946 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3947 (FIX_CALL_DUMMY): Remove.
3948 (PUSH_DUMMY_FRAME): Remove.
3949 (POP_FRAME): Remove.
3951 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3953 * parse.c (parse_fprintf): New function used to avoid calls to
3954 fprintf in bison parser generated debug code.
3955 * parser-defs.h: Declaration of new parse_fprintf function.
3956 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3957 Set YYDEBUG to 1 by default.
3958 Set YYFPRINTF as parse_fprintf.
3960 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3962 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3964 (pointer_encoding, enum ptr_encoding): New.
3965 (execute_cfa_program): Take care about pointer encoding.
3966 (dwarf2_build_frame_info): Only call parse_frame_info for
3967 .debug_frame and .eh_frame.
3968 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3969 fixed augmentation handling, added relative addressing,
3970 ignore duplicate FDEs. Added comments.
3971 * dwarf2cfi.c: Reindented.
3973 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3975 * event-top.c (command_handler): Don't use space_at_cmd_start
3976 unless there is sbrk() on the host. Assign time and space data
3977 to union fields of the appropriate length.
3979 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3981 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3982 x86_64_register_name. Return type changed to 'const char *'.
3983 (x86_64_register_name2nr): Rename to x86_64_register_number.
3984 (x86_64_gdbarch_init): Update to reflect the change.
3985 * x86-64-tdep.h: Ditto.
3986 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3987 (supply_fpregset): Ditto.
3989 2002-06-19 Andrew Cagney <cagney@redhat.com>
3991 * regcache.h: Update copyright.
3992 (struct regcache, struct gdbarch): Add opaque declarations.
3993 (current_regcache): Declare global variable.
3994 (regcache_read, regcache_write): Add gdbarch parameter.
3995 (regcache_save, regcache_save_no_passthrough)
3996 (regcache_restore, regcache_restore_no_passthrough)
3997 (regcache_dup, regcache_dup_no_passthrough)
3998 (regcache_cpy, regcache_cpy_no_passthrough)
3999 (deprecated_grub_regcache_for_registers)
4000 (deprecated_grub_regcache_for_register_valid)
4001 (regcache_valid_p): Add function declarations.
4003 * regcache.c: Update copyright.
4004 (regcache_descr_handle): New global variable.
4005 (struct regcache_descr): Define.
4006 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4007 (regcache_descr, xfree_regcache_descr): New functions.
4008 (struct regcache): Define.
4009 (regcache_xmalloc, regcache_xfree): New functions.
4010 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4011 (regcache_dup, regcache_dup_no_passthrough): New functions.
4012 (regcache_valid_p, regcache_read_as_address): New functions.
4013 (deprecated_grub_regcache_for_registers): New function.
4014 (deprecated_grub_regcache_for_register_valid): New function.
4015 (current_regcache): New global variable.
4016 (register_buffer): Add regcache parameter. Update calls.
4017 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4018 (read_register_gen, write_register_gen): Update register_buffer
4019 call. Test for legacy_p instead of gdbarch_register_read_p or
4020 gdbarch_register_write_p.
4021 (regcache_collect): Update register_buffer call.
4022 (build_regcache): Rewrite. Use deprecated grub functions.
4023 (regcache_save, regcache_save_no_passthrough): New functions.
4024 (regcache_restore, regcache_restore_no_passthrough): New
4026 (_initialize_regcache): Create the regcache_data_handle. Swap
4027 current_regcache global variable.
4029 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4030 parameter to regcache_read and regcache_write calls.
4031 (sh4_register_read): Ditto.
4032 (sh64_pseudo_register_read): Ditto.
4033 (sh64_register_read): Ditto.
4034 (sh_pseudo_register_write): Ditto.
4035 (sh4_register_write): Ditto.
4036 (sh64_pseudo_register_write): Ditto.
4037 (sh64_register_write): Ditto.
4039 * defs.h (XCALLOC): Define.
4041 2002-06-19 Grace Sainsbury <graces@redhat.com>
4043 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4044 * m68k-tdep.c (m68k_gdbarch_init): Added.
4045 (m68k_dump_tdep): Added.
4047 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4049 * ada-lang.c (fill_in_ada_prototype): Update comment.
4051 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4053 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4055 (mips_abi_string, mips_abi_strings): New.
4056 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4057 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4058 tdep->mips_abi_string. Honor mips_abi_string. Default to
4059 O32 if no ABI is found.
4060 (mips_dump_tdep): Use mips_abi_strings.
4061 (mips_abi_update): New function.
4062 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4063 ``set mips abi'' and ``show mips abi''. Check the size of
4066 2002-06-19 Andrew Cagney <cagney@redhat.com>
4068 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4071 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4073 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4074 current frame using only the first stack size adjustment. All
4075 subsequent size adjustments are not considered to be part of
4076 the "static" part of the current frame.
4077 Compute the address of the saved registers relative to the
4078 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4079 in use in this frame.
4081 2002-06-18 Don Howard <dhoward@redhat.com>
4083 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4084 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4085 suggesting this solution.
4087 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4089 * config/romp/xm-rtbsd.h: Delete file.
4090 * config/romp/rtbsd.mh: Delete file.
4092 2002-06-18 Keith Seitz <keiths@redhat.com>
4094 * breakpoint.c (condition_command): Post breakpoint_modify
4095 when a condition is added to an existing breakpoint.
4096 (commands_command): Likewise for commands.
4097 (set_ignore_count): Likewise for ignore counts.
4098 If no tty, do not simply return, still need to send event
4100 (ignore_command): Only print a newline if the command came
4102 Don't call breakpoints_changed, since this is now properly
4103 handled by set_ignore_count.
4105 2002-06-18 Andrew Cagney <cagney@redhat.com>
4107 * MAINTAINERS: Note that cris-elf target can be compiled with
4109 * cris-tdep.c (cris_register_name): Make return type constant.
4110 (cris_breakpoint_from_pc): Ditto.
4112 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4114 * frame.h (struct frame_info): Change type of context to
4117 2002-06-17 Andrew Cagney <cagney@redhat.com>
4119 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4121 * gdbarch.h, gdbarch.c: Regenerate.
4122 * config/mips/tm-mips.h (mips_register_name): Update.
4123 * i386-tdep.h (i386_register_name): Update.
4124 * mips-tdep.c (mips_register_name): Update
4125 * alpha-tdep.c (alpha_register_name): Update.
4126 * arch-utils.c (legacy_register_name): Update.
4127 * arch-utils.h (legacy_register_name): Update.
4128 * avr-tdep.c (avr_register_name): Update.
4129 * ia64-tdep.c (ia64_register_name): Update.
4130 * i386-tdep.c (i386_register_name): Update.
4131 * sparc-tdep.c (sparc32_register_name): Update.
4132 (sparc64_register_name): Update.
4133 (sparclite_register_name): Update.
4134 (sparclet_register_name): Update.
4135 * sh-tdep.c (sh_generic_register_name): Update.
4136 (sh_sh_register_name): Update.
4137 (sh_sh3_register_name): Update.
4138 (sh_sh3e_register_name): Update.
4139 (sh_sh_dsp_register_name): Update.
4140 (sh_sh3_dsp_register_name): Update.
4141 (sh_sh4_register_name): Update.
4142 (sh_sh64_register_name): Update.
4143 * s390-tdep.c (s390_register_name): Update.
4144 * rs6000-tdep.c (rs6000_register_name): Update.
4145 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4146 (ns32k_register_name_32382): Update.
4147 * d10v-tdep.c (d10v_ts2_register_name): Update.
4148 (d10v_ts3_register_name): Update.
4149 * xstormy16-tdep.c (xstormy16_register_name): Update.
4150 * vax-tdep.c (vax_register_name): Update.
4151 * v850-tdep.c (v850_register_name): Update.
4152 * m68hc11-tdep.c (m68hc11_register_name): Update.
4153 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4154 (am33_register_name): Update.
4156 2002-06-17 Grace Sainsbury <graces@redhat.com>
4158 * m68k-tdep.c: Reindented.
4160 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4162 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4163 list of predefined types.
4165 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4167 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4168 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4169 REGISTER_CONVERT_TO_RAW): Remove defines.
4170 (i386_register_virtual_type, i386_register_convertible,
4171 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4173 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4174 macros mentioned above.
4176 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4177 (i386lynx_saved_pc_after_call): Remove prototype.
4178 * i386ly-tdep.c: Include "i386-tdep.h".
4179 (i386lynx_saved_pc_after_call): Make static. Use
4180 read_memory_nobpt instead of read_memory. Use
4181 read_memory_unsigned_integer instead of read_memory_integer.
4182 (i386lynx_init_abi): New function.
4183 (i386lynx_coff_osabi_sniffer): New function.
4184 (_initialize_i386bsd_tdep): New function.
4186 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4187 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4188 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4189 (i386_fix_call_dummy): Remove prototype.
4190 * i386-tdep.c (i386_call_dummy_words): New variable.
4191 (i386_gdbarch_init): Adjust for removal of the
4192 macros mentioned above.
4194 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4196 * command.h (add_setshow_auto_boolean_cmd): Replace
4197 add_set_auto_boolean_cmd.
4198 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4199 add_set_auto_boolean_cmd.
4200 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4201 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4202 mask-address'' command.
4203 (show_mask_address): Add cmd parameter.
4204 * remote.c (add_packet_config_cmd): Update. Change type of
4205 set_func and show_func to cmd_sfunc_ftype.
4206 (_initialize_remote): Update `set remote Z-packet'
4207 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4208 (show_remote_protocol_e_packet_cmd): Ditto.
4209 (show_remote_protocol_E_packet_cmd): Ditto.
4210 (show_remote_protocol_P_packet_cmd): Ditto.
4211 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4212 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4213 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4214 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4215 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4216 (show_remote_protocol_Z_packet_cmd): Ditto.
4217 (show_remote_protocol_binary_download_cmd): Ditto.
4218 (show_remote_cmd): Pass NULL to all of above.
4220 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4222 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4223 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4224 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4225 POP_FRAME): Remove defines.
4226 (i386_push_arguments, i386_store_struct_return,
4227 i386_extract_return_value, i386_store_return_value,
4228 i386_extract_struct_value_address, i386_push_dummy_frame,
4229 i386_pop_frame): Renove prototypes.
4230 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4231 macros mentioned above.
4233 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4235 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4236 add_set_boolean_cmd.
4237 (add_setshow_cmd): New function.
4238 * command.h (add_setshow_boolean_cmd): Replace
4239 add_set_boolean_cmd.
4240 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4241 and ``set rdiromatzero''.
4242 * maint.c (_initialize_maint_cmds): Update commented out code.
4243 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4244 * target.c (initialize_targets): Update `set
4245 trust-readonly-sections'.
4246 * remote.c (_initialize_remote): Update `set remotebreak'.
4248 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4250 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4251 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4252 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4253 fit into multi-arch framework.
4254 (i386_breakpoint_from_pc): New function.
4255 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4258 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4259 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4260 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4261 (i386_frameless_function_invocation, i386_frame_num_args,
4262 i386_frame_init_saved_regs): Remove prototypes.
4263 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4264 macros mentioned above.
4266 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4268 * cli/cli-decode.c (set_cmd_cfunc): Update.
4269 (set_cmd_sfunc): Update.
4270 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4271 (set_cmd_sfunc, set_cmd_cfunc): Update.
4272 * cli/cli-decode.h: Update.
4274 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4276 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4277 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4279 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4281 * defs.h (auto_boolean): Declare enum.
4282 * command.h (cmd_auto_boolean): Delete enum.
4283 * mips-tdep.c (mask_address_var): Update.
4284 (mips_mask_address_p): Update.
4285 (show_mask_address): Update.
4286 * remote.c (struct packet_config): Update.
4287 (update_packet_config): Update.
4288 (show_packet_config_cmd): Update.
4289 (packet_ok): Update.
4290 (add_packet_config_cmd): Update.
4291 (_initialize_remote):
4292 * command.h: Update.
4293 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4294 (do_setshow_command): Update.
4295 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4296 * cli/cli-decode.h: Update.
4298 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4300 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4301 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4302 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4303 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4304 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4305 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4307 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4308 list of DJGPP COFF targets.
4310 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4311 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4312 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4313 (FP0_REGNUM): Remove define.
4314 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4315 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4316 (i386_register_virtual_size): Remove protoype.
4317 * i386-tdep.c (i386_register_virtual_size): Removed.
4318 (i386_extract_return_value, i386_store_return_value): Use
4319 FP0_REGNUM instead of NUM_FREGS to determine whether the
4320 floating-point registers are available.
4321 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4322 Adjust for removal of macros mentioned above.
4324 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4326 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4328 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4330 (supply_gregset, fill_gregset): Remove use of register keyword and
4331 remove declaration for regmap. Use I386_NUM_GREGS instead of
4332 NUM_REGS and NUM_FREGS.
4333 (FPREGSET_FSAVE_OFFSET): Remove.
4334 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4335 NUM_FREGS to determine whether the floating-point registers are
4338 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4339 gnu_store_registers): Replace usage of NUM_GREGS with
4342 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4343 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4344 usage of NUM_GREGS with I386_NUM_GREGS.
4346 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4348 * i386bsd-nat.c: Include "i386-tdep.h".
4349 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4352 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4353 and associated comment. They no longer make any sense, since we
4354 don't use this file anymore on Linux.
4356 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4357 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4358 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4359 elements in these arrays.
4360 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4363 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4365 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4366 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4368 2002-06-14 Andrew Cagney <cagney@redhat.com>
4370 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4371 EXTRACT_RETURN_VALUE.
4372 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4373 EXTRACT_STRUCT_VALUE_ADDRESS.
4374 * gdbarch.h, gdbarch.c: Regenerate.
4376 * values.c (value_being_returned): Handle
4377 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4378 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4380 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4381 * arm-tdep.c (arm_gdbarch_init): Update.
4382 * avr-tdep.c (avr_gdbarch_init): Update.
4383 * cris-tdep.c (cris_gdbarch_init): Update.
4384 * d10v-tdep.c (d10v_gdbarch_init): Update.
4385 * ia64-tdep.c (ia64_gdbarch_init): Update.
4386 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4387 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4388 * s390-tdep.c (s390_gdbarch_init): Update.
4389 * sh-tdep.c (sh_gdbarch_init): Update.
4390 * s390-tdep.c (s390_gdbarch_init): Update.
4391 * sparc-tdep.c (sparc_gdbarch_init): Update.
4392 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4393 * v850-tdep.c (v850_gdbarch_init): Update.
4394 * vax-tdep.c (vax_gdbarch_init): Update.
4395 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4398 * config/arc/tm-arc.h: Update.
4399 * config/d30v/tm-d30v.h: Update.
4400 * config/fr30/tm-fr30.h: Update.
4401 * config/h8300/tm-h8300.h: Update.
4402 * config/h8500/tm-h8500.h: Update.
4403 * config/i386/tm-i386.h: Update.
4404 * config/i386/tm-ptx.h: Update.
4405 * config/i386/tm-symmetry.h: Update.
4406 * config/i960/tm-i960.h: Update.
4407 * config/m32r/tm-m32r.h: Update.
4408 * config/m68k/tm-delta68.h: Update.
4409 * config/m68k/tm-linux.h: Update.
4410 * config/m68k/tm-m68k.h: Update.
4411 * config/m88k/tm-m88k.h: Update.
4412 * config/mcore/tm-mcore.h: Update.
4413 * config/mips/tm-mips.h: Update.
4414 * config/mn10200/tm-mn10200.h: Update.
4415 * config/pa/tm-hppa.h: Update.
4416 * config/pa/tm-hppa64.h: Update.
4417 * config/sparc/tm-sp64.h: Update.
4418 * config/sparc/tm-sparc.h: Update.
4419 * config/sparc/tm-sparclet.h: Update.
4420 * config/z8k/tm-z8k.h: Update.
4422 2002-06-14 Andrew Cagney <cagney@redhat.com>
4424 * Makefile.in (i386_linux_tdep_h): Define.
4425 (i386_tdep_h, i387_tdep_h): Define.
4426 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4427 $(i386_tdep_h) and $(i387_tdep_h).
4428 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4430 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4432 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4433 Already covered by the default.
4435 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4436 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4437 (i386_gdbarch_init): Initialize long_double_format and long_double
4440 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4441 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4443 * config/i386/i386sol2.mh: ... here.
4444 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4445 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4446 (SIGCONTEXT_PC_OFFSET): Remove define.
4447 (IN_SIGTRAMP): Remove define.
4448 * i386-sol2-tdep.c: New file.
4450 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4451 * config/i386/tm-i386nw.h: Removed.
4453 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4454 USE_STRUCT_CONVENTION): Remove defines.
4455 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4456 (get_longjmp_target): Remove prototype.
4457 (IN_SIGTRAMP): Remove define.
4458 (i386bsd_in_sigtramp): Remove prototype.
4459 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4460 function. Update comment accordingly
4461 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4462 (FRAME_SAVED_PC): Remove define.
4463 (i386bsd_frame_saved_pc): Remove prototype.
4464 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4465 GET_LONGJMP_TARGET): Remove defines.
4466 (get_longjmp_target): Remove prototype.
4467 (IN_SIGTRAMP): Remove define.
4468 (i386bsd_in_sigtramp): Remove prototype.
4469 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4470 function. Update comment accordingly
4471 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4472 (FRAME_SAVED_PC): Remove define.
4473 (i386bsd_frame_saved_pc): Remove prototype.
4474 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4476 (USE_STRUCT_CONVENTION): Remove prototype.
4477 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4479 (_initialize_i386bsd_nat): Revise logic to determine some
4480 constants at compile time when compiling a native GDB. Warn if
4481 things don't match up with what we expect.
4482 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4484 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4485 to use date stored in `struct gdbarch_tdep'.
4486 (i386bsd_sigcontext_offset): Remove varaible.
4487 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4488 stored in `struct gdbarch_tdep'.
4489 (i386bsd_frame_saved_pc): Make static.
4490 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4491 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4492 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4493 i386fbsd4_sc_pc_offset): New variables.
4494 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4495 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4497 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4499 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4500 Modify the value of i386fbsd_sigtramp_start and
4501 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4502 i386fbsd_sigtramp_end.
4503 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4506 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4507 define to i386-linux-tdep.h.
4508 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4509 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4511 (i386_linux_register_name, i386_linux_register_byte,
4512 i386_linux_register_raw_size): Remove prototypes.
4513 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4514 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4515 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4516 TARGET_WRITE_PC): Remove defines.
4517 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4518 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4519 i386_linux_write_pc): Remove prototypes.
4520 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4521 (get_longjmp_target): Remove prototype.
4522 * i386-linux-tdep.h: New file.
4523 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4524 * i386-linux-tdep.c: Include "i386-tdep.h" and
4525 "i386-linux-tdep.h".
4526 (i386_linux_register_name, i386_linux_register_byte,
4527 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4528 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4530 (i386_linux_init_abi): New function.
4531 (_initialize_i386_linux_tdep): New function.
4533 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4534 (i386_saved_pc_after_call): Remove prototype.
4535 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4536 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4537 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4538 (i386_register_name, i386_stab_reg_to_regnum,
4539 i386_dwarf_reg_to_regnum): Remove prototypes.
4540 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4541 SIZEOF_SSE_REGS): Remove defines.
4542 (REGISTER_BYTES): Remove define.
4543 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4544 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4545 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4546 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4547 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4548 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4549 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4550 (get_longjmp_target): Remove prototype.
4551 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4552 (sigtramp_saved_pc): Remove define.
4553 (i386v4_sigtramp_saved_pc): Remove prototype.
4554 * config/i386/tm-go32.h (FRAME_CHAIN,
4555 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4556 (i386go32_frame_saved_pc): Remove prototype.
4557 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4558 (get_longjmp_target): Remove prototype.
4559 * i386-tdep.h: Include "osabi.h".
4560 (enum i386_abi): Removed.
4561 (enum struct_return): New enum.
4562 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4563 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4564 sc_pc_offset members.
4565 (i386_gdbarch_register_os_abi): Remove prototype.
4566 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4567 I386_SSE_NUM_REGS): New defines.
4568 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4569 I386_SSE_SIZEOF_REGS): New defines.
4570 (i386_register_name, i386_register_byte, i386_register_raw_size):
4572 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4573 (i386bsd_sigtramp_saved_pc): New prototype.
4574 * i386-tdep.c: Don't include "elf-bfd.h".
4575 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4576 i386_frame_chain, i386_saved_pc_after_call): Make static.
4577 (i386_frame_saved_pc): Rewrite to call architecture dependent
4578 function to deal with signal handlers. Make static.
4579 (i386go32_frame_saved_pc): Removed.
4580 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4582 (i386_get_longjmp_target): New function.
4583 (default_struct_convention, pcc_struct_convention,
4584 reg_struct_convention, valid_conventions, struct_convention): New
4586 (i386_use_struct_convention): New function.
4587 (i386v4_sigtramp_saved_pc): Renamed to
4588 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4589 (i386_pc_in_sigtramp): New function.
4590 (i386_abi_names): Removed.
4591 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4592 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4594 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4595 i386_gdbarch_register_os_abi): Removed.
4596 (struct i386_abi_handler): Removed.
4597 (i386_abi_handler_list): Removed.
4598 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4600 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4601 i386_nw_init_abi): New functions.
4602 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4603 Use set_gdbarch_xxx() calls instead of relying on macros for a
4605 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4606 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4607 Register the various architecture variants defined in this file.
4609 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4611 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4612 (struct main_type): Remove arg_types member. Update comments for
4614 (TYPE_ARG_TYPES): Remove.
4615 (TYPE_FN_FIELD_ARGS): Update.
4616 (smash_to_method_type): Update prototype.
4618 * c-typeprint.c (cp_type_print_method_args): Take method type
4619 instead of argument list. Use new argument layout. Simplify.
4620 (c_type_print_args): Use new argument layout. Simplify.
4621 (c_type_print_base): Update call to cp_type_print_method_args.
4622 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4623 argument; use die->type instead. Update call to
4624 smash_to_method_type.
4625 (read_structure_scope): Update call to dwarf2_add_member_fn.
4626 * gdbtypes.c (allocate_stub_method): Update comment.
4627 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4628 Use new argument layout.
4629 (check_stub_method): Use new argument layout. Don't count
4630 void as an argument.
4631 (print_arg_types): Update comments. Use new argument layout.
4632 (recursive_dump_type): Don't print arg_types member.
4633 * hpread.c (hpread_read_struct_type): Use new argument layout.
4634 (fixup_class_method_type): Likewise.
4635 (hpread_type_lookup): Likewise.
4636 * stabsread.c (read_type): Update calls to read_args and
4637 smash_to_method_type.
4638 (read_args): Use new argument layout. Simplify.
4639 * valops.c (typecmp): Use new argument layout. Update parameters
4640 and comments. Simplify.
4641 (hand_function_call): Use new argument layout.
4642 (search_struct_method): Update call to typecmp.
4643 (find_overload_match): Use new argument layout.
4645 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4647 * NEWS: Mention multithreaded debug support for gdbserver.
4649 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4651 * MAINTAINERS: Mention NEWS.
4653 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4655 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4656 (struct mips_objfile_private, compare_pdr_entries): New.
4657 (non_heuristic_proc_desc): Read the ".pdr" section if it
4660 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4662 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4663 (arm_debug): New static variable.
4664 (_initialize_arm_tdep): Add ``set debug arm'' command.
4666 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4668 * Makefile.in (sim_arm_h): Define.
4669 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4670 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4671 (arm_register_sim_regno): New function, map an internal REGNUM
4672 onto a simulator register number.
4673 (arm_gdbarch_init): Set register_sim_regno.
4675 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4677 * MAINTAINERS: Add self.
4679 2002-06-11 Jim Blandy <jimb@redhat.com>
4681 * source.c (source_info): Mention whether the symtab has
4682 information about preprocessor macros.
4684 Call the command `info macro', not `show macro'.
4685 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4687 (_initialize_macrocmd): Register `info_macro_command' in
4688 `infolist', not `showlist'.
4690 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4692 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4693 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4694 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4695 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4696 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4698 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4699 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4700 (_initialize_mips_tdep): Remove dead code.
4701 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4702 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4703 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4704 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4705 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4706 MIPS_LAST_FP_ARG_REGNUM): Remove.
4708 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4710 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4711 (unwind_tmp_obstack_free, parse_frame_info)
4712 (update_context, cfi_read_fp, cfi_write_fp)
4713 (cfi_frame_chain, cfi_init_extra_frame_info)
4714 (cfi_virtual_frame_pointer): Use the above function.
4715 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4717 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4719 * v850-tdep.c (v850_type_is_scalar): New function.
4720 (v850_use_struct_convention): Match current gcc implementation
4721 as close as possible.
4722 (v850_push_arguments): Fix stack_offset handling. Don't write
4723 struct_addr into register. This is done by v850_store_struct_return.
4724 (v850_extract_return_value): Care for structs.
4725 (v850_store_return_value): Ditto.
4726 (v850_store_struct_return): Actually write address.
4728 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4730 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4731 without debug information too.
4733 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4735 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4736 Make multi-arch pure.
4737 * gdbarch.h, gdbarch.c: Re-generate.
4738 * arm-tdep.c (arm_print_float_info): Update.
4739 * arch-utils.h (default_print_float_info): Update.
4740 * arch-utils.c (default_print_float_info): Update.
4741 * infcmd.c (float_info): Update call.
4743 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4745 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4746 the front of the initialize list.
4748 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4750 * infrun.c (struct inferior_status): Replace fields
4751 selected_frame_address and selected_level with field
4753 (save_inferior_status): Update. Use get_frame_id.
4754 (struct restore_selected_frame_args): Delete.
4755 (restore_selected_frame): Update. Use frame_find_by_id.
4756 (restore_inferior_status): Update.
4758 * breakpoint.h (struct breakpoint): Change type of
4759 watchpoint_frame to frame_id.
4760 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4761 call to get_current_frame.
4762 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4764 (watchpoint_check): Use frame_find_by_id.
4766 * frame.h (record_selected_frame): Delete declaration.
4767 * stack.c (record_selected_frame): Delete function.
4769 * frame.h (struct frame_id): Define.
4770 (get_frame_id): Declare.
4771 (frame_find_by_id): Declare.
4772 * frame.c (frame_find_by_id): New function.
4773 (get_frame_id): New function.
4775 2002-06-10 Andrey Volkov <avolkov@transas.com>
4777 * ser-e7kpc.c: Fix duplicated define and call of
4778 _initialize_ser_e7000pc
4780 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4782 * signals/signals.c (target_signal_from_host): Fix #ifdef
4784 (do_target_signal_to_host): Likewise.
4786 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4788 * mips-tdep.c (mips_find_abi_section): New function.
4789 (mips_gdbarch_init): Call it.
4791 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4793 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4794 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4795 after Andrew's 2002-06-08 gdbarch change.
4797 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4799 * i386-linux-nat.c (suppy_gregset): Don't supply
4800 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4802 (fill_gregset): Don't fetch it under the same circumstances.
4804 2002-06-09 Andrew Cagney <cagney@redhat.com>
4806 * Makefile.in (callback_h): Define.
4807 (remote_sim_h): Update path to remote-sim.h.
4808 (remote-rdp.o): Add $(callback_h).
4809 (remote-sim.o): Use $(callback_h).
4810 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4811 * remote-rdp.c: Include "gdb/callback.h".
4813 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4815 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4816 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4818 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4820 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4821 * rdi-share/serpardr.c: Ditto.
4822 * rdi-share/unixcomm.c: Ditto.
4823 * rdi-share/serdrv.c: Ditto.
4824 * rdi-share/hostchan.h: Ditto.
4825 * rdi-share/hostchan.c: Ditto.
4826 * rdi-share/host.h: Ditto.
4827 * rdi-share/devsw.c: Ditto.
4829 * objfiles.h: Change type of obj_private to void pointer.
4830 * pa64solib.c: Update copyright. Don't include "assert.h", use
4831 strcmp instead of STREQ, use LONGEST, do not use PTR
4832 * somsolib.c: Ditto.
4834 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4835 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4836 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4838 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4840 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4841 (default_get_saved_register): Delete function.
4842 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4843 generic_unwind_get_saved_register.
4844 * gdbarch.h, gdbarch.c: Re-generate.
4846 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4848 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4849 generic_func_frame_chain_valid.
4850 * gdbarch.h, gdbarch.c: Re-generate.
4851 * blockframe.c (generic_func_frame_chain_valid): Only check
4852 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4853 passing FP to PC_IN_CALL_DUMMY.
4856 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4858 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4859 (register_gdbarch_data): Initialize init_p.
4860 (gdbarch_data): Initialize data pointer using the init function.
4861 (init_gdbarch_data): Delete function.
4862 (gdbarch_update_p): Update.
4863 (initialize_non_multiarch): Update.
4864 (struct gdbarch): Add field initialized_p.
4865 * gdbarch.h, gdbarch.c: Re-generate.
4867 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4869 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4870 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4871 better do the things actually here.
4872 * x86-64-tdep.c (x86_64_register_name2nr): New.
4873 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4874 (x86_64_gdbarch_init): Respect the above change.
4875 * x86-64-tdep.h (x86_64_register_name2nr)
4876 (x86_64_register_nr2name): Add prototypes.
4877 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4879 2002-06-06 Michael Snyder <msnyder@redhat.com>
4881 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4882 Delete extra braces and re-indent.
4883 (d10v_store_return_value): Char return values
4884 must be shifted over by one byte in R0.
4885 (d10v_extract_return_value): Delete extra braces, re-indent.
4887 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4889 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4890 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4891 (d10v_integer_to_address): Rewrite.
4892 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4893 the d10v specific functions which take care of converting to the
4896 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4898 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4899 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4901 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4903 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4905 * config/tm-linux.h: Ditto.
4906 * config/alpha/tm-alphalinux.h: Ditto.
4907 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4908 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4909 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4910 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4911 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4912 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4913 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4914 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4915 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4916 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4917 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4918 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4919 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4920 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4921 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4922 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4923 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4924 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4925 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4926 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4927 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4928 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4929 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4930 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4931 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4932 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4933 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4934 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4935 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4936 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4937 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4938 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4939 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4940 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4941 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4942 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4943 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4945 2002-05-04 Aidan Skinner <aidan@velvet.net>
4947 * ada-exp.tab.c: New file
4948 * ada-exp.y: New file
4949 * ada-lang.c: New file
4950 * ada-lang.h: New file
4951 * ada-lex.c: New file
4952 * ada-lex.l: New file
4953 * ada-tasks.c: New file
4954 * ada-typeprint.c: New file
4955 * ada-valprint.c: New file
4957 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4959 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4960 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4962 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4964 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4965 insetead of ppc-linux-tdep.o.
4966 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4967 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4969 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4971 2002-05-07 Christian Groessler <chris@groessler.org>
4972 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4973 bit register contents for little endian hosts.
4975 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4977 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4980 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4982 * gdbarch.h: Regenerate.
4984 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4986 * MAINTAINERS: Add everyone to write-after-approval list.
4988 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4990 * stack.c (frame_info): Use frame_register_unwind instead of
4991 saved_regs. Mention when the SP is on the stack or in a register.
4993 * frame.h (frame_register_unwind_ftype): Define. Document.
4994 (struct frame_info): Add field register_unwind and
4995 register_unwind_cache.
4996 (frame_register_unwind): Declare.
4997 (generic_unwind_get_saved_register): Declare.
4999 * frame.c (frame_register_unwind): New function.
5000 (generic_unwind_get_saved_register): New function.
5002 * blockframe.c (generic_call_dummy_register_unwind): New function.
5003 (frame_saved_regs_register_unwind): New function.
5004 (set_unwind_by_pc): New function.
5005 (create_new_frame): New function.
5006 (get_prev_frame): New function.
5008 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5010 * a29k-share/: Delete directory.
5011 * remote-vx29k.c: Delete file.
5013 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5015 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5016 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5018 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5020 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5021 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5024 (sparcnbsd-tdep.o): New dependency lists.
5025 * NEWS: Note new UltraSPARC NetBSD native configuration.
5026 * configure.host (sparc64-*-netbsd*): New host.
5027 * configure.tgt (sparc-*-netbsdelf*)
5028 (sparc-*-netbsd*): Set gdb_target to nbsd.
5029 (sparc64-*-netbsd*): New target.
5030 * sparc64nbsd-nat.c: New file.
5031 * sparcnbsd-nat.c: New file.
5032 * sparcnbsd-tdep.c: New file.
5033 * sparcnbsd-tdep.h: New file.
5034 * config/sparc/nbsd.mt: New file.
5035 * config/sparc/nbsd64.mh: New file.
5036 * config/sparc/nbsd64.mt: New file.
5037 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5038 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5040 * config/sparc/nbsdaout.mt: Remove.
5041 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5042 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5044 * config/sparc/nbsdelf.mt: Remove.
5045 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5046 sparc-nat.c compatiblity defines.
5047 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5048 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5049 * config/sparc/tm-nbsd64.h: New file.
5050 * config/sparc/tm-nbsdaout.h: Remove.
5051 * config/sparc/xm-nbsd.h: Remove.
5053 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5055 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5056 * sparc-tdep.c: Include osabi.h.
5057 (gdbarch_tdep): Add osabi member.
5058 (_initialize_sparc_tdep): Use gdbarch_register.
5059 (sparc_gdbarch_init): Use generic OS ABI framework.
5060 (sparc_dump_tdep): New function.
5062 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5064 * corefile.c (do_captured_read_memory_integer): Return non-zero
5066 (safe_read_memory_integer): Copy result of memory read when
5067 status is non-zero. Also, add comments.
5069 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5071 * Makefile.in (ppc_tdep_h): Define.
5074 (rs6000-tdep.o): Use $(ppc_tdep_h).
5077 (ppcnbsd-tdep.o): New dependency lists.
5078 * ppc-tdep.h: Use generic OS ABI framework.
5079 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5080 (ppc_linux_init_abi): New functions.
5081 (ppc_sysv_abi_broken_use_struct_convention)
5082 (ppc_sysv_abi_use_struct_convention)
5083 (ppc_sysv_abi_push_arguments): Move to...
5084 * ppc-sysv-tdep.c: ...here.
5085 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5086 * rs6000-tdep.c (process_note_abi_tag_sections)
5087 (get_elfosabi): Remove.
5088 (rs6000_gdbarch_init): Use generic OS ABI framework.
5089 (rs6000_dump_tdep): New function.
5090 (_initialize_rs6000_tdep): Use gdbarch_register.
5091 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5092 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5093 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5094 of ppc-linux-tdep.o.
5095 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5096 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5097 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5098 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5099 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5100 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5102 2002-05-29 Jim Blandy <jimb@redhat.com>
5104 * macroscope.c (default_macro_scope): Put `void' in empty argument
5107 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5109 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5110 * arch-utils.c: Include "sim-regno.h".
5111 * gdbarch.sh: Don't include "sim-regno.h".
5112 * gdbarch.h, gdbarch.c: Regenerate.
5113 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5115 * arch-utils.h (legacy_register_sim_regno): To here.
5116 * remote-sim.c (legacy_register_sim_regno): Move function from
5118 * arch-utils.c (legacy_register_sim_regno): To here.
5120 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5122 * sim-regno.h: New file.
5123 * Makefile.in (sim_regno_h): Define.
5124 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5125 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5126 (legacy_register_sim_regno): New function.
5127 (one2one_register_sim_regno): New function.
5128 (gdbsim_fetch_register): Rewrite.
5129 (gdbsim_store_register): Only store a register when
5130 REGISTER_SIM_REGNO is valid.
5131 * d10v-tdep.c: Include "sim-regno.h".
5132 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5133 (d10v_ts3_register_sim_regno): Ditto.
5134 * gdbarch.sh: Include "sim-regno.h".
5135 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5136 * gdbarch.h, gdbarch.c: Regenerate.
5137 * arch-utils.h (default_register_sim_regno): Delete declaration.
5138 * arch-utils.c (default_register_sim_regno): Delete function.
5140 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5142 * ppcnbsd-nat.c: Rewrite.
5143 * ppcnbsd-tdep.c: New file.
5144 * ppcnbsd-tdep.h: New file.
5145 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5146 solib.o, and solib-svr4.o.
5147 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5148 nbsd-tdep.o, and corelow.o.
5150 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5152 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5153 `tr' and `sed'. Mention that `broken' targets are not expected to
5156 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5158 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5159 Let PC point right after the prologue before looking up symbols.
5161 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5163 * i386-tdep.c (i386_register_virtual_type): Return
5164 builtin_type_vec128i for SSE registers.
5166 * gdbtypes.h (builtin_type_vec128i): Declare.
5168 * gdbtypes.c (build_builtin_type_vec128i): New function.
5169 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5170 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5171 (build_gdbtypes): Initialize new builtin vector types.
5172 (_initialize_gdbtypes): Register new vector types with gdbarch.
5174 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5176 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5177 since it has been multi-arch'd.
5178 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5179 Move Alpha and VAX multi-arch news entries to same section
5180 as other multi-arch news.
5182 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5184 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5185 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5186 static. Rename some register numbers to put them in ns32k-tdep
5188 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5189 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5191 (_initialize_ns32k_tdep): Use gdbarch_register.
5192 * ns32k-tdep.h: New file.
5193 * ns32knbsd-tdep.c: New file.
5194 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5195 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5196 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5197 REGISTER_BYTES, REGISTER_BYTE): Remove.
5198 * config/ns32k/tm-ns32k.h: New file.
5199 * config/ns32k/tm-umax.h: Remove.
5201 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5203 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5204 ns32k_store_struct_return, ns32k_extract_return_value,
5205 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5207 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5208 ns32k_saved_pc_after_call.
5209 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5210 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5211 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5212 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5213 ns32k_extract_struct_value_address.
5215 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5217 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5218 ns32k_fix_call_dummy): New.
5219 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5220 ns32k_call_dummy_words.
5221 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5222 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5223 CALL_DUMMY_NARGS): Remove.
5224 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5226 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5228 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5229 ns32k_frame_saved_pc, ns32k_frame_args_address,
5230 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5231 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5232 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5233 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5234 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5235 (BREAKPOINT): Remove..
5236 (FRAME_CHAIN): Define as ns32k_frame_chain.
5237 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5238 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5239 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5240 (FRAME_FIND_SAVED_REGS): Remove.
5241 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5242 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5243 (POP_FRAME): Define as ns32k_pop_frame.
5245 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5247 * ns32k-tdep.c (ns32k_register_byte_32082,
5248 ns32k_register_byte_32382, ns32k_register_raw_size,
5249 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5251 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5252 ns32k_register_byte_32382.
5253 * config/ns32k/tm-umax.h: Update copyright years.
5254 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5255 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5256 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5257 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5258 (ns32k_get_enter_addr): Fix prototype.
5260 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5262 * ns32k-tdep.c: Update copyright years.
5263 (ns32k_register_name_32082): New function.
5264 (ns32k_register_name_32382): Ditto.
5265 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5266 (REGISTER_NAME): Define as ns32k_register_name_32382.
5267 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5268 (REGISTER_NAME): Define as ns32k_register_name_32082.
5270 2002-05-24 Jim Blandy <jimb@redhat.com>
5272 * dwarf2read.c (free_line_header): Use xfree, not free.
5274 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5276 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5277 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5279 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5281 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5283 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5285 From Ross Alexander at NEC Europe:
5286 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5288 2002-05-23 Michael Snyder <msnyder@redhat.com>
5290 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5291 for input, rather than parse_and_eval_address.
5293 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5295 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5296 * Makefile.in (sim_d10v_h): Update definition.
5298 2002-05-24 Andrew Cagney <cagney@redhat.com>
5300 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5301 change `2002-05-22 Michael Snyder' below.
5302 (d10v_push_arguments): Ditto.
5303 (d10v_extract_return_value): Ditto.
5305 2002-05-23 Jim Blandy <jimb@redhat.com>
5307 * macrotab.c (check_for_redefinition): Don't complain if the new
5308 definition is the same as the previous one. Take more arguments
5309 to allow the comparison.
5310 (macro_define_object, macro_define_function): Pass more arguments
5311 to check_for_redefinition.
5313 2002-05-22 Michael Snyder <msnyder@redhat.com>
5315 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5316 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5317 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5318 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5319 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5320 Add a temp variable to save a call (and a memory read).
5321 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5322 if possible (so that PC_IN_CALL_DUMMY will work).
5324 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5326 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5328 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5330 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5332 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5333 (dwarf2_build_frame_info): Add offset to fde->initial_location
5334 so that frames of shared libraries are mapped correctly.
5335 (execute_stack_op): Change type of 'result' from ULONGEST to
5338 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5340 * config/alpha/tm-nbsd.h: Include solib.h.
5342 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5344 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5345 assumptions about the host's byte order.
5347 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5349 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5351 * alphanbsd-tdep.c: Include solib-svr4.h.
5352 * shnbsd-tdep.c: Ditto.
5354 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5356 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5357 nbsd-tdep.h to dependency list.
5358 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5359 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5360 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5361 nbsdaout.mh and nbsdelf.mh consistently.
5362 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5363 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5364 nbsdaout.mt and nbsdelf.mh consistently.
5365 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5366 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5367 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5368 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5369 a.out shared library stuff from here...
5370 * config/nm-nbsdaout.h: ...to here.
5371 * config/tm-nbsd.h: Remove.
5372 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5373 * config/arm/nbsd.mh: Remove.
5374 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5376 * config/arm/nbsdaout.mh: New file.
5377 * config/arm/nbsdelf.mh: New file.
5378 * config/arm/nm-nbsdaout.h: New file.
5379 * config/i386/nbsd.mh: Remove.
5380 * config/i386/nbsd.mt: Remove.
5381 * config/i386/nbsdaout.mh: New file.
5382 * config/i386/nbsdaout.mt: New file.
5383 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5384 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5385 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5386 i386_register_u_addr): Remove.
5387 * config/i386/nm-nbsdaout.h: New file.
5388 * config/i386/nm-nbsdelf.h: Remove.
5389 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5390 (USE_STRUCT_CONVENTION): Remove.
5391 * config/i386/tm-nbsdaout.h: New file.
5392 * config/i386/tm-nbsdelf.h: Remove.
5393 * config/m68k/nbsd.mh: Remove.
5394 * config/m68k/nbsd.mt: Remove.
5395 * config/m68k/nbsdaout.mh: New file.
5396 * config/m68k/nbsdaout.mt: New file.
5397 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5398 * config/m68k/nm-nbsdaout.h: New file.
5399 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5400 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5401 * config/ns32k/nbsd.mh: Remove.
5402 * config/ns32k/nbsd.mt: Remove.
5403 * config/ns32k/nbsdaout.mh: New file.
5404 * config/ns32k/nbsdaout.mt: New file.
5405 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5406 * config/ns32k/nm-nbsdaout.h: New file.
5407 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5408 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5409 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5410 (SVR4_SHARED_LIBS): Remove.
5411 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5412 * config/sparc/nbsd.mh: Remove.
5413 * config/sparc/nbsd.mt: Remove.
5414 * config/sparc/nbsdaout.mh: New file.
5415 * config/sparc/nbsdaout.mt: New file.
5416 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5417 * config/sparc/nbsdelf.mt: New file.
5418 * config/sparc/nm-nbsdaout.h: New file.
5419 * config/sparc/nm-nbsdelf.h: Remove.
5420 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5421 * config/sparc/tm-nbsdaout.h: New file.
5423 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5425 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5427 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5429 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5431 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5433 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5435 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5437 * NEWS: Note new MIPS NetBSD native configuration.
5438 * configure.host (mips*-*-netbsd*): New host.
5439 * configure.tgt (mips*-*-netbsd*): New target.
5440 * mipsnbsd-nat.c: New file.
5441 * mipsnbsd-tdep.c: New file.
5442 * mipsnbsd-tdep.h: New file.
5443 * config/mips/nbsd.mh: New file.
5444 * config/mips/nbsd.mt: New file.
5445 * config/mips/nm-nbsd.h: New file.
5446 * config/mips/tm-nbsd.h: New file.
5448 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5450 * Makefile.in (SFILES): Add osabi.c.
5451 (COMMON_OBS): Add osabi.o.
5452 (osabi.o): New dependency list.
5453 * osabi.c: New file.
5454 * osabi.h: New file.
5455 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5457 * Makefile.in (alpha_tdep_h): Define and use instead of
5459 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5460 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5462 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5463 * alpha-tdep.h: Include osabi.h.
5464 (alpha_abi): Remove.
5465 (gdbarch_tdep): Use generic OS ABI framework.
5466 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5467 gdbarch_register_osabi.
5468 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5469 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5470 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5472 * Makefile.in (sh_tdep_h): Add osabi.h.
5473 * sh-tdep.h (sh_osabi): Remove.
5474 (gdbarch_tdep): Use generic OS ABI framework.
5475 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5476 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5477 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5478 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5480 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5481 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5482 gdbarch_register_osabi.
5483 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5484 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5485 (get_elfosabi): Rename to...
5486 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5487 ABI framework support routines.
5488 (arm_gdbarch_init): Use generic OS ABI framework.
5489 (arm_dump_tdep): Likewise.
5490 (_initialize_arm_tdep): Likewise.
5491 * arm-tdep.h: Include osabi.h.
5493 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5495 (arm_gdbarch_register_os_abi): Remove prototype.
5496 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5497 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5499 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5500 * mips-tdep.c: Include osabi.h.
5501 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5504 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5506 * h8300-tdep.c: Fix formatting.
5508 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5510 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5511 printing vector registers.
5513 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5515 From Fernando Nasser:
5516 * remote.c (remote_async_open_1): Re-throw the exception when the
5518 (remote_cisco_open): Ditto.
5519 (remote_open_1): Ditto.
5521 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5523 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5524 (remote_start_remote): Add uiout parameter. Pass through to
5525 remote_start_remote_dummy.
5526 (remote_open_1): Use catch_exception instead of catch_errors.
5527 (remote_async_open_1): Ditto.
5528 (remote_cisco_open): Ditto.
5530 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5532 * remote.c (remote_start_remote): Replace PTR with void pointer.
5533 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5536 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5538 * gdb_indent.sh: Allow the script to be run in the sim directory.
5540 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5542 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5543 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5545 * corelow.c (core_open): Only call set_gdbarch_from_file if
5548 2002-05-17 Andrey Volkov <avolkov@transas.com>
5550 * h8300-tdep.c: Add support of EXR register
5551 * config/h8300/tm-h8300.h: Ditto.
5553 2002-05-17 Andrey Volkov <avolkov@transas.com>
5555 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5557 2002-05-17 Andrey Volkov <avolkov@transas.com>
5559 * h8300-tdep.c: Change literal regnums to REGNO.
5561 2002-05-17 Jim Blandy <jimb@redhat.com>
5563 * NEWS: Note addition of macro support.
5565 Expand preprocessor macros in C expressions.
5566 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5567 (scan_macro_expansion, scanning_macro_expansion,
5568 finished_macro_expansion): New function declarations.
5569 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5570 variable declarations.
5571 * parser-defs.h (expression_context_pc): New declaration.
5572 * parse.c (expression_context_pc): New variable.
5573 (parse_exp_1): Set expression_context_pc, as well as
5574 expression_context_block.
5575 * c-exp.y (yylex): If we're not already reading the result of a
5576 macro expansion, try to macro-expand the next token. When we're
5577 done scanning a macro expansion, switch back to the mainline text.
5578 Commas and `if's in a macro's expansion don't terminate the input.
5579 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5580 (macro_original_text, macro_expanded_text,
5581 expression_macro_lookup_func, expression_macro_lookup_baton): New
5583 (scan_macro_expansion, scanning_macro_expansion,
5584 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5585 c_preprocess_and_parse): New functions.
5586 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5587 c_preprocess_and_parse, instead of c_parse.
5588 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5589 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5591 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5593 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5594 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5595 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5597 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5599 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5601 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5603 * Makefile.in (sh_tdep_h): Define and use.
5604 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5605 register enum): Move to...
5606 * * sh-tdep.h: ...here.
5607 * sh-tdep.c: Include sh-tdep.h.
5608 * sh3-rom.c: Likewise.
5609 * shnbsd-tdep.c: Likewise.
5611 2002-05-16 Michael Snyder <msnyder@redhat.com>
5613 * arm-tdep.c: Spelling fix in comment.
5615 2002-05-16 Jim Blandy <jimb@redhat.com>
5617 Add commands for manually expanding macros and showing their
5619 * macrocmd.c, macroscope.c, macroscope.h: New files.
5620 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5621 (macroscope_h): New variable.
5622 (HFILES_NO_SRCDIR): Add macroscope.h.
5623 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5624 (macroscope.o, macrocmd.o): New rules.
5626 Teach the Dwarf 2 reader to read macro information.
5627 * dwarf2read.c: #include "macrotab.h".
5628 (dwarf_macinfo_buffer): New variable.
5629 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5631 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5632 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5633 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5634 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5635 dwarf2_macro_spaces_in_definition): New complaints.
5636 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5637 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5638 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5639 the partial symbol table.
5640 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5641 from what's recorded in the partial symbol table.
5642 (read_file_scope): If the compilation unit has a
5643 `DW_AT_macro_info' attribute, read its macro information.
5644 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5646 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5649 * ser-tcp.c: Don't include <netinet/udp.h>.
5651 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5653 * MAINTAINERS: Update my email address.
5655 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5657 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5658 include file of the same name.
5660 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5662 * configure.tgt: Mark v850 as multi-arched.
5663 * config/v850/tm-v850.h: Remove file.
5664 * config/v850/v850.mt: Eliminate TM_FILE.
5666 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5668 * v850-tdep.c: Full multi-arch.
5669 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5670 Define GDB_MULTI_ARCH to 2.
5672 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5674 * p-exp.y (current_type): New static variable.
5675 Carries the type of the expression at the position that is parsed.
5676 (push_current_type, pop_current_type): Two new functions. Used
5677 to store/restore current_type in expression on specific tokens.
5678 (search_field): New static variable. Set to one after parsing a point
5679 as at that point only a FIELDNAME token should be searched.
5680 (FIELDNAME): New token. After a point only a token belonging to
5681 current_type type definition is allowed.
5682 (all over token rules): reset and change current_type according
5684 (exp '[' rule): insert implicit array index field if
5685 exp is a pascal string type.
5687 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5689 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5690 frame info. Use frame_info's saved_regs instead of matching member
5691 in extra_frame_info throughout.
5692 (v850_frame_init_saved_regs): New function.
5693 (v850_init_extra_frame_info): Move most functionality into
5694 v850_frame_init_saved_regs().
5695 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5696 (v850_frame_find_saved_regs): Remove declaration.
5697 (FRAME_FIND_SAVED_REGS): Remove definition.
5698 (v850_frame_init_saved_regs): Add declaration.
5699 (FRAME_INIT_SAVED_REGS): Add definition.
5701 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5703 * v850-tdep.c: Begin multi-arch'ing v850.
5704 (v850_target_architecture_hook): Remove function.
5705 (v850_gdbarch_init): New function. Add code previously in
5706 v850_target_architecture_hook().
5707 (_initialize_v850_tdep): Don't set target_architecture_hook.
5708 Call register_gdbarch_init() instead.
5710 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5712 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5713 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5714 (fixup_class_method_type): Likewise.
5716 2002-05-15 Jim Blandy <jimb@redhat.com>
5718 Add macro structures to GDB's symbol tables. Nobody puts anything
5720 * symtab.h (struct symtab): New member: `macro_table'.
5721 * buildsym.h (pending_macros): New global variable.
5722 * buildsym.c: #include "macrotab.h".
5723 (buildsym_init): Initialize `pending_macros'.
5724 (end_symtab): If we found macro information while reading a CU's
5725 debugging info, do build a symtab structure for it. Make the
5726 symtab point to the macro information, and clear the
5727 `pending_macros' pointer which held it while we were reading the
5729 (really_free_pendings): Free any pending macro table.
5730 * objfiles.h (struct objfile): New member: `macro_cache'.
5731 * objfiles.c (allocate_objfile): Set allocate and free functions
5732 for the macro cache's objstack.
5733 (free_objfile): Empty the macro cache's obstack.
5734 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5735 set new allocate and free functions for it.
5736 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5737 free functions for the macro cache's objstack. (Why is this
5738 function building its own objfile?)
5739 * symmisc.c (print_objfile_statistics): Print statistics on the
5741 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5743 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5745 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5746 (REGISTER_U_ADDR): Delete definition.
5747 (arm_register_u_addr): Delete declaration.
5749 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5751 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5752 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5754 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5756 * regcache.c (register_valid): Revise comments refering to "Not
5757 available" and "unavailable".
5758 * frame.c (frame_register_read): Ditto.
5759 * findvar.c (value_of_register): Ditto.
5761 2002-05-15 Andrew Cagney <cagney@redhat.com>
5763 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5764 (remote-sim.o): Update dependencies.
5765 (d10v-tdep.o): Specify dependencies.
5766 (sim_d10v_h): Define.
5768 2002-05-14 Jim Blandy <jimb@redhat.com>
5770 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5771 * macrotab.c (macro_lookup_inclusion, find_definition,
5772 new_macro_table): Same.
5774 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5775 not `! strcmp ()'. This is a dubious improvement.
5776 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5778 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5779 although it's not necessary, to avoid a warning.
5781 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5783 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5784 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5785 TYPE_INSTANCE_FLAGS.
5786 (struct main_type): New.
5787 (struct type): Move most members to struct main_type. Change
5788 cv_type and as_type to new type_chain member. Add instance_flags.
5789 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5790 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5791 (finish_cv_type): Remove prototype.
5792 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5794 (alloc_type_instance): New function.
5795 (smash_type): New function.
5796 (make_pointer_type, make_reference_type, make_function_type)
5797 (smash_to_member_type, smash_to_method_type): Call smash_type.
5798 (make_qualified_type): New function.
5799 (make_type_with_address_space): Call make_qualified_type.
5800 (make_cv_type): Likewise.
5801 (finish_cv_type): Remove unnecessary function.
5802 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5803 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5804 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5805 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5806 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5807 * hpread.c (hpread_read_struct_type): Likewise.
5808 * stabsread.c (read_struct_type): Likewise.
5810 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5812 * configure.tgt: Add a catch all sh* target, for cases like
5813 sh[2,3,4]-elf and sh-hms.
5815 2002-05-14 Keith Seitz <keiths@redhat.com>
5817 * event-loop.c (create_file_handler): Don't do anything but
5818 update data when we are given a fd which we are already
5821 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5823 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5824 (update_context): Use __func__ in warnings.
5826 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5828 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5829 and tcp_close to net_open and net_close.
5830 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5831 using UDP if requested. Don't try to disable Nagle on UDP
5833 * remote.c (remote_serial_open): New function. Warn about UDP.
5834 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5836 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5838 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5840 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5842 * configure.tgt: Remove sh-hms target.
5843 * MAINTAINERS: Don't list sh-hms as a separate target.
5845 2002-05-13 Jim Blandy <jimb@redhat.com>
5847 Add first preprocessor macro-expansion files.
5848 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5849 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5850 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5851 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5852 (COMMON_OBS): Add macrotab.o, macroexp.o.
5853 (macroexp.o, macrotab.o): New rules.
5855 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5857 * config/m88k/tm-m88k.h: Update copyright.
5858 (m88k_target_write_pc): Declare
5859 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5860 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5861 (SHIFT_INST_REGS): Update definition.
5862 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5863 using old definition of TARGET_WRITE_PC.
5864 * regcache.c (generic_target_write_pc): Delete code handling
5866 * gdbarch.sh (NNPC_REGNUM): Delete.
5867 * gdbarch.h, gdbarch.c: Regenerate.
5869 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5871 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5874 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5876 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5877 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5878 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5880 * c-typeprint.c (cp_type_print_method_args): Likewise.
5881 (c_type_print_args): Likewise.
5882 * d10v-tdep.c (d10v_push_arguments): Likewise.
5883 (d10v_extract_return_value): Likewise.
5884 * expprint.c (print_subexp): Likewise.
5885 * gdbtypes.c (lookup_primitive_typename): Likewise.
5886 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5887 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5888 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5889 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5890 (TYPE_VECTOR): Likewise.
5891 * hpread.c (hpread_read_struct_type)
5892 (fix_static_member_physnames, fixup_class_method_type)
5893 (hpread_type_lookup): Likewise.
5894 * mdebugread.c (parse_symbol, parse_type): Likewise.
5895 * p-lang.c (is_pascal_string_type): Likewise.
5896 * valops.c (hand_function_call): Likewise.
5897 * x86-64-tdep.c (classify_argument): Likewise.
5899 * hpread.c (hpread_read_function_type)
5900 (hpread_read_doc_function_type): Call replace_type.
5901 * dstread.c (create_new_type): Delete.
5902 (decode_dst_structure, process_dst_function): Call alloc_type.
5903 Use type access macros.
5905 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5907 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5908 the're not supported by the current architecture.
5909 (i387_fill_fxsave): Likewise.
5911 2002-05-12 Fred Fish <fnf@redhat.com>
5913 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5914 sect_index_xxx members to index the first slot in section_offsets
5915 if all of the section_offsets are zero.
5917 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5919 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5920 checked in with last change.
5922 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5924 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5925 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5928 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5930 * Makefile.in: Update dependencies.
5932 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5934 * language.c (local_hex_string_custom): Simplify. Do not depend
5935 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5937 * memattr.c (mem_info_command): Replace calls to
5938 longest_local_hex_string and longest_local_hex_string_custom.
5939 * buildsym.c (make_blockvector): Ditto.
5940 * solib.c (info_sharedlibrary_command): Ditto.
5941 * tracepoint.c (tracepoints_info): Ditto.
5942 * symtab.c (print_msymbol_info): Ditto.
5944 * language.c (local_hex_string): Delete.
5945 (local_hex_string_custom): Delete.
5946 (longest_local_hex_string): Rename to local_hex_string.
5947 (longest_local_hex_string_custom): Rename to
5948 local_hex_string_custom.
5949 * language.h (local_hex_string): Change parameter type to LONGEST.
5950 (local_hex_string_custom): Ditto.
5951 (longest_local_hex_string): Delete declaration.
5952 (longest_local_hex_string_custom): Ditto.
5954 * solib.c: Update copyright.
5955 * memattr.c: Update copyright.
5957 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5959 * arch-utils.h (legacy_register_to_value): Declare.
5960 (legacy_value_to_register): Declare.
5961 (legacy_convert_register_p): Declare.
5962 * arch-utils.c (legacy_register_to_value): New function.
5963 (legacy_value_to_register): New function.
5964 (legacy_convert_register_p): New function.
5966 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5967 (VALUE_TO_REGISTER): Define.
5968 (CONVERT_REGISTER_P): Define.
5969 * gdbarch.h, gdbarch.c: Regenerate.
5971 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5973 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5976 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5977 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5979 * Makefile.in: Update dependencies for valops.c.
5980 * valops.c: Include "gdb_assert.h".
5981 (typecmp): Skip THIS parameter to methods.
5982 (find_method_list): Remove static_memfuncp argument,
5983 update callers. Check for stub methods.
5984 (find_value_oload_method_list): Don't set *static_memfuncp.
5985 (find_overload_match): Don't check for stub methods. Assert
5986 that methods are not stubbed. Handle static methods.
5987 (value_find_oload_method_list): Remove static_memfuncp argument.
5988 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5989 to the argument list for static stub methods.
5990 * value.h (value_find_oload_method_list): Update prototype.
5992 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5994 * arch-utils.h (generic_register_size): Declare.
5995 (generic_register_raw_size, generic_register_virtual_size): Delete
5997 * arch-utils.c (generic_register_raw_size): Delete.
5998 (generic_register_size): New function.
5999 (generic_register_virtual_size): Delete.
6001 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6002 default generic_register_size.
6003 * gdbarch.h, gdbarch.c: Re-generate.
6005 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6006 register_virtual_size.
6007 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6008 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6010 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6012 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6013 * gdbarch.h, gdbarch.c: Regenerate.
6014 * gnu-v3-abi.c: Update copyright.
6015 (vtable_address_point_offset): Update.
6016 (gnuv3_rtti_type): Update.
6017 (gnuv3_baseclass_offset): Update.
6018 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6019 (init_fetch_link_map_offsets): Update.
6020 * remote.c (get_remote_state): Update.
6022 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6024 * TODO: Remove value_headof/value_from_vtable_info comment.
6025 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6026 * values.c (value_headof, value_from_vtable_info): Delete.
6027 * value.h (value_from_vtable_info): Delete prototype.
6029 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6031 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6032 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6034 (gdb_assert_h): Define.
6035 (gdb_wait_h): Define.
6036 (gdb_regex_h): Define.
6038 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6040 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6041 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6043 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6045 * nbsd-tdep.c: Fix comment.
6047 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6049 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6050 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6051 (nbsd-tdep.o): New dependency list.
6052 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6054 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6055 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6056 * nbsd-tdep.c: New file.
6057 * nbsd-tdep.h: New file.
6058 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6060 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6061 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6062 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6063 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6065 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6067 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6068 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6069 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6070 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6071 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6072 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6074 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6076 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6077 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6078 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6079 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6080 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6081 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6082 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6084 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6086 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6087 fetch_elfcore_registers to...
6088 * i386nbsd-tdep.c: ...here.
6089 (i386nbsd_use_struct_convention): Rename to...
6090 (i386nbsd_aout_use_struct_convention): ...this.
6091 (i386nbsd_supply_reg): New function.
6092 (i386nbsd_fill_reg): New function.
6093 (fetch_core_registers): Use i386nbsd_supply_reg.
6094 (fetch_elfcore_registers): Likewise.
6095 (_initialize_i386nbsd_tdep): New function.
6096 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6097 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6098 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6099 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6100 (i386nbsd_aout_use_struct_convention): ...this.
6102 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6104 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6105 (store_inferior_registers): Use shnbsd_fill_reg.
6106 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6107 sh_nbsd_supply_register): Collapse into...
6108 (shnbsd_supply_reg): ...this.
6109 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6110 (shnbsd_fill_reg): ...this.
6111 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6112 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6113 (fetch_core_registers): Use shnbsd_supply_reg.
6114 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6115 (sh_nbsd_core_fns): Rename to...
6116 (shnbsd_core_fns): ...this.
6117 (sh_nbsd_elfcore_fns): Rename to...
6118 (shnbsd_elfcore_fns): ...this.
6119 (sh_nbsd_init_abi): Rename to...
6120 (shnbsd_init_abi): ...this.
6121 (_initialize_sh_nbsd_tdep): Rename to...
6122 (_initialize_shnbsd_tdep): ...this.
6123 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6124 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6125 sh_nbsd_fill_register): Remove prototypes.
6126 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6128 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6130 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6131 (i387-nat.o): Delete dependency list.
6132 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6133 (x86-64-linux-nat.o): Likewise.
6134 * i387-nat.c: Delete file, moving contents to...
6135 * i387-tdep.c: ...here.
6136 * i387-nat.h: Rename...
6137 * i387-tdep.h: ...to this.
6138 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6139 * i386-linux-nat.c: Likewise.
6140 * i386bsd-nat.c: Likewise.
6141 * i386gnu-nat.c: Likewise.
6142 * i386nbsd-nat.c: Likewise.
6143 * i386v4-nat.c: Likewise.
6144 * x86-64-linux-nat.c: Likewise.
6145 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6146 * config/i386/go32.mh (NATDEPFILES): Likewise.
6147 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6148 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6149 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6150 * config/i386/linux.mh (NATDEPFILES): Likewise.
6151 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6152 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6153 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6154 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6156 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6158 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6159 (alphanbsd-nat.o): Remove dependency list.
6160 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6161 * alphanbsd-nat.c: Delete. Contents moved to...
6162 * alphanbsd-tdep.c: ...here.
6163 (_initialize_alphanbsd_tdep): Register core functions.
6164 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6166 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6168 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6169 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6170 (alphanbsd-nat.o): Likewise.
6171 (alphabsd-tdep.o): New dependency list.
6172 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6173 (fill_gregset): Use alphabsd_fill_reg.
6174 (supply_fpregset): Use alphabsd_supply_fpreg.
6175 (fill_fpregset): Use alphabsd_fill_fpreg.
6176 (fetch_inferior_registers): Use struct reg and struct fpreg
6177 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6178 and alphabsd_supply_fpreg.
6179 (store_inferior_registers): Use struct reg and struct fpreg
6180 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6181 and alphabsd_fill_fpreg.
6182 * alphabsd-tdep.c: New file.
6183 * alphabsd-tdep.h: New file.
6184 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6185 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6186 alphabsd_supply_fpreg.
6187 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6188 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6190 2002-05-11 Eric Christopher <echristo@redhat.com>
6192 * mips-tdep.c (mips_double_register_type): Fix thinko.
6193 (mips_single_register_type): Ditto.
6194 * MAINTAINERS: Add self.
6196 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6198 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6199 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6200 right thing on architectures with different endianness and/or
6203 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6205 From Christian Limpach <chris@Pin.LU>
6206 * configure.in: Change sed expression which comments out
6207 NATDEPFILES to also comment out continuation lines.
6208 * configure: Regenerate.
6210 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6212 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6215 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6217 * sh-tdep.c: Include correct file.
6219 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6221 New support for sh64-elf (sh5) target.
6223 * configure.tgt: For sh64-elf target, default to sh-elf.
6225 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6226 (struct gdbarch_tdep): Add new fields for new registers and ABI
6229 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6230 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6231 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6232 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6233 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6234 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6235 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6236 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6237 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6238 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6239 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6240 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6241 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6242 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6243 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6244 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6245 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6246 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6247 sign_extend, sh64_nofp_frame_init_saved_regs,
6248 sh64_init_extra_frame_info, sh64_get_saved_register,
6249 sh64_extract_struct_value_address, sh64_pop_frame,
6250 sh64_push_arguments, sh64_extract_return_value,
6251 sh64_store_return_value, sh64_show_media_regs,
6252 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6253 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6254 sh_sh64_register_virtual_type,
6255 sh_sh64_register_convert_to_virtual,
6256 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6257 sh64_register_read, sh64_pseudo_register_write,
6258 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6259 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6260 sh64_do_pseudo_register, sh_compact_do_registers_info,
6261 sh64_do_registers_info, sh_gdbarch_init): New functions.
6263 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6265 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6267 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6269 * linespec.c (decode_line_1): Check for a double quote after
6270 a filename correctly.
6272 2002-05-10 Jim Blandy <jimb@redhat.com>
6274 Properly track the size of the current objfile's .debug_line section.
6275 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6276 (DWARF_LINE_SIZE): New macro.
6277 (dwarf2_build_psymtabs_hard): Record the line section's size in
6278 the partial symbol table.
6279 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6282 2002-05-10 Petr Sorfa <petrs@caldera.com>
6284 * ia64-tdep.c: Handle breakpoints on L instruction type
6285 in MLX instruction bundle by moving the breakpoint to
6286 the third slot (X instruction type) as L holds only data.
6288 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6290 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6291 (process_one_symbol): Complain about discarding local symbols
6292 due to a misplaced N_LBRAC entry.
6294 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6296 From Daniel Berlin <dan@cgsoftware.com>
6297 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6298 decrease the depth we are at, in the case of templates.
6300 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6302 * mips-tdep.c (mips_float_register_type): New function.
6303 (mips_double_register_type): New function.
6304 (mips_print_register): Use them.
6305 (do_fp_register_row): Likewise.
6307 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6309 * signals/signals.c (signals): Remove conditional compilation around
6310 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6311 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6313 2002-05-09 Michael Snyder <msnyder@redhat.com>
6315 * remote-rdp.c (remote_rdp_can_run): Remove.
6317 2002-05-09 Tom Tromey <tromey@redhat.com>
6319 * jv-valprint.c (java_val_print): Handle `char' as a special case
6322 2002-05-09 Michael Snyder <msnyder@redhat.com>
6324 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6325 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6326 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6327 str r(0123),[sp,#nn].
6328 (arm_skip_prologue): Ditto. Also make disassembly
6329 order-independent by placing it in a loop.
6331 2002-05-06 Michael Snyder <msnyder@redhat.com>
6333 * stabsread.c (read_type): Add recognition for new attribute:
6334 "@V;" means that an array type is actually a vector.
6335 This is analogous to the vector flag that's been added to dwarf2.
6337 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6339 * i386-tdep.h (i386_abi): New enum.
6340 (struct gdbarch_tdep): Replace os_ident member with abi.
6341 (i386_gdbarch_register_os_abi): New prototype.
6342 * i386-tdep.c (i386_abi_names): New array.
6343 (process_note_abi_tag_sections): Removed.
6344 (process_note_sections): New function.
6345 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6346 (struct i386_abi_handler): New struct.
6347 (i386_abi_handler_list): New variable.
6348 (i386_gdbarch_register_os_abi): New function.
6349 (i386_gdbarch_init): Adapt for the changes given above.
6351 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6353 * gregset.h: Say "GNU/Linux".
6355 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6357 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6358 (build_gdbtypes): Build builtin_type_v2_float.
6359 (_initialize_gdbtypes): Register new builtin type.
6361 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6363 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6364 (clear_gdbarch_swap): New function.
6365 (initialize_non_multiarch): Call.
6366 (gdbarch_update_p): Before calling init(), swap out and clear the
6367 existing architecture.
6368 * gdbarch.c: Regenerate.
6370 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6372 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6375 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6377 * sh-nbsd-nat.c: Rename to...
6378 * shnbsd-nat.c: ...this.
6379 * sh-nbsd-tdep.c: Rename to...
6380 * shnbsd-tdep.c: ...this.
6381 * sh-nbsd-tdep.h: Rename to...
6382 * shnbsd-tdep.h: ...this.
6383 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6384 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6386 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6388 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6389 concatenation for command help messages.
6391 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6393 * NEWS: Note new sh*-*-netbsdelf* configuration.
6394 * configure.host: Set gdb_host_cpu to sh for all sh*.
6395 (sh*-*-netbsdelf*): New host.
6396 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6397 (sh*-*-netbsdelf*): New target.
6398 * sh-nbsd-nat.c: New file.
6399 * sh-nbsd-tdep.c: New file.
6400 * sh-nbsd-tdep.h: New file.
6401 * config/sh/nbsd.mh: New file.
6402 * config/sh/nbsd.mt: New file.
6403 * config/sh/nm-nbsd.h: New file.
6404 * config/sh/tm-nbsd.h: New file.
6406 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6408 * sh-tdep.c (sh_osabi_names): Declare.
6409 (process_note_abi_tag_sections): New function.
6410 (get_elfosabi): Ditto.
6411 (sh_gdbarch_register_os_abi): Ditto.
6412 (sh_dump_tdep): Ditto.
6413 _initialize_sh_tdep): Use gdbarch_register to register
6414 sh_gdbarch_init and sh_dump_tdep.
6415 * config/sh/tm-sh.h (sh_osabi): Declare.
6416 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6418 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6420 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6421 (thumb_scan_prologue): Ditto.
6422 (arm_find_callers_reg): Ditto.
6423 (arm_frame_chain): Ditto.
6424 (arm_init_extra_frame_info): Ditto.
6425 (arm_frame_saved_pc): Ditto.
6426 (arm_pop_frame): Ditto.
6427 (arm_push_return_address): New function.
6428 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6429 call_dummy_location, call_dummy_breakpoint_offset_p,
6430 call_dummy_breakpoint_offset, call_dummy_p,
6431 call_dummy_stack_adjust_p, call_dummy_words,
6432 sizeof_call_dummy_words, call_dummy_start_offset,
6433 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6434 call_dummy_address, push_return_address and push_dummy_frame for
6435 generic dummy frames.
6437 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6439 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6440 size computation for alloca.
6441 (sh_fp_frame_init_saved_regs): Likewise.
6443 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6445 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6446 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6447 * arm-tdep.c (arm_store_return_value): Use them.
6448 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6449 * remote-rdp.c (remote_rdp_fetch_register): Use
6450 ARM_MAX_REGISTER_RAW_SIZE.
6451 (remote_rdp_store_register): Likewise.
6453 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6455 * dwarf2cfi.c: Code cleanup, removed unused variables,
6456 added default labels to switch {} statements.
6457 * x86-64-tdep.c: Ditto.
6458 * x86-64-linux-nat.c: Ditto.
6460 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6462 * solib.h: Protect against multiple inclusion.
6464 2002-05-06 Jim Blandy <jimb@redhat.com>
6466 Add first preprocessor macro-expansion files.
6467 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6468 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6469 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6470 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6471 (COMMON_OBS): Add macrotab.o, macroexp.o.
6472 (macroexp.o, macrotab.o): New rules.
6474 Separate the job of reading the line number info statement program
6475 header (...expialidocious) out into its own function.
6476 * dwarf2read.c (struct line_head, struct filenames, struct
6477 directories): Replace with...
6478 (struct line_header): New structure, containing the full
6479 contents of the statement program header, including the
6480 include directory and file name tables.
6481 (read_file_scope): If we have line number info, instead of just
6482 calling dwarf_decode_lines to do all the work, call
6483 dwarf_decode_line_header first to get a `struct line_header'
6484 containing the data in the statement program header, and then
6485 pass that to dwarf_decode_lines, which will pick up where that
6486 left off. Be sure to clean up the `struct line_header' object.
6487 (dwarf_decode_line_header, free_line_header, add_include_dir,
6488 add_file_name): New functions.
6489 (dwarf_decode_lines): Move all the code to read the statement
6490 program header into dwarf_decode_line_header. Take the line
6491 header it built as the first argument, instead of the offset to
6492 the compilation unit's line number info. Use the new `struct
6493 line_header' type instead of the old structures. No need to do
6494 cleanups here now, since we don't allocate anything.
6495 (dwarf2_statement_list_fits_in_line_number_section,
6496 dwarf2_line_header_too_long): New complaints.
6498 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6500 * gdbtypes.c (init_vector_type): New function.
6501 (build_builtin_type_vec128): Simplify the representation of SIMD
6503 (build_gdbtypes): Initialize new builtin vector types.
6504 (_initialize_gdbtypes): Register new vector types with gdbarch.
6505 (builtin_type_v4_float, builtin_type_v4_int32,
6506 builtin_type_v8_int16, builtin_type_v16_int8,
6507 builtin_type_v2_int32, builtin_type_v4_int16,
6508 builtin_type_v8_int8): New (renamed) SIMD types.
6510 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6512 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6513 (i387_fill_fxsave): Likewise.
6515 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6517 * alpha-tdep.c (alpha_extract_return_value): Don't use
6518 non-constant array size in prototype.
6520 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6522 From Brian Taylor <briant at model dot com>:
6523 * ui-out.c (ui_out_field_core_addr): Use the function
6524 longest_local_hex_string_custom'to format addresses > 32 bits
6527 * ui-out.c (ui_out_field_core_addr): Update comment.
6529 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6531 * stack.c (select_and_print_frame): Make static. Delete the
6533 (func_command): Update call.
6534 (select_frame_command): Delete code computing the frame level.
6535 * frame.h (select_and_print_frame): Delete declaration.
6537 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6539 * sparc-tdep.c (sparc_get_saved_register): Comment why
6540 get_prev_frame call is safe.
6542 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6544 * frame.h (select_frame): Delete level parameter.
6545 * stack.c (select_frame): Update. Use frame_relative_level to
6546 obtain the frame's level.
6547 (select_and_print_frame): Update call.
6548 (select_frame_command): Ditto.
6549 (up_silently_base): Ditto.
6550 (down_silently_base): Ditto.
6551 * ocd.c (ocd_start_remote): Ditto.
6552 * remote-rdp.c (remote_rdp_open): Ditto.
6553 * remote-mips.c (mips_initialize): Ditto.
6554 (common_open): Ditto.
6555 * remote-e7000.c (e7000_start_remote): Ditto.
6556 * m3-nat.c (select_thread): Ditto.
6557 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6558 (child_get_current_exception_event): Ditto.
6559 * varobj.c (varobj_create): Ditto.
6560 (varobj_update): Ditto.
6561 (c_value_of_root): Ditto.
6562 * tracepoint.c (finish_tfind_command): Ditto.
6563 * corelow.c (core_open): Ditto.
6564 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6565 * thread.c (info_threads_command): Ditto.
6566 (switch_to_thread): Ditto.
6567 * infrun.c (normal_stop): Ditto.
6568 (restore_selected_frame): Ditto.
6569 (restore_inferior_status): Ditto.
6570 * breakpoint.c (insert_breakpoints): Ditto.
6571 (watchpoint_check): Ditto.
6572 (bpstat_stop_status): Ditto.
6573 (do_enable_breakpoint): Ditto.
6574 * blockframe.c (flush_cached_frames): Ditto.
6575 (reinit_frame_cache): Ditto.
6577 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6579 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6582 2002-05-04 Jim Blandy <jimb@redhat.com>
6584 * gdbtypes.c (replace_type): Doc fix.
6586 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6588 * valprint.c (strcat_longest): Delete commented out function.
6591 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6593 * MAINTAINERS: Mark a29k as deleted.
6594 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6595 Move new configurations to the top.
6596 * configure.tgt: Remove a29k.
6597 * config/a29k/tm-vx29k.h: Delete.
6598 * config/a29k/vx29k.mt: Delete.
6599 * config/a29k/tm-a29k.h: Delete.
6600 * config/a29k/a29k-udi.mt: Delete.
6601 * config/a29k/a29k.mt: Delete.
6602 * a29k-tdep.c: Delete.
6603 * remote-udi.c: Delete.
6604 * remote-mm.c: Delete.
6605 * remote-eb.c: Delete.
6606 * remote-adapt.c: Delete.
6607 * Makefile.in: Remove obsolete code.
6608 * config/s390/s390x.mt: Ditto.
6609 * config/s390/s390.mt: Ditto.
6610 * config/sparc/sparclynx.mh: Ditto.
6611 * config/sparc/linux.mh: Ditto.
6612 * config/pa/hppaosf.mh: Ditto.
6613 * config/pa/hppabsd.mh: Ditto.
6614 * config/ns32k/nbsd.mt: Ditto.
6615 * config/mips/vr5000.mt: Ditto.
6616 * config/m68k/sun3os4.mh: Ditto.
6617 * config/m68k/nbsd.mt: Ditto.
6618 * config/m68k/m68klynx.mh: Ditto.
6619 * config/m32r/m32r.mt: Ditto.
6620 * config/i386/x86-64linux.mt: Ditto.
6621 * config/i386/nbsdelf.mt: Ditto.
6622 * config/i386/nbsd.mt: Ditto.
6623 * config/i386/i386lynx.mh: Ditto.
6625 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6627 * target.c (debug_print_register): New function. Handle oversize
6629 (debug_to_fetch_registers): Call.
6630 (debug_to_store_registers): Call.
6632 2002-05-03 Jim Blandy <jimb@redhat.com>
6634 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6635 (read_type): Doc fix.
6636 * gdbtypes.c (replace_type): Doc fix.
6638 * stabsread.c (multiply_defined_struct): New complaint.
6639 (read_struct_type): If the type we were passed isn't empty, or
6640 incomplete, don't read the new struct type into it; complain,
6641 and return the original type unchanged. Take a new `type_code'
6642 argument, which is the type code for the new type.
6643 (read_type): Rather than storing the type's type code here, pass
6644 it as an argument to read_struct_type, and let that take care of
6645 storing it. That way, we don't overwrite the original type code,
6646 so read_struct_type can use it to decide whether we're overwriting
6647 something we shouldn't.
6648 (complain_about_struct_wipeout): New function.
6650 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6652 * gdbarch.sh: Assert that gdbarch is non-NULL.
6653 * gdbarch.c: Regenerate.
6655 2002-05-03 Jason Merrill <jason@redhat.com>
6657 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6660 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6662 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6663 (x86_64_dwarf2gdb_regno_map_length),
6664 (x86_64_dwarf2_reg_to_regnum): Added.
6665 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6666 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6667 (_initialize_x86_64_tdep): Synced with the change above.
6668 (x86_64_skip_prologue): Reformulated message.
6670 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6672 * f-exp.y: Also use new prev_lexptr variable
6673 to improve error reporting. Based on Michael Snyder
6674 2002-04-24 dated patch to c-exp.y.
6675 * jv-exp.y: Likewise.
6676 * m2-exp.y: Likewise.
6678 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6680 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6681 we are dealing with vectors.
6683 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6685 * config/m68k/tm-nbsd.h: Obvious fix,
6686 correct machine name.
6688 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6690 * p-typeprint.c (pascal_type_print_base): Add support
6691 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6693 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6695 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6696 for fondamental pascal 'char' type.
6698 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6700 * p-lang.h (is_pascal_string_type): Declaration changed,
6701 new sixth argument of type char ** added.
6702 * p-lang.c (is_pascal_string_type): Implementation
6703 changed. Args length_pos, length_size, string_pos, char_size
6704 can now be NULL. New argument arrayname set to the field
6705 name of the char array. Return value set to char array
6706 field index plus one.
6707 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6708 is_pascal_string_type function.
6710 2002-05-02 Andrew Cagney <cagney@redhat.com>
6712 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6713 <cagney@redhat.com> change.
6714 * gdbarch.c: Regenerate.
6716 2002-05-02 Andrew Cagney <cagney@redhat.com>
6718 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6719 before probing for a new one. Detect errorenous gdbarch_init
6721 * gdbarch.c: Regenerate.
6723 2002-05-01 Andrew Cagney <cagney@redhat.com>
6725 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6726 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6727 * config/v850/tm-v850.h: Ditto. Update copyright.
6729 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6731 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6734 2002-04-30 Michael Snyder <msnyder@redhat.com>
6736 * arm-tdep.c: Whitespace clean-ups.
6737 (arm_skip_prologue): Fix thinko; two lines
6738 should have been removed as part of 4/24 change.
6740 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6742 * rs6000-tdep.c: Added comment describing how fpscr register
6743 numbers were chosen.
6745 2002-04-30 Michael Snyder <msnyder@redhat.com>
6747 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6749 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6751 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6752 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6753 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6755 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6757 From Louis Hamilton <hamilton@redhat.com>:
6758 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6759 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6760 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6761 not bfd-private xcoff data, to determine wordsize.
6762 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6764 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6766 GDB 5.2 released from 5.2 branch.
6768 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6770 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6771 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6772 (x86_64_register_info_table): Added comments with register numbers.
6774 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6776 * rs6000-tdep.c (rs6000_extract_return_value,
6777 rs6000_store_return_value): Handle returning vectors.
6778 (rs6000_gdbarch_init): Use
6779 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6780 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6782 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6784 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6785 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6787 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6789 * hpread.c (hpread_psymtab_to_symtab_1,
6790 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6791 with fprintf_unfiltered (gdb_stderr,...).
6793 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6795 * remote-array.c (printf_monitor, write_monitor,
6796 array_insert_breakpoint, array_remove_breakpoint ):
6797 Replace fprintf (stderr,...
6798 with fprintf_unfiltered (gdb_stderr,....
6799 * remote-es.c: Likewise.
6800 * remote-os9k.c: Likewise.
6801 * remote-st.c: Likewise.
6803 2002-04-28 Andreas Schwab <schwab@suse.de>
6805 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6806 linux-proc.o and gcore.o.
6808 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6810 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6811 code without frame pointers.
6813 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6815 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6818 2002-04-26 Ben Elliston <bje@redhat.com>
6820 * target.c (do_xfer_memory): Correct reference to the new option
6821 "trust-readonly-sections".
6823 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6825 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6826 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6827 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6829 (read_array_type): Record the fact that this array type is really a
6830 vector (i.e. are passed in by value).
6832 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6834 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6835 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6836 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6837 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6838 * alpha-linux-tdep.c: Include frame.h.
6839 (alpha_linux_sigcontext_addr): New function.
6840 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6841 alpha_linux_sigcontext_addr.
6842 * alpha-osf1-tdep.c: Include gdbcore.h.
6843 (alpha_osf1_sigcontext_addr): New function.
6844 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6845 alpha_osf1_sigcontext_addr.
6846 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6847 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6849 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6851 * stack.c (selected_frame_level):
6852 (select_frame): Do not set selected_frame_level.
6853 * frame.h (selected_frame_level): Delete declaration.
6855 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6857 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6858 convert_from_func_ptr-addr when AIX / PowerOpen.
6860 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6862 * valops.c (hand_function_call): Call
6863 generic_save_call_dummy_addr.
6864 * frame.h (generic_save_call_dummy_addr): Declare.
6865 * blockframe.c (struct dummy_frame): Add fields call_lo and
6867 (generic_find_dummy_frame): Check for PC in range call_lo to
6868 call_hi instead of entry_point_address.
6869 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6870 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6871 (generic_save_call_dummy_addr): New function.
6873 2002-04-24 David S. Miller <davem@redhat.com>
6875 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6876 sparc_skip_prologue.
6877 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6878 information to find prologue when possible.
6879 (sparc_prologue_frameless_p): Call examine_prologue directly.
6880 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6881 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6883 (SKIP_PROLOGUE): Likewise.
6885 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6887 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6888 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6889 indicate that the condition it was testing is always true.
6890 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6891 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6892 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6894 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6896 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6897 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6898 tdep->jb_pc and tdep->jb_elt_size.
6899 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6900 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6901 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6902 * alpha-nat.c (get_longjmp_target): Remove.
6903 (JB_ELEMENT_SIZE): Ditto.
6905 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6906 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6907 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6908 to alpha_get_longjmp_target.
6909 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6910 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6911 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6913 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6915 * README: Update to GDB 5.2.
6917 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6919 * gdbarch.sh (LC_ALL): Set to `c'.
6921 2002-04-25 Theodore A. Roth <troth@verinet.com>
6923 * avr-tdep.c: Ran through gdb_indent.sh.
6925 2002-04-25 Theodore A. Roth <troth@verinet.com>
6927 * MAINTAINERS: Add myself as AVR maintainer.
6928 * NEWS: Note new target avr.
6930 2002-04-25 Theodore A. Roth <troth@verinet.com>
6932 * Makefile.in: Add support for AVR target.
6933 * configure.tgt: Add support for AVR target.
6934 * avr-tdep.c: New file
6935 * config/avr/avr.mt: New file.
6937 2002-04-25 Theodore A. Roth <troth@verinet.com>
6939 * MAINTAINERS: Add myself to write-after-approval.
6941 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6943 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6944 with fprintf_unfiltered (gdb_stderr,....
6946 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6949 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6951 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6953 * p-exp.y: Also use new prev_lexptr variable
6954 to improve error reporting. Based on Michael Snyder
6955 2002-04-24 dated patch to c-exp.y.
6957 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6959 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6960 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6961 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6963 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6965 (FUNCTION_START_OFFSET): Remove.
6966 (BREAKPOINT): Ditto.
6968 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6970 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6973 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6975 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6976 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6977 alpha_linux_pc_in_sigtramp.
6978 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6979 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6980 alpha_osf1_pc_in_sigtramp.
6981 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6982 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6983 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6984 alphafbsd_pc_in_sigtramp.
6985 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6986 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6987 alphanbsd_pc_in_sigtramp.
6988 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6989 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6991 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6993 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6995 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6997 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6999 (alphanbsd-nat.o): New dependency list.
7000 (alphanbsd-tdep.o): Ditto.
7001 * NEWS: Note new native NetBSD/alpha configuration.
7002 * alphanbsd-nat.c: New file.
7003 * alphanbsd-tdep.c: Ditto.
7004 * configure.host (alpha*-*-netbsd*): New host.
7005 * configure.tgt (alpha*-*-netbsd*): New target.
7006 * config/alpha/nbsd.mh: New file.
7007 * config/alpha/nbsd.mt: Ditto.
7008 * config/alpha/nm-nbsd.h: Ditto.
7009 * config/alpha/tm-nbsd.h: Ditto.
7011 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7013 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7014 (alpha-osf1-tdep.o): New dependency list.
7015 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7016 and skip_sigtramp_frame members.
7017 * alpha-linux-tdep.c: Include gdbcore.h.
7018 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7019 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7020 * alpha-osf1-tdep.c: New file.
7021 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7023 (alpha_frame_past_sigtramp_frame): New function.
7024 (alpha_dynamic_sigtramp_offset): Ditto.
7025 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7026 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7027 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7028 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7029 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7030 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7031 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7032 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7033 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7034 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7035 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7036 to find_solib_trampoline_target.
7037 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7038 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7039 (SKIP_TRAMPOLINE_CODE): Remove.
7040 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7041 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7042 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7043 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7044 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7045 (PROC_SIGTRAMP_MAGIC): Ditto.
7046 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7047 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7048 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7049 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7050 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7052 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7054 * NEWS: Note that Alpha targets are now multi-arch.
7056 2002-04-24 Michael Snyder <msnyder@redhat.com>
7058 * parser-defs.h (prev_lexptr): New external variable.
7059 * parse.c (parse_exp_1): Set prev_lexptr to null before
7060 calling the language-specific parser.
7061 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7062 (yyerror): Use prev_lexptr in error reporting.
7064 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7066 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7067 * gregset.h: If FILL_FPXREGSET is defined, provide
7068 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7069 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7070 is defined, call fill_fpxregset.
7072 2002-04-24 Roland McGrath <roland@frob.com>
7074 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7075 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7076 (supply_gregset, supply_fpregset): New functions.
7078 * gnu-nat.c (gnu_find_memory_regions): New function.
7079 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7080 (gnu_xfer_memory): Add a cast.
7082 2002-04-24 Michael Snyder <msnyder@redhat.com>
7084 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7085 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7086 of argument regs ("str r(0123), [r11, #-nn"]).
7087 (arm_skip_prologue): Better handling for frameless functions.
7088 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7089 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7091 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7093 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7094 NUM_PSEUDO_REGS can be used.
7096 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7098 * arch-utils.h: Update copyright.
7100 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7101 * gdbarch.h, gdbarch.c: Re-generate.
7103 * inferior.h (IN_SIGTRAMP): Delete definition.
7104 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7105 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7107 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7108 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7109 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7110 (find_proc_framesize): Ditto.
7111 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7112 (alpha_init_extra_frame_info): Ditto.
7113 * infrun.c (handle_inferior_event): Ditto.
7114 (handle_inferior_event): Ditto.
7115 (check_sigtramp2): Ditto.
7116 * blockframe.c (create_new_frame): Ditto.
7117 (get_prev_frame): Ditto.
7118 * ppc-linux-tdep.c: Update comments.
7119 * i386-linux-tdep.c: Update comments.
7120 * breakpoint.c (bpstat_what): Update comment.
7122 2002-04-24 David S. Miller <davem@redhat.com>
7124 * i960-tdep.c (register_in_window_p): New function.
7125 (i960_find_saved_register): Use it instead of
7126 REGISTER_IN_WINDOW_P.
7127 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7129 * symtab.h (find_stab_function_addr): Kill extern.
7130 * minsyms.c (find_stab_function_addr): Remove from here...
7131 * dbxread.c: ... to here, and mark it static.
7133 2002-04-20 David S. Miller <davem@redhat.com>
7135 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7136 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7138 2002-04-21 David S. Miller <davem@redhat.com>
7140 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7141 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7142 (vx_write_register): Likewise.
7144 2002-04-23 J. Brobecker <brobecker@gnat.com>
7146 * source.c (is_regular_file): New function.
7147 (openp): Check wether file to open is a regular file
7148 to avoid opening directories.
7150 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7152 * findvar.c (extract_signed_integer): Cast printf argument
7153 to suppress format warning.
7154 (extract_unsigned_integer): Likewise.
7155 * infcmd.c (registers_info): Likewise.
7156 * top.c (get_prompt_1): Likewise.
7157 * valops.c (value_assign): Likewise.
7158 * valprint.c (print_decimal): Likewise.
7160 2002-04-22 H.J. Lu (hjl@gnu.org)
7162 * c-exp.y (typebase): Support
7164 [long|long long|short] [signed|unsigned] [int|]
7168 signed [long|long long|short] int
7170 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7172 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7174 * vax-tdep.h: New file.
7175 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7176 Make several routines static.
7177 (vax_get_saved_register): New function.
7178 (vax_gdbarch_init): New function.
7179 (_initialize_vax_tdep): Register vax_gdbarch_init.
7180 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7181 Remove macros now under the control of gdbarch.
7183 2002-04-22 Michael Snyder <msnyder@redhat.com>
7185 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7186 Some whitespace and coding standards tweaks.
7188 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7190 * vax-tdep.c: Include regcache.h.
7191 (vax_call_dummy_words): New.
7192 (sizeof_vax_call_dummy_words): New.
7193 (vax_fix_call_dummy): New function.
7194 (vax_saved_pc_after_call): Ditto.
7195 * config/vax/tm-vax.h: Don't include regcache.h.
7196 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7197 (CALL_DUMMY): Remove.
7198 (CALL_DUMMY_WORDS): Define.
7199 (SIZEOF_CALL_DUMMY_WORDS): Define.
7200 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7202 2002-04-18 Michael Snyder <msnyder@redhat.com>
7204 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7206 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7208 * vax-tdep.c (vax_frame_chain): New function.
7209 (vax_push_dummy_frame): Ditto.
7210 (vax_pop_frame): Ditto.
7211 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7212 (FRAMELESS_FUNCTION_INVOCATION): Use
7213 generic_frameless_function_invocation_not.
7214 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7215 (POP_FRAME): Use vax_pop_frame.
7217 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7219 * vax-tdep.c (vax_store_struct_return): New function.
7220 (vax_extract_return_value): Ditto.
7221 (vax_store_return_value): Ditto.
7222 (vax_extract_struct_value_address): Ditto.
7223 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7224 vax_store_struct_return.
7225 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7226 (STORE_RETURN_VALUE): Use vax_store_return_value.
7227 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7229 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7231 * vax-tdep.c (vax_frame_saved_pc): New function.
7232 (vax_frame_args_address_correct): Ditto.
7233 (vax_frame_args_address): Ditto.
7234 (vax_frame_locals_address): Ditto.
7235 (vax_frame_num_args): Move code to be in proximity to
7236 other frame-related functions.
7237 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7238 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7239 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7240 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7241 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7243 2002-04-22 H.J. Lu (hjl@gnu.org)
7245 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7248 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7250 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7251 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7252 (FRAME_INIT_SAVED_REGS): New macro.
7254 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7256 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7258 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7260 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7262 (fetch_osf_core_registers): Likewise.
7263 (supply_gregset): Likewise.
7265 2002-04-22 J. Brobecker <brobecker@gnat.com>
7267 * symfile.h (get_section_index): Define.
7268 * symfile.c (get_section_index): New function.
7269 * mdebugread.c (SC_IS_SBSS): New macro.
7270 (SC_IS_BSS): Return true for the scBss storage class only, as
7271 the scSBss storage class refers to the .sbss section.
7272 (parse_partial_symbols): Discard the symbols which associated
7273 section does not exist.
7274 Make sure to use the .sbss section index for symbols which
7275 storage class is scBss, rather than using the .bss section index.
7277 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7279 * vax-tdep.c: Update copyright years.
7280 (vax_register_name): New function.
7281 (vax_register_byte): Ditto.
7282 (vax_register_raw_size): Ditto.
7283 (vax_register_virtual_size): Ditto.
7284 (vax_register_virtual_type): Ditto.
7285 * config/vax/tm-vax.h: Update copyright years.
7286 (REGISTER_NAMES): Remove.
7287 (REGISTER_NAME): Define.
7288 (REGISTER_BYTE): Use vax_register_byte.
7289 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7290 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7291 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7293 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7295 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7297 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7299 2002-04-21 David S. Miller <davem@redhat.com>
7301 * arch-utils.c (generic_prologue_frameless_p): Kill
7302 SKIP_PROLOGUE_FRAMELESS_P code.
7303 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7305 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7306 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7307 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7309 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7310 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7311 (sparc_gdbarch_init): Pass it to
7312 set_gdbarch_prologue_frameless_p.
7314 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7316 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7317 (alphabsd-nat.o): New dependency list.
7319 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7321 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7323 (alpha-linux-tdep.o): New dependency list.
7324 (alphafbsd-tdep.o): Likewise.
7326 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7328 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7330 * alpha-tdep.c: ...from here.
7331 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7333 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7335 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7336 prototype from here...
7337 * alpha-tdep.h: ...to here.
7339 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7341 * frame.h (selected_frame_level): Document as deprecated.
7342 (frame_relative_level): Declare.
7343 * stack.c (frame_relative_level): New function.
7344 (selected_frame_level): Document as deprecated.
7345 (select_frame): Do not set the selected_frame_level.
7347 * stack.c (frame_info, record_selected_frame): Update.
7348 (frame_command, current_frame_command): Update.
7349 (up_silently_base, up_command, down_silently_base): Update.
7350 (down_command): Update.
7351 * inflow.c (kill_command): Update.
7352 * tracepoint.c (finish_tfind_command): Update.
7353 * corelow.c (core_open): Update.
7354 * thread.c (info_threads_command): Update.
7355 (do_captured_thread_select): Update.
7356 * infcmd.c (finish_command): Update.
7357 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7359 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7361 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7363 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7365 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7368 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7370 * alphafbsd-tdep.c: Update copyright years. Include
7372 (alphafbsd_use_struct_convention): Make static.
7373 (alphafbsd_init_abi): New function.
7374 (_initialize_alphafbsd_tdep): New function.
7375 * config/alpha/tm-fbsd.h: Update copyright years.
7376 (USE_STRUCT_CONVENTION): Remove.
7378 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7380 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7381 an Alpha ABI variant.
7382 (alpha_abi_handler_list): Declare.
7383 (alpha_gdbarch_register_os_abi): New function.
7384 (alpha_gdbarch_init): Give registered ABI variant handlers a
7385 chance to tweak the gdbarch once we have set up defaults.
7386 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7388 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7390 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7391 to standard_coerce_float_to_double.
7392 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7394 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7396 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7397 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7398 from gdbarch_tdep rather than a constant.
7399 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7400 the default text address for all Alpha Unix ABIs.
7401 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7402 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7404 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7406 * alpha-tdep.h: New file. Includes several Alpha target constants
7408 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7409 let gdbarch deal with.
7410 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7411 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7413 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7414 Alpha target register names.
7415 * alphabsd-nat.c: Likewise.
7416 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7417 Alpha target register names. Make serveral routines static.
7418 (alpha_get_saved_register): New function.
7419 (alpha_abi_names): New.
7420 (process_note_abi_tag_sections): New function.
7421 (get_elfosabi): New function.
7422 (alpha_gdbarch_init): New function.
7423 (alpha_dump_tdep): New function.
7424 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7426 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7428 * frame.c (find_saved_register): Delete #ifdef
7429 HAVE_REGISTER_WINDOWS code.
7430 * config/sparc/tm-sparc.h: Update comments.
7431 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7433 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7435 * i960-tdep.c (i960_find_saved_register): New function.
7436 (i960_get_saved_register): New function.
7437 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7438 (i960_get_saved_register): Declare.
7439 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7441 2002-04-20 David S. Miller <davem@redhat.com>
7443 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7445 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7447 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7448 instead of NUM_PSEUDO_REGS.
7450 2002-04-20 David S. Miller <davem@redhat.com>
7452 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7453 GDB_MULTI_ARCH_PARTIAL
7454 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7455 define, let tm-sp64.h do it.
7457 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7459 * frame.c (find_saved_register): Avoid a NULL pointer
7460 dereference and actually walk the frame list.
7462 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7464 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7465 sorted in most most-recent-used order. Document.
7466 * gdbarch.h, gdbarch.c: Regenerate.
7468 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7470 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7472 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7473 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7474 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7477 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7480 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7481 (build_builtin_type_vec128): Ditto.
7482 (append_composite_type_field): Fix calculation of type length in
7485 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7487 * config/djgpp/README: Update.
7489 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7492 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7494 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7495 (alpha_setup_arbitrary_frame): ...to this.
7496 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7497 for alpha_setup_arbitrary_frame.
7499 2002-04-18 Andrew Cagney <cagney@redhat.com>
7501 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7502 * gdbarch.h, gdbarch.c: Regenerate.
7504 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7505 * target.h (memory_breakpoint_from_pc): Update declaration.
7506 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7508 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7509 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7510 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7511 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7512 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7513 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7514 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7515 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7516 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7517 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7518 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7519 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7521 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7523 * monitor.c (monitor_insert_breakpoint): Ditto.
7524 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7526 * config/mcore/tm-mcore.h: Update copyright.
7527 * mem-break.c: Ditto.
7528 * xstormy16-tdep.c: Ditto.
7530 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7532 * p-exp.y: Add precedence rule for '^' token.
7533 This removes the shift/reduce conflicts.
7534 Remove the comment concerning these shift/reduce conflicts.
7536 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7538 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7539 (registers_powerpc_nofp): New register set for processors
7540 without floating point unit.
7542 2002-04-18 David S. Miller <davem@redhat.com>
7544 * MAINTAINERS: Add myself to write-after-approval.
7546 2002-04-17 Michael Snyder <msnyder@redhat.com>
7548 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7550 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7552 * rs6000-tdep.c (frame_initial_stack_address): Use
7553 frame_register_read to read the alloca_reg.
7555 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7557 * frame.c (find_saved_register): Find saved registers in the next
7561 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7563 * gdbarch.sh (LANG): Set to ``c''.
7565 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7567 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7569 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7571 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7574 * hpread.c (hpread_get_lntt): Add declaration.
7575 Also fix PR gdb/391.
7577 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7579 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7580 * aclocal.m4, configure: Re-generate.
7583 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7585 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7586 instead of tm_print_insn.
7588 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7590 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7592 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7594 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7595 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7596 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7598 2002-04-12 Don Howard <dhoward@redhat.com>
7600 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7601 max_user_call_depth.
7602 (init_cmd_lists): Initialize the new value;
7603 * cli/cli-script.c (execute_user_command): Limit the call depth of
7604 user defined commands. This avoids a core-dump when user commands
7605 are infinitly recursive.
7607 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7609 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7610 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7611 from tdep struct instead of DEFAULT_LR_SAVE.
7612 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7613 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7614 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7616 2002-04-12 Michael Snyder <msnyder@redhat.com>
7618 * Remote.c: Spelling fix.
7619 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7620 If no symbol found for "sbrk", try "_sbrk".
7621 (make_output_phdrs): Use bfd_section_name.
7622 (gcore_copy_callback): Use bfd_section_name.
7623 * eval.c: Indentation fix-ups.
7624 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7625 in case it gets applied to an address that is already
7626 in the instruction space.
7627 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7628 * symfile.c: Fix indentation, long lines.
7629 * source.c: White space fix-up.
7631 2002-04-12 Andrew Cagney <cagney@redhat.com>
7633 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7634 * frame.c (frame_register_read): New function. Return non-zero on
7636 (read_relative_register_raw_bytes_for_frame): Delete.
7637 (read_relative_register_raw_bytes): Delete.
7638 * frame.h (frame_register_read): Declare.
7639 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7641 * infcmd.c (do_registers_info): Ditto.
7642 * hppa-tdep.c: Ditto.
7643 * rs6000-tdep.c: Ditto.
7644 * h8500-tdep.c: Ditto.
7645 * mips-tdep.c: Ditto.
7646 * h8300-tdep.c: Ditto.
7647 * z8k-tdep.c: Ditto.
7649 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7651 From Jimi X <jimix@watson.ibm.com>:
7652 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7655 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7657 From Jimi X <jimix@watson.ibm.com>:
7658 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7661 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7663 From Jimi X <jimix@watson.ibm.com>:
7664 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7665 register sets for these processor variants.
7667 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7669 * regformats/reg-ppc.dat: Support FPSCR.
7671 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7673 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7674 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7675 Add fpscr as an invalid/unfetchable register.
7676 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7677 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7678 (fill_fpregset): Add support for register fpscr.
7679 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7680 (fill_gregset): Account for the fact that register ``mq'' might
7682 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7683 (registers_power): Add fpscr to register set at slot 71.
7684 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7685 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7687 2002-04-11 Michael Snyder <msnyder@redhat.com>
7689 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7690 * configure: Regenerate.
7691 * config.in: Regenerate.
7692 * acconfig.h: Add define for _SYSCALL32.
7693 * core-sol2.c: Remove #define _SYSCALL32.
7694 * solib-legacy.c: Remove #define _SYSCALL32.
7696 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7698 * stack.c (select_frame): Cleanup internal error message, do not
7701 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7703 * stack.c (select_frame): Check that selected_frame and the
7704 specified level are as expected.
7705 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7707 * frame.h (struct frame_info): Add field `level'. Update
7709 Work-in-progress PR gdb/464.
7711 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7713 * maint.c (maint_print_section_info): Rename print_section_info.
7714 (print_bfd_section_info, print_objfile_section_info): Update.
7715 * inferior.h (struct gdbarch): Add opaque declaration.
7716 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7717 * gdbarch.h: Regenerate.
7719 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7721 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7722 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7723 (kernel_u_size): Added.
7724 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7725 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7727 2002-04-04 Jim Ingham <jingham@apple.com>
7729 * valarith.c (find_size_for_pointer_math): New function, either returns
7730 the size for a pointer's target, returns 1 for void *, or errors for
7732 (value_add, value_sub): use find_size_for_pointer_math.
7734 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7736 * linux-low.c (linux_look_up_symbols): New hook.
7737 (linux_target_ops): Add linux_look_up_symbols.
7738 * remote-utils.c (decode_address): New function.
7739 (look_up_one_symbol): New function.
7740 * server.c (handle_query): Call target look_up_symbols hook.
7741 * server.h (look_up_one_symbol): Add prototype.
7742 * target.h (struct target_ops): Add look_up_symbols hook.
7744 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7746 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7747 override FP_REGNUM with frame->fp. Update copyright.
7748 * parse.c (num_std_regs, std_regs): Delete.
7749 (target_map_name_to_register): Do not search std_regs. Update
7750 function description.
7751 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7752 declarations. Update copyright.
7755 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7757 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7758 after the last symbol in a block.
7760 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7762 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7763 is non zero as a found symbol.
7765 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7767 * findvar.c: Include "builtin-regs.h".
7768 (value_of_register): Call value_of_builtin_reg when applicable.
7769 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7770 (target_map_name_to_register): Call
7771 builtin_reg_map_name_to_regnum.
7772 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7773 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7774 (builtin_regs_h): Define.
7775 (builtin-regs.o): New target.
7776 (findvar.o): Add $(builtin_regs_h).
7777 * builtin-regs.c, builtin-regs.h: New files.
7778 * std-regs.c: New file.
7779 Partial fix for PR gdb/251.
7781 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7783 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7784 it's no longer required.
7786 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7788 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7790 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7792 From Jimi X <jimix@watson.ibm.com>:
7793 * rs6000-tdep.c (rs6000_software_single_step): Use
7794 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7795 and size. Use target_insert_breakpoint() and
7796 target_remove_breakpoint() to insert and remove breakpoints
7797 instead of explicit memory reads and writes.
7799 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7801 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7802 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7803 ELF_OBJECT_FORMAT ifdef.
7805 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7807 From Jimi X <jimix@watson.ibm.com>:
7808 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7810 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7812 From Jimi X <jimix@watson.ibm.com>:
7813 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7814 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7816 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7818 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7819 s/asprintf/xasprintf/.
7820 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7822 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7824 I believe Jeff Law denies responsability for this one:
7825 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7826 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7827 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7828 Work-around for PR gdb/366.
7830 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7832 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7833 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7834 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7836 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7838 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7839 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7842 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7844 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7847 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7849 * README (Reporting Bugs in GDB): Document the bug web page as the
7850 prefered way of submitting bugs.
7853 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7855 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7857 * gdbarch.h, gdbarch.c: Re-generate.
7859 2002-04-07 Andreas Schwab <schwab@suse.de>
7861 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7862 buffer to regcache_collect.
7864 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7866 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7867 * gdbarch.c, gdbarch.h: Re-generate.
7869 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7871 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7872 declaration. Fix -Werror.
7874 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7876 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7877 * gdbarch.c: Regenerate.
7879 2002-04-05 Michael Snyder <msnyder@redhat.com>
7881 * breakpoint.c (clear_command): Rewrite middle section to
7882 combine two loops with identical control conditions.
7883 Add a cleanup to eliminate a memory leak.
7884 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7886 2002-04-05 H.J. Lu (hjl@gnu.org)
7888 * solib-svr4.c (bkpt_names): Add "__start".
7890 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7892 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7893 as test for 64 bit target.
7895 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7897 * h8500-tdep.c (h8500_write_fp): Delete function.
7898 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7899 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7900 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7902 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7903 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7905 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7906 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7907 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7908 (d10v_write_fp): Delete function.
7909 * inferior.h (write_fp, generic_target_write_fp): Delete
7911 * regcache.c (generic_target_write_fp): Delete function.
7912 (write_fp): Delete function.
7913 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7914 * gdbarch.h, gdbarch.c: Regenerate.
7915 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7916 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7917 (sparc64_write_fp): Delete declaration.
7918 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7919 (h8500_write_fp): Delete declaration.
7921 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7923 * sparc-tdep.c (sparc64_write_fp): Delete.
7924 (sparc_push_dummy_frame): Replace write_fp call with code to store
7926 (sparc_gdbarch_init): Do not initialize write_fp.
7928 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7930 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7933 2002-03-29 Jim Blandy <jimb@redhat.com>
7935 * stack.c (get_selected_block): Add new argument `addr_in_block',
7936 used to return the exact code address we used to select the block,
7938 * blockframe.c (get_frame_block, get_current_block): Same.
7939 * frame.h (get_frame_block, get_current_block,
7940 get_selected_block): Update declarations.
7941 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7942 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7944 2002-04-05 Michael Snyder <msnyder@redhat.com>
7946 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7949 2002-04-05 J. Brobecker <brobecker@gnat.com>
7951 * utils.c (xfullpath): New function.
7952 * defs.h (xfullpath): Add declaration.
7953 * source.c (openp): Use xfullpath in place of gdb_realpath to
7954 avoid resolving the basename part of filenames when the
7955 associated file is a symbolic link. This fixes a potential
7956 inconsistency between the filenames known to GDB and the
7957 filenames it prints in the annotations.
7958 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7959 to be able to match a filename with either the real filename, or
7960 the name of any symbolic link to this file.
7961 (lookup_partial_symtab): Ditto.
7963 2002-04-04 Michael Snyder <msnyder@redhat.com>
7965 * breakpoint.c: Add support for hardware breakpoints in overlays.
7966 (overlay_events_enabled): New state variable.
7967 (insert_breakpoints): Use overlay_events_enabled to decide
7968 whether to attempt to set a breakpoint at the overlay load addr.
7969 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7970 (remove_breakpoint): Use overlay_events_enabled to decide
7971 whether breakpoints need to be removed from overlay load addr.
7972 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7973 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7974 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7975 disable_overlay_breakpoints): Update overlay_events_enabled.
7977 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7979 * dwarf2read.c (struct function_range): New.
7980 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7981 (check_cu_functions): New.
7982 (read_file_scope): Initialize global function lists.
7983 Call dwarf_decode_line after processing children.
7984 (read_func_scope): Add to global function list.
7985 (dwarf_decode_lines): Call check_cu_functions everywhere
7986 record_line is called. Call record_line with a linenumber
7987 of 0 to mark sequence ends.
7989 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7991 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7992 change sync with glibc.
7994 2002-04-03 Jim Blandy <jimb@redhat.com>
7996 * configure.in: Call AC_C_INLINE.
7997 * configure: Regenerated.
7999 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8001 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8002 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8004 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8006 * NEWS: Mention gcore support on FreeBSD/i386.
8008 * fbsd-proc.c: New file.
8009 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8010 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8012 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8015 2002-03-29 Jim Blandy <jimb@redhat.com>
8017 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8018 unescaped newlines in string literals, but newer ones don't. So
8021 2002-03-26 Michael Snyder <msnyder@redhat.com>
8022 Andrew Cagney <cagney@redhat.com>
8024 * cli/cli-dump.c: New file. Dump memory to file,
8025 restore file to memory.
8026 * cli/cli-dump.h: New file.
8027 * Makefile.in: Add rules, dependencies for cli-dump.o.
8028 * NEWS: Mention new commands.
8030 2002-03-28 Michael Snyder <msnyder@redhat.com>
8032 * symfile.c (symbol_file_add): Move test for null symbols to later.
8034 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8036 From veksler at il.ibm.com:
8037 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8038 the xstrduped original path.
8041 2002-03-27 Michael Snyder <msnyder@redhat.com>
8043 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8044 * infcmd.c (_initialize_infcmd): Ditto.
8045 * language.c (_initialize_language): Ditto.
8046 * symfile.c (_initialize_symfile): Ditto.
8047 * top.c (_init_main): Ditto.
8048 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8050 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8052 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8053 vector registers handling.
8054 (skip_prologue): Handle new AltiVec instructions. Fill in new
8055 fields of frame data.
8056 (frame_get_saved_regs): Fill in information for AltiVec registers.
8058 2002-03-27 Jim Blandy <jimb@redhat.com>
8060 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8061 a function; leave this macro here to invoke that function.
8062 (symbol_init_mangled_name): Declaration for that function.
8063 * symtab.c (symbol_init_mangled_name): New function.
8065 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8067 * valarith.c: Replace strerror with safe_strerror.
8068 * tracepoint.c: Ditto.
8070 * go32-nat.c: Ditto.
8074 2002-03-27 Andreas Schwab <schwab@suse.de>
8076 * event-top.c (command_line_handler): Remove useless if.
8078 2002-03-27 Andreas Jaeger <aj@suse.de>
8080 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8083 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8085 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8086 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8087 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8088 (x86_64_linux_dr_get_status, supply_gregset),
8089 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8090 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8091 (x86_64_register_info_table): Add.
8092 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8093 (x86_64_register_raw_size, x86_64_register_virtual_type),
8094 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8095 general x86_64_register_info_table.
8096 (i386_gdbarch_init): gdbarch_register_bytes is now set
8097 dynamicaly during initialization.
8098 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8099 * gdbserver/linux-x86-64-low.c: Ditto.
8101 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8103 * gdbserver/server.c (main): Call target_signal_to_host_p
8104 and target_signal_to_host on signals received from the remote.
8105 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8106 target_signal_from_host on signals sent to the remote.
8107 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8108 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8110 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8112 * signals/signals.c: Include "server.h" in gdbserver build.
8113 (target_signal_from_name): Don't use STREQ.
8114 (_initialize_signals): Likewise. Don't include function in
8117 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8119 * signals.c: Moved to...
8120 * signals/signals.c: Here.
8121 * Makefile (signals.o): Update.
8123 2002-03-26 Jeff Law (law@redhat.com)
8125 * somread.c (som_symtab_read): Remove some commented out code and
8126 updated related comments. Do not set the minimal symbol table to
8127 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8128 in a dynamic executable.
8129 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8130 where we are unable to find the minimal symbol for the given
8133 2002-03-25 Jeff Law (law@redhat.com)
8135 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8137 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8139 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8141 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8143 * command.h: Update copyright.
8144 (struct cmd_list_element): Replace definition with opaque
8146 (enum cmd_types): Document that it will eventually be moved to
8148 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8149 (MALLOCED_REPLACEMENT): Delete macro.
8150 * Makefile.in (cli_decode_h): Add $(command_h).
8151 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8152 * top.c: Include "cli/cli-decode.h".
8153 * completer.c: Include "cli/cli-decode.h".
8154 * maint.c: Include "cli/cli-decode.h".
8155 * cli/cli-decode.h: Include "command.h".
8156 (enum command_class): Delete.
8157 (enum cmd_types): Comment out.
8158 (enum cmd_auto_boolean): Delete.
8159 (enum var_types): Delete.
8161 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8163 * cli/cli-decode.c: Include "gdb_assert.h".
8164 (add_set_or_show_cmd): New static function.
8165 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8166 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8167 all fields, such as func, from the set command.
8169 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8171 * MAINTAINERS (sh-elf): Change warning flag to -w.
8173 2002-03-23 Andrew Cagney <cagney@redhat.com>
8175 * defs.h (error): Add printf format attribute.
8176 * thread-db.c (thread_from_lwp): Fix error format string.
8177 * stack.c (parse_frame_specification): Ditto.
8178 * cli/cli-decode.c (undef_cmd_error): Ditto.
8179 * scm-lang.c (scm_lookup_name): Ditto.
8180 * tracepoint.c (trace_error): Ditto.
8181 * remote-utils.c (usage): Ditto.
8182 * remote.c (compare_sections_command): Ditto.
8185 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8187 * gdbtypes.c (append_composite_type_field): New function.
8188 (init_composite_type): New function.
8189 * gdbtypes.h (append_composite_type_field): Declare.
8190 (init_composite_type): Ditto.
8192 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8194 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8196 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8197 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8198 structure returning convention for SYSV ABI case, but not
8199 for GNU/Linux, FreeBSD, or NetBSD.
8201 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8203 * symtab.h (lookup_block_symbol): Add mangled_name argument
8206 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8207 with new mangled_name argument.
8208 * linespec.c (decode_line_1): Likewise.
8209 * valops (value_of_this): Likewise.
8210 * symtab.c (lookup_transparent_type): Likewise.
8211 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8212 (lookup_symbol): If we are given a mangled name, pass it down
8213 to lookup_symbol_aux.
8214 (lookup_block_symbol): If we are given a mangled name to check
8215 against, only return symbols which match it.
8217 2002-03-22 Christopher Faylor <cgf@redhat.com>
8219 * win32-nat.c (child_create_inferior): Check for proper shell to use
8220 here, in case the user changes it on the fly.
8221 (_initialize_inftarg): Remove shell path considerations.
8223 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8225 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8226 for gdbarch_max_register_raw_size and max_register_virtual_size.
8227 Adjust copyright year.
8229 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8231 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8232 in a function to cover the entire beginning of the function
8233 as well if it does not already.
8235 2002-03-21 Tom Rix <trix@redhat.com>
8237 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8238 (rs6000_ptrace64): Renamed from ptrace64.
8240 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8242 * gdbserver/remote-utils.c (remote_open): Don't call
8243 getprotobyname, we're all using TCP here so just use
8245 * gdbserver/gdbreplay.c (remote_open): Ditto.
8247 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8249 * regcache.c (_initialize_regcache): No need to call
8250 build_regcache() at this time; it gets called whenever
8251 the gdbarch changes.
8253 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8255 * sparc-nat.c: Include sys/param.h where possible.
8257 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8260 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8261 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8262 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8264 * stabsread.c (rs6000_builtin_type): Likewise.
8265 (read_sun_floating_type): Likewise.
8267 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8269 * stabsread.c (read_member_functions): Remove skip code for duplicate
8270 constructor/destructor methods. Use standard parsing for these
8271 methods and just do not chain them to the list of methods after
8274 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8276 * coffread.c: Remove redundant static declarations. Replace
8277 occurrences of `PTR' with `void *'.
8278 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8279 * top.h (quit_cover): Likewise.
8280 * defs.h (catch_errors): Likewise.
8282 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8284 * defs.h (XMALLOC): Define.
8285 * gdb-events.sh (XMALLOC): Delete macro.
8286 * gdb-events.c, gdb-events.h: Regenerate.
8287 * gdbarch.sh (XMALLOC): Delete macro.
8288 * gdbarch.c: Regenerate.
8289 * serial.c (XMALLOC): Delete macro.
8290 * ui-file.c (XMALLOC): Ditto.
8291 * ser-unix.h (XMALLOC): Ditto.
8292 * sh-tdep.c (XMALLOC): Ditto.
8293 * ui-out.c (XMALLOC): Ditto.
8294 * utils.c (XMALLOC): Ditto.
8295 * i386-tdep.c (XMALLOC): Ditto.
8296 * gdb-events.c (XMALLOC): Ditto.
8297 * d10v-tdep.c (XMALLOC): Ditto.
8298 * cli-out.c (XMALLOC): Ditto.
8300 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8301 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8302 * ui-file.c, ui-out.c: Ditto.
8304 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8306 * command.h (struct cmd_list_element): Add field context.
8307 (set_cmd_context, get_cmd_context): Declare.
8308 * cli/cli-decode.h: Ditto.
8309 * cli/cli-decode.c (get_cmd_context): New function.
8310 (set_cmd_context): New function.
8311 (add_cmd): Initialize context.
8312 Part of fixing PR gdb/145 and PR gdb/146.
8314 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8316 * cli/cli-decode.c (cmd_type): New function.
8317 * command.h (cmd_type): Declare.
8318 * infrun.c (set_schedlock_func): Call function cmd_type.
8319 * kod.c (kod_set_os): Call cmd_type.
8320 * cris-tdep.c (cris_version_update): Use function cmd_type.
8321 (cris_mode_update, cris_abi_update): Ditto.
8323 * command.h: (execute_cmd_post_hook): Declare.
8324 (execute_cmd_pre_hook): Declare.
8325 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8326 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8327 functions. Execute pre/post hook while ensuring that afterwords
8329 * top.c (execute_command): Use execute_cmd_post_hook, and
8330 execute_cmd_pre_hook to execute pre/post commands.
8331 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8333 (hook_stop_stub): Call execute_cmd_pre_hook.
8335 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8337 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8338 set'' and this leads to a core dump. Move xstrdup of
8339 operating_system to after check that it is not NULL.
8341 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8343 * kod.c (kod_set_os): Remove unnecessary check that
8344 ``command->type'' is set_cmd.
8346 * valprint.c (set_input_radix): Use input_radix.
8347 (set_output_radix): Use output_radix.
8348 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8351 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8353 * value.h (struct value): Delete field ``substring_addr''. Change
8354 aligner fields to force_doublest_align, force_longest_align,
8355 force_core_addr_align and force_pointer_aligh.
8357 * value.h (struct value): Fix typo in above change.
8359 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8361 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8362 to fix internal_error from ``maintenance print architecture''.
8364 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8366 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8367 for gcc versions after gcc-2.8.1.
8369 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8371 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8372 for method resolution. Restore adjustment of ``this'' pointer after
8373 calling value_struct_elt, which was accidentally removed during the
8376 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8378 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8380 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8382 * value.h (value_of_register): Update.
8384 2002-03-14 Richard Henderson <rth@redhat.com>
8386 * configure.in: Detect declaration for canonicalize_file_name.
8387 * utils.c (canonicalize_file_name): Declare, if needed.
8388 (gdb_realpath): Prefer realpath if available and usable.
8389 * config.in, configure: Rebuild.
8391 2002-03-14 Richard Henderson <rth@redhat.com>
8393 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8394 a constant array bound.
8396 * MAINTAINERS: Add myself to write-after-approval.
8398 2002-03-14 Michael Snyder <msnyder@redhat.com>
8400 * symfile.c (syms_from_objfile): Return immediately if no syms.
8401 (symbol_file_add): Return immediately if no syms.
8402 (find_sym_fns): Return immediately if no syms.
8404 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8406 * gdbserver/remote-util.c (remote_open): Print remote-side's
8407 IP address when remote debugging over the network.
8409 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8411 * config/sparc/fbsd.mh: Fix copyright.
8412 * config/sparc/fbsd.mt: Likewise.
8414 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8416 * MAINTAINERS: Fix typo in name of gdb warnings option.
8417 (x86-64): Fix formating so that this can be parsed by awk.
8419 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8421 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8422 * defs.h: Include "gdb/signals.h".
8423 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8425 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8427 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8428 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8431 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8432 Don Howard <dhoward@redhat.com>
8434 * mips-tdep.c (ST0_FR): Define.
8435 (mips2_fp_compat): New function, temporarily disabled.
8436 (mips_read_fp_register_single): New function.
8437 (mips_read_fp_register_double): New function.
8438 (mips_print_register): Use them.
8439 (do_fp_register_row): Likewise.
8441 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8443 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8446 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8448 * stabsread.c (read_member_functions): Fix is_stub test for
8449 static member functions, improve comment.
8451 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8453 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8454 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8455 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8456 commands that set boolean values.
8457 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8458 (arm_rdi_resume): Always initialize PC.
8459 (arm_rdi_open): Don't use rslt as a boolean.
8460 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8461 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8462 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8463 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8465 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8467 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8468 * configure: Rebuilt.
8470 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8472 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8473 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8475 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8477 * cli/cli-decode.c (set_cmd_completer): New function.
8478 * command.h (set_cmd_completer): Declare.
8479 * cli/cli-decode.h (set_cmd_completer): Ditto.
8481 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8482 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8483 * win32-nat.c (_initialize_inftarg): Ditto.
8484 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8485 * proc-api.c (_initialize_proc_api): Ditto.
8486 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8487 * source.c (_initialize_source): Ditto.
8488 * exec.c (_initialize_exec): Ditto.
8489 * solib.c (_initialize_solib): Ditto.
8490 * top.c (init_main): Ditto.
8491 * tracepoint.c (_initialize_tracepoint): Ditto.
8492 * symfile.c (_initialize_symfile): Ditto.
8493 * printcmd.c (_initialize_printcmd): Ditto.
8494 * infcmd.c (_initialize_infcmd): Ditto.
8495 * corefile.c (_initialize_core): Ditto.
8497 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8499 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8501 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8503 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8505 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8507 * NEWS: Update headings, 5.2 has branched.
8509 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8511 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8512 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8513 (register_addr, REGISTER_RAW_SIZE): Likewise.
8514 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8515 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8517 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8519 * MAINTAINERS (x86-64): Add myself.
8520 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8521 changed value_ptr -> struct value *
8523 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8525 * configure.host (sparc64-*-freebsd): Add.
8526 * configure.tgt: Likewise.
8527 * config/sparc/fbsd.mh: New file.
8528 * config/sparc/fbsd.mt: Likewise.
8529 * config/sparc/nm-fbsd.h: Likewise.
8530 * config/sparc/tm-fbsd.h: Likewise.
8532 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8534 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8535 regformats/reg-s390x.dat.
8537 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8539 * utils.c: Add FIXME explaining true/false problem.
8541 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8543 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8545 2002-02-28 Michael Chastain <mec@shout.net>
8547 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8549 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8551 * gdbserver/linux-s390-low.c: New file.
8552 * regformats/reg-s390.dat: New file.
8553 * regformats/reg-s390x.dat: New file.
8554 * gdbserver/configure.srv: Add S/390.
8555 * gdbserver/Makefile.in: Add S/390.
8556 * configure.tgt: Enable gdbserver for S/390.
8558 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8560 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8561 first line of the doc string for "info dos", except at the end of
8562 the sentence, since the short help stops at the first period.
8564 2002-02-28 Jason Merrill <jason@redhat.com>
8566 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8568 2002-02-27 Fred Fish <fnf@redhat.com>
8570 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8571 comment (dumy -> dummy).
8573 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8575 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8577 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8579 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8581 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8583 * gdbserver/acconfig.h: New file.
8584 * gdbserver/i387-fp.c: New file.
8585 * gdbserver/i387-fp.h: New file.
8586 * gdbserver/linux-x86-64.c: New file.
8587 * regformats/reg-x86-64.dat: New file.
8588 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8589 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8590 * gdbserver/configure.in: Add support for regsets.
8591 * gdbserver/config.in: Regenerate.
8592 * gdbserver/configure: Regenerate.
8593 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8594 * gdbserver/linux-low.h: New file.
8595 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8597 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8598 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8599 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8600 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8601 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8602 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8603 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8604 "i387-fp.h". Add PTRACE_GETREGS and friends.
8605 * gdbserver/regcache.c (supply_register): New function.
8606 (supply_register_by_name): New function.
8607 (collect_register): New function.
8608 (collect_register_by_name): New function.
8610 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8612 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8613 (config.status): Add configure.srv dependency.
8614 (server_h): Add config.h dependency.
8616 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8618 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8619 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8620 * gdbserver/configure.srv: Change i386-*-linux* to use
8623 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8625 * x86-64-tdep.c: Re-indent. Update copyright date.
8627 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8629 From Michal Ludvig <mludvig@suse.cz>:
8630 * x86-64-tdep.c (value.h): Delete.
8631 (gdb_assert.h): Include.
8632 (x86_64_register_convert_to_virtual,
8633 x86_64_register_convert_to_raw ): Add check which lets only
8634 floating-point values to be converted.
8635 (value_push): Delete.
8636 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8637 (i386_gdbarch_init): Number of register_bytes fixed.
8639 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8641 * MAINTAINERS: Add x86-64 target.
8643 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8645 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8646 * osfsolib.c (solib_map_sections): Ditto.
8647 * irix5-nat.c (solib_map_sections): Ditto.
8648 * corelow.c (gdb_check_format): Ditto.
8649 * symfile.c (symfile_bfd_open): Ditto.
8650 * solib.c (solib_map_sections): Ditto.
8653 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8655 * remote.c (_initialize_remote): By default, disable ``e'' and
8656 ``E'' step out-of-range packets.
8658 2002-02-26 Andreas Schwab <schwab@suse.de>
8660 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8661 m68k_linux_frame_saved_pc.
8662 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8664 (SIGCONTEXT_PC_OFFSET): Remove.
8665 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8666 m68k_linux_sigtramp_saved_pc): New functions.
8667 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8668 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8669 (UCONTEXT_PC_OFFSET): Define.
8670 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8671 non-RT and RT signal trampolines.
8673 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8675 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8676 (TARGET_NBPG, STACK_END_ADDR): Delete
8677 (VARIABLES_INSIDE_BLOCK): Delete.
8679 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8681 * utils.c (perror_with_name): Make string parameter constant.
8682 (print_sys_errmsg): Ditto.
8684 * defs.h (perror_with_name): Update.
8685 (print_sys_errmsg): Update.
8688 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8690 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8691 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8693 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8695 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8696 if it already matches the current architecture from the exec file.
8697 Include arch-utils.h for gdbarch_info_init prototype.
8698 * Makefile.in (rs6000-nat.o): Update dependencies.
8700 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8702 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8703 list of exported variables.
8705 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8707 * gdbserver/configure.srv: New file.
8708 * gdbserver/configure.in: Use configure.srv instead
8709 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8711 * gdbserver/configure: Regenerated.
8712 * gdbserver/terminal.h: New file.
8713 * gdbserver/Makefile.in: Update for configure changes. Remove
8714 more unneeded include paths.
8716 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8718 From wiz at danbala:
8719 * config/sparc/tm-sp64.h: Fix grammar and typos.
8722 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8724 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8725 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8726 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8727 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8728 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8729 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8730 * s390-tdep.c: Ditto.
8731 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8732 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8733 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8734 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8735 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8736 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8737 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8738 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8739 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8740 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8743 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8745 * lin-thread.c: Delete file.
8746 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8747 to gdb_proc_service.h.
8748 * configure: Re-generate.
8750 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8751 * serial.c (serial_open): Delete check for "ocd".
8754 * Makefile.in (linux-thread.o): Delete target.
8755 * linux-thread.c: Delete file.
8757 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8758 renamed SH files to be consistent.
8760 * symtab.c (sort_search_symbols): Use xfree.
8762 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8764 * arm-linux-tdep.c (arm_linux_init_abi): Register
8765 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8766 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8767 definition with undef, since we don't want the sysvr4 definition.
8768 (SKIP_TRAMPOLINE_CODE): Likewise.
8770 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8772 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8774 * configure.in: (AC_CHECK_FUNCS) Added test for
8775 canonicalize_file_name Regenerated.
8776 * config.in, configure: Regenerated.
8777 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8778 defined use canonicalize_file_name.
8780 2002-02-23 Michael Chastain <mec@shout.net>
8782 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8784 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8786 * README: Remove references to cygnus.com.
8787 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8788 dot com'' form. Remove references to cygnus.com and sourceware.
8790 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8792 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8793 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8794 1003.1-2001 no longer allows "head -1".
8795 * gdb/Makefile.in (version.c): Likewise.
8796 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8797 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8798 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8800 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8802 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8803 * command.h (cmd_cfunc_eq): Declare.
8804 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8806 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8807 ``struct cmd_list_element *''.
8808 * cli/cli-cmds.c (is_complete_command): Update. Use
8810 * top.c (execute_command): Pass the command to
8811 is_complete_command.
8812 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8814 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8816 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8817 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8818 architecture defines.
8819 * s390-tdep.c (s390_gdbarch_init): Likewise.
8821 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8823 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8824 (arm_linux_push_arguments): Likewise.
8825 (arm_linux_init_abi): Register them. Also register linux-specific
8827 (find_minsym_and_objfile): Use strcmp, not STREQ.
8828 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8829 (arm_linux_call_dummy_words): Delete declaration.
8830 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8831 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8833 (LOWEST_PC): Delete.
8835 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8837 * maint.c (print_section_info): Do not prepend `0x' to filepos
8838 output, it will be handled by local_hex_string_custom.
8840 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8842 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8843 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8844 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8846 2002-02-22 Jim Blandy <jimb@redhat.com>
8848 Indicate that the bcache functions don't change the strings
8850 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8851 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8853 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8855 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8857 2002-02-21 Christopher Faylor <cgf@redhat.com>
8859 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8860 find the complete path to a loaded DLL.
8862 2002-02-21 Fred Fish <fnf@redhat.com>
8864 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8865 that marks the end of the range of a function, enter a line number
8866 entry that has a line number of zero and a PC offset that matches
8867 the end of the function. This starts a range of PC's for which no
8868 line number information is known.
8869 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8870 PC's for which no line number info is found (line number is zero)
8871 then we didn't find any valid line information.
8872 * symtab.h: Document use of zero line number entry.
8874 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8876 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8877 (have_ptrace_getvrregs): Define for run time checks.
8878 (gdb_vrregset_t): New type for Altivec register handling.
8879 (fetch_register, store_register): Fetch/store altivec register
8881 (fetch_altivec_register, store_altivec_register): New functions.
8882 (supply_vrregset, fill_vrregset): New functions.
8883 (fetch_altivec_registers, store_altivec_registers): New functions.
8884 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8887 2002-02-21 Jiri Smid <smid@suse.cz>
8889 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8891 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8893 * Makefile.in (armnbsd-nat.o): Update dependencies.
8894 * armnbsd-nat.c (supply_gregset): New function. Common code to
8895 supply the integer register set.
8896 (supply_fparegset): New function. Similar for FPA registers.
8897 (fetch_regs, fetch_fp_regs): Use them.
8898 (fetch_core_registers): Likewise.
8899 (fetch_elfcore_registers): New function.
8900 (arm_netbsd_elfcore_fns): New core-file type specification.
8901 (_initialize_arm_netbsd_nat): Register it.
8903 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8905 * armnbsd-nat.c: Include gdbcore.h.
8906 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8907 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8908 'void' to declaration, to shut up ARI.
8909 (fetch_core_registers): Make static. Rewrite using supply_register.
8910 (arm_netbsd_core_fns): New core-file type specification.
8911 (_initialize_arm_netbsd_nat): New function.
8913 2002-02-21 Christopher Faylor <cgf@redhat.com>
8915 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8918 2002-02-20 Christopher Faylor <cgf@redhat.com>
8920 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8923 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8925 * jv-exp.y (parse_number): Change type of implicit longs
8926 to builtin_type_uint64.
8928 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8930 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8931 to be an integer instead of a `union wait'.
8933 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8935 * mips-linux-nat.c: Call the operating system GNU/Linux.
8936 * mips-linux-tdep.c: Likewise.
8937 * mips-tdep.c: Likewise.
8939 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8942 * jv-exp.y (parse_number): Handle 64-bit integers.
8944 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8946 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8947 AC_STDC_HEADERS to AC_HEADER_STDC.
8948 * gdbserver/configure: Regenerated.
8950 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8952 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8954 * sparc-tdep.c (get_longjmp_target): Likewise.
8956 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8958 * News: Add news about ARM and Multi-arch. Mention the new target
8961 2002-02-19 Jim Blandy <jimb@redhat.com>
8963 * stabsread.c (error_type_complaint): Improve error message.
8965 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8967 * gdbserver/README: Update documentation.
8968 * gdbserver/configure.in: Update configury to match documentation.
8969 * gdbserver/Makefile.in: Likewise.
8970 * gdbserver/configure: Regenerated.
8971 * gdbserver/aclocal.m4: New file, generated by aclocal.
8972 * gdbserver/config.in: New file, generated by autoheader.
8974 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8976 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8979 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8981 * arm-tdep.h (enum arm_float_model): New enum.
8982 (struct gdbarch_tdep): Add fp_model.
8983 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8984 up floating-point conversions until we know the floating-point model
8985 in use by the inferior. Don't complain about being unable to
8986 determine the ABI of the inferior when we don't have one.
8987 (arm_extract_return_value): Support different floating-point models.
8988 (arm_store_return_value): Likewise.
8989 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8991 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8993 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8995 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8996 of ``current_gdbarch''.
8998 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9000 * armnbsd-nat.c : ANSIfy all function declarations.
9001 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9002 (fetch_inferior_registers): Re-implement in terms of above.
9003 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9004 (store_inferior_registers): Re-implement in terms of above.
9006 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9008 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9010 * arm-linux-tdep.c: Likewise.
9011 * config/arm/tm-linux.h: Likewise.
9013 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9015 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9016 * config/arm/nbsd.mt (TM_FILE): Delete.
9017 * config/arm/tm-nbsd.h: Delete.
9019 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9021 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9022 Initialize CALL_DUMMY_LENGTH.
9024 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9026 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9028 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9029 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9030 defines one thing and that is incorrect for this port.
9031 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9033 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9035 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9037 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9039 * win32-nat.c (display_selector): New function. Displays information
9040 about the information returned by GetThreadSelectorEntry API function.
9041 (display_selectors): New function. Displays the infomation of
9042 the selector given as argument, or of CS, DS ans FS selectors
9043 if no argument is given.
9044 ( _initialize_inftarg): Add "w32" as info prefix command.
9045 Add "info w32 selector" as command calling display_selectors.
9047 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9049 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9050 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9053 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9055 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9057 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9059 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9060 (arm_fix_call_dummy): Call it.
9061 (arm_call_dummy_breakpoint_offset): Delete.
9062 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9063 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9065 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9067 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9068 Default to func_frame_chain_valid.
9069 * gdbarch.h, gdbarch.c: Re-generate.
9070 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9072 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9074 * ppc-linux-nat.c: Update copyright.
9075 (fetch_register, store_register): Add tid parameter, don't compute
9077 (fetch_ppc_registers, store_ppc_registers): Add tid
9078 parameter. Pass it along to callees.
9079 (fetch_inferior_registers, store_inferior_registers): Compute tid
9080 here, and pass it to calleed functions.
9081 (fill_gregset, supply_fpregset): Clean up formatting.
9083 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9085 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9086 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9088 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9090 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9091 * gdbarch.c gdbarch.h: Regenerate.
9092 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9094 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9095 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9096 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9098 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9099 * arm-tdep.c (arm_get_longjmp_target): New function.
9100 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9101 this to a positive value register arm_get_longjmp_target as the
9103 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9104 (arm_linux_init_abi): Set up longjmp description in tdep.
9105 * armnbsd-nat.c (get_longjmp_target): Delete.
9106 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9107 description in tdep.
9108 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9109 (get_longjmp_target): Delete declaration.
9110 (GET_LONGJMP_TARGET): Delete.
9111 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9112 (GET_LONGJMP_TARGET): Delete.
9114 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9116 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9117 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9118 of ``current_gdbarch''.
9120 2002-02-17 Tom Tromey <tromey@redhat.com>
9122 * cli/cli-cmds.c (compare_strings): New function.
9123 (complete_command): Only print each unique item once.
9124 * completer.h (complete_line): Declare.
9125 * completer.c (complete_line): New function.
9126 (line_completion_function): Use it.
9128 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9130 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9131 * gdbarch.h, gdbarch.c: Re-generate.
9133 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9135 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9137 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9139 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9140 * valops.c (value_arg_coerce): Don't take the address of a reference
9141 to convert an argument to a reference.
9143 2002-02-15 Christopher Faylor <cgf@redhat.com>
9145 * win32-nat.c (get_image_name): New function.
9146 (handle_load_dll): Use get_image_name function.
9147 (get_child_debug_event): Avoid registering debug events until possibly
9148 execed process is started.
9149 (child_create_inferior): Allow invocation via shell so that command
9150 line redirection, etc. works ok.
9151 (_initialize_inftarg): Add new command: "set shell" to control whether
9152 a shell is used to start a process.
9154 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9156 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9157 instead of find_register_by_number.
9158 (cannot_store_register): Likewise.
9160 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9162 * dwarf2read.c: Replace fprintf (stderr, ...) by
9163 fprintf_unfiltered (gdb_stderr, ...).
9165 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9167 * gdbserver/gdbserver.1: Document --attach.
9169 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9171 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9173 * arm-tdep.c (arm_default_arm_le_breakpoint)
9174 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9175 (arm_default_thumb_be_breakpoint): New. Initialize them from
9176 traditional breakpoint defines.
9177 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9178 (arm_gdbarch_init): Initialize new breakpoint variables.
9179 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9180 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9181 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9182 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9184 (arm_netbsd_init_abi_common): ... here; new function.
9185 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9186 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9187 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9188 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9190 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9192 * arm-tdep.h (enum arm_abi): New enum.
9193 (struct gdbarch_tdep): New structure.
9194 (LOWEST_PC): Provide a default.
9195 (arm_gdbarch_register_os_abi): Declare new function.
9196 * arm-tdep.c (arm_abi_names): New array.
9197 (process_note_abi_tag_sections): New function.
9198 (get_elfosabi): New function.
9199 (arm_gdbarch_register_os_abi): New function.
9200 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9201 support for that ABI has been built in, then call the appropriate
9202 configuration routine. Use gdbarch_num_regs() to get the number
9204 (arm_dump_tdep): New function.
9205 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9206 place-holder functions.
9207 (_initialize_arm_tdep): Register them.
9208 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9210 * armnbsd-tdep.c: New file.
9211 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9212 * config/arm/nbsd.mt (TDEPFILES): Add it.
9213 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9215 * armnbsd-nat.c: Include regcache.h.
9216 * Makefile.in (armnbsd-nat.o): Update dependency list.
9218 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9220 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9222 * gdbserver/Makefile.in: Fix typos in target rules.
9224 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9226 Fix part of PR gdb/267.
9227 * linespec.c (find_methods): Handle constructors specially for now.
9229 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9231 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9233 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9234 standard_coerce_float_to_double().
9236 2002-02-14 Christopher Faylor <cgf@redhat.com>
9238 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9241 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9243 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9244 find_variant_by_name, because it confuses the multiarch
9245 framework. Return NULL if there isn't an architecture with the
9246 user supplied name, instead of forcing a different one without
9247 recording the change with the multiarch machinery.
9248 (find_variant_by_name): Delete.
9250 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9252 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9253 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9255 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9257 * stack.c (print_frame_info_base): When calling
9258 print_frame_info_listing_hook, set current_source_symtab.
9260 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9262 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9263 and remove unused $(INCLUDE_DIR).
9264 Add regcache.c to OBS.
9265 Add generated register protocol files to clean target.
9266 Update dependencies for new objects, obsolete old target code.
9268 * gdbserver/linux-low.c: Remove all platform-specific code to
9269 new files. Remove various dead code. Update to use regcache
9271 * gdbserver/remote-utils.c (fromhex): Add return statement
9273 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9275 (input_interrupt): Add integer parameter to match prototype
9276 of a signal handler.
9277 (outreg): Use register_data ().
9278 (prepare_resume_reply): Use gdbserver_expedite_regs.
9279 * gdbserver/server.c (main): Dynamically allocate own_buf because
9280 PBUFSIZ is no longer constant. Use registers_to_string () and
9281 registers_from_string ().
9282 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9283 for error (), fatal (), and warning (). Update definition of
9284 PBUFSIZ to use regcache functionality. Add include guard.
9285 * gdbserver/utils.c (fatal): Add missing ``const''.
9286 (warning): New function.
9288 * regformats/regdat.sh: Include "regcache.h" in generated files.
9289 Provide init_registers () function.
9290 * regformats/regdef.h: Add prototype for set_register_cache ().
9293 * gdbserver/linux-arm-low.c: New file.
9294 * gdbserver/linux-i386-low.c: New file.
9295 * gdbserver/linux-ia64-low.c: New file.
9296 * gdbserver/linux-m68k-low.c: New file.
9297 * gdbserver/linux-mips-low.c: New file.
9298 * gdbserver/linux-ppc-low.c: New file.
9299 * gdbserver/linux-sh-low.c: New file.
9301 * gdbserver/regcache.c: New file.
9302 * gdbserver/regcache.h: New file.
9304 * gdbserver/low-linux.c: Removed obsolete file.
9306 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9308 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9309 * config/i386/linux.mt: Likewise.
9310 * config/ia64/linux.mt: Likewise.
9311 * config/m68k/linux.mh: Likewise.
9312 * config/powerpc/linux.mh: Likewise.
9313 * config/mips/linux.mt: Likewise.
9315 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9317 * config/i386/i386lynx.mh: Mark gdbserver variables
9318 as (currently) obsolete for this target.
9319 * config/i386/nbsd.mt: Likewise.
9320 * config/i386/nbsdelf.mt: Likewise.
9321 * config/m32r/m32r.mt: Likewise.
9322 * config/m68k/m68klynx.mh: Likewise.
9323 * config/m68k/nbsd.mt: Likewise.
9324 * config/m68k/sun3os4.mh: Likewise.
9325 * config/mips/vr5000.mt: Likewise.
9326 * config/ns32k/nbsd.mt: Likewise.
9327 * config/pa/hppabsd.mh: Likewise.
9328 * config/pa/hppaosf.mh: Likewise.
9329 * config/powerpc/nbsd.mt: Likewise.
9330 * config/rs6000/rs6000lynx.mh: Likewise.
9331 * config/s390/s390.mt: Likewise.
9332 * config/s390/s390x.mt: Likewise.
9333 * config/sparc/sparclynx.mh: Likewise.
9334 * config/sparc/sun4os4.mh: Likewise.
9335 * config/i386/x86-64linux.mt: Likewise.
9336 * config/sparc/linux.mh: Likewise.
9338 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9340 * configure.tgt: Configure gdbserver only for known working
9341 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9342 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9343 SUBDIRS if it is configured. Update comment for ${nativefile}.
9344 * configure: Regenerated.
9346 2002-02-13 Michael Snyder <msnyder@redhat.com>
9348 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9350 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9351 (default_gcore_mach): Just return 0, work around a problem in bfd.
9352 (default_gcore_target): OK to return NULL if exec_bfd is null.
9353 (make_mem_sec): Use a cast, avoid a warning.
9355 * procfs.c (find_memory_regions_callback): Use a cast instead of
9356 calling host_pointer_to_address (which complains if
9357 sizeof (host pointer) != sizeof (target pointer)).
9358 (procfs_make_note_section): Avoid overflow in psargs string.
9360 * procfs.c (procfs_make_note_section): Make the default
9361 implementation return an error.
9363 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9365 * procfs.c (procfs_make_note_section): Provide a default definition
9366 (for alpha-dec-osf4.0f). Fix typos.
9368 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9370 * linux-proc.c: Add include of regcache.h.
9371 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9373 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9375 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9376 * memattr.c (create_mem_region): Disallow useless empty region.
9377 Regions are half-open intervals, so allow [A..B) [B..C) as
9380 2002-02-13 Michael Chastain <mec@shout.net>
9382 * defs.h: Kill CONST_PTR.
9383 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9384 * c-lang.c (c_builtin_types): Likewise.
9385 * ch-lang.c (ch_builtin_types): Likewise.
9386 * f-lang.c (f_builtin_types): Likewise.
9387 * language.c (unknown_builtin_types): Likewise.
9388 * m2-lang.c (m2_builtin_types): Likewise.
9389 * p-lang.c (pascal_builtin_types): Likewise.
9390 * scm-lang.c (c_builtin_types): Likewise.
9392 2002-02-13 Keith Seitz <keiths@redhat.com>
9394 * arm-tdep.h (arm_get_next_pc): Add declaration.
9396 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9398 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9399 with other related struct-returning functions.
9400 (arm_extract_struct_value_address): New function.
9401 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9402 initialize float_format, double_format and long_double_format as
9403 appropriate to the endianness of the target.
9404 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9405 (arm_use_struct_convention): Delete declaration.
9406 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9408 2002-02-13 Keith Seitz <keiths@redhat.com>
9410 * defs.h (core_addr_to_string_nz): New function.
9412 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9414 Apply missing bits of 2002-01-15 patch.
9415 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9416 (fill_fpregset): Use i387_fill_fsave.
9418 2002-02-12 Keith Seitz <keiths@redhat.com>
9420 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9421 (core_addr_to_string_nz): New function.
9423 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9425 * arm-linux-nat.c: Really include arm-tdep.h.
9426 * config/arm/tm-linux.h (struct type, struct value): Declare.
9428 2002-02-11 Michael Snyder <msnyder@redhat.com>
9430 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9431 (gcore section): Ifdef for Solaris and Unixware only.
9432 (procfs_do_thread_registers): Unixware needs one lwpstatus
9433 per thread (not one prstatus or pstatus).
9434 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9435 not over all gdb threads. For unixware, call elfcore_write_pstatus
9436 once before iterating over threads.
9438 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9440 * arm-tdep.h: New file.
9441 * arm-tdep.c: Include arm-tdep.h.
9442 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9443 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9444 (arm_print_float_info, arm_register_type, convert_to_extended)
9445 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9446 (arm_extract_return_value, arm_register_name): Make static.
9447 (arm_software_single_step): Similarly. Fix types in declaration.
9448 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9449 (arm_store_return_value, arm_store_struct_return): New functions.
9450 (arm_gdbarch_init): Register the above functions. Also register
9451 call_dummy_start_offset, sizeof_call_dummy_words,
9452 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9453 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9454 max_register_virtual_size, register_size. Set up
9455 prologue_cache.saved_regs here, rather than ...
9456 (_initialize_arm_tdep): ... here.
9457 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9459 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9460 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9461 (arm_print_float_info, arm_register_type, convert_to_extended)
9462 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9463 (arm_extract_return_value, arm_register_name): Delete declarations.
9464 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9465 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9466 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9467 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9468 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9469 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9470 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9471 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9472 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9473 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9474 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9475 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9477 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9478 * remote-rdi.c remote-rdp.c: Likewise.
9479 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9480 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9481 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9484 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9485 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9486 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9487 from non-ARM_ prefixed definitions.
9488 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9490 * remote-rdi.c remote-rdp.c: Likewise.
9491 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9493 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9495 * arm-tdep.c (arm_frameless_function_invocation)
9496 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9497 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9498 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9499 (arm_pop_frame, arm_get_next_pc): Make static.
9500 (arm_gdbarch_init): Register above in gdbarch structure.
9501 (arm_read_fp): Renamed from arm_target_read_fp.
9502 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9503 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9504 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9505 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9506 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9507 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9508 (arm_pc_is_thumb_dummy): Delete declarations.
9509 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9510 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9511 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9512 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9514 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9516 * symtab.c (compare_search_syms): New function.
9517 (sort_search_symbols): New function.
9518 (search_symbols): Sort symbols after searching rather than
9521 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9523 * NEWS: Linux -> GNU/Linux.
9525 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9527 * gdbarch.sh: For for level one methods, disallow a definition
9528 when partially multi-arched. Add comments explaining rationale.
9529 * gdbarch.h: Re-generate.
9531 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9533 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9536 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9538 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9540 * gdbarch.c: Re-generate.
9542 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9544 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9545 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9548 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9550 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9552 (PUSH_ARGUMENTS): Switch to using predefault.
9553 * gdbarch.c: Regenerate.
9555 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9557 * valops.c (PUSH_ARGUMENTS): Delete definition.
9558 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9559 partial. Default to default_push_arguments.
9560 * gdbarch.h, gdbarch.c: Regenerate.
9562 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9564 * defs.h (throw_exception): Rename return_to_top_level. Update
9566 * utils.c (error_stream, internal_verror, quit): Ditto.
9567 * top.c (throw_exception, catcher): Ditto.
9568 * sparclet-rom.c (sparclet_load): Ditto.
9569 * remote.c (interrupt_query, minitelnet): Ditto.
9570 * remote-sds.c (interrupt_query): Ditto.
9571 * remote-mips.c (mips_error, mips_kill): Ditto.
9572 * ocd.c (interrupt_query): Ditto.
9573 * monitor.c (monitor_interrupt_query): Ditto.
9574 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9575 * target.h: Update comment.
9577 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9579 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9581 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9582 default_double_format.
9583 * gdbarch.h, gdbarch.c: Re-generate.
9584 * findvar.c (floatformat_unknown): Delete variable definition.
9585 * doublest.h (floatformat_unknown): Delete variable declaration.
9587 2002-02-09 Jim Blandy <jimb@redhat.com>
9589 * stabsread.c (read_type): Add code to parse Sun's syntax for
9590 prototyped function types.
9592 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9594 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9595 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9597 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9599 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9600 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9601 now _initialize_xcoffsolib gets called again and overrides the
9602 commands from solib.c in a native configuration.
9604 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9606 * doublest.c (store_typed_floating): Don't try to return a value.
9609 2002-02-08 Jim Blandy <jimb@redhat.com>
9611 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9612 is prototyped and has no arguments, print its argument list as
9615 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9617 * MAINTAINERS (write-after-approval): Add myself.
9618 (paper-trail): I've escaped!
9620 2002-02-08 Christopher Faylor <cgf@redhat.com>
9622 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9624 (_initialize_check_for_gdb_ini): Ditto.
9626 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9628 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9629 xaprintf -> xasprintf.
9631 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9633 * win32-nat.c: Remove use of printf and sprintf functions.
9635 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9637 * arm-tdep.c (arm_frame_chain_valid): Make static.
9638 (arm_push_arguments): Likewise.
9639 (arm_gdbarch_init): New function.
9640 (_initialize_arm_tdep): Call it.
9641 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9642 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9643 (FRAME_CHAIN_VALID): Delete.
9644 (arm_frame_chain_valid): Delete declaration.
9645 (PUSH_ARGUMENTS): Delete.
9646 (arm_push_arguments): Delete declaration.
9647 (CALL_DUMMY_P): Delete.
9649 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9650 Corinna Vinschen <vinschen@redhat.com>
9652 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9653 on builtin float types.
9655 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9657 * utils.c: Include <curses.h> before "bfd.h".
9658 * tui/tui-hooks.c: Likewise.
9659 * tui/tui.c: Likewise.
9660 * tui/tuiCommand.c: Likewise.
9661 * tui/tuiData.c: Likewise.
9662 * tui/tuiDataWin.c: Likewise.
9663 * tui/tuiDisassem.c: Likewise.
9664 * tui/tuiGeneralWin.c: Likewise.
9665 * tui/tuiIO.c: Likewise.
9666 * tui/tuiLayout.c: Likewise.
9667 * tui/tuiRegs.c: Likewise.
9668 * tui/tuiSource.c: Likewise.
9669 * tui/tuiSourceWin.c: Likewise.
9670 * tui/tuiStack.c: Likewise.
9671 * tui/tuiWin.c: Likewise.
9673 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9675 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9676 to include space for pseudoregs as well. Update loops accordingly.
9677 (sh_fp_frame_init_saved_regs): Ditto.
9678 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9680 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9682 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9683 Add Richard Earnshaw to Arm maintainers.
9685 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9687 * defs.h (warning_begin): Delete declaration.
9689 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9692 2002-02-07 Michael Snyder <msnyder@redhat.com>
9694 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9695 Logic bug, remove misplaced else.
9697 2002-02-07 Klee Dienes <klee@apple.com>
9699 * fork-inferior.c (fork_inferior): Add '!' to the list of
9700 characters that need to be quoted when building a string for the
9701 shell. Quote '!' specifically with a backslash, since CSH chokes
9702 when trying to evaluate "str!str".
9704 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9706 * rdi-share/host.h: Only provide a typedef for bool if it is not
9709 2002-02-04 Michael Snyder <msnyder@redhat.com>
9711 * breakpoint.h (enum bptype): Add new overlay event bp type.
9712 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9714 * breakpoint.c (create_internal_breakpoint): New function.
9715 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9716 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9717 (create_thread_event_breakpoint): Ditto.
9718 (create_solib_event_breakpoint): Ditto.
9719 (create_overlay_event_breakpoint): New function.
9720 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9721 (update_breakpoints_after_exec): Delete and re-initialize
9722 overlay event breakpoints after an exec. Add FIXME comment
9723 about longjmp breakpoint.
9724 (print_it_typical): Ignore overlay event breakpoints.
9725 (print_one_breakpoint): Ditto.
9727 (bpstat_what): Do not stop for overlay event breakpoints.
9728 (delete_breakpoint): Don't delete overlay event breakpoints.
9729 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9730 (breakpoint_re_set): Re-create overlay event breakpoint.
9732 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9733 (overlay_manual_command): Disable overlay breakpoints.
9734 (overlay_off_command): Disable overlay breakpoints.
9736 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9738 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9739 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9740 to here from config/tm-arm.h.
9741 (coff_sym_is_thumb): Make static.
9742 (arm_elf_make_msymbol_special): New function.
9743 (arm_coff_make_msymbol_special): New function.
9744 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9745 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9746 (coff_sym_is_thumb): Delete declaration.
9747 (arm_elf_make_msymbol_special): Declare.
9748 (arm_coff_make_msymbol_special): Declare.
9749 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9750 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9752 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9754 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9756 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9758 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9759 * gdbarch.c gdbarch.h: Regenerate.
9760 * arch-utils.c (default_print_float_info): New function.
9761 * arch-utils.h (default_print_float_info): Prototype it.
9762 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9763 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9764 (PRINT_FLOAT_INFO): Document it.
9766 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9767 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9768 (PRINT_FLOAT_INFO): Define.
9770 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9772 * win32-nat.c (_initialize_check_for_gdb_ini):
9773 Add typecast to sprintf argument to suppress a warning.
9775 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9777 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9778 to allow easier handling of pass state.
9779 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9780 that gives exception name and address.
9781 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9782 and set last_sig value to ourstatus->value.sig. Some missing
9784 (child_continue): Correctly report continue_status.
9785 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9786 TARGET_SIGNAL_0 (new default value).
9787 (child_resume): consider sig argument passed to decide if
9788 the exception should be passed to debuggee or not.
9790 2002-02-05 Michael Snyder <msnyder@redhat.com>
9792 * regcache.c (fetch_register): Call target_fetch_register
9793 only if we don't call FETCH_PSEUDO_REGISTER.
9794 (store_register): Call target_store_register only if we
9795 don't call STORE_PSEUDO_REGISTER.
9797 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9799 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9800 ELF_MAKE_MSYMBOL_SPECIAL.
9801 * gdbarch.c, gdbarch.h: Regenerate.
9802 * arch-utils.c (default_make_msymbol_special): New function.
9803 * arch-utils.h (default_make_msymbol_special): Export.
9804 * elfread.c (elf_symtab_read): Compile use of
9805 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9807 * coffread.c (coff_symtab_read): Ditto, for
9808 COFF_MAKE_MSYMBOL_SPECIAL.
9810 2002-02-05 Jim Blandy <jimb@redhat.com>
9812 * solib-svr4.c (svr4_truncate_ptr): New function.
9813 (svr4_relocate_section_addresses): Do the address arithmetic with
9814 the appropriate truncation for target addresses, even when
9815 CORE_ADDR is larger than a target address.
9817 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9819 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9822 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9824 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9827 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9829 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9831 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9833 * gdbserver/linux-low.c: Remove unused include files.
9835 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9837 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9838 (read_inferior_memory): Use it.
9839 (write_inferior_memory): Likewise.
9841 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9843 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9844 grubbing through sys_errlist.
9846 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9848 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9850 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9851 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9853 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9855 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9856 (do_sfunc, set_cmd_sfunc): New functions.
9858 * command.h (struct cmd_list_element): Add field func.
9859 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9860 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9861 * cli/cli-decode.h: Ditto.
9863 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9864 (help_all, help_cmd_list): Ditto.
9865 (find_cmd, complete_on_cmdlist): Ditto.
9866 * top.c (execute_command): Ditto.
9868 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9871 * infcmd.c (notice_args_read): Fix function signature.
9873 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9874 * cli/cli-decode.c (add_set_cmd): Ditto.
9875 * utils.c (initialize_utils): Ditto.
9876 * maint.c (_initialize_maint_cmds): Ditto.
9877 * infrun.c (_initialize_infrun): Ditto.
9878 * demangle.c (_initialize_demangler): Ditto.
9879 * remote.c (add_packet_config_cmd): Ditto.
9880 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9881 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9882 * proc-api.c (_initialize_proc_api): Ditto.
9883 * kod.c (_initialize_kod): Ditto.
9884 * valprint.c (_initialize_valprint): Ditto.
9885 * top.c (init_main): Ditto.
9886 * infcmd.c (_initialize_infcmd): Ditto.
9887 * corefile.c (_initialize_core): Ditto.
9888 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9889 * arch-utils.c (initialize_current_architecture): Ditto.
9890 (_initialize_gdbarch_utils): Ditto.
9891 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9893 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9894 * wince.c (_initialize_inftarg): Ditto.
9895 * symfile.c (_initialize_symfile): Ditto.
9896 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9897 * language.c (_initialize_language): Ditto.
9898 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9900 2002-02-04 Michael Snyder <msnyder@redhat.com>
9902 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9904 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9906 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9907 Add rules for building the register data files.
9909 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9911 * regformats/regdat.sh: Add braces to the definition of
9912 expedite_regs_${arch}.
9914 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9916 * regformats/regdef.h (struct reg): Add comment describing the
9917 requirements for offset and size fields.
9919 2002-02-04 Andreas Schwab <schwab@suse.de>
9921 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9922 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9924 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9926 * gdbarch.sh (copyright): Update years in generated header.
9927 (SMASH_TEXT_ADDRESS): Add rule.
9928 * gdbarch.h, gdbarch.c: Re-generate.
9929 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9930 * dbxread.c: Likewise.
9931 * dwarfread.c: Likewise.
9932 * elfread.c: Likewise.
9933 * somread.c: Likewise.
9935 * arm-tdep.c (arm_smash_text_address): New function.
9936 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9938 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9940 Add support for hardware watchpoints on win32 native.
9941 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9942 CONTEXT_DEBUG_REGISTERS.
9943 (dr variable): New variable. Static array containing a local copy
9945 (debug_registers_changed): New variable. Reflects when debug registers
9946 are changed and need to be written to inferior.
9947 (debug_registers_used): New variable. Reflects when any debug register
9948 was set, used when new threads are created.
9949 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9951 (thread_rec): Set dr array if id is the thread of current_event .
9952 (child_continue, child_resume): Change the debug registers for all
9953 threads if debug_registers_changed.
9954 (child_add_thread): Change the debug registers if debug_registers_used.
9955 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9956 Link nm.h to new nm-cygwin.h file.
9957 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9958 of hardware registers.
9960 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9962 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9963 Restore behavour broken by 2002-01-20 Andrew Cagney
9964 <ac131313@redhat.com> IEEE_FLOAT removal.
9966 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9968 * c-valprint.c (c_val_print): Pass a proper valaddr to
9969 cp_print_class_method.
9970 * valops.c (search_struct_method): If there is only one method
9971 and args is NULL, return that method.
9973 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9975 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9976 accessing tag_name directly.
9978 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9980 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9981 of accessing tag_name directly.
9983 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9986 * gdbtypes.c (replace_type): New function.
9987 * gdbtypes.h (replace_type): Add prototype.
9988 * stabsread.c (read_type): Use replace_type.
9990 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9992 * Makefile.in (memattr.o): Add missing dependencies rule.
9994 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9996 * breakpoint.c (break_at_finish_command): Really export.
9997 (break_at_finish_at_depth_command): Ditto.
9998 (tbreak_at_finish_command): Ditto.
9999 * hppa-tdep.c: Include completer.h.
10000 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10001 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10003 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10005 * utils.c (do_write): New function.
10006 (error_stream): Rewrite combining the code from error_begin and
10008 (verror): Rewrite using error_stream.
10009 (error_begin): Delete function.
10011 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10013 * utils.c (error_begin): Make static.
10014 * defs.h (error_begin): Delete declaration.
10016 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10017 (decode_line_1): Use cplusplus_error instead of error_begin,
10018 cplusplus_hint and return_to_top_level.
10019 * coffread.c (coff_symfile_read): Use error instead of error_begin
10020 and return_to_top_level.
10021 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10023 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10025 * language.h (type_error, range_error): Make string parameter
10027 * language.c (warning_pre_print): Delete extern declaration.
10028 * dwarfread.c (warning_pre_print): Ditto.
10029 * language.c (type_error, range_error): Rewrite to use verror and
10030 vwarning instead of warning_begin.
10032 2002-02-01 Michael Snyder <msnyder@redhat.com>
10034 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10035 (set_ignore_count): Move misplaced comment back where it belongs.
10037 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10039 * command.h (NO_FUNCTION): Delete macro.
10040 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10041 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10042 * tracepoint.c (_initialize_tracepoint): Ditto.
10043 * cli/cli-decode.c (add_set_cmd): Ditto.
10044 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10046 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10048 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10049 Update ``this'' pointer when calling virtual functions.
10051 2002-02-01 Michael Snyder <msnyder@redhat.com>
10053 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10054 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10056 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10058 * regformats/reg-arm.dat: New file.
10059 * regformats/reg-i386.dat: New file.
10060 * regformats/reg-ia64.dat: New file.
10061 * regformats/reg-m68k.dat: New file.
10062 * regformats/reg-mips.dat: New file.
10063 * regformats/reg-ppc.dat: New file.
10064 * regformats/reg-sh.dat: New file.
10065 * regformats/regdef.h: New file.
10066 * regformats/regdat.sh: New file.
10068 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10070 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10071 (arm_frame_args_address, arm_frame_locals_address): New functions.
10072 (arm_frame_num_args): New function.
10073 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10074 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10075 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10077 2002-01-31 Michael Snyder <msnyder@redhat.com>
10079 * breakpoint.c (break_at_finish_command): Export.
10080 (break_at_finish_at_depth_command): Export.
10081 (tbreak_at_finish_command): Export.
10082 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10083 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10084 "tbreak" commands, which are HPPA specific.
10086 * printcmd.c (disassemble_command): Remove an ancient
10087 artifact of an old merge.
10089 * symfile.h (enum overlay_debugging_state):
10090 Define enum constant values for overlay mode.
10091 * symfile.c (overlay_debugging): Use enums instead of literals.
10092 (overlay_is_mapped, overlay_auto_command,
10093 overlay_manual_command): Ditto.
10095 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10096 breakpoint_here_p, breakpoint_inserted_here_p,
10097 breakpoint_thread_match, bpstat_stop_status,
10098 describe_other_breakpoints, check_duplicates, clear_command):
10099 Coding standard fixes.
10101 * target.c (target_xfer_memory): Add spaces, coding standard.
10102 (do_xfer_memory): Add missing line to trust-readonly
10103 code: check bfd SEC_READONLY flag for section.
10105 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10107 * PROBLEMS: Fix typo, 5.1->5.1.1.
10109 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10111 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10112 data symbols, since we search based on textlow and texthigh.
10113 (find_pc_sect_symtab): Likewise.
10115 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10117 * defs.h (vwarning): Declare.
10118 * utils.c (vwarning): New function.
10119 (warning): Call vwarning.
10120 (warning_begin): Delete function.
10122 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10123 the warning message.
10124 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10127 2002-01-30 Michael Snyder <msnyder@redhat.com>
10129 * NEWS: Mention "set trust-readonly-sections" command.
10130 Mention generate-core-file command.
10132 2002-01-15 Michael Snyder <msnyder@redhat.com>
10134 * target.c: New command, "set trust-readonly-sections on".
10135 (do_xfer_memory): Honor the suggestion to trust readonly sections
10136 by reading them from the object file instead of from the target.
10137 (initialize_targets): Register command "set trust-readonly-sections".
10139 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10141 * parse.c (target_map_name_to_register): Simplify, search regs and
10142 pseudo-regs using a single loop.
10144 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10146 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10148 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10150 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10151 * config/i386/i386v42mp.mh: Add i387-nat.o .
10152 * i386v4-nat.c: Include i387-nat.h.
10153 (supply_fpregset): Use i387_supply_fsave.
10154 (fill_fpregset): Use i387_fill_fsave.
10156 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10158 * arm-tdep.c (arm_call_dummy_words): Define.
10159 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10160 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10161 (CALL_DUMMY_WORDS): Define.
10162 (arm_call_dummy_words): Declare.
10163 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10164 (arm_linux_call_dummy_words): Declare.
10166 2002-01-30 Andreas Schwab <schwab@suse.de>
10168 * m68klinux-nat.c: Fix last change to use regcache_collect
10169 instead of referencing registers[] directly.
10171 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10173 * parse.c (target_map_name_to_register): Delete code wrapped in
10174 #ifdef REGISTER_NAME_ALIAS_HOOK.
10176 2002-01-28 Michael Snyder <msnyder@redhat.com>
10178 * regcache.c (legacy_read_register_gen): Need to be able to
10179 read pseudo-register as well as real register.
10180 (legacy_write_register_gen): Ditto.
10182 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10184 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10185 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10186 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10187 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10188 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10189 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10190 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10191 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10192 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10193 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10194 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10195 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10196 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10197 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10198 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10199 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10200 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10201 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10202 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10203 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10205 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10207 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10208 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10209 (initialize_current_architecture): Update target_byte_order using
10210 information from BFD.
10211 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10212 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10214 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10216 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10217 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10219 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10220 #ifdef INVALID_FLOAT.
10221 * infcmd.c (do_registers_info): Ditto.
10222 * values.c (unpack_double): Ditto. Add comment.
10224 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10225 already commented out.
10227 2002-01-26 Andreas Schwab <schwab@suse.de>
10229 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10230 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10231 registers and add support for PTRACE_GETREGS.
10233 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10235 GDB 5.1.1 released from 5.1 branch.
10236 * NEWS: Add 5.1.1 news.
10237 * README: Sync with 5.1 branch.
10239 2002-01-23 Fred Fish <fnf@redhat.com>
10241 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10242 stabstring on initial malloc. Reallocing will copy it for us,
10245 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10247 * Makefile.in (hpread_h): Delete.
10248 (HFILES_NO_SRCDIR): Remove hpread.h.
10249 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10250 (hpread.o): Update dependencies.
10251 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10253 * hp-psymtab-read.c: Remove file.
10254 * hp-symtab-read.c: Remove file.
10255 * hpread.h: Remove file.
10257 * hpread.c: Merge all contents of hp-psymtab-read.c,
10258 hp-symtab-read.c and hpread.h into this file, as it was prior to
10261 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10262 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10263 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10264 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10266 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10268 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10269 fill_gregset): Call gdbarch_tdep() just once, assign result to
10270 variable and use that, instead of calling the function several
10273 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10275 * configure.host: Accept sparcv9 as alias for sparc64.
10276 * configure.tgt: Likewise.
10278 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10280 * solib-aix5.c (build_so_list_from_mapfile)
10281 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10282 arguments is not reversed.
10283 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10284 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10286 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10288 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10289 modified version of obsolete sh_fetch_pseudo_register.
10290 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10291 (sh4_register_read): New function.
10292 (sh_pseudo_register_write): New function. Renamed and modified
10293 version of obsolete sh_store_pseudo_register.
10294 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10295 (sh4_register_write): New function.
10296 (sh_gdbarch_init): Remove setting of gdbarch function
10297 fetch_pseudo_register and store_pseudo_register. Remove setting of
10298 register_convert_to_raw, register_convert_to_virtual,
10299 register_convertible.
10300 (sh_sh4_register_convertible): Delete. No longer needed. All is
10301 taken care by architecture specific functions
10302 register_read/register_write.
10303 (sh_sh4_register_convert_to_virtual): Make static.
10304 (sh_sh4_register_convert_to_raw): Ditto.
10306 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10308 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10309 (floatformat_is_nan, floatformat_mantissa): Ditto.
10311 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10312 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10313 builtin_type_ieee_double_little,
10314 builtin_type_ieee_double_littlebyte_bigword,
10315 builtin_type_m68881_ext, builtin_type_i960_ext,
10316 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10317 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10318 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10319 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10321 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10323 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10324 parameter. Set frameless flag if it exists and depended of
10325 whether the scanned function is frameless or not.
10326 (xstormy16_skip_prologue): If function is frameless, return
10327 result of xstormy16_scan_prologue().
10328 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10331 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10333 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10334 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10335 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10336 sh_sh4_register_byte, sh_sh4_register_raw_size,
10337 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10338 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10339 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10340 sh_store_pseudo_register, sh_do_pseudo_register): Call
10341 gdbarch_tdep() just once, assign result to variable and use that,
10342 instead of calling the function several times.
10344 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10346 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10347 macros instead of LAST_FPU_CTRL_REGNUM.
10348 (store_register): Likewise.
10350 2002-01-21 Jim Blandy <jimb@redhat.com>
10352 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10353 is up-to-date before running the program, not just when a program
10356 2002-01-21 Fred Fish <fnf@redhat.com>
10358 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10359 when we have found all instructions we are looking for.
10361 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10363 * arm-tdep.c (arm_register_name): New function.
10364 (arm_registers_names): Make static.
10365 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10366 (arm_register_name): Declare.
10367 (REGISTER_NAME): Use it.
10369 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10370 Kevin Buettner <kevinb@redhat.com>
10372 Convert arm targets to new FRAME interface.
10373 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10374 (arm_frame_find_save_regs): Delete.
10375 (arm_frame_init_saved_regs): New.
10376 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10377 Allocate extra_info as required. Convert all uses of fsr.regs
10378 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10380 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10381 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10382 (check_prologue_cache, save_prologue_cache): Likewise.
10383 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10384 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10385 (FRAME_FIND_SAVED_REGS): Delete.
10386 (arm_frame_find_saved_regs): Delete prototype.
10387 (arm_frame_init_saved_regs): New prototype.
10388 (FRAME_INIT_SAVED_REGS): Define.
10390 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10392 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10394 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10396 From Jeff Law <law@redhat.com>:
10397 * infttrace.c: Include <sys/pstat.h>.
10398 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10399 exec file if the ttrace equivalent fails.
10401 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10403 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10404 (closeLogFile): Ditto.
10406 2002-01-20 Michael Chastain <mec@shout.net>
10408 * top.c (print_gdb_version): Bump copyright year to 2002.
10410 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10412 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10413 Zannoni and Eli Zaretskii.
10415 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10417 * buildsym.c: Update copyright years.
10418 * c-typeprint.c: Likewise.
10419 * dwarf2read.c: Likewise.
10420 * f-typeprint.c: Likewise.
10421 * gdbtypes.c: Likewise.
10422 * gdbtypes.h: Likewise.
10423 * hp-symtab-read.c: Likewise.
10424 * hpread.c: Likewise.
10425 * mdebugread.c: Likewise.
10426 * p-typeprint.c: Likewise.
10428 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10430 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10431 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10432 byte-order selectable.
10433 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10434 * arch-utils.c: Ditto.
10435 (set_endian): Ditto.
10436 (set_endian_from_file): Ditto.
10437 * gdbserver/low-sim.c (create_inferior): Ditto.
10438 * gdbarch.sh: Ditto.
10439 * gdbarch.h: Re-generate.
10440 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10441 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10442 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10443 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10444 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10445 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10446 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10447 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10449 * config/mips/tm-wince.h: Remove #undef of macro
10450 TARGET_BYTE_ORDER_SELECTABLE.
10451 * config/sh/tm-wince.h: Ditto.
10453 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10455 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10456 member function fields. Add accessor macro
10457 TYPE_FN_FIELD_ARTIFICIAL.
10458 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10459 * c-typeprint.c (c_type_print_base): Skip artificial member
10462 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10464 * f-typeprint.c: Delete unused function f_type_print_args.
10465 * p-typeprint.c: Delete unused function pascal_type_print_args.
10467 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10469 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10470 comment. Add ``artificial'' to ``union field_location''.
10472 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10474 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10475 * mdebugread.c (parse_symbol): Likewise.
10476 * stabsread.c (define_symbol): Likewise.
10477 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10478 initializing TYPE_FIELD_BITPOS to n (obsolete).
10479 (hpread_doc_function_type): Likewise.
10480 * hpread.c (hpread_function_type): Likewise.
10482 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10484 * configure.in (host_makefile_frag): Only require a host makefile
10485 fragment when a native build.
10486 * configure: Re-generate.
10488 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10490 * doublest.h (floatformat_from_type): Declare.
10491 * doublest.c (floatformat_from_type): New function.
10492 (convert_typed_floating): Use.
10494 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10495 call to function floatformat_from_type.
10497 * gdbarch.sh (IEEE_FLOAT): Delete.
10498 * gdbarch.h, gdbarch.c: Re-generate.
10499 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10500 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10501 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10502 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10503 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10504 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10505 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10506 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10507 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10508 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10509 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10510 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10512 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10513 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10514 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10515 * sh-tdep.c (sh_gdbarch_init): Ditto.
10516 * mips-tdep.c (mips_gdbarch_init): Ditto.
10517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10518 * cris-tdep.c (cris_gdbarch_init): Ditto.
10520 2002-01-20 Jiri Smid <smid@suse.cz>
10522 * configure.host, configure.tgt: Support x86-64.
10523 * NEWS: Note new target x86-64.
10525 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10526 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10527 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10528 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10529 x86-64-linux-nat.o): Fix dependencies.
10531 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10533 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10534 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10535 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10536 * config/sparc/xm-sun4os4.h: Delete file.
10537 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10539 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10541 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10542 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10543 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10544 * config/i386/i386lynx.mh (XM_FILE): Delete.
10545 * config/rs6000/xm-rs6000ly.h: Delete file.
10546 * config/sparc/xm-sparclynx.h: Delete file.
10547 * config/m68k/xm-m68klynx.h: Delete file.
10548 * config/i386/xm-i386lynx.h: Delete file.
10549 * config/xm-lynx.h: Delete file.
10550 * config/djgpp/fnchange.lst: Update.
10552 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10554 * alpha-tdep.c (alpha_register_byte): New function.
10555 (alpha_register_raw_size): Ditto.
10556 (alpha_register_virtual_size): Ditto.
10557 (alpha_skip_prologue_internal): Renamed from
10558 alpha_skip_prologue.
10559 (alpha_skip_prologue): New version that calls
10560 alpha_skip_prologue_internal.
10561 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10562 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10563 second argument from alpha_skip_prologue.
10564 (REGISTER_BYTE): Use alpha_register_byte.
10565 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10566 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10567 (FRAMELESS_FUNCTION_INVOCATION): Use
10568 generic_frameless_function_invocation_not.
10569 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10570 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10572 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10574 * config/mips/xm-news-mips.h: Delete file.
10575 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10577 * config/m88k/xm-m88k.h: Delete file.
10578 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10579 * config/m88k/xm-delta88v4.h: Ditto.
10580 * config/m88k/xm-delta88.h: Ditto.
10582 * config/alpha/xm-fbsd.h: Delete file.
10583 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10585 * config/sparc/xm-sparc.h: Delete file.
10586 * Makefile.in (xm-sun4os4.h): Delete dependency.
10587 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10588 * config/sparc/xm-sun4os4.h: Ditto.
10589 * config/sparc/xm-linux.h: Ditto.
10591 * config/i386/xm-windows.h: Delete file.
10593 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10595 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10596 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10598 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10600 * alpha-tdep.c (alpha_call_dummy_words): New.
10601 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10602 (CALL_DUMMY_P): Define.
10603 (CALL_DUMMY_WORDS): Define.
10604 (SIZEOF_CALL_DUMMY_WORDS): Define.
10606 2002-01-19 Per Bothner <per@bothner.com>
10608 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10609 isn't NULL, which can happen with some gcj-3.x-produced code.
10611 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10613 * alpha-tdep.c (alpha_register_virtual_type): New function.
10614 (alpha_init_frame_pc_first): Ditto.
10615 (alpha_fix_call_dummy): Ditto.
10616 (alpha_store_struct_return): Ditto.
10617 (alpha_extract_struct_value_address): Ditto.
10618 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10619 alpha_register_virtual_type.
10620 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10621 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10622 alpha_extract_struct_value_address.
10623 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10624 (INIT_FRAME_PC): Use init_frame_pc_noop.
10625 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10627 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10629 * i386gnu-nat.c: Include "i386-tdep.h".
10630 (fetch_fpregs): Simplify code dealing with uninitialized floating
10631 point states such that it doesn't require FP7_REGNUM.
10633 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10635 * alpha-tdep.c (frame_extra_info): New.
10636 (alpha_find_saved_regs): Make static. Use
10638 (alpha_frame_init_saved_regs): New function.
10639 (alpha_frame_saved_pc): Use frame->extra_info.
10640 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10641 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10642 (init_extra_frame_info): Rename to...
10643 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10644 (alpha_print_extra_frame_info): New function.
10645 (alpha_frame_locals_address): Ditto.
10646 (alpha_frame_args_address): Ditto.
10647 (alpha_pop_frame): Use frame->extra_info.
10648 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10649 alpha_frame_args_address.
10650 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10651 (alpha_find_saved_regs): Remove prototype.
10652 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10653 (EXTRA_FRAME_INFO): Remove.
10654 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10655 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10657 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10659 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10660 (alpha_cannot_fetch_register): Ditto.
10661 (alpha_cannot_store_register): Ditto.
10662 (alpha_register_convertible): Ditto.
10663 (alpha_use_struct_convention): Ditto.
10664 * config/alpha/tm-alpha.h: Update copyright years.
10665 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10666 (INNER_THAN): Use core_addr_lessthan.
10667 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10668 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10669 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10670 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10671 (FRAME_CHAIN): Remove unnecessary cast.
10673 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10675 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10678 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10680 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10681 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10682 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10683 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10684 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10685 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10686 * x86-64-linux-nat.c: Ditto.
10688 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10690 * alpha-tdep.c (alpha_register_name): New function.
10691 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10692 (REGISTER_NAME): Define.
10694 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10696 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10698 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10700 * alpha-tdep.c: Update copyright years.
10701 (alpha_next_pc): New function.
10702 (alpha_software_single_step): Ditto.
10703 * config/alpha/tm-alpha.h: Add prototype for
10704 alpha_software_single_step.
10706 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10708 * alphabsd-nat.c: Update copyright years.
10709 (fill_gregset): Use regcache_collect.
10710 (fill_fpregset): Likewise.
10711 (fetch_inferior_registers): Only fetch integer registers
10712 if requested to do so.
10713 (store_inferior_registers): Only store integer registers
10714 if requested to do so.
10716 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10718 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10719 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10720 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10721 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10722 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10723 * config/arm/linux.mh (XDEPFILES): Delete.
10724 * config/arm/nbsd.mh (XDEPFILES): Delete.
10725 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10726 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10727 * config/i386/i386m3.mh (XDEPFILES): Delete.
10728 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10729 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10730 * config/i386/fbsd.mh (XDEPFILES): Delete.
10731 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10732 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10733 * config/i386/i386v4.mh (XDEPFILES): Delete.
10734 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10735 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10736 * config/i386/i386aix.mh (XDEPFILES): Delete.
10737 * config/i386/go32.mh (XDEPFILES): Delete.
10738 * config/i386/cygwin.mh (XDEPFILES): Delete.
10739 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10740 * config/i386/i386mach.mh (XDEPFILES): Delete.
10741 * config/i386/i386v32.mh (XDEPFILES): Delete.
10742 * config/i386/linux.mh (XDEPFILES): Delete.
10743 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10744 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10745 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10746 * config/i386/i386sco.mh (XDEPFILES): Delete.
10747 * config/i386/i386v.mh (XDEPFILES): Delete.
10748 * config/i386/nbsd.mh (XDEPFILES): Delete.
10749 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10750 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10751 * config/i386/symmetry.mh (XDEPFILES): Delete.
10752 * config/i386/obsd.mh (XDEPFILES): Delete.
10753 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10754 * config/ia64/linux.mh (XDEPFILES): Delete.
10755 * config/ia64/aix.mh (XDEPFILES): Delete.
10756 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10757 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10758 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10759 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10760 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10761 * config/m68k/linux.mh (XDEPFILES): Delete.
10762 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10763 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10764 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10765 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10766 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10767 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10768 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10769 * config/m88k/delta88.mh (XDEPFILES): Delete.
10770 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10771 * config/m88k/m88k.mh (XDEPFILES): Delete.
10772 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10773 * config/mips/linux.mh (XDEPFILES): Delete.
10774 * config/mips/irix6.mh (XDEPFILES): Delete.
10775 * config/mips/irix5.mh (XDEPFILES): Delete.
10776 * config/mips/irix4.mh (XDEPFILES): Delete.
10777 * config/mips/irix3.mh (XDEPFILES): Delete.
10778 * config/mips/decstation.mh (XDEPFILES): Delete.
10779 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10780 (NATDEPFILES): Move core-aout.o to here.
10781 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10782 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10783 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10784 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10785 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10786 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10787 * config/pa/hpux11.mh (XDEPFILES): Delete.
10788 * config/powerpc/aix.mh (XDEPFILES): Delete.
10789 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10790 * config/powerpc/linux.mh (XDEPFILES): Delete.
10791 * config/romp/rtbsd.mh: Rename XDEPFILES.
10792 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10793 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10794 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10795 * config/s390/s390.mh (XDEPFILES): Delete.
10796 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10797 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10798 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10799 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10800 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10801 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10802 * config/sparc/linux.mh (XDEPFILES): Delete.
10803 * config/vax/vaxult.mh (XDEPFILES): Delete.
10804 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10805 * Makefile.in (DEPFILES): Remove XDEPFILES.
10807 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10809 * utils.c (internal_verror): Fix comments, default is yes not no.
10810 Update queries to match. Default to quit and dump core.
10812 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10814 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10816 * defs.h, event-top.c, gdbcmd.h: Ditto.
10817 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10818 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10819 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10820 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10821 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10822 * mi/mi-main.c:Ditto.
10824 * stack.c, symfile.c: Update copyright.
10826 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10828 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10829 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10830 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10831 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10833 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10835 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10836 * gdbserver/low-lynx.c (myattach): Likewise.
10837 * gdbserver/low-nbsd.c (myattach): Likewise.
10838 * gdbserver/low-sim.c (myattach): Likewise.
10839 * gdbserver/low-sparc.c (myattach): Likewise.
10840 * gdbserver/low-sun3.c (myattach): Likewise.
10842 * gdbserver/low-linux.c (myattach): New function.
10844 * gdbserver/server.c (attach_inferior): New function.
10845 (main): Handle "--attach".
10847 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10849 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10852 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10854 * c-typeprint.c (is_type_conversion_operator): Add additional
10855 check for non-conversion operators.
10857 2002-01-15 Michael Snyder <msnyder@redhat.com>
10859 * linux-proc.c: Add "info proc" command, a la procfs.c.
10860 (read_mapping): New function, abstract and re-use code.
10861 (linux_find_memory_regions): Use new func read_mapping.
10862 (linux_info_proc_cmd): New function, implement "info proc".
10863 (_initialize_linux_proc): Add new command "info proc".
10865 2002-01-15 Michael Snyder <msnyder@redhat.com>
10867 * symfile.c (generic_load): Use bfd_map_over_sections method
10868 instead of manipulating bfd structure members directly.
10869 (add_section_size_callback): New function, bfd sections callback
10870 used by generic_load.
10871 (load_sections_callback): New function, bfd sections callback
10872 used by generic_load.
10874 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10876 [Based on work by Jim Blandy]
10877 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10878 (builtin_type_vec128): Export.
10879 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10881 (builtin_type_vec128): New builtin type for 128 bit vector
10883 (build_gdbtypes): Initialize builtin_type_v16qi and
10884 builtin_type_v8hi. Create the vec128 register builtin type
10886 (build_builtin_type_vec128): New function.
10887 (_initialize_gdbtypes): Register builtin_type_v16qi and
10888 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10889 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10890 AltiVec register to new builtin type.
10892 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10894 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10897 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10899 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10900 CLEAN_UP_REGISTER_VALUE.
10901 * regcache.c (supply_register): Update only call.
10903 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10905 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10906 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10907 a29k-*-vxworks* targets as obsolete.
10909 2002-01-14 Michael Snyder <msnyder@redhat.com>
10911 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10912 until we can resolve portability issues.
10913 * gregset.h: Remove references to fpxregs.
10914 * gcore.c (gcore_command): Initialize note_sec to NULL.
10916 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10918 * signals.c (target_signal_to_name): Rewrite. Only use
10919 signals[].name when in bounds and non-NULL.
10921 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10923 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10924 * signals.c (target_signal_to_name): Verify that SIG is within the
10925 bounds of the signals array.
10927 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10929 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10931 2002-01-13 Keith Seitz <keiths@redhat.com>
10933 * stack.c (print_frame_info_base): Print the frame's pc
10934 only if when print_frame_info_listing_hook is not defined.
10936 2002-01-13 Keith Seitz <keiths@redhat.com>
10938 * varobj.c (varobj_set_value): Make sure that there were no
10939 errors evaluating the object before attempting to set its
10941 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10942 so this offset adjustment is no longer necessary.
10943 (create_child): Don't set the error flag if the child is
10944 a CPLUS_FAKE_CHILD.
10945 (value_of_child): If value_fetch_lazy fails, return NULL
10946 so that callers will be notified that an error occurred.
10947 (c_value_of_variable): Delay check of variable's validity
10948 until later. We actually want all structs and unions to have
10950 Do not return "???" for variables which could not be evaluated.
10951 This error condition must be returned to the caller so that it
10952 can get the error condition from gdb.
10953 (cplus_name_of_child): Adjust index for vptr before figuring
10954 out the name of the child.
10955 (cplus_value_of_child): If a child's (real) parent is not valid,
10956 don't even bother trying to give a value for it. Just return
10957 an error. Change all instances in this function.
10958 (cplus_type_of_child): If our parent is one of the "fake"
10959 parents, we need to get at the type of the real parent, and
10960 derive the child's true type using this information.
10962 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10964 From 2002-01-09 John Marshall <johnm@falch.net>:
10965 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10966 sources.redhat.com, and tweak some related URLs which had
10967 suffered from linkrot.
10969 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10972 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10973 structures passed in registers.
10975 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10977 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10978 white space which prevented compilation. Reported by DSK
10979 <dsk@student.unsw.edu.au>.
10981 2002-01-11 Michael Snyder <msnyder@redhat.com>
10983 * symfile.c (build_section_addr_info_from_section_tab):
10984 Use bfd access method instead of manipulating bfd directly.
10985 (syms_from_objfile): Ditto.
10986 (simple_overlay_update_1): Ditto.
10987 (simple_overlay_update): Ditto.
10988 (generic_load): Ditto.
10989 (overlay_unmapped_address): FIXME comment, bfd access methods.
10990 (sections_overlap): FIXME comment, bfd access methods.
10991 (pc_in_mapped_range): FIXME comment, bfd access methods.
10992 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10993 (section_is_mapped): FIXME comment, bfd access methods.
10994 (section_is_overlay): FIXME comment, bfd access methods.
10996 * symfile.c (generic_load): Whitespace and long line cleanups.
10997 Remove duplicate variable, change several local variables to
10998 more appropriate data types.
10999 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11001 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11003 From Peter Schauer:
11004 * language.c (longest_local_hex_string_custom): Use phex_nz to
11005 convert NUM to a hex string.
11007 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11009 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11011 Update Copyright year.
11013 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11015 * language.c (longest_raw_hex_string): Delete unused function.
11017 2002-01-11 Petr Sorfa <petrs@caldera.com>
11019 * MAINTAINERS (write-after-approval): Add myself.
11020 * dwarf2read.c (read_tag_string_type): Handling of
11022 (read_tag_string_type): FORTRAN fix to prevent propagation of
11024 (set_cu_language): Handling of DW_LANG_Fortran95
11026 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11028 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11029 GETPID(inferior_ptid).
11030 (store_inferior_registers): Likewise.
11032 2002-01-10 Jason Merrill <jason@redhat.com>
11034 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11037 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11039 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11040 and bfd/elf32-sh-nbsd.c.
11042 2002-01-10 Michael Snyder <msnyder@redhat.com>
11044 * NEWS: Mention --pid and corefile/proc-id behavior change.
11046 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11047 * gcore.c: Include cli/cli-decode.h instead of command.h.
11049 * main.c (captured_main): Add new command line option "--pid".
11050 If the second command line argument (following the symbol-file)
11051 begins with a digit, try to attach to it before trying to open
11053 (print_gdb_help): Document the "--pid" argument.
11055 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11057 * completer.c (command_completer): New function.
11059 * completer.h <command_completer>: Add prototype.
11061 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11062 completer for the "help" command.
11064 2002-01-09 Jason Merrill <jason@redhat.com>
11066 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11068 2002-01-09 Michael Snyder <msnyder@redhat.com>
11070 * i386-linux-nat.c (fill_fpxregset): Make global.
11071 (store_fpxregset): Ditto.
11073 * gregset.h (gdb_fpxregset_t): Define.
11074 (supply_fpxregset): Prototype.
11075 (fill_fpxregset): Prototype.
11077 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11079 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11081 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11082 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11083 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11085 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11087 * MAINTAINERS: Update target maintainer rules so that any
11088 Maintainer can approve a tested patch for a maintenance-only
11091 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11093 * MAINTAINERS (write-after-approval): Add myself.
11095 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11098 2002-01-08 Michael Snyder <msnyder@redhat.com>
11100 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11101 real name of the executable, rather than the /proc name.
11103 2002-01-03 Michael Snyder <msnyder@redhat.com>
11105 Implement a "generate-core-file" command in gdb, save target state.
11106 * gcore.c: New file. Implement new command 'generate-core-file'.
11107 Save a corefile image of the current state of the inferior.
11108 * linux-proc.c: Add linux-specific code for saving corefiles.
11109 * target.h (struct target_ops): Add new target vectors for saving
11110 corefiles; to_find_memory_regions and to_make_corefile_notes.
11111 (target_find_memory_regions): New macro.
11112 (target_make_corefile_notes): New macro.
11113 * target.c (update_current_target): Inherit new target methods.
11114 (dummy_find_memory_regions): New place-holder method.
11115 (dummy_make_corefile_notes): New place-holder method.
11116 (init_dummy_target): Initialize new dummy target vectors.
11117 * exec.c (exec_set_find_memory_regions): New function.
11118 Allow the exec_ops vector for memory regions to be taken over.
11119 (exec_make_note_section): New function, target vector method.
11120 * defs.h (exec_set_find_memory_regions): Export prototype.
11121 * procfs.c (proc_find_memory_regions): New function, corefile method.
11122 (procfs_make_note_section): New function, corefile method.
11123 (init_procfs_ops): Set new target vector pointers.
11124 (find_memory_regions_callback): New function.
11125 (procfs_do_thread_registers): New function.
11126 (procfs_corefile_thread_callback): New function.
11127 * sol-thread.c (sol_find_memory_regions): New function.
11128 (sol_make_note_section): New function.
11129 (init_sol_thread_ops): Initialize new target vectors.
11130 * inftarg.c (inftarg_set_find_memory_regions): New function.
11131 Allow to_find_memory_regions vector to be taken over.
11132 (inftarg_set_make_corefile_notes): New function.
11133 Allow to_make_corefile_notes vector to be taken over.
11134 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11135 interface layer if not target_has_execution (may be a corefile).
11136 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11137 * config/sparc/sun4sol2.mh: Ditto.
11138 * config/alpha/alpha-linux.mh: Ditto.
11139 * config/arm/linux.mh: Ditto.
11140 * config/i386/x86-64linux.mh: Ditto.
11141 * config/ia64/linux.mh: Ditto.
11142 * config/m68k/linux.mh: Ditto.
11143 * config/mips/linux.mh: Ditto.
11144 * config/powerpc/linux.mh: Ditto.
11145 * config/sparc/linux.mh: Ditto.
11147 2002-01-07 Michael Snyder <msnyder@redhat.com>
11149 * arm-linux-nat.c: Remove references to regcache.c internal data
11150 (registers[] and register_valid[]).
11152 2002-01-07 Michael Snyder <msnyder@redhat.com>
11154 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11155 so that attaching to a pid will automatically read the process's
11156 symbol file and shlibs.
11157 * Makefile.in: Add rule for linux-proc.o.
11158 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11159 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11160 * config/arm/linux.mh: Ditto.
11161 * config/i386/linux.mh: Ditto.
11162 * config/i386/x86-64linux.mh: Ditto.
11163 * config/ia64/linux.mh: Ditto.
11164 * config/m68k/linux.mh: Ditto.
11165 * config/mips/linux.mh: Ditto.
11166 * config/powerpc/linux.mh: Ditto.
11167 * config/sparc/linux.mh: Ditto.
11169 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11171 * win32-nat.c: Add i386-tdep.h dependency.
11173 2002-01-07 Michael Snyder <msnyder@redhat.com>
11175 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11176 instead of bfd_get_arch_size. Don't bail out just because
11177 there's no exec_bfd.
11179 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11180 * p-valprint.c (pascal_object_print_value): Ditto.
11181 * somread.c (som_symtab_read): Ditto.
11182 * symfile.c (simple_free_overlay_region_table): Ditto.
11183 * valops.c (value_assign): Ditto.
11185 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11186 use tilde_expand and strerror for opening save-tracepoints file.
11188 * thread-db.c (thread_db_new_objfile): Indendation fix.
11190 * infptrace.c (GDB_MAX_ALLOCA): New define.
11191 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11192 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11193 can be overridden with whatever value is appropriate to the host).
11194 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11195 alloca to allocate potentially large buffer.
11196 * rs6000-nat.c (child_xfer_memory): Ditto.
11197 * symm-nat.c (child_xfer_memory): Ditto.
11198 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11200 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11202 From Nick Clifton <nickc@redhat.com>
11203 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11205 2002-01-07 Michael Snyder <msnyder@redhat.com>
11207 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11208 Don't use exec_bfd if it's NULL.
11210 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11212 * valops.c (value_arg_coerce): Fix formatting.
11214 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11216 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11217 * gnu-nat.c: Ditto.
11219 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11221 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11222 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11223 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11224 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11225 z8k-coff have not been multi-arched. Update z8k-coff build
11228 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11230 * MAINTAINERS: Mark a29k target as obsolete.
11231 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11232 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11234 * NEWS: Note that a29k targets are obsolete.
11235 * a29k-tdep.c: Mark as obsolete.
11236 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11237 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11238 a29k-*-vxworks* targets as obsolete.
11239 * remote-adapt.c: Obsolete.
11240 * remote-eb.c: Obsolete.
11241 * remote-mm.c: Obsolete.
11242 * remote-udi.c: Obsolete.
11243 * config/a29k/a29k-udi.mt: Obsolete.
11244 * config/a29k/a29k.mt: Obsolete.
11245 * config/a29k/tm-a29k.h: Obsolete.
11246 * config/a29k/tm-vx29k.h: Obsolete.
11247 * config/a29k/vx29k.mt: Obsolete.
11249 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11251 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11252 with BFD_ENDIAN_BIG.
11254 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11256 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11257 * configure, config.in: Re-generate.
11258 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11259 * defs.h: Do not include <endian.h>.
11261 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11263 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11264 * config.in: Regenerate.
11265 * configure.in: Update copyright years.
11266 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11267 * configure: Regenerate.
11268 * i386bsd-nat.c: Update copyright years.
11269 (fill_gregset): Use regcache_collect.
11270 (fetch_inferior_registers): Only fetch integer registers
11271 if requested to do so. Add support for XMM registers
11272 using PT_GETXMMREGS.
11273 (store_inferior_registers): Only store integer registers
11274 if requested to do so. Add support for XMM registers
11275 using PT_SETXMMREGS.
11276 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11277 (store_inferior_registers): Remove.
11278 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11279 (fetch_elfcore_registers): New function.
11280 (i386nbsd_elfcore_fns): New.
11281 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11282 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11284 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11285 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11286 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11287 * config/i386/tm-nbsd.h: Update copyright years.
11288 (HAVE_SSE_REGS): Define.
11289 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11290 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11291 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11292 (SIGCONTEXT_PC_OFFSET): Remove.
11293 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11295 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11297 * configure.tgt: Remove powerpc-*-macos* target.
11298 * config/m68k/xm-mpw.h: Delete file.
11299 * config/xm-mpw.h: Delete file.
11300 * ser-mac.c: Delete file.
11301 * mpw-make.sed: Delete file.
11302 * mpw-config.in: Delete file.
11303 * mac-xdep.c: Delete file.
11304 * mac-gdb.r: Delete file.
11305 * mac-defs.h: Delete file.
11306 * mac-nat.c: Delete file.
11307 * config/powerpc/macos.mh: Delete file.
11308 * config/powerpc/macos.mt: Delete file.
11309 * config/powerpc/nm-macos.h: Delete file.
11310 * config/powerpc/tm-macos.h: Delete file.
11311 * source.c (openp, open_source_file): Remove obsolete code.
11312 * top.c (gdb_readline): Ditto.
11313 * utils.c (query): Ditto.
11314 * event-top.c (display_gdb_prompt): Ditto.
11315 * Makefile.in (ser-mac.o): Delete obsolete target.
11318 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11320 * defs.h (BIG_ENDIAN): Delete macro definition.
11321 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11322 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11323 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11324 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11325 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11326 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11327 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11328 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11329 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11330 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11331 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11332 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11333 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11334 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11335 * gdbarch.c: Re-generate.
11337 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11339 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11342 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11344 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11346 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11348 * value.h (value_ptr): Delete typedef.
11350 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11352 * i386nbsd-nat.c: Update copyright years.
11353 Include i386-tdep.h.
11355 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11357 * stabsread.c: Update copyright years.
11359 From Debashis Mahata <debashis.mahata@wipro.com>:
11360 (read_struct_fields): Deal with Sun C compiler erroneous stab
11361 output for structs and unions.
11364 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11366 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11369 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11371 * cp-abi.c: Fix whitespace.
11372 (baseclass_offset): New wrapper function.
11373 * cp-abi.h (baseclass_offset): Add prototype.
11374 (struct cp_abi_ops): Add baseclass_offset pointer.
11376 * valops.c (vb_match): Move to...
11377 * gnu-v2-abi.c (vb_match): here.
11378 * valops.c (baseclass_offset): Move to...
11379 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11381 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11383 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11384 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11385 * hpacc-abi.c (init_hpacc_ops): Likewise.
11387 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11389 * valops.c (find_overload_match): Accept obj as a
11390 reference parameter. Update it before returning.
11391 * value.h (find_overload_match): Update prototype.
11392 * eval.c (evaluate_subexp_standard): Pass object to
11393 find_overload_match by reference.
11395 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11397 * valarith.c: Replace value_ptr with struct value pointer. Remove
11398 register attribute from value declarations.
11401 * scm-lang.c (scm_lookup_name): Ditto.
11403 2002-01-03 Michael Snyder <msnyder@redhat.com>
11405 Abstract the functionality of iterating over mapped memory
11406 regions into a general purpose iterator function.
11407 * procfs.c (iterate_over_mappings): New function, general purpose
11408 iterator for memory sections.
11409 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11410 (solib_mappings_callback): New function, callback for above.
11411 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11412 (info_mappings_callback): New function, callback for above.
11414 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11416 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11418 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11419 * i386-tdep.c: Include "elf-bfd.h".
11420 (process_note_abi_tag_sections): New function.
11421 (i386_gdbarch_init): Add code to recognize various OS/ABI
11424 * maint.c (_initialize_maint_cmds): Add missing \ in
11427 For older changes see ChangeLog-2001
11433 version-control: never