1 2002-09-20 Nick Clifton <nickc@redhat.com>
3 * NEWS: Announce that V850EA ISA is no longer supported.
4 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
6 2002-09-20 David Carlton <carlton@math.stanford.edu>
8 * Makefile.in (c-lang.o): Correct dependencies.
9 (utils.o): Gather dependencies.
11 * c-lang.c: #include "gdb_string.h"
13 2002-09-20 Fernando Nasser <fnasser@redhat.com>
15 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
16 * cli/cli-cmds.c (list_command): New function. Implements the new
18 (_init_cli_cmds): Add new command definition.
19 * gdb.1: Document edit command.
20 * doc/gdb.texinfo: Document edit command.
22 2002-09-20 Fernando Nasser <fnasser@redhat.com>
24 * source.c: Make global variables current_source_symtab and
25 current_source_line static.
26 (list_command): Moved to cli/cli-cmds.c.
27 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
28 (get_first_line_listed): New accessor function.
29 (get_lines_to_list): New accessor function.
30 (get_current_source_symtab_and_line): New function. Retrieves the
31 position in the source code that we consider current.
32 (get_current_or_default_source_symtab_and_line): New function.
33 Like the above but attempts to determine a default position if one
34 is not currently defined.
35 (set_current_source_symtab_and_line): New function. Sets the source
36 code position considered current and returns the previously set one.
37 (clear_current_source_symtab_and_line): Reset stored information about
38 a current source line.
39 (_initialize_source): Remove registration for the "list" command and
41 * source.h: Add declarations for the new functions above.
42 * symtab.h: Remove declarations for the global variables mentioned
44 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
45 obtain current source line.
46 * linespec.c (decode_line_1): Ditto.
47 * macroscope.c (default_macro_scope): Ditto.
48 * scm-lang.c (scm_unpac): Ditto.
49 * stack.c (print_frame_info_base): Ditto.
50 * symfile.c (clear_symtab_users): Ditto.
51 * symtab.c (decode_line_spec): Ditto.
52 * cli/cli-cmds.c (list_command): Moved here from source.c.
53 (ambiguous_line_spec): Moved here from source.c.
54 (_init_cli_cmds): Add definition for "list" and its alias.
55 * Makefile.in: Update dependencies.
57 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
59 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
60 with what gcc thinks is correct.
62 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
64 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
65 multiple register push instruction.
67 2002-09-19 Jim Blandy <jimb@redhat.com>
69 Add support for distinct host and target character sets.
70 * charset.c, charset.h: New files.
71 * c-exp.y: #include "charset.h".
72 (yylex): Convert character and string literals to the target
73 character set, before returning them as the semantic value of the
75 * c-lang.c: #include "charset.h".
76 (c_emit_char): Use charset-specific methods to recognize
77 characters with backslash escape forms, to decide which characters
78 to print literally and which to print using numeric escape
79 sequences, and to convert target characters to host characters
81 * utils.c: #include "charset.h".
82 (no_control_char_error): New function.
83 (parse_escape): Use charset-specific methods to recognize
84 backslash escapes, parse `control character' notation, and convert
85 characters from the host character set to the target character set.
86 * configure.in: Set the default host character set.
87 Check where to find iconv, and what its argument types might be.
88 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
89 * Makefile.in (SFILES): List charset.c.
90 (COMMON_OBS): List charset.o.
91 (charset.o): New rule.
92 (charset_h): New header dependency variable.
93 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
94 (LIBICONV): New variable, set by configure.
95 (CLIBS): Include $(LIBICONV) here.
96 * aclocal.m4, config.in, configure: Regenerated.
98 2002-09-19 Joel Brobecker <brobecker@gnat.com>
100 * ada-exp.y: Add missing semicolons to end rules. Fixes a
103 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
105 * gdb_mbuild.sh: New file.
107 2002-09-19 Andrew Cagney <ac131313@redhat.com>
109 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
111 2002-09-18 Andrew Cagney <ac131313@redhat.com>
113 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
114 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
115 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
116 valops.c, value.h: Revert previous change.
118 2002-09-18 Michael Snyder <msnyder@redhat.com>
120 Preliminary support for Objective-C:
121 * defs.h (language_objc): New enum value.
122 (puts_filtered_tabular): Declaration only, exported from utils.c.
123 (skip_quoted): Delete, declared in completer.h.
124 * c-exp.y: Include completer.h.
127 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
128 New operator enum values.
129 * language.h (CAST_IS_CONVERSION): Test for language_objc.
130 * language.c (binop_result_type): Handle language_objc case.
131 (integral_type, character_type, string_type, boolean_type,
132 structured_type, binop_type_check): Ditto.
133 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
134 (struct objc_specific): Add to general_symbol_info.
135 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
136 (SYMBOL_DEMANGLED_NAME): Handle objc case.
137 * parser-defs.h (struct objc_class_str): New struct type.
138 (start_msglist, end_msglist, add_msglist): Declaration only,
139 exported from objc-lang.c.
140 * value.h (value_of_local, value_nsstring,
141 call_function_by_hand_expecting_type): Exported from valops.c.
142 * valops.c (find_function_addr): Export.
143 (call_function_by_hand_expecting_type): New function.
144 (value_of_local): New function.
145 * symfile.c (init_filename_language_table): Add ".m" extension
147 * utils.c (puts_filtered_tabular): New function.
148 (fprintf_symbol_filtered): Add objc demangling support (disabled).
149 (set/show demangle): Extend help-string to refer to ObjC.
150 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
151 * stabsread.c (symbol_reference_defined): Objective-C symbols
152 may contain colons: make allowances when scanning stabs strings
154 (objc_find_colon): New function.
155 * printcmd.c (address_info): If language == objc then print
156 "self" instead of "this".
157 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
158 OP_NSSTRING, and OP_SELF.
159 (prefixify_subexp): Ditto.
160 * source.c (print_source_lines): Mention objc in comment.
161 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
164 2002-09-18 Andrew Cagney <ac131313@redhat.com>
166 * complaints.h: Update copyright.
167 (struct complaints): Declare.
168 (struct complaint): Make `message' constant.
169 (internal_complaint): Declare.
170 (complaint): Declare.
171 (complaint_root): Delete declaration.
172 (symfile_complaints): Delete declaration.
173 (struct complaints): Add opaque declaration.
174 (clear_complaints): Add a complaints parameter.
175 * complaints.c: Update copyright.
176 (enum complaint_series): Define.
177 (complaint_root): Delete.
178 (struct complaints): Define.
179 (complaint_sentinel, symfile_complaint_book): New variables.
180 (symfile_explanations, symfile_complaints): New variables.
182 (get_complaints): New function.
183 (vcomplaint): New function.
184 (complaint): New function.
185 (internal_complaint): New function.
186 (complain): Call vcomplain with symfile_complaint.
187 (clear_complaints): Rewrite.
188 (_initialize_complaints): Use add_setshow_command.
189 * Makefile.in (complaints.o): Update dependencies.
190 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
191 to call to clear_complaints.
192 (new_symfile_objfile, reread_symbols): Ditto.
193 (oldsyms_complaint): Delete.
194 (empty_symtab_complaint, unknown_option_complaint): Delete.
195 (free_named_symtabs): Use complaint instead of complain.
197 2002-09-18 Michael Snyder <msnyder@redhat.com>
199 Contributed by Apple Computer, Inc. Merged with current sources
200 by Adam Fedor <fedor@doc.com> [cagney].
202 * objc-lang.c: First clean-up round: comments, indentation.
203 * objc-lang.h: Ditto.
204 * objc-lang.y: Ditto.
206 2002-09-18 Andrew Cagney <ac131313@redhat.com>
208 * maint.c (maintenance_internal_error): Print the parameter as the
210 (maintenance_internal_warning): New function.
211 (_initialize_maint_cmds): Add command `maint internal-warning'.
213 * defs.h (internal_warning, internal_vwarning): Declare.
214 * utils.c (struct internal_problem): Define.
215 (internal_vproblem): New function.
216 (internal_warning): New function.
217 (internal_vwarning): New function.
218 (internal_warning_problem, internal_error_problem): New variables.
219 (internal_verror): Just call internal_vproblem.
221 2002-09-18 Michael Snyder <msnyder@redhat.com>
223 * objc-lang.c: New file, support for Objective-C.
224 Preliminary check-in, not yet integrated into gdb.
225 * objc-lang.h: New file.
226 * objc-exp.y: New file.
228 2002-09-18 Andrew Cagney <ac131313@redhat.com>
230 * infrun.c (signal_stop_update): Convert definition to ISO C.
231 (signal_print_update): Ditto.
232 (signal_pass_update): Ditto.
233 * inflow.c (terminal_save_ours): Ditto.
235 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
238 * config/djgpp/fnchange.lst: Handle name clashes between
239 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
242 * i386-linux-tdep.h: Fix tipo.
244 2002-09-18 Adam Fedor <fedor@gnu.org>
246 * MAINTAINERS: Add myself to the Write After Approval list.
248 2002-09-18 Jim Blandy <jimb@redhat.com>
250 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
251 texthigh and textlow to reader-specific structs caused
252 objfile_relocate to miss them. This is fixable, but the work that
253 the change was supposed to prepare GDB for never got done anyway.
255 2002-09-18 David Carlton <carlton@math.stanford.edu>
257 * MAINTAINERS: Alphabetize Write After Approval list.
259 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
262 * values.c (value_static_field): Call read_var_value.
264 2002-09-18 Andrew Cagney <ac131313@redhat.com>
266 * valops.c (hand_function_call): Align the initial stack pointer
267 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
268 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
270 * mips-tdep.c (mips_frame_align): New function.
271 (mips_gdbarch_init): Set frame_align.
272 * gdbarch.sh (FRAME_ALIGN): New method.
273 * gdbarch.h, gdbarch.c: Re-generate.
275 2002-09-18 Michal Ludvig <mludvig@suse.cz>
277 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
280 2002-09-17 Andrew Cagney <ac131313@redhat.com>
282 * NEWS: Mention that MIPS $fp behavior changed.
283 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
284 reference to FP_REGNUM.
285 (mipsnbsd_cannot_store_register): Ditto.
286 * mips-linux-nat.c: Update copyright.
287 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
288 (mips_linux_cannot_store_register): Ditto.
289 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
290 * config/mips/tm-mips.h: Update copyright.
291 (FP_REGNUM): Delete macro.
292 (MIPS_REGISTER_NAMES): Replace "fp" with "".
293 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
294 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
295 (mips_r3041_reg_names, mips_r3051_reg_names)
296 (mips_r3081_reg_names): Replace "fp" with "".
299 2002-09-17 Theodore A. Roth <troth@verinet.com>
301 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
302 generic_read_register_dummy() (PR gdb/703).
303 (avr_push_return_address): #if 0 out unused vars.
304 (avr_gdbarch_init): Enable use of avr_push_return_address().
306 2002-09-17 Michael Snyder <msnyder@redhat.com>
308 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
309 RTE will take care of it.
311 2002-09-17 Andrew Cagney <ac131313@redhat.com>
313 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
314 invalid, return SP_REGNUM.
316 2002-09-17 Michael Snyder <msnyder@redhat.com>
318 * mips-tdep.c (mips_pop_frame): Read saved values of floating
319 point registers without sign extension.
321 2002-09-17 Andrew Cagney <cagney@redhat.com>
323 * blockframe.c (deprecated_read_register_dummy): Rename
324 generic_read_register_dummy.
325 * frame.c (frame_unwind_signed_register): New function.
326 (frame_unwind_unsigned_register): New function.
327 * frame.h (frame_unwind_signed_register): Declare.
328 (frame_unwind_unsigned_register): Declare.
329 (deprecated_read_register_dummy): Rename
330 generic_read_register_dummy.
332 * h8300-tdep.c (h8300_frame_chain): Update.
333 (h8300_frame_saved_pc): Update.
334 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
335 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
336 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
337 (s390_frame_chain): Update.
338 * v850-tdep.c (v850_find_callers_reg): Update.
339 (v850_frame_saved_pc): Update.
340 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
341 (m32r_find_callers_reg): Update.
342 (m32r_frame_saved_pc): Update.
343 * sh-tdep.c (sh_find_callers_reg): Update.
344 (sh64_get_saved_pr): Update.
345 (sh_init_extra_frame_info): Update.
346 (sh_init_extra_frame_info): Update.
347 (sh64_init_extra_frame_info): Update.
348 (sh64_init_extra_frame_info): Update.
349 * mcore-tdep.c (mcore_find_callers_reg): Update.
350 (mcore_frame_saved_pc): Update.
351 (mcore_init_extra_frame_info): Update.
352 * i386-tdep.c (i386_frame_saved_pc): Update.
353 * ia64-tdep.c (ia64_frame_saved_pc): Update.
354 (ia64_init_extra_frame_info): Update.
355 (ia64_init_extra_frame_info): Update.
356 * d10v-tdep.c (d10v_frame_saved_pc): Update.
357 * cris-tdep.c (cris_init_extra_frame_info): Update.
358 * avr-tdep.c (avr_frame_chain): Update.
359 (avr_init_extra_frame_info): Update.
360 (avr_frame_saved_pc): Update.
361 * arm-tdep.c (arm_find_callers_reg): Update.
362 (arm_init_extra_frame_info): Update.
363 (arm_frame_saved_pc): Update.
365 2002-09-17 Tom Tromey <tromey@redhat.com>
367 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
370 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
372 * MAINTAINERS: Remove "non multi-arched" text from h8300.
373 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
375 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
378 2002-09-16 Joel Brobecker <brobecker@gnat.com>
380 * osfsolib.c: Remove file, replaced by solib-osf.c.
381 * Makefile.in: Remove compilation rules for osfsolib.c.
383 2002-09-16 David Carlton <carlton@math.stanford.edu>
385 * cp-valprint.c (cp_print_class_method): Correct args to
386 check_stub_method_group.
388 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
390 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
391 `set architecture'. Unify naming convention of functions.
392 (h8300_skip_prologue): Improve prologue analysis.
393 (h8300_push_arguments): Rewritten to more closely match GCC's
394 bizarre argument-passing behavior, along with the comment describing
396 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
397 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
398 sim, remote-e7000.c, remote-hms.c and remote.c
400 2002-09-15 Mark Kettenis <kettenis@gnu.org>
402 * i386-tdep.c (gdb_print_insn_i386): Removed.
403 (i386_print_insn): New function.
404 (i386_gdbarch_init): Set print_insn to i386_print_insns.
405 (_initialize_i386_tdep): Don't initialize tm_print_insn and
408 2002-09-14 Mark Kettenis <kettenis@gnu.org>
410 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
413 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
415 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
416 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
417 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
419 2002-09-13 Christopher Faylor <cgf@redhat.com>
421 * win32-nat.c (child_create_inferior): Honor 'tty' command.
423 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
425 * gdbtypes.c (check_stub_method): Make static.
426 (check_stub_method_group): New function.
427 * gdbtypes.h: Update prototypes.
428 * cp-support.c: New file.
429 * cp-support.h: New file.
431 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
432 (update_method_name_from_physname): New function.
433 (read_member_functions): Correct method names for operators
434 and v3 constructors/destructors. Separate v2 constructors and
436 * Makefile.in (stabsread.o): Update dependencies.
437 (SFILES): Add cp-support.c.
438 (COMMON_OBS): Add cp-support.o.
439 (cp_support_h, cp-support.o): Add.
441 * cp-valprint.c (cp_print_class_method): Call
442 check_stub_method_group instead of check_stub_method. Remove
444 * p-valprint.c (pascal_object_print_class_method): Likewise.
445 * valops.c (search_struct_method): Likewise.
446 (find_method_list, value_struct_elt_for_reference): Likewise.
448 2002-09-13 Andrew Cagney <cagney@redhat.com>
450 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
451 * gdbarch.h, gdbarch.c: Regenerate.
453 2002-09-13 Andrew Cagney <ac131313@redhat.com>
455 * frame.c (find_saved_register): Delete function.
456 * frame.h (find_saved_register): Delete declaration.
459 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
461 * mips-tdep.c (read_next_frame_reg): Re-hack using
462 frame_register_unwind.
464 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
466 * mips-tdep.c (mips_get_saved_register): Re-hack using
467 frame_register_unwind.
469 2002-09-12 Joel Brobecker <brobecker@gnat.com>
471 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
472 vector. Will be useful for Interix.
473 * gdbarch.h, gdbarch.c: Regenerate.
475 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
476 name of the malloc function by NAME_OF_MALLOC.
478 2002-09-12 Joel Brobecker <brobecker@gnat.com>
480 * value.h (find_function_in_inferior): Add const keyword to
481 one of the parameters. Allows us to invoke this function with
483 * valops.c (find_function_in_inferior): Likewise.
485 2002-09-12 Joel Brobecker <brobecker@gnat.com>
487 * exec.c (xfer_memory): Fix compilation warning with old versions
489 * tracepoint.c (trace_find_tracepoint_command): Likewise.
491 2002-09-12 David Carlton <carlton@math.stanford.edu>
493 * symtab.h: Run through gdb_indent.h.
494 Add 2002 to Copyright year list.
496 2002-09-12 Alan Modra <amodra@bigpond.net.au>
498 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
500 * MAINTAINERS: Add myself to write after approval list.
502 2002-09-11 J. Brobecker <brobecker@gnat.com>
504 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
506 2002-09-11 J. Brobecker <brobecker@gnat.com>
508 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
511 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
513 * procfs.c (do_detach): Clear current signal, not just fault.
514 Corrects problem with breakpoint trap signal leaking to detached
517 2002-09-10 Michael Snyder <msnyder@redhat.com>
519 * buildsym.c (finish_block): Protect against null pointer.
521 2002-09-10 Andrew Cagney <cagney@redhat.com>
523 * infcmd.c (default_print_registers_info): Send all output to
524 ``file'' instead of ``gdb_stdout''.
526 2002-09-10 Michael Snyder <msnyder@redhat.com>
528 * mips-tdep.c (mips_extract_struct_value_address): Make val a
529 LONGEST, and use signed register read (addresses are sign-
532 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
534 * event-loop.c (gdb_do_one_event): Make public.
535 * event-loop.h (gdb_do_one_event): Declare.
537 2002-09-10 Jeff Law <law@redhat.com>
539 * infttrace.c (child_resume): Simplify and rework to avoid
542 2002-09-09 Fred Fish <fnf@intrinsity.com>
544 * printcmd.c (print_scalar_formatted): "len" is the number of
545 target bytes, NOT the number of target bits.
547 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
549 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
550 * top.c (init_main): Set rl_terminal_name.
552 2002-09-08 Aidan Skinner <aidan@velvet.net>
554 * ada-lang.c (ada_array_bound, ada_type_match,
555 _initialize_ada_language): Fix K&R definitions.
556 * ada-tasks.c (get_current_task): Fix K&R definitions.
557 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
559 2002-09-07 Christopher Faylor <cgf@redhat.com>
561 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
564 2002-09-06 Mark Kettenis <kettenis@gnu.org>
566 * i386-tdep.c (i386_register_virtual_type,
567 i386_register_convertible, i386_register_convert_to_virtual,
568 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
569 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
570 (i386_gdbarch_init): Fix comment. Add comments on calls that set
571 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
572 Don't set push_arguments twice.
574 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
575 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
576 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
577 sigtramp_end to NULL.
578 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
580 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
582 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
585 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
586 * gdbarch.h, gdbarch.c: Re-generate.
587 * blockframe.c (find_pc_sect_partial_function): Convert to use
588 SIGTRAMP_START_P predicate.
590 2002-09-05 Michael Snyder <msnyder@redhat.com>
592 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
593 generic_dummy_frame method and old method. Also distinguish
594 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
595 (arm_extract_return_value): Use new regcache method.
597 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
598 adjustment that doesn't conform to the ABI.
599 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
600 saved regcache, not from current regcache.
602 2002-09-05 Andrew Cagney <ac131313@redhat.com>
604 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
607 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
609 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
610 if arm_apcs_32 is false.
612 2002-09-04 Andrew Cagney <ac131313@redhat.com>
614 GDB 5.3 branch created.
616 2002-09-03 Theodore A. Roth <troth@verinet.com>
618 * gdb/avr-tdep.c (avr_gdbarch_init): Use
619 generic_unwind_get_saved_register.
621 2002-09-03 David Carlton <carlton@math.stanford.edu>
623 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
624 argument (PR gdb/653). Update call to smash_to_method_type.
625 (read_structure_scope): Update call to dwarf2_add_member_fn.
627 2002-09-03 Michal Ludvig <mludvig@suse.cz>
629 * x86-64-linux-tdep.c: Include gdb_string.h
630 * x86-64-linux-nat.c: Ditto.
632 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
634 * ada-exp.y (yyname, yyrule): Remap global variables that appear
635 when YYDEBUG is set to 1.
638 * jv-exp.y: Likewise.
639 * m2-exp.y: Likewise.
642 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
644 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
646 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
647 solib_svr4_fetch_link_map_offsets to
648 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
649 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
650 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
651 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
652 solib-svr4.o, and solib-legacy.o.
653 * config/i386/tm-nbsd.h: Include solib.h.
655 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
657 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
658 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
659 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
660 comment noting that this needs its own target configuration.
661 * config/i386/nbsd.mt: New file.
662 * config/i386/nbsdaout.mt: Remove.
663 * config/i386/nbsdelf.mt: Ditto.
664 * config/i386/tm-nbsdaout.h: Ditto.
666 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
668 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
669 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
670 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
672 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
673 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
674 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
676 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
678 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
679 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
680 * i386-tdep.h (i386bsd_init_abi): New prototype.
681 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
682 function declaration.
683 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
684 for NetBSD-a.out or NetBSD-ELF.
685 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
686 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
687 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
688 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
690 (i386nbsd_pc_in_sigtramp): New function.
691 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
692 i386nbsd_pc_in_sigtramp.
693 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
694 and i386nbsdelf_init_abi OS ABI handlers.
695 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
696 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
698 2002-09-02 Mark Kettenis <kettenis@gnu.org>
700 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
701 registers if the target really has them.
703 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
705 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
708 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
710 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
712 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
713 (alphanbsd_skip_sigtramp_frame): New functions.
714 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
715 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
716 to alphanbsd_sigcontext_addr.
718 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
720 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
722 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
723 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
725 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
726 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
727 * nbsd-tdep.c: Include gdb_string.h.
728 (nbsd_pc_in_sigtramp): New function.
729 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
730 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
731 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
732 ppcnbsd_pc_in_sigtramp.
733 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
734 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
735 shnbsd_pc_in_sigtramp.
736 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
737 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
738 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
740 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
742 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
744 (insert_breakpoints): set val field of watchpoints if NULL.
747 2002-08-29 Jim Blandy <jimb@redhat.com>
749 * symtab.c (lookup_symbol_aux): In the cases where we find a
750 minimal symbol of an appropriate name and use its address to
751 select a symtab to read and search, use `name' (as passed to us)
752 as the demangled name when searching the symtab's global and
753 static blocks, not the minsym's name.
755 2002-08-29 Keith Seitz <keiths@redhat.com>
757 * stack.c (print_frame_info_base): Always set current_source_symtab
758 and current_source_line.
760 2002-08-29 Donn Terry <donnte@microsoft.com>
762 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
764 2002-08-28 Keith Seitz <keiths@redhat.com>
766 * stack.c (select_frame): Add FIXME concerning selected-frame
768 (select_frame_command): Send selected-frame-level-changed
769 event notification, but only if the level actually changed.
770 (up_silently_base): Add selected-frame-level-changed event
772 (down_silently_base): Likewise.
774 2002-08-28 Andrew Cagney <ac131313@redhat.com>
776 * Makefile.in: Update dependencies for all gdb/*.c files.
778 2002-08-27 Tom Tromey <tromey@redhat.com>
780 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
781 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
783 * i387-tdep.c: Include gdb_string.h.
785 * i386-linux-nat.c: Likewise.
786 * lin-lwp.c: Likewise.
787 * ax-gdb.c: Likewise.
788 * signals/signals.c: Likewise.
789 * jv-valprint.c: Likewise.
790 * p-lang.c: Likewise.
791 * c-valprint.c: Likewise.
792 * cp-abi.c: Likewise.
794 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
796 * cli/cli-script.h (copy_command_lines): Export.
797 * breakpoint.c: Include cli/cli-script.h.
798 * Makefile.in (breakpoint.o): Update dependencies.
800 2002-08-26 Michael Snyder <msnyder@redhat.com>
802 * breakpoint.c (insert_breakpoints): Protect all references
803 to 'process_warning'. Shorten long lines.
805 2002-08-26 Joel Brobecker <brobecker@gnat.com>
807 * cli/cli-script.c (copy_command_lines): New function.
808 * defs.h (copy_command_lines): Export.
809 * testsuite/gdb.base/commands.exp: New tests for commands
810 attached to a temporary breakpoint, and for commands that
811 delete the breakpoint they are attached to.
813 2002-08-26 Michael Snyder <msnyder@redhat.com>
815 * breakpoint.c (bpstat_stop_status): Instead of copying the
816 pointer to the breakpoint commands struct, make a new copy
817 of the struct and point to that.
818 (bpstat_clear): Free the commands struct.
819 (bpstat_clear_actions): Free the commands struct.
820 (bpstat_do_actions): Free the command actions. Also execute
821 the local cleanups, instead of deleting them.
822 (delete_breakpoint): Leave the commands field of the bpstat
823 chain alone -- it will be freed later.
825 2002-08-26 Kevin Buettner <kevinb@redhat.com>
827 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
828 deleted in 2002-08-20 commit. This function is still used by
831 2002-08-26 Keith Seitz <keiths@redhat.com>
833 * gdb-events.sh: Add selected-frame-level-changed event.
834 * gdb-events.c: Regenerated.
835 * gdb-events.h: Regenerated.
837 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
840 * inflow.c (terminal_save_ours): New function to save terminal
842 * inferior.h (terminal_save_ours): Declare.
843 * target.c (debug_to_terminal_save_ours): New function.
844 (cleanup_target): Defaults to_terminal_save_ours.
845 (update_current_target): Inherit to_terminal_save_ours.
846 (setup_target_debug): Set to_terminal_save_ours.
847 * target.h (target_terminal_save_ours): New to save terminal settings.
848 (target_ops): New member to_terminal_save_ours.
849 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
850 * hpux-thread.c (init_hpux_thread_ops): Likewise.
851 * inftarg.c (init_child_ops): Likewise.
852 * m3-nat.c (init_m3_ops): Likewise.
853 * procfs.c (init_procfs_ops): Likewise.
854 * wince.c (init_child_ops): Likewise.
855 * win32-nat.c (init_child_ops): Likewise.
856 * sol-thread.c (init_sol_thread_ops): Likewise.
858 2002-08-26 Mark Kettenis <kettenis@gnu.org>
860 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
861 use regcache_* functions.
862 (i386_gdbarch_init): Set store_return_value instead of
863 deprecated_store_return_value.
865 * regcache.c (regcache_raw_write_signed,
866 regcache_raw_write_unsigned): New functions.
867 * regcache.h (regcache_raw_write_signed,
868 regcache_raw_write_unsigned): New prototypes.
870 2002-08-25 Andrew Cagney <ac131313@redhat.com>
872 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
873 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
874 source file dependencies. Cleanup corresponding generator rules.
876 2002-08-25 Andrew Cagney <ac131313@redhat.com>
878 * regcache.h (register_offset_hack): Declare.
879 (regcache_cooked_read_using_offset_hack): Declare.
880 (regcache_cooked_write_using_offset_hack): Declare.
882 * regcache.c (register_offset_hack): New function.
883 (regcache_cooked_read_using_offset_hack): New function.
884 (regcache_cooked_write_using_offset_hack): New function.
885 (regcache_dump): Check that the registers, according to their
886 offset, are packed hard against each other.
887 (cooked_xfer_using_offset_hack): New function.
889 2002-08-25 Andrew Cagney <ac131313@redhat.com>
891 * regcache.c (struct regcache_descr): Add field register_type.
892 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
894 (init_regcache_descr): Initialize register_type. Pass the descr
895 to init_legacy_regcache_descr. Use register_type instead of
896 REGISTER_VIRTUAL_TYPE.
897 (register_type): New function.
898 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
899 * regcache.h (register_type): Declare.
901 2002-08-25 Andrew Cagney <ac131313@redhat.com>
903 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
904 instead of deprecated_store_return_value. Fix fallout from
905 2002-08-23 Andrew Cagney <cagney@redhat.com>.
907 2002-08-25 Andrew Cagney <ac131313@redhat.com>
909 * regcache.c (max_register_size): New function.
910 (init_legacy_regcache_descr): Ensure that max_register_size is
911 large enough for REGISTER_VIRTUAL_SIZE.
912 * regcache.h (max_register_size): Declare.
914 2002-08-24 Andrew Cagney <ac131313@redhat.com>
916 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
918 (e500_extract_return_value): Change type of valbuf pointer to
921 2002-08-24 Mark Kettenis <kettenis@gnu.org>
923 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
926 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
927 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
928 long long) to prevent compiler warning on 64-bit systems.
930 2002-08-23 Andrew Cagney <cagney@redhat.com>
932 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
933 (DEPRECATED_STORE_RETURN_VALUE): New method.
934 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
935 * gdbarch.h, gdbarch.c: Re-generate.
937 * values.c (set_return_value): Pass current_regcache to
939 * arch-utils.h (legacy_store_return_value): Declare.
940 * arch-utils.c (legacy_store_return_value): New function.
941 (legacy_extract_return_value): Update parameters.
943 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
945 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
946 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
947 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
948 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
949 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
950 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
951 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
952 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
953 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
954 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
956 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
957 * i386-tdep.c (i386_extract_return_value): Update.
958 * arch-utils.c (legacy_extract_return_value): Update.
959 * frv-tdep.c (frv_gdbarch_init): Update.
960 * cris-tdep.c (cris_gdbarch_init): Update.
961 * d10v-tdep.c (d10v_gdbarch_init): Update.
962 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
963 * m68k-tdep.c (m68k_gdbarch_init): Update.
964 * mcore-tdep.c (mcore_gdbarch_init): Update.
965 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
966 * s390-tdep.c (s390_gdbarch_init): Update.
967 * sparc-tdep.c (sparc_gdbarch_init): Update.
968 * sh-tdep.c (sh_gdbarch_init): Update.
969 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
970 * v850-tdep.c (v850_gdbarch_init): Update.
971 * avr-tdep.c (avr_gdbarch_init): Update.
972 * ia64-tdep.c (ia64_gdbarch_init): Update.
973 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
974 * vax-tdep.c (vax_gdbarch_init): Update.
975 * alpha-tdep.c (alpha_gdbarch_init): Update.
976 * arm-tdep.c (arm_gdbarch_init): Update.
977 * mips-tdep.c (mips_gdbarch_init): Update.
978 * i386-tdep.c (i386_gdbarch_init): Update.
980 2002-08-23 Andrew Cagney <ac131313@redhat.com>
982 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
983 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
985 2002-08-24 Mark Kettenis <kettenis@gnu.org>
987 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
990 2002-08-23 Joel Brobecker <brobecker@gnat.com>
992 * infrun.c (handle_inferior_event): Move a comment outside of a
993 function call, in order to avoid indent reformatting this part
994 of the code in an unreadable way.
996 2002-08-23 Grace Sainsbury <graces@redhat.com>
998 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
999 when breakpoints fail. Move general breakpoint error messages to
1001 * breakpoint.c (insert_breakpoints): Change warnings when
1002 breakpoints are nto inserted to specify the type. Remove call to
1003 memory_error when hardware breakpoints can't be inserted. Remove
1004 multiple calls to warning so all messages are sent to the user at
1006 (delete_breakpoints): Make insert error messsages more explicit.
1008 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1010 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1011 gdbserver/ChangeLog.
1013 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1015 * i386-tdep.c: Include "objfiles.h".
1016 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1017 skip_trampoline_code.
1018 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1019 (CPLUS_MARKER): Define to '.'.
1021 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1023 (linux_corefile_thread_callback): Increase args->num_notes.
1024 (linux_make_note_section): Initialize thread_args.num_notes, and
1025 use it to determine whether notes for any threads were created.
1027 2002-08-23 Donn Terry <donnte@microsoft.com>
1029 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1030 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1032 (write_with_trace): Conditionalize out the switch branch handling
1033 PCSHOLD if the corresponding macro is not defined. Likewise for
1034 PRSABORT and PRSTOP.
1035 This change will be needed by the Interix port.
1037 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1039 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1040 write_register wherever possible instead of manipulating the
1041 register bytes directly.
1042 Assign VALUE_CONTENTS to a variable and use that.
1043 The GPR numbers are now dependent on the architecture.
1045 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1047 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1049 (skip_prologue): Add support for BookE/e500 instructions.
1050 (e500_extract_return_value): New function.
1051 (frame_get_saved_regs): Add support for saving ev registers and
1053 (e500_store_return_value): New function.
1054 (rs6000_gdbarch_init): Move up default intializations of
1055 deprecated_extract_return_value and store_return_value. Overwrite
1056 init of store_return_value with e500 specific version.
1057 Set extract_return_value for e500.
1059 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1061 * blockframe.c (generic_call_dummy_register_unwind): Use
1062 regcache_cooked_read to catch cases in which the variable is
1063 stored in a pseudo register.
1065 2002-08-22 Andrew Cagney <cagney@redhat.com>
1067 * NEWS: Mention that the i960 has been made obsolete.
1068 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1070 (remote-nrom.o): Obsolete target.
1071 (remote-nindy.o, i960-tdep.o): Ditto.
1072 * remote-nrom.c: Make file obsolete.
1073 * remote-nindy.c, remote-vx960.c: Ditto.
1074 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1075 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1076 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1077 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1078 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1079 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1080 i960-*-vxworks* obsolete.
1081 * MAINTAINERS: Note that the i960 is obsolete.
1083 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1085 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1086 detach to allow reinitialization.
1088 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1090 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1093 2002-08-22 Jim Blandy <jimb@redhat.com>
1095 * coffread.c (coff_symfile_read): Don't try to read the line
1096 number table from disk if the image file doesn't have a symbol
1097 table; we'll never actually look at the info anyway, and Windows
1098 ships DLL's with bogus file offsets for the line number data.
1100 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1102 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1105 2002-08-21 Michael Snyder <msnyder@redhat.com>
1107 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1108 (MSYMBOL_SIZE): Replace macro with function.
1109 (DEFAULT_MIPS_TYPE): Delete unused macro.
1110 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1111 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1113 2002-08-21 Jim Blandy <jimb@redhat.com>
1115 * valops.c (value_cast): Simplify and correct logic for doing a
1116 static cast from a pointer to a base class to a pointer to a
1119 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1121 * infcmd.c (default_print_registers_info): Replace
1123 (registers_info): Use gdbarch_print_registers_info instead of
1125 * inferior.h (default_print_registers_info): Replace
1127 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1128 (DO_REGISTERS_INFO): Change to a predicate function.
1129 * gdbarch.h, gdbarch.c: Regenerate.
1131 2002-08-21 Keith Seitz <keiths@redhat.com>
1133 * gdb-events.sh: Add target-changed event.
1134 * gdb-events.c: Regenerated.
1135 * gdb-events.c: Regenerated.
1136 * valops.c (value_assign): Add target-changed event notification
1137 to inlval_register, lval_memory, and lval_reg_frame_relative.
1139 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1141 * NEWS: Add an entry regarding the improvement of the next/step
1142 operation on Alpha Tru64 multi-processor machines.
1144 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1146 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1148 * Makefile.in: Update all _h macro definitions.
1149 * Makefile.in (install-gdbtk): Move to install section.
1150 (rdi-share/libangsd.a): Move to end of file.
1152 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1154 * frame.c (frame_register_unwind): When a register, set addrp to
1155 the register's byte.
1157 2002-08-20 Michael Snyder <msnyder@redhat.com>
1159 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1160 used locally, so move them from the target machine header to here.
1161 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1162 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1164 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1166 2002-08-20 Andrew Cagney <cagney@redhat.com>
1168 * NEWS: Mention that the Apollo line was made obsolete.
1169 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1170 m68*-hp-hpux* obsolete.
1171 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1172 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1173 * buildsym.c (make_blockvector): Make static.
1174 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1175 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1176 (ALLDEPFILES): Remove dstread.c.
1177 (dstread.o): Obsolete make rule.
1178 * dstread.c: Makefile obsolete.
1180 * config/m68k/hp300hpux.mt: Ditto.
1181 * config/m68k/hp300hpux.mh: Ditto.
1182 * config/m68k/hp300bsd.mt: Ditto.
1183 * config/m68k/hp300bsd.mh: Ditto.
1184 * config/m68k/apollo68b.mt: Ditto.
1185 * config/m68k/apollo68v.mh: Ditto.
1186 * config/m68k/apollo68b.mh: Ditto.
1188 2002-08-20 Michael Snyder <msnyder@redhat.com>
1190 * mips-tdep.c (mips_in_return_stub): Make static.
1191 (mips_gdbarch_init): Set in_solib_return_trampoline.
1192 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1194 2002-08-20 Michael Snyder <msnyder@redhat.com>
1196 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1197 * gdbarch.c, gdbarch.h: Regenerate.
1198 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1200 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1202 2002-08-20 Michael Snyder <msnyder@redhat.com>
1204 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1205 (mips_gdbarch_init): Set skip_trampoline_code,
1206 in_solib_call_trampoline.
1207 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1208 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1210 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1212 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1214 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1215 vector type for ev registers.
1216 (e500_pseudo_register_read): New function.
1217 (e500_pseudo_register_write): New function.
1218 (e500_dwarf2_reg_to_regnum): New function.
1219 (PPC_UISA_NOFP_SPRS): New macro.
1220 (PPC_EV_REGS): New macro.
1221 (PPC_GPRS_PSEUDO_REGS): New macro.
1222 (registers_e500): New register set for e500.
1223 (variants): Add e500 variant.
1224 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1225 before setting architectural dependent variations. Initialize ev
1226 registers numbers. Add case for e500 architecture. Set the
1227 number of pseudo registers.
1229 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1231 * rs6000-tdep.c: Clean up comments.
1233 2002-08-20 Andrew Cagney <cagney@redhat.com>
1235 * h8300-tdep.c: Re-indent file.
1237 2002-08-20 Jim Blandy <jimb@redhat.com>
1239 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1242 2002-08-20 Keith Seitz <keiths@redhat.com>
1244 * breakpoints.c (watch_command_1): Use internal breakpoint
1245 when setting a watchpoint_scope breakpoint.
1247 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1249 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1250 (build_builtin_type_vec64i): Ditto.
1251 (build_builtin_type_vec128): Ditto.
1252 (build_builtin_type_vec128i): Ditto.
1254 2002-08-19 Michael Snyder <msnyder@redhat.com>
1256 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1257 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1258 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1259 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1260 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1261 CALL_DUMMY_ADDRESS): Delete.
1262 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1263 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1264 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1265 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1266 push_return_address.
1267 (mips_register_raw_size, mips_eabi_use_struct_convention,
1268 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1269 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1270 mips_init_extra_frame_info, mips_eabi_push_arguments,
1271 mips_n32n64_push_arguments, mips_push_return_address,
1272 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1273 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1275 2002-08-19 Michael Snyder <msnyder@redhat.com>
1277 * mips-tdep.c (mips_frame_num_args): New function.
1278 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1279 frame_saved_pc, frame_args_address, frame_locals_address,
1280 frame_num_args, and frame_args_skip.
1281 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1282 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1283 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1284 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1286 2002-08-20 Michael Snyder <msnyder@redhat.com>
1288 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1289 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1290 * mips-tdep.c (mips_store_struct_return): New function.
1291 (mips_extract_struct_value_address): New function.
1292 (mips_gdbarch_init): Set store_struct_return and
1293 extract_struct_value_address.
1295 2002-08-20 David Carlton <carlton@math.stanford.edu>
1297 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1298 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1299 (read_file_scope): Check that line_header is nonzero before
1300 decoding macro information.
1302 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1304 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1305 flag the general-purpose registers as floating-point on targets
1306 that don't support the floating-point registers.
1308 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1310 * rs6000-tdep.c (altivec_register_p): Delete.
1311 (rs6000_do_altivec_registers): Delete.
1312 (rs6000_altivec_registers_info): Delete.
1313 (rs6000_do_registers_info): Delete.
1314 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1315 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1317 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1319 * infcmd.c (do_registers_info): Print vector registers in hex
1321 (print_vector_info): Check that printing registers
1323 (print_float_info): Ditto.
1325 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1327 * mips-tdep.c (mips_gdbarch_init): Update.
1328 (mips_o32_extract_return_value): Rewrite.
1329 (mips_o32_store_return_value): Rewrite.
1330 (mips_o32_xfer_return_value): New function.
1331 (mips_xfer_register): Tweak debug print message. Allow for
1332 buf_offset when dumping the value transfered.
1334 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1336 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1337 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1338 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1339 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1340 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1342 2002-08-14 Michael Snyder <msnyder@redhat.com>
1344 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1346 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1348 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1350 (P): New macro to define a register as a pseudo register.
1351 (R, R4, R8, R16, FR32, R64, R0): Updated.
1352 (struct variant): Add new fields for number of pseudo registers
1353 and number of total registers.
1354 (tot_num_registers): New macro replacing....
1355 (num_registers): ...deleted macro.
1356 (num_registers): New function.
1357 (num_pseudo_registers): New function.
1358 (variants): Update all variants to intialize new fields correctly.
1359 Postpone initialization of number of pseudo regs and real regs.
1360 (init_variants): New function.
1361 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1364 2002-08-19 David Carlton <carlton@math.stanford.edu>
1366 * valops.c (search_struct_field): Change error message to treat
1367 return value of 0 from value_static_field as meaning that field is
1369 (value_struct_elt_for_reference): Ditto.
1370 * values.c (value_static_field): Treat an unresolved location the
1371 same as a nonexistent symbol. Fix PR gdb/635.
1372 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1373 enclosed. Fix PR gdb/574.
1374 * MAINTAINERS: Add self to Write After Approval list.
1376 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1378 * mips-tdep.c (mips_xfer_register): New function.
1379 (mips_n32n64_extract_return_value): Rewrite.
1380 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1381 instead of deprecated_extract_return_value.
1383 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1385 * rs6000-tdep.c (TDEP): Delete macro.
1386 (branch_dest): Replace use of TDEP macro with its body.
1387 (rs6000_pop_frame): Ditto.
1388 (rs6000_push_arguments): Ditto.
1389 (rs6000_skip_trampoline_code): Ditto.
1390 (rs6000_frame_saved_pc): Ditto.
1391 (rs6000_frame_chain): Ditto.
1392 (rs6000_register_name): Ditto.
1393 (rs6000_register_byte): Ditto.
1394 (rs6000_register_raw_size): Ditto.
1395 (rs6000_register_virtual_type): Ditto.
1396 (rs6000_register_convertible): Ditto.
1397 (rs6000_convert_from_func_ptr_addr): Ditto.
1399 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1401 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1403 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1404 MIPS_LINUX_JB_ELEMENT_SIZE.
1405 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1406 for MAX_REGISTER_RAW_SIZE arrays.
1407 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1408 MIPS_LINUX_JB_ELEMENT_SIZE.
1410 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1412 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1414 2002-08-19 Aidan Skinner <aidan@velvet.net>
1416 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1417 ada-valprint.c ada-tasks.c.
1418 (YYFILES): Add ada-exp.y.
1419 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1420 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1421 (ada-exp.tab.o): New target.
1423 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1425 * regcache.c (regcache_xfer_part): New function.
1426 (regcache_raw_read_part): New function.
1427 (regcache_raw_write_part): New function.
1428 (regcache_cooked_read_part): New function.
1429 (regcache_cooked_write_part): New function.
1430 * regcache.h (regcache_raw_read_part): Declare.
1431 (regcache_raw_write_part): Declare.
1432 (regcache_cooked_read_part): Declare.
1433 (regcache_cooked_write_part): Declare.
1435 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1437 * remote.c (remote_open_1): Add async_p.
1438 (remote_async_open_1): Delete.
1439 (open_remote_target): Delete.
1440 (remote_open, extended_remote_open): Update calls to remote_open_1.
1441 (remote_async_open, extended_remote_async_open): Call
1442 remote_open_1 instead of remote_async_open_1.
1444 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1446 * blockframe.c: Fix a few coding standard violations.
1448 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1450 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1452 * config/i386/tm-i386sco5.h: ... here. File removed.
1453 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1455 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1456 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1457 (TM_FILE): Set to tm-i386.h.
1458 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1459 * config/i386/tm-i386v.h: Remove file.
1460 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1461 instead of "i386/tm-i386v.h".
1462 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1463 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1465 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1466 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1469 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1471 * config/i386/nm-i386v.h: Add protection against
1473 (i386_register_u_addr): Remove prototype.
1474 (register_u_addr): New prototype.
1475 (REGISTER_U_ADDR): Redefine accordingly.
1476 * i386v-nat.c: Improve several comments.
1477 (i386_register_u_addr): Change signature and rename to
1478 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1481 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1483 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1484 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1485 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1486 deprecated_extract_return_value.
1487 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1488 rename mips_o32o64_push_arguments.
1489 (mips_gdbarch_init): Update.
1490 (mips_extract_return_value): Delete.
1491 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1492 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1493 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1494 (mips_n32n64_extract_return_value): Clone
1495 mips_extract_return_value.
1496 (mips_store_return_value): Delete.
1497 (mips_o32_store_return_value): Clone mips_store_return_value.
1498 (mips_o64_store_return_value): Clone mips_store_return_value.
1499 (mips_eabi_store_return_value): Clone mips_store_return_value.
1500 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1502 2002-08-18 Aidan Skinner <aidan@velvet.net>
1504 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1505 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1507 2002-08-18 Aidan Skinner <aidan@velvet.net>
1509 * ada-lang.c: Run through gdb_indent.sh.
1510 * ada-lang.h: Run through gdb_indent.sh.
1511 * ada-tasks.c: Run through gdb_indent.sh.
1512 * ada-typeprint.c: Run through gdb_indent.sh.
1513 * ada-valprint.c: Run through gdb_indent.sh.
1515 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1517 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1520 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1522 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1524 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1525 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1527 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1528 write_register_gen instead of write_register_bytes.
1530 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1531 i[3456]-*-osf1mk* configurations have been made obsolete.
1532 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1533 i[3456]86-*-osf1mk* hosts obsolete.
1534 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1536 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1537 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1538 config/i386/i386m3.mt, config/i386/nm-m3.h,
1539 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1540 config/i386/i386mk.mh, config/i386/i386mk.mt,
1541 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1543 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1544 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1545 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1547 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1549 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1550 (hppa_value_returned_from_stack): Declare.
1551 (hppa_extract_return_value): Declare.
1552 * config/pa/hppa.mt: New file.
1553 * configure.tgt: Recognize hppa*-*-*.
1554 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1556 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1558 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1561 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1563 * top.c (gdb_rl_operate_and_get_next): Make sure
1564 operate-and-get-next functions correctly even when the history
1565 list is completely filled.
1567 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1569 * MAINTAINERS (Target Instruction Set Architectures): Rename
1570 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1571 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1572 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1573 already listed under Host/Native.
1575 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1576 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1579 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1581 * config/ia64/ia64.mt: New file.
1582 * config/alpha/alpha.mt: New file.
1583 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1584 ia64-linux-gnu. Mention that ia64-elf is broken.
1585 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1587 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1589 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1590 generic_func_frame_valid instead of func_frame_valid.
1592 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1594 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1595 procfs appears to be broken when debugging on multi-processor
1596 machines. So enable software single stepping in order to avoid
1597 using the procfs interface to do next/step operations, using
1598 internal breakpoints instead.
1600 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1601 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1602 make this pc address equal to the value it would have if the
1603 system stepping capability was used. Also set a new flag used
1604 to ensure that we don't readjust the PC one more time later.
1606 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1607 address by DECR_PC_AFTER_BREAK when software single step is
1608 in use for this architecture, as this has already been taken
1609 care of in handle_inferior_event().
1611 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1613 * infrun.c (handle_inferior_event): Minor reformatting, to make
1614 a rather long condition expression easier to read.
1616 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1618 * Makefile.in (gdbtk.o): Move to end of file.
1619 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1620 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1621 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1622 (gdbtk-wrapper.o, gdbres.o): Ditto.
1624 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1626 * Makefile.in (copying.o): Separate out compile rule.
1627 (hpux-thread.o, procfs.o, signals.o): Ditto.
1628 (v850ice.o, z8k-tdep.o): Ditto.
1629 (tui-file.o): Move to TUI section.
1630 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1631 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1633 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1635 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1636 skip_trampoline_code, for better namespace-proofing.
1638 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1640 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1642 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1644 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1646 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1647 signal, check whether we hit a breakpoint before checking for a
1648 single step breakpoint. Otherwise, GDB fails to notice that a
1649 breakpoint has been hit when stepping onto a breakpoint.
1651 2002-08-16 Keith Seitz <keiths@redhat.com>
1653 * gdb-events.sh (clear_gdb_event_hooks): New function.
1654 * gdb-events.c: Regenerate.
1655 * gdb-events.h: Regenerate.
1657 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1659 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1660 not_a_sw_breakpoint.
1661 * breakpoint.h (bpstat_stop_status): Add parameter names.
1663 2002-08-16 Grace Sainsbury <graces@redhat.com>
1665 * remote.c (remote_insert_hw_breakpoint)
1666 (remote_remove_hw_breakpoint): Fix calculation of length field
1669 2002-08-15 Michael Snyder <msnyder@redhat.com>
1671 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1672 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1673 (supply_fpregset): Ditto.
1675 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1676 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1677 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1678 (TARGET_READ_SP): Delete.
1679 (DO_REGISTERS_INFO): Delete.
1680 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1682 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1683 from macros to functions.
1685 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1686 (mips_register_convertible, mips_register_convert_to_virtual,
1687 mips_register_convert_to_raw): Make static.
1688 (mips_read_sp): New function.
1689 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1690 (mips_do_registers_info): Make static.
1691 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1692 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1693 (mips_register_convert_from_type, mips_register_convert_to_type):
1695 (mips_gdbarch_init): Set up function_start_offset,
1696 register_virtual_size, pc_in_sigtramp.
1698 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1700 * infcmd.c (vector_info): New function.
1701 (_initialize_infcmd): Add command "info vector".
1702 (print_vector_info): New function.
1704 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1705 * gdbarch.h, gdbarch.c: Regenerate.
1707 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1709 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1710 ``print_all''. Only print vector registers when ``print_all''.
1712 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1714 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1715 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1717 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1718 Add `args' parameter.
1719 * gdbarch.h, gdbarch.c: Regenerate.
1721 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1723 * infcmd.c (float_info): Call print_float_info.
1724 (print_float_info): New function. By default, print the
1725 floating-point registers.
1727 * arch-utils.h (default_print_float_info): Delete declaration.
1728 * arch-utils.c (default_print_float_info): Delete function.
1730 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1732 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1735 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1738 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1739 * configure.host: Make i[3456]86-*-aix host obsolete.
1740 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1741 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1742 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1743 config/i386/xm-i386aix.h: Make files obsolete.
1744 * i386aix-nat.c: Make file obsolete.
1745 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1746 (i386aix-nat.o): Make target obsolete.
1748 * config/i386/nm-gnu.h: Removed.
1749 * config/i386/nm-i386gnu.h: New file.
1750 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1751 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1753 * config/i386/tm-i386gnu.h: ... here. Removed.
1754 * config/i386/xm-i386gnu.h: Removed.
1755 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1756 (NAT_FILE): Set to nm-i386gnu.h.
1757 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1758 * i386-tdep.c: New file.
1759 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1760 (i386gnu-tdep.o): Specify dependencies.
1762 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1764 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1765 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1766 Adjust a few comments to reflect reality a bit closer.
1767 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1768 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1769 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1770 target_insert_watchpoint, target_remove_watchpoint):
1772 * config/i386/nm-i386sco5.h: ... here.
1773 (kernel_u_size): Add prototype. Improve a few comments and add
1774 protection against multiple inclusion.
1776 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1779 * uw-thread.c (SP_ARG0): Define if not already defined.
1780 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1782 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1784 * config/i386/tm-i386.h: Don't include "regcache.h".
1786 * i387-tdep.h (i387_print_float_info): New prototype.
1787 * i387-tdep.c (print_i387_value, print_i387_ext,
1788 print_i387_status_word, print_i387_control_word): Add `struct
1789 ui_file *' argument and use it for output.
1790 (i387_print_float_info): Renamed from i387_float_info. Add
1791 `struct gdbarch *' and `struct ui_file *' arguments and use the
1793 * i386-tdep.c: Include "i387-tdep.h".
1794 (i386_gdbarch_init): Set print_float_info.
1795 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1796 (FLOAT_INFO): Remove define.
1798 2002-08-13 Michael Snyder <msnyder@redhat.com>
1800 * mips-tdep.c (mips_push_arguments): Rename to
1801 mips_eabi_push_arguments, and tune for EABI.
1802 (MIPS_REGS_HAVE_HOME_P): Delete.
1803 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1804 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1805 Delete references to mips_regs_have_home_p.
1807 2002-08-14 Keith Seitz <keiths@redhat.com>
1809 * Makefile.in (install-gdbtk): Create insight plugin directory.
1810 Install plugins.tcl file.
1812 2002-08-14 Keith Seitz <keiths@redhat.com>
1814 * configure.in: Move SUBDIRS to near top of the file so that
1815 --enable options may add things to it.
1816 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1817 * configure: Regenerate.
1819 2002-08-13 Michael Snyder <msnyder@redhat.com>
1821 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1822 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1823 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1825 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1827 * vax-tdep.c (vax_get_saved_register): Delete function.
1828 (vax_gdbarch_init): Update.
1829 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1830 (ns32k_gdbarch_init): Update.
1831 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1832 (alpha_gdbarch_init): Update.
1834 2002-08-13 Andrew Cagney <cagney@redhat.com>
1836 * regcache.c (init_regcache_descr): Overallocate the
1837 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1838 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1840 (set_register_cached): Add range checking assertions. Use
1843 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1845 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1846 numbers for MMX registers.
1848 2002-08-13 Andrew Cagney <cagney@redhat.com>
1850 * i386-tdep.c (i386_gdbarch_init): Use
1851 generic_unwind_get_saved_register.
1853 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1855 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1856 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1858 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1859 Delete. Add comment regarding this now-deleted target method.
1861 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1863 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1864 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1865 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1866 real PC and the page number (if it's within the memory bank window).
1867 (m68hc11_pseudo_register_write): Likewise when saving.
1868 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1869 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1870 (m68hc11_register_raw_size): And use 32-bit for it.
1871 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1872 16K memory bank is used by the prog; also use the virtual pc.
1874 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1876 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1877 (m68hc11_gdbarch_init): Install it in gdbarch.
1878 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1879 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1880 (MSYMBOL_SIZE): New for documentation.
1881 (insn_return_kind): Enum to specify how a function returns.
1882 (frame_extra_info): Cleanup and record the return mode.
1883 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1884 register in address computation.
1885 (m68hc11_get_return_insn): New to obtain the return instruction used
1887 (m68hc11_frame_init_saved_regs): Take into account the return
1888 instruction used by the function for far and interrupt functions.
1889 (m68hc11_init_extra_frame_info): Take into account page register.
1890 (m68hc11_frame_args_address): Adjust according to the return mode.
1891 (show_regs): Print page register only when it's used.
1893 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1895 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1896 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1897 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1899 (m68hc11_register_raw_size): Likewise.
1901 2002-08-13 Andrew Cagney <cagney@redhat.com>
1903 * i386-tdep.c (i386_register_name): Handle mmx registers.
1904 (mmx_regnum_p): New function.
1905 (i386_mmx_names): New array.
1906 (mmx_num_regs): New variable.
1907 (i386_pseudo_register_read): New function.
1908 (i386_pseudo_register_write): New function.
1909 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1911 * regcache.c (regcache_raw_read_unsigned): New function.
1912 (regcache_raw_read_signed): New function.
1913 * regcache.h (regcache_raw_read_unsigned): Declare.
1914 (regcache_raw_read_signed): Declare.
1916 2002-08-13 Andrew Cagney <cagney@redhat.com>
1918 * regcache.c (regcache_raw_read_as_address): Delete function.
1919 (regcache_cooked_read_signed): New function.
1920 (regcache_cooked_read_unsigned): New function.
1921 * regcache.h (regcache_cooked_read_signed): Declare.
1922 (regcache_cooked_read_unsigned): Declare.
1923 (regcache_raw_read_as_address): Delete declaration.
1925 * blockframe.c (generic_read_register_dummy): Use
1926 regcache_cooked_read_unsigned.
1927 * i386-tdep.c (i386_extract_struct_value_address): Use
1928 regcache_cooked_read_unsigned.
1930 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1933 double sizes according to ELF ABI flags.
1934 (gdbarch_tdep): Record elf_flags.
1936 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1938 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1939 (m6812_prolog): They can appear in 68HC12 function prologue.
1940 (m68hc11_frame_chain): Cleanup.
1942 2002-08-12 Andrew Cagney <cagney@redhat.com>
1944 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1946 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1947 (i386_linux_register_raw_size): Delete function.
1948 (i386_linux_init_abi): Update.
1949 * i386-tdep.c (i386_register_raw_size): Delete function.
1950 (i386_register_byte): Delete function.
1951 (i386_gdbarch_init): Update.
1952 (i386_register_size): Delete array.
1953 (i386_register_offset): Delete array.
1955 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1956 (REGISTER_RAW_SIZE): Delete macro.
1957 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1958 (REGISTER_BYTE): Delete macro.
1960 2002-08-11 Aidan Skinner <aidan@velvet.net>
1962 * ada-lang.c (ada_lookup_partial_symbol)
1963 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1964 prototype names so that grep ^func works properly.
1966 * ada-lang.c (ada_array_element_type)
1967 (ada_lookup_partial_symbol): Fix typos in parameter list.
1969 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1970 Fix prototype names so that grep ^func works properly.
1972 2002-08-10 Andrew Cagney <cagney@redhat.com>
1973 Elena Zannoni <ezannoni@redhat.com>
1974 Martin M. Hunt <hunt@redhat.com>
1976 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1977 (build_builtin_type_vec128i): Set the vector bit.
1978 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1979 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1980 (build_builtin_type_vec64): New function.
1981 (build_builtin_type_vec64i): New function.
1982 (build_gdbtypes): Initialize builtin_type_vec64 and
1983 builtin_type_vec64i.
1985 2002-08-09 Andrew Cagney <cagney@redhat.com>
1987 * regcache.c (regcache_dump): Compare the register offset
1989 * arch-utils.c (generic_register_byte): New function.
1990 * arch-utils.h (generic_register_byte): Declare.
1991 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1992 * gdbarch.h, gdbarch.c: Regenerate.
1994 2002-08-09 Andrew Cagney <cagney@redhat.com>
1996 * regcache.c: Include "gdbcmd.h"
1997 (_initialize_regcache): Add commands "maintenance print
1998 registers", "maintenance print raw-registers" and "maintenance
1999 print cooked-registers".
2000 (enum regcache_dump_what): Define.
2001 (dump_endian_bytes): New function.
2002 (regcache_dump): New function.
2003 (regcache_print): New function.
2004 (maintenance_print_registers): New function.
2005 (maintenance_print_raw_registers): New function.
2006 (maintenance_print_cooked_registers): New function.
2007 * Makefile.in (regcache.o): Update dependencies.
2009 2002-08-09 Michael Snyder <msnyder@redhat.com>
2011 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2012 (mips_push_arguments): Correct some comments. Use paddr_nz
2013 for printing addresses in debug output. Replace static
2014 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2015 (mips_n32n64_push_arguments): New function, cloned from
2016 mips_push_arguments and tuned for the n32/n64 ABI.
2017 (mips_push_register): Buffer needs dynamic allocation.
2018 (mips_print_register): Ditto.
2019 (do_gp_register_row): Ditto.
2020 (mips_store_return_value): Ditto.
2021 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2023 2002-08-09 Don Howard <dhoward@redhat.com>
2025 * memattr.c (mem_info_command): Print special case of upper bound
2026 as max CORE_ADDR + 1.
2028 2002-08-08 Michael Snyder <msnyder@redhat.com>
2030 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2031 returns structs by ref if they're too big to fit in two registers.
2033 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2035 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2037 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2038 mips_find_saved_regs().
2039 (mips_pop_frame): Likewise.
2041 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2043 * blockframe.c (frame_saved_regs_register_unwind): Revise
2044 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2047 2002-08-09 Grace Sainsbury <graces@redhat.com>
2049 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2050 T-packets; the 'a' is not taken as a register number.
2051 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2052 (remote_stopped_data_address): New functions; add to target
2054 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2055 prototypes to match other implementations of this
2056 function. replace integer argument with pointer -- the length
2057 field in the Z-packet is the length of what is pointed to or 1 if
2058 pointer is null. Add to target vector.
2059 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2063 * remote.c (remote_wait): Add support to extract optional
2064 watchpoint information from T-packet. Ignore unrecognized
2065 optional info in T-packet.
2066 (remote_async_wait): Ditto.
2068 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2070 * cli/cli-dump.c: Change fopen modes to use binary open modes
2071 as defined in include/fopen-bin.h throughout.
2073 2002-08-08 Michael Snyder <msnyder@redhat.com>
2075 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2077 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2079 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2080 assertion failure by returning early after a warning.
2082 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2084 * mips-tdep.c (mips_find_saved_regs): Make static.
2085 (mips_frame_init_saved_regs): New function.
2086 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2087 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2088 (mips_find_saved_regs): Delete declaration.
2090 2002-08-08 Grace Sainsbury <graces@redhat.com>
2092 * remote.c (remote_wait, remote_async_wait): Change
2093 thread_num from int to ULONGEST.
2094 (unpack_varlen_hex): Change result parameter from
2095 int * to ULONGEST *.
2097 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2099 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2100 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2102 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2104 2002-08-08 Andrew Cagney <cagney@redhat.com>
2106 * gcore.c (override_derive_stack_segment): Delete variable.
2107 (preempt_derive_stack_segment): Delete function.
2108 (derive_stack_segment): Delete function.
2109 (default_derive_stack_segment): Renamed to derive_stack_segment.
2110 (override_derive_heap_segment): Delete variable.
2111 (preempt_derive_heap_segment): Delete function.
2112 (derive_heap_segment): Delete function.
2113 (default_derive_heap_segment): Rename to derive_heap_segment.
2115 2002-08-06 Michael Snyder <msnyder@redhat.com>
2117 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2118 * mips-tdep.c (mips_EABI_use_struct_convention,
2119 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2120 New functions. (mips_use_struct_convention): Delete.
2121 (mips_gdbarch_init): set use_gdbarch_convention.
2123 2002-08-06 Michael Snyder <msnyder@redhat.com>
2125 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2126 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2127 mips_o32_reg_struct_has_addr): New functions.
2128 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2130 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2132 * regcache.c (pseudo_register): Delete function.
2133 (fetch_register): Delete function.
2134 (store_register): Delete function.
2135 (regcache_raw_read, legacy_read_register_gen): Use
2136 target_fetch_registers instead of fetch_register.
2137 (legacy_write_register_gen, regcache_raw_write): Use
2138 target_store_register instead of store_register.
2139 (write_register_bytes): Ditto.
2141 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2142 (STORE_PSEUDO_REGISTER): Delete.
2143 * gdbarch.h, gdbarch.c: Regenerate.
2145 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2147 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2148 write dump file binary.
2150 2002-08-05 Michael Snyder <msnyder@redhat.com>
2152 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2153 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2154 (mips_gdbarch_init): Set N32 target to be mips64.
2156 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2158 * frame.c (find_saved_register): Break out of loop once saved
2159 register address is found. Don't mention sparc in loop comment
2162 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2164 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2165 mips_default_saved_regsize to 8.
2167 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2169 * gcore.c: Do not include <sys/procfs.h>.
2170 * Makefile.in (gcore.o): Update dependencies.
2172 2002-08-06 Andrew Cagney <cagney@redhat.com>
2174 * configure.tgt: Make arc-*-* obsolete.
2175 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2176 * MAINTAINERS: Make arc-elf obsolete.
2177 * arc-tdep.c: Make file obsolete.
2178 * config/arc/arc.mt: Ditto.
2179 * config/arc/tm-arc.h: Ditto.
2181 2002-08-05 Theodore A. Roth <troth@verinet.com>
2183 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2185 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2187 * mcore-tdep.c (mcore_gdbarch_init): Use
2188 generic_unwind_get_saved_register instead of
2189 generic_get_saved_register.
2190 * v850-tdep.c (v850_gdbarch_init): Ditto.
2191 * frv-tdep.c (frv_gdbarch_init): Ditto.
2192 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2193 * s390-tdep.c (s390_gdbarch_init): Ditto.
2194 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2195 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2196 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2198 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2200 * objfiles.h: Add missing #include "symfile.h"
2202 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2204 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2206 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2207 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2210 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2212 * NEWS: Cleanup and nitpick.
2214 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2216 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2218 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2220 * Makefile.in (gdbtk-bp.o): Update dependencies.
2221 (gdbtk-register.o): Ditto.
2222 (gdbtk-varobj.o): Ditto.
2224 2002-08-03 Andrew Cagney <cagney@redhat.com>
2226 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2227 m68hc11_fetch_pseudo_register.
2228 (m68hc11_pseudo_register_write): Replace
2229 m68hc11_store_pseudo_register.
2230 (m68hc11_gdbarch_init): Update.
2232 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2234 * gdbarch.sh: Include "gdb_string.h".
2235 * gdbarch.c: Regenerate.
2237 * regcache.c: Include "gdb_string.h".
2238 * ax-general.c: Ditto.
2240 * std-regs.c: Ditto.
2241 * fbsd-proc.c: Ditto.
2244 * Makefile.in (regcache.o): Update dependencies.
2245 (thread.o, gdbarch.o): Ditto.
2246 (ax-general.o, gdbarch.o): Ditto.
2247 (varobj.o, std-regs.o): Ditto.
2248 (fbsd-proc.o): Specify dependencies.
2250 2002-08-02 Andrew Cagney <cagney@redhat.com>
2252 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2254 (regcache_cooked_write): Ditto.
2256 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2258 * regcache.c (regcache_cooked_read): New function.
2259 (regcache_cooked_write): New function.
2260 (read_register_gen): Rewrite using regcache_cooked_read.
2261 (write_register_gen): Rewrite using regcache_cooked_write.
2263 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2266 2002-08-02 Andrew Cagney <cagney@redhat.com>
2268 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2269 Replace the architecture methods register_read and register_write.
2270 * gdbarch.h, gdbarch.c: Regenerate.
2271 * regcache.c (init_regcache_descr): Update.
2272 (read_register_gen): Update.
2273 (write_register_gen): Update.
2274 (supply_register): Update comment.
2276 * sh-tdep.c (sh_gdbarch_init): Update.
2277 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2278 `regcache' and `gdbarch' parameters. Make `buffer' a void
2279 pointer. Update code.
2280 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2281 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2282 void pointer. Update code.
2283 (sh64_register_write): Delete.
2284 (sh4_register_read): Delete.
2285 (sh64_register_read): Delete.
2286 (sh4_register_write): Delete.
2287 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2288 void pointer, `to' parameter a void pointer.
2289 (sh_sh64_register_convert_to_raw): Ditto.
2291 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2293 * mips-tdep.c (mips_register_virtual_type): Use architecture
2294 invariant return values.
2296 2002-08-01 Andrew Cagney <cagney@redhat.com>
2298 * linux-proc.c: Include "gdb_string.h".
2299 * Makefile.in (linux-proc.o): Update dependency list.
2301 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2303 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2306 2002-08-01 Grace Sainsbury <graces@redhat.com>
2308 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2309 to_insert_watchpoint, to_remove_watchpoint,
2310 to_stopped_by_watchpoint, to_stopped_data_address,
2311 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2312 target vecctor. Define their corresponding macros so they call
2315 * target.c: Add default and debug versions of for
2316 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2317 to_insert_watchpoint, to_remove_watchpoint,
2318 to_stopped_by_watchpoint, to_stopped_data_address,
2319 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2321 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2323 * mips-tdep.c (mips_register_virtual_type): New function.
2324 (mips_gdbarch_init): Register mips_register_virtual_type()
2325 with gdbarch machinery.
2326 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2327 this file instead of tm-bigmips.h.
2328 (MIPS_REGSIZE): Delete this macro.
2329 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2330 multiarch version in mips-tdep.c will be found.
2332 2002-08-01 Andrew Cagney <cagney@redhat.com>
2334 * NEWS: Menion that CHILL has been made obsolete.
2336 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2337 * stabsread.c (read_range_type): Ditto.
2338 * gdbtypes.h: Ditto.
2339 * language.c (binop_type_check): Ditto.
2340 (binop_result_type): Ditto.
2341 (integral_type): Ditto.
2342 (character_type): Ditto.
2343 (string_type): Ditto.
2344 (boolean_type): Ditto.
2345 (structured_type): Ditto.
2346 (lang_bool_type): Ditto.
2347 (binop_type_check): Ditto.
2348 * language.h (_LANG_chill): Ditto.
2349 * dwarfread.c (set_cu_language): Ditto.
2350 * dwarfread.c (CHILL_PRODUCER): Ditto.
2351 * dwarfread.c (handle_producer): Ditto.
2352 * expression.h (enum exp_opcode): Ditto.
2353 * eval.c: Ditto for comments.
2354 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2355 * expprint.c (print_subexp): Ditto.
2356 (print_subexp): Ditto.
2357 * valops.c (value_cast): Ditto.
2358 (search_struct_field): Ditto.
2359 * value.h (COERCE_VARYING_ARRAY): Ditto.
2360 * symfile.c (init_filename_language_table): Ditto.
2361 (add_psymbol_with_dem_name_to_list): Ditto.
2362 * valarith.c (value_binop): Ditto.
2364 * valops.c (value_slice): Ditto.
2365 * symtab.h (union language_specific): Ditto.
2366 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2367 (SYMBOL_DEMANGLED_NAME): Ditto.
2368 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2369 * defs.h (enum language): Ditto.
2370 * symtab.c (got_symtab): Ditto.
2371 * utils.c (fprintf_symbol_filtered): Ditto.
2373 * ch-typeprint.c: Make file obsolete.
2374 * ch-valprint.c: Make file obsolete.
2375 * ch-lang.h: Make file obsolete.
2376 * ch-exp.c: Make file obsolete.
2377 * ch-lang.c: Make file obsolete.
2379 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2381 (TARGET_FLAGS_TO_PASS): Ditto.
2382 (CHILLFLAGS): Obsolete.
2384 (CHILL_FOR_TARGET): Obsolete.
2385 (CHILL_LIB): Obsolete.
2386 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2388 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2389 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2391 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2394 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2396 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2397 This does not change anything at the moment, but will be helpful
2398 later when full Ada support is integrated.
2400 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2402 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2405 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2407 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2408 and save it in a local variable. Use variable in later test.
2410 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2412 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2413 test. (Thanks to Daniel Jacobowitz.)
2415 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2417 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2418 (mips_abi_strings): Add "n64".
2419 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2421 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2423 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2424 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2426 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2428 * utils.c (host_pointer_to_address, address_to_host_pointer):
2429 Use gdb_assert() instead of explicit call to internal_error().
2431 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2433 * Makefile.in (rs6000-nat.o): Update dependencies.
2435 From Nicholas Duffek:
2436 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2437 (aix-thread.o): New rule.
2438 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2439 * config/powerpc/aix432.mh: New file.
2441 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2443 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2444 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2445 (fetch_core_registers, ppc_linux_supply_gregset)
2446 (ppc_linux_supply_fpregset): New functions.
2447 (ppc_linux_regset_core_fns): New.
2448 (_initialize_ppc_linux_tdep): Call add_core_fns.
2449 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2450 and ppc_linux_supply_gregset.
2451 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2452 (supply_fpregset): Call ppc_linux_supply_fpregset.
2453 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2455 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2457 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2459 * symtab.c (lookup_symbol): Demangle before lowercasing.
2461 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2463 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2465 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2466 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2467 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2468 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2470 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2471 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2472 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2473 (avr-tdep.o, mon960-rom.o): Ditto.
2474 (aout_stabs_gnu_h): Define.
2475 (symtab_h): Remove $(gdb_obstack_h).
2477 2002-07-30 Jim Blandy <jimb@redhat.com>
2479 Patch from David Carlton <carlton@math.stanford.edu>:
2480 * gdbinit.in: Move the `dir' commands that add GDB's own source
2481 directory to the search path to the end, so that the `gdb' source
2482 directory will be searched first.
2484 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2486 * gdb_obstack.h: New file.
2487 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2488 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2489 * objfiles.h: Include "gdb_obstack.h".
2490 * Makefile.in (gdb_obstack_h): Define.
2491 (symtab_h): Add $(gdb_obstack_h).
2492 (objfiles_h): Add $(gdb_obstack_h).
2494 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2495 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2496 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2497 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2498 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2499 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2500 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2501 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2503 * Makefile.in (bcache.o): Update dependencies.
2504 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2505 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2506 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2507 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2508 (stabsread.o, symfile.o, symmisc.o): Ditto.
2509 (symtab.o, typeprint.o, macroexp.o): Ditto.
2510 (macrotab.o, mdebugread.o): Ditto.
2511 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2512 (coff_ecoff_h, aout_aout64_h): Define.
2513 (aout_stabs_gnu_h, libaout_h): Define.
2515 2002-07-29 Andrew Cagney <cagney@redhat.com>
2517 * regcache.c (struct regcache_descr): Rename nr_registers to
2518 nr_cooked_registers. Revise comments describing the structure
2520 (init_regcache_descr): Update.
2521 (init_legacy_regcache_descr): Update.
2522 (read_register_gen, write_register_gen): When a cooked register in
2523 the raw register range, directly access the value from the raw
2526 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2528 * z8k-tdep.c: Do not include "obstack.h".
2529 * h8300-tdep.c, h8500-tdep.c: Ditto.
2530 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2531 * valprint.c, v850-tdep.c: Ditto.
2532 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2533 * mn10200-tdep.c: Ditto.
2535 * Makefile.in (z8k-tdep.o): Update dependencies.
2536 (m68hc11-tdep.o, valprint.o): Ditto.
2537 (v850-tdep.o, d10v-tdep.o): Ditto.
2538 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2539 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2540 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2541 (sh_opc_h, gdb_sim_sh_h): Define.
2542 (elf_sh_h, elf_bfd_h): Define.
2543 (opcode_m68hc11_h): Define.
2544 (OPCODES_SRC, OPCODES_DIR): define.
2545 (OPCODES): Use $(OPCODES_DIR).
2546 (gdb_sim_d10v_h): Rename sim_d10v_h.
2547 (gdb_sim_arm_h): Rename sim_arm_h.
2549 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2551 * utils.c (host_pointer_to_address, address_to_host_pointer):
2552 Change internal_error() message to indicate function responsible
2555 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2557 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2558 calls to local_hex_string_custom().
2560 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2562 * irix5-nat.c: Move IRIX shared library support from here...
2563 * solib-irix.c: ...to here. Revised substantially to work with
2564 generic solib framework.
2566 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2567 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2568 * mips-irix-tdep.c: New file.
2570 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2571 (mips-irix-tdep.o, solib-irix.o): New rules.
2572 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2574 * config/mips/irix6.mt (TDEPFILES): Likewise.
2575 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2577 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2579 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2580 disabled (via ``#if 0'') includes.
2582 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2584 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2585 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2586 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2587 Add support for the fpscr register.
2588 * rs6000-nat.c (regmap, fetch_inferior_registers)
2589 (store_inferior_registers, fetch_core_registers): Likewise.
2591 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2593 * rs6000-nat.c (language.h): Include.
2594 (special_regs): Delete this array.
2595 (regmap): New function.
2596 (fetch_register, store_register): Use regmap() to map gdb
2597 register numbers to ptrace register numbers. Also, use
2598 outputs from regmap() to make decisions regarding type of
2599 ptrace() call to make. In particular, don't compare against
2600 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2601 (fetch_inferior_registers, store_inferior_registers): Where
2602 possible, obtain register numbers from tdep struct. Don't
2603 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2604 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2605 (LAST_UISA_SP_REGNUM): Delete.
2607 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2609 * rs6000-nat.c (ppc-tdep.h): Include.
2610 (fetch_registers, store_register, fetch_core_registers): Don't
2611 access registers[] directly. Instead, use supply_register() or
2612 regcache_collect() as appropriate.
2613 (find_toc_address): Format hex address with local_hex_string().
2615 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2617 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2620 2002-07-24 Tom Tromey <tromey@redhat.com>
2622 * jv-exp.y: Marked all strings with _().
2623 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2625 (MethodInvocation, CastExpression, parse_number, yyerror,
2626 java_type_from_name, push_expression_name, yylex): Typo fixes.
2628 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2630 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2631 (tee_file_flush, tee_file_write, tee_file_fputs)
2632 (tee_file_isatty): New.
2633 * ui-file.h (tee_file_new): Add prototype.
2635 2002-07-24 Aidan Skinner <aidan@velvet.net>
2637 * ada-lang.c: Change k&r style function definitions to prototyped
2639 * ada-typeprint.c: Change k&r style function definitions to prototyped
2641 * ada-valprint.c: Change k&r style function definitions to prototyped
2644 2002-07-24 Andrew Cagney <cagney@redhat.com>
2646 * README: Remove reference to remote-bug.
2647 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2649 (m88k-nat.o): Delete rule.
2650 (m88k-tdep.o): Delete rule.
2651 (remote-bug.o): Delete rule.
2652 * MAINTAINERS: Mark as obsolete.
2653 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2654 * m88k-tdep.c: Make file obsolete.
2655 * config/m88k/m88k.mh: Ditto.
2656 * config/m88k/delta88v4.mh: Ditto.
2657 * config/m88k/delta88v4.mt: Ditto.
2658 * config/m88k/delta88.mt: Ditto.
2659 * config/m88k/delta88.mh: Ditto.
2660 * remote-bug.c: Ditto.
2661 * config/m88k/tm-delta88.h: Ditto.
2662 * config/m88k/nm-delta88v4.h: Ditto.
2663 * config/m88k/xm-delta88.h: Ditto.
2664 * config/m88k/xm-dgux.h: Ditto.
2665 * config/m88k/tm-m88k.h: Ditto.
2666 * config/m88k/nm-m88k.h: Ditto.
2667 * config/m88k/tm-delta88v4.h: Ditto.
2668 * m88k-nat.c: Ditto.
2669 * cxux-nat.c: Ditto.
2670 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2671 and m88*-*-* obsolete.
2672 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2675 2002-07-24 Andrew Cagney <cagney@redhat.com>
2677 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2678 constant. Same for local pointer variables.
2679 (extract_signed_integer): Ditto.
2680 * defs.h (extract_unsigned_integer): Update.
2681 (extract_signed_integer): Update.
2683 2002-07-24 Andrew Cagney <cagney@redhat.com>
2685 * regcache.c (regcache_raw_write): Change buf parameter to a
2686 constant void pointer.
2687 (regcache_raw_read): Change buf parameter to a void pointer.
2688 (legacy_write_register_gen): Change myaddr parameter a constant
2690 (supply_register): Change val parameter to a const void pointer.
2691 * regcache.h (regcache_raw_write): Update declaration.
2692 (regcache_raw_read): Update declaration.
2693 (supply_register): Update declaration.
2695 2002-07-24 Tom Tromey <tromey@redhat.com>
2697 * defs.h (gdb_readline_wrapper): Declare.
2698 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2699 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2700 * top.c (gdb_readline_wrapper): New function.
2701 (command_line_input): Use it.
2703 2002-07-24 Andrew Cagney <cagney@redhat.com>
2705 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2706 regcache_read and regcache_write.
2707 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2708 * regcache.c: Update.
2709 * sh-tdep.c (sh64_push_arguments): Update comment.
2710 (sh_pseudo_register_read): Update.
2711 (sh_pseudo_register_write): Update.
2712 (sh4_register_read): Update.
2713 (sh4_register_write): Update.
2714 (sh64_pseudo_register_read): Update.
2715 (sh64_pseudo_register_write): Update.
2716 (sh64_register_read): Update.
2717 (sh64_register_write): Update.
2718 * i386-tdep.c (i386_extract_return_value): Update.
2719 (i386_extract_struct_value_address): Update.
2720 (i386_extract_return_value): Update.
2721 * blockframe.c (generic_read_register_dummy): Update.
2722 (generic_call_dummy_register_unwind): Update
2723 * infrun.c (write_inferior_status_register): Update.
2725 2002-07-23 Jim Blandy <jimb@redhat.com>
2727 * parser-defs.h (expression_context_pc): Make this extern.
2728 (Thanks to Michael Snyder.)
2730 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2732 GDB 5.2.1 released from 5.2 branch.
2733 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2734 * README: Update to mention 5.2.1.
2736 2002-07-23 Mark Salter <msalter@redhat.com>
2738 * remote.c (remote_read_bytes): Fix check for error.
2740 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2742 * aix-thread.c (language.h): Include.
2743 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2744 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2745 Print newlines at end of debug messages.
2746 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2747 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2749 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2751 * aix-thread.c (ppc-tdep.h): Include.
2752 (special_register_p): New function.
2753 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2754 (store_regs_user_thread): Use register number information from
2755 gdbarch_tdep struct instead of hardcoded offsets relative to
2756 FIRST_UISA_SP_REGNUM.
2757 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2758 special_register_p() instead of using FPLAST_REGNUM and
2759 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2760 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2761 will be MQ's register number.
2763 2002-07-22 Michael Snyder <msnyder@redhat.com>
2765 * aix-thread.c (ops): Rename to aix_thread_ops.
2766 (base_ops): Rename to base_target.
2767 (ops_attach): Rename to aix_thread_attach.
2768 (ops_detach): Rename to aix_thread_detach.
2769 (ops_resume): Rename to aix_thread_detach.
2770 (ops_wait): Rename to aix_thread_wait.
2771 (ops_kill): Rename to aix_thread_kill.
2772 (init_ops): Rename to init_aix_thread_ops.
2773 (ops_fetch_register): Rename to aix_thread_fetch_register.
2774 (ops_store_register): Rename to aix_thread_store_register.
2775 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2776 (ops_thread_alive): Rename to aix_thread_thread_alive.
2777 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2778 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2779 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2780 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2781 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2782 (store_regs_lib): Rename to store_regs_user_thread.
2783 (store_regs_kern): Rename to store_regs_kernel_thread.
2785 2002-07-22 Michael Snyder <msnyder@redhat.com>
2787 * aix-thread.c (ops_prepare_to_store): Eliminate.
2788 (init_ops): Don't initialize ops.prepare_to_store.
2789 (store_regs_kern): Pre-fetch register buffers from child,
2790 because some registers may not be in the cache. Copy
2791 regs from register cache only if they are cached.
2792 (store_regs_lib): Copy regs from register cache only
2794 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2795 fill_gprs64): Ditto.
2797 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2799 * aix-thread.c (gdb_assert.h): Include.
2800 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2801 register sizes (from register cache) match size of buffer holding
2803 (fill_sprs32): Change parameter types to match those in the ptrace()
2805 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2806 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2808 2002-07-22 Michael Snyder <msnyder@redhat.com>
2810 * aix-thread.c (supply_sprs64): Cosmetic change.
2811 (supply_sprs32): Cosmetic change.
2812 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2813 (fill_sprs64): Use regcache_collect instead of read_register.
2814 (store_regs_lib): Use regcache_collect instead of
2815 read_register. Use fill_sprs32 instead of fill_sprs64,
2816 if debugging a 32-bit architecture.
2817 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2818 out of the register cache, instead of passing a pointer into
2819 the register cache directly to ptrace. Use regcache_collect
2820 insteaad of read_register.
2821 (ops_prepare_to_store): Use target_read_registers instead
2822 of read_register_bytes.
2824 2002-07-20 Aidan Skinner <aidan@velvet.net>
2826 * MAINTAINERS: Add self under write after approval.
2828 2002-07-20 Aidan Skinner <aidan@velvet.net>
2830 * ada-tasks.c: Change k&r style function definitions to prototyped
2833 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2835 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2836 * x86-64-tdep.c: Include "objfiles.h".
2837 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2838 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2840 2002-07-17 Michal Ludvig <michal@suse.cz>
2842 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2843 (update_context): Initialise cfa variable.
2845 2002-07-17 Michael Snyder <msnyder@redhat.com>
2847 * aix-thread.c: Shorten some long lines.
2848 Bring comments into line with code spec.
2850 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2852 * infrun.c: Re-indent using gdb_indent.sh.
2854 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2856 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2857 Leave the indentation temporarily untouched, to minimize the diffs.
2859 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2861 * stabsread.c: Make os9k sections of the code obsolete,
2863 * stabsread.h: Make os9k sections of the code obsolete.
2865 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2867 * linux-low.c (regsets_store_inferior_registers): Add free()
2868 at the end of a loop to prevent memory leak.
2869 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2870 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2871 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2873 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2875 2002-07-17 Jim Blandy <jimb@redhat.com>
2877 * macrocmd.c (info_macro_command): Remove newline from error
2880 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2882 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2883 (sh_gdbarch_init): Use it for sh-dsp.
2885 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2887 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2888 64-bit DWARF2 format.
2890 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2892 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2893 <sys/proc.h> when not available.
2895 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2897 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2898 * stabsread.c: Make os9k sections of the code obsolete.
2899 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2900 * config/i386/i386os9k.mt: Make file obsolete.
2901 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2902 (COMMON_OBS): Remove os9kread.o
2903 (SFILES): Remove os9kread.c.
2904 (os9kread.o, remote-os9k.o): Make target obsolete.
2905 * remote-os9k.c: Make file obsolete.
2906 * os9kread.c: Make file obsolete.
2909 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2911 * NEWS: Mention that the FR30 has been made obsolete.
2912 * fr30-tdep.c: Make file obsolete.
2913 * config/fr30/tm-fr30.h: Ditto.
2914 * config/fr30/fr30.mt: Ditto.
2915 * configure.tgt: Make fr30-*-elf obsolete.
2916 * MAINTAINERS: Make fr30-elf obsolete.
2918 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2920 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2921 found is not inside a section.
2923 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2925 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2927 (pdc_realloc): Use xrealloc() instead of realloc().
2929 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2931 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2932 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2933 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2936 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2938 * aix-thread.c (ptrace_check): Eliminate goto.
2939 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2942 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2944 * aix-thread.c (gdbcmd.h): Include.
2945 (DEBUG, DBG, DBG2, dbg): Eliminate.
2946 (debug_aix_thread): New static global.
2947 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2948 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2949 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2950 invocations to DBG and DBG2 macros to test against
2951 ``debug_aix_thread'' and call fprintf_unfiltered().
2952 (_initialize_aix_thread): Add new command "set debug aix-thread".
2954 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2956 From Gerhard Tonn <TON@de.ibm.com>:
2957 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2958 instead of supply_register.
2960 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2962 * dwarf2cfi.c: Include "gdb_assert.h".
2963 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2965 (update_context): Do not use __func__. Add missing ``break''.
2966 (update_context): Do not use __func__.
2968 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2970 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2971 and its setting. Set gdbarch instruction printing functions
2972 directly. For non-rs6000 case use new function
2973 gdb_print_insn_powerpc.
2974 (gdb_print_insn_powerpc): New function.
2976 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2978 * NEWS: Mention that the d30v has been marked obsolete.
2979 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2980 * configure.tgt: Mark d30v-*-* as obsolete.
2981 * d30v-tdep.c: Mark file as obsolete.
2982 * config/d30v/d30v.mt: Ditto.
2983 * config/d30v/tm-d30v.h: Ditto.
2985 2002-07-13 Aidan Skinner <aidan@velvet.net>
2987 * ada-tasks.c (add_task_entry): replace calls to
2988 malloc() with xmalloc
2989 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2991 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2992 ada_finish_decode_line_1, all_sals_for_line
2993 ada_breakpoint_rewrite): replace calls to free() with xfree()
2995 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2997 From Nicholas Duffek (with minor changes by Martin Hunt,
2998 Louis Hamilton, and Kevin Buettner):
2999 * aix-thread.c: New file.
3001 2002-07-12 Petr Sorfa <petrs@caldera.com>
3003 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3004 complaint for invalid attribute class or form.
3005 (read_func_scope): DW_AT_frame_base
3006 better handling of DW_AT_block*.
3007 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3008 better handling of DW_AT_block*.
3009 (read_common_block): DW_AT_location
3010 better handling of DW_AT_block*.
3011 (read_partial_die): DW_AT_location better handling
3013 (new_symbol): DW_AT_external better handling of
3014 DW_AT_block*. Proper initialization of variable
3016 (attr_form_is_block): New function that returns true
3017 if the attribute's form is of DW_FORM_block*.
3019 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3021 * valops.c (find_method_list): Remove comment about
3022 removed STATIC_MEMFUNCP argument.
3023 (value_find_oload_method_list): Likewise.
3025 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3027 From Nicholas Duffek:
3028 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3029 target_new_objfile_hook.
3031 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3033 From Nicholas Duffek:
3034 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3037 2002-07-12 Andrew Cagney <cagney@redhat.com>
3039 * MAINTAINERS: Mention --enable-sim-build-warnings.
3040 (m68hc11-elf): Disable sim build warnings.
3041 (m32r-elf): Mark as broken obsolete candidate.
3042 (x86_64-linux-gnu): Mark as buildable with -Werror.
3043 (arm-elf): Change -w to ``,'' which enables warnings but not
3046 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3048 * bcache.h: Update copyright.
3049 (struct bstring, struct bcache): Move definition to "bcache.c".
3050 Replaced by opaque declaration.
3051 (bcache_xfree): Replace free_bcache.
3052 (bcache_xmalloc, bcache_memory_used): Declare.
3054 * bcache.c: Update copyright.
3055 (struct bstring, struct bcache): Moved to here from "bcache.h".
3057 (bcache_xmalloc, bcache_memory_used): New functions.
3058 (bcache_xfree): Replace function free_bcache.
3060 * Makefile.in (objfiles.o): Add $(bcache_h).
3061 (objfiles_h): Remove $(bcache_h).
3062 (symfile.o): Add $(bcache_h).
3064 * symmisc.c: Update copyright.
3065 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3066 (print_objfile_statistics): Use bcache_memory_used.
3068 * symfile.c: Include "bcache.h".
3069 (reread_symbols): Use bcache_xfree.
3070 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3071 (add_psymbol_to_list): Pass psymbol_cache by value.
3072 (add_psymbol_with_dem_name_to_list): Ditto.
3074 * objfiles.h: Update copyright.
3075 (struct bcache): Declare opaque. Do not include "bcache.h".
3076 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3078 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3080 * objfiles.c: Include "bcache.h". Update copyright.
3081 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3083 (free_objfile): Use bcache_xfree.
3085 2002-07-11 Grace Sainsbury <graces@redhat.com>
3087 * monitor.c (monitor_fetch_register): Make name a constant.
3088 (monitor_store_register): Same.
3090 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3092 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3093 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3094 (finish_block) For non-function blocks, hash the symbol table. For
3095 function blocks, mark the symbol table as unhashed.
3096 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3097 (msymbol_hash_iw): Likewise.
3098 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3100 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3101 (lookup_minimal_symbol): Likewise for both.
3102 * symtab.h (struct block): Add `hashtable' flag. Comment the
3104 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3105 (ALL_BLOCK_SYMBOLS): Update.
3106 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3107 (struct symbol): Add `hash_next' pointer.
3108 * symtab.c (lookup_block_symbol): Search using the hash table when
3110 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3111 (search_symbols, find_addr_symbol): Likewise.
3113 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3114 (read_dst_symtab): Likewise.
3115 * jv-lang.c (get_java_class_symtab): Likewise.
3116 * mdebugread.c: Include "gdb_assert.h".
3117 (shrink_block): Assert that the block being modified is not hashed.
3118 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3119 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3121 (dump_symtab): Recognize hashed blocks.
3122 * printcmd.c (print_frame_args): Assert that function blocks do not
3123 have hashed symbol tables.
3124 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3125 (fill_in_ada_prototype, debug_print_block): Likewise.
3126 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3128 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3130 * stack.c (print_frame): Use result of frame_address_in_block()
3131 instead of fi->pc when evaluating symbols.
3132 (backtrace_command_1): Ditto.
3134 2002-07-11 Andrew Cagney <cagney@redhat.com>
3136 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3139 * arm-tdep.c (arm_register_name): Make return type constant.
3141 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3143 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3145 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3146 * s390-tdep.c (s390_fp_regnum): Ditto.
3147 (s390_read_fp): Ditto.
3148 (s390_pop_frame): Ditto.
3149 (_initialize_s390_tdep): Ditto.
3150 * remote.c (get_remote_state): Ditto.
3151 * procfs.c (mappingflags): Ditto.
3152 * memattr.c (_initialize_mem): Ditto.
3153 * mcore-tdep.c (mcore_pop_frame): Ditto.
3154 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3155 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3156 * language.c (set_case_str): Ditto.
3157 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3158 * frv-tdep.c (new_variant): Ditto.
3159 (frv_stopped_data_address): Ditto.
3160 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3161 (context_alloc): Ditto.
3162 (frame_state_alloc): Ditto.
3163 (unwind_tmp_obstack_init): Ditto.
3164 (unwind_tmp_obstack_free): Ditto.
3165 (cfi_read_fp): Ditto.
3166 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3167 (cris_pop_frame): Ditto.
3168 * c-lang.c (scanning_macro_expansion): Ditto.
3169 (finished_macro_expansion): Ditto.
3170 (c_preprocess_and_parse): Ditto.
3171 * gdbarch.sh: Ditto.
3172 * gdbarch.h, gdbarch.c: Regenerate.
3173 * config/mn10200/tm-mn10200.h: Adjust indentation.
3174 * target.c: Adjust indentation.
3175 * symtab.h: Adjust indentation.
3176 * stabsread.h: Adjust indentation.
3177 * remote-es.c: Adjust indentation.
3178 * os9kread.c: Adjust indentation.
3180 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3182 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3183 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3185 2002-07-10 Grace Sainsbury <graces@redhat.com>
3187 * NEWS: Mention m68k, mcore multi-arching.
3188 * MAINTAINERS: Change status of m68k, mcore to reflect
3191 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3193 * valops.c (find_overload_match): Free oload_syms.
3195 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3197 Define HAVE_SYS_PROC_H if sys/proc.h exists
3198 * configure.in: Add check for sys/proc.h
3199 * config.in: Regenerate.
3200 * configure: Regenerate.
3202 2002-07-09 Grace Sainsbury <graces@redhat.com>
3204 * config/m68k/tm-m68k.h: Remove macros wrapped in
3205 #if !GDB_MULTI_ARCH.
3207 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3209 * config.in, configure: Regenerate.
3211 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3213 * dwarf2cfi.c: Include "gcore.h".
3214 (execute_stack_op): Fix implementation of the
3215 DW_OP_deref and DW_OP_deref_size operators by letting do their
3216 lookup in the target.
3218 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3220 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3221 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3224 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3226 Fix PR gdb/595, gdb/602
3227 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3228 Don't call value_cast, just read the vtable pointer; update comments
3231 2002-07-05 Grace Sainsbury <graces@redhat.com>
3233 * config/mcore/tm-mcore.h: Remove file.
3234 * config/mcore/mcore.mt: Remove definition of TM_FILE
3235 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3237 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3239 * i386bsd-tdep.c: Include "gdb_string.h".
3241 2002-07-04 Grace Sainsbury <graces@redhat.com>
3243 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3244 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3246 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3247 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3248 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3249 (RETVAL_REGNUM): Move macros from tm-mcore.h
3250 (mcore_reg_struct_has_addr): New function.
3251 (mcore_gdbarch_init): Added initializations for the macros removed
3254 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3256 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3257 traditonal string branding within the ELF header.
3259 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3261 * symtab.c (remove_params): New function.
3262 (make_symbol_overload_list): Use it instead of cplus_demangle.
3263 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3265 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3267 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3269 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3271 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3272 and tdep->sigtramp_end.
3273 * i386obsd-nat.c: New file.
3274 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3276 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3277 Don't call get_current_frame().
3279 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3281 * i386-nat.c (child_post_startup_inferior): New function
3282 calling i386_cleanup_dregs if
3283 I386_USE_GENERIC_WATCHPOINTS is defined.
3284 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3285 conditional to acknowledge that i386-nat.c has its
3286 own child_post_startup_inferior function.
3288 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3290 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3291 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3292 instead of MAX_REGISTER_RAW_SIZE.
3293 (i386_extract_return_value, i386_extract_struct_value_address):
3294 Convert to use regcache.
3295 (i386_gdbarch_init): Set max_register_raw_size and
3296 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3297 Set extract_return_value and extract_struct_value_address instead
3298 of their deprecated variants.
3300 Convert i386 target to generic dummy frames.
3301 * i386-tdep.c: Include "symfile.h".
3302 (i386_frameless_signal_p): Consider a function to be frameless if
3303 the pc points at the first instruction of the function.
3304 (i386_frame_chain): Handle (generic) call dummies.
3305 (i386_frame_saved_pc): Likewise.
3306 (i386_frame_init_saved_regs): Remove code dealing with call
3307 dummies on the stack.
3308 (i386_push_dummy_frame): Removed.
3309 (i386_call_dummy_words): Removed.
3310 (i386_fix_call_dummy): Removed.
3311 (i386_push_return_address): New function.
3312 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3313 parameter, and don't call get_current_frame.
3314 (i386_pop_frame): New function.
3315 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3316 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3317 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3318 call_dummy_length to 0, set call_dummy_words to NULL, set
3319 sizeof_call_dummy_words to 0, set fix_call_dummy to
3320 generic_fix_call_dummy, set pc_in_call_dummy to
3321 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3322 generic_push_dummy_frame, set push_return_address to
3323 i386_push_return_address and set frame_chain_valid to
3324 generic_file_frame_chain_valid.
3326 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3328 * gdbarch.sh (struct regcache): Add opaque declaration.
3329 (EXTRACT_RETURN_VALUE): New architecture method.
3330 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3331 * gdbarch.h, gdbarch.c: Regenerate.
3332 * arch-utils.c (legacy_extract_return_value): New function.
3333 * arch-utils.h (legacy_extract_return_value): Declare.
3334 * values.c (value_being_returned): Re-enable code handling
3335 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3336 deprecated_grub_regcache_for_registers call to block handling
3337 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3338 (EXTRACT_RETURN_VALUE): Do not define.
3340 2002-07-03 Grace Sainsbury <graces@redhat.com>
3342 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3343 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3344 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3345 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3346 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3347 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3348 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3349 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3350 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3351 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3352 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3353 argument so the function fits the prototype in the architecture
3355 (mcore_pop_frame): Remove argument so the function fits the
3356 prototype. Use get_current_frame instead of the argument.
3357 (mcore_push_arguments): Change type of struct_return so the
3358 function can be used in the architecture vector.
3359 (mcore_store_struct_return): Add.
3360 (mcore_frame_init_saved_regs): Add.
3361 (mcore_gdbarch_init): Add function calls to replace the macros
3362 removed from tm-mcore.h
3364 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3366 * infcmd.c (print_return_value): Remove compatibility code calling
3367 deprecated_grub_regcache_for_registers.
3369 * values.c: Include "regcache.h".
3370 (value_being_returned): Update. Use
3371 deprecated_grub_regcache_for_registers to extract the register
3373 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3374 ``struct regcache''.
3375 * Makefile.in (values.o): Add dependency on $(regcache_h).
3377 * inferior.h (run_stack_dummy): Change type of second parameter to
3378 a ``struct regcache''.
3379 * valops.c (hand_function_call): Change type of retbuf to ``struct
3380 regcache''. Allocate using regcache_xmalloc, clean using
3381 make_cleanup_regcache_xfree.
3382 * infcmd.c (run_stack_dummy): Update. Use
3383 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3385 * regcache.c (do_regcache_xfree): New function.
3386 (make_cleanup_regcache_xfree): New function.
3387 * regcache.h (make_cleanup_regcache_xfree): Declare.
3389 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3391 * event-top.c (command_line_handler): Don't read past
3392 beginning of buffer.
3394 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3396 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3398 (varobj_create): Store frame_id for root.
3399 (varobj_gen_name): Use xasprintf.
3400 (varobj_update): Save and restore frame using get_frame_id() and
3402 (create_child): Use xasprintf.
3403 (new_root_variable): Initialize frame_id.
3404 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3405 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3406 to prevent memory leak.
3408 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3410 * valops.c (hand_function_call): Move declaration of retbuf to
3411 start of function, allocate using malloc, add a cleanup but before
3412 the inf_status cleanup, cleanup the buffer. Rename local variable
3413 old_chain to inf_status_cleanup.
3415 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3417 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3419 * cli/cli-decode.c (cmd_func_p): New function.
3420 (cmd_func): New function.
3422 * command.h: Add cmd_func() and cmd_func_p().
3424 2002-07-03 Grace Sainsbury <graces@redhat.com>
3426 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3427 (REGISTER_SIZE): Remove.
3428 (MAX_REGISTER_RAW_SIZE): Remove.
3429 (REGISTER_VIRTUAL_TYPE): Remove.
3430 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3431 (REGISTER_NAME): Remove.
3432 (USE_GENERIC_DUMMY_FRAMES): Remove.
3433 (CALL_DUMMY): Remove.
3434 (CALL_DUMMY_START_OFFSET): Remove.
3435 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3436 (CALL_DUMMY_LOCATION): Remove.
3437 (FIX_CALL_DUMMY): Remove.
3438 (CALL_DUMMY_ADDRESS): Remove.
3439 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3440 (SAVE_DUMMY_FRAME_TOS): Remove.
3441 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3442 (mcore_register_virtual_type): New function.
3443 (mcore_register_byte): New function.
3444 (mcore_register_size): New function.
3445 (mcore_register_name): New function.
3446 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3447 macros removed from tm-mcore.h.
3448 (mcore_dump_tdep): Add.
3449 (_initialize_mcore_tdep): Add gdbarch_register call.
3451 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3453 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3454 frameless_look_for_prologue, such that we actually call this
3457 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3459 * frame.h (frame_address_in_block): New function.
3461 * blockframe.c (frame_address_in_block): New function extracted
3462 from get_frame_block().
3463 (get_frame_block): Use frame_address_in_block().
3464 (block_innermost_frame): Use frame_address_in_block() to match
3465 the frame pc address against the block boundaries rather than
3466 the frame pc directly. This prevents a failure when a frame pc
3467 is actually a return-address pointing immediately after the end
3470 2002-07-02 Grace Sainsbury <graces@redhat.com>
3472 * MAINTAINERS: Add self under write after approval.
3474 2002-07-02 Grace Sainsbury <graces@redhat.com>
3476 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3477 used in architecture vector. The default is
3478 m68k_local_breakpoint_from_pc.
3479 (m68k_local_breakpoint_from_pc): Add.
3480 (enum): Add register numbers from tm-m68k.h.
3481 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3483 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3484 GDB_MULTI_ARCH_PARTIAL.
3485 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3486 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3488 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3489 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3490 to enum in m68k-tdep.c
3492 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3494 * solib-osf.c (open_map): Compute the list of shared libraries
3495 loaded by the inferior, rather than the list of libraries loaded
3496 by GDB itself. Otherwise, GDB ends up reading the symbols from
3497 the wrong shared libraries...
3499 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3501 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3502 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3504 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3506 (FRAMELESS_SIGNAL): Remove function.
3507 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3508 i386_linux_saved_pc_after_call): Removed.
3509 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3510 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3511 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3513 * i386-tdep.c (i386_frameless_signal_p): New function.
3514 (i386_frame_chain): Deal with frameless signals.
3515 (i386_sigtramp_saved_sp): New function.
3516 (i386_frame_saved_pc): Deal with frameless signals.
3517 (i386_saved_pc_after_call): Make sure the correct value is
3518 returned just after entry into a sigtramp.
3519 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3520 i386fbsd4_sc_sp_offset): New variables.
3521 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3522 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3523 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3524 similiar to what we already did for sc_pc_offset.
3525 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3528 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3530 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3532 * config/i386/tm-x86-64linux.h: New.
3533 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3535 * config/i386/nm-x86-64.h: Rename to ...
3536 * config/i386/nm-x86-64linux.h: ... this one.
3537 * config/i386/x86-64linux.mh: Reflect the above change.
3539 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3541 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3542 with sigcontext_addr. Add sc_sp_offset.
3543 (i386bsd_sigtramp_saved_pc): Remove prototype.
3544 (i386bsd_sicontext_addr): Add prototype.
3545 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3546 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3547 (i386_svr4_sigtramp_saved_pc): Removed.
3548 (i386_svr4_sigcontext_addr): New function.
3549 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3550 Initialize tdep->sigcontext_addr instead. Initialize
3551 tdep->sc_pc_offset and tdep->sc_sp_offset.
3552 (i386_gdbarch_init): Likewise.
3553 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3555 (i386bsd_sigtramp_saved_pc): Remove function.
3556 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3557 Initialize tdep->sigcontext_addr instead. Initialize
3559 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3560 of tdep->sigtramp_saved_pc.
3561 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3562 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3565 * i386-tdep.c (i386_frameless_function_invocation,
3566 i386_frame_num_args, i386_frame_init_saved_regs,
3567 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3568 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3569 i386_extract_return_value, i386_store_return_value,
3570 i386_extract_struct_value_address, i386_register_virtual_type,
3571 i386_register_convertible, i386_register_convert_to_virtual,
3572 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3573 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3576 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3578 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3580 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3581 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3582 this macro. Include "value.h".
3584 2002-06-30 Aidan Skinner <aidan@velvet.net>
3586 * ada-exp.tab.c: remove as it's a generated file
3587 * ada-lex.c: remove as it's a generated file
3589 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3591 * config/i386/tm-i386.h (struct frame_info, struct
3592 frame_saved_regs, struct value, struct type): Remove forward
3595 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3596 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3597 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3598 (FILL_FPXREGSET): Define.
3600 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3602 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3603 i[3456]86-*-netbsd* case.
3604 * config/i386/tm-obsd.h: Removed.
3605 * config/i386/obsd.mt: Removed.
3606 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3608 (MH_CFLAGS): Add -DYYDEBUG=0.
3610 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3611 i386nbsd_sc_pc_offset on OpenBSD too.
3613 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3614 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3615 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3617 * i386bsd-tdep.c: Include "arch-utils.h".
3618 (i386bsd_aout_in_solib_call_trampoline): New function.
3619 (i386bsd_init_abi): Set in_solib_call_trampoline to
3620 i386bsd_aout_in_solib_call_trampoline.
3621 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3622 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3624 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3626 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3627 (struct obstack, struct bcache): Add opaque declarations.
3628 * Makefile.in (macrotab_h): Update
3630 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3632 * blockframe.c (generic_find_dummy_frame): Change return type to
3633 ``struct regcache''.
3634 (struct dummy_frame): Replace field ``registers'' with regcache, a
3635 struct regcache object.
3636 (generic_find_dummy_frame): Update.
3637 (generic_push_dummy_frame): Update. Use regcache_xfree,
3638 regcache_xmalloc and regcache_cpy.
3639 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3641 (deprecated_generic_find_dummy_frame): Update.
3642 (generic_read_register_dummy): Update. Use
3643 regcache_read_as_address.
3644 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3645 (generic_get_saved_register): Update. Use regcache_read.
3647 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3649 * Makefile.in (objfiles_h): Add $(bcache_h).
3650 * objfiles.h: Include "bcache.h".
3652 * Makefile.in (symtab_h): Remove $(bcache_h).
3653 * symtab.h: Do not include "bcache.h".
3655 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3657 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3658 generic_func_frame_chain_valid.
3660 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3662 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3663 * config/i386/tm-fbsd.h: Likewise.
3665 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3667 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3668 generic_unwind_get_saved_register.
3670 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3672 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3673 * regcache.c (supply_register): Add missing argument to
3674 register_buffer call.
3676 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3678 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3679 Solaris /bin/grep does not not like it. From Peter Schauer.
3681 2002-06-26 Tom Tromey <tromey@redhat.com>
3683 * command.h (add_setshow_cmd): Declare.
3684 (add_setshow_cmd_full): Declare.
3685 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3686 returns void. Use add_setshow_cmd_full.
3687 (add_setshow_cmd_full): New function.
3688 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3689 (add_setshow_boolean_cmd): Likewise.
3691 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3693 * config/vax/tm-vax.h: Protect from multiple inclusion.
3694 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3695 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3696 * config/vax/tm-vaxbsd.h: ...here. New file.
3697 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3699 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3701 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3702 (BELIEVE_PCC_PROMOTION): Remove.
3703 (AP_REGNUM): Move to...
3704 * config/vax/nm-vax.h: ...here.
3705 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3706 (vax_breakpoint_from_pc): New function.
3707 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3708 and gdbarch_believe_pcc_promotion.
3710 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3712 * Makefile.in (vax_tdep_h): Define.
3713 (vax-tdep.o): Use $(vax_tdep_h).
3714 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3715 (vax_dump_tdep): New function.
3716 (_initialize_vax_tdep): Register vax_dump_tdep.
3717 * vax-tdep.h: Include osabi.h.
3718 (struct gdbarch_tdep): New.
3720 2002-06-26 Andrew Cagney <cagney@redhat.com>
3722 * frame.h (deprecated_generic_find_dummy_frame): Rename
3723 generic_find_dummy_frame.
3724 * blockframe.c (generic_find_dummy_frame): Make static.
3725 (deprecated_generic_find_dummy_frame): New function.
3726 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3727 generic_find_dummy_frame with deprecated_find_dummy_frame.
3728 (sh64_nofp_frame_init_saved_regs): Ditto.
3729 (sh_fp_frame_init_saved_regs): Ditto.
3730 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3731 (s390_frame_chain): Ditto.
3732 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3734 2002-06-26 Grace Sainsbury <graces@redhat.com>
3736 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3737 gdbarch vector are at the top.
3739 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3740 (FRAME_ARGS_ADDRESS): Remove.
3741 (FRAME_LOCALS_ADDRESS): Remove.
3742 (FRAME_NUM_ARGS): Remove.
3743 (FRAME_ARGS_SKIP): Remove.
3744 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3745 (m68k_gdbarch_init): Add gdbarch initializations for macros
3746 undefined in tm-m68k.h
3748 2002-06-26 Grace Sainsbury <graces@redhat.com>
3750 * monitor.h: Add the function regname to monitor_ops
3751 structure. This way NUM_REGS does not have to be a constant.
3752 * monitor.c (monitor_fetch_register): Added support for regname
3753 function. The function is called if the array regnames is NULL.
3754 (monitor_store_register): Same.
3755 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3757 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3758 cpu32bug_cmds.regname to point to new function.
3759 * abug-rom.c (abug_regname): Same as above.
3760 (init_abug_cmds): Same.
3761 * dbug-rom.c (dbug_regname): Same as above.
3762 (init_dbug_cmds): Same.
3763 * remote-est.c (est_regname): Same.
3764 (init_est_cmds): Same.
3765 * rom68k-rom.c (rom68k_regname): Same.
3766 (init_rom68k_cmds): Same.
3768 2002-06-25 Tom Tromey <tromey@redhat.com>
3770 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3772 2002-06-25 Andrew Cagney <cagney@redhat.com>
3774 * infrun.c (stop_registers): Change variable's type to ``struct
3776 (xmalloc_inferior_status): Delete function.
3777 (free_inferior_status): Delete function.
3778 (normal_stop): Use regcache_cpy.
3779 (struct inferior_status): Change type of fields ``stop_registers''
3780 and ``registers'' to ``struct regcache''.
3781 (write_inferior_status_register): Use regcache_write.
3782 (save_inferior_status): Instead of calling
3783 xmalloc_inferior_status, allocate the inf_status buffer directly.
3784 Use regcache_dup_no_passthrough and regcache_dup to save the
3786 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3787 Replace the stop_registers regcache instead of overriding it. Use
3788 regcache_xfree. Instead of calling free_inferior_status, xfree
3789 the buffer directly.
3790 (discard_inferior_status): Use regcache_xfree. Instead of calling
3791 free_inferior_status, xfree the buffer directly.
3792 (build_infrun): Use regcache_xmalloc.
3793 (_initialize_infrun): Delete redundant call to build_infrun.
3795 * Makefile.in (infcmd.o): Add $(regcache_h).
3797 * infcmd.c: Include "regcache.h".
3798 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3799 obtain the address of `stop_registers' register buffer.
3800 (print_return_value): Ditto.
3802 * inferior.h (struct regcache): Add opaque declaration.
3803 (stop_registers): Change variable's declared type to ``struct
3806 2002-06-24 Tom Tromey <tromey@redhat.com>
3808 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3809 * target.c (initialize_targets): Fixed typo in
3810 trust-readonly-sections `show' documentation.
3812 * main.c: Marked all strings with _().
3814 2002-06-24 Don Howard <dhoward@redhat.com>
3816 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3817 that means max CORE_ADDR+1.
3818 (lookup_mem_region): Ditto.
3819 (mem_info_command): Ditto.
3821 2002-06-24 Grace Sainsbury <graces@redhat.com>
3823 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3824 (REGISTER_BYTES_OK): Remove.
3825 (REGISTER_BYTES): Remove.
3826 (STORE_STRUCT_RETURN): Remove.
3827 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3828 (STORE_RETURN_VALUE): Remove.
3829 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3830 (FRAME_CHAIN): Remove.
3831 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3832 (FRAME_SAVED_PC): Remove.
3833 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3834 (m68k_store_struct_return): Add.
3835 (m68k_deprecated_extract_return_value): Add.
3836 (m68k_deprecated_extract_struct_value_address): Add.
3837 (m68k_store_return_value): Add.
3838 (m68k_frame_chain): Add.
3839 (m68k_frameless_function_invocation): Add.
3840 (m68k_frame_saved_pc): Add.
3841 (m68k_gdbarch_init): added set_gdbarch calls for new
3842 functions and deleted macros.
3844 2002-06-23 Tom Tromey <tromey@redhat.com>
3846 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3847 (ALLDEPFILES): Likewise.
3848 (udiheaders): Removed.
3849 (udip2soc.o): Likewise.
3850 (udi2go32.o): Likewise.
3852 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3854 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3856 * infrun.c (_initialize_infrun): Delete unnecessary call to
3859 * regcache.h: Update comments describing the regcache_cpy family
3861 (regcache_save, regcache_restore): Delete declaration.
3862 (regcache_save_no_passthrough): Delete declaration.
3863 (regcache_restore_no_passthrough): Delete declaration.
3864 * regcache.c (regcache_save): Delete function.
3865 (regcache_save_no_passthrough): Delete function.
3866 (regcache_restore): Delete function.
3867 (regcache_restore_no_passthrough): Delete function.
3869 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3871 * config/m68k/tm-m68k.h: Fix typo.
3872 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3873 (m68k_frame_init_saved_regs): Declare.
3875 2002-06-21 Jim Blandy <jimb@redhat.com>
3877 Remove some vestiges of Harris 88k support.
3878 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3879 register numbering quirk.
3880 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3881 odd symbols occurring in Harris 88k ELF targets.
3883 2002-06-21 Tom Tromey <tromey@redhat.com>
3885 * gdb_locale.h: New file.
3886 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3887 (defs_h): Added gdb_locale.h.
3888 * configure, config.in: Rebuilt.
3889 * configure.in (PACKAGE): Define.
3890 * defs.h: Include gdb_locale.h.
3891 * main.c (captured_main): Call setlocale, bindtextdomain,
3894 2002-06-21 Dave Brolley <brolley@redhat.com>
3896 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3897 * config/frv/frv.mt: New file.
3898 * config/frv/tm-frv.h: New file.
3899 * configure.tgt: Support frv-*-*.
3900 * Makefile.in (frv-tdep.o): New target.
3901 * frv-tdep.c: New file.
3902 * NEWS: Mention frv.
3904 2002-06-21 Dave Brolley <brolley@redhat.com>
3906 * MAINTAINERS: Add self to "Write After Approval" list.
3908 2002-06-21 Grace Sainsbury <graces@redhat.com>
3910 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3911 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3912 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3913 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3914 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3916 * m68k-tdep.c: Include arch-utils.h
3917 (m68k_register_raw_size): Add.
3918 (m68k_register_virtual_size): Add.
3919 (m68k_register_virtual_type): Add.
3920 (m68k_register_name): Add.
3921 (m68k_stack_align): Add.
3922 (m68k_register_byte): Add.
3923 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3926 2002-06-21 Grace Sainsbury <graces@redhat.com>
3928 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3929 m68k_find_saved_regs.
3930 (m68k_pop_frame): Removed saved_regs structure, and replaced
3931 references to it with frame->saved_regs.
3932 (m68k_gdbarch_init): Added function calls to initialize the
3934 (m68k_fix_call_dummy): Add.
3935 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3936 (CALL_DUMMY): Remove.
3937 (CALL_DUMMY_LENGTH): Remove.
3938 (CALL_DUMMY_START_OFFSET): Remove.
3939 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3940 (FIX_CALL_DUMMY): Remove.
3941 (PUSH_DUMMY_FRAME): Remove.
3942 (POP_FRAME): Remove.
3944 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3946 * parse.c (parse_fprintf): New function used to avoid calls to
3947 fprintf in bison parser generated debug code.
3948 * parser-defs.h: Declaration of new parse_fprintf function.
3949 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3950 Set YYDEBUG to 1 by default.
3951 Set YYFPRINTF as parse_fprintf.
3953 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3955 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3957 (pointer_encoding, enum ptr_encoding): New.
3958 (execute_cfa_program): Take care about pointer encoding.
3959 (dwarf2_build_frame_info): Only call parse_frame_info for
3960 .debug_frame and .eh_frame.
3961 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3962 fixed augmentation handling, added relative addressing,
3963 ignore duplicate FDEs. Added comments.
3964 * dwarf2cfi.c: Reindented.
3966 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3968 * event-top.c (command_handler): Don't use space_at_cmd_start
3969 unless there is sbrk() on the host. Assign time and space data
3970 to union fields of the appropriate length.
3972 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3974 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3975 x86_64_register_name. Return type changed to 'const char *'.
3976 (x86_64_register_name2nr): Rename to x86_64_register_number.
3977 (x86_64_gdbarch_init): Update to reflect the change.
3978 * x86-64-tdep.h: Ditto.
3979 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3980 (supply_fpregset): Ditto.
3982 2002-06-19 Andrew Cagney <cagney@redhat.com>
3984 * regcache.h: Update copyright.
3985 (struct regcache, struct gdbarch): Add opaque declarations.
3986 (current_regcache): Declare global variable.
3987 (regcache_read, regcache_write): Add gdbarch parameter.
3988 (regcache_save, regcache_save_no_passthrough)
3989 (regcache_restore, regcache_restore_no_passthrough)
3990 (regcache_dup, regcache_dup_no_passthrough)
3991 (regcache_cpy, regcache_cpy_no_passthrough)
3992 (deprecated_grub_regcache_for_registers)
3993 (deprecated_grub_regcache_for_register_valid)
3994 (regcache_valid_p): Add function declarations.
3996 * regcache.c: Update copyright.
3997 (regcache_descr_handle): New global variable.
3998 (struct regcache_descr): Define.
3999 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4000 (regcache_descr, xfree_regcache_descr): New functions.
4001 (struct regcache): Define.
4002 (regcache_xmalloc, regcache_xfree): New functions.
4003 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4004 (regcache_dup, regcache_dup_no_passthrough): New functions.
4005 (regcache_valid_p, regcache_read_as_address): New functions.
4006 (deprecated_grub_regcache_for_registers): New function.
4007 (deprecated_grub_regcache_for_register_valid): New function.
4008 (current_regcache): New global variable.
4009 (register_buffer): Add regcache parameter. Update calls.
4010 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4011 (read_register_gen, write_register_gen): Update register_buffer
4012 call. Test for legacy_p instead of gdbarch_register_read_p or
4013 gdbarch_register_write_p.
4014 (regcache_collect): Update register_buffer call.
4015 (build_regcache): Rewrite. Use deprecated grub functions.
4016 (regcache_save, regcache_save_no_passthrough): New functions.
4017 (regcache_restore, regcache_restore_no_passthrough): New
4019 (_initialize_regcache): Create the regcache_data_handle. Swap
4020 current_regcache global variable.
4022 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4023 parameter to regcache_read and regcache_write calls.
4024 (sh4_register_read): Ditto.
4025 (sh64_pseudo_register_read): Ditto.
4026 (sh64_register_read): Ditto.
4027 (sh_pseudo_register_write): Ditto.
4028 (sh4_register_write): Ditto.
4029 (sh64_pseudo_register_write): Ditto.
4030 (sh64_register_write): Ditto.
4032 * defs.h (XCALLOC): Define.
4034 2002-06-19 Grace Sainsbury <graces@redhat.com>
4036 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4037 * m68k-tdep.c (m68k_gdbarch_init): Added.
4038 (m68k_dump_tdep): Added.
4040 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4042 * ada-lang.c (fill_in_ada_prototype): Update comment.
4044 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4046 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4048 (mips_abi_string, mips_abi_strings): New.
4049 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4050 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4051 tdep->mips_abi_string. Honor mips_abi_string. Default to
4052 O32 if no ABI is found.
4053 (mips_dump_tdep): Use mips_abi_strings.
4054 (mips_abi_update): New function.
4055 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4056 ``set mips abi'' and ``show mips abi''. Check the size of
4059 2002-06-19 Andrew Cagney <cagney@redhat.com>
4061 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4064 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4066 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4067 current frame using only the first stack size adjustment. All
4068 subsequent size adjustments are not considered to be part of
4069 the "static" part of the current frame.
4070 Compute the address of the saved registers relative to the
4071 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4072 in use in this frame.
4074 2002-06-18 Don Howard <dhoward@redhat.com>
4076 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4077 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4078 suggesting this solution.
4080 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4082 * config/romp/xm-rtbsd.h: Delete file.
4083 * config/romp/rtbsd.mh: Delete file.
4085 2002-06-18 Keith Seitz <keiths@redhat.com>
4087 * breakpoint.c (condition_command): Post breakpoint_modify
4088 when a condition is added to an existing breakpoint.
4089 (commands_command): Likewise for commands.
4090 (set_ignore_count): Likewise for ignore counts.
4091 If no tty, do not simply return, still need to send event
4093 (ignore_command): Only print a newline if the command came
4095 Don't call breakpoints_changed, since this is now properly
4096 handled by set_ignore_count.
4098 2002-06-18 Andrew Cagney <cagney@redhat.com>
4100 * MAINTAINERS: Note that cris-elf target can be compiled with
4102 * cris-tdep.c (cris_register_name): Make return type constant.
4103 (cris_breakpoint_from_pc): Ditto.
4105 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4107 * frame.h (struct frame_info): Change type of context to
4110 2002-06-17 Andrew Cagney <cagney@redhat.com>
4112 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4114 * gdbarch.h, gdbarch.c: Regenerate.
4115 * config/mips/tm-mips.h (mips_register_name): Update.
4116 * i386-tdep.h (i386_register_name): Update.
4117 * mips-tdep.c (mips_register_name): Update
4118 * alpha-tdep.c (alpha_register_name): Update.
4119 * arch-utils.c (legacy_register_name): Update.
4120 * arch-utils.h (legacy_register_name): Update.
4121 * avr-tdep.c (avr_register_name): Update.
4122 * ia64-tdep.c (ia64_register_name): Update.
4123 * i386-tdep.c (i386_register_name): Update.
4124 * sparc-tdep.c (sparc32_register_name): Update.
4125 (sparc64_register_name): Update.
4126 (sparclite_register_name): Update.
4127 (sparclet_register_name): Update.
4128 * sh-tdep.c (sh_generic_register_name): Update.
4129 (sh_sh_register_name): Update.
4130 (sh_sh3_register_name): Update.
4131 (sh_sh3e_register_name): Update.
4132 (sh_sh_dsp_register_name): Update.
4133 (sh_sh3_dsp_register_name): Update.
4134 (sh_sh4_register_name): Update.
4135 (sh_sh64_register_name): Update.
4136 * s390-tdep.c (s390_register_name): Update.
4137 * rs6000-tdep.c (rs6000_register_name): Update.
4138 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4139 (ns32k_register_name_32382): Update.
4140 * d10v-tdep.c (d10v_ts2_register_name): Update.
4141 (d10v_ts3_register_name): Update.
4142 * xstormy16-tdep.c (xstormy16_register_name): Update.
4143 * vax-tdep.c (vax_register_name): Update.
4144 * v850-tdep.c (v850_register_name): Update.
4145 * m68hc11-tdep.c (m68hc11_register_name): Update.
4146 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4147 (am33_register_name): Update.
4149 2002-06-17 Grace Sainsbury <graces@redhat.com>
4151 * m68k-tdep.c: Reindented.
4153 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4155 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4156 list of predefined types.
4158 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4160 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4161 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4162 REGISTER_CONVERT_TO_RAW): Remove defines.
4163 (i386_register_virtual_type, i386_register_convertible,
4164 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4166 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4167 macros mentioned above.
4169 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4170 (i386lynx_saved_pc_after_call): Remove prototype.
4171 * i386ly-tdep.c: Include "i386-tdep.h".
4172 (i386lynx_saved_pc_after_call): Make static. Use
4173 read_memory_nobpt instead of read_memory. Use
4174 read_memory_unsigned_integer instead of read_memory_integer.
4175 (i386lynx_init_abi): New function.
4176 (i386lynx_coff_osabi_sniffer): New function.
4177 (_initialize_i386bsd_tdep): New function.
4179 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4180 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4181 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4182 (i386_fix_call_dummy): Remove prototype.
4183 * i386-tdep.c (i386_call_dummy_words): New variable.
4184 (i386_gdbarch_init): Adjust for removal of the
4185 macros mentioned above.
4187 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4189 * command.h (add_setshow_auto_boolean_cmd): Replace
4190 add_set_auto_boolean_cmd.
4191 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4192 add_set_auto_boolean_cmd.
4193 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4194 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4195 mask-address'' command.
4196 (show_mask_address): Add cmd parameter.
4197 * remote.c (add_packet_config_cmd): Update. Change type of
4198 set_func and show_func to cmd_sfunc_ftype.
4199 (_initialize_remote): Update `set remote Z-packet'
4200 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4201 (show_remote_protocol_e_packet_cmd): Ditto.
4202 (show_remote_protocol_E_packet_cmd): Ditto.
4203 (show_remote_protocol_P_packet_cmd): Ditto.
4204 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4205 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4206 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4207 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4208 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4209 (show_remote_protocol_Z_packet_cmd): Ditto.
4210 (show_remote_protocol_binary_download_cmd): Ditto.
4211 (show_remote_cmd): Pass NULL to all of above.
4213 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4215 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4216 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4217 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4218 POP_FRAME): Remove defines.
4219 (i386_push_arguments, i386_store_struct_return,
4220 i386_extract_return_value, i386_store_return_value,
4221 i386_extract_struct_value_address, i386_push_dummy_frame,
4222 i386_pop_frame): Renove prototypes.
4223 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4224 macros mentioned above.
4226 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4228 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4229 add_set_boolean_cmd.
4230 (add_setshow_cmd): New function.
4231 * command.h (add_setshow_boolean_cmd): Replace
4232 add_set_boolean_cmd.
4233 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4234 and ``set rdiromatzero''.
4235 * maint.c (_initialize_maint_cmds): Update commented out code.
4236 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4237 * target.c (initialize_targets): Update `set
4238 trust-readonly-sections'.
4239 * remote.c (_initialize_remote): Update `set remotebreak'.
4241 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4243 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4244 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4245 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4246 fit into multi-arch framework.
4247 (i386_breakpoint_from_pc): New function.
4248 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4251 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4252 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4253 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4254 (i386_frameless_function_invocation, i386_frame_num_args,
4255 i386_frame_init_saved_regs): Remove prototypes.
4256 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4257 macros mentioned above.
4259 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4261 * cli/cli-decode.c (set_cmd_cfunc): Update.
4262 (set_cmd_sfunc): Update.
4263 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4264 (set_cmd_sfunc, set_cmd_cfunc): Update.
4265 * cli/cli-decode.h: Update.
4267 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4269 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4270 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4272 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4274 * defs.h (auto_boolean): Declare enum.
4275 * command.h (cmd_auto_boolean): Delete enum.
4276 * mips-tdep.c (mask_address_var): Update.
4277 (mips_mask_address_p): Update.
4278 (show_mask_address): Update.
4279 * remote.c (struct packet_config): Update.
4280 (update_packet_config): Update.
4281 (show_packet_config_cmd): Update.
4282 (packet_ok): Update.
4283 (add_packet_config_cmd): Update.
4284 (_initialize_remote):
4285 * command.h: Update.
4286 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4287 (do_setshow_command): Update.
4288 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4289 * cli/cli-decode.h: Update.
4291 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4293 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4294 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4295 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4296 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4297 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4298 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4300 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4301 list of DJGPP COFF targets.
4303 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4304 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4305 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4306 (FP0_REGNUM): Remove define.
4307 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4308 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4309 (i386_register_virtual_size): Remove protoype.
4310 * i386-tdep.c (i386_register_virtual_size): Removed.
4311 (i386_extract_return_value, i386_store_return_value): Use
4312 FP0_REGNUM instead of NUM_FREGS to determine whether the
4313 floating-point registers are available.
4314 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4315 Adjust for removal of macros mentioned above.
4317 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4319 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4321 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4323 (supply_gregset, fill_gregset): Remove use of register keyword and
4324 remove declaration for regmap. Use I386_NUM_GREGS instead of
4325 NUM_REGS and NUM_FREGS.
4326 (FPREGSET_FSAVE_OFFSET): Remove.
4327 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4328 NUM_FREGS to determine whether the floating-point registers are
4331 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4332 gnu_store_registers): Replace usage of NUM_GREGS with
4335 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4336 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4337 usage of NUM_GREGS with I386_NUM_GREGS.
4339 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4341 * i386bsd-nat.c: Include "i386-tdep.h".
4342 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4345 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4346 and associated comment. They no longer make any sense, since we
4347 don't use this file anymore on Linux.
4349 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4350 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4351 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4352 elements in these arrays.
4353 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4356 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4358 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4359 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4361 2002-06-14 Andrew Cagney <cagney@redhat.com>
4363 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4364 EXTRACT_RETURN_VALUE.
4365 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4366 EXTRACT_STRUCT_VALUE_ADDRESS.
4367 * gdbarch.h, gdbarch.c: Regenerate.
4369 * values.c (value_being_returned): Handle
4370 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4371 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4373 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4374 * arm-tdep.c (arm_gdbarch_init): Update.
4375 * avr-tdep.c (avr_gdbarch_init): Update.
4376 * cris-tdep.c (cris_gdbarch_init): Update.
4377 * d10v-tdep.c (d10v_gdbarch_init): Update.
4378 * ia64-tdep.c (ia64_gdbarch_init): Update.
4379 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4380 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4381 * s390-tdep.c (s390_gdbarch_init): Update.
4382 * sh-tdep.c (sh_gdbarch_init): Update.
4383 * s390-tdep.c (s390_gdbarch_init): Update.
4384 * sparc-tdep.c (sparc_gdbarch_init): Update.
4385 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4386 * v850-tdep.c (v850_gdbarch_init): Update.
4387 * vax-tdep.c (vax_gdbarch_init): Update.
4388 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4391 * config/arc/tm-arc.h: Update.
4392 * config/d30v/tm-d30v.h: Update.
4393 * config/fr30/tm-fr30.h: Update.
4394 * config/h8300/tm-h8300.h: Update.
4395 * config/h8500/tm-h8500.h: Update.
4396 * config/i386/tm-i386.h: Update.
4397 * config/i386/tm-ptx.h: Update.
4398 * config/i386/tm-symmetry.h: Update.
4399 * config/i960/tm-i960.h: Update.
4400 * config/m32r/tm-m32r.h: Update.
4401 * config/m68k/tm-delta68.h: Update.
4402 * config/m68k/tm-linux.h: Update.
4403 * config/m68k/tm-m68k.h: Update.
4404 * config/m88k/tm-m88k.h: Update.
4405 * config/mcore/tm-mcore.h: Update.
4406 * config/mips/tm-mips.h: Update.
4407 * config/mn10200/tm-mn10200.h: Update.
4408 * config/pa/tm-hppa.h: Update.
4409 * config/pa/tm-hppa64.h: Update.
4410 * config/sparc/tm-sp64.h: Update.
4411 * config/sparc/tm-sparc.h: Update.
4412 * config/sparc/tm-sparclet.h: Update.
4413 * config/z8k/tm-z8k.h: Update.
4415 2002-06-14 Andrew Cagney <cagney@redhat.com>
4417 * Makefile.in (i386_linux_tdep_h): Define.
4418 (i386_tdep_h, i387_tdep_h): Define.
4419 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4420 $(i386_tdep_h) and $(i387_tdep_h).
4421 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4423 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4425 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4426 Already covered by the default.
4428 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4429 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4430 (i386_gdbarch_init): Initialize long_double_format and long_double
4433 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4434 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4436 * config/i386/i386sol2.mh: ... here.
4437 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4438 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4439 (SIGCONTEXT_PC_OFFSET): Remove define.
4440 (IN_SIGTRAMP): Remove define.
4441 * i386-sol2-tdep.c: New file.
4443 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4444 * config/i386/tm-i386nw.h: Removed.
4446 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4447 USE_STRUCT_CONVENTION): Remove defines.
4448 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4449 (get_longjmp_target): Remove prototype.
4450 (IN_SIGTRAMP): Remove define.
4451 (i386bsd_in_sigtramp): Remove prototype.
4452 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4453 function. Update comment accordingly
4454 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4455 (FRAME_SAVED_PC): Remove define.
4456 (i386bsd_frame_saved_pc): Remove prototype.
4457 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4458 GET_LONGJMP_TARGET): Remove defines.
4459 (get_longjmp_target): Remove prototype.
4460 (IN_SIGTRAMP): Remove define.
4461 (i386bsd_in_sigtramp): Remove prototype.
4462 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4463 function. Update comment accordingly
4464 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4465 (FRAME_SAVED_PC): Remove define.
4466 (i386bsd_frame_saved_pc): Remove prototype.
4467 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4469 (USE_STRUCT_CONVENTION): Remove prototype.
4470 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4472 (_initialize_i386bsd_nat): Revise logic to determine some
4473 constants at compile time when compiling a native GDB. Warn if
4474 things don't match up with what we expect.
4475 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4477 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4478 to use date stored in `struct gdbarch_tdep'.
4479 (i386bsd_sigcontext_offset): Remove varaible.
4480 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4481 stored in `struct gdbarch_tdep'.
4482 (i386bsd_frame_saved_pc): Make static.
4483 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4484 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4485 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4486 i386fbsd4_sc_pc_offset): New variables.
4487 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4488 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4490 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4492 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4493 Modify the value of i386fbsd_sigtramp_start and
4494 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4495 i386fbsd_sigtramp_end.
4496 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4499 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4500 define to i386-linux-tdep.h.
4501 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4502 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4504 (i386_linux_register_name, i386_linux_register_byte,
4505 i386_linux_register_raw_size): Remove prototypes.
4506 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4507 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4508 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4509 TARGET_WRITE_PC): Remove defines.
4510 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4511 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4512 i386_linux_write_pc): Remove prototypes.
4513 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4514 (get_longjmp_target): Remove prototype.
4515 * i386-linux-tdep.h: New file.
4516 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4517 * i386-linux-tdep.c: Include "i386-tdep.h" and
4518 "i386-linux-tdep.h".
4519 (i386_linux_register_name, i386_linux_register_byte,
4520 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4521 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4523 (i386_linux_init_abi): New function.
4524 (_initialize_i386_linux_tdep): New function.
4526 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4527 (i386_saved_pc_after_call): Remove prototype.
4528 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4529 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4530 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4531 (i386_register_name, i386_stab_reg_to_regnum,
4532 i386_dwarf_reg_to_regnum): Remove prototypes.
4533 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4534 SIZEOF_SSE_REGS): Remove defines.
4535 (REGISTER_BYTES): Remove define.
4536 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4537 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4538 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4539 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4540 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4541 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4542 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4543 (get_longjmp_target): Remove prototype.
4544 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4545 (sigtramp_saved_pc): Remove define.
4546 (i386v4_sigtramp_saved_pc): Remove prototype.
4547 * config/i386/tm-go32.h (FRAME_CHAIN,
4548 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4549 (i386go32_frame_saved_pc): Remove prototype.
4550 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4551 (get_longjmp_target): Remove prototype.
4552 * i386-tdep.h: Include "osabi.h".
4553 (enum i386_abi): Removed.
4554 (enum struct_return): New enum.
4555 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4556 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4557 sc_pc_offset members.
4558 (i386_gdbarch_register_os_abi): Remove prototype.
4559 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4560 I386_SSE_NUM_REGS): New defines.
4561 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4562 I386_SSE_SIZEOF_REGS): New defines.
4563 (i386_register_name, i386_register_byte, i386_register_raw_size):
4565 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4566 (i386bsd_sigtramp_saved_pc): New prototype.
4567 * i386-tdep.c: Don't include "elf-bfd.h".
4568 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4569 i386_frame_chain, i386_saved_pc_after_call): Make static.
4570 (i386_frame_saved_pc): Rewrite to call architecture dependent
4571 function to deal with signal handlers. Make static.
4572 (i386go32_frame_saved_pc): Removed.
4573 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4575 (i386_get_longjmp_target): New function.
4576 (default_struct_convention, pcc_struct_convention,
4577 reg_struct_convention, valid_conventions, struct_convention): New
4579 (i386_use_struct_convention): New function.
4580 (i386v4_sigtramp_saved_pc): Renamed to
4581 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4582 (i386_pc_in_sigtramp): New function.
4583 (i386_abi_names): Removed.
4584 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4585 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4587 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4588 i386_gdbarch_register_os_abi): Removed.
4589 (struct i386_abi_handler): Removed.
4590 (i386_abi_handler_list): Removed.
4591 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4593 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4594 i386_nw_init_abi): New functions.
4595 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4596 Use set_gdbarch_xxx() calls instead of relying on macros for a
4598 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4599 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4600 Register the various architecture variants defined in this file.
4602 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4604 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4605 (struct main_type): Remove arg_types member. Update comments for
4607 (TYPE_ARG_TYPES): Remove.
4608 (TYPE_FN_FIELD_ARGS): Update.
4609 (smash_to_method_type): Update prototype.
4611 * c-typeprint.c (cp_type_print_method_args): Take method type
4612 instead of argument list. Use new argument layout. Simplify.
4613 (c_type_print_args): Use new argument layout. Simplify.
4614 (c_type_print_base): Update call to cp_type_print_method_args.
4615 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4616 argument; use die->type instead. Update call to
4617 smash_to_method_type.
4618 (read_structure_scope): Update call to dwarf2_add_member_fn.
4619 * gdbtypes.c (allocate_stub_method): Update comment.
4620 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4621 Use new argument layout.
4622 (check_stub_method): Use new argument layout. Don't count
4623 void as an argument.
4624 (print_arg_types): Update comments. Use new argument layout.
4625 (recursive_dump_type): Don't print arg_types member.
4626 * hpread.c (hpread_read_struct_type): Use new argument layout.
4627 (fixup_class_method_type): Likewise.
4628 (hpread_type_lookup): Likewise.
4629 * stabsread.c (read_type): Update calls to read_args and
4630 smash_to_method_type.
4631 (read_args): Use new argument layout. Simplify.
4632 * valops.c (typecmp): Use new argument layout. Update parameters
4633 and comments. Simplify.
4634 (hand_function_call): Use new argument layout.
4635 (search_struct_method): Update call to typecmp.
4636 (find_overload_match): Use new argument layout.
4638 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4640 * NEWS: Mention multithreaded debug support for gdbserver.
4642 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4644 * MAINTAINERS: Mention NEWS.
4646 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4648 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4649 (struct mips_objfile_private, compare_pdr_entries): New.
4650 (non_heuristic_proc_desc): Read the ".pdr" section if it
4653 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4655 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4656 (arm_debug): New static variable.
4657 (_initialize_arm_tdep): Add ``set debug arm'' command.
4659 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4661 * Makefile.in (sim_arm_h): Define.
4662 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4663 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4664 (arm_register_sim_regno): New function, map an internal REGNUM
4665 onto a simulator register number.
4666 (arm_gdbarch_init): Set register_sim_regno.
4668 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4670 * MAINTAINERS: Add self.
4672 2002-06-11 Jim Blandy <jimb@redhat.com>
4674 * source.c (source_info): Mention whether the symtab has
4675 information about preprocessor macros.
4677 Call the command `info macro', not `show macro'.
4678 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4680 (_initialize_macrocmd): Register `info_macro_command' in
4681 `infolist', not `showlist'.
4683 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4685 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4686 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4687 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4688 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4689 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4691 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4692 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4693 (_initialize_mips_tdep): Remove dead code.
4694 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4695 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4696 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4697 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4698 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4699 MIPS_LAST_FP_ARG_REGNUM): Remove.
4701 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4703 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4704 (unwind_tmp_obstack_free, parse_frame_info)
4705 (update_context, cfi_read_fp, cfi_write_fp)
4706 (cfi_frame_chain, cfi_init_extra_frame_info)
4707 (cfi_virtual_frame_pointer): Use the above function.
4708 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4710 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4712 * v850-tdep.c (v850_type_is_scalar): New function.
4713 (v850_use_struct_convention): Match current gcc implementation
4714 as close as possible.
4715 (v850_push_arguments): Fix stack_offset handling. Don't write
4716 struct_addr into register. This is done by v850_store_struct_return.
4717 (v850_extract_return_value): Care for structs.
4718 (v850_store_return_value): Ditto.
4719 (v850_store_struct_return): Actually write address.
4721 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4723 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4724 without debug information too.
4726 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4728 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4729 Make multi-arch pure.
4730 * gdbarch.h, gdbarch.c: Re-generate.
4731 * arm-tdep.c (arm_print_float_info): Update.
4732 * arch-utils.h (default_print_float_info): Update.
4733 * arch-utils.c (default_print_float_info): Update.
4734 * infcmd.c (float_info): Update call.
4736 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4738 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4739 the front of the initialize list.
4741 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4743 * infrun.c (struct inferior_status): Replace fields
4744 selected_frame_address and selected_level with field
4746 (save_inferior_status): Update. Use get_frame_id.
4747 (struct restore_selected_frame_args): Delete.
4748 (restore_selected_frame): Update. Use frame_find_by_id.
4749 (restore_inferior_status): Update.
4751 * breakpoint.h (struct breakpoint): Change type of
4752 watchpoint_frame to frame_id.
4753 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4754 call to get_current_frame.
4755 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4757 (watchpoint_check): Use frame_find_by_id.
4759 * frame.h (record_selected_frame): Delete declaration.
4760 * stack.c (record_selected_frame): Delete function.
4762 * frame.h (struct frame_id): Define.
4763 (get_frame_id): Declare.
4764 (frame_find_by_id): Declare.
4765 * frame.c (frame_find_by_id): New function.
4766 (get_frame_id): New function.
4768 2002-06-10 Andrey Volkov <avolkov@transas.com>
4770 * ser-e7kpc.c: Fix duplicated define and call of
4771 _initialize_ser_e7000pc
4773 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4775 * signals/signals.c (target_signal_from_host): Fix #ifdef
4777 (do_target_signal_to_host): Likewise.
4779 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4781 * mips-tdep.c (mips_find_abi_section): New function.
4782 (mips_gdbarch_init): Call it.
4784 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4786 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4787 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4788 after Andrew's 2002-06-08 gdbarch change.
4790 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4792 * i386-linux-nat.c (suppy_gregset): Don't supply
4793 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4795 (fill_gregset): Don't fetch it under the same circumstances.
4797 2002-06-09 Andrew Cagney <cagney@redhat.com>
4799 * Makefile.in (callback_h): Define.
4800 (remote_sim_h): Update path to remote-sim.h.
4801 (remote-rdp.o): Add $(callback_h).
4802 (remote-sim.o): Use $(callback_h).
4803 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4804 * remote-rdp.c: Include "gdb/callback.h".
4806 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4808 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4809 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4811 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4813 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4814 * rdi-share/serpardr.c: Ditto.
4815 * rdi-share/unixcomm.c: Ditto.
4816 * rdi-share/serdrv.c: Ditto.
4817 * rdi-share/hostchan.h: Ditto.
4818 * rdi-share/hostchan.c: Ditto.
4819 * rdi-share/host.h: Ditto.
4820 * rdi-share/devsw.c: Ditto.
4822 * objfiles.h: Change type of obj_private to void pointer.
4823 * pa64solib.c: Update copyright. Don't include "assert.h", use
4824 strcmp instead of STREQ, use LONGEST, do not use PTR
4825 * somsolib.c: Ditto.
4827 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4828 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4829 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4831 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4833 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4834 (default_get_saved_register): Delete function.
4835 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4836 generic_unwind_get_saved_register.
4837 * gdbarch.h, gdbarch.c: Re-generate.
4839 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4841 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4842 generic_func_frame_chain_valid.
4843 * gdbarch.h, gdbarch.c: Re-generate.
4844 * blockframe.c (generic_func_frame_chain_valid): Only check
4845 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4846 passing FP to PC_IN_CALL_DUMMY.
4849 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4851 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4852 (register_gdbarch_data): Initialize init_p.
4853 (gdbarch_data): Initialize data pointer using the init function.
4854 (init_gdbarch_data): Delete function.
4855 (gdbarch_update_p): Update.
4856 (initialize_non_multiarch): Update.
4857 (struct gdbarch): Add field initialized_p.
4858 * gdbarch.h, gdbarch.c: Re-generate.
4860 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4862 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4863 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4864 better do the things actually here.
4865 * x86-64-tdep.c (x86_64_register_name2nr): New.
4866 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4867 (x86_64_gdbarch_init): Respect the above change.
4868 * x86-64-tdep.h (x86_64_register_name2nr)
4869 (x86_64_register_nr2name): Add prototypes.
4870 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4872 2002-06-06 Michael Snyder <msnyder@redhat.com>
4874 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4875 Delete extra braces and re-indent.
4876 (d10v_store_return_value): Char return values
4877 must be shifted over by one byte in R0.
4878 (d10v_extract_return_value): Delete extra braces, re-indent.
4880 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4882 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4883 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4884 (d10v_integer_to_address): Rewrite.
4885 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4886 the d10v specific functions which take care of converting to the
4889 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4891 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4892 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4894 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4896 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4898 * config/tm-linux.h: Ditto.
4899 * config/alpha/tm-alphalinux.h: Ditto.
4900 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4901 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4902 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4903 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4904 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4905 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4906 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4907 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4908 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4909 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4910 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4911 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4912 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4913 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4914 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4915 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4916 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4917 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4918 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4919 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4920 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4921 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4922 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4923 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4924 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4925 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4926 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4927 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4928 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4929 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4930 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4931 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4932 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4933 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4934 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4935 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4936 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4938 2002-05-04 Aidan Skinner <aidan@velvet.net>
4940 * ada-exp.tab.c: New file
4941 * ada-exp.y: New file
4942 * ada-lang.c: New file
4943 * ada-lang.h: New file
4944 * ada-lex.c: New file
4945 * ada-lex.l: New file
4946 * ada-tasks.c: New file
4947 * ada-typeprint.c: New file
4948 * ada-valprint.c: New file
4950 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4952 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4953 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4955 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4957 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4958 insetead of ppc-linux-tdep.o.
4959 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4960 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4962 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4964 2002-05-07 Christian Groessler <chris@groessler.org>
4965 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4966 bit register contents for little endian hosts.
4968 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4970 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4973 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4975 * gdbarch.h: Regenerate.
4977 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4979 * MAINTAINERS: Add everyone to write-after-approval list.
4981 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4983 * stack.c (frame_info): Use frame_register_unwind instead of
4984 saved_regs. Mention when the SP is on the stack or in a register.
4986 * frame.h (frame_register_unwind_ftype): Define. Document.
4987 (struct frame_info): Add field register_unwind and
4988 register_unwind_cache.
4989 (frame_register_unwind): Declare.
4990 (generic_unwind_get_saved_register): Declare.
4992 * frame.c (frame_register_unwind): New function.
4993 (generic_unwind_get_saved_register): New function.
4995 * blockframe.c (generic_call_dummy_register_unwind): New function.
4996 (frame_saved_regs_register_unwind): New function.
4997 (set_unwind_by_pc): New function.
4998 (create_new_frame): New function.
4999 (get_prev_frame): New function.
5001 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5003 * a29k-share/: Delete directory.
5004 * remote-vx29k.c: Delete file.
5006 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5008 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5009 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5011 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5013 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5014 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5017 (sparcnbsd-tdep.o): New dependency lists.
5018 * NEWS: Note new UltraSPARC NetBSD native configuration.
5019 * configure.host (sparc64-*-netbsd*): New host.
5020 * configure.tgt (sparc-*-netbsdelf*)
5021 (sparc-*-netbsd*): Set gdb_target to nbsd.
5022 (sparc64-*-netbsd*): New target.
5023 * sparc64nbsd-nat.c: New file.
5024 * sparcnbsd-nat.c: New file.
5025 * sparcnbsd-tdep.c: New file.
5026 * sparcnbsd-tdep.h: New file.
5027 * config/sparc/nbsd.mt: New file.
5028 * config/sparc/nbsd64.mh: New file.
5029 * config/sparc/nbsd64.mt: New file.
5030 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5031 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5033 * config/sparc/nbsdaout.mt: Remove.
5034 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5035 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5037 * config/sparc/nbsdelf.mt: Remove.
5038 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5039 sparc-nat.c compatiblity defines.
5040 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5041 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5042 * config/sparc/tm-nbsd64.h: New file.
5043 * config/sparc/tm-nbsdaout.h: Remove.
5044 * config/sparc/xm-nbsd.h: Remove.
5046 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5048 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5049 * sparc-tdep.c: Include osabi.h.
5050 (gdbarch_tdep): Add osabi member.
5051 (_initialize_sparc_tdep): Use gdbarch_register.
5052 (sparc_gdbarch_init): Use generic OS ABI framework.
5053 (sparc_dump_tdep): New function.
5055 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5057 * corefile.c (do_captured_read_memory_integer): Return non-zero
5059 (safe_read_memory_integer): Copy result of memory read when
5060 status is non-zero. Also, add comments.
5062 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5064 * Makefile.in (ppc_tdep_h): Define.
5067 (rs6000-tdep.o): Use $(ppc_tdep_h).
5070 (ppcnbsd-tdep.o): New dependency lists.
5071 * ppc-tdep.h: Use generic OS ABI framework.
5072 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5073 (ppc_linux_init_abi): New functions.
5074 (ppc_sysv_abi_broken_use_struct_convention)
5075 (ppc_sysv_abi_use_struct_convention)
5076 (ppc_sysv_abi_push_arguments): Move to...
5077 * ppc-sysv-tdep.c: ...here.
5078 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5079 * rs6000-tdep.c (process_note_abi_tag_sections)
5080 (get_elfosabi): Remove.
5081 (rs6000_gdbarch_init): Use generic OS ABI framework.
5082 (rs6000_dump_tdep): New function.
5083 (_initialize_rs6000_tdep): Use gdbarch_register.
5084 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5085 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5086 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5087 of ppc-linux-tdep.o.
5088 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5089 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5090 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5091 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5092 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5093 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5095 2002-05-29 Jim Blandy <jimb@redhat.com>
5097 * macroscope.c (default_macro_scope): Put `void' in empty argument
5100 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5102 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5103 * arch-utils.c: Include "sim-regno.h".
5104 * gdbarch.sh: Don't include "sim-regno.h".
5105 * gdbarch.h, gdbarch.c: Regenerate.
5106 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5108 * arch-utils.h (legacy_register_sim_regno): To here.
5109 * remote-sim.c (legacy_register_sim_regno): Move function from
5111 * arch-utils.c (legacy_register_sim_regno): To here.
5113 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5115 * sim-regno.h: New file.
5116 * Makefile.in (sim_regno_h): Define.
5117 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5118 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5119 (legacy_register_sim_regno): New function.
5120 (one2one_register_sim_regno): New function.
5121 (gdbsim_fetch_register): Rewrite.
5122 (gdbsim_store_register): Only store a register when
5123 REGISTER_SIM_REGNO is valid.
5124 * d10v-tdep.c: Include "sim-regno.h".
5125 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5126 (d10v_ts3_register_sim_regno): Ditto.
5127 * gdbarch.sh: Include "sim-regno.h".
5128 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5129 * gdbarch.h, gdbarch.c: Regenerate.
5130 * arch-utils.h (default_register_sim_regno): Delete declaration.
5131 * arch-utils.c (default_register_sim_regno): Delete function.
5133 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5135 * ppcnbsd-nat.c: Rewrite.
5136 * ppcnbsd-tdep.c: New file.
5137 * ppcnbsd-tdep.h: New file.
5138 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5139 solib.o, and solib-svr4.o.
5140 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5141 nbsd-tdep.o, and corelow.o.
5143 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5145 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5146 `tr' and `sed'. Mention that `broken' targets are not expected to
5149 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5151 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5152 Let PC point right after the prologue before looking up symbols.
5154 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5156 * i386-tdep.c (i386_register_virtual_type): Return
5157 builtin_type_vec128i for SSE registers.
5159 * gdbtypes.h (builtin_type_vec128i): Declare.
5161 * gdbtypes.c (build_builtin_type_vec128i): New function.
5162 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5163 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5164 (build_gdbtypes): Initialize new builtin vector types.
5165 (_initialize_gdbtypes): Register new vector types with gdbarch.
5167 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5169 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5170 since it has been multi-arch'd.
5171 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5172 Move Alpha and VAX multi-arch news entries to same section
5173 as other multi-arch news.
5175 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5177 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5178 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5179 static. Rename some register numbers to put them in ns32k-tdep
5181 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5182 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5184 (_initialize_ns32k_tdep): Use gdbarch_register.
5185 * ns32k-tdep.h: New file.
5186 * ns32knbsd-tdep.c: New file.
5187 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5188 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5189 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5190 REGISTER_BYTES, REGISTER_BYTE): Remove.
5191 * config/ns32k/tm-ns32k.h: New file.
5192 * config/ns32k/tm-umax.h: Remove.
5194 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5196 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5197 ns32k_store_struct_return, ns32k_extract_return_value,
5198 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5200 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5201 ns32k_saved_pc_after_call.
5202 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5203 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5204 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5205 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5206 ns32k_extract_struct_value_address.
5208 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5210 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5211 ns32k_fix_call_dummy): New.
5212 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5213 ns32k_call_dummy_words.
5214 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5215 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5216 CALL_DUMMY_NARGS): Remove.
5217 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5219 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5221 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5222 ns32k_frame_saved_pc, ns32k_frame_args_address,
5223 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5224 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5225 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5226 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5227 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5228 (BREAKPOINT): Remove..
5229 (FRAME_CHAIN): Define as ns32k_frame_chain.
5230 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5231 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5232 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5233 (FRAME_FIND_SAVED_REGS): Remove.
5234 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5235 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5236 (POP_FRAME): Define as ns32k_pop_frame.
5238 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5240 * ns32k-tdep.c (ns32k_register_byte_32082,
5241 ns32k_register_byte_32382, ns32k_register_raw_size,
5242 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5244 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5245 ns32k_register_byte_32382.
5246 * config/ns32k/tm-umax.h: Update copyright years.
5247 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5248 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5249 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5250 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5251 (ns32k_get_enter_addr): Fix prototype.
5253 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5255 * ns32k-tdep.c: Update copyright years.
5256 (ns32k_register_name_32082): New function.
5257 (ns32k_register_name_32382): Ditto.
5258 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5259 (REGISTER_NAME): Define as ns32k_register_name_32382.
5260 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5261 (REGISTER_NAME): Define as ns32k_register_name_32082.
5263 2002-05-24 Jim Blandy <jimb@redhat.com>
5265 * dwarf2read.c (free_line_header): Use xfree, not free.
5267 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5269 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5270 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5272 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5274 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5276 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5278 From Ross Alexander at NEC Europe:
5279 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5281 2002-05-23 Michael Snyder <msnyder@redhat.com>
5283 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5284 for input, rather than parse_and_eval_address.
5286 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5288 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5289 * Makefile.in (sim_d10v_h): Update definition.
5291 2002-05-24 Andrew Cagney <cagney@redhat.com>
5293 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5294 change `2002-05-22 Michael Snyder' below.
5295 (d10v_push_arguments): Ditto.
5296 (d10v_extract_return_value): Ditto.
5298 2002-05-23 Jim Blandy <jimb@redhat.com>
5300 * macrotab.c (check_for_redefinition): Don't complain if the new
5301 definition is the same as the previous one. Take more arguments
5302 to allow the comparison.
5303 (macro_define_object, macro_define_function): Pass more arguments
5304 to check_for_redefinition.
5306 2002-05-22 Michael Snyder <msnyder@redhat.com>
5308 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5309 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5310 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5311 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5312 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5313 Add a temp variable to save a call (and a memory read).
5314 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5315 if possible (so that PC_IN_CALL_DUMMY will work).
5317 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5319 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5321 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5323 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5325 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5326 (dwarf2_build_frame_info): Add offset to fde->initial_location
5327 so that frames of shared libraries are mapped correctly.
5328 (execute_stack_op): Change type of 'result' from ULONGEST to
5331 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5333 * config/alpha/tm-nbsd.h: Include solib.h.
5335 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5337 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5338 assumptions about the host's byte order.
5340 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5342 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5344 * alphanbsd-tdep.c: Include solib-svr4.h.
5345 * shnbsd-tdep.c: Ditto.
5347 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5349 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5350 nbsd-tdep.h to dependency list.
5351 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5352 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5353 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5354 nbsdaout.mh and nbsdelf.mh consistently.
5355 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5356 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5357 nbsdaout.mt and nbsdelf.mh consistently.
5358 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5359 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5360 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5361 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5362 a.out shared library stuff from here...
5363 * config/nm-nbsdaout.h: ...to here.
5364 * config/tm-nbsd.h: Remove.
5365 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5366 * config/arm/nbsd.mh: Remove.
5367 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5369 * config/arm/nbsdaout.mh: New file.
5370 * config/arm/nbsdelf.mh: New file.
5371 * config/arm/nm-nbsdaout.h: New file.
5372 * config/i386/nbsd.mh: Remove.
5373 * config/i386/nbsd.mt: Remove.
5374 * config/i386/nbsdaout.mh: New file.
5375 * config/i386/nbsdaout.mt: New file.
5376 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5377 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5378 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5379 i386_register_u_addr): Remove.
5380 * config/i386/nm-nbsdaout.h: New file.
5381 * config/i386/nm-nbsdelf.h: Remove.
5382 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5383 (USE_STRUCT_CONVENTION): Remove.
5384 * config/i386/tm-nbsdaout.h: New file.
5385 * config/i386/tm-nbsdelf.h: Remove.
5386 * config/m68k/nbsd.mh: Remove.
5387 * config/m68k/nbsd.mt: Remove.
5388 * config/m68k/nbsdaout.mh: New file.
5389 * config/m68k/nbsdaout.mt: New file.
5390 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5391 * config/m68k/nm-nbsdaout.h: New file.
5392 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5393 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5394 * config/ns32k/nbsd.mh: Remove.
5395 * config/ns32k/nbsd.mt: Remove.
5396 * config/ns32k/nbsdaout.mh: New file.
5397 * config/ns32k/nbsdaout.mt: New file.
5398 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5399 * config/ns32k/nm-nbsdaout.h: New file.
5400 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5401 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5402 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5403 (SVR4_SHARED_LIBS): Remove.
5404 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5405 * config/sparc/nbsd.mh: Remove.
5406 * config/sparc/nbsd.mt: Remove.
5407 * config/sparc/nbsdaout.mh: New file.
5408 * config/sparc/nbsdaout.mt: New file.
5409 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5410 * config/sparc/nbsdelf.mt: New file.
5411 * config/sparc/nm-nbsdaout.h: New file.
5412 * config/sparc/nm-nbsdelf.h: Remove.
5413 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5414 * config/sparc/tm-nbsdaout.h: New file.
5416 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5418 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5420 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5422 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5424 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5426 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5428 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5430 * NEWS: Note new MIPS NetBSD native configuration.
5431 * configure.host (mips*-*-netbsd*): New host.
5432 * configure.tgt (mips*-*-netbsd*): New target.
5433 * mipsnbsd-nat.c: New file.
5434 * mipsnbsd-tdep.c: New file.
5435 * mipsnbsd-tdep.h: New file.
5436 * config/mips/nbsd.mh: New file.
5437 * config/mips/nbsd.mt: New file.
5438 * config/mips/nm-nbsd.h: New file.
5439 * config/mips/tm-nbsd.h: New file.
5441 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5443 * Makefile.in (SFILES): Add osabi.c.
5444 (COMMON_OBS): Add osabi.o.
5445 (osabi.o): New dependency list.
5446 * osabi.c: New file.
5447 * osabi.h: New file.
5448 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5450 * Makefile.in (alpha_tdep_h): Define and use instead of
5452 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5453 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5455 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5456 * alpha-tdep.h: Include osabi.h.
5457 (alpha_abi): Remove.
5458 (gdbarch_tdep): Use generic OS ABI framework.
5459 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5460 gdbarch_register_osabi.
5461 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5462 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5463 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5465 * Makefile.in (sh_tdep_h): Add osabi.h.
5466 * sh-tdep.h (sh_osabi): Remove.
5467 (gdbarch_tdep): Use generic OS ABI framework.
5468 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5469 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5470 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5471 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5473 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5474 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5475 gdbarch_register_osabi.
5476 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5477 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5478 (get_elfosabi): Rename to...
5479 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5480 ABI framework support routines.
5481 (arm_gdbarch_init): Use generic OS ABI framework.
5482 (arm_dump_tdep): Likewise.
5483 (_initialize_arm_tdep): Likewise.
5484 * arm-tdep.h: Include osabi.h.
5486 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5488 (arm_gdbarch_register_os_abi): Remove prototype.
5489 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5490 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5492 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5493 * mips-tdep.c: Include osabi.h.
5494 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5497 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5499 * h8300-tdep.c: Fix formatting.
5501 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5503 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5504 printing vector registers.
5506 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5508 From Fernando Nasser:
5509 * remote.c (remote_async_open_1): Re-throw the exception when the
5511 (remote_cisco_open): Ditto.
5512 (remote_open_1): Ditto.
5514 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5516 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5517 (remote_start_remote): Add uiout parameter. Pass through to
5518 remote_start_remote_dummy.
5519 (remote_open_1): Use catch_exception instead of catch_errors.
5520 (remote_async_open_1): Ditto.
5521 (remote_cisco_open): Ditto.
5523 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5525 * remote.c (remote_start_remote): Replace PTR with void pointer.
5526 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5529 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5531 * gdb_indent.sh: Allow the script to be run in the sim directory.
5533 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5535 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5536 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5538 * corelow.c (core_open): Only call set_gdbarch_from_file if
5541 2002-05-17 Andrey Volkov <avolkov@transas.com>
5543 * h8300-tdep.c: Add support of EXR register
5544 * config/h8300/tm-h8300.h: Ditto.
5546 2002-05-17 Andrey Volkov <avolkov@transas.com>
5548 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5550 2002-05-17 Andrey Volkov <avolkov@transas.com>
5552 * h8300-tdep.c: Change literal regnums to REGNO.
5554 2002-05-17 Jim Blandy <jimb@redhat.com>
5556 * NEWS: Note addition of macro support.
5558 Expand preprocessor macros in C expressions.
5559 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5560 (scan_macro_expansion, scanning_macro_expansion,
5561 finished_macro_expansion): New function declarations.
5562 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5563 variable declarations.
5564 * parser-defs.h (expression_context_pc): New declaration.
5565 * parse.c (expression_context_pc): New variable.
5566 (parse_exp_1): Set expression_context_pc, as well as
5567 expression_context_block.
5568 * c-exp.y (yylex): If we're not already reading the result of a
5569 macro expansion, try to macro-expand the next token. When we're
5570 done scanning a macro expansion, switch back to the mainline text.
5571 Commas and `if's in a macro's expansion don't terminate the input.
5572 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5573 (macro_original_text, macro_expanded_text,
5574 expression_macro_lookup_func, expression_macro_lookup_baton): New
5576 (scan_macro_expansion, scanning_macro_expansion,
5577 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5578 c_preprocess_and_parse): New functions.
5579 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5580 c_preprocess_and_parse, instead of c_parse.
5581 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5582 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5584 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5586 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5587 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5588 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5590 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5592 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5594 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5596 * Makefile.in (sh_tdep_h): Define and use.
5597 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5598 register enum): Move to...
5599 * * sh-tdep.h: ...here.
5600 * sh-tdep.c: Include sh-tdep.h.
5601 * sh3-rom.c: Likewise.
5602 * shnbsd-tdep.c: Likewise.
5604 2002-05-16 Michael Snyder <msnyder@redhat.com>
5606 * arm-tdep.c: Spelling fix in comment.
5608 2002-05-16 Jim Blandy <jimb@redhat.com>
5610 Add commands for manually expanding macros and showing their
5612 * macrocmd.c, macroscope.c, macroscope.h: New files.
5613 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5614 (macroscope_h): New variable.
5615 (HFILES_NO_SRCDIR): Add macroscope.h.
5616 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5617 (macroscope.o, macrocmd.o): New rules.
5619 Teach the Dwarf 2 reader to read macro information.
5620 * dwarf2read.c: #include "macrotab.h".
5621 (dwarf_macinfo_buffer): New variable.
5622 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5624 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5625 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5626 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5627 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5628 dwarf2_macro_spaces_in_definition): New complaints.
5629 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5630 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5631 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5632 the partial symbol table.
5633 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5634 from what's recorded in the partial symbol table.
5635 (read_file_scope): If the compilation unit has a
5636 `DW_AT_macro_info' attribute, read its macro information.
5637 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5639 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5642 * ser-tcp.c: Don't include <netinet/udp.h>.
5644 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5646 * MAINTAINERS: Update my email address.
5648 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5650 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5651 include file of the same name.
5653 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5655 * configure.tgt: Mark v850 as multi-arched.
5656 * config/v850/tm-v850.h: Remove file.
5657 * config/v850/v850.mt: Eliminate TM_FILE.
5659 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5661 * v850-tdep.c: Full multi-arch.
5662 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5663 Define GDB_MULTI_ARCH to 2.
5665 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5667 * p-exp.y (current_type): New static variable.
5668 Carries the type of the expression at the position that is parsed.
5669 (push_current_type, pop_current_type): Two new functions. Used
5670 to store/restore current_type in expression on specific tokens.
5671 (search_field): New static variable. Set to one after parsing a point
5672 as at that point only a FIELDNAME token should be searched.
5673 (FIELDNAME): New token. After a point only a token belonging to
5674 current_type type definition is allowed.
5675 (all over token rules): reset and change current_type according
5677 (exp '[' rule): insert implicit array index field if
5678 exp is a pascal string type.
5680 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5682 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5683 frame info. Use frame_info's saved_regs instead of matching member
5684 in extra_frame_info throughout.
5685 (v850_frame_init_saved_regs): New function.
5686 (v850_init_extra_frame_info): Move most functionality into
5687 v850_frame_init_saved_regs().
5688 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5689 (v850_frame_find_saved_regs): Remove declaration.
5690 (FRAME_FIND_SAVED_REGS): Remove definition.
5691 (v850_frame_init_saved_regs): Add declaration.
5692 (FRAME_INIT_SAVED_REGS): Add definition.
5694 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5696 * v850-tdep.c: Begin multi-arch'ing v850.
5697 (v850_target_architecture_hook): Remove function.
5698 (v850_gdbarch_init): New function. Add code previously in
5699 v850_target_architecture_hook().
5700 (_initialize_v850_tdep): Don't set target_architecture_hook.
5701 Call register_gdbarch_init() instead.
5703 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5705 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5706 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5707 (fixup_class_method_type): Likewise.
5709 2002-05-15 Jim Blandy <jimb@redhat.com>
5711 Add macro structures to GDB's symbol tables. Nobody puts anything
5713 * symtab.h (struct symtab): New member: `macro_table'.
5714 * buildsym.h (pending_macros): New global variable.
5715 * buildsym.c: #include "macrotab.h".
5716 (buildsym_init): Initialize `pending_macros'.
5717 (end_symtab): If we found macro information while reading a CU's
5718 debugging info, do build a symtab structure for it. Make the
5719 symtab point to the macro information, and clear the
5720 `pending_macros' pointer which held it while we were reading the
5722 (really_free_pendings): Free any pending macro table.
5723 * objfiles.h (struct objfile): New member: `macro_cache'.
5724 * objfiles.c (allocate_objfile): Set allocate and free functions
5725 for the macro cache's objstack.
5726 (free_objfile): Empty the macro cache's obstack.
5727 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5728 set new allocate and free functions for it.
5729 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5730 free functions for the macro cache's objstack. (Why is this
5731 function building its own objfile?)
5732 * symmisc.c (print_objfile_statistics): Print statistics on the
5734 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5736 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5738 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5739 (REGISTER_U_ADDR): Delete definition.
5740 (arm_register_u_addr): Delete declaration.
5742 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5744 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5745 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5747 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5749 * regcache.c (register_valid): Revise comments refering to "Not
5750 available" and "unavailable".
5751 * frame.c (frame_register_read): Ditto.
5752 * findvar.c (value_of_register): Ditto.
5754 2002-05-15 Andrew Cagney <cagney@redhat.com>
5756 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5757 (remote-sim.o): Update dependencies.
5758 (d10v-tdep.o): Specify dependencies.
5759 (sim_d10v_h): Define.
5761 2002-05-14 Jim Blandy <jimb@redhat.com>
5763 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5764 * macrotab.c (macro_lookup_inclusion, find_definition,
5765 new_macro_table): Same.
5767 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5768 not `! strcmp ()'. This is a dubious improvement.
5769 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5771 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5772 although it's not necessary, to avoid a warning.
5774 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5776 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5777 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5778 TYPE_INSTANCE_FLAGS.
5779 (struct main_type): New.
5780 (struct type): Move most members to struct main_type. Change
5781 cv_type and as_type to new type_chain member. Add instance_flags.
5782 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5783 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5784 (finish_cv_type): Remove prototype.
5785 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5787 (alloc_type_instance): New function.
5788 (smash_type): New function.
5789 (make_pointer_type, make_reference_type, make_function_type)
5790 (smash_to_member_type, smash_to_method_type): Call smash_type.
5791 (make_qualified_type): New function.
5792 (make_type_with_address_space): Call make_qualified_type.
5793 (make_cv_type): Likewise.
5794 (finish_cv_type): Remove unnecessary function.
5795 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5796 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5797 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5798 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5799 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5800 * hpread.c (hpread_read_struct_type): Likewise.
5801 * stabsread.c (read_struct_type): Likewise.
5803 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5805 * configure.tgt: Add a catch all sh* target, for cases like
5806 sh[2,3,4]-elf and sh-hms.
5808 2002-05-14 Keith Seitz <keiths@redhat.com>
5810 * event-loop.c (create_file_handler): Don't do anything but
5811 update data when we are given a fd which we are already
5814 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5816 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5817 (update_context): Use __func__ in warnings.
5819 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5821 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5822 and tcp_close to net_open and net_close.
5823 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5824 using UDP if requested. Don't try to disable Nagle on UDP
5826 * remote.c (remote_serial_open): New function. Warn about UDP.
5827 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5829 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5831 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5833 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5835 * configure.tgt: Remove sh-hms target.
5836 * MAINTAINERS: Don't list sh-hms as a separate target.
5838 2002-05-13 Jim Blandy <jimb@redhat.com>
5840 Add first preprocessor macro-expansion files.
5841 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5842 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5843 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5844 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5845 (COMMON_OBS): Add macrotab.o, macroexp.o.
5846 (macroexp.o, macrotab.o): New rules.
5848 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5850 * config/m88k/tm-m88k.h: Update copyright.
5851 (m88k_target_write_pc): Declare
5852 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5853 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5854 (SHIFT_INST_REGS): Update definition.
5855 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5856 using old definition of TARGET_WRITE_PC.
5857 * regcache.c (generic_target_write_pc): Delete code handling
5859 * gdbarch.sh (NNPC_REGNUM): Delete.
5860 * gdbarch.h, gdbarch.c: Regenerate.
5862 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5864 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5867 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5869 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5870 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5871 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5873 * c-typeprint.c (cp_type_print_method_args): Likewise.
5874 (c_type_print_args): Likewise.
5875 * d10v-tdep.c (d10v_push_arguments): Likewise.
5876 (d10v_extract_return_value): Likewise.
5877 * expprint.c (print_subexp): Likewise.
5878 * gdbtypes.c (lookup_primitive_typename): Likewise.
5879 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5880 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5881 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5882 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5883 (TYPE_VECTOR): Likewise.
5884 * hpread.c (hpread_read_struct_type)
5885 (fix_static_member_physnames, fixup_class_method_type)
5886 (hpread_type_lookup): Likewise.
5887 * mdebugread.c (parse_symbol, parse_type): Likewise.
5888 * p-lang.c (is_pascal_string_type): Likewise.
5889 * valops.c (hand_function_call): Likewise.
5890 * x86-64-tdep.c (classify_argument): Likewise.
5892 * hpread.c (hpread_read_function_type)
5893 (hpread_read_doc_function_type): Call replace_type.
5894 * dstread.c (create_new_type): Delete.
5895 (decode_dst_structure, process_dst_function): Call alloc_type.
5896 Use type access macros.
5898 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5900 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5901 the're not supported by the current architecture.
5902 (i387_fill_fxsave): Likewise.
5904 2002-05-12 Fred Fish <fnf@redhat.com>
5906 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5907 sect_index_xxx members to index the first slot in section_offsets
5908 if all of the section_offsets are zero.
5910 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5912 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5913 checked in with last change.
5915 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5917 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5918 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5921 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5923 * Makefile.in: Update dependencies.
5925 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5927 * language.c (local_hex_string_custom): Simplify. Do not depend
5928 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5930 * memattr.c (mem_info_command): Replace calls to
5931 longest_local_hex_string and longest_local_hex_string_custom.
5932 * buildsym.c (make_blockvector): Ditto.
5933 * solib.c (info_sharedlibrary_command): Ditto.
5934 * tracepoint.c (tracepoints_info): Ditto.
5935 * symtab.c (print_msymbol_info): Ditto.
5937 * language.c (local_hex_string): Delete.
5938 (local_hex_string_custom): Delete.
5939 (longest_local_hex_string): Rename to local_hex_string.
5940 (longest_local_hex_string_custom): Rename to
5941 local_hex_string_custom.
5942 * language.h (local_hex_string): Change parameter type to LONGEST.
5943 (local_hex_string_custom): Ditto.
5944 (longest_local_hex_string): Delete declaration.
5945 (longest_local_hex_string_custom): Ditto.
5947 * solib.c: Update copyright.
5948 * memattr.c: Update copyright.
5950 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5952 * arch-utils.h (legacy_register_to_value): Declare.
5953 (legacy_value_to_register): Declare.
5954 (legacy_convert_register_p): Declare.
5955 * arch-utils.c (legacy_register_to_value): New function.
5956 (legacy_value_to_register): New function.
5957 (legacy_convert_register_p): New function.
5959 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5960 (VALUE_TO_REGISTER): Define.
5961 (CONVERT_REGISTER_P): Define.
5962 * gdbarch.h, gdbarch.c: Regenerate.
5964 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5966 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5969 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5970 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5972 * Makefile.in: Update dependencies for valops.c.
5973 * valops.c: Include "gdb_assert.h".
5974 (typecmp): Skip THIS parameter to methods.
5975 (find_method_list): Remove static_memfuncp argument,
5976 update callers. Check for stub methods.
5977 (find_value_oload_method_list): Don't set *static_memfuncp.
5978 (find_overload_match): Don't check for stub methods. Assert
5979 that methods are not stubbed. Handle static methods.
5980 (value_find_oload_method_list): Remove static_memfuncp argument.
5981 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5982 to the argument list for static stub methods.
5983 * value.h (value_find_oload_method_list): Update prototype.
5985 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5987 * arch-utils.h (generic_register_size): Declare.
5988 (generic_register_raw_size, generic_register_virtual_size): Delete
5990 * arch-utils.c (generic_register_raw_size): Delete.
5991 (generic_register_size): New function.
5992 (generic_register_virtual_size): Delete.
5994 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5995 default generic_register_size.
5996 * gdbarch.h, gdbarch.c: Re-generate.
5998 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5999 register_virtual_size.
6000 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6001 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6003 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6005 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6006 * gdbarch.h, gdbarch.c: Regenerate.
6007 * gnu-v3-abi.c: Update copyright.
6008 (vtable_address_point_offset): Update.
6009 (gnuv3_rtti_type): Update.
6010 (gnuv3_baseclass_offset): Update.
6011 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6012 (init_fetch_link_map_offsets): Update.
6013 * remote.c (get_remote_state): Update.
6015 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6017 * TODO: Remove value_headof/value_from_vtable_info comment.
6018 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6019 * values.c (value_headof, value_from_vtable_info): Delete.
6020 * value.h (value_from_vtable_info): Delete prototype.
6022 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6024 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6025 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6027 (gdb_assert_h): Define.
6028 (gdb_wait_h): Define.
6029 (gdb_regex_h): Define.
6031 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6033 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6034 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6036 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6038 * nbsd-tdep.c: Fix comment.
6040 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6042 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6043 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6044 (nbsd-tdep.o): New dependency list.
6045 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6047 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6048 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6049 * nbsd-tdep.c: New file.
6050 * nbsd-tdep.h: New file.
6051 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6053 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6054 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6055 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6056 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6058 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6060 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6061 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6062 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6063 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6064 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6065 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6067 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6069 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6070 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6071 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6072 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6073 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6074 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6075 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6077 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6079 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6080 fetch_elfcore_registers to...
6081 * i386nbsd-tdep.c: ...here.
6082 (i386nbsd_use_struct_convention): Rename to...
6083 (i386nbsd_aout_use_struct_convention): ...this.
6084 (i386nbsd_supply_reg): New function.
6085 (i386nbsd_fill_reg): New function.
6086 (fetch_core_registers): Use i386nbsd_supply_reg.
6087 (fetch_elfcore_registers): Likewise.
6088 (_initialize_i386nbsd_tdep): New function.
6089 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6090 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6091 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6092 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6093 (i386nbsd_aout_use_struct_convention): ...this.
6095 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6097 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6098 (store_inferior_registers): Use shnbsd_fill_reg.
6099 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6100 sh_nbsd_supply_register): Collapse into...
6101 (shnbsd_supply_reg): ...this.
6102 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6103 (shnbsd_fill_reg): ...this.
6104 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6105 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6106 (fetch_core_registers): Use shnbsd_supply_reg.
6107 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6108 (sh_nbsd_core_fns): Rename to...
6109 (shnbsd_core_fns): ...this.
6110 (sh_nbsd_elfcore_fns): Rename to...
6111 (shnbsd_elfcore_fns): ...this.
6112 (sh_nbsd_init_abi): Rename to...
6113 (shnbsd_init_abi): ...this.
6114 (_initialize_sh_nbsd_tdep): Rename to...
6115 (_initialize_shnbsd_tdep): ...this.
6116 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6117 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6118 sh_nbsd_fill_register): Remove prototypes.
6119 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6121 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6123 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6124 (i387-nat.o): Delete dependency list.
6125 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6126 (x86-64-linux-nat.o): Likewise.
6127 * i387-nat.c: Delete file, moving contents to...
6128 * i387-tdep.c: ...here.
6129 * i387-nat.h: Rename...
6130 * i387-tdep.h: ...to this.
6131 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6132 * i386-linux-nat.c: Likewise.
6133 * i386bsd-nat.c: Likewise.
6134 * i386gnu-nat.c: Likewise.
6135 * i386nbsd-nat.c: Likewise.
6136 * i386v4-nat.c: Likewise.
6137 * x86-64-linux-nat.c: Likewise.
6138 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6139 * config/i386/go32.mh (NATDEPFILES): Likewise.
6140 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6141 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6142 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6143 * config/i386/linux.mh (NATDEPFILES): Likewise.
6144 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6145 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6146 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6147 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6149 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6151 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6152 (alphanbsd-nat.o): Remove dependency list.
6153 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6154 * alphanbsd-nat.c: Delete. Contents moved to...
6155 * alphanbsd-tdep.c: ...here.
6156 (_initialize_alphanbsd_tdep): Register core functions.
6157 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6159 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6161 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6162 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6163 (alphanbsd-nat.o): Likewise.
6164 (alphabsd-tdep.o): New dependency list.
6165 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6166 (fill_gregset): Use alphabsd_fill_reg.
6167 (supply_fpregset): Use alphabsd_supply_fpreg.
6168 (fill_fpregset): Use alphabsd_fill_fpreg.
6169 (fetch_inferior_registers): Use struct reg and struct fpreg
6170 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6171 and alphabsd_supply_fpreg.
6172 (store_inferior_registers): Use struct reg and struct fpreg
6173 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6174 and alphabsd_fill_fpreg.
6175 * alphabsd-tdep.c: New file.
6176 * alphabsd-tdep.h: New file.
6177 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6178 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6179 alphabsd_supply_fpreg.
6180 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6181 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6183 2002-05-11 Eric Christopher <echristo@redhat.com>
6185 * mips-tdep.c (mips_double_register_type): Fix thinko.
6186 (mips_single_register_type): Ditto.
6187 * MAINTAINERS: Add self.
6189 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6191 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6192 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6193 right thing on architectures with different endianness and/or
6196 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6198 From Christian Limpach <chris@Pin.LU>
6199 * configure.in: Change sed expression which comments out
6200 NATDEPFILES to also comment out continuation lines.
6201 * configure: Regenerate.
6203 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6205 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6208 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6210 * sh-tdep.c: Include correct file.
6212 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6214 New support for sh64-elf (sh5) target.
6216 * configure.tgt: For sh64-elf target, default to sh-elf.
6218 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6219 (struct gdbarch_tdep): Add new fields for new registers and ABI
6222 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6223 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6224 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6225 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6226 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6227 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6228 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6229 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6230 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6231 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6232 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6233 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6234 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6235 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6236 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6237 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6238 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6239 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6240 sign_extend, sh64_nofp_frame_init_saved_regs,
6241 sh64_init_extra_frame_info, sh64_get_saved_register,
6242 sh64_extract_struct_value_address, sh64_pop_frame,
6243 sh64_push_arguments, sh64_extract_return_value,
6244 sh64_store_return_value, sh64_show_media_regs,
6245 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6246 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6247 sh_sh64_register_virtual_type,
6248 sh_sh64_register_convert_to_virtual,
6249 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6250 sh64_register_read, sh64_pseudo_register_write,
6251 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6252 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6253 sh64_do_pseudo_register, sh_compact_do_registers_info,
6254 sh64_do_registers_info, sh_gdbarch_init): New functions.
6256 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6258 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6260 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6262 * linespec.c (decode_line_1): Check for a double quote after
6263 a filename correctly.
6265 2002-05-10 Jim Blandy <jimb@redhat.com>
6267 Properly track the size of the current objfile's .debug_line section.
6268 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6269 (DWARF_LINE_SIZE): New macro.
6270 (dwarf2_build_psymtabs_hard): Record the line section's size in
6271 the partial symbol table.
6272 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6275 2002-05-10 Petr Sorfa <petrs@caldera.com>
6277 * ia64-tdep.c: Handle breakpoints on L instruction type
6278 in MLX instruction bundle by moving the breakpoint to
6279 the third slot (X instruction type) as L holds only data.
6281 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6283 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6284 (process_one_symbol): Complain about discarding local symbols
6285 due to a misplaced N_LBRAC entry.
6287 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6289 From Daniel Berlin <dan@cgsoftware.com>
6290 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6291 decrease the depth we are at, in the case of templates.
6293 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6295 * mips-tdep.c (mips_float_register_type): New function.
6296 (mips_double_register_type): New function.
6297 (mips_print_register): Use them.
6298 (do_fp_register_row): Likewise.
6300 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6302 * signals/signals.c (signals): Remove conditional compilation around
6303 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6304 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6306 2002-05-09 Michael Snyder <msnyder@redhat.com>
6308 * remote-rdp.c (remote_rdp_can_run): Remove.
6310 2002-05-09 Tom Tromey <tromey@redhat.com>
6312 * jv-valprint.c (java_val_print): Handle `char' as a special case
6315 2002-05-09 Michael Snyder <msnyder@redhat.com>
6317 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6318 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6319 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6320 str r(0123),[sp,#nn].
6321 (arm_skip_prologue): Ditto. Also make disassembly
6322 order-independent by placing it in a loop.
6324 2002-05-06 Michael Snyder <msnyder@redhat.com>
6326 * stabsread.c (read_type): Add recognition for new attribute:
6327 "@V;" means that an array type is actually a vector.
6328 This is analogous to the vector flag that's been added to dwarf2.
6330 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6332 * i386-tdep.h (i386_abi): New enum.
6333 (struct gdbarch_tdep): Replace os_ident member with abi.
6334 (i386_gdbarch_register_os_abi): New prototype.
6335 * i386-tdep.c (i386_abi_names): New array.
6336 (process_note_abi_tag_sections): Removed.
6337 (process_note_sections): New function.
6338 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6339 (struct i386_abi_handler): New struct.
6340 (i386_abi_handler_list): New variable.
6341 (i386_gdbarch_register_os_abi): New function.
6342 (i386_gdbarch_init): Adapt for the changes given above.
6344 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6346 * gregset.h: Say "GNU/Linux".
6348 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6350 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6351 (build_gdbtypes): Build builtin_type_v2_float.
6352 (_initialize_gdbtypes): Register new builtin type.
6354 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6356 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6357 (clear_gdbarch_swap): New function.
6358 (initialize_non_multiarch): Call.
6359 (gdbarch_update_p): Before calling init(), swap out and clear the
6360 existing architecture.
6361 * gdbarch.c: Regenerate.
6363 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6365 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6368 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6370 * sh-nbsd-nat.c: Rename to...
6371 * shnbsd-nat.c: ...this.
6372 * sh-nbsd-tdep.c: Rename to...
6373 * shnbsd-tdep.c: ...this.
6374 * sh-nbsd-tdep.h: Rename to...
6375 * shnbsd-tdep.h: ...this.
6376 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6377 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6379 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6381 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6382 concatenation for command help messages.
6384 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6386 * NEWS: Note new sh*-*-netbsdelf* configuration.
6387 * configure.host: Set gdb_host_cpu to sh for all sh*.
6388 (sh*-*-netbsdelf*): New host.
6389 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6390 (sh*-*-netbsdelf*): New target.
6391 * sh-nbsd-nat.c: New file.
6392 * sh-nbsd-tdep.c: New file.
6393 * sh-nbsd-tdep.h: New file.
6394 * config/sh/nbsd.mh: New file.
6395 * config/sh/nbsd.mt: New file.
6396 * config/sh/nm-nbsd.h: New file.
6397 * config/sh/tm-nbsd.h: New file.
6399 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6401 * sh-tdep.c (sh_osabi_names): Declare.
6402 (process_note_abi_tag_sections): New function.
6403 (get_elfosabi): Ditto.
6404 (sh_gdbarch_register_os_abi): Ditto.
6405 (sh_dump_tdep): Ditto.
6406 _initialize_sh_tdep): Use gdbarch_register to register
6407 sh_gdbarch_init and sh_dump_tdep.
6408 * config/sh/tm-sh.h (sh_osabi): Declare.
6409 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6411 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6413 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6414 (thumb_scan_prologue): Ditto.
6415 (arm_find_callers_reg): Ditto.
6416 (arm_frame_chain): Ditto.
6417 (arm_init_extra_frame_info): Ditto.
6418 (arm_frame_saved_pc): Ditto.
6419 (arm_pop_frame): Ditto.
6420 (arm_push_return_address): New function.
6421 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6422 call_dummy_location, call_dummy_breakpoint_offset_p,
6423 call_dummy_breakpoint_offset, call_dummy_p,
6424 call_dummy_stack_adjust_p, call_dummy_words,
6425 sizeof_call_dummy_words, call_dummy_start_offset,
6426 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6427 call_dummy_address, push_return_address and push_dummy_frame for
6428 generic dummy frames.
6430 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6432 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6433 size computation for alloca.
6434 (sh_fp_frame_init_saved_regs): Likewise.
6436 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6438 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6439 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6440 * arm-tdep.c (arm_store_return_value): Use them.
6441 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6442 * remote-rdp.c (remote_rdp_fetch_register): Use
6443 ARM_MAX_REGISTER_RAW_SIZE.
6444 (remote_rdp_store_register): Likewise.
6446 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6448 * dwarf2cfi.c: Code cleanup, removed unused variables,
6449 added default labels to switch {} statements.
6450 * x86-64-tdep.c: Ditto.
6451 * x86-64-linux-nat.c: Ditto.
6453 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6455 * solib.h: Protect against multiple inclusion.
6457 2002-05-06 Jim Blandy <jimb@redhat.com>
6459 Add first preprocessor macro-expansion files.
6460 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6461 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6462 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6463 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6464 (COMMON_OBS): Add macrotab.o, macroexp.o.
6465 (macroexp.o, macrotab.o): New rules.
6467 Separate the job of reading the line number info statement program
6468 header (...expialidocious) out into its own function.
6469 * dwarf2read.c (struct line_head, struct filenames, struct
6470 directories): Replace with...
6471 (struct line_header): New structure, containing the full
6472 contents of the statement program header, including the
6473 include directory and file name tables.
6474 (read_file_scope): If we have line number info, instead of just
6475 calling dwarf_decode_lines to do all the work, call
6476 dwarf_decode_line_header first to get a `struct line_header'
6477 containing the data in the statement program header, and then
6478 pass that to dwarf_decode_lines, which will pick up where that
6479 left off. Be sure to clean up the `struct line_header' object.
6480 (dwarf_decode_line_header, free_line_header, add_include_dir,
6481 add_file_name): New functions.
6482 (dwarf_decode_lines): Move all the code to read the statement
6483 program header into dwarf_decode_line_header. Take the line
6484 header it built as the first argument, instead of the offset to
6485 the compilation unit's line number info. Use the new `struct
6486 line_header' type instead of the old structures. No need to do
6487 cleanups here now, since we don't allocate anything.
6488 (dwarf2_statement_list_fits_in_line_number_section,
6489 dwarf2_line_header_too_long): New complaints.
6491 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6493 * gdbtypes.c (init_vector_type): New function.
6494 (build_builtin_type_vec128): Simplify the representation of SIMD
6496 (build_gdbtypes): Initialize new builtin vector types.
6497 (_initialize_gdbtypes): Register new vector types with gdbarch.
6498 (builtin_type_v4_float, builtin_type_v4_int32,
6499 builtin_type_v8_int16, builtin_type_v16_int8,
6500 builtin_type_v2_int32, builtin_type_v4_int16,
6501 builtin_type_v8_int8): New (renamed) SIMD types.
6503 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6505 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6506 (i387_fill_fxsave): Likewise.
6508 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6510 * alpha-tdep.c (alpha_extract_return_value): Don't use
6511 non-constant array size in prototype.
6513 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6515 From Brian Taylor <briant at model dot com>:
6516 * ui-out.c (ui_out_field_core_addr): Use the function
6517 longest_local_hex_string_custom'to format addresses > 32 bits
6520 * ui-out.c (ui_out_field_core_addr): Update comment.
6522 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6524 * stack.c (select_and_print_frame): Make static. Delete the
6526 (func_command): Update call.
6527 (select_frame_command): Delete code computing the frame level.
6528 * frame.h (select_and_print_frame): Delete declaration.
6530 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6532 * sparc-tdep.c (sparc_get_saved_register): Comment why
6533 get_prev_frame call is safe.
6535 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6537 * frame.h (select_frame): Delete level parameter.
6538 * stack.c (select_frame): Update. Use frame_relative_level to
6539 obtain the frame's level.
6540 (select_and_print_frame): Update call.
6541 (select_frame_command): Ditto.
6542 (up_silently_base): Ditto.
6543 (down_silently_base): Ditto.
6544 * ocd.c (ocd_start_remote): Ditto.
6545 * remote-rdp.c (remote_rdp_open): Ditto.
6546 * remote-mips.c (mips_initialize): Ditto.
6547 (common_open): Ditto.
6548 * remote-e7000.c (e7000_start_remote): Ditto.
6549 * m3-nat.c (select_thread): Ditto.
6550 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6551 (child_get_current_exception_event): Ditto.
6552 * varobj.c (varobj_create): Ditto.
6553 (varobj_update): Ditto.
6554 (c_value_of_root): Ditto.
6555 * tracepoint.c (finish_tfind_command): Ditto.
6556 * corelow.c (core_open): Ditto.
6557 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6558 * thread.c (info_threads_command): Ditto.
6559 (switch_to_thread): Ditto.
6560 * infrun.c (normal_stop): Ditto.
6561 (restore_selected_frame): Ditto.
6562 (restore_inferior_status): Ditto.
6563 * breakpoint.c (insert_breakpoints): Ditto.
6564 (watchpoint_check): Ditto.
6565 (bpstat_stop_status): Ditto.
6566 (do_enable_breakpoint): Ditto.
6567 * blockframe.c (flush_cached_frames): Ditto.
6568 (reinit_frame_cache): Ditto.
6570 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6572 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6575 2002-05-04 Jim Blandy <jimb@redhat.com>
6577 * gdbtypes.c (replace_type): Doc fix.
6579 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6581 * valprint.c (strcat_longest): Delete commented out function.
6584 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6586 * MAINTAINERS: Mark a29k as deleted.
6587 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6588 Move new configurations to the top.
6589 * configure.tgt: Remove a29k.
6590 * config/a29k/tm-vx29k.h: Delete.
6591 * config/a29k/vx29k.mt: Delete.
6592 * config/a29k/tm-a29k.h: Delete.
6593 * config/a29k/a29k-udi.mt: Delete.
6594 * config/a29k/a29k.mt: Delete.
6595 * a29k-tdep.c: Delete.
6596 * remote-udi.c: Delete.
6597 * remote-mm.c: Delete.
6598 * remote-eb.c: Delete.
6599 * remote-adapt.c: Delete.
6600 * Makefile.in: Remove obsolete code.
6601 * config/s390/s390x.mt: Ditto.
6602 * config/s390/s390.mt: Ditto.
6603 * config/sparc/sparclynx.mh: Ditto.
6604 * config/sparc/linux.mh: Ditto.
6605 * config/pa/hppaosf.mh: Ditto.
6606 * config/pa/hppabsd.mh: Ditto.
6607 * config/ns32k/nbsd.mt: Ditto.
6608 * config/mips/vr5000.mt: Ditto.
6609 * config/m68k/sun3os4.mh: Ditto.
6610 * config/m68k/nbsd.mt: Ditto.
6611 * config/m68k/m68klynx.mh: Ditto.
6612 * config/m32r/m32r.mt: Ditto.
6613 * config/i386/x86-64linux.mt: Ditto.
6614 * config/i386/nbsdelf.mt: Ditto.
6615 * config/i386/nbsd.mt: Ditto.
6616 * config/i386/i386lynx.mh: Ditto.
6618 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6620 * target.c (debug_print_register): New function. Handle oversize
6622 (debug_to_fetch_registers): Call.
6623 (debug_to_store_registers): Call.
6625 2002-05-03 Jim Blandy <jimb@redhat.com>
6627 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6628 (read_type): Doc fix.
6629 * gdbtypes.c (replace_type): Doc fix.
6631 * stabsread.c (multiply_defined_struct): New complaint.
6632 (read_struct_type): If the type we were passed isn't empty, or
6633 incomplete, don't read the new struct type into it; complain,
6634 and return the original type unchanged. Take a new `type_code'
6635 argument, which is the type code for the new type.
6636 (read_type): Rather than storing the type's type code here, pass
6637 it as an argument to read_struct_type, and let that take care of
6638 storing it. That way, we don't overwrite the original type code,
6639 so read_struct_type can use it to decide whether we're overwriting
6640 something we shouldn't.
6641 (complain_about_struct_wipeout): New function.
6643 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6645 * gdbarch.sh: Assert that gdbarch is non-NULL.
6646 * gdbarch.c: Regenerate.
6648 2002-05-03 Jason Merrill <jason@redhat.com>
6650 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6653 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6655 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6656 (x86_64_dwarf2gdb_regno_map_length),
6657 (x86_64_dwarf2_reg_to_regnum): Added.
6658 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6659 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6660 (_initialize_x86_64_tdep): Synced with the change above.
6661 (x86_64_skip_prologue): Reformulated message.
6663 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6665 * f-exp.y: Also use new prev_lexptr variable
6666 to improve error reporting. Based on Michael Snyder
6667 2002-04-24 dated patch to c-exp.y.
6668 * jv-exp.y: Likewise.
6669 * m2-exp.y: Likewise.
6671 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6673 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6674 we are dealing with vectors.
6676 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6678 * config/m68k/tm-nbsd.h: Obvious fix,
6679 correct machine name.
6681 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6683 * p-typeprint.c (pascal_type_print_base): Add support
6684 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6686 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6688 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6689 for fondamental pascal 'char' type.
6691 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6693 * p-lang.h (is_pascal_string_type): Declaration changed,
6694 new sixth argument of type char ** added.
6695 * p-lang.c (is_pascal_string_type): Implementation
6696 changed. Args length_pos, length_size, string_pos, char_size
6697 can now be NULL. New argument arrayname set to the field
6698 name of the char array. Return value set to char array
6699 field index plus one.
6700 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6701 is_pascal_string_type function.
6703 2002-05-02 Andrew Cagney <cagney@redhat.com>
6705 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6706 <cagney@redhat.com> change.
6707 * gdbarch.c: Regenerate.
6709 2002-05-02 Andrew Cagney <cagney@redhat.com>
6711 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6712 before probing for a new one. Detect errorenous gdbarch_init
6714 * gdbarch.c: Regenerate.
6716 2002-05-01 Andrew Cagney <cagney@redhat.com>
6718 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6719 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6720 * config/v850/tm-v850.h: Ditto. Update copyright.
6722 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6724 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6727 2002-04-30 Michael Snyder <msnyder@redhat.com>
6729 * arm-tdep.c: Whitespace clean-ups.
6730 (arm_skip_prologue): Fix thinko; two lines
6731 should have been removed as part of 4/24 change.
6733 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6735 * rs6000-tdep.c: Added comment describing how fpscr register
6736 numbers were chosen.
6738 2002-04-30 Michael Snyder <msnyder@redhat.com>
6740 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6742 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6744 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6745 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6746 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6748 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6750 From Louis Hamilton <hamilton@redhat.com>:
6751 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6752 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6753 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6754 not bfd-private xcoff data, to determine wordsize.
6755 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6757 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6759 GDB 5.2 released from 5.2 branch.
6761 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6763 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6764 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6765 (x86_64_register_info_table): Added comments with register numbers.
6767 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6769 * rs6000-tdep.c (rs6000_extract_return_value,
6770 rs6000_store_return_value): Handle returning vectors.
6771 (rs6000_gdbarch_init): Use
6772 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6773 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6775 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6777 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6778 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6780 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6782 * hpread.c (hpread_psymtab_to_symtab_1,
6783 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6784 with fprintf_unfiltered (gdb_stderr,...).
6786 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6788 * remote-array.c (printf_monitor, write_monitor,
6789 array_insert_breakpoint, array_remove_breakpoint ):
6790 Replace fprintf (stderr,...
6791 with fprintf_unfiltered (gdb_stderr,....
6792 * remote-es.c: Likewise.
6793 * remote-os9k.c: Likewise.
6794 * remote-st.c: Likewise.
6796 2002-04-28 Andreas Schwab <schwab@suse.de>
6798 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6799 linux-proc.o and gcore.o.
6801 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6803 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6804 code without frame pointers.
6806 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6808 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6811 2002-04-26 Ben Elliston <bje@redhat.com>
6813 * target.c (do_xfer_memory): Correct reference to the new option
6814 "trust-readonly-sections".
6816 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6818 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6819 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6820 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6822 (read_array_type): Record the fact that this array type is really a
6823 vector (i.e. are passed in by value).
6825 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6827 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6828 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6829 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6830 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6831 * alpha-linux-tdep.c: Include frame.h.
6832 (alpha_linux_sigcontext_addr): New function.
6833 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6834 alpha_linux_sigcontext_addr.
6835 * alpha-osf1-tdep.c: Include gdbcore.h.
6836 (alpha_osf1_sigcontext_addr): New function.
6837 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6838 alpha_osf1_sigcontext_addr.
6839 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6840 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6842 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6844 * stack.c (selected_frame_level):
6845 (select_frame): Do not set selected_frame_level.
6846 * frame.h (selected_frame_level): Delete declaration.
6848 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6850 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6851 convert_from_func_ptr-addr when AIX / PowerOpen.
6853 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6855 * valops.c (hand_function_call): Call
6856 generic_save_call_dummy_addr.
6857 * frame.h (generic_save_call_dummy_addr): Declare.
6858 * blockframe.c (struct dummy_frame): Add fields call_lo and
6860 (generic_find_dummy_frame): Check for PC in range call_lo to
6861 call_hi instead of entry_point_address.
6862 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6863 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6864 (generic_save_call_dummy_addr): New function.
6866 2002-04-24 David S. Miller <davem@redhat.com>
6868 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6869 sparc_skip_prologue.
6870 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6871 information to find prologue when possible.
6872 (sparc_prologue_frameless_p): Call examine_prologue directly.
6873 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6874 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6876 (SKIP_PROLOGUE): Likewise.
6878 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6880 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6881 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6882 indicate that the condition it was testing is always true.
6883 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6884 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6885 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6887 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6889 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6890 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6891 tdep->jb_pc and tdep->jb_elt_size.
6892 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6893 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6894 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6895 * alpha-nat.c (get_longjmp_target): Remove.
6896 (JB_ELEMENT_SIZE): Ditto.
6898 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6899 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6900 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6901 to alpha_get_longjmp_target.
6902 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6903 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6904 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6906 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6908 * README: Update to GDB 5.2.
6910 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6912 * gdbarch.sh (LC_ALL): Set to `c'.
6914 2002-04-25 Theodore A. Roth <troth@verinet.com>
6916 * avr-tdep.c: Ran through gdb_indent.sh.
6918 2002-04-25 Theodore A. Roth <troth@verinet.com>
6920 * MAINTAINERS: Add myself as AVR maintainer.
6921 * NEWS: Note new target avr.
6923 2002-04-25 Theodore A. Roth <troth@verinet.com>
6925 * Makefile.in: Add support for AVR target.
6926 * configure.tgt: Add support for AVR target.
6927 * avr-tdep.c: New file
6928 * config/avr/avr.mt: New file.
6930 2002-04-25 Theodore A. Roth <troth@verinet.com>
6932 * MAINTAINERS: Add myself to write-after-approval.
6934 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6936 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6937 with fprintf_unfiltered (gdb_stderr,....
6939 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6942 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6944 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6946 * p-exp.y: Also use new prev_lexptr variable
6947 to improve error reporting. Based on Michael Snyder
6948 2002-04-24 dated patch to c-exp.y.
6950 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6952 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6953 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6954 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6956 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6958 (FUNCTION_START_OFFSET): Remove.
6959 (BREAKPOINT): Ditto.
6961 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6963 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6966 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6968 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6969 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6970 alpha_linux_pc_in_sigtramp.
6971 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6972 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6973 alpha_osf1_pc_in_sigtramp.
6974 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6975 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6976 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6977 alphafbsd_pc_in_sigtramp.
6978 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6979 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6980 alphanbsd_pc_in_sigtramp.
6981 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6982 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6984 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6986 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6988 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6990 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6992 (alphanbsd-nat.o): New dependency list.
6993 (alphanbsd-tdep.o): Ditto.
6994 * NEWS: Note new native NetBSD/alpha configuration.
6995 * alphanbsd-nat.c: New file.
6996 * alphanbsd-tdep.c: Ditto.
6997 * configure.host (alpha*-*-netbsd*): New host.
6998 * configure.tgt (alpha*-*-netbsd*): New target.
6999 * config/alpha/nbsd.mh: New file.
7000 * config/alpha/nbsd.mt: Ditto.
7001 * config/alpha/nm-nbsd.h: Ditto.
7002 * config/alpha/tm-nbsd.h: Ditto.
7004 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7006 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7007 (alpha-osf1-tdep.o): New dependency list.
7008 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7009 and skip_sigtramp_frame members.
7010 * alpha-linux-tdep.c: Include gdbcore.h.
7011 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7012 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7013 * alpha-osf1-tdep.c: New file.
7014 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7016 (alpha_frame_past_sigtramp_frame): New function.
7017 (alpha_dynamic_sigtramp_offset): Ditto.
7018 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7019 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7020 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7021 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7022 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7023 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7024 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7025 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7026 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7027 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7028 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7029 to find_solib_trampoline_target.
7030 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7031 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7032 (SKIP_TRAMPOLINE_CODE): Remove.
7033 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7034 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7035 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7036 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7037 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7038 (PROC_SIGTRAMP_MAGIC): Ditto.
7039 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7040 (SET_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.
7045 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7047 * NEWS: Note that Alpha targets are now multi-arch.
7049 2002-04-24 Michael Snyder <msnyder@redhat.com>
7051 * parser-defs.h (prev_lexptr): New external variable.
7052 * parse.c (parse_exp_1): Set prev_lexptr to null before
7053 calling the language-specific parser.
7054 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7055 (yyerror): Use prev_lexptr in error reporting.
7057 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7059 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7060 * gregset.h: If FILL_FPXREGSET is defined, provide
7061 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7062 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7063 is defined, call fill_fpxregset.
7065 2002-04-24 Roland McGrath <roland@frob.com>
7067 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7068 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7069 (supply_gregset, supply_fpregset): New functions.
7071 * gnu-nat.c (gnu_find_memory_regions): New function.
7072 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7073 (gnu_xfer_memory): Add a cast.
7075 2002-04-24 Michael Snyder <msnyder@redhat.com>
7077 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7078 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7079 of argument regs ("str r(0123), [r11, #-nn"]).
7080 (arm_skip_prologue): Better handling for frameless functions.
7081 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7082 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7084 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7086 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7087 NUM_PSEUDO_REGS can be used.
7089 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7091 * arch-utils.h: Update copyright.
7093 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7094 * gdbarch.h, gdbarch.c: Re-generate.
7096 * inferior.h (IN_SIGTRAMP): Delete definition.
7097 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7098 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7100 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7101 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7102 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7103 (find_proc_framesize): Ditto.
7104 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7105 (alpha_init_extra_frame_info): Ditto.
7106 * infrun.c (handle_inferior_event): Ditto.
7107 (handle_inferior_event): Ditto.
7108 (check_sigtramp2): Ditto.
7109 * blockframe.c (create_new_frame): Ditto.
7110 (get_prev_frame): Ditto.
7111 * ppc-linux-tdep.c: Update comments.
7112 * i386-linux-tdep.c: Update comments.
7113 * breakpoint.c (bpstat_what): Update comment.
7115 2002-04-24 David S. Miller <davem@redhat.com>
7117 * i960-tdep.c (register_in_window_p): New function.
7118 (i960_find_saved_register): Use it instead of
7119 REGISTER_IN_WINDOW_P.
7120 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7122 * symtab.h (find_stab_function_addr): Kill extern.
7123 * minsyms.c (find_stab_function_addr): Remove from here...
7124 * dbxread.c: ... to here, and mark it static.
7126 2002-04-20 David S. Miller <davem@redhat.com>
7128 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7129 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7131 2002-04-21 David S. Miller <davem@redhat.com>
7133 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7134 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7135 (vx_write_register): Likewise.
7137 2002-04-23 J. Brobecker <brobecker@gnat.com>
7139 * source.c (is_regular_file): New function.
7140 (openp): Check wether file to open is a regular file
7141 to avoid opening directories.
7143 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7145 * findvar.c (extract_signed_integer): Cast printf argument
7146 to suppress format warning.
7147 (extract_unsigned_integer): Likewise.
7148 * infcmd.c (registers_info): Likewise.
7149 * top.c (get_prompt_1): Likewise.
7150 * valops.c (value_assign): Likewise.
7151 * valprint.c (print_decimal): Likewise.
7153 2002-04-22 H.J. Lu (hjl@gnu.org)
7155 * c-exp.y (typebase): Support
7157 [long|long long|short] [signed|unsigned] [int|]
7161 signed [long|long long|short] int
7163 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7165 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7167 * vax-tdep.h: New file.
7168 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7169 Make several routines static.
7170 (vax_get_saved_register): New function.
7171 (vax_gdbarch_init): New function.
7172 (_initialize_vax_tdep): Register vax_gdbarch_init.
7173 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7174 Remove macros now under the control of gdbarch.
7176 2002-04-22 Michael Snyder <msnyder@redhat.com>
7178 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7179 Some whitespace and coding standards tweaks.
7181 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7183 * vax-tdep.c: Include regcache.h.
7184 (vax_call_dummy_words): New.
7185 (sizeof_vax_call_dummy_words): New.
7186 (vax_fix_call_dummy): New function.
7187 (vax_saved_pc_after_call): Ditto.
7188 * config/vax/tm-vax.h: Don't include regcache.h.
7189 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7190 (CALL_DUMMY): Remove.
7191 (CALL_DUMMY_WORDS): Define.
7192 (SIZEOF_CALL_DUMMY_WORDS): Define.
7193 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7195 2002-04-18 Michael Snyder <msnyder@redhat.com>
7197 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7199 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7201 * vax-tdep.c (vax_frame_chain): New function.
7202 (vax_push_dummy_frame): Ditto.
7203 (vax_pop_frame): Ditto.
7204 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7205 (FRAMELESS_FUNCTION_INVOCATION): Use
7206 generic_frameless_function_invocation_not.
7207 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7208 (POP_FRAME): Use vax_pop_frame.
7210 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7212 * vax-tdep.c (vax_store_struct_return): New function.
7213 (vax_extract_return_value): Ditto.
7214 (vax_store_return_value): Ditto.
7215 (vax_extract_struct_value_address): Ditto.
7216 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7217 vax_store_struct_return.
7218 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7219 (STORE_RETURN_VALUE): Use vax_store_return_value.
7220 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7222 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7224 * vax-tdep.c (vax_frame_saved_pc): New function.
7225 (vax_frame_args_address_correct): Ditto.
7226 (vax_frame_args_address): Ditto.
7227 (vax_frame_locals_address): Ditto.
7228 (vax_frame_num_args): Move code to be in proximity to
7229 other frame-related functions.
7230 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7231 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7232 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7233 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7234 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7236 2002-04-22 H.J. Lu (hjl@gnu.org)
7238 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7241 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7243 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7244 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7245 (FRAME_INIT_SAVED_REGS): New macro.
7247 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7249 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7251 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7253 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7255 (fetch_osf_core_registers): Likewise.
7256 (supply_gregset): Likewise.
7258 2002-04-22 J. Brobecker <brobecker@gnat.com>
7260 * symfile.h (get_section_index): Define.
7261 * symfile.c (get_section_index): New function.
7262 * mdebugread.c (SC_IS_SBSS): New macro.
7263 (SC_IS_BSS): Return true for the scBss storage class only, as
7264 the scSBss storage class refers to the .sbss section.
7265 (parse_partial_symbols): Discard the symbols which associated
7266 section does not exist.
7267 Make sure to use the .sbss section index for symbols which
7268 storage class is scBss, rather than using the .bss section index.
7270 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7272 * vax-tdep.c: Update copyright years.
7273 (vax_register_name): New function.
7274 (vax_register_byte): Ditto.
7275 (vax_register_raw_size): Ditto.
7276 (vax_register_virtual_size): Ditto.
7277 (vax_register_virtual_type): Ditto.
7278 * config/vax/tm-vax.h: Update copyright years.
7279 (REGISTER_NAMES): Remove.
7280 (REGISTER_NAME): Define.
7281 (REGISTER_BYTE): Use vax_register_byte.
7282 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7283 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7284 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7286 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7288 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7290 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7292 2002-04-21 David S. Miller <davem@redhat.com>
7294 * arch-utils.c (generic_prologue_frameless_p): Kill
7295 SKIP_PROLOGUE_FRAMELESS_P code.
7296 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7298 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7299 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7300 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7302 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7303 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7304 (sparc_gdbarch_init): Pass it to
7305 set_gdbarch_prologue_frameless_p.
7307 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7309 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7310 (alphabsd-nat.o): New dependency list.
7312 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7314 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7316 (alpha-linux-tdep.o): New dependency list.
7317 (alphafbsd-tdep.o): Likewise.
7319 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7321 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7323 * alpha-tdep.c: ...from here.
7324 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7326 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7328 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7329 prototype from here...
7330 * alpha-tdep.h: ...to here.
7332 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7334 * frame.h (selected_frame_level): Document as deprecated.
7335 (frame_relative_level): Declare.
7336 * stack.c (frame_relative_level): New function.
7337 (selected_frame_level): Document as deprecated.
7338 (select_frame): Do not set the selected_frame_level.
7340 * stack.c (frame_info, record_selected_frame): Update.
7341 (frame_command, current_frame_command): Update.
7342 (up_silently_base, up_command, down_silently_base): Update.
7343 (down_command): Update.
7344 * inflow.c (kill_command): Update.
7345 * tracepoint.c (finish_tfind_command): Update.
7346 * corelow.c (core_open): Update.
7347 * thread.c (info_threads_command): Update.
7348 (do_captured_thread_select): Update.
7349 * infcmd.c (finish_command): Update.
7350 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7352 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7354 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7356 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7358 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7361 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7363 * alphafbsd-tdep.c: Update copyright years. Include
7365 (alphafbsd_use_struct_convention): Make static.
7366 (alphafbsd_init_abi): New function.
7367 (_initialize_alphafbsd_tdep): New function.
7368 * config/alpha/tm-fbsd.h: Update copyright years.
7369 (USE_STRUCT_CONVENTION): Remove.
7371 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7373 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7374 an Alpha ABI variant.
7375 (alpha_abi_handler_list): Declare.
7376 (alpha_gdbarch_register_os_abi): New function.
7377 (alpha_gdbarch_init): Give registered ABI variant handlers a
7378 chance to tweak the gdbarch once we have set up defaults.
7379 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7381 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7383 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7384 to standard_coerce_float_to_double.
7385 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7387 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7389 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7390 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7391 from gdbarch_tdep rather than a constant.
7392 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7393 the default text address for all Alpha Unix ABIs.
7394 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7395 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7397 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7399 * alpha-tdep.h: New file. Includes several Alpha target constants
7401 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7402 let gdbarch deal with.
7403 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7404 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7406 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7407 Alpha target register names.
7408 * alphabsd-nat.c: Likewise.
7409 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7410 Alpha target register names. Make serveral routines static.
7411 (alpha_get_saved_register): New function.
7412 (alpha_abi_names): New.
7413 (process_note_abi_tag_sections): New function.
7414 (get_elfosabi): New function.
7415 (alpha_gdbarch_init): New function.
7416 (alpha_dump_tdep): New function.
7417 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7419 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7421 * frame.c (find_saved_register): Delete #ifdef
7422 HAVE_REGISTER_WINDOWS code.
7423 * config/sparc/tm-sparc.h: Update comments.
7424 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7426 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7428 * i960-tdep.c (i960_find_saved_register): New function.
7429 (i960_get_saved_register): New function.
7430 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7431 (i960_get_saved_register): Declare.
7432 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7434 2002-04-20 David S. Miller <davem@redhat.com>
7436 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7438 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7440 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7441 instead of NUM_PSEUDO_REGS.
7443 2002-04-20 David S. Miller <davem@redhat.com>
7445 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7446 GDB_MULTI_ARCH_PARTIAL
7447 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7448 define, let tm-sp64.h do it.
7450 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7452 * frame.c (find_saved_register): Avoid a NULL pointer
7453 dereference and actually walk the frame list.
7455 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7457 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7458 sorted in most most-recent-used order. Document.
7459 * gdbarch.h, gdbarch.c: Regenerate.
7461 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7463 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7465 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7466 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7467 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7470 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7473 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7474 (build_builtin_type_vec128): Ditto.
7475 (append_composite_type_field): Fix calculation of type length in
7478 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7480 * config/djgpp/README: Update.
7482 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7485 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7487 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7488 (alpha_setup_arbitrary_frame): ...to this.
7489 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7490 for alpha_setup_arbitrary_frame.
7492 2002-04-18 Andrew Cagney <cagney@redhat.com>
7494 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7495 * gdbarch.h, gdbarch.c: Regenerate.
7497 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7498 * target.h (memory_breakpoint_from_pc): Update declaration.
7499 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7501 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7502 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7503 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7504 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7505 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7506 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7507 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7508 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7509 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7510 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7511 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7512 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7514 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7516 * monitor.c (monitor_insert_breakpoint): Ditto.
7517 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7519 * config/mcore/tm-mcore.h: Update copyright.
7520 * mem-break.c: Ditto.
7521 * xstormy16-tdep.c: Ditto.
7523 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7525 * p-exp.y: Add precedence rule for '^' token.
7526 This removes the shift/reduce conflicts.
7527 Remove the comment concerning these shift/reduce conflicts.
7529 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7531 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7532 (registers_powerpc_nofp): New register set for processors
7533 without floating point unit.
7535 2002-04-18 David S. Miller <davem@redhat.com>
7537 * MAINTAINERS: Add myself to write-after-approval.
7539 2002-04-17 Michael Snyder <msnyder@redhat.com>
7541 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7543 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7545 * rs6000-tdep.c (frame_initial_stack_address): Use
7546 frame_register_read to read the alloca_reg.
7548 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7550 * frame.c (find_saved_register): Find saved registers in the next
7554 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7556 * gdbarch.sh (LANG): Set to ``c''.
7558 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7560 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7562 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7564 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7567 * hpread.c (hpread_get_lntt): Add declaration.
7568 Also fix PR gdb/391.
7570 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7572 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7573 * aclocal.m4, configure: Re-generate.
7576 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7578 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7579 instead of tm_print_insn.
7581 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7583 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7585 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7587 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7588 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7589 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7591 2002-04-12 Don Howard <dhoward@redhat.com>
7593 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7594 max_user_call_depth.
7595 (init_cmd_lists): Initialize the new value;
7596 * cli/cli-script.c (execute_user_command): Limit the call depth of
7597 user defined commands. This avoids a core-dump when user commands
7598 are infinitly recursive.
7600 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7602 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7603 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7604 from tdep struct instead of DEFAULT_LR_SAVE.
7605 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7606 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7607 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7609 2002-04-12 Michael Snyder <msnyder@redhat.com>
7611 * Remote.c: Spelling fix.
7612 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7613 If no symbol found for "sbrk", try "_sbrk".
7614 (make_output_phdrs): Use bfd_section_name.
7615 (gcore_copy_callback): Use bfd_section_name.
7616 * eval.c: Indentation fix-ups.
7617 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7618 in case it gets applied to an address that is already
7619 in the instruction space.
7620 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7621 * symfile.c: Fix indentation, long lines.
7622 * source.c: White space fix-up.
7624 2002-04-12 Andrew Cagney <cagney@redhat.com>
7626 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7627 * frame.c (frame_register_read): New function. Return non-zero on
7629 (read_relative_register_raw_bytes_for_frame): Delete.
7630 (read_relative_register_raw_bytes): Delete.
7631 * frame.h (frame_register_read): Declare.
7632 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7634 * infcmd.c (do_registers_info): Ditto.
7635 * hppa-tdep.c: Ditto.
7636 * rs6000-tdep.c: Ditto.
7637 * h8500-tdep.c: Ditto.
7638 * mips-tdep.c: Ditto.
7639 * h8300-tdep.c: Ditto.
7640 * z8k-tdep.c: Ditto.
7642 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7644 From Jimi X <jimix@watson.ibm.com>:
7645 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7648 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7650 From Jimi X <jimix@watson.ibm.com>:
7651 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7654 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7656 From Jimi X <jimix@watson.ibm.com>:
7657 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7658 register sets for these processor variants.
7660 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7662 * regformats/reg-ppc.dat: Support FPSCR.
7664 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7666 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7667 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7668 Add fpscr as an invalid/unfetchable register.
7669 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7670 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7671 (fill_fpregset): Add support for register fpscr.
7672 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7673 (fill_gregset): Account for the fact that register ``mq'' might
7675 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7676 (registers_power): Add fpscr to register set at slot 71.
7677 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7678 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7680 2002-04-11 Michael Snyder <msnyder@redhat.com>
7682 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7683 * configure: Regenerate.
7684 * config.in: Regenerate.
7685 * acconfig.h: Add define for _SYSCALL32.
7686 * core-sol2.c: Remove #define _SYSCALL32.
7687 * solib-legacy.c: Remove #define _SYSCALL32.
7689 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7691 * stack.c (select_frame): Cleanup internal error message, do not
7694 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7696 * stack.c (select_frame): Check that selected_frame and the
7697 specified level are as expected.
7698 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7700 * frame.h (struct frame_info): Add field `level'. Update
7702 Work-in-progress PR gdb/464.
7704 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7706 * maint.c (maint_print_section_info): Rename print_section_info.
7707 (print_bfd_section_info, print_objfile_section_info): Update.
7708 * inferior.h (struct gdbarch): Add opaque declaration.
7709 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7710 * gdbarch.h: Regenerate.
7712 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7714 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7715 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7716 (kernel_u_size): Added.
7717 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7718 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7720 2002-04-04 Jim Ingham <jingham@apple.com>
7722 * valarith.c (find_size_for_pointer_math): New function, either returns
7723 the size for a pointer's target, returns 1 for void *, or errors for
7725 (value_add, value_sub): use find_size_for_pointer_math.
7727 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7729 * linux-low.c (linux_look_up_symbols): New hook.
7730 (linux_target_ops): Add linux_look_up_symbols.
7731 * remote-utils.c (decode_address): New function.
7732 (look_up_one_symbol): New function.
7733 * server.c (handle_query): Call target look_up_symbols hook.
7734 * server.h (look_up_one_symbol): Add prototype.
7735 * target.h (struct target_ops): Add look_up_symbols hook.
7737 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7739 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7740 override FP_REGNUM with frame->fp. Update copyright.
7741 * parse.c (num_std_regs, std_regs): Delete.
7742 (target_map_name_to_register): Do not search std_regs. Update
7743 function description.
7744 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7745 declarations. Update copyright.
7748 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7750 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7751 after the last symbol in a block.
7753 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7755 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7756 is non zero as a found symbol.
7758 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7760 * findvar.c: Include "builtin-regs.h".
7761 (value_of_register): Call value_of_builtin_reg when applicable.
7762 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7763 (target_map_name_to_register): Call
7764 builtin_reg_map_name_to_regnum.
7765 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7766 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7767 (builtin_regs_h): Define.
7768 (builtin-regs.o): New target.
7769 (findvar.o): Add $(builtin_regs_h).
7770 * builtin-regs.c, builtin-regs.h: New files.
7771 * std-regs.c: New file.
7772 Partial fix for PR gdb/251.
7774 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7776 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7777 it's no longer required.
7779 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7781 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7783 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7785 From Jimi X <jimix@watson.ibm.com>:
7786 * rs6000-tdep.c (rs6000_software_single_step): Use
7787 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7788 and size. Use target_insert_breakpoint() and
7789 target_remove_breakpoint() to insert and remove breakpoints
7790 instead of explicit memory reads and writes.
7792 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7794 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7795 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7796 ELF_OBJECT_FORMAT ifdef.
7798 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7800 From Jimi X <jimix@watson.ibm.com>:
7801 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7803 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7805 From Jimi X <jimix@watson.ibm.com>:
7806 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7807 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7809 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7811 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7812 s/asprintf/xasprintf/.
7813 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7815 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7817 I believe Jeff Law denies responsability for this one:
7818 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7819 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7820 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7821 Work-around for PR gdb/366.
7823 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7825 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7826 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7827 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7829 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7831 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7832 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7835 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7837 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7840 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7842 * README (Reporting Bugs in GDB): Document the bug web page as the
7843 prefered way of submitting bugs.
7846 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7848 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7850 * gdbarch.h, gdbarch.c: Re-generate.
7852 2002-04-07 Andreas Schwab <schwab@suse.de>
7854 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7855 buffer to regcache_collect.
7857 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7859 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7860 * gdbarch.c, gdbarch.h: Re-generate.
7862 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7864 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7865 declaration. Fix -Werror.
7867 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7869 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7870 * gdbarch.c: Regenerate.
7872 2002-04-05 Michael Snyder <msnyder@redhat.com>
7874 * breakpoint.c (clear_command): Rewrite middle section to
7875 combine two loops with identical control conditions.
7876 Add a cleanup to eliminate a memory leak.
7877 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7879 2002-04-05 H.J. Lu (hjl@gnu.org)
7881 * solib-svr4.c (bkpt_names): Add "__start".
7883 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7885 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7886 as test for 64 bit target.
7888 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7890 * h8500-tdep.c (h8500_write_fp): Delete function.
7891 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7892 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7893 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7894 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7895 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7896 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7898 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7899 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7900 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7901 (d10v_write_fp): Delete function.
7902 * inferior.h (write_fp, generic_target_write_fp): Delete
7904 * regcache.c (generic_target_write_fp): Delete function.
7905 (write_fp): Delete function.
7906 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7907 * gdbarch.h, gdbarch.c: Regenerate.
7908 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7909 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7910 (sparc64_write_fp): Delete declaration.
7911 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7912 (h8500_write_fp): Delete declaration.
7914 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7916 * sparc-tdep.c (sparc64_write_fp): Delete.
7917 (sparc_push_dummy_frame): Replace write_fp call with code to store
7919 (sparc_gdbarch_init): Do not initialize write_fp.
7921 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7923 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7926 2002-03-29 Jim Blandy <jimb@redhat.com>
7928 * stack.c (get_selected_block): Add new argument `addr_in_block',
7929 used to return the exact code address we used to select the block,
7931 * blockframe.c (get_frame_block, get_current_block): Same.
7932 * frame.h (get_frame_block, get_current_block,
7933 get_selected_block): Update declarations.
7934 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7935 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7937 2002-04-05 Michael Snyder <msnyder@redhat.com>
7939 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7942 2002-04-05 J. Brobecker <brobecker@gnat.com>
7944 * utils.c (xfullpath): New function.
7945 * defs.h (xfullpath): Add declaration.
7946 * source.c (openp): Use xfullpath in place of gdb_realpath to
7947 avoid resolving the basename part of filenames when the
7948 associated file is a symbolic link. This fixes a potential
7949 inconsistency between the filenames known to GDB and the
7950 filenames it prints in the annotations.
7951 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7952 to be able to match a filename with either the real filename, or
7953 the name of any symbolic link to this file.
7954 (lookup_partial_symtab): Ditto.
7956 2002-04-04 Michael Snyder <msnyder@redhat.com>
7958 * breakpoint.c: Add support for hardware breakpoints in overlays.
7959 (overlay_events_enabled): New state variable.
7960 (insert_breakpoints): Use overlay_events_enabled to decide
7961 whether to attempt to set a breakpoint at the overlay load addr.
7962 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7963 (remove_breakpoint): Use overlay_events_enabled to decide
7964 whether breakpoints need to be removed from overlay load addr.
7965 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7966 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7967 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7968 disable_overlay_breakpoints): Update overlay_events_enabled.
7970 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7972 * dwarf2read.c (struct function_range): New.
7973 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7974 (check_cu_functions): New.
7975 (read_file_scope): Initialize global function lists.
7976 Call dwarf_decode_line after processing children.
7977 (read_func_scope): Add to global function list.
7978 (dwarf_decode_lines): Call check_cu_functions everywhere
7979 record_line is called. Call record_line with a linenumber
7980 of 0 to mark sequence ends.
7982 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7984 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7985 change sync with glibc.
7987 2002-04-03 Jim Blandy <jimb@redhat.com>
7989 * configure.in: Call AC_C_INLINE.
7990 * configure: Regenerated.
7992 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7994 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7995 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7997 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7999 * NEWS: Mention gcore support on FreeBSD/i386.
8001 * fbsd-proc.c: New file.
8002 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8003 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8005 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8008 2002-03-29 Jim Blandy <jimb@redhat.com>
8010 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8011 unescaped newlines in string literals, but newer ones don't. So
8014 2002-03-26 Michael Snyder <msnyder@redhat.com>
8015 Andrew Cagney <cagney@redhat.com>
8017 * cli/cli-dump.c: New file. Dump memory to file,
8018 restore file to memory.
8019 * cli/cli-dump.h: New file.
8020 * Makefile.in: Add rules, dependencies for cli-dump.o.
8021 * NEWS: Mention new commands.
8023 2002-03-28 Michael Snyder <msnyder@redhat.com>
8025 * symfile.c (symbol_file_add): Move test for null symbols to later.
8027 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8029 From veksler at il.ibm.com:
8030 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8031 the xstrduped original path.
8034 2002-03-27 Michael Snyder <msnyder@redhat.com>
8036 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8037 * infcmd.c (_initialize_infcmd): Ditto.
8038 * language.c (_initialize_language): Ditto.
8039 * symfile.c (_initialize_symfile): Ditto.
8040 * top.c (_init_main): Ditto.
8041 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8043 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8045 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8046 vector registers handling.
8047 (skip_prologue): Handle new AltiVec instructions. Fill in new
8048 fields of frame data.
8049 (frame_get_saved_regs): Fill in information for AltiVec registers.
8051 2002-03-27 Jim Blandy <jimb@redhat.com>
8053 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8054 a function; leave this macro here to invoke that function.
8055 (symbol_init_mangled_name): Declaration for that function.
8056 * symtab.c (symbol_init_mangled_name): New function.
8058 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8060 * valarith.c: Replace strerror with safe_strerror.
8061 * tracepoint.c: Ditto.
8063 * go32-nat.c: Ditto.
8067 2002-03-27 Andreas Schwab <schwab@suse.de>
8069 * event-top.c (command_line_handler): Remove useless if.
8071 2002-03-27 Andreas Jaeger <aj@suse.de>
8073 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8076 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8078 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8079 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8080 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8081 (x86_64_linux_dr_get_status, supply_gregset),
8082 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8083 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8084 (x86_64_register_info_table): Add.
8085 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8086 (x86_64_register_raw_size, x86_64_register_virtual_type),
8087 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8088 general x86_64_register_info_table.
8089 (i386_gdbarch_init): gdbarch_register_bytes is now set
8090 dynamicaly during initialization.
8091 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8092 * gdbserver/linux-x86-64-low.c: Ditto.
8094 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8096 * gdbserver/server.c (main): Call target_signal_to_host_p
8097 and target_signal_to_host on signals received from the remote.
8098 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8099 target_signal_from_host on signals sent to the remote.
8100 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8101 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8103 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8105 * signals/signals.c: Include "server.h" in gdbserver build.
8106 (target_signal_from_name): Don't use STREQ.
8107 (_initialize_signals): Likewise. Don't include function in
8110 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8112 * signals.c: Moved to...
8113 * signals/signals.c: Here.
8114 * Makefile (signals.o): Update.
8116 2002-03-26 Jeff Law (law@redhat.com)
8118 * somread.c (som_symtab_read): Remove some commented out code and
8119 updated related comments. Do not set the minimal symbol table to
8120 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8121 in a dynamic executable.
8122 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8123 where we are unable to find the minimal symbol for the given
8126 2002-03-25 Jeff Law (law@redhat.com)
8128 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8130 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8132 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8134 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8136 * command.h: Update copyright.
8137 (struct cmd_list_element): Replace definition with opaque
8139 (enum cmd_types): Document that it will eventually be moved to
8141 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8142 (MALLOCED_REPLACEMENT): Delete macro.
8143 * Makefile.in (cli_decode_h): Add $(command_h).
8144 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8145 * top.c: Include "cli/cli-decode.h".
8146 * completer.c: Include "cli/cli-decode.h".
8147 * maint.c: Include "cli/cli-decode.h".
8148 * cli/cli-decode.h: Include "command.h".
8149 (enum command_class): Delete.
8150 (enum cmd_types): Comment out.
8151 (enum cmd_auto_boolean): Delete.
8152 (enum var_types): Delete.
8154 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8156 * cli/cli-decode.c: Include "gdb_assert.h".
8157 (add_set_or_show_cmd): New static function.
8158 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8159 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8160 all fields, such as func, from the set command.
8162 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8164 * MAINTAINERS (sh-elf): Change warning flag to -w.
8166 2002-03-23 Andrew Cagney <cagney@redhat.com>
8168 * defs.h (error): Add printf format attribute.
8169 * thread-db.c (thread_from_lwp): Fix error format string.
8170 * stack.c (parse_frame_specification): Ditto.
8171 * cli/cli-decode.c (undef_cmd_error): Ditto.
8172 * scm-lang.c (scm_lookup_name): Ditto.
8173 * tracepoint.c (trace_error): Ditto.
8174 * remote-utils.c (usage): Ditto.
8175 * remote.c (compare_sections_command): Ditto.
8178 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8180 * gdbtypes.c (append_composite_type_field): New function.
8181 (init_composite_type): New function.
8182 * gdbtypes.h (append_composite_type_field): Declare.
8183 (init_composite_type): Ditto.
8185 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8187 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8189 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8190 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8191 structure returning convention for SYSV ABI case, but not
8192 for GNU/Linux, FreeBSD, or NetBSD.
8194 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8196 * symtab.h (lookup_block_symbol): Add mangled_name argument
8199 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8200 with new mangled_name argument.
8201 * linespec.c (decode_line_1): Likewise.
8202 * valops (value_of_this): Likewise.
8203 * symtab.c (lookup_transparent_type): Likewise.
8204 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8205 (lookup_symbol): If we are given a mangled name, pass it down
8206 to lookup_symbol_aux.
8207 (lookup_block_symbol): If we are given a mangled name to check
8208 against, only return symbols which match it.
8210 2002-03-22 Christopher Faylor <cgf@redhat.com>
8212 * win32-nat.c (child_create_inferior): Check for proper shell to use
8213 here, in case the user changes it on the fly.
8214 (_initialize_inftarg): Remove shell path considerations.
8216 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8218 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8219 for gdbarch_max_register_raw_size and max_register_virtual_size.
8220 Adjust copyright year.
8222 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8224 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8225 in a function to cover the entire beginning of the function
8226 as well if it does not already.
8228 2002-03-21 Tom Rix <trix@redhat.com>
8230 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8231 (rs6000_ptrace64): Renamed from ptrace64.
8233 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8235 * gdbserver/remote-utils.c (remote_open): Don't call
8236 getprotobyname, we're all using TCP here so just use
8238 * gdbserver/gdbreplay.c (remote_open): Ditto.
8240 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8242 * regcache.c (_initialize_regcache): No need to call
8243 build_regcache() at this time; it gets called whenever
8244 the gdbarch changes.
8246 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8248 * sparc-nat.c: Include sys/param.h where possible.
8250 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8253 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8254 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8255 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8257 * stabsread.c (rs6000_builtin_type): Likewise.
8258 (read_sun_floating_type): Likewise.
8260 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8262 * stabsread.c (read_member_functions): Remove skip code for duplicate
8263 constructor/destructor methods. Use standard parsing for these
8264 methods and just do not chain them to the list of methods after
8267 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8269 * coffread.c: Remove redundant static declarations. Replace
8270 occurrences of `PTR' with `void *'.
8271 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8272 * top.h (quit_cover): Likewise.
8273 * defs.h (catch_errors): Likewise.
8275 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8277 * defs.h (XMALLOC): Define.
8278 * gdb-events.sh (XMALLOC): Delete macro.
8279 * gdb-events.c, gdb-events.h: Regenerate.
8280 * gdbarch.sh (XMALLOC): Delete macro.
8281 * gdbarch.c: Regenerate.
8282 * serial.c (XMALLOC): Delete macro.
8283 * ui-file.c (XMALLOC): Ditto.
8284 * ser-unix.h (XMALLOC): Ditto.
8285 * sh-tdep.c (XMALLOC): Ditto.
8286 * ui-out.c (XMALLOC): Ditto.
8287 * utils.c (XMALLOC): Ditto.
8288 * i386-tdep.c (XMALLOC): Ditto.
8289 * gdb-events.c (XMALLOC): Ditto.
8290 * d10v-tdep.c (XMALLOC): Ditto.
8291 * cli-out.c (XMALLOC): Ditto.
8293 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8294 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8295 * ui-file.c, ui-out.c: Ditto.
8297 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8299 * command.h (struct cmd_list_element): Add field context.
8300 (set_cmd_context, get_cmd_context): Declare.
8301 * cli/cli-decode.h: Ditto.
8302 * cli/cli-decode.c (get_cmd_context): New function.
8303 (set_cmd_context): New function.
8304 (add_cmd): Initialize context.
8305 Part of fixing PR gdb/145 and PR gdb/146.
8307 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8309 * cli/cli-decode.c (cmd_type): New function.
8310 * command.h (cmd_type): Declare.
8311 * infrun.c (set_schedlock_func): Call function cmd_type.
8312 * kod.c (kod_set_os): Call cmd_type.
8313 * cris-tdep.c (cris_version_update): Use function cmd_type.
8314 (cris_mode_update, cris_abi_update): Ditto.
8316 * command.h: (execute_cmd_post_hook): Declare.
8317 (execute_cmd_pre_hook): Declare.
8318 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8319 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8320 functions. Execute pre/post hook while ensuring that afterwords
8322 * top.c (execute_command): Use execute_cmd_post_hook, and
8323 execute_cmd_pre_hook to execute pre/post commands.
8324 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8326 (hook_stop_stub): Call execute_cmd_pre_hook.
8328 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8330 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8331 set'' and this leads to a core dump. Move xstrdup of
8332 operating_system to after check that it is not NULL.
8334 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8336 * kod.c (kod_set_os): Remove unnecessary check that
8337 ``command->type'' is set_cmd.
8339 * valprint.c (set_input_radix): Use input_radix.
8340 (set_output_radix): Use output_radix.
8341 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8344 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8346 * value.h (struct value): Delete field ``substring_addr''. Change
8347 aligner fields to force_doublest_align, force_longest_align,
8348 force_core_addr_align and force_pointer_aligh.
8350 * value.h (struct value): Fix typo in above change.
8352 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8354 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8355 to fix internal_error from ``maintenance print architecture''.
8357 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8359 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8360 for gcc versions after gcc-2.8.1.
8362 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8364 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8365 for method resolution. Restore adjustment of ``this'' pointer after
8366 calling value_struct_elt, which was accidentally removed during the
8369 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8371 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8373 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8375 * value.h (value_of_register): Update.
8377 2002-03-14 Richard Henderson <rth@redhat.com>
8379 * configure.in: Detect declaration for canonicalize_file_name.
8380 * utils.c (canonicalize_file_name): Declare, if needed.
8381 (gdb_realpath): Prefer realpath if available and usable.
8382 * config.in, configure: Rebuild.
8384 2002-03-14 Richard Henderson <rth@redhat.com>
8386 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8387 a constant array bound.
8389 * MAINTAINERS: Add myself to write-after-approval.
8391 2002-03-14 Michael Snyder <msnyder@redhat.com>
8393 * symfile.c (syms_from_objfile): Return immediately if no syms.
8394 (symbol_file_add): Return immediately if no syms.
8395 (find_sym_fns): Return immediately if no syms.
8397 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8399 * gdbserver/remote-util.c (remote_open): Print remote-side's
8400 IP address when remote debugging over the network.
8402 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8404 * config/sparc/fbsd.mh: Fix copyright.
8405 * config/sparc/fbsd.mt: Likewise.
8407 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8409 * MAINTAINERS: Fix typo in name of gdb warnings option.
8410 (x86-64): Fix formating so that this can be parsed by awk.
8412 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8414 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8415 * defs.h: Include "gdb/signals.h".
8416 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8418 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8420 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8421 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8424 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8425 Don Howard <dhoward@redhat.com>
8427 * mips-tdep.c (ST0_FR): Define.
8428 (mips2_fp_compat): New function, temporarily disabled.
8429 (mips_read_fp_register_single): New function.
8430 (mips_read_fp_register_double): New function.
8431 (mips_print_register): Use them.
8432 (do_fp_register_row): Likewise.
8434 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8436 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8439 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8441 * stabsread.c (read_member_functions): Fix is_stub test for
8442 static member functions, improve comment.
8444 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8446 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8447 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8448 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8449 commands that set boolean values.
8450 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8451 (arm_rdi_resume): Always initialize PC.
8452 (arm_rdi_open): Don't use rslt as a boolean.
8453 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8454 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8455 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8456 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8458 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8460 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8461 * configure: Rebuilt.
8463 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8465 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8466 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8468 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8470 * cli/cli-decode.c (set_cmd_completer): New function.
8471 * command.h (set_cmd_completer): Declare.
8472 * cli/cli-decode.h (set_cmd_completer): Ditto.
8474 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8475 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8476 * win32-nat.c (_initialize_inftarg): Ditto.
8477 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8478 * proc-api.c (_initialize_proc_api): Ditto.
8479 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8480 * source.c (_initialize_source): Ditto.
8481 * exec.c (_initialize_exec): Ditto.
8482 * solib.c (_initialize_solib): Ditto.
8483 * top.c (init_main): Ditto.
8484 * tracepoint.c (_initialize_tracepoint): Ditto.
8485 * symfile.c (_initialize_symfile): Ditto.
8486 * printcmd.c (_initialize_printcmd): Ditto.
8487 * infcmd.c (_initialize_infcmd): Ditto.
8488 * corefile.c (_initialize_core): Ditto.
8490 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8492 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8494 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8496 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8498 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8500 * NEWS: Update headings, 5.2 has branched.
8502 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8504 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8505 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8506 (register_addr, REGISTER_RAW_SIZE): Likewise.
8507 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8508 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8510 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8512 * MAINTAINERS (x86-64): Add myself.
8513 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8514 changed value_ptr -> struct value *
8516 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8518 * configure.host (sparc64-*-freebsd): Add.
8519 * configure.tgt: Likewise.
8520 * config/sparc/fbsd.mh: New file.
8521 * config/sparc/fbsd.mt: Likewise.
8522 * config/sparc/nm-fbsd.h: Likewise.
8523 * config/sparc/tm-fbsd.h: Likewise.
8525 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8527 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8528 regformats/reg-s390x.dat.
8530 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8532 * utils.c: Add FIXME explaining true/false problem.
8534 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8536 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8538 2002-02-28 Michael Chastain <mec@shout.net>
8540 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8542 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8544 * gdbserver/linux-s390-low.c: New file.
8545 * regformats/reg-s390.dat: New file.
8546 * regformats/reg-s390x.dat: New file.
8547 * gdbserver/configure.srv: Add S/390.
8548 * gdbserver/Makefile.in: Add S/390.
8549 * configure.tgt: Enable gdbserver for S/390.
8551 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8553 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8554 first line of the doc string for "info dos", except at the end of
8555 the sentence, since the short help stops at the first period.
8557 2002-02-28 Jason Merrill <jason@redhat.com>
8559 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8561 2002-02-27 Fred Fish <fnf@redhat.com>
8563 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8564 comment (dumy -> dummy).
8566 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8568 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8570 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8572 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8574 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8576 * gdbserver/acconfig.h: New file.
8577 * gdbserver/i387-fp.c: New file.
8578 * gdbserver/i387-fp.h: New file.
8579 * gdbserver/linux-x86-64.c: New file.
8580 * regformats/reg-x86-64.dat: New file.
8581 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8582 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8583 * gdbserver/configure.in: Add support for regsets.
8584 * gdbserver/config.in: Regenerate.
8585 * gdbserver/configure: Regenerate.
8586 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8587 * gdbserver/linux-low.h: New file.
8588 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8590 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8591 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8592 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8593 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8594 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8595 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8596 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8597 "i387-fp.h". Add PTRACE_GETREGS and friends.
8598 * gdbserver/regcache.c (supply_register): New function.
8599 (supply_register_by_name): New function.
8600 (collect_register): New function.
8601 (collect_register_by_name): New function.
8603 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8605 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8606 (config.status): Add configure.srv dependency.
8607 (server_h): Add config.h dependency.
8609 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8611 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8612 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8613 * gdbserver/configure.srv: Change i386-*-linux* to use
8616 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8618 * x86-64-tdep.c: Re-indent. Update copyright date.
8620 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8622 From Michal Ludvig <mludvig@suse.cz>:
8623 * x86-64-tdep.c (value.h): Delete.
8624 (gdb_assert.h): Include.
8625 (x86_64_register_convert_to_virtual,
8626 x86_64_register_convert_to_raw ): Add check which lets only
8627 floating-point values to be converted.
8628 (value_push): Delete.
8629 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8630 (i386_gdbarch_init): Number of register_bytes fixed.
8632 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8634 * MAINTAINERS: Add x86-64 target.
8636 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8638 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8639 * osfsolib.c (solib_map_sections): Ditto.
8640 * irix5-nat.c (solib_map_sections): Ditto.
8641 * corelow.c (gdb_check_format): Ditto.
8642 * symfile.c (symfile_bfd_open): Ditto.
8643 * solib.c (solib_map_sections): Ditto.
8646 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8648 * remote.c (_initialize_remote): By default, disable ``e'' and
8649 ``E'' step out-of-range packets.
8651 2002-02-26 Andreas Schwab <schwab@suse.de>
8653 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8654 m68k_linux_frame_saved_pc.
8655 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8657 (SIGCONTEXT_PC_OFFSET): Remove.
8658 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8659 m68k_linux_sigtramp_saved_pc): New functions.
8660 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8661 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8662 (UCONTEXT_PC_OFFSET): Define.
8663 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8664 non-RT and RT signal trampolines.
8666 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8668 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8669 (TARGET_NBPG, STACK_END_ADDR): Delete
8670 (VARIABLES_INSIDE_BLOCK): Delete.
8672 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8674 * utils.c (perror_with_name): Make string parameter constant.
8675 (print_sys_errmsg): Ditto.
8677 * defs.h (perror_with_name): Update.
8678 (print_sys_errmsg): Update.
8681 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8683 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8684 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8686 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8688 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8689 if it already matches the current architecture from the exec file.
8690 Include arch-utils.h for gdbarch_info_init prototype.
8691 * Makefile.in (rs6000-nat.o): Update dependencies.
8693 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8695 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8696 list of exported variables.
8698 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8700 * gdbserver/configure.srv: New file.
8701 * gdbserver/configure.in: Use configure.srv instead
8702 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8704 * gdbserver/configure: Regenerated.
8705 * gdbserver/terminal.h: New file.
8706 * gdbserver/Makefile.in: Update for configure changes. Remove
8707 more unneeded include paths.
8709 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8711 From wiz at danbala:
8712 * config/sparc/tm-sp64.h: Fix grammar and typos.
8715 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8717 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8718 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8719 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8720 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8721 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8722 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8723 * s390-tdep.c: Ditto.
8724 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8725 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8726 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8727 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8728 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8729 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8730 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8731 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8732 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8733 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8736 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8738 * lin-thread.c: Delete file.
8739 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8740 to gdb_proc_service.h.
8741 * configure: Re-generate.
8743 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8744 * serial.c (serial_open): Delete check for "ocd".
8747 * Makefile.in (linux-thread.o): Delete target.
8748 * linux-thread.c: Delete file.
8750 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8751 renamed SH files to be consistent.
8753 * symtab.c (sort_search_symbols): Use xfree.
8755 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8757 * arm-linux-tdep.c (arm_linux_init_abi): Register
8758 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8759 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8760 definition with undef, since we don't want the sysvr4 definition.
8761 (SKIP_TRAMPOLINE_CODE): Likewise.
8763 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8765 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8767 * configure.in: (AC_CHECK_FUNCS) Added test for
8768 canonicalize_file_name Regenerated.
8769 * config.in, configure: Regenerated.
8770 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8771 defined use canonicalize_file_name.
8773 2002-02-23 Michael Chastain <mec@shout.net>
8775 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8777 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8779 * README: Remove references to cygnus.com.
8780 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8781 dot com'' form. Remove references to cygnus.com and sourceware.
8783 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8785 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8786 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8787 1003.1-2001 no longer allows "head -1".
8788 * gdb/Makefile.in (version.c): Likewise.
8789 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8790 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8791 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8793 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8795 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8796 * command.h (cmd_cfunc_eq): Declare.
8797 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8799 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8800 ``struct cmd_list_element *''.
8801 * cli/cli-cmds.c (is_complete_command): Update. Use
8803 * top.c (execute_command): Pass the command to
8804 is_complete_command.
8805 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8807 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8809 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8810 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8811 architecture defines.
8812 * s390-tdep.c (s390_gdbarch_init): Likewise.
8814 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8816 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8817 (arm_linux_push_arguments): Likewise.
8818 (arm_linux_init_abi): Register them. Also register linux-specific
8820 (find_minsym_and_objfile): Use strcmp, not STREQ.
8821 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8822 (arm_linux_call_dummy_words): Delete declaration.
8823 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8824 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8826 (LOWEST_PC): Delete.
8828 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8830 * maint.c (print_section_info): Do not prepend `0x' to filepos
8831 output, it will be handled by local_hex_string_custom.
8833 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8835 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8836 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8837 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8839 2002-02-22 Jim Blandy <jimb@redhat.com>
8841 Indicate that the bcache functions don't change the strings
8843 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8844 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8846 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8848 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8850 2002-02-21 Christopher Faylor <cgf@redhat.com>
8852 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8853 find the complete path to a loaded DLL.
8855 2002-02-21 Fred Fish <fnf@redhat.com>
8857 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8858 that marks the end of the range of a function, enter a line number
8859 entry that has a line number of zero and a PC offset that matches
8860 the end of the function. This starts a range of PC's for which no
8861 line number information is known.
8862 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8863 PC's for which no line number info is found (line number is zero)
8864 then we didn't find any valid line information.
8865 * symtab.h: Document use of zero line number entry.
8867 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8869 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8870 (have_ptrace_getvrregs): Define for run time checks.
8871 (gdb_vrregset_t): New type for Altivec register handling.
8872 (fetch_register, store_register): Fetch/store altivec register
8874 (fetch_altivec_register, store_altivec_register): New functions.
8875 (supply_vrregset, fill_vrregset): New functions.
8876 (fetch_altivec_registers, store_altivec_registers): New functions.
8877 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8880 2002-02-21 Jiri Smid <smid@suse.cz>
8882 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8884 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8886 * Makefile.in (armnbsd-nat.o): Update dependencies.
8887 * armnbsd-nat.c (supply_gregset): New function. Common code to
8888 supply the integer register set.
8889 (supply_fparegset): New function. Similar for FPA registers.
8890 (fetch_regs, fetch_fp_regs): Use them.
8891 (fetch_core_registers): Likewise.
8892 (fetch_elfcore_registers): New function.
8893 (arm_netbsd_elfcore_fns): New core-file type specification.
8894 (_initialize_arm_netbsd_nat): Register it.
8896 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8898 * armnbsd-nat.c: Include gdbcore.h.
8899 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8900 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8901 'void' to declaration, to shut up ARI.
8902 (fetch_core_registers): Make static. Rewrite using supply_register.
8903 (arm_netbsd_core_fns): New core-file type specification.
8904 (_initialize_arm_netbsd_nat): New function.
8906 2002-02-21 Christopher Faylor <cgf@redhat.com>
8908 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8911 2002-02-20 Christopher Faylor <cgf@redhat.com>
8913 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8916 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8918 * jv-exp.y (parse_number): Change type of implicit longs
8919 to builtin_type_uint64.
8921 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8923 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8924 to be an integer instead of a `union wait'.
8926 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8928 * mips-linux-nat.c: Call the operating system GNU/Linux.
8929 * mips-linux-tdep.c: Likewise.
8930 * mips-tdep.c: Likewise.
8932 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8935 * jv-exp.y (parse_number): Handle 64-bit integers.
8937 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8939 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8940 AC_STDC_HEADERS to AC_HEADER_STDC.
8941 * gdbserver/configure: Regenerated.
8943 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8945 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8947 * sparc-tdep.c (get_longjmp_target): Likewise.
8949 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8951 * News: Add news about ARM and Multi-arch. Mention the new target
8954 2002-02-19 Jim Blandy <jimb@redhat.com>
8956 * stabsread.c (error_type_complaint): Improve error message.
8958 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8960 * gdbserver/README: Update documentation.
8961 * gdbserver/configure.in: Update configury to match documentation.
8962 * gdbserver/Makefile.in: Likewise.
8963 * gdbserver/configure: Regenerated.
8964 * gdbserver/aclocal.m4: New file, generated by aclocal.
8965 * gdbserver/config.in: New file, generated by autoheader.
8967 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8969 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8972 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8974 * arm-tdep.h (enum arm_float_model): New enum.
8975 (struct gdbarch_tdep): Add fp_model.
8976 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8977 up floating-point conversions until we know the floating-point model
8978 in use by the inferior. Don't complain about being unable to
8979 determine the ABI of the inferior when we don't have one.
8980 (arm_extract_return_value): Support different floating-point models.
8981 (arm_store_return_value): Likewise.
8982 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8984 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8986 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8988 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8989 of ``current_gdbarch''.
8991 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8993 * armnbsd-nat.c : ANSIfy all function declarations.
8994 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8995 (fetch_inferior_registers): Re-implement in terms of above.
8996 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8997 (store_inferior_registers): Re-implement in terms of above.
8999 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9001 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9003 * arm-linux-tdep.c: Likewise.
9004 * config/arm/tm-linux.h: Likewise.
9006 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9008 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9009 * config/arm/nbsd.mt (TM_FILE): Delete.
9010 * config/arm/tm-nbsd.h: Delete.
9012 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9014 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9015 Initialize CALL_DUMMY_LENGTH.
9017 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9019 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9021 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9022 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9023 defines one thing and that is incorrect for this port.
9024 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9026 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9028 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9030 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9032 * win32-nat.c (display_selector): New function. Displays information
9033 about the information returned by GetThreadSelectorEntry API function.
9034 (display_selectors): New function. Displays the infomation of
9035 the selector given as argument, or of CS, DS ans FS selectors
9036 if no argument is given.
9037 ( _initialize_inftarg): Add "w32" as info prefix command.
9038 Add "info w32 selector" as command calling display_selectors.
9040 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9042 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9043 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9046 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9048 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9050 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9052 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9053 (arm_fix_call_dummy): Call it.
9054 (arm_call_dummy_breakpoint_offset): Delete.
9055 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9056 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9058 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9060 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9061 Default to func_frame_chain_valid.
9062 * gdbarch.h, gdbarch.c: Re-generate.
9063 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9065 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9067 * ppc-linux-nat.c: Update copyright.
9068 (fetch_register, store_register): Add tid parameter, don't compute
9070 (fetch_ppc_registers, store_ppc_registers): Add tid
9071 parameter. Pass it along to callees.
9072 (fetch_inferior_registers, store_inferior_registers): Compute tid
9073 here, and pass it to calleed functions.
9074 (fill_gregset, supply_fpregset): Clean up formatting.
9076 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9078 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9079 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9081 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9083 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9084 * gdbarch.c gdbarch.h: Regenerate.
9085 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9087 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9088 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9089 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9091 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9092 * arm-tdep.c (arm_get_longjmp_target): New function.
9093 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9094 this to a positive value register arm_get_longjmp_target as the
9096 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9097 (arm_linux_init_abi): Set up longjmp description in tdep.
9098 * armnbsd-nat.c (get_longjmp_target): Delete.
9099 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9100 description in tdep.
9101 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9102 (get_longjmp_target): Delete declaration.
9103 (GET_LONGJMP_TARGET): Delete.
9104 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9105 (GET_LONGJMP_TARGET): Delete.
9107 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9109 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9110 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9111 of ``current_gdbarch''.
9113 2002-02-17 Tom Tromey <tromey@redhat.com>
9115 * cli/cli-cmds.c (compare_strings): New function.
9116 (complete_command): Only print each unique item once.
9117 * completer.h (complete_line): Declare.
9118 * completer.c (complete_line): New function.
9119 (line_completion_function): Use it.
9121 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9123 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9124 * gdbarch.h, gdbarch.c: Re-generate.
9126 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9128 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9130 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9132 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9133 * valops.c (value_arg_coerce): Don't take the address of a reference
9134 to convert an argument to a reference.
9136 2002-02-15 Christopher Faylor <cgf@redhat.com>
9138 * win32-nat.c (get_image_name): New function.
9139 (handle_load_dll): Use get_image_name function.
9140 (get_child_debug_event): Avoid registering debug events until possibly
9141 execed process is started.
9142 (child_create_inferior): Allow invocation via shell so that command
9143 line redirection, etc. works ok.
9144 (_initialize_inftarg): Add new command: "set shell" to control whether
9145 a shell is used to start a process.
9147 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9149 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9150 instead of find_register_by_number.
9151 (cannot_store_register): Likewise.
9153 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9155 * dwarf2read.c: Replace fprintf (stderr, ...) by
9156 fprintf_unfiltered (gdb_stderr, ...).
9158 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9160 * gdbserver/gdbserver.1: Document --attach.
9162 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9164 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9166 * arm-tdep.c (arm_default_arm_le_breakpoint)
9167 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9168 (arm_default_thumb_be_breakpoint): New. Initialize them from
9169 traditional breakpoint defines.
9170 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9171 (arm_gdbarch_init): Initialize new breakpoint variables.
9172 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9173 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9174 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9175 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9177 (arm_netbsd_init_abi_common): ... here; new function.
9178 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9179 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9180 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9181 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9183 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9185 * arm-tdep.h (enum arm_abi): New enum.
9186 (struct gdbarch_tdep): New structure.
9187 (LOWEST_PC): Provide a default.
9188 (arm_gdbarch_register_os_abi): Declare new function.
9189 * arm-tdep.c (arm_abi_names): New array.
9190 (process_note_abi_tag_sections): New function.
9191 (get_elfosabi): New function.
9192 (arm_gdbarch_register_os_abi): New function.
9193 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9194 support for that ABI has been built in, then call the appropriate
9195 configuration routine. Use gdbarch_num_regs() to get the number
9197 (arm_dump_tdep): New function.
9198 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9199 place-holder functions.
9200 (_initialize_arm_tdep): Register them.
9201 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9203 * armnbsd-tdep.c: New file.
9204 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9205 * config/arm/nbsd.mt (TDEPFILES): Add it.
9206 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9208 * armnbsd-nat.c: Include regcache.h.
9209 * Makefile.in (armnbsd-nat.o): Update dependency list.
9211 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9213 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9215 * gdbserver/Makefile.in: Fix typos in target rules.
9217 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9219 Fix part of PR gdb/267.
9220 * linespec.c (find_methods): Handle constructors specially for now.
9222 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9224 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9226 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9227 standard_coerce_float_to_double().
9229 2002-02-14 Christopher Faylor <cgf@redhat.com>
9231 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9234 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9236 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9237 find_variant_by_name, because it confuses the multiarch
9238 framework. Return NULL if there isn't an architecture with the
9239 user supplied name, instead of forcing a different one without
9240 recording the change with the multiarch machinery.
9241 (find_variant_by_name): Delete.
9243 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9245 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9246 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9248 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9250 * stack.c (print_frame_info_base): When calling
9251 print_frame_info_listing_hook, set current_source_symtab.
9253 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9255 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9256 and remove unused $(INCLUDE_DIR).
9257 Add regcache.c to OBS.
9258 Add generated register protocol files to clean target.
9259 Update dependencies for new objects, obsolete old target code.
9261 * gdbserver/linux-low.c: Remove all platform-specific code to
9262 new files. Remove various dead code. Update to use regcache
9264 * gdbserver/remote-utils.c (fromhex): Add return statement
9266 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9268 (input_interrupt): Add integer parameter to match prototype
9269 of a signal handler.
9270 (outreg): Use register_data ().
9271 (prepare_resume_reply): Use gdbserver_expedite_regs.
9272 * gdbserver/server.c (main): Dynamically allocate own_buf because
9273 PBUFSIZ is no longer constant. Use registers_to_string () and
9274 registers_from_string ().
9275 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9276 for error (), fatal (), and warning (). Update definition of
9277 PBUFSIZ to use regcache functionality. Add include guard.
9278 * gdbserver/utils.c (fatal): Add missing ``const''.
9279 (warning): New function.
9281 * regformats/regdat.sh: Include "regcache.h" in generated files.
9282 Provide init_registers () function.
9283 * regformats/regdef.h: Add prototype for set_register_cache ().
9286 * gdbserver/linux-arm-low.c: New file.
9287 * gdbserver/linux-i386-low.c: New file.
9288 * gdbserver/linux-ia64-low.c: New file.
9289 * gdbserver/linux-m68k-low.c: New file.
9290 * gdbserver/linux-mips-low.c: New file.
9291 * gdbserver/linux-ppc-low.c: New file.
9292 * gdbserver/linux-sh-low.c: New file.
9294 * gdbserver/regcache.c: New file.
9295 * gdbserver/regcache.h: New file.
9297 * gdbserver/low-linux.c: Removed obsolete file.
9299 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9301 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9302 * config/i386/linux.mt: Likewise.
9303 * config/ia64/linux.mt: Likewise.
9304 * config/m68k/linux.mh: Likewise.
9305 * config/powerpc/linux.mh: Likewise.
9306 * config/mips/linux.mt: Likewise.
9308 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9310 * config/i386/i386lynx.mh: Mark gdbserver variables
9311 as (currently) obsolete for this target.
9312 * config/i386/nbsd.mt: Likewise.
9313 * config/i386/nbsdelf.mt: Likewise.
9314 * config/m32r/m32r.mt: Likewise.
9315 * config/m68k/m68klynx.mh: Likewise.
9316 * config/m68k/nbsd.mt: Likewise.
9317 * config/m68k/sun3os4.mh: Likewise.
9318 * config/mips/vr5000.mt: Likewise.
9319 * config/ns32k/nbsd.mt: Likewise.
9320 * config/pa/hppabsd.mh: Likewise.
9321 * config/pa/hppaosf.mh: Likewise.
9322 * config/powerpc/nbsd.mt: Likewise.
9323 * config/rs6000/rs6000lynx.mh: Likewise.
9324 * config/s390/s390.mt: Likewise.
9325 * config/s390/s390x.mt: Likewise.
9326 * config/sparc/sparclynx.mh: Likewise.
9327 * config/sparc/sun4os4.mh: Likewise.
9328 * config/i386/x86-64linux.mt: Likewise.
9329 * config/sparc/linux.mh: Likewise.
9331 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9333 * configure.tgt: Configure gdbserver only for known working
9334 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9335 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9336 SUBDIRS if it is configured. Update comment for ${nativefile}.
9337 * configure: Regenerated.
9339 2002-02-13 Michael Snyder <msnyder@redhat.com>
9341 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9343 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9344 (default_gcore_mach): Just return 0, work around a problem in bfd.
9345 (default_gcore_target): OK to return NULL if exec_bfd is null.
9346 (make_mem_sec): Use a cast, avoid a warning.
9348 * procfs.c (find_memory_regions_callback): Use a cast instead of
9349 calling host_pointer_to_address (which complains if
9350 sizeof (host pointer) != sizeof (target pointer)).
9351 (procfs_make_note_section): Avoid overflow in psargs string.
9353 * procfs.c (procfs_make_note_section): Make the default
9354 implementation return an error.
9356 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9358 * procfs.c (procfs_make_note_section): Provide a default definition
9359 (for alpha-dec-osf4.0f). Fix typos.
9361 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9363 * linux-proc.c: Add include of regcache.h.
9364 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9366 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9368 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9369 * memattr.c (create_mem_region): Disallow useless empty region.
9370 Regions are half-open intervals, so allow [A..B) [B..C) as
9373 2002-02-13 Michael Chastain <mec@shout.net>
9375 * defs.h: Kill CONST_PTR.
9376 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9377 * c-lang.c (c_builtin_types): Likewise.
9378 * ch-lang.c (ch_builtin_types): Likewise.
9379 * f-lang.c (f_builtin_types): Likewise.
9380 * language.c (unknown_builtin_types): Likewise.
9381 * m2-lang.c (m2_builtin_types): Likewise.
9382 * p-lang.c (pascal_builtin_types): Likewise.
9383 * scm-lang.c (c_builtin_types): Likewise.
9385 2002-02-13 Keith Seitz <keiths@redhat.com>
9387 * arm-tdep.h (arm_get_next_pc): Add declaration.
9389 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9391 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9392 with other related struct-returning functions.
9393 (arm_extract_struct_value_address): New function.
9394 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9395 initialize float_format, double_format and long_double_format as
9396 appropriate to the endianness of the target.
9397 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9398 (arm_use_struct_convention): Delete declaration.
9399 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9401 2002-02-13 Keith Seitz <keiths@redhat.com>
9403 * defs.h (core_addr_to_string_nz): New function.
9405 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9407 Apply missing bits of 2002-01-15 patch.
9408 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9409 (fill_fpregset): Use i387_fill_fsave.
9411 2002-02-12 Keith Seitz <keiths@redhat.com>
9413 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9414 (core_addr_to_string_nz): New function.
9416 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9418 * arm-linux-nat.c: Really include arm-tdep.h.
9419 * config/arm/tm-linux.h (struct type, struct value): Declare.
9421 2002-02-11 Michael Snyder <msnyder@redhat.com>
9423 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9424 (gcore section): Ifdef for Solaris and Unixware only.
9425 (procfs_do_thread_registers): Unixware needs one lwpstatus
9426 per thread (not one prstatus or pstatus).
9427 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9428 not over all gdb threads. For unixware, call elfcore_write_pstatus
9429 once before iterating over threads.
9431 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9433 * arm-tdep.h: New file.
9434 * arm-tdep.c: Include arm-tdep.h.
9435 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9436 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9437 (arm_print_float_info, arm_register_type, convert_to_extended)
9438 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9439 (arm_extract_return_value, arm_register_name): Make static.
9440 (arm_software_single_step): Similarly. Fix types in declaration.
9441 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9442 (arm_store_return_value, arm_store_struct_return): New functions.
9443 (arm_gdbarch_init): Register the above functions. Also register
9444 call_dummy_start_offset, sizeof_call_dummy_words,
9445 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9446 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9447 max_register_virtual_size, register_size. Set up
9448 prologue_cache.saved_regs here, rather than ...
9449 (_initialize_arm_tdep): ... here.
9450 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9452 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9453 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9454 (arm_print_float_info, arm_register_type, convert_to_extended)
9455 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9456 (arm_extract_return_value, arm_register_name): Delete declarations.
9457 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9458 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9459 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9460 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9461 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9462 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9463 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9464 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9465 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9466 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9467 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9468 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9470 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9471 * remote-rdi.c remote-rdp.c: Likewise.
9472 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9473 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9474 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9477 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9478 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9479 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9480 from non-ARM_ prefixed definitions.
9481 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9483 * remote-rdi.c remote-rdp.c: Likewise.
9484 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9486 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9488 * arm-tdep.c (arm_frameless_function_invocation)
9489 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9490 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9491 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9492 (arm_pop_frame, arm_get_next_pc): Make static.
9493 (arm_gdbarch_init): Register above in gdbarch structure.
9494 (arm_read_fp): Renamed from arm_target_read_fp.
9495 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9496 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9497 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9498 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9499 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9500 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9501 (arm_pc_is_thumb_dummy): Delete declarations.
9502 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9503 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9504 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9505 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9507 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9509 * symtab.c (compare_search_syms): New function.
9510 (sort_search_symbols): New function.
9511 (search_symbols): Sort symbols after searching rather than
9514 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9516 * NEWS: Linux -> GNU/Linux.
9518 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9520 * gdbarch.sh: For for level one methods, disallow a definition
9521 when partially multi-arched. Add comments explaining rationale.
9522 * gdbarch.h: Re-generate.
9524 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9526 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9529 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9531 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9533 * gdbarch.c: Re-generate.
9535 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9537 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9538 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9541 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9543 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9545 (PUSH_ARGUMENTS): Switch to using predefault.
9546 * gdbarch.c: Regenerate.
9548 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9550 * valops.c (PUSH_ARGUMENTS): Delete definition.
9551 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9552 partial. Default to default_push_arguments.
9553 * gdbarch.h, gdbarch.c: Regenerate.
9555 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9557 * defs.h (throw_exception): Rename return_to_top_level. Update
9559 * utils.c (error_stream, internal_verror, quit): Ditto.
9560 * top.c (throw_exception, catcher): Ditto.
9561 * sparclet-rom.c (sparclet_load): Ditto.
9562 * remote.c (interrupt_query, minitelnet): Ditto.
9563 * remote-sds.c (interrupt_query): Ditto.
9564 * remote-mips.c (mips_error, mips_kill): Ditto.
9565 * ocd.c (interrupt_query): Ditto.
9566 * monitor.c (monitor_interrupt_query): Ditto.
9567 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9568 * target.h: Update comment.
9570 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9572 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9574 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9575 default_double_format.
9576 * gdbarch.h, gdbarch.c: Re-generate.
9577 * findvar.c (floatformat_unknown): Delete variable definition.
9578 * doublest.h (floatformat_unknown): Delete variable declaration.
9580 2002-02-09 Jim Blandy <jimb@redhat.com>
9582 * stabsread.c (read_type): Add code to parse Sun's syntax for
9583 prototyped function types.
9585 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9587 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9588 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9590 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9592 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9593 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9594 now _initialize_xcoffsolib gets called again and overrides the
9595 commands from solib.c in a native configuration.
9597 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9599 * doublest.c (store_typed_floating): Don't try to return a value.
9602 2002-02-08 Jim Blandy <jimb@redhat.com>
9604 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9605 is prototyped and has no arguments, print its argument list as
9608 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9610 * MAINTAINERS (write-after-approval): Add myself.
9611 (paper-trail): I've escaped!
9613 2002-02-08 Christopher Faylor <cgf@redhat.com>
9615 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9617 (_initialize_check_for_gdb_ini): Ditto.
9619 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9621 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9622 xaprintf -> xasprintf.
9624 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9626 * win32-nat.c: Remove use of printf and sprintf functions.
9628 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9630 * arm-tdep.c (arm_frame_chain_valid): Make static.
9631 (arm_push_arguments): Likewise.
9632 (arm_gdbarch_init): New function.
9633 (_initialize_arm_tdep): Call it.
9634 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9635 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9636 (FRAME_CHAIN_VALID): Delete.
9637 (arm_frame_chain_valid): Delete declaration.
9638 (PUSH_ARGUMENTS): Delete.
9639 (arm_push_arguments): Delete declaration.
9640 (CALL_DUMMY_P): Delete.
9642 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9643 Corinna Vinschen <vinschen@redhat.com>
9645 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9646 on builtin float types.
9648 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9650 * utils.c: Include <curses.h> before "bfd.h".
9651 * tui/tui-hooks.c: Likewise.
9652 * tui/tui.c: Likewise.
9653 * tui/tuiCommand.c: Likewise.
9654 * tui/tuiData.c: Likewise.
9655 * tui/tuiDataWin.c: Likewise.
9656 * tui/tuiDisassem.c: Likewise.
9657 * tui/tuiGeneralWin.c: Likewise.
9658 * tui/tuiIO.c: Likewise.
9659 * tui/tuiLayout.c: Likewise.
9660 * tui/tuiRegs.c: Likewise.
9661 * tui/tuiSource.c: Likewise.
9662 * tui/tuiSourceWin.c: Likewise.
9663 * tui/tuiStack.c: Likewise.
9664 * tui/tuiWin.c: Likewise.
9666 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9668 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9669 to include space for pseudoregs as well. Update loops accordingly.
9670 (sh_fp_frame_init_saved_regs): Ditto.
9671 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9673 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9675 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9676 Add Richard Earnshaw to Arm maintainers.
9678 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9680 * defs.h (warning_begin): Delete declaration.
9682 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9685 2002-02-07 Michael Snyder <msnyder@redhat.com>
9687 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9688 Logic bug, remove misplaced else.
9690 2002-02-07 Klee Dienes <klee@apple.com>
9692 * fork-inferior.c (fork_inferior): Add '!' to the list of
9693 characters that need to be quoted when building a string for the
9694 shell. Quote '!' specifically with a backslash, since CSH chokes
9695 when trying to evaluate "str!str".
9697 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9699 * rdi-share/host.h: Only provide a typedef for bool if it is not
9702 2002-02-04 Michael Snyder <msnyder@redhat.com>
9704 * breakpoint.h (enum bptype): Add new overlay event bp type.
9705 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9707 * breakpoint.c (create_internal_breakpoint): New function.
9708 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9709 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9710 (create_thread_event_breakpoint): Ditto.
9711 (create_solib_event_breakpoint): Ditto.
9712 (create_overlay_event_breakpoint): New function.
9713 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9714 (update_breakpoints_after_exec): Delete and re-initialize
9715 overlay event breakpoints after an exec. Add FIXME comment
9716 about longjmp breakpoint.
9717 (print_it_typical): Ignore overlay event breakpoints.
9718 (print_one_breakpoint): Ditto.
9720 (bpstat_what): Do not stop for overlay event breakpoints.
9721 (delete_breakpoint): Don't delete overlay event breakpoints.
9722 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9723 (breakpoint_re_set): Re-create overlay event breakpoint.
9725 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9726 (overlay_manual_command): Disable overlay breakpoints.
9727 (overlay_off_command): Disable overlay breakpoints.
9729 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9731 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9732 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9733 to here from config/tm-arm.h.
9734 (coff_sym_is_thumb): Make static.
9735 (arm_elf_make_msymbol_special): New function.
9736 (arm_coff_make_msymbol_special): New function.
9737 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9738 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9739 (coff_sym_is_thumb): Delete declaration.
9740 (arm_elf_make_msymbol_special): Declare.
9741 (arm_coff_make_msymbol_special): Declare.
9742 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9743 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9745 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9747 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9749 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9751 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9752 * gdbarch.c gdbarch.h: Regenerate.
9753 * arch-utils.c (default_print_float_info): New function.
9754 * arch-utils.h (default_print_float_info): Prototype it.
9755 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9756 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9757 (PRINT_FLOAT_INFO): Document it.
9759 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9760 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9761 (PRINT_FLOAT_INFO): Define.
9763 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9765 * win32-nat.c (_initialize_check_for_gdb_ini):
9766 Add typecast to sprintf argument to suppress a warning.
9768 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9770 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9771 to allow easier handling of pass state.
9772 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9773 that gives exception name and address.
9774 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9775 and set last_sig value to ourstatus->value.sig. Some missing
9777 (child_continue): Correctly report continue_status.
9778 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9779 TARGET_SIGNAL_0 (new default value).
9780 (child_resume): consider sig argument passed to decide if
9781 the exception should be passed to debuggee or not.
9783 2002-02-05 Michael Snyder <msnyder@redhat.com>
9785 * regcache.c (fetch_register): Call target_fetch_register
9786 only if we don't call FETCH_PSEUDO_REGISTER.
9787 (store_register): Call target_store_register only if we
9788 don't call STORE_PSEUDO_REGISTER.
9790 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9792 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9793 ELF_MAKE_MSYMBOL_SPECIAL.
9794 * gdbarch.c, gdbarch.h: Regenerate.
9795 * arch-utils.c (default_make_msymbol_special): New function.
9796 * arch-utils.h (default_make_msymbol_special): Export.
9797 * elfread.c (elf_symtab_read): Compile use of
9798 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9800 * coffread.c (coff_symtab_read): Ditto, for
9801 COFF_MAKE_MSYMBOL_SPECIAL.
9803 2002-02-05 Jim Blandy <jimb@redhat.com>
9805 * solib-svr4.c (svr4_truncate_ptr): New function.
9806 (svr4_relocate_section_addresses): Do the address arithmetic with
9807 the appropriate truncation for target addresses, even when
9808 CORE_ADDR is larger than a target address.
9810 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9812 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9815 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9817 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9820 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9822 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9824 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9826 * gdbserver/linux-low.c: Remove unused include files.
9828 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9830 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9831 (read_inferior_memory): Use it.
9832 (write_inferior_memory): Likewise.
9834 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9836 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9837 grubbing through sys_errlist.
9839 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9841 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9843 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9844 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9846 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9848 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9849 (do_sfunc, set_cmd_sfunc): New functions.
9851 * command.h (struct cmd_list_element): Add field func.
9852 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9853 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9854 * cli/cli-decode.h: Ditto.
9856 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9857 (help_all, help_cmd_list): Ditto.
9858 (find_cmd, complete_on_cmdlist): Ditto.
9859 * top.c (execute_command): Ditto.
9861 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9864 * infcmd.c (notice_args_read): Fix function signature.
9866 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9867 * cli/cli-decode.c (add_set_cmd): Ditto.
9868 * utils.c (initialize_utils): Ditto.
9869 * maint.c (_initialize_maint_cmds): Ditto.
9870 * infrun.c (_initialize_infrun): Ditto.
9871 * demangle.c (_initialize_demangler): Ditto.
9872 * remote.c (add_packet_config_cmd): Ditto.
9873 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9874 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9875 * proc-api.c (_initialize_proc_api): Ditto.
9876 * kod.c (_initialize_kod): Ditto.
9877 * valprint.c (_initialize_valprint): Ditto.
9878 * top.c (init_main): Ditto.
9879 * infcmd.c (_initialize_infcmd): Ditto.
9880 * corefile.c (_initialize_core): Ditto.
9881 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9882 * arch-utils.c (initialize_current_architecture): Ditto.
9883 (_initialize_gdbarch_utils): Ditto.
9884 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9886 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9887 * wince.c (_initialize_inftarg): Ditto.
9888 * symfile.c (_initialize_symfile): Ditto.
9889 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9890 * language.c (_initialize_language): Ditto.
9891 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9893 2002-02-04 Michael Snyder <msnyder@redhat.com>
9895 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9897 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9899 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9900 Add rules for building the register data files.
9902 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9904 * regformats/regdat.sh: Add braces to the definition of
9905 expedite_regs_${arch}.
9907 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9909 * regformats/regdef.h (struct reg): Add comment describing the
9910 requirements for offset and size fields.
9912 2002-02-04 Andreas Schwab <schwab@suse.de>
9914 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9915 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9917 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9919 * gdbarch.sh (copyright): Update years in generated header.
9920 (SMASH_TEXT_ADDRESS): Add rule.
9921 * gdbarch.h, gdbarch.c: Re-generate.
9922 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9923 * dbxread.c: Likewise.
9924 * dwarfread.c: Likewise.
9925 * elfread.c: Likewise.
9926 * somread.c: Likewise.
9928 * arm-tdep.c (arm_smash_text_address): New function.
9929 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9931 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9933 Add support for hardware watchpoints on win32 native.
9934 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9935 CONTEXT_DEBUG_REGISTERS.
9936 (dr variable): New variable. Static array containing a local copy
9938 (debug_registers_changed): New variable. Reflects when debug registers
9939 are changed and need to be written to inferior.
9940 (debug_registers_used): New variable. Reflects when any debug register
9941 was set, used when new threads are created.
9942 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9944 (thread_rec): Set dr array if id is the thread of current_event .
9945 (child_continue, child_resume): Change the debug registers for all
9946 threads if debug_registers_changed.
9947 (child_add_thread): Change the debug registers if debug_registers_used.
9948 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9949 Link nm.h to new nm-cygwin.h file.
9950 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9951 of hardware registers.
9953 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9955 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9956 Restore behavour broken by 2002-01-20 Andrew Cagney
9957 <ac131313@redhat.com> IEEE_FLOAT removal.
9959 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9961 * c-valprint.c (c_val_print): Pass a proper valaddr to
9962 cp_print_class_method.
9963 * valops.c (search_struct_method): If there is only one method
9964 and args is NULL, return that method.
9966 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9968 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9969 accessing tag_name directly.
9971 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9973 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9974 of accessing tag_name directly.
9976 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9979 * gdbtypes.c (replace_type): New function.
9980 * gdbtypes.h (replace_type): Add prototype.
9981 * stabsread.c (read_type): Use replace_type.
9983 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9985 * Makefile.in (memattr.o): Add missing dependencies rule.
9987 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9989 * breakpoint.c (break_at_finish_command): Really export.
9990 (break_at_finish_at_depth_command): Ditto.
9991 (tbreak_at_finish_command): Ditto.
9992 * hppa-tdep.c: Include completer.h.
9993 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9994 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9996 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9998 * utils.c (do_write): New function.
9999 (error_stream): Rewrite combining the code from error_begin and
10001 (verror): Rewrite using error_stream.
10002 (error_begin): Delete function.
10004 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10006 * utils.c (error_begin): Make static.
10007 * defs.h (error_begin): Delete declaration.
10009 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10010 (decode_line_1): Use cplusplus_error instead of error_begin,
10011 cplusplus_hint and return_to_top_level.
10012 * coffread.c (coff_symfile_read): Use error instead of error_begin
10013 and return_to_top_level.
10014 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10016 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10018 * language.h (type_error, range_error): Make string parameter
10020 * language.c (warning_pre_print): Delete extern declaration.
10021 * dwarfread.c (warning_pre_print): Ditto.
10022 * language.c (type_error, range_error): Rewrite to use verror and
10023 vwarning instead of warning_begin.
10025 2002-02-01 Michael Snyder <msnyder@redhat.com>
10027 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10028 (set_ignore_count): Move misplaced comment back where it belongs.
10030 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10032 * command.h (NO_FUNCTION): Delete macro.
10033 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10034 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10035 * tracepoint.c (_initialize_tracepoint): Ditto.
10036 * cli/cli-decode.c (add_set_cmd): Ditto.
10037 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10039 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10041 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10042 Update ``this'' pointer when calling virtual functions.
10044 2002-02-01 Michael Snyder <msnyder@redhat.com>
10046 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10047 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10049 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10051 * regformats/reg-arm.dat: New file.
10052 * regformats/reg-i386.dat: New file.
10053 * regformats/reg-ia64.dat: New file.
10054 * regformats/reg-m68k.dat: New file.
10055 * regformats/reg-mips.dat: New file.
10056 * regformats/reg-ppc.dat: New file.
10057 * regformats/reg-sh.dat: New file.
10058 * regformats/regdef.h: New file.
10059 * regformats/regdat.sh: New file.
10061 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10063 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10064 (arm_frame_args_address, arm_frame_locals_address): New functions.
10065 (arm_frame_num_args): New function.
10066 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10067 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10068 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10070 2002-01-31 Michael Snyder <msnyder@redhat.com>
10072 * breakpoint.c (break_at_finish_command): Export.
10073 (break_at_finish_at_depth_command): Export.
10074 (tbreak_at_finish_command): Export.
10075 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10076 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10077 "tbreak" commands, which are HPPA specific.
10079 * printcmd.c (disassemble_command): Remove an ancient
10080 artifact of an old merge.
10082 * symfile.h (enum overlay_debugging_state):
10083 Define enum constant values for overlay mode.
10084 * symfile.c (overlay_debugging): Use enums instead of literals.
10085 (overlay_is_mapped, overlay_auto_command,
10086 overlay_manual_command): Ditto.
10088 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10089 breakpoint_here_p, breakpoint_inserted_here_p,
10090 breakpoint_thread_match, bpstat_stop_status,
10091 describe_other_breakpoints, check_duplicates, clear_command):
10092 Coding standard fixes.
10094 * target.c (target_xfer_memory): Add spaces, coding standard.
10095 (do_xfer_memory): Add missing line to trust-readonly
10096 code: check bfd SEC_READONLY flag for section.
10098 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10100 * PROBLEMS: Fix typo, 5.1->5.1.1.
10102 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10104 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10105 data symbols, since we search based on textlow and texthigh.
10106 (find_pc_sect_symtab): Likewise.
10108 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10110 * defs.h (vwarning): Declare.
10111 * utils.c (vwarning): New function.
10112 (warning): Call vwarning.
10113 (warning_begin): Delete function.
10115 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10116 the warning message.
10117 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10120 2002-01-30 Michael Snyder <msnyder@redhat.com>
10122 * NEWS: Mention "set trust-readonly-sections" command.
10123 Mention generate-core-file command.
10125 2002-01-15 Michael Snyder <msnyder@redhat.com>
10127 * target.c: New command, "set trust-readonly-sections on".
10128 (do_xfer_memory): Honor the suggestion to trust readonly sections
10129 by reading them from the object file instead of from the target.
10130 (initialize_targets): Register command "set trust-readonly-sections".
10132 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10134 * parse.c (target_map_name_to_register): Simplify, search regs and
10135 pseudo-regs using a single loop.
10137 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10139 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10141 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10143 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10144 * config/i386/i386v42mp.mh: Add i387-nat.o .
10145 * i386v4-nat.c: Include i387-nat.h.
10146 (supply_fpregset): Use i387_supply_fsave.
10147 (fill_fpregset): Use i387_fill_fsave.
10149 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10151 * arm-tdep.c (arm_call_dummy_words): Define.
10152 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10153 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10154 (CALL_DUMMY_WORDS): Define.
10155 (arm_call_dummy_words): Declare.
10156 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10157 (arm_linux_call_dummy_words): Declare.
10159 2002-01-30 Andreas Schwab <schwab@suse.de>
10161 * m68klinux-nat.c: Fix last change to use regcache_collect
10162 instead of referencing registers[] directly.
10164 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10166 * parse.c (target_map_name_to_register): Delete code wrapped in
10167 #ifdef REGISTER_NAME_ALIAS_HOOK.
10169 2002-01-28 Michael Snyder <msnyder@redhat.com>
10171 * regcache.c (legacy_read_register_gen): Need to be able to
10172 read pseudo-register as well as real register.
10173 (legacy_write_register_gen): Ditto.
10175 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10177 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10178 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10179 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10180 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10181 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10182 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10183 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10184 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10185 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10186 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10187 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10188 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10189 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10190 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10191 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10192 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10193 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10194 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10195 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10196 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10198 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10200 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10201 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10202 (initialize_current_architecture): Update target_byte_order using
10203 information from BFD.
10204 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10205 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10207 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10209 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10210 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10212 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10213 #ifdef INVALID_FLOAT.
10214 * infcmd.c (do_registers_info): Ditto.
10215 * values.c (unpack_double): Ditto. Add comment.
10217 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10218 already commented out.
10220 2002-01-26 Andreas Schwab <schwab@suse.de>
10222 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10223 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10224 registers and add support for PTRACE_GETREGS.
10226 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10228 GDB 5.1.1 released from 5.1 branch.
10229 * NEWS: Add 5.1.1 news.
10230 * README: Sync with 5.1 branch.
10232 2002-01-23 Fred Fish <fnf@redhat.com>
10234 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10235 stabstring on initial malloc. Reallocing will copy it for us,
10238 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10240 * Makefile.in (hpread_h): Delete.
10241 (HFILES_NO_SRCDIR): Remove hpread.h.
10242 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10243 (hpread.o): Update dependencies.
10244 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10246 * hp-psymtab-read.c: Remove file.
10247 * hp-symtab-read.c: Remove file.
10248 * hpread.h: Remove file.
10250 * hpread.c: Merge all contents of hp-psymtab-read.c,
10251 hp-symtab-read.c and hpread.h into this file, as it was prior to
10254 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10255 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10256 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10257 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10259 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10261 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10262 fill_gregset): Call gdbarch_tdep() just once, assign result to
10263 variable and use that, instead of calling the function several
10266 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10268 * configure.host: Accept sparcv9 as alias for sparc64.
10269 * configure.tgt: Likewise.
10271 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10273 * solib-aix5.c (build_so_list_from_mapfile)
10274 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10275 arguments is not reversed.
10276 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10277 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10279 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10281 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10282 modified version of obsolete sh_fetch_pseudo_register.
10283 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10284 (sh4_register_read): New function.
10285 (sh_pseudo_register_write): New function. Renamed and modified
10286 version of obsolete sh_store_pseudo_register.
10287 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10288 (sh4_register_write): New function.
10289 (sh_gdbarch_init): Remove setting of gdbarch function
10290 fetch_pseudo_register and store_pseudo_register. Remove setting of
10291 register_convert_to_raw, register_convert_to_virtual,
10292 register_convertible.
10293 (sh_sh4_register_convertible): Delete. No longer needed. All is
10294 taken care by architecture specific functions
10295 register_read/register_write.
10296 (sh_sh4_register_convert_to_virtual): Make static.
10297 (sh_sh4_register_convert_to_raw): Ditto.
10299 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10301 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10302 (floatformat_is_nan, floatformat_mantissa): Ditto.
10304 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10305 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10306 builtin_type_ieee_double_little,
10307 builtin_type_ieee_double_littlebyte_bigword,
10308 builtin_type_m68881_ext, builtin_type_i960_ext,
10309 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10310 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10311 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10312 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10314 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10316 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10317 parameter. Set frameless flag if it exists and depended of
10318 whether the scanned function is frameless or not.
10319 (xstormy16_skip_prologue): If function is frameless, return
10320 result of xstormy16_scan_prologue().
10321 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10324 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10326 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10327 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10328 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10329 sh_sh4_register_byte, sh_sh4_register_raw_size,
10330 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10331 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10332 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10333 sh_store_pseudo_register, sh_do_pseudo_register): Call
10334 gdbarch_tdep() just once, assign result to variable and use that,
10335 instead of calling the function several times.
10337 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10339 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10340 macros instead of LAST_FPU_CTRL_REGNUM.
10341 (store_register): Likewise.
10343 2002-01-21 Jim Blandy <jimb@redhat.com>
10345 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10346 is up-to-date before running the program, not just when a program
10349 2002-01-21 Fred Fish <fnf@redhat.com>
10351 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10352 when we have found all instructions we are looking for.
10354 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10356 * arm-tdep.c (arm_register_name): New function.
10357 (arm_registers_names): Make static.
10358 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10359 (arm_register_name): Declare.
10360 (REGISTER_NAME): Use it.
10362 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10363 Kevin Buettner <kevinb@redhat.com>
10365 Convert arm targets to new FRAME interface.
10366 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10367 (arm_frame_find_save_regs): Delete.
10368 (arm_frame_init_saved_regs): New.
10369 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10370 Allocate extra_info as required. Convert all uses of fsr.regs
10371 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10373 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10374 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10375 (check_prologue_cache, save_prologue_cache): Likewise.
10376 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10377 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10378 (FRAME_FIND_SAVED_REGS): Delete.
10379 (arm_frame_find_saved_regs): Delete prototype.
10380 (arm_frame_init_saved_regs): New prototype.
10381 (FRAME_INIT_SAVED_REGS): Define.
10383 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10385 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10387 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10389 From Jeff Law <law@redhat.com>:
10390 * infttrace.c: Include <sys/pstat.h>.
10391 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10392 exec file if the ttrace equivalent fails.
10394 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10396 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10397 (closeLogFile): Ditto.
10399 2002-01-20 Michael Chastain <mec@shout.net>
10401 * top.c (print_gdb_version): Bump copyright year to 2002.
10403 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10405 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10406 Zannoni and Eli Zaretskii.
10408 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10410 * buildsym.c: Update copyright years.
10411 * c-typeprint.c: Likewise.
10412 * dwarf2read.c: Likewise.
10413 * f-typeprint.c: Likewise.
10414 * gdbtypes.c: Likewise.
10415 * gdbtypes.h: Likewise.
10416 * hp-symtab-read.c: Likewise.
10417 * hpread.c: Likewise.
10418 * mdebugread.c: Likewise.
10419 * p-typeprint.c: Likewise.
10421 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10423 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10424 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10425 byte-order selectable.
10426 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10427 * arch-utils.c: Ditto.
10428 (set_endian): Ditto.
10429 (set_endian_from_file): Ditto.
10430 * gdbserver/low-sim.c (create_inferior): Ditto.
10431 * gdbarch.sh: Ditto.
10432 * gdbarch.h: Re-generate.
10433 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10434 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10435 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10436 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10437 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10438 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10439 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10440 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10442 * config/mips/tm-wince.h: Remove #undef of macro
10443 TARGET_BYTE_ORDER_SELECTABLE.
10444 * config/sh/tm-wince.h: Ditto.
10446 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10448 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10449 member function fields. Add accessor macro
10450 TYPE_FN_FIELD_ARTIFICIAL.
10451 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10452 * c-typeprint.c (c_type_print_base): Skip artificial member
10455 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10457 * f-typeprint.c: Delete unused function f_type_print_args.
10458 * p-typeprint.c: Delete unused function pascal_type_print_args.
10460 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10462 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10463 comment. Add ``artificial'' to ``union field_location''.
10465 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10467 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10468 * mdebugread.c (parse_symbol): Likewise.
10469 * stabsread.c (define_symbol): Likewise.
10470 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10471 initializing TYPE_FIELD_BITPOS to n (obsolete).
10472 (hpread_doc_function_type): Likewise.
10473 * hpread.c (hpread_function_type): Likewise.
10475 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10477 * configure.in (host_makefile_frag): Only require a host makefile
10478 fragment when a native build.
10479 * configure: Re-generate.
10481 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10483 * doublest.h (floatformat_from_type): Declare.
10484 * doublest.c (floatformat_from_type): New function.
10485 (convert_typed_floating): Use.
10487 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10488 call to function floatformat_from_type.
10490 * gdbarch.sh (IEEE_FLOAT): Delete.
10491 * gdbarch.h, gdbarch.c: Re-generate.
10492 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10493 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10494 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10495 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10496 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10497 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10498 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10499 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10500 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10501 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10502 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10503 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10505 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10506 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10507 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10508 * sh-tdep.c (sh_gdbarch_init): Ditto.
10509 * mips-tdep.c (mips_gdbarch_init): Ditto.
10510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10511 * cris-tdep.c (cris_gdbarch_init): Ditto.
10513 2002-01-20 Jiri Smid <smid@suse.cz>
10515 * configure.host, configure.tgt: Support x86-64.
10516 * NEWS: Note new target x86-64.
10518 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10519 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10520 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10521 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10522 x86-64-linux-nat.o): Fix dependencies.
10524 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10526 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10527 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10528 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10529 * config/sparc/xm-sun4os4.h: Delete file.
10530 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10532 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10534 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10535 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10536 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10537 * config/i386/i386lynx.mh (XM_FILE): Delete.
10538 * config/rs6000/xm-rs6000ly.h: Delete file.
10539 * config/sparc/xm-sparclynx.h: Delete file.
10540 * config/m68k/xm-m68klynx.h: Delete file.
10541 * config/i386/xm-i386lynx.h: Delete file.
10542 * config/xm-lynx.h: Delete file.
10543 * config/djgpp/fnchange.lst: Update.
10545 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10547 * alpha-tdep.c (alpha_register_byte): New function.
10548 (alpha_register_raw_size): Ditto.
10549 (alpha_register_virtual_size): Ditto.
10550 (alpha_skip_prologue_internal): Renamed from
10551 alpha_skip_prologue.
10552 (alpha_skip_prologue): New version that calls
10553 alpha_skip_prologue_internal.
10554 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10555 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10556 second argument from alpha_skip_prologue.
10557 (REGISTER_BYTE): Use alpha_register_byte.
10558 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10559 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10560 (FRAMELESS_FUNCTION_INVOCATION): Use
10561 generic_frameless_function_invocation_not.
10562 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10563 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10565 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10567 * config/mips/xm-news-mips.h: Delete file.
10568 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10570 * config/m88k/xm-m88k.h: Delete file.
10571 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10572 * config/m88k/xm-delta88v4.h: Ditto.
10573 * config/m88k/xm-delta88.h: Ditto.
10575 * config/alpha/xm-fbsd.h: Delete file.
10576 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10578 * config/sparc/xm-sparc.h: Delete file.
10579 * Makefile.in (xm-sun4os4.h): Delete dependency.
10580 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10581 * config/sparc/xm-sun4os4.h: Ditto.
10582 * config/sparc/xm-linux.h: Ditto.
10584 * config/i386/xm-windows.h: Delete file.
10586 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10588 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10589 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10591 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10593 * alpha-tdep.c (alpha_call_dummy_words): New.
10594 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10595 (CALL_DUMMY_P): Define.
10596 (CALL_DUMMY_WORDS): Define.
10597 (SIZEOF_CALL_DUMMY_WORDS): Define.
10599 2002-01-19 Per Bothner <per@bothner.com>
10601 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10602 isn't NULL, which can happen with some gcj-3.x-produced code.
10604 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10606 * alpha-tdep.c (alpha_register_virtual_type): New function.
10607 (alpha_init_frame_pc_first): Ditto.
10608 (alpha_fix_call_dummy): Ditto.
10609 (alpha_store_struct_return): Ditto.
10610 (alpha_extract_struct_value_address): Ditto.
10611 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10612 alpha_register_virtual_type.
10613 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10614 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10615 alpha_extract_struct_value_address.
10616 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10617 (INIT_FRAME_PC): Use init_frame_pc_noop.
10618 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10620 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10622 * i386gnu-nat.c: Include "i386-tdep.h".
10623 (fetch_fpregs): Simplify code dealing with uninitialized floating
10624 point states such that it doesn't require FP7_REGNUM.
10626 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10628 * alpha-tdep.c (frame_extra_info): New.
10629 (alpha_find_saved_regs): Make static. Use
10631 (alpha_frame_init_saved_regs): New function.
10632 (alpha_frame_saved_pc): Use frame->extra_info.
10633 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10634 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10635 (init_extra_frame_info): Rename to...
10636 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10637 (alpha_print_extra_frame_info): New function.
10638 (alpha_frame_locals_address): Ditto.
10639 (alpha_frame_args_address): Ditto.
10640 (alpha_pop_frame): Use frame->extra_info.
10641 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10642 alpha_frame_args_address.
10643 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10644 (alpha_find_saved_regs): Remove prototype.
10645 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10646 (EXTRA_FRAME_INFO): Remove.
10647 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10648 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10650 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10652 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10653 (alpha_cannot_fetch_register): Ditto.
10654 (alpha_cannot_store_register): Ditto.
10655 (alpha_register_convertible): Ditto.
10656 (alpha_use_struct_convention): Ditto.
10657 * config/alpha/tm-alpha.h: Update copyright years.
10658 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10659 (INNER_THAN): Use core_addr_lessthan.
10660 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10661 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10662 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10663 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10664 (FRAME_CHAIN): Remove unnecessary cast.
10666 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10668 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10671 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10673 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10674 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10675 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10676 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10677 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10678 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10679 * x86-64-linux-nat.c: Ditto.
10681 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10683 * alpha-tdep.c (alpha_register_name): New function.
10684 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10685 (REGISTER_NAME): Define.
10687 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10689 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10691 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10693 * alpha-tdep.c: Update copyright years.
10694 (alpha_next_pc): New function.
10695 (alpha_software_single_step): Ditto.
10696 * config/alpha/tm-alpha.h: Add prototype for
10697 alpha_software_single_step.
10699 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10701 * alphabsd-nat.c: Update copyright years.
10702 (fill_gregset): Use regcache_collect.
10703 (fill_fpregset): Likewise.
10704 (fetch_inferior_registers): Only fetch integer registers
10705 if requested to do so.
10706 (store_inferior_registers): Only store integer registers
10707 if requested to do so.
10709 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10711 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10712 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10713 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10714 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10715 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10716 * config/arm/linux.mh (XDEPFILES): Delete.
10717 * config/arm/nbsd.mh (XDEPFILES): Delete.
10718 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10719 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10720 * config/i386/i386m3.mh (XDEPFILES): Delete.
10721 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10722 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10723 * config/i386/fbsd.mh (XDEPFILES): Delete.
10724 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10725 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10726 * config/i386/i386v4.mh (XDEPFILES): Delete.
10727 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10728 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10729 * config/i386/i386aix.mh (XDEPFILES): Delete.
10730 * config/i386/go32.mh (XDEPFILES): Delete.
10731 * config/i386/cygwin.mh (XDEPFILES): Delete.
10732 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10733 * config/i386/i386mach.mh (XDEPFILES): Delete.
10734 * config/i386/i386v32.mh (XDEPFILES): Delete.
10735 * config/i386/linux.mh (XDEPFILES): Delete.
10736 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10737 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10738 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10739 * config/i386/i386sco.mh (XDEPFILES): Delete.
10740 * config/i386/i386v.mh (XDEPFILES): Delete.
10741 * config/i386/nbsd.mh (XDEPFILES): Delete.
10742 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10743 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10744 * config/i386/symmetry.mh (XDEPFILES): Delete.
10745 * config/i386/obsd.mh (XDEPFILES): Delete.
10746 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10747 * config/ia64/linux.mh (XDEPFILES): Delete.
10748 * config/ia64/aix.mh (XDEPFILES): Delete.
10749 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10750 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10751 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10752 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10753 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10754 * config/m68k/linux.mh (XDEPFILES): Delete.
10755 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10756 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10757 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10758 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10759 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10760 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10761 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10762 * config/m88k/delta88.mh (XDEPFILES): Delete.
10763 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10764 * config/m88k/m88k.mh (XDEPFILES): Delete.
10765 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10766 * config/mips/linux.mh (XDEPFILES): Delete.
10767 * config/mips/irix6.mh (XDEPFILES): Delete.
10768 * config/mips/irix5.mh (XDEPFILES): Delete.
10769 * config/mips/irix4.mh (XDEPFILES): Delete.
10770 * config/mips/irix3.mh (XDEPFILES): Delete.
10771 * config/mips/decstation.mh (XDEPFILES): Delete.
10772 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10773 (NATDEPFILES): Move core-aout.o to here.
10774 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10775 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10776 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10777 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10778 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10779 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10780 * config/pa/hpux11.mh (XDEPFILES): Delete.
10781 * config/powerpc/aix.mh (XDEPFILES): Delete.
10782 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10783 * config/powerpc/linux.mh (XDEPFILES): Delete.
10784 * config/romp/rtbsd.mh: Rename XDEPFILES.
10785 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10786 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10787 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10788 * config/s390/s390.mh (XDEPFILES): Delete.
10789 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10790 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10791 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10792 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10793 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10794 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10795 * config/sparc/linux.mh (XDEPFILES): Delete.
10796 * config/vax/vaxult.mh (XDEPFILES): Delete.
10797 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10798 * Makefile.in (DEPFILES): Remove XDEPFILES.
10800 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10802 * utils.c (internal_verror): Fix comments, default is yes not no.
10803 Update queries to match. Default to quit and dump core.
10805 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10807 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10809 * defs.h, event-top.c, gdbcmd.h: Ditto.
10810 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10811 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10812 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10813 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10814 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10815 * mi/mi-main.c:Ditto.
10817 * stack.c, symfile.c: Update copyright.
10819 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10821 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10822 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10823 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10824 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10826 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10828 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10829 * gdbserver/low-lynx.c (myattach): Likewise.
10830 * gdbserver/low-nbsd.c (myattach): Likewise.
10831 * gdbserver/low-sim.c (myattach): Likewise.
10832 * gdbserver/low-sparc.c (myattach): Likewise.
10833 * gdbserver/low-sun3.c (myattach): Likewise.
10835 * gdbserver/low-linux.c (myattach): New function.
10837 * gdbserver/server.c (attach_inferior): New function.
10838 (main): Handle "--attach".
10840 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10842 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10845 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10847 * c-typeprint.c (is_type_conversion_operator): Add additional
10848 check for non-conversion operators.
10850 2002-01-15 Michael Snyder <msnyder@redhat.com>
10852 * linux-proc.c: Add "info proc" command, a la procfs.c.
10853 (read_mapping): New function, abstract and re-use code.
10854 (linux_find_memory_regions): Use new func read_mapping.
10855 (linux_info_proc_cmd): New function, implement "info proc".
10856 (_initialize_linux_proc): Add new command "info proc".
10858 2002-01-15 Michael Snyder <msnyder@redhat.com>
10860 * symfile.c (generic_load): Use bfd_map_over_sections method
10861 instead of manipulating bfd structure members directly.
10862 (add_section_size_callback): New function, bfd sections callback
10863 used by generic_load.
10864 (load_sections_callback): New function, bfd sections callback
10865 used by generic_load.
10867 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10869 [Based on work by Jim Blandy]
10870 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10871 (builtin_type_vec128): Export.
10872 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10874 (builtin_type_vec128): New builtin type for 128 bit vector
10876 (build_gdbtypes): Initialize builtin_type_v16qi and
10877 builtin_type_v8hi. Create the vec128 register builtin type
10879 (build_builtin_type_vec128): New function.
10880 (_initialize_gdbtypes): Register builtin_type_v16qi and
10881 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10882 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10883 AltiVec register to new builtin type.
10885 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10887 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10890 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10892 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10893 CLEAN_UP_REGISTER_VALUE.
10894 * regcache.c (supply_register): Update only call.
10896 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10898 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10899 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10900 a29k-*-vxworks* targets as obsolete.
10902 2002-01-14 Michael Snyder <msnyder@redhat.com>
10904 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10905 until we can resolve portability issues.
10906 * gregset.h: Remove references to fpxregs.
10907 * gcore.c (gcore_command): Initialize note_sec to NULL.
10909 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10911 * signals.c (target_signal_to_name): Rewrite. Only use
10912 signals[].name when in bounds and non-NULL.
10914 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10916 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10917 * signals.c (target_signal_to_name): Verify that SIG is within the
10918 bounds of the signals array.
10920 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10922 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10924 2002-01-13 Keith Seitz <keiths@redhat.com>
10926 * stack.c (print_frame_info_base): Print the frame's pc
10927 only if when print_frame_info_listing_hook is not defined.
10929 2002-01-13 Keith Seitz <keiths@redhat.com>
10931 * varobj.c (varobj_set_value): Make sure that there were no
10932 errors evaluating the object before attempting to set its
10934 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10935 so this offset adjustment is no longer necessary.
10936 (create_child): Don't set the error flag if the child is
10937 a CPLUS_FAKE_CHILD.
10938 (value_of_child): If value_fetch_lazy fails, return NULL
10939 so that callers will be notified that an error occurred.
10940 (c_value_of_variable): Delay check of variable's validity
10941 until later. We actually want all structs and unions to have
10943 Do not return "???" for variables which could not be evaluated.
10944 This error condition must be returned to the caller so that it
10945 can get the error condition from gdb.
10946 (cplus_name_of_child): Adjust index for vptr before figuring
10947 out the name of the child.
10948 (cplus_value_of_child): If a child's (real) parent is not valid,
10949 don't even bother trying to give a value for it. Just return
10950 an error. Change all instances in this function.
10951 (cplus_type_of_child): If our parent is one of the "fake"
10952 parents, we need to get at the type of the real parent, and
10953 derive the child's true type using this information.
10955 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10957 From 2002-01-09 John Marshall <johnm@falch.net>:
10958 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10959 sources.redhat.com, and tweak some related URLs which had
10960 suffered from linkrot.
10962 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10965 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10966 structures passed in registers.
10968 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10970 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10971 white space which prevented compilation. Reported by DSK
10972 <dsk@student.unsw.edu.au>.
10974 2002-01-11 Michael Snyder <msnyder@redhat.com>
10976 * symfile.c (build_section_addr_info_from_section_tab):
10977 Use bfd access method instead of manipulating bfd directly.
10978 (syms_from_objfile): Ditto.
10979 (simple_overlay_update_1): Ditto.
10980 (simple_overlay_update): Ditto.
10981 (generic_load): Ditto.
10982 (overlay_unmapped_address): FIXME comment, bfd access methods.
10983 (sections_overlap): FIXME comment, bfd access methods.
10984 (pc_in_mapped_range): FIXME comment, bfd access methods.
10985 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10986 (section_is_mapped): FIXME comment, bfd access methods.
10987 (section_is_overlay): FIXME comment, bfd access methods.
10989 * symfile.c (generic_load): Whitespace and long line cleanups.
10990 Remove duplicate variable, change several local variables to
10991 more appropriate data types.
10992 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10994 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10996 From Peter Schauer:
10997 * language.c (longest_local_hex_string_custom): Use phex_nz to
10998 convert NUM to a hex string.
11000 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11002 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11004 Update Copyright year.
11006 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11008 * language.c (longest_raw_hex_string): Delete unused function.
11010 2002-01-11 Petr Sorfa <petrs@caldera.com>
11012 * MAINTAINERS (write-after-approval): Add myself.
11013 * dwarf2read.c (read_tag_string_type): Handling of
11015 (read_tag_string_type): FORTRAN fix to prevent propagation of
11017 (set_cu_language): Handling of DW_LANG_Fortran95
11019 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11021 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11022 GETPID(inferior_ptid).
11023 (store_inferior_registers): Likewise.
11025 2002-01-10 Jason Merrill <jason@redhat.com>
11027 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11030 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11032 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11033 and bfd/elf32-sh-nbsd.c.
11035 2002-01-10 Michael Snyder <msnyder@redhat.com>
11037 * NEWS: Mention --pid and corefile/proc-id behavior change.
11039 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11040 * gcore.c: Include cli/cli-decode.h instead of command.h.
11042 * main.c (captured_main): Add new command line option "--pid".
11043 If the second command line argument (following the symbol-file)
11044 begins with a digit, try to attach to it before trying to open
11046 (print_gdb_help): Document the "--pid" argument.
11048 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11050 * completer.c (command_completer): New function.
11052 * completer.h <command_completer>: Add prototype.
11054 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11055 completer for the "help" command.
11057 2002-01-09 Jason Merrill <jason@redhat.com>
11059 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11061 2002-01-09 Michael Snyder <msnyder@redhat.com>
11063 * i386-linux-nat.c (fill_fpxregset): Make global.
11064 (store_fpxregset): Ditto.
11066 * gregset.h (gdb_fpxregset_t): Define.
11067 (supply_fpxregset): Prototype.
11068 (fill_fpxregset): Prototype.
11070 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11072 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11074 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11075 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11076 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11078 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11080 * MAINTAINERS: Update target maintainer rules so that any
11081 Maintainer can approve a tested patch for a maintenance-only
11084 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11086 * MAINTAINERS (write-after-approval): Add myself.
11088 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11091 2002-01-08 Michael Snyder <msnyder@redhat.com>
11093 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11094 real name of the executable, rather than the /proc name.
11096 2002-01-03 Michael Snyder <msnyder@redhat.com>
11098 Implement a "generate-core-file" command in gdb, save target state.
11099 * gcore.c: New file. Implement new command 'generate-core-file'.
11100 Save a corefile image of the current state of the inferior.
11101 * linux-proc.c: Add linux-specific code for saving corefiles.
11102 * target.h (struct target_ops): Add new target vectors for saving
11103 corefiles; to_find_memory_regions and to_make_corefile_notes.
11104 (target_find_memory_regions): New macro.
11105 (target_make_corefile_notes): New macro.
11106 * target.c (update_current_target): Inherit new target methods.
11107 (dummy_find_memory_regions): New place-holder method.
11108 (dummy_make_corefile_notes): New place-holder method.
11109 (init_dummy_target): Initialize new dummy target vectors.
11110 * exec.c (exec_set_find_memory_regions): New function.
11111 Allow the exec_ops vector for memory regions to be taken over.
11112 (exec_make_note_section): New function, target vector method.
11113 * defs.h (exec_set_find_memory_regions): Export prototype.
11114 * procfs.c (proc_find_memory_regions): New function, corefile method.
11115 (procfs_make_note_section): New function, corefile method.
11116 (init_procfs_ops): Set new target vector pointers.
11117 (find_memory_regions_callback): New function.
11118 (procfs_do_thread_registers): New function.
11119 (procfs_corefile_thread_callback): New function.
11120 * sol-thread.c (sol_find_memory_regions): New function.
11121 (sol_make_note_section): New function.
11122 (init_sol_thread_ops): Initialize new target vectors.
11123 * inftarg.c (inftarg_set_find_memory_regions): New function.
11124 Allow to_find_memory_regions vector to be taken over.
11125 (inftarg_set_make_corefile_notes): New function.
11126 Allow to_make_corefile_notes vector to be taken over.
11127 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11128 interface layer if not target_has_execution (may be a corefile).
11129 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11130 * config/sparc/sun4sol2.mh: Ditto.
11131 * config/alpha/alpha-linux.mh: Ditto.
11132 * config/arm/linux.mh: Ditto.
11133 * config/i386/x86-64linux.mh: Ditto.
11134 * config/ia64/linux.mh: Ditto.
11135 * config/m68k/linux.mh: Ditto.
11136 * config/mips/linux.mh: Ditto.
11137 * config/powerpc/linux.mh: Ditto.
11138 * config/sparc/linux.mh: Ditto.
11140 2002-01-07 Michael Snyder <msnyder@redhat.com>
11142 * arm-linux-nat.c: Remove references to regcache.c internal data
11143 (registers[] and register_valid[]).
11145 2002-01-07 Michael Snyder <msnyder@redhat.com>
11147 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11148 so that attaching to a pid will automatically read the process's
11149 symbol file and shlibs.
11150 * Makefile.in: Add rule for linux-proc.o.
11151 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11152 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11153 * config/arm/linux.mh: Ditto.
11154 * config/i386/linux.mh: Ditto.
11155 * config/i386/x86-64linux.mh: Ditto.
11156 * config/ia64/linux.mh: Ditto.
11157 * config/m68k/linux.mh: Ditto.
11158 * config/mips/linux.mh: Ditto.
11159 * config/powerpc/linux.mh: Ditto.
11160 * config/sparc/linux.mh: Ditto.
11162 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11164 * win32-nat.c: Add i386-tdep.h dependency.
11166 2002-01-07 Michael Snyder <msnyder@redhat.com>
11168 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11169 instead of bfd_get_arch_size. Don't bail out just because
11170 there's no exec_bfd.
11172 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11173 * p-valprint.c (pascal_object_print_value): Ditto.
11174 * somread.c (som_symtab_read): Ditto.
11175 * symfile.c (simple_free_overlay_region_table): Ditto.
11176 * valops.c (value_assign): Ditto.
11178 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11179 use tilde_expand and strerror for opening save-tracepoints file.
11181 * thread-db.c (thread_db_new_objfile): Indendation fix.
11183 * infptrace.c (GDB_MAX_ALLOCA): New define.
11184 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11185 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11186 can be overridden with whatever value is appropriate to the host).
11187 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11188 alloca to allocate potentially large buffer.
11189 * rs6000-nat.c (child_xfer_memory): Ditto.
11190 * symm-nat.c (child_xfer_memory): Ditto.
11191 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11193 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11195 From Nick Clifton <nickc@redhat.com>
11196 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11198 2002-01-07 Michael Snyder <msnyder@redhat.com>
11200 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11201 Don't use exec_bfd if it's NULL.
11203 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11205 * valops.c (value_arg_coerce): Fix formatting.
11207 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11209 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11210 * gnu-nat.c: Ditto.
11212 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11214 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11215 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11216 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11217 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11218 z8k-coff have not been multi-arched. Update z8k-coff build
11221 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11223 * MAINTAINERS: Mark a29k target as obsolete.
11224 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11225 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11227 * NEWS: Note that a29k targets are obsolete.
11228 * a29k-tdep.c: Mark as obsolete.
11229 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11230 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11231 a29k-*-vxworks* targets as obsolete.
11232 * remote-adapt.c: Obsolete.
11233 * remote-eb.c: Obsolete.
11234 * remote-mm.c: Obsolete.
11235 * remote-udi.c: Obsolete.
11236 * config/a29k/a29k-udi.mt: Obsolete.
11237 * config/a29k/a29k.mt: Obsolete.
11238 * config/a29k/tm-a29k.h: Obsolete.
11239 * config/a29k/tm-vx29k.h: Obsolete.
11240 * config/a29k/vx29k.mt: Obsolete.
11242 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11244 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11245 with BFD_ENDIAN_BIG.
11247 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11249 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11250 * configure, config.in: Re-generate.
11251 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11252 * defs.h: Do not include <endian.h>.
11254 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11256 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11257 * config.in: Regenerate.
11258 * configure.in: Update copyright years.
11259 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11260 * configure: Regenerate.
11261 * i386bsd-nat.c: Update copyright years.
11262 (fill_gregset): Use regcache_collect.
11263 (fetch_inferior_registers): Only fetch integer registers
11264 if requested to do so. Add support for XMM registers
11265 using PT_GETXMMREGS.
11266 (store_inferior_registers): Only store integer registers
11267 if requested to do so. Add support for XMM registers
11268 using PT_SETXMMREGS.
11269 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11270 (store_inferior_registers): Remove.
11271 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11272 (fetch_elfcore_registers): New function.
11273 (i386nbsd_elfcore_fns): New.
11274 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11275 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11277 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11278 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11279 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11280 * config/i386/tm-nbsd.h: Update copyright years.
11281 (HAVE_SSE_REGS): Define.
11282 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11283 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11284 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11285 (SIGCONTEXT_PC_OFFSET): Remove.
11286 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11288 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11290 * configure.tgt: Remove powerpc-*-macos* target.
11291 * config/m68k/xm-mpw.h: Delete file.
11292 * config/xm-mpw.h: Delete file.
11293 * ser-mac.c: Delete file.
11294 * mpw-make.sed: Delete file.
11295 * mpw-config.in: Delete file.
11296 * mac-xdep.c: Delete file.
11297 * mac-gdb.r: Delete file.
11298 * mac-defs.h: Delete file.
11299 * mac-nat.c: Delete file.
11300 * config/powerpc/macos.mh: Delete file.
11301 * config/powerpc/macos.mt: Delete file.
11302 * config/powerpc/nm-macos.h: Delete file.
11303 * config/powerpc/tm-macos.h: Delete file.
11304 * source.c (openp, open_source_file): Remove obsolete code.
11305 * top.c (gdb_readline): Ditto.
11306 * utils.c (query): Ditto.
11307 * event-top.c (display_gdb_prompt): Ditto.
11308 * Makefile.in (ser-mac.o): Delete obsolete target.
11311 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11313 * defs.h (BIG_ENDIAN): Delete macro definition.
11314 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11315 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11316 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11317 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11318 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11319 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11320 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11321 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11322 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11323 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11324 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11325 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11326 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11327 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11328 * gdbarch.c: Re-generate.
11330 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11332 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11335 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11337 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11339 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11341 * value.h (value_ptr): Delete typedef.
11343 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11345 * i386nbsd-nat.c: Update copyright years.
11346 Include i386-tdep.h.
11348 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11350 * stabsread.c: Update copyright years.
11352 From Debashis Mahata <debashis.mahata@wipro.com>:
11353 (read_struct_fields): Deal with Sun C compiler erroneous stab
11354 output for structs and unions.
11357 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11359 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11362 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11364 * cp-abi.c: Fix whitespace.
11365 (baseclass_offset): New wrapper function.
11366 * cp-abi.h (baseclass_offset): Add prototype.
11367 (struct cp_abi_ops): Add baseclass_offset pointer.
11369 * valops.c (vb_match): Move to...
11370 * gnu-v2-abi.c (vb_match): here.
11371 * valops.c (baseclass_offset): Move to...
11372 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11374 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11376 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11377 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11378 * hpacc-abi.c (init_hpacc_ops): Likewise.
11380 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11382 * valops.c (find_overload_match): Accept obj as a
11383 reference parameter. Update it before returning.
11384 * value.h (find_overload_match): Update prototype.
11385 * eval.c (evaluate_subexp_standard): Pass object to
11386 find_overload_match by reference.
11388 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11390 * valarith.c: Replace value_ptr with struct value pointer. Remove
11391 register attribute from value declarations.
11394 * scm-lang.c (scm_lookup_name): Ditto.
11396 2002-01-03 Michael Snyder <msnyder@redhat.com>
11398 Abstract the functionality of iterating over mapped memory
11399 regions into a general purpose iterator function.
11400 * procfs.c (iterate_over_mappings): New function, general purpose
11401 iterator for memory sections.
11402 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11403 (solib_mappings_callback): New function, callback for above.
11404 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11405 (info_mappings_callback): New function, callback for above.
11407 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11409 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11411 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11412 * i386-tdep.c: Include "elf-bfd.h".
11413 (process_note_abi_tag_sections): New function.
11414 (i386_gdbarch_init): Add code to recognize various OS/ABI
11417 * maint.c (_initialize_maint_cmds): Add missing \ in
11420 For older changes see ChangeLog-2001
11426 version-control: never