1 2002-09-30 David Carlton <carlton@math.stanford.edu>
3 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4 * ppc-sysv-tdep.c: #include "gdb_string.h".
5 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
8 2002-10-01 Andrew Cagney <ac131313@redhat.com>
10 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
11 "vrsave"'s register number.
13 2002-09-30 Andrew Cagney <ac131313@redhat.com>
15 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
16 use frame_unwind_signed_register to obtain the PC.
17 (mips_frame_chain): Handle a generic dummy frame.
18 (mips_init_extra_frame_info): When a generic dummy frame, don't
19 re-compute the frame base.
20 (mips_pop_frame): Handle generic dummy frames.
21 (mips_gdbarch_init): When generic dummy frames, set
22 use_generic_dummy_frames, push_dummy_frame to
23 generic_push_dummy_frame, pc_in_call_dummy to
24 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
25 generic_save_dummy_frame_tos.
27 2002-09-30 Andrew Cagney <ac131313@redhat.com>
29 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
30 against TOP when TOP was explictly set.
31 (generic_push_dummy_frame): Set TOP to zero.
33 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
35 * event-loop.c (start_event_loop): Rename variable 'result' to
36 'gdb_result', to avoid conflicts with upcoming intepreters changes.
38 2002-09-30 Keith Seitz <keiths@redhat.com>
40 * gdb-events.sh (selected_thread_changed): New event.
41 * gdb-events.c: Regenerated.
42 * gdb-events.h: Regenerated.
44 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
46 * MAINTAINERS: Add self to Write After Approval list.
48 2002-09-30 Fernando Nasser <fnasser@redhat.com>
52 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
53 (compare_lines): Ditto.
55 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
57 (do_assembly_only): Ditto.
58 (do_disassembly): Renamed to gdb_disassembly and moved to
59 disasm.c. Sdded uiout argument.
60 * Makefile.in: Add new files. Reorder SFILES list. Update
61 dependencies. Include libgdb.a later in the insight executable.
63 2002-09-29 Andrew Cagney <ac131313@redhat.com>
65 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
66 bfd/elf64-alpha-fbsd.c.
68 2002-09-29 Andrew Cagney <ac131313@redhat.com>
70 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
73 2002-09-29 Andrew Cagney <ac131313@redhat.com>
75 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
77 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
79 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
80 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
81 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
82 (S_msg_sig_post_reply): Ditto.
84 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
86 * sh-tdep.c (sh_use_struct_convention): Use definition according
88 (sh_push_arguments): Store in register with correct endianess.
89 (sh_default_store_return_value): Ditto.
90 (sh_gdbarch_init): Set sizeof long double to 8.
92 2002-09-27 Mark Kettenis <kettenis@gnu.org>
94 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
95 Fix some whitespace problems.
97 2002-09-27 David Carlton <carlton@math.stanford.edu>
99 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
100 (mcore-tdep.o): Ditto.
101 (ns32k-tdep.o): Ditto.
102 (ns32knbsd-tdep.o): Ditto.
105 * cris-tdep.c: #include "gdb_string.h"
106 * mcore-tdep.c: Ditto.
107 * ns32k-tdep.c: Ditto.
108 * ns32knbsd-tdep.c: Ditto.
112 2002-09-27 David Carlton <carlton@math.stanford.edu>
114 * config/djgpp/fnchange.lst: Add entries for
115 gdb/testsuite/gdb.c++/m-static files.
117 2002-09-27 Jim Wilson <wilson@redhat.com>
119 * MAINTAINERS: Add myself to the Write After Approval list.
121 2002-09-26 Martin M. Hunt <hunt@redhat.com>
123 * mips-tdep.c (find_proc_desc): Initialize startaddr.
126 2002-09-26 Andrew Cagney <ac131313@redhat.com>
128 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
131 2002-09-26 Andrew Cagney <ac131313@redhat.com>
133 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
134 (rs6000_struct_return_address): Delete variable.
135 (rs6000_store_struct_return): Update.
136 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
137 deprecated_extract_struct_value_address.
138 (rs6000_frame_align): New function.
139 (rs6000_gdbarch_init): Set frame_align.
141 2002-09-26 Andrew Cagney <ac131313@redhat.com>
143 From Grace Sainsbury <graces@redhat.com>:
144 * Makefile.in (gdbtk-main.o): New target.
147 (main.o): Update dependencies.
148 (gdb$(EXEEXT)): Add gdb.o.
149 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
150 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
151 (SUBDIR_GDBTK_CLEAN): Set.
152 (install-gdbtk): Install the insight binary.
153 (uninstall-gdbtk): New target.
154 (all-gdbtk, clean-gdbtk): New rule.
155 * top.c (use_windows): Default to zero.
156 * main.c: Include "main.h".
158 (struct captured_main_args): Delete.
159 (gdb_main): New function.
163 2002-09-25 Andrew Cagney <cagney@redhat.com>
165 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
166 (frame_map_regnum_to_name): New function.
167 (frame_map_name_to_regnum): New function.
168 * frame.h (frame_map_name_to_regnum): Declare.
169 (frame_map_regnum_to_name): Declare.
170 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
171 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
172 * parse.c: Do not include "builtin-regs.h".
173 (target_map_name_to_register): Delete function.
174 (write_dollar_variable): Use frame_map_name_to_regnum.
175 * parser-defs.h (target_map_name_to_register): Delete declaration.
176 * expprint.c: Include "frame.h".
177 (print_subexp): Use frame_map_regnum_to_name.
178 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
179 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
181 2002-09-25 Andrew Cagney <ac131313@redhat.com>
183 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
184 wasn't saved, and the next innermost frame is a dummy, return the
185 dummy frame's link register.
187 2002-09-24 Jim Blandy <jimb@redhat.com>
190 * main.c (captured_main): Add a `break' after the case for 'b'.
192 2002-09-24 Keith Seitz <keiths@redhat.com>
194 * varobj.c (c_type_of_child): Use get_target_type instead
197 2002-09-22 Fernando Nasser <fnasser@redhat.com>
199 * source.c (get_current_or_default_source_symtab_and_line): Remove
201 (set_default_source_symtab_and_line): New function. Attempts to
202 determine a source file to list lines from if one is not currently
204 (get_current_source_symtab_and_line): Initialize sal.pc and
206 (set_current_source_symtab_and_line): Mark argument as const.
207 * source.h: Update declarations and comments.
208 * linespec.c (decode_line_1): Replace call to removed routine above.
209 * stack.c (print_frame_info_base): Ditto.
210 * cli/cli-cmds.c (edit_command): Ditto.
211 (list_command): Ditto.
213 2002-09-22 Fernando Nasser <fnasser@redhat.com>
215 * source.c (get_current__or_default_source_symtab_and_line): Initialize
216 sal.pc and sal.end fields.
217 (get_current_or_default_source_symtab_and_line): Ditto.
218 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
219 so we do not cause a new source symtab to be searched for (reverting an
220 unintentional change from the 2002-09-20 patch).
221 * scm-lang.c (scm_unpac): Ditto.
223 2002-09-21 Andrew Cagney <cagney@redhat.com>
225 * complaints.c (symfile_explanations): Remove new-line from
226 ``isolated_message''.
227 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
228 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
230 2002-09-20 Nick Clifton <nickc@redhat.com>
232 * NEWS: Announce that V850EA ISA is no longer supported.
233 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
235 2002-09-20 David Carlton <carlton@math.stanford.edu>
237 * Makefile.in (c-lang.o): Correct dependencies.
238 (utils.o): Gather dependencies.
240 * c-lang.c: #include "gdb_string.h"
242 2002-09-20 Fernando Nasser <fnasser@redhat.com>
244 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
245 * cli/cli-cmds.c (list_command): New function. Implements the new
247 (_init_cli_cmds): Add new command definition.
248 * gdb.1: Document edit command.
249 * doc/gdb.texinfo: Document edit command.
251 2002-09-20 Fernando Nasser <fnasser@redhat.com>
253 * source.c: Make global variables current_source_symtab and
254 current_source_line static.
255 (list_command): Moved to cli/cli-cmds.c.
256 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
257 (get_first_line_listed): New accessor function.
258 (get_lines_to_list): New accessor function.
259 (get_current_source_symtab_and_line): New function. Retrieves the
260 position in the source code that we consider current.
261 (get_current_or_default_source_symtab_and_line): New function.
262 Like the above but attempts to determine a default position if one
263 is not currently defined.
264 (set_current_source_symtab_and_line): New function. Sets the source
265 code position considered current and returns the previously set one.
266 (clear_current_source_symtab_and_line): Reset stored information about
267 a current source line.
268 (_initialize_source): Remove registration for the "list" command and
270 * source.h: Add declarations for the new functions above.
271 * symtab.h: Remove declarations for the global variables mentioned
273 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
274 obtain current source line.
275 * linespec.c (decode_line_1): Ditto.
276 * macroscope.c (default_macro_scope): Ditto.
277 * scm-lang.c (scm_unpac): Ditto.
278 * stack.c (print_frame_info_base): Ditto.
279 * symfile.c (clear_symtab_users): Ditto.
280 * symtab.c (decode_line_spec): Ditto.
281 * cli/cli-cmds.c (list_command): Moved here from source.c.
282 (ambiguous_line_spec): Moved here from source.c.
283 (_init_cli_cmds): Add definition for "list" and its alias.
284 * Makefile.in: Update dependencies.
286 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
288 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
289 with what gcc thinks is correct.
291 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
293 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
294 multiple register push instruction.
296 2002-09-19 Jim Blandy <jimb@redhat.com>
298 Add support for distinct host and target character sets.
299 * charset.c, charset.h: New files.
300 * c-exp.y: #include "charset.h".
301 (yylex): Convert character and string literals to the target
302 character set, before returning them as the semantic value of the
304 * c-lang.c: #include "charset.h".
305 (c_emit_char): Use charset-specific methods to recognize
306 characters with backslash escape forms, to decide which characters
307 to print literally and which to print using numeric escape
308 sequences, and to convert target characters to host characters
310 * utils.c: #include "charset.h".
311 (no_control_char_error): New function.
312 (parse_escape): Use charset-specific methods to recognize
313 backslash escapes, parse `control character' notation, and convert
314 characters from the host character set to the target character set.
315 * configure.in: Set the default host character set.
316 Check where to find iconv, and what its argument types might be.
317 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
318 * Makefile.in (SFILES): List charset.c.
319 (COMMON_OBS): List charset.o.
320 (charset.o): New rule.
321 (charset_h): New header dependency variable.
322 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
323 (LIBICONV): New variable, set by configure.
324 (CLIBS): Include $(LIBICONV) here.
325 * aclocal.m4, config.in, configure: Regenerated.
327 2002-09-19 Joel Brobecker <brobecker@gnat.com>
329 * ada-exp.y: Add missing semicolons to end rules. Fixes a
332 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
334 * gdb_mbuild.sh: New file.
336 2002-09-19 Andrew Cagney <ac131313@redhat.com>
338 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
340 2002-09-18 Andrew Cagney <ac131313@redhat.com>
342 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
343 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
344 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
345 valops.c, value.h: Revert previous change.
347 2002-09-18 Michael Snyder <msnyder@redhat.com>
349 Preliminary support for Objective-C:
350 * defs.h (language_objc): New enum value.
351 (puts_filtered_tabular): Declaration only, exported from utils.c.
352 (skip_quoted): Delete, declared in completer.h.
353 * c-exp.y: Include completer.h.
356 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
357 New operator enum values.
358 * language.h (CAST_IS_CONVERSION): Test for language_objc.
359 * language.c (binop_result_type): Handle language_objc case.
360 (integral_type, character_type, string_type, boolean_type,
361 structured_type, binop_type_check): Ditto.
362 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
363 (struct objc_specific): Add to general_symbol_info.
364 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
365 (SYMBOL_DEMANGLED_NAME): Handle objc case.
366 * parser-defs.h (struct objc_class_str): New struct type.
367 (start_msglist, end_msglist, add_msglist): Declaration only,
368 exported from objc-lang.c.
369 * value.h (value_of_local, value_nsstring,
370 call_function_by_hand_expecting_type): Exported from valops.c.
371 * valops.c (find_function_addr): Export.
372 (call_function_by_hand_expecting_type): New function.
373 (value_of_local): New function.
374 * symfile.c (init_filename_language_table): Add ".m" extension
376 * utils.c (puts_filtered_tabular): New function.
377 (fprintf_symbol_filtered): Add objc demangling support (disabled).
378 (set/show demangle): Extend help-string to refer to ObjC.
379 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
380 * stabsread.c (symbol_reference_defined): Objective-C symbols
381 may contain colons: make allowances when scanning stabs strings
383 (objc_find_colon): New function.
384 * printcmd.c (address_info): If language == objc then print
385 "self" instead of "this".
386 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
387 OP_NSSTRING, and OP_SELF.
388 (prefixify_subexp): Ditto.
389 * source.c (print_source_lines): Mention objc in comment.
390 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
393 2002-09-18 Andrew Cagney <ac131313@redhat.com>
395 * complaints.h: Update copyright.
396 (struct complaints): Declare.
397 (struct complaint): Make `message' constant.
398 (internal_complaint): Declare.
399 (complaint): Declare.
400 (complaint_root): Delete declaration.
401 (symfile_complaints): Delete declaration.
402 (struct complaints): Add opaque declaration.
403 (clear_complaints): Add a complaints parameter.
404 * complaints.c: Update copyright.
405 (enum complaint_series): Define.
406 (complaint_root): Delete.
407 (struct complaints): Define.
408 (complaint_sentinel, symfile_complaint_book): New variables.
409 (symfile_explanations, symfile_complaints): New variables.
411 (get_complaints): New function.
412 (vcomplaint): New function.
413 (complaint): New function.
414 (internal_complaint): New function.
415 (complain): Call vcomplain with symfile_complaint.
416 (clear_complaints): Rewrite.
417 (_initialize_complaints): Use add_setshow_command.
418 * Makefile.in (complaints.o): Update dependencies.
419 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
420 to call to clear_complaints.
421 (new_symfile_objfile, reread_symbols): Ditto.
422 (oldsyms_complaint): Delete.
423 (empty_symtab_complaint, unknown_option_complaint): Delete.
424 (free_named_symtabs): Use complaint instead of complain.
426 2002-09-18 Michael Snyder <msnyder@redhat.com>
428 Contributed by Apple Computer, Inc. Merged with current sources
429 by Adam Fedor <fedor@doc.com> [cagney].
431 * objc-lang.c: First clean-up round: comments, indentation.
432 * objc-lang.h: Ditto.
433 * objc-lang.y: Ditto.
435 2002-09-18 Andrew Cagney <ac131313@redhat.com>
437 * maint.c (maintenance_internal_error): Print the parameter as the
439 (maintenance_internal_warning): New function.
440 (_initialize_maint_cmds): Add command `maint internal-warning'.
442 * defs.h (internal_warning, internal_vwarning): Declare.
443 * utils.c (struct internal_problem): Define.
444 (internal_vproblem): New function.
445 (internal_warning): New function.
446 (internal_vwarning): New function.
447 (internal_warning_problem, internal_error_problem): New variables.
448 (internal_verror): Just call internal_vproblem.
450 2002-09-18 Michael Snyder <msnyder@redhat.com>
452 * objc-lang.c: New file, support for Objective-C.
453 Preliminary check-in, not yet integrated into gdb.
454 * objc-lang.h: New file.
455 * objc-exp.y: New file.
457 2002-09-18 Andrew Cagney <ac131313@redhat.com>
459 * infrun.c (signal_stop_update): Convert definition to ISO C.
460 (signal_print_update): Ditto.
461 (signal_pass_update): Ditto.
462 * inflow.c (terminal_save_ours): Ditto.
464 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
467 * config/djgpp/fnchange.lst: Handle name clashes between
468 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
471 * i386-linux-tdep.h: Fix tipo.
473 2002-09-18 Adam Fedor <fedor@gnu.org>
475 * MAINTAINERS: Add myself to the Write After Approval list.
477 2002-09-18 Jim Blandy <jimb@redhat.com>
479 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
480 texthigh and textlow to reader-specific structs caused
481 objfile_relocate to miss them. This is fixable, but the work that
482 the change was supposed to prepare GDB for never got done anyway.
484 2002-09-18 David Carlton <carlton@math.stanford.edu>
486 * MAINTAINERS: Alphabetize Write After Approval list.
488 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
491 * values.c (value_static_field): Call read_var_value.
493 2002-09-18 Andrew Cagney <ac131313@redhat.com>
495 * valops.c (hand_function_call): Align the initial stack pointer
496 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
497 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
499 * mips-tdep.c (mips_frame_align): New function.
500 (mips_gdbarch_init): Set frame_align.
501 * gdbarch.sh (FRAME_ALIGN): New method.
502 * gdbarch.h, gdbarch.c: Re-generate.
504 2002-09-18 Michal Ludvig <mludvig@suse.cz>
506 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
509 2002-09-17 Andrew Cagney <ac131313@redhat.com>
511 * NEWS: Mention that MIPS $fp behavior changed.
512 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
513 reference to FP_REGNUM.
514 (mipsnbsd_cannot_store_register): Ditto.
515 * mips-linux-nat.c: Update copyright.
516 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
517 (mips_linux_cannot_store_register): Ditto.
518 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
519 * config/mips/tm-mips.h: Update copyright.
520 (FP_REGNUM): Delete macro.
521 (MIPS_REGISTER_NAMES): Replace "fp" with "".
522 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
523 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
524 (mips_r3041_reg_names, mips_r3051_reg_names)
525 (mips_r3081_reg_names): Replace "fp" with "".
528 2002-09-17 Theodore A. Roth <troth@verinet.com>
530 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
531 generic_read_register_dummy() (PR gdb/703).
532 (avr_push_return_address): #if 0 out unused vars.
533 (avr_gdbarch_init): Enable use of avr_push_return_address().
535 2002-09-17 Michael Snyder <msnyder@redhat.com>
537 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
538 RTE will take care of it.
540 2002-09-17 Andrew Cagney <ac131313@redhat.com>
542 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
543 invalid, return SP_REGNUM.
545 2002-09-17 Michael Snyder <msnyder@redhat.com>
547 * mips-tdep.c (mips_pop_frame): Read saved values of floating
548 point registers without sign extension.
550 2002-09-17 Andrew Cagney <cagney@redhat.com>
552 * blockframe.c (deprecated_read_register_dummy): Rename
553 generic_read_register_dummy.
554 * frame.c (frame_unwind_signed_register): New function.
555 (frame_unwind_unsigned_register): New function.
556 * frame.h (frame_unwind_signed_register): Declare.
557 (frame_unwind_unsigned_register): Declare.
558 (deprecated_read_register_dummy): Rename
559 generic_read_register_dummy.
561 * h8300-tdep.c (h8300_frame_chain): Update.
562 (h8300_frame_saved_pc): Update.
563 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
564 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
565 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
566 (s390_frame_chain): Update.
567 * v850-tdep.c (v850_find_callers_reg): Update.
568 (v850_frame_saved_pc): Update.
569 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
570 (m32r_find_callers_reg): Update.
571 (m32r_frame_saved_pc): Update.
572 * sh-tdep.c (sh_find_callers_reg): Update.
573 (sh64_get_saved_pr): Update.
574 (sh_init_extra_frame_info): Update.
575 (sh_init_extra_frame_info): Update.
576 (sh64_init_extra_frame_info): Update.
577 (sh64_init_extra_frame_info): Update.
578 * mcore-tdep.c (mcore_find_callers_reg): Update.
579 (mcore_frame_saved_pc): Update.
580 (mcore_init_extra_frame_info): Update.
581 * i386-tdep.c (i386_frame_saved_pc): Update.
582 * ia64-tdep.c (ia64_frame_saved_pc): Update.
583 (ia64_init_extra_frame_info): Update.
584 (ia64_init_extra_frame_info): Update.
585 * d10v-tdep.c (d10v_frame_saved_pc): Update.
586 * cris-tdep.c (cris_init_extra_frame_info): Update.
587 * avr-tdep.c (avr_frame_chain): Update.
588 (avr_init_extra_frame_info): Update.
589 (avr_frame_saved_pc): Update.
590 * arm-tdep.c (arm_find_callers_reg): Update.
591 (arm_init_extra_frame_info): Update.
592 (arm_frame_saved_pc): Update.
594 2002-09-17 Tom Tromey <tromey@redhat.com>
596 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
599 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
601 * MAINTAINERS: Remove "non multi-arched" text from h8300.
602 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
604 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
607 2002-09-16 Joel Brobecker <brobecker@gnat.com>
609 * osfsolib.c: Remove file, replaced by solib-osf.c.
610 * Makefile.in: Remove compilation rules for osfsolib.c.
612 2002-09-16 David Carlton <carlton@math.stanford.edu>
614 * cp-valprint.c (cp_print_class_method): Correct args to
615 check_stub_method_group.
617 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
619 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
620 `set architecture'. Unify naming convention of functions.
621 (h8300_skip_prologue): Improve prologue analysis.
622 (h8300_push_arguments): Rewritten to more closely match GCC's
623 bizarre argument-passing behavior, along with the comment describing
625 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
626 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
627 sim, remote-e7000.c, remote-hms.c and remote.c
629 2002-09-15 Mark Kettenis <kettenis@gnu.org>
631 * i386-tdep.c (gdb_print_insn_i386): Removed.
632 (i386_print_insn): New function.
633 (i386_gdbarch_init): Set print_insn to i386_print_insns.
634 (_initialize_i386_tdep): Don't initialize tm_print_insn and
637 2002-09-14 Mark Kettenis <kettenis@gnu.org>
639 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
642 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
644 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
645 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
646 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
648 2002-09-13 Christopher Faylor <cgf@redhat.com>
650 * win32-nat.c (child_create_inferior): Honor 'tty' command.
652 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
654 * gdbtypes.c (check_stub_method): Make static.
655 (check_stub_method_group): New function.
656 * gdbtypes.h: Update prototypes.
657 * cp-support.c: New file.
658 * cp-support.h: New file.
660 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
661 (update_method_name_from_physname): New function.
662 (read_member_functions): Correct method names for operators
663 and v3 constructors/destructors. Separate v2 constructors and
665 * Makefile.in (stabsread.o): Update dependencies.
666 (SFILES): Add cp-support.c.
667 (COMMON_OBS): Add cp-support.o.
668 (cp_support_h, cp-support.o): Add.
670 * cp-valprint.c (cp_print_class_method): Call
671 check_stub_method_group instead of check_stub_method. Remove
673 * p-valprint.c (pascal_object_print_class_method): Likewise.
674 * valops.c (search_struct_method): Likewise.
675 (find_method_list, value_struct_elt_for_reference): Likewise.
677 2002-09-13 Andrew Cagney <cagney@redhat.com>
679 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
680 * gdbarch.h, gdbarch.c: Regenerate.
682 2002-09-13 Andrew Cagney <ac131313@redhat.com>
684 * frame.c (find_saved_register): Delete function.
685 * frame.h (find_saved_register): Delete declaration.
688 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
690 * mips-tdep.c (read_next_frame_reg): Re-hack using
691 frame_register_unwind.
693 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
695 * mips-tdep.c (mips_get_saved_register): Re-hack using
696 frame_register_unwind.
698 2002-09-12 Joel Brobecker <brobecker@gnat.com>
700 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
701 vector. Will be useful for Interix.
702 * gdbarch.h, gdbarch.c: Regenerate.
704 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
705 name of the malloc function by NAME_OF_MALLOC.
707 2002-09-12 Joel Brobecker <brobecker@gnat.com>
709 * value.h (find_function_in_inferior): Add const keyword to
710 one of the parameters. Allows us to invoke this function with
712 * valops.c (find_function_in_inferior): Likewise.
714 2002-09-12 Joel Brobecker <brobecker@gnat.com>
716 * exec.c (xfer_memory): Fix compilation warning with old versions
718 * tracepoint.c (trace_find_tracepoint_command): Likewise.
720 2002-09-12 David Carlton <carlton@math.stanford.edu>
722 * symtab.h: Run through gdb_indent.h.
723 Add 2002 to Copyright year list.
725 2002-09-12 Alan Modra <amodra@bigpond.net.au>
727 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
729 * MAINTAINERS: Add myself to write after approval list.
731 2002-09-11 J. Brobecker <brobecker@gnat.com>
733 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
735 2002-09-11 J. Brobecker <brobecker@gnat.com>
737 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
740 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
742 * procfs.c (do_detach): Clear current signal, not just fault.
743 Corrects problem with breakpoint trap signal leaking to detached
746 2002-09-10 Michael Snyder <msnyder@redhat.com>
748 * buildsym.c (finish_block): Protect against null pointer.
750 2002-09-10 Andrew Cagney <cagney@redhat.com>
752 * infcmd.c (default_print_registers_info): Send all output to
753 ``file'' instead of ``gdb_stdout''.
755 2002-09-10 Michael Snyder <msnyder@redhat.com>
757 * mips-tdep.c (mips_extract_struct_value_address): Make val a
758 LONGEST, and use signed register read (addresses are sign-
761 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
763 * event-loop.c (gdb_do_one_event): Make public.
764 * event-loop.h (gdb_do_one_event): Declare.
766 2002-09-10 Jeff Law <law@redhat.com>
768 * infttrace.c (child_resume): Simplify and rework to avoid
771 2002-09-09 Fred Fish <fnf@intrinsity.com>
773 * printcmd.c (print_scalar_formatted): "len" is the number of
774 target bytes, NOT the number of target bits.
776 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
778 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
779 * top.c (init_main): Set rl_terminal_name.
781 2002-09-08 Aidan Skinner <aidan@velvet.net>
783 * ada-lang.c (ada_array_bound, ada_type_match,
784 _initialize_ada_language): Fix K&R definitions.
785 * ada-tasks.c (get_current_task): Fix K&R definitions.
786 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
788 2002-09-07 Christopher Faylor <cgf@redhat.com>
790 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
793 2002-09-06 Mark Kettenis <kettenis@gnu.org>
795 * i386-tdep.c (i386_register_virtual_type,
796 i386_register_convertible, i386_register_convert_to_virtual,
797 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
798 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
799 (i386_gdbarch_init): Fix comment. Add comments on calls that set
800 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
801 Don't set push_arguments twice.
803 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
804 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
805 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
806 sigtramp_end to NULL.
807 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
809 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
811 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
814 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
815 * gdbarch.h, gdbarch.c: Re-generate.
816 * blockframe.c (find_pc_sect_partial_function): Convert to use
817 SIGTRAMP_START_P predicate.
819 2002-09-05 Michael Snyder <msnyder@redhat.com>
821 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
822 generic_dummy_frame method and old method. Also distinguish
823 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
824 (arm_extract_return_value): Use new regcache method.
826 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
827 adjustment that doesn't conform to the ABI.
828 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
829 saved regcache, not from current regcache.
831 2002-09-05 Andrew Cagney <ac131313@redhat.com>
833 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
836 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
838 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
839 if arm_apcs_32 is false.
841 2002-09-04 Andrew Cagney <ac131313@redhat.com>
843 GDB 5.3 branch created.
845 2002-09-03 Theodore A. Roth <troth@verinet.com>
847 * gdb/avr-tdep.c (avr_gdbarch_init): Use
848 generic_unwind_get_saved_register.
850 2002-09-03 David Carlton <carlton@math.stanford.edu>
852 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
853 argument (PR gdb/653). Update call to smash_to_method_type.
854 (read_structure_scope): Update call to dwarf2_add_member_fn.
856 2002-09-03 Michal Ludvig <mludvig@suse.cz>
858 * x86-64-linux-tdep.c: Include gdb_string.h
859 * x86-64-linux-nat.c: Ditto.
861 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
863 * ada-exp.y (yyname, yyrule): Remap global variables that appear
864 when YYDEBUG is set to 1.
867 * jv-exp.y: Likewise.
868 * m2-exp.y: Likewise.
871 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
873 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
875 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
876 solib_svr4_fetch_link_map_offsets to
877 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
878 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
879 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
880 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
881 solib-svr4.o, and solib-legacy.o.
882 * config/i386/tm-nbsd.h: Include solib.h.
884 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
886 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
887 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
888 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
889 comment noting that this needs its own target configuration.
890 * config/i386/nbsd.mt: New file.
891 * config/i386/nbsdaout.mt: Remove.
892 * config/i386/nbsdelf.mt: Ditto.
893 * config/i386/tm-nbsdaout.h: Ditto.
895 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
897 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
898 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
899 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
901 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
902 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
903 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
905 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
907 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
908 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
909 * i386-tdep.h (i386bsd_init_abi): New prototype.
910 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
911 function declaration.
912 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
913 for NetBSD-a.out or NetBSD-ELF.
914 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
915 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
916 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
917 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
919 (i386nbsd_pc_in_sigtramp): New function.
920 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
921 i386nbsd_pc_in_sigtramp.
922 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
923 and i386nbsdelf_init_abi OS ABI handlers.
924 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
925 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
927 2002-09-02 Mark Kettenis <kettenis@gnu.org>
929 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
930 registers if the target really has them.
932 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
934 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
937 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
939 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
941 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
942 (alphanbsd_skip_sigtramp_frame): New functions.
943 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
944 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
945 to alphanbsd_sigcontext_addr.
947 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
949 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
951 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
952 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
954 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
955 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
956 * nbsd-tdep.c: Include gdb_string.h.
957 (nbsd_pc_in_sigtramp): New function.
958 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
959 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
960 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
961 ppcnbsd_pc_in_sigtramp.
962 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
963 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
964 shnbsd_pc_in_sigtramp.
965 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
966 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
967 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
969 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
971 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
973 (insert_breakpoints): set val field of watchpoints if NULL.
976 2002-08-29 Jim Blandy <jimb@redhat.com>
978 * symtab.c (lookup_symbol_aux): In the cases where we find a
979 minimal symbol of an appropriate name and use its address to
980 select a symtab to read and search, use `name' (as passed to us)
981 as the demangled name when searching the symtab's global and
982 static blocks, not the minsym's name.
984 2002-08-29 Keith Seitz <keiths@redhat.com>
986 * stack.c (print_frame_info_base): Always set current_source_symtab
987 and current_source_line.
989 2002-08-29 Donn Terry <donnte@microsoft.com>
991 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
993 2002-08-28 Keith Seitz <keiths@redhat.com>
995 * stack.c (select_frame): Add FIXME concerning selected-frame
997 (select_frame_command): Send selected-frame-level-changed
998 event notification, but only if the level actually changed.
999 (up_silently_base): Add selected-frame-level-changed event
1001 (down_silently_base): Likewise.
1003 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1005 * Makefile.in: Update dependencies for all gdb/*.c files.
1007 2002-08-27 Tom Tromey <tromey@redhat.com>
1009 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1010 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1011 Update dependencies.
1012 * i387-tdep.c: Include gdb_string.h.
1013 * osabi.c: Likewise.
1014 * i386-linux-nat.c: Likewise.
1015 * lin-lwp.c: Likewise.
1016 * ax-gdb.c: Likewise.
1017 * signals/signals.c: Likewise.
1018 * jv-valprint.c: Likewise.
1019 * p-lang.c: Likewise.
1020 * c-valprint.c: Likewise.
1021 * cp-abi.c: Likewise.
1023 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1025 * cli/cli-script.h (copy_command_lines): Export.
1026 * breakpoint.c: Include cli/cli-script.h.
1027 * Makefile.in (breakpoint.o): Update dependencies.
1029 2002-08-26 Michael Snyder <msnyder@redhat.com>
1031 * breakpoint.c (insert_breakpoints): Protect all references
1032 to 'process_warning'. Shorten long lines.
1034 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1036 * cli/cli-script.c (copy_command_lines): New function.
1037 * defs.h (copy_command_lines): Export.
1038 * testsuite/gdb.base/commands.exp: New tests for commands
1039 attached to a temporary breakpoint, and for commands that
1040 delete the breakpoint they are attached to.
1042 2002-08-26 Michael Snyder <msnyder@redhat.com>
1044 * breakpoint.c (bpstat_stop_status): Instead of copying the
1045 pointer to the breakpoint commands struct, make a new copy
1046 of the struct and point to that.
1047 (bpstat_clear): Free the commands struct.
1048 (bpstat_clear_actions): Free the commands struct.
1049 (bpstat_do_actions): Free the command actions. Also execute
1050 the local cleanups, instead of deleting them.
1051 (delete_breakpoint): Leave the commands field of the bpstat
1052 chain alone -- it will be freed later.
1054 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1056 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1057 deleted in 2002-08-20 commit. This function is still used by
1060 2002-08-26 Keith Seitz <keiths@redhat.com>
1062 * gdb-events.sh: Add selected-frame-level-changed event.
1063 * gdb-events.c: Regenerated.
1064 * gdb-events.h: Regenerated.
1066 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1069 * inflow.c (terminal_save_ours): New function to save terminal
1071 * inferior.h (terminal_save_ours): Declare.
1072 * target.c (debug_to_terminal_save_ours): New function.
1073 (cleanup_target): Defaults to_terminal_save_ours.
1074 (update_current_target): Inherit to_terminal_save_ours.
1075 (setup_target_debug): Set to_terminal_save_ours.
1076 * target.h (target_terminal_save_ours): New to save terminal settings.
1077 (target_ops): New member to_terminal_save_ours.
1078 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1079 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1080 * inftarg.c (init_child_ops): Likewise.
1081 * m3-nat.c (init_m3_ops): Likewise.
1082 * procfs.c (init_procfs_ops): Likewise.
1083 * wince.c (init_child_ops): Likewise.
1084 * win32-nat.c (init_child_ops): Likewise.
1085 * sol-thread.c (init_sol_thread_ops): Likewise.
1087 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1089 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1090 use regcache_* functions.
1091 (i386_gdbarch_init): Set store_return_value instead of
1092 deprecated_store_return_value.
1094 * regcache.c (regcache_raw_write_signed,
1095 regcache_raw_write_unsigned): New functions.
1096 * regcache.h (regcache_raw_write_signed,
1097 regcache_raw_write_unsigned): New prototypes.
1099 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1101 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1102 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1103 source file dependencies. Cleanup corresponding generator rules.
1105 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1107 * regcache.h (register_offset_hack): Declare.
1108 (regcache_cooked_read_using_offset_hack): Declare.
1109 (regcache_cooked_write_using_offset_hack): Declare.
1111 * regcache.c (register_offset_hack): New function.
1112 (regcache_cooked_read_using_offset_hack): New function.
1113 (regcache_cooked_write_using_offset_hack): New function.
1114 (regcache_dump): Check that the registers, according to their
1115 offset, are packed hard against each other.
1116 (cooked_xfer_using_offset_hack): New function.
1118 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1120 * regcache.c (struct regcache_descr): Add field register_type.
1121 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1123 (init_regcache_descr): Initialize register_type. Pass the descr
1124 to init_legacy_regcache_descr. Use register_type instead of
1125 REGISTER_VIRTUAL_TYPE.
1126 (register_type): New function.
1127 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1128 * regcache.h (register_type): Declare.
1130 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1132 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1133 instead of deprecated_store_return_value. Fix fallout from
1134 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1136 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1138 * regcache.c (max_register_size): New function.
1139 (init_legacy_regcache_descr): Ensure that max_register_size is
1140 large enough for REGISTER_VIRTUAL_SIZE.
1141 * regcache.h (max_register_size): Declare.
1143 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1145 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1147 (e500_extract_return_value): Change type of valbuf pointer to
1150 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1152 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1155 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1156 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1157 long long) to prevent compiler warning on 64-bit systems.
1159 2002-08-23 Andrew Cagney <cagney@redhat.com>
1161 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1162 (DEPRECATED_STORE_RETURN_VALUE): New method.
1163 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1164 * gdbarch.h, gdbarch.c: Re-generate.
1166 * values.c (set_return_value): Pass current_regcache to
1168 * arch-utils.h (legacy_store_return_value): Declare.
1169 * arch-utils.c (legacy_store_return_value): New function.
1170 (legacy_extract_return_value): Update parameters.
1172 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1174 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1175 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1176 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1177 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1178 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1179 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1180 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1181 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1182 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1183 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1186 * i386-tdep.c (i386_extract_return_value): Update.
1187 * arch-utils.c (legacy_extract_return_value): Update.
1188 * frv-tdep.c (frv_gdbarch_init): Update.
1189 * cris-tdep.c (cris_gdbarch_init): Update.
1190 * d10v-tdep.c (d10v_gdbarch_init): Update.
1191 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1192 * m68k-tdep.c (m68k_gdbarch_init): Update.
1193 * mcore-tdep.c (mcore_gdbarch_init): Update.
1194 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1195 * s390-tdep.c (s390_gdbarch_init): Update.
1196 * sparc-tdep.c (sparc_gdbarch_init): Update.
1197 * sh-tdep.c (sh_gdbarch_init): Update.
1198 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1199 * v850-tdep.c (v850_gdbarch_init): Update.
1200 * avr-tdep.c (avr_gdbarch_init): Update.
1201 * ia64-tdep.c (ia64_gdbarch_init): Update.
1202 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1203 * vax-tdep.c (vax_gdbarch_init): Update.
1204 * alpha-tdep.c (alpha_gdbarch_init): Update.
1205 * arm-tdep.c (arm_gdbarch_init): Update.
1206 * mips-tdep.c (mips_gdbarch_init): Update.
1207 * i386-tdep.c (i386_gdbarch_init): Update.
1209 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1211 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1212 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1214 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1216 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1219 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1221 * infrun.c (handle_inferior_event): Move a comment outside of a
1222 function call, in order to avoid indent reformatting this part
1223 of the code in an unreadable way.
1225 2002-08-23 Grace Sainsbury <graces@redhat.com>
1227 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1228 when breakpoints fail. Move general breakpoint error messages to
1230 * breakpoint.c (insert_breakpoints): Change warnings when
1231 breakpoints are nto inserted to specify the type. Remove call to
1232 memory_error when hardware breakpoints can't be inserted. Remove
1233 multiple calls to warning so all messages are sent to the user at
1235 (delete_breakpoints): Make insert error messsages more explicit.
1237 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1239 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1240 gdbserver/ChangeLog.
1242 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1244 * i386-tdep.c: Include "objfiles.h".
1245 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1246 skip_trampoline_code.
1247 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1248 (CPLUS_MARKER): Define to '.'.
1250 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1252 (linux_corefile_thread_callback): Increase args->num_notes.
1253 (linux_make_note_section): Initialize thread_args.num_notes, and
1254 use it to determine whether notes for any threads were created.
1256 2002-08-23 Donn Terry <donnte@microsoft.com>
1258 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1259 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1261 (write_with_trace): Conditionalize out the switch branch handling
1262 PCSHOLD if the corresponding macro is not defined. Likewise for
1263 PRSABORT and PRSTOP.
1264 This change will be needed by the Interix port.
1266 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1268 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1269 write_register wherever possible instead of manipulating the
1270 register bytes directly.
1271 Assign VALUE_CONTENTS to a variable and use that.
1272 The GPR numbers are now dependent on the architecture.
1274 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1276 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1278 (skip_prologue): Add support for BookE/e500 instructions.
1279 (e500_extract_return_value): New function.
1280 (frame_get_saved_regs): Add support for saving ev registers and
1282 (e500_store_return_value): New function.
1283 (rs6000_gdbarch_init): Move up default intializations of
1284 deprecated_extract_return_value and store_return_value. Overwrite
1285 init of store_return_value with e500 specific version.
1286 Set extract_return_value for e500.
1288 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1290 * blockframe.c (generic_call_dummy_register_unwind): Use
1291 regcache_cooked_read to catch cases in which the variable is
1292 stored in a pseudo register.
1294 2002-08-22 Andrew Cagney <cagney@redhat.com>
1296 * NEWS: Mention that the i960 has been made obsolete.
1297 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1299 (remote-nrom.o): Obsolete target.
1300 (remote-nindy.o, i960-tdep.o): Ditto.
1301 * remote-nrom.c: Make file obsolete.
1302 * remote-nindy.c, remote-vx960.c: Ditto.
1303 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1304 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1305 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1306 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1307 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1308 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1309 i960-*-vxworks* obsolete.
1310 * MAINTAINERS: Note that the i960 is obsolete.
1312 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1314 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1315 detach to allow reinitialization.
1317 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1319 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1322 2002-08-22 Jim Blandy <jimb@redhat.com>
1324 * coffread.c (coff_symfile_read): Don't try to read the line
1325 number table from disk if the image file doesn't have a symbol
1326 table; we'll never actually look at the info anyway, and Windows
1327 ships DLL's with bogus file offsets for the line number data.
1329 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1331 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1334 2002-08-21 Michael Snyder <msnyder@redhat.com>
1336 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1337 (MSYMBOL_SIZE): Replace macro with function.
1338 (DEFAULT_MIPS_TYPE): Delete unused macro.
1339 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1340 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1342 2002-08-21 Jim Blandy <jimb@redhat.com>
1344 * valops.c (value_cast): Simplify and correct logic for doing a
1345 static cast from a pointer to a base class to a pointer to a
1348 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1350 * infcmd.c (default_print_registers_info): Replace
1352 (registers_info): Use gdbarch_print_registers_info instead of
1354 * inferior.h (default_print_registers_info): Replace
1356 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1357 (DO_REGISTERS_INFO): Change to a predicate function.
1358 * gdbarch.h, gdbarch.c: Regenerate.
1360 2002-08-21 Keith Seitz <keiths@redhat.com>
1362 * gdb-events.sh: Add target-changed event.
1363 * gdb-events.c: Regenerated.
1364 * gdb-events.c: Regenerated.
1365 * valops.c (value_assign): Add target-changed event notification
1366 to inlval_register, lval_memory, and lval_reg_frame_relative.
1368 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1370 * NEWS: Add an entry regarding the improvement of the next/step
1371 operation on Alpha Tru64 multi-processor machines.
1373 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1375 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1377 * Makefile.in: Update all _h macro definitions.
1378 * Makefile.in (install-gdbtk): Move to install section.
1379 (rdi-share/libangsd.a): Move to end of file.
1381 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1383 * frame.c (frame_register_unwind): When a register, set addrp to
1384 the register's byte.
1386 2002-08-20 Michael Snyder <msnyder@redhat.com>
1388 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1389 used locally, so move them from the target machine header to here.
1390 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1391 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1393 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1395 2002-08-20 Andrew Cagney <cagney@redhat.com>
1397 * NEWS: Mention that the Apollo line was made obsolete.
1398 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1399 m68*-hp-hpux* obsolete.
1400 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1401 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1402 * buildsym.c (make_blockvector): Make static.
1403 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1404 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1405 (ALLDEPFILES): Remove dstread.c.
1406 (dstread.o): Obsolete make rule.
1407 * dstread.c: Makefile obsolete.
1409 * config/m68k/hp300hpux.mt: Ditto.
1410 * config/m68k/hp300hpux.mh: Ditto.
1411 * config/m68k/hp300bsd.mt: Ditto.
1412 * config/m68k/hp300bsd.mh: Ditto.
1413 * config/m68k/apollo68b.mt: Ditto.
1414 * config/m68k/apollo68v.mh: Ditto.
1415 * config/m68k/apollo68b.mh: Ditto.
1417 2002-08-20 Michael Snyder <msnyder@redhat.com>
1419 * mips-tdep.c (mips_in_return_stub): Make static.
1420 (mips_gdbarch_init): Set in_solib_return_trampoline.
1421 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1423 2002-08-20 Michael Snyder <msnyder@redhat.com>
1425 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1426 * gdbarch.c, gdbarch.h: Regenerate.
1427 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1429 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1431 2002-08-20 Michael Snyder <msnyder@redhat.com>
1433 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1434 (mips_gdbarch_init): Set skip_trampoline_code,
1435 in_solib_call_trampoline.
1436 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1437 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1439 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1441 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1443 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1444 vector type for ev registers.
1445 (e500_pseudo_register_read): New function.
1446 (e500_pseudo_register_write): New function.
1447 (e500_dwarf2_reg_to_regnum): New function.
1448 (PPC_UISA_NOFP_SPRS): New macro.
1449 (PPC_EV_REGS): New macro.
1450 (PPC_GPRS_PSEUDO_REGS): New macro.
1451 (registers_e500): New register set for e500.
1452 (variants): Add e500 variant.
1453 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1454 before setting architectural dependent variations. Initialize ev
1455 registers numbers. Add case for e500 architecture. Set the
1456 number of pseudo registers.
1458 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1460 * rs6000-tdep.c: Clean up comments.
1462 2002-08-20 Andrew Cagney <cagney@redhat.com>
1464 * h8300-tdep.c: Re-indent file.
1466 2002-08-20 Jim Blandy <jimb@redhat.com>
1468 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1471 2002-08-20 Keith Seitz <keiths@redhat.com>
1473 * breakpoints.c (watch_command_1): Use internal breakpoint
1474 when setting a watchpoint_scope breakpoint.
1476 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1478 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1479 (build_builtin_type_vec64i): Ditto.
1480 (build_builtin_type_vec128): Ditto.
1481 (build_builtin_type_vec128i): Ditto.
1483 2002-08-19 Michael Snyder <msnyder@redhat.com>
1485 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1486 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1487 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1488 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1489 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1490 CALL_DUMMY_ADDRESS): Delete.
1491 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1492 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1493 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1494 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1495 push_return_address.
1496 (mips_register_raw_size, mips_eabi_use_struct_convention,
1497 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1498 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1499 mips_init_extra_frame_info, mips_eabi_push_arguments,
1500 mips_n32n64_push_arguments, mips_push_return_address,
1501 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1502 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1504 2002-08-19 Michael Snyder <msnyder@redhat.com>
1506 * mips-tdep.c (mips_frame_num_args): New function.
1507 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1508 frame_saved_pc, frame_args_address, frame_locals_address,
1509 frame_num_args, and frame_args_skip.
1510 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1511 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1512 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1513 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1515 2002-08-20 Michael Snyder <msnyder@redhat.com>
1517 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1518 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1519 * mips-tdep.c (mips_store_struct_return): New function.
1520 (mips_extract_struct_value_address): New function.
1521 (mips_gdbarch_init): Set store_struct_return and
1522 extract_struct_value_address.
1524 2002-08-20 David Carlton <carlton@math.stanford.edu>
1526 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1527 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1528 (read_file_scope): Check that line_header is nonzero before
1529 decoding macro information.
1531 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1533 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1534 flag the general-purpose registers as floating-point on targets
1535 that don't support the floating-point registers.
1537 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1539 * rs6000-tdep.c (altivec_register_p): Delete.
1540 (rs6000_do_altivec_registers): Delete.
1541 (rs6000_altivec_registers_info): Delete.
1542 (rs6000_do_registers_info): Delete.
1543 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1544 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1546 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1548 * infcmd.c (do_registers_info): Print vector registers in hex
1550 (print_vector_info): Check that printing registers
1552 (print_float_info): Ditto.
1554 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1556 * mips-tdep.c (mips_gdbarch_init): Update.
1557 (mips_o32_extract_return_value): Rewrite.
1558 (mips_o32_store_return_value): Rewrite.
1559 (mips_o32_xfer_return_value): New function.
1560 (mips_xfer_register): Tweak debug print message. Allow for
1561 buf_offset when dumping the value transfered.
1563 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1565 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1566 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1567 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1568 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1569 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1571 2002-08-14 Michael Snyder <msnyder@redhat.com>
1573 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1575 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1577 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1579 (P): New macro to define a register as a pseudo register.
1580 (R, R4, R8, R16, FR32, R64, R0): Updated.
1581 (struct variant): Add new fields for number of pseudo registers
1582 and number of total registers.
1583 (tot_num_registers): New macro replacing....
1584 (num_registers): ...deleted macro.
1585 (num_registers): New function.
1586 (num_pseudo_registers): New function.
1587 (variants): Update all variants to intialize new fields correctly.
1588 Postpone initialization of number of pseudo regs and real regs.
1589 (init_variants): New function.
1590 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1593 2002-08-19 David Carlton <carlton@math.stanford.edu>
1595 * valops.c (search_struct_field): Change error message to treat
1596 return value of 0 from value_static_field as meaning that field is
1598 (value_struct_elt_for_reference): Ditto.
1599 * values.c (value_static_field): Treat an unresolved location the
1600 same as a nonexistent symbol. Fix PR gdb/635.
1601 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1602 enclosed. Fix PR gdb/574.
1603 * MAINTAINERS: Add self to Write After Approval list.
1605 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1607 * mips-tdep.c (mips_xfer_register): New function.
1608 (mips_n32n64_extract_return_value): Rewrite.
1609 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1610 instead of deprecated_extract_return_value.
1612 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1614 * rs6000-tdep.c (TDEP): Delete macro.
1615 (branch_dest): Replace use of TDEP macro with its body.
1616 (rs6000_pop_frame): Ditto.
1617 (rs6000_push_arguments): Ditto.
1618 (rs6000_skip_trampoline_code): Ditto.
1619 (rs6000_frame_saved_pc): Ditto.
1620 (rs6000_frame_chain): Ditto.
1621 (rs6000_register_name): Ditto.
1622 (rs6000_register_byte): Ditto.
1623 (rs6000_register_raw_size): Ditto.
1624 (rs6000_register_virtual_type): Ditto.
1625 (rs6000_register_convertible): Ditto.
1626 (rs6000_convert_from_func_ptr_addr): Ditto.
1628 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1630 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1632 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1633 MIPS_LINUX_JB_ELEMENT_SIZE.
1634 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1635 for MAX_REGISTER_RAW_SIZE arrays.
1636 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1637 MIPS_LINUX_JB_ELEMENT_SIZE.
1639 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1641 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1643 2002-08-19 Aidan Skinner <aidan@velvet.net>
1645 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1646 ada-valprint.c ada-tasks.c.
1647 (YYFILES): Add ada-exp.y.
1648 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1649 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1650 (ada-exp.tab.o): New target.
1652 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1654 * regcache.c (regcache_xfer_part): New function.
1655 (regcache_raw_read_part): New function.
1656 (regcache_raw_write_part): New function.
1657 (regcache_cooked_read_part): New function.
1658 (regcache_cooked_write_part): New function.
1659 * regcache.h (regcache_raw_read_part): Declare.
1660 (regcache_raw_write_part): Declare.
1661 (regcache_cooked_read_part): Declare.
1662 (regcache_cooked_write_part): Declare.
1664 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1666 * remote.c (remote_open_1): Add async_p.
1667 (remote_async_open_1): Delete.
1668 (open_remote_target): Delete.
1669 (remote_open, extended_remote_open): Update calls to remote_open_1.
1670 (remote_async_open, extended_remote_async_open): Call
1671 remote_open_1 instead of remote_async_open_1.
1673 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1675 * blockframe.c: Fix a few coding standard violations.
1677 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1679 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1681 * config/i386/tm-i386sco5.h: ... here. File removed.
1682 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1684 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1685 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1686 (TM_FILE): Set to tm-i386.h.
1687 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1688 * config/i386/tm-i386v.h: Remove file.
1689 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1690 instead of "i386/tm-i386v.h".
1691 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1692 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1694 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1695 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1698 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1700 * config/i386/nm-i386v.h: Add protection against
1702 (i386_register_u_addr): Remove prototype.
1703 (register_u_addr): New prototype.
1704 (REGISTER_U_ADDR): Redefine accordingly.
1705 * i386v-nat.c: Improve several comments.
1706 (i386_register_u_addr): Change signature and rename to
1707 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1710 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1712 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1713 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1714 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1715 deprecated_extract_return_value.
1716 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1717 rename mips_o32o64_push_arguments.
1718 (mips_gdbarch_init): Update.
1719 (mips_extract_return_value): Delete.
1720 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1721 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1722 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1723 (mips_n32n64_extract_return_value): Clone
1724 mips_extract_return_value.
1725 (mips_store_return_value): Delete.
1726 (mips_o32_store_return_value): Clone mips_store_return_value.
1727 (mips_o64_store_return_value): Clone mips_store_return_value.
1728 (mips_eabi_store_return_value): Clone mips_store_return_value.
1729 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1731 2002-08-18 Aidan Skinner <aidan@velvet.net>
1733 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1734 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1736 2002-08-18 Aidan Skinner <aidan@velvet.net>
1738 * ada-lang.c: Run through gdb_indent.sh.
1739 * ada-lang.h: Run through gdb_indent.sh.
1740 * ada-tasks.c: Run through gdb_indent.sh.
1741 * ada-typeprint.c: Run through gdb_indent.sh.
1742 * ada-valprint.c: Run through gdb_indent.sh.
1744 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1746 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1749 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1751 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1753 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1754 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1756 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1757 write_register_gen instead of write_register_bytes.
1759 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1760 i[3456]-*-osf1mk* configurations have been made obsolete.
1761 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1762 i[3456]86-*-osf1mk* hosts obsolete.
1763 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1765 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1766 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1767 config/i386/i386m3.mt, config/i386/nm-m3.h,
1768 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1769 config/i386/i386mk.mh, config/i386/i386mk.mt,
1770 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1772 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1773 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1774 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1776 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1778 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1779 (hppa_value_returned_from_stack): Declare.
1780 (hppa_extract_return_value): Declare.
1781 * config/pa/hppa.mt: New file.
1782 * configure.tgt: Recognize hppa*-*-*.
1783 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1785 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1787 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1790 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1792 * top.c (gdb_rl_operate_and_get_next): Make sure
1793 operate-and-get-next functions correctly even when the history
1794 list is completely filled.
1796 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1798 * MAINTAINERS (Target Instruction Set Architectures): Rename
1799 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1800 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1801 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1802 already listed under Host/Native.
1804 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1805 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1808 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1810 * config/ia64/ia64.mt: New file.
1811 * config/alpha/alpha.mt: New file.
1812 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1813 ia64-linux-gnu. Mention that ia64-elf is broken.
1814 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1816 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1818 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1819 generic_func_frame_valid instead of func_frame_valid.
1821 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1823 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1824 procfs appears to be broken when debugging on multi-processor
1825 machines. So enable software single stepping in order to avoid
1826 using the procfs interface to do next/step operations, using
1827 internal breakpoints instead.
1829 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1830 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1831 make this pc address equal to the value it would have if the
1832 system stepping capability was used. Also set a new flag used
1833 to ensure that we don't readjust the PC one more time later.
1835 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1836 address by DECR_PC_AFTER_BREAK when software single step is
1837 in use for this architecture, as this has already been taken
1838 care of in handle_inferior_event().
1840 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1842 * infrun.c (handle_inferior_event): Minor reformatting, to make
1843 a rather long condition expression easier to read.
1845 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1847 * Makefile.in (gdbtk.o): Move to end of file.
1848 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1849 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1850 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1851 (gdbtk-wrapper.o, gdbres.o): Ditto.
1853 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1855 * Makefile.in (copying.o): Separate out compile rule.
1856 (hpux-thread.o, procfs.o, signals.o): Ditto.
1857 (v850ice.o, z8k-tdep.o): Ditto.
1858 (tui-file.o): Move to TUI section.
1859 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1860 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1862 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1864 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1865 skip_trampoline_code, for better namespace-proofing.
1867 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1869 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1871 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1873 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1875 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1876 signal, check whether we hit a breakpoint before checking for a
1877 single step breakpoint. Otherwise, GDB fails to notice that a
1878 breakpoint has been hit when stepping onto a breakpoint.
1880 2002-08-16 Keith Seitz <keiths@redhat.com>
1882 * gdb-events.sh (clear_gdb_event_hooks): New function.
1883 * gdb-events.c: Regenerate.
1884 * gdb-events.h: Regenerate.
1886 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1888 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1889 not_a_sw_breakpoint.
1890 * breakpoint.h (bpstat_stop_status): Add parameter names.
1892 2002-08-16 Grace Sainsbury <graces@redhat.com>
1894 * remote.c (remote_insert_hw_breakpoint)
1895 (remote_remove_hw_breakpoint): Fix calculation of length field
1898 2002-08-15 Michael Snyder <msnyder@redhat.com>
1900 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1901 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1902 (supply_fpregset): Ditto.
1904 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1905 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1906 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1907 (TARGET_READ_SP): Delete.
1908 (DO_REGISTERS_INFO): Delete.
1909 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1911 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1912 from macros to functions.
1914 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1915 (mips_register_convertible, mips_register_convert_to_virtual,
1916 mips_register_convert_to_raw): Make static.
1917 (mips_read_sp): New function.
1918 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1919 (mips_do_registers_info): Make static.
1920 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1921 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1922 (mips_register_convert_from_type, mips_register_convert_to_type):
1924 (mips_gdbarch_init): Set up function_start_offset,
1925 register_virtual_size, pc_in_sigtramp.
1927 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1929 * infcmd.c (vector_info): New function.
1930 (_initialize_infcmd): Add command "info vector".
1931 (print_vector_info): New function.
1933 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1934 * gdbarch.h, gdbarch.c: Regenerate.
1936 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1938 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1939 ``print_all''. Only print vector registers when ``print_all''.
1941 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1943 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1944 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1946 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1947 Add `args' parameter.
1948 * gdbarch.h, gdbarch.c: Regenerate.
1950 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1952 * infcmd.c (float_info): Call print_float_info.
1953 (print_float_info): New function. By default, print the
1954 floating-point registers.
1956 * arch-utils.h (default_print_float_info): Delete declaration.
1957 * arch-utils.c (default_print_float_info): Delete function.
1959 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1961 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1964 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1967 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1968 * configure.host: Make i[3456]86-*-aix host obsolete.
1969 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1970 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1971 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1972 config/i386/xm-i386aix.h: Make files obsolete.
1973 * i386aix-nat.c: Make file obsolete.
1974 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1975 (i386aix-nat.o): Make target obsolete.
1977 * config/i386/nm-gnu.h: Removed.
1978 * config/i386/nm-i386gnu.h: New file.
1979 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1980 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1982 * config/i386/tm-i386gnu.h: ... here. Removed.
1983 * config/i386/xm-i386gnu.h: Removed.
1984 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1985 (NAT_FILE): Set to nm-i386gnu.h.
1986 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1987 * i386-tdep.c: New file.
1988 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1989 (i386gnu-tdep.o): Specify dependencies.
1991 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1993 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1994 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1995 Adjust a few comments to reflect reality a bit closer.
1996 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1997 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1998 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1999 target_insert_watchpoint, target_remove_watchpoint):
2001 * config/i386/nm-i386sco5.h: ... here.
2002 (kernel_u_size): Add prototype. Improve a few comments and add
2003 protection against multiple inclusion.
2005 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2008 * uw-thread.c (SP_ARG0): Define if not already defined.
2009 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2011 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2013 * config/i386/tm-i386.h: Don't include "regcache.h".
2015 * i387-tdep.h (i387_print_float_info): New prototype.
2016 * i387-tdep.c (print_i387_value, print_i387_ext,
2017 print_i387_status_word, print_i387_control_word): Add `struct
2018 ui_file *' argument and use it for output.
2019 (i387_print_float_info): Renamed from i387_float_info. Add
2020 `struct gdbarch *' and `struct ui_file *' arguments and use the
2022 * i386-tdep.c: Include "i387-tdep.h".
2023 (i386_gdbarch_init): Set print_float_info.
2024 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2025 (FLOAT_INFO): Remove define.
2027 2002-08-13 Michael Snyder <msnyder@redhat.com>
2029 * mips-tdep.c (mips_push_arguments): Rename to
2030 mips_eabi_push_arguments, and tune for EABI.
2031 (MIPS_REGS_HAVE_HOME_P): Delete.
2032 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2033 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2034 Delete references to mips_regs_have_home_p.
2036 2002-08-14 Keith Seitz <keiths@redhat.com>
2038 * Makefile.in (install-gdbtk): Create insight plugin directory.
2039 Install plugins.tcl file.
2041 2002-08-14 Keith Seitz <keiths@redhat.com>
2043 * configure.in: Move SUBDIRS to near top of the file so that
2044 --enable options may add things to it.
2045 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2046 * configure: Regenerate.
2048 2002-08-13 Michael Snyder <msnyder@redhat.com>
2050 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2051 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2052 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2054 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2056 * vax-tdep.c (vax_get_saved_register): Delete function.
2057 (vax_gdbarch_init): Update.
2058 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2059 (ns32k_gdbarch_init): Update.
2060 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2061 (alpha_gdbarch_init): Update.
2063 2002-08-13 Andrew Cagney <cagney@redhat.com>
2065 * regcache.c (init_regcache_descr): Overallocate the
2066 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2067 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2069 (set_register_cached): Add range checking assertions. Use
2072 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2074 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2075 numbers for MMX registers.
2077 2002-08-13 Andrew Cagney <cagney@redhat.com>
2079 * i386-tdep.c (i386_gdbarch_init): Use
2080 generic_unwind_get_saved_register.
2082 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2084 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2085 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2087 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2088 Delete. Add comment regarding this now-deleted target method.
2090 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2092 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2093 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2094 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2095 real PC and the page number (if it's within the memory bank window).
2096 (m68hc11_pseudo_register_write): Likewise when saving.
2097 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2098 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2099 (m68hc11_register_raw_size): And use 32-bit for it.
2100 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2101 16K memory bank is used by the prog; also use the virtual pc.
2103 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2105 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2106 (m68hc11_gdbarch_init): Install it in gdbarch.
2107 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2108 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2109 (MSYMBOL_SIZE): New for documentation.
2110 (insn_return_kind): Enum to specify how a function returns.
2111 (frame_extra_info): Cleanup and record the return mode.
2112 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2113 register in address computation.
2114 (m68hc11_get_return_insn): New to obtain the return instruction used
2116 (m68hc11_frame_init_saved_regs): Take into account the return
2117 instruction used by the function for far and interrupt functions.
2118 (m68hc11_init_extra_frame_info): Take into account page register.
2119 (m68hc11_frame_args_address): Adjust according to the return mode.
2120 (show_regs): Print page register only when it's used.
2122 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2124 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2125 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2126 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2128 (m68hc11_register_raw_size): Likewise.
2130 2002-08-13 Andrew Cagney <cagney@redhat.com>
2132 * i386-tdep.c (i386_register_name): Handle mmx registers.
2133 (mmx_regnum_p): New function.
2134 (i386_mmx_names): New array.
2135 (mmx_num_regs): New variable.
2136 (i386_pseudo_register_read): New function.
2137 (i386_pseudo_register_write): New function.
2138 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2140 * regcache.c (regcache_raw_read_unsigned): New function.
2141 (regcache_raw_read_signed): New function.
2142 * regcache.h (regcache_raw_read_unsigned): Declare.
2143 (regcache_raw_read_signed): Declare.
2145 2002-08-13 Andrew Cagney <cagney@redhat.com>
2147 * regcache.c (regcache_raw_read_as_address): Delete function.
2148 (regcache_cooked_read_signed): New function.
2149 (regcache_cooked_read_unsigned): New function.
2150 * regcache.h (regcache_cooked_read_signed): Declare.
2151 (regcache_cooked_read_unsigned): Declare.
2152 (regcache_raw_read_as_address): Delete declaration.
2154 * blockframe.c (generic_read_register_dummy): Use
2155 regcache_cooked_read_unsigned.
2156 * i386-tdep.c (i386_extract_struct_value_address): Use
2157 regcache_cooked_read_unsigned.
2159 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2162 double sizes according to ELF ABI flags.
2163 (gdbarch_tdep): Record elf_flags.
2165 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2167 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2168 (m6812_prolog): They can appear in 68HC12 function prologue.
2169 (m68hc11_frame_chain): Cleanup.
2171 2002-08-12 Andrew Cagney <cagney@redhat.com>
2173 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2175 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2176 (i386_linux_register_raw_size): Delete function.
2177 (i386_linux_init_abi): Update.
2178 * i386-tdep.c (i386_register_raw_size): Delete function.
2179 (i386_register_byte): Delete function.
2180 (i386_gdbarch_init): Update.
2181 (i386_register_size): Delete array.
2182 (i386_register_offset): Delete array.
2184 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2185 (REGISTER_RAW_SIZE): Delete macro.
2186 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2187 (REGISTER_BYTE): Delete macro.
2189 2002-08-11 Aidan Skinner <aidan@velvet.net>
2191 * ada-lang.c (ada_lookup_partial_symbol)
2192 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2193 prototype names so that grep ^func works properly.
2195 * ada-lang.c (ada_array_element_type)
2196 (ada_lookup_partial_symbol): Fix typos in parameter list.
2198 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2199 Fix prototype names so that grep ^func works properly.
2201 2002-08-10 Andrew Cagney <cagney@redhat.com>
2202 Elena Zannoni <ezannoni@redhat.com>
2203 Martin M. Hunt <hunt@redhat.com>
2205 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2206 (build_builtin_type_vec128i): Set the vector bit.
2207 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2208 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2209 (build_builtin_type_vec64): New function.
2210 (build_builtin_type_vec64i): New function.
2211 (build_gdbtypes): Initialize builtin_type_vec64 and
2212 builtin_type_vec64i.
2214 2002-08-09 Andrew Cagney <cagney@redhat.com>
2216 * regcache.c (regcache_dump): Compare the register offset
2218 * arch-utils.c (generic_register_byte): New function.
2219 * arch-utils.h (generic_register_byte): Declare.
2220 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2221 * gdbarch.h, gdbarch.c: Regenerate.
2223 2002-08-09 Andrew Cagney <cagney@redhat.com>
2225 * regcache.c: Include "gdbcmd.h"
2226 (_initialize_regcache): Add commands "maintenance print
2227 registers", "maintenance print raw-registers" and "maintenance
2228 print cooked-registers".
2229 (enum regcache_dump_what): Define.
2230 (dump_endian_bytes): New function.
2231 (regcache_dump): New function.
2232 (regcache_print): New function.
2233 (maintenance_print_registers): New function.
2234 (maintenance_print_raw_registers): New function.
2235 (maintenance_print_cooked_registers): New function.
2236 * Makefile.in (regcache.o): Update dependencies.
2238 2002-08-09 Michael Snyder <msnyder@redhat.com>
2240 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2241 (mips_push_arguments): Correct some comments. Use paddr_nz
2242 for printing addresses in debug output. Replace static
2243 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2244 (mips_n32n64_push_arguments): New function, cloned from
2245 mips_push_arguments and tuned for the n32/n64 ABI.
2246 (mips_push_register): Buffer needs dynamic allocation.
2247 (mips_print_register): Ditto.
2248 (do_gp_register_row): Ditto.
2249 (mips_store_return_value): Ditto.
2250 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2252 2002-08-09 Don Howard <dhoward@redhat.com>
2254 * memattr.c (mem_info_command): Print special case of upper bound
2255 as max CORE_ADDR + 1.
2257 2002-08-08 Michael Snyder <msnyder@redhat.com>
2259 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2260 returns structs by ref if they're too big to fit in two registers.
2262 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2264 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2266 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2267 mips_find_saved_regs().
2268 (mips_pop_frame): Likewise.
2270 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2272 * blockframe.c (frame_saved_regs_register_unwind): Revise
2273 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2276 2002-08-09 Grace Sainsbury <graces@redhat.com>
2278 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2279 T-packets; the 'a' is not taken as a register number.
2280 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2281 (remote_stopped_data_address): New functions; add to target
2283 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2284 prototypes to match other implementations of this
2285 function. replace integer argument with pointer -- the length
2286 field in the Z-packet is the length of what is pointed to or 1 if
2287 pointer is null. Add to target vector.
2288 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2292 * remote.c (remote_wait): Add support to extract optional
2293 watchpoint information from T-packet. Ignore unrecognized
2294 optional info in T-packet.
2295 (remote_async_wait): Ditto.
2297 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2299 * cli/cli-dump.c: Change fopen modes to use binary open modes
2300 as defined in include/fopen-bin.h throughout.
2302 2002-08-08 Michael Snyder <msnyder@redhat.com>
2304 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2306 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2308 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2309 assertion failure by returning early after a warning.
2311 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2313 * mips-tdep.c (mips_find_saved_regs): Make static.
2314 (mips_frame_init_saved_regs): New function.
2315 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2316 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2317 (mips_find_saved_regs): Delete declaration.
2319 2002-08-08 Grace Sainsbury <graces@redhat.com>
2321 * remote.c (remote_wait, remote_async_wait): Change
2322 thread_num from int to ULONGEST.
2323 (unpack_varlen_hex): Change result parameter from
2324 int * to ULONGEST *.
2326 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2328 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2329 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2331 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2333 2002-08-08 Andrew Cagney <cagney@redhat.com>
2335 * gcore.c (override_derive_stack_segment): Delete variable.
2336 (preempt_derive_stack_segment): Delete function.
2337 (derive_stack_segment): Delete function.
2338 (default_derive_stack_segment): Renamed to derive_stack_segment.
2339 (override_derive_heap_segment): Delete variable.
2340 (preempt_derive_heap_segment): Delete function.
2341 (derive_heap_segment): Delete function.
2342 (default_derive_heap_segment): Rename to derive_heap_segment.
2344 2002-08-06 Michael Snyder <msnyder@redhat.com>
2346 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2347 * mips-tdep.c (mips_EABI_use_struct_convention,
2348 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2349 New functions. (mips_use_struct_convention): Delete.
2350 (mips_gdbarch_init): set use_gdbarch_convention.
2352 2002-08-06 Michael Snyder <msnyder@redhat.com>
2354 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2355 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2356 mips_o32_reg_struct_has_addr): New functions.
2357 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2359 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2361 * regcache.c (pseudo_register): Delete function.
2362 (fetch_register): Delete function.
2363 (store_register): Delete function.
2364 (regcache_raw_read, legacy_read_register_gen): Use
2365 target_fetch_registers instead of fetch_register.
2366 (legacy_write_register_gen, regcache_raw_write): Use
2367 target_store_register instead of store_register.
2368 (write_register_bytes): Ditto.
2370 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2371 (STORE_PSEUDO_REGISTER): Delete.
2372 * gdbarch.h, gdbarch.c: Regenerate.
2374 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2376 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2377 write dump file binary.
2379 2002-08-05 Michael Snyder <msnyder@redhat.com>
2381 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2382 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2383 (mips_gdbarch_init): Set N32 target to be mips64.
2385 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2387 * frame.c (find_saved_register): Break out of loop once saved
2388 register address is found. Don't mention sparc in loop comment
2391 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2393 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2394 mips_default_saved_regsize to 8.
2396 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2398 * gcore.c: Do not include <sys/procfs.h>.
2399 * Makefile.in (gcore.o): Update dependencies.
2401 2002-08-06 Andrew Cagney <cagney@redhat.com>
2403 * configure.tgt: Make arc-*-* obsolete.
2404 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2405 * MAINTAINERS: Make arc-elf obsolete.
2406 * arc-tdep.c: Make file obsolete.
2407 * config/arc/arc.mt: Ditto.
2408 * config/arc/tm-arc.h: Ditto.
2410 2002-08-05 Theodore A. Roth <troth@verinet.com>
2412 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2414 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2416 * mcore-tdep.c (mcore_gdbarch_init): Use
2417 generic_unwind_get_saved_register instead of
2418 generic_get_saved_register.
2419 * v850-tdep.c (v850_gdbarch_init): Ditto.
2420 * frv-tdep.c (frv_gdbarch_init): Ditto.
2421 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2422 * s390-tdep.c (s390_gdbarch_init): Ditto.
2423 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2424 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2425 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2427 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2429 * objfiles.h: Add missing #include "symfile.h"
2431 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2433 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2435 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2436 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2439 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2441 * NEWS: Cleanup and nitpick.
2443 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2445 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2447 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2449 * Makefile.in (gdbtk-bp.o): Update dependencies.
2450 (gdbtk-register.o): Ditto.
2451 (gdbtk-varobj.o): Ditto.
2453 2002-08-03 Andrew Cagney <cagney@redhat.com>
2455 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2456 m68hc11_fetch_pseudo_register.
2457 (m68hc11_pseudo_register_write): Replace
2458 m68hc11_store_pseudo_register.
2459 (m68hc11_gdbarch_init): Update.
2461 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2463 * gdbarch.sh: Include "gdb_string.h".
2464 * gdbarch.c: Regenerate.
2466 * regcache.c: Include "gdb_string.h".
2467 * ax-general.c: Ditto.
2469 * std-regs.c: Ditto.
2470 * fbsd-proc.c: Ditto.
2473 * Makefile.in (regcache.o): Update dependencies.
2474 (thread.o, gdbarch.o): Ditto.
2475 (ax-general.o, gdbarch.o): Ditto.
2476 (varobj.o, std-regs.o): Ditto.
2477 (fbsd-proc.o): Specify dependencies.
2479 2002-08-02 Andrew Cagney <cagney@redhat.com>
2481 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2483 (regcache_cooked_write): Ditto.
2485 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2487 * regcache.c (regcache_cooked_read): New function.
2488 (regcache_cooked_write): New function.
2489 (read_register_gen): Rewrite using regcache_cooked_read.
2490 (write_register_gen): Rewrite using regcache_cooked_write.
2492 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2495 2002-08-02 Andrew Cagney <cagney@redhat.com>
2497 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2498 Replace the architecture methods register_read and register_write.
2499 * gdbarch.h, gdbarch.c: Regenerate.
2500 * regcache.c (init_regcache_descr): Update.
2501 (read_register_gen): Update.
2502 (write_register_gen): Update.
2503 (supply_register): Update comment.
2505 * sh-tdep.c (sh_gdbarch_init): Update.
2506 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2507 `regcache' and `gdbarch' parameters. Make `buffer' a void
2508 pointer. Update code.
2509 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2510 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2511 void pointer. Update code.
2512 (sh64_register_write): Delete.
2513 (sh4_register_read): Delete.
2514 (sh64_register_read): Delete.
2515 (sh4_register_write): Delete.
2516 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2517 void pointer, `to' parameter a void pointer.
2518 (sh_sh64_register_convert_to_raw): Ditto.
2520 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2522 * mips-tdep.c (mips_register_virtual_type): Use architecture
2523 invariant return values.
2525 2002-08-01 Andrew Cagney <cagney@redhat.com>
2527 * linux-proc.c: Include "gdb_string.h".
2528 * Makefile.in (linux-proc.o): Update dependency list.
2530 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2532 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2535 2002-08-01 Grace Sainsbury <graces@redhat.com>
2537 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2538 to_insert_watchpoint, to_remove_watchpoint,
2539 to_stopped_by_watchpoint, to_stopped_data_address,
2540 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2541 target vecctor. Define their corresponding macros so they call
2544 * target.c: Add default and debug versions of for
2545 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2546 to_insert_watchpoint, to_remove_watchpoint,
2547 to_stopped_by_watchpoint, to_stopped_data_address,
2548 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2550 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2552 * mips-tdep.c (mips_register_virtual_type): New function.
2553 (mips_gdbarch_init): Register mips_register_virtual_type()
2554 with gdbarch machinery.
2555 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2556 this file instead of tm-bigmips.h.
2557 (MIPS_REGSIZE): Delete this macro.
2558 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2559 multiarch version in mips-tdep.c will be found.
2561 2002-08-01 Andrew Cagney <cagney@redhat.com>
2563 * NEWS: Menion that CHILL has been made obsolete.
2565 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2566 * stabsread.c (read_range_type): Ditto.
2567 * gdbtypes.h: Ditto.
2568 * language.c (binop_type_check): Ditto.
2569 (binop_result_type): Ditto.
2570 (integral_type): Ditto.
2571 (character_type): Ditto.
2572 (string_type): Ditto.
2573 (boolean_type): Ditto.
2574 (structured_type): Ditto.
2575 (lang_bool_type): Ditto.
2576 (binop_type_check): Ditto.
2577 * language.h (_LANG_chill): Ditto.
2578 * dwarfread.c (set_cu_language): Ditto.
2579 * dwarfread.c (CHILL_PRODUCER): Ditto.
2580 * dwarfread.c (handle_producer): Ditto.
2581 * expression.h (enum exp_opcode): Ditto.
2582 * eval.c: Ditto for comments.
2583 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2584 * expprint.c (print_subexp): Ditto.
2585 (print_subexp): Ditto.
2586 * valops.c (value_cast): Ditto.
2587 (search_struct_field): Ditto.
2588 * value.h (COERCE_VARYING_ARRAY): Ditto.
2589 * symfile.c (init_filename_language_table): Ditto.
2590 (add_psymbol_with_dem_name_to_list): Ditto.
2591 * valarith.c (value_binop): Ditto.
2593 * valops.c (value_slice): Ditto.
2594 * symtab.h (union language_specific): Ditto.
2595 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2596 (SYMBOL_DEMANGLED_NAME): Ditto.
2597 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2598 * defs.h (enum language): Ditto.
2599 * symtab.c (got_symtab): Ditto.
2600 * utils.c (fprintf_symbol_filtered): Ditto.
2602 * ch-typeprint.c: Make file obsolete.
2603 * ch-valprint.c: Make file obsolete.
2604 * ch-lang.h: Make file obsolete.
2605 * ch-exp.c: Make file obsolete.
2606 * ch-lang.c: Make file obsolete.
2608 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2610 (TARGET_FLAGS_TO_PASS): Ditto.
2611 (CHILLFLAGS): Obsolete.
2613 (CHILL_FOR_TARGET): Obsolete.
2614 (CHILL_LIB): Obsolete.
2615 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2617 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2618 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2620 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2623 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2625 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2626 This does not change anything at the moment, but will be helpful
2627 later when full Ada support is integrated.
2629 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2631 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2634 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2636 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2637 and save it in a local variable. Use variable in later test.
2639 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2641 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2642 test. (Thanks to Daniel Jacobowitz.)
2644 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2646 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2647 (mips_abi_strings): Add "n64".
2648 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2650 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2652 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2653 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2655 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2657 * utils.c (host_pointer_to_address, address_to_host_pointer):
2658 Use gdb_assert() instead of explicit call to internal_error().
2660 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2662 * Makefile.in (rs6000-nat.o): Update dependencies.
2664 From Nicholas Duffek:
2665 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2666 (aix-thread.o): New rule.
2667 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2668 * config/powerpc/aix432.mh: New file.
2670 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2672 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2673 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2674 (fetch_core_registers, ppc_linux_supply_gregset)
2675 (ppc_linux_supply_fpregset): New functions.
2676 (ppc_linux_regset_core_fns): New.
2677 (_initialize_ppc_linux_tdep): Call add_core_fns.
2678 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2679 and ppc_linux_supply_gregset.
2680 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2681 (supply_fpregset): Call ppc_linux_supply_fpregset.
2682 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2684 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2686 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2688 * symtab.c (lookup_symbol): Demangle before lowercasing.
2690 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2692 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2694 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2695 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2696 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2697 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2699 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2700 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2701 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2702 (avr-tdep.o, mon960-rom.o): Ditto.
2703 (aout_stabs_gnu_h): Define.
2704 (symtab_h): Remove $(gdb_obstack_h).
2706 2002-07-30 Jim Blandy <jimb@redhat.com>
2708 Patch from David Carlton <carlton@math.stanford.edu>:
2709 * gdbinit.in: Move the `dir' commands that add GDB's own source
2710 directory to the search path to the end, so that the `gdb' source
2711 directory will be searched first.
2713 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2715 * gdb_obstack.h: New file.
2716 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2717 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2718 * objfiles.h: Include "gdb_obstack.h".
2719 * Makefile.in (gdb_obstack_h): Define.
2720 (symtab_h): Add $(gdb_obstack_h).
2721 (objfiles_h): Add $(gdb_obstack_h).
2723 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2724 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2725 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2726 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2727 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2728 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2729 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2730 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2732 * Makefile.in (bcache.o): Update dependencies.
2733 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2734 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2735 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2736 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2737 (stabsread.o, symfile.o, symmisc.o): Ditto.
2738 (symtab.o, typeprint.o, macroexp.o): Ditto.
2739 (macrotab.o, mdebugread.o): Ditto.
2740 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2741 (coff_ecoff_h, aout_aout64_h): Define.
2742 (aout_stabs_gnu_h, libaout_h): Define.
2744 2002-07-29 Andrew Cagney <cagney@redhat.com>
2746 * regcache.c (struct regcache_descr): Rename nr_registers to
2747 nr_cooked_registers. Revise comments describing the structure
2749 (init_regcache_descr): Update.
2750 (init_legacy_regcache_descr): Update.
2751 (read_register_gen, write_register_gen): When a cooked register in
2752 the raw register range, directly access the value from the raw
2755 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2757 * z8k-tdep.c: Do not include "obstack.h".
2758 * h8300-tdep.c, h8500-tdep.c: Ditto.
2759 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2760 * valprint.c, v850-tdep.c: Ditto.
2761 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2762 * mn10200-tdep.c: Ditto.
2764 * Makefile.in (z8k-tdep.o): Update dependencies.
2765 (m68hc11-tdep.o, valprint.o): Ditto.
2766 (v850-tdep.o, d10v-tdep.o): Ditto.
2767 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2768 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2769 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2770 (sh_opc_h, gdb_sim_sh_h): Define.
2771 (elf_sh_h, elf_bfd_h): Define.
2772 (opcode_m68hc11_h): Define.
2773 (OPCODES_SRC, OPCODES_DIR): define.
2774 (OPCODES): Use $(OPCODES_DIR).
2775 (gdb_sim_d10v_h): Rename sim_d10v_h.
2776 (gdb_sim_arm_h): Rename sim_arm_h.
2778 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2780 * utils.c (host_pointer_to_address, address_to_host_pointer):
2781 Change internal_error() message to indicate function responsible
2784 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2786 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2787 calls to local_hex_string_custom().
2789 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2791 * irix5-nat.c: Move IRIX shared library support from here...
2792 * solib-irix.c: ...to here. Revised substantially to work with
2793 generic solib framework.
2795 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2796 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2797 * mips-irix-tdep.c: New file.
2799 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2800 (mips-irix-tdep.o, solib-irix.o): New rules.
2801 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2803 * config/mips/irix6.mt (TDEPFILES): Likewise.
2804 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2806 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2808 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2809 disabled (via ``#if 0'') includes.
2811 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2813 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2814 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2815 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2816 Add support for the fpscr register.
2817 * rs6000-nat.c (regmap, fetch_inferior_registers)
2818 (store_inferior_registers, fetch_core_registers): Likewise.
2820 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2822 * rs6000-nat.c (language.h): Include.
2823 (special_regs): Delete this array.
2824 (regmap): New function.
2825 (fetch_register, store_register): Use regmap() to map gdb
2826 register numbers to ptrace register numbers. Also, use
2827 outputs from regmap() to make decisions regarding type of
2828 ptrace() call to make. In particular, don't compare against
2829 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2830 (fetch_inferior_registers, store_inferior_registers): Where
2831 possible, obtain register numbers from tdep struct. Don't
2832 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2833 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2834 (LAST_UISA_SP_REGNUM): Delete.
2836 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2838 * rs6000-nat.c (ppc-tdep.h): Include.
2839 (fetch_registers, store_register, fetch_core_registers): Don't
2840 access registers[] directly. Instead, use supply_register() or
2841 regcache_collect() as appropriate.
2842 (find_toc_address): Format hex address with local_hex_string().
2844 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2846 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2849 2002-07-24 Tom Tromey <tromey@redhat.com>
2851 * jv-exp.y: Marked all strings with _().
2852 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2854 (MethodInvocation, CastExpression, parse_number, yyerror,
2855 java_type_from_name, push_expression_name, yylex): Typo fixes.
2857 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2859 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2860 (tee_file_flush, tee_file_write, tee_file_fputs)
2861 (tee_file_isatty): New.
2862 * ui-file.h (tee_file_new): Add prototype.
2864 2002-07-24 Aidan Skinner <aidan@velvet.net>
2866 * ada-lang.c: Change k&r style function definitions to prototyped
2868 * ada-typeprint.c: Change k&r style function definitions to prototyped
2870 * ada-valprint.c: Change k&r style function definitions to prototyped
2873 2002-07-24 Andrew Cagney <cagney@redhat.com>
2875 * README: Remove reference to remote-bug.
2876 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2878 (m88k-nat.o): Delete rule.
2879 (m88k-tdep.o): Delete rule.
2880 (remote-bug.o): Delete rule.
2881 * MAINTAINERS: Mark as obsolete.
2882 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2883 * m88k-tdep.c: Make file obsolete.
2884 * config/m88k/m88k.mh: Ditto.
2885 * config/m88k/delta88v4.mh: Ditto.
2886 * config/m88k/delta88v4.mt: Ditto.
2887 * config/m88k/delta88.mt: Ditto.
2888 * config/m88k/delta88.mh: Ditto.
2889 * remote-bug.c: Ditto.
2890 * config/m88k/tm-delta88.h: Ditto.
2891 * config/m88k/nm-delta88v4.h: Ditto.
2892 * config/m88k/xm-delta88.h: Ditto.
2893 * config/m88k/xm-dgux.h: Ditto.
2894 * config/m88k/tm-m88k.h: Ditto.
2895 * config/m88k/nm-m88k.h: Ditto.
2896 * config/m88k/tm-delta88v4.h: Ditto.
2897 * m88k-nat.c: Ditto.
2898 * cxux-nat.c: Ditto.
2899 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2900 and m88*-*-* obsolete.
2901 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2904 2002-07-24 Andrew Cagney <cagney@redhat.com>
2906 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2907 constant. Same for local pointer variables.
2908 (extract_signed_integer): Ditto.
2909 * defs.h (extract_unsigned_integer): Update.
2910 (extract_signed_integer): Update.
2912 2002-07-24 Andrew Cagney <cagney@redhat.com>
2914 * regcache.c (regcache_raw_write): Change buf parameter to a
2915 constant void pointer.
2916 (regcache_raw_read): Change buf parameter to a void pointer.
2917 (legacy_write_register_gen): Change myaddr parameter a constant
2919 (supply_register): Change val parameter to a const void pointer.
2920 * regcache.h (regcache_raw_write): Update declaration.
2921 (regcache_raw_read): Update declaration.
2922 (supply_register): Update declaration.
2924 2002-07-24 Tom Tromey <tromey@redhat.com>
2926 * defs.h (gdb_readline_wrapper): Declare.
2927 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2928 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2929 * top.c (gdb_readline_wrapper): New function.
2930 (command_line_input): Use it.
2932 2002-07-24 Andrew Cagney <cagney@redhat.com>
2934 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2935 regcache_read and regcache_write.
2936 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2937 * regcache.c: Update.
2938 * sh-tdep.c (sh64_push_arguments): Update comment.
2939 (sh_pseudo_register_read): Update.
2940 (sh_pseudo_register_write): Update.
2941 (sh4_register_read): Update.
2942 (sh4_register_write): Update.
2943 (sh64_pseudo_register_read): Update.
2944 (sh64_pseudo_register_write): Update.
2945 (sh64_register_read): Update.
2946 (sh64_register_write): Update.
2947 * i386-tdep.c (i386_extract_return_value): Update.
2948 (i386_extract_struct_value_address): Update.
2949 (i386_extract_return_value): Update.
2950 * blockframe.c (generic_read_register_dummy): Update.
2951 (generic_call_dummy_register_unwind): Update
2952 * infrun.c (write_inferior_status_register): Update.
2954 2002-07-23 Jim Blandy <jimb@redhat.com>
2956 * parser-defs.h (expression_context_pc): Make this extern.
2957 (Thanks to Michael Snyder.)
2959 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2961 GDB 5.2.1 released from 5.2 branch.
2962 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2963 * README: Update to mention 5.2.1.
2965 2002-07-23 Mark Salter <msalter@redhat.com>
2967 * remote.c (remote_read_bytes): Fix check for error.
2969 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2971 * aix-thread.c (language.h): Include.
2972 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2973 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2974 Print newlines at end of debug messages.
2975 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2976 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2978 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2980 * aix-thread.c (ppc-tdep.h): Include.
2981 (special_register_p): New function.
2982 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2983 (store_regs_user_thread): Use register number information from
2984 gdbarch_tdep struct instead of hardcoded offsets relative to
2985 FIRST_UISA_SP_REGNUM.
2986 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2987 special_register_p() instead of using FPLAST_REGNUM and
2988 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2989 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2990 will be MQ's register number.
2992 2002-07-22 Michael Snyder <msnyder@redhat.com>
2994 * aix-thread.c (ops): Rename to aix_thread_ops.
2995 (base_ops): Rename to base_target.
2996 (ops_attach): Rename to aix_thread_attach.
2997 (ops_detach): Rename to aix_thread_detach.
2998 (ops_resume): Rename to aix_thread_detach.
2999 (ops_wait): Rename to aix_thread_wait.
3000 (ops_kill): Rename to aix_thread_kill.
3001 (init_ops): Rename to init_aix_thread_ops.
3002 (ops_fetch_register): Rename to aix_thread_fetch_register.
3003 (ops_store_register): Rename to aix_thread_store_register.
3004 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3005 (ops_thread_alive): Rename to aix_thread_thread_alive.
3006 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3007 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3008 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3009 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3010 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3011 (store_regs_lib): Rename to store_regs_user_thread.
3012 (store_regs_kern): Rename to store_regs_kernel_thread.
3014 2002-07-22 Michael Snyder <msnyder@redhat.com>
3016 * aix-thread.c (ops_prepare_to_store): Eliminate.
3017 (init_ops): Don't initialize ops.prepare_to_store.
3018 (store_regs_kern): Pre-fetch register buffers from child,
3019 because some registers may not be in the cache. Copy
3020 regs from register cache only if they are cached.
3021 (store_regs_lib): Copy regs from register cache only
3023 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3024 fill_gprs64): Ditto.
3026 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3028 * aix-thread.c (gdb_assert.h): Include.
3029 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3030 register sizes (from register cache) match size of buffer holding
3032 (fill_sprs32): Change parameter types to match those in the ptrace()
3034 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3035 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3037 2002-07-22 Michael Snyder <msnyder@redhat.com>
3039 * aix-thread.c (supply_sprs64): Cosmetic change.
3040 (supply_sprs32): Cosmetic change.
3041 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3042 (fill_sprs64): Use regcache_collect instead of read_register.
3043 (store_regs_lib): Use regcache_collect instead of
3044 read_register. Use fill_sprs32 instead of fill_sprs64,
3045 if debugging a 32-bit architecture.
3046 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3047 out of the register cache, instead of passing a pointer into
3048 the register cache directly to ptrace. Use regcache_collect
3049 insteaad of read_register.
3050 (ops_prepare_to_store): Use target_read_registers instead
3051 of read_register_bytes.
3053 2002-07-20 Aidan Skinner <aidan@velvet.net>
3055 * MAINTAINERS: Add self under write after approval.
3057 2002-07-20 Aidan Skinner <aidan@velvet.net>
3059 * ada-tasks.c: Change k&r style function definitions to prototyped
3062 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3064 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3065 * x86-64-tdep.c: Include "objfiles.h".
3066 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3067 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3069 2002-07-17 Michal Ludvig <michal@suse.cz>
3071 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3072 (update_context): Initialise cfa variable.
3074 2002-07-17 Michael Snyder <msnyder@redhat.com>
3076 * aix-thread.c: Shorten some long lines.
3077 Bring comments into line with code spec.
3079 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3081 * infrun.c: Re-indent using gdb_indent.sh.
3083 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3085 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3086 Leave the indentation temporarily untouched, to minimize the diffs.
3088 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3090 * stabsread.c: Make os9k sections of the code obsolete,
3092 * stabsread.h: Make os9k sections of the code obsolete.
3094 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3096 * linux-low.c (regsets_store_inferior_registers): Add free()
3097 at the end of a loop to prevent memory leak.
3098 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3099 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3100 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3102 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3104 2002-07-17 Jim Blandy <jimb@redhat.com>
3106 * macrocmd.c (info_macro_command): Remove newline from error
3109 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3111 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3112 (sh_gdbarch_init): Use it for sh-dsp.
3114 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3116 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3117 64-bit DWARF2 format.
3119 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3121 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3122 <sys/proc.h> when not available.
3124 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3126 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3127 * stabsread.c: Make os9k sections of the code obsolete.
3128 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3129 * config/i386/i386os9k.mt: Make file obsolete.
3130 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3131 (COMMON_OBS): Remove os9kread.o
3132 (SFILES): Remove os9kread.c.
3133 (os9kread.o, remote-os9k.o): Make target obsolete.
3134 * remote-os9k.c: Make file obsolete.
3135 * os9kread.c: Make file obsolete.
3138 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3140 * NEWS: Mention that the FR30 has been made obsolete.
3141 * fr30-tdep.c: Make file obsolete.
3142 * config/fr30/tm-fr30.h: Ditto.
3143 * config/fr30/fr30.mt: Ditto.
3144 * configure.tgt: Make fr30-*-elf obsolete.
3145 * MAINTAINERS: Make fr30-elf obsolete.
3147 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3149 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3150 found is not inside a section.
3152 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3154 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3156 (pdc_realloc): Use xrealloc() instead of realloc().
3158 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3160 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3161 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3162 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3165 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3167 * aix-thread.c (ptrace_check): Eliminate goto.
3168 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3171 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3173 * aix-thread.c (gdbcmd.h): Include.
3174 (DEBUG, DBG, DBG2, dbg): Eliminate.
3175 (debug_aix_thread): New static global.
3176 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3177 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3178 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3179 invocations to DBG and DBG2 macros to test against
3180 ``debug_aix_thread'' and call fprintf_unfiltered().
3181 (_initialize_aix_thread): Add new command "set debug aix-thread".
3183 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3185 From Gerhard Tonn <TON@de.ibm.com>:
3186 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3187 instead of supply_register.
3189 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3191 * dwarf2cfi.c: Include "gdb_assert.h".
3192 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3194 (update_context): Do not use __func__. Add missing ``break''.
3195 (update_context): Do not use __func__.
3197 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3199 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3200 and its setting. Set gdbarch instruction printing functions
3201 directly. For non-rs6000 case use new function
3202 gdb_print_insn_powerpc.
3203 (gdb_print_insn_powerpc): New function.
3205 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3207 * NEWS: Mention that the d30v has been marked obsolete.
3208 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3209 * configure.tgt: Mark d30v-*-* as obsolete.
3210 * d30v-tdep.c: Mark file as obsolete.
3211 * config/d30v/d30v.mt: Ditto.
3212 * config/d30v/tm-d30v.h: Ditto.
3214 2002-07-13 Aidan Skinner <aidan@velvet.net>
3216 * ada-tasks.c (add_task_entry): replace calls to
3217 malloc() with xmalloc
3218 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3220 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3221 ada_finish_decode_line_1, all_sals_for_line
3222 ada_breakpoint_rewrite): replace calls to free() with xfree()
3224 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3226 From Nicholas Duffek (with minor changes by Martin Hunt,
3227 Louis Hamilton, and Kevin Buettner):
3228 * aix-thread.c: New file.
3230 2002-07-12 Petr Sorfa <petrs@caldera.com>
3232 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3233 complaint for invalid attribute class or form.
3234 (read_func_scope): DW_AT_frame_base
3235 better handling of DW_AT_block*.
3236 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3237 better handling of DW_AT_block*.
3238 (read_common_block): DW_AT_location
3239 better handling of DW_AT_block*.
3240 (read_partial_die): DW_AT_location better handling
3242 (new_symbol): DW_AT_external better handling of
3243 DW_AT_block*. Proper initialization of variable
3245 (attr_form_is_block): New function that returns true
3246 if the attribute's form is of DW_FORM_block*.
3248 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3250 * valops.c (find_method_list): Remove comment about
3251 removed STATIC_MEMFUNCP argument.
3252 (value_find_oload_method_list): Likewise.
3254 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3256 From Nicholas Duffek:
3257 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3258 target_new_objfile_hook.
3260 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3262 From Nicholas Duffek:
3263 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3266 2002-07-12 Andrew Cagney <cagney@redhat.com>
3268 * MAINTAINERS: Mention --enable-sim-build-warnings.
3269 (m68hc11-elf): Disable sim build warnings.
3270 (m32r-elf): Mark as broken obsolete candidate.
3271 (x86_64-linux-gnu): Mark as buildable with -Werror.
3272 (arm-elf): Change -w to ``,'' which enables warnings but not
3275 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3277 * bcache.h: Update copyright.
3278 (struct bstring, struct bcache): Move definition to "bcache.c".
3279 Replaced by opaque declaration.
3280 (bcache_xfree): Replace free_bcache.
3281 (bcache_xmalloc, bcache_memory_used): Declare.
3283 * bcache.c: Update copyright.
3284 (struct bstring, struct bcache): Moved to here from "bcache.h".
3286 (bcache_xmalloc, bcache_memory_used): New functions.
3287 (bcache_xfree): Replace function free_bcache.
3289 * Makefile.in (objfiles.o): Add $(bcache_h).
3290 (objfiles_h): Remove $(bcache_h).
3291 (symfile.o): Add $(bcache_h).
3293 * symmisc.c: Update copyright.
3294 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3295 (print_objfile_statistics): Use bcache_memory_used.
3297 * symfile.c: Include "bcache.h".
3298 (reread_symbols): Use bcache_xfree.
3299 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3300 (add_psymbol_to_list): Pass psymbol_cache by value.
3301 (add_psymbol_with_dem_name_to_list): Ditto.
3303 * objfiles.h: Update copyright.
3304 (struct bcache): Declare opaque. Do not include "bcache.h".
3305 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3307 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3309 * objfiles.c: Include "bcache.h". Update copyright.
3310 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3312 (free_objfile): Use bcache_xfree.
3314 2002-07-11 Grace Sainsbury <graces@redhat.com>
3316 * monitor.c (monitor_fetch_register): Make name a constant.
3317 (monitor_store_register): Same.
3319 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3321 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3322 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3323 (finish_block) For non-function blocks, hash the symbol table. For
3324 function blocks, mark the symbol table as unhashed.
3325 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3326 (msymbol_hash_iw): Likewise.
3327 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3329 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3330 (lookup_minimal_symbol): Likewise for both.
3331 * symtab.h (struct block): Add `hashtable' flag. Comment the
3333 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3334 (ALL_BLOCK_SYMBOLS): Update.
3335 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3336 (struct symbol): Add `hash_next' pointer.
3337 * symtab.c (lookup_block_symbol): Search using the hash table when
3339 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3340 (search_symbols, find_addr_symbol): Likewise.
3342 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3343 (read_dst_symtab): Likewise.
3344 * jv-lang.c (get_java_class_symtab): Likewise.
3345 * mdebugread.c: Include "gdb_assert.h".
3346 (shrink_block): Assert that the block being modified is not hashed.
3347 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3348 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3350 (dump_symtab): Recognize hashed blocks.
3351 * printcmd.c (print_frame_args): Assert that function blocks do not
3352 have hashed symbol tables.
3353 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3354 (fill_in_ada_prototype, debug_print_block): Likewise.
3355 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3357 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3359 * stack.c (print_frame): Use result of frame_address_in_block()
3360 instead of fi->pc when evaluating symbols.
3361 (backtrace_command_1): Ditto.
3363 2002-07-11 Andrew Cagney <cagney@redhat.com>
3365 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3368 * arm-tdep.c (arm_register_name): Make return type constant.
3370 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3372 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3374 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3375 * s390-tdep.c (s390_fp_regnum): Ditto.
3376 (s390_read_fp): Ditto.
3377 (s390_pop_frame): Ditto.
3378 (_initialize_s390_tdep): Ditto.
3379 * remote.c (get_remote_state): Ditto.
3380 * procfs.c (mappingflags): Ditto.
3381 * memattr.c (_initialize_mem): Ditto.
3382 * mcore-tdep.c (mcore_pop_frame): Ditto.
3383 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3384 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3385 * language.c (set_case_str): Ditto.
3386 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3387 * frv-tdep.c (new_variant): Ditto.
3388 (frv_stopped_data_address): Ditto.
3389 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3390 (context_alloc): Ditto.
3391 (frame_state_alloc): Ditto.
3392 (unwind_tmp_obstack_init): Ditto.
3393 (unwind_tmp_obstack_free): Ditto.
3394 (cfi_read_fp): Ditto.
3395 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3396 (cris_pop_frame): Ditto.
3397 * c-lang.c (scanning_macro_expansion): Ditto.
3398 (finished_macro_expansion): Ditto.
3399 (c_preprocess_and_parse): Ditto.
3400 * gdbarch.sh: Ditto.
3401 * gdbarch.h, gdbarch.c: Regenerate.
3402 * config/mn10200/tm-mn10200.h: Adjust indentation.
3403 * target.c: Adjust indentation.
3404 * symtab.h: Adjust indentation.
3405 * stabsread.h: Adjust indentation.
3406 * remote-es.c: Adjust indentation.
3407 * os9kread.c: Adjust indentation.
3409 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3411 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3412 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3414 2002-07-10 Grace Sainsbury <graces@redhat.com>
3416 * NEWS: Mention m68k, mcore multi-arching.
3417 * MAINTAINERS: Change status of m68k, mcore to reflect
3420 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3422 * valops.c (find_overload_match): Free oload_syms.
3424 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3426 Define HAVE_SYS_PROC_H if sys/proc.h exists
3427 * configure.in: Add check for sys/proc.h
3428 * config.in: Regenerate.
3429 * configure: Regenerate.
3431 2002-07-09 Grace Sainsbury <graces@redhat.com>
3433 * config/m68k/tm-m68k.h: Remove macros wrapped in
3434 #if !GDB_MULTI_ARCH.
3436 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3438 * config.in, configure: Regenerate.
3440 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3442 * dwarf2cfi.c: Include "gcore.h".
3443 (execute_stack_op): Fix implementation of the
3444 DW_OP_deref and DW_OP_deref_size operators by letting do their
3445 lookup in the target.
3447 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3449 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3450 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3453 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3455 Fix PR gdb/595, gdb/602
3456 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3457 Don't call value_cast, just read the vtable pointer; update comments
3460 2002-07-05 Grace Sainsbury <graces@redhat.com>
3462 * config/mcore/tm-mcore.h: Remove file.
3463 * config/mcore/mcore.mt: Remove definition of TM_FILE
3464 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3466 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3468 * i386bsd-tdep.c: Include "gdb_string.h".
3470 2002-07-04 Grace Sainsbury <graces@redhat.com>
3472 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3473 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3475 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3476 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3477 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3478 (RETVAL_REGNUM): Move macros from tm-mcore.h
3479 (mcore_reg_struct_has_addr): New function.
3480 (mcore_gdbarch_init): Added initializations for the macros removed
3483 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3485 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3486 traditonal string branding within the ELF header.
3488 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3490 * symtab.c (remove_params): New function.
3491 (make_symbol_overload_list): Use it instead of cplus_demangle.
3492 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3494 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3496 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3498 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3500 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3501 and tdep->sigtramp_end.
3502 * i386obsd-nat.c: New file.
3503 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3505 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3506 Don't call get_current_frame().
3508 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3510 * i386-nat.c (child_post_startup_inferior): New function
3511 calling i386_cleanup_dregs if
3512 I386_USE_GENERIC_WATCHPOINTS is defined.
3513 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3514 conditional to acknowledge that i386-nat.c has its
3515 own child_post_startup_inferior function.
3517 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3519 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3520 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3521 instead of MAX_REGISTER_RAW_SIZE.
3522 (i386_extract_return_value, i386_extract_struct_value_address):
3523 Convert to use regcache.
3524 (i386_gdbarch_init): Set max_register_raw_size and
3525 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3526 Set extract_return_value and extract_struct_value_address instead
3527 of their deprecated variants.
3529 Convert i386 target to generic dummy frames.
3530 * i386-tdep.c: Include "symfile.h".
3531 (i386_frameless_signal_p): Consider a function to be frameless if
3532 the pc points at the first instruction of the function.
3533 (i386_frame_chain): Handle (generic) call dummies.
3534 (i386_frame_saved_pc): Likewise.
3535 (i386_frame_init_saved_regs): Remove code dealing with call
3536 dummies on the stack.
3537 (i386_push_dummy_frame): Removed.
3538 (i386_call_dummy_words): Removed.
3539 (i386_fix_call_dummy): Removed.
3540 (i386_push_return_address): New function.
3541 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3542 parameter, and don't call get_current_frame.
3543 (i386_pop_frame): New function.
3544 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3545 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3546 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3547 call_dummy_length to 0, set call_dummy_words to NULL, set
3548 sizeof_call_dummy_words to 0, set fix_call_dummy to
3549 generic_fix_call_dummy, set pc_in_call_dummy to
3550 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3551 generic_push_dummy_frame, set push_return_address to
3552 i386_push_return_address and set frame_chain_valid to
3553 generic_file_frame_chain_valid.
3555 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3557 * gdbarch.sh (struct regcache): Add opaque declaration.
3558 (EXTRACT_RETURN_VALUE): New architecture method.
3559 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3560 * gdbarch.h, gdbarch.c: Regenerate.
3561 * arch-utils.c (legacy_extract_return_value): New function.
3562 * arch-utils.h (legacy_extract_return_value): Declare.
3563 * values.c (value_being_returned): Re-enable code handling
3564 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3565 deprecated_grub_regcache_for_registers call to block handling
3566 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3567 (EXTRACT_RETURN_VALUE): Do not define.
3569 2002-07-03 Grace Sainsbury <graces@redhat.com>
3571 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3572 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3573 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3574 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3575 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3576 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3577 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3578 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3579 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3580 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3581 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3582 argument so the function fits the prototype in the architecture
3584 (mcore_pop_frame): Remove argument so the function fits the
3585 prototype. Use get_current_frame instead of the argument.
3586 (mcore_push_arguments): Change type of struct_return so the
3587 function can be used in the architecture vector.
3588 (mcore_store_struct_return): Add.
3589 (mcore_frame_init_saved_regs): Add.
3590 (mcore_gdbarch_init): Add function calls to replace the macros
3591 removed from tm-mcore.h
3593 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3595 * infcmd.c (print_return_value): Remove compatibility code calling
3596 deprecated_grub_regcache_for_registers.
3598 * values.c: Include "regcache.h".
3599 (value_being_returned): Update. Use
3600 deprecated_grub_regcache_for_registers to extract the register
3602 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3603 ``struct regcache''.
3604 * Makefile.in (values.o): Add dependency on $(regcache_h).
3606 * inferior.h (run_stack_dummy): Change type of second parameter to
3607 a ``struct regcache''.
3608 * valops.c (hand_function_call): Change type of retbuf to ``struct
3609 regcache''. Allocate using regcache_xmalloc, clean using
3610 make_cleanup_regcache_xfree.
3611 * infcmd.c (run_stack_dummy): Update. Use
3612 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3614 * regcache.c (do_regcache_xfree): New function.
3615 (make_cleanup_regcache_xfree): New function.
3616 * regcache.h (make_cleanup_regcache_xfree): Declare.
3618 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3620 * event-top.c (command_line_handler): Don't read past
3621 beginning of buffer.
3623 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3625 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3627 (varobj_create): Store frame_id for root.
3628 (varobj_gen_name): Use xasprintf.
3629 (varobj_update): Save and restore frame using get_frame_id() and
3631 (create_child): Use xasprintf.
3632 (new_root_variable): Initialize frame_id.
3633 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3634 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3635 to prevent memory leak.
3637 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3639 * valops.c (hand_function_call): Move declaration of retbuf to
3640 start of function, allocate using malloc, add a cleanup but before
3641 the inf_status cleanup, cleanup the buffer. Rename local variable
3642 old_chain to inf_status_cleanup.
3644 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3646 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3648 * cli/cli-decode.c (cmd_func_p): New function.
3649 (cmd_func): New function.
3651 * command.h: Add cmd_func() and cmd_func_p().
3653 2002-07-03 Grace Sainsbury <graces@redhat.com>
3655 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3656 (REGISTER_SIZE): Remove.
3657 (MAX_REGISTER_RAW_SIZE): Remove.
3658 (REGISTER_VIRTUAL_TYPE): Remove.
3659 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3660 (REGISTER_NAME): Remove.
3661 (USE_GENERIC_DUMMY_FRAMES): Remove.
3662 (CALL_DUMMY): Remove.
3663 (CALL_DUMMY_START_OFFSET): Remove.
3664 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3665 (CALL_DUMMY_LOCATION): Remove.
3666 (FIX_CALL_DUMMY): Remove.
3667 (CALL_DUMMY_ADDRESS): Remove.
3668 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3669 (SAVE_DUMMY_FRAME_TOS): Remove.
3670 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3671 (mcore_register_virtual_type): New function.
3672 (mcore_register_byte): New function.
3673 (mcore_register_size): New function.
3674 (mcore_register_name): New function.
3675 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3676 macros removed from tm-mcore.h.
3677 (mcore_dump_tdep): Add.
3678 (_initialize_mcore_tdep): Add gdbarch_register call.
3680 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3682 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3683 frameless_look_for_prologue, such that we actually call this
3686 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3688 * frame.h (frame_address_in_block): New function.
3690 * blockframe.c (frame_address_in_block): New function extracted
3691 from get_frame_block().
3692 (get_frame_block): Use frame_address_in_block().
3693 (block_innermost_frame): Use frame_address_in_block() to match
3694 the frame pc address against the block boundaries rather than
3695 the frame pc directly. This prevents a failure when a frame pc
3696 is actually a return-address pointing immediately after the end
3699 2002-07-02 Grace Sainsbury <graces@redhat.com>
3701 * MAINTAINERS: Add self under write after approval.
3703 2002-07-02 Grace Sainsbury <graces@redhat.com>
3705 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3706 used in architecture vector. The default is
3707 m68k_local_breakpoint_from_pc.
3708 (m68k_local_breakpoint_from_pc): Add.
3709 (enum): Add register numbers from tm-m68k.h.
3710 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3712 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3713 GDB_MULTI_ARCH_PARTIAL.
3714 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3715 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3717 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3718 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3719 to enum in m68k-tdep.c
3721 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3723 * solib-osf.c (open_map): Compute the list of shared libraries
3724 loaded by the inferior, rather than the list of libraries loaded
3725 by GDB itself. Otherwise, GDB ends up reading the symbols from
3726 the wrong shared libraries...
3728 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3730 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3731 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3733 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3735 (FRAMELESS_SIGNAL): Remove function.
3736 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3737 i386_linux_saved_pc_after_call): Removed.
3738 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3739 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3740 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3742 * i386-tdep.c (i386_frameless_signal_p): New function.
3743 (i386_frame_chain): Deal with frameless signals.
3744 (i386_sigtramp_saved_sp): New function.
3745 (i386_frame_saved_pc): Deal with frameless signals.
3746 (i386_saved_pc_after_call): Make sure the correct value is
3747 returned just after entry into a sigtramp.
3748 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3749 i386fbsd4_sc_sp_offset): New variables.
3750 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3751 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3752 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3753 similiar to what we already did for sc_pc_offset.
3754 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3757 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3759 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3761 * config/i386/tm-x86-64linux.h: New.
3762 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3764 * config/i386/nm-x86-64.h: Rename to ...
3765 * config/i386/nm-x86-64linux.h: ... this one.
3766 * config/i386/x86-64linux.mh: Reflect the above change.
3768 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3770 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3771 with sigcontext_addr. Add sc_sp_offset.
3772 (i386bsd_sigtramp_saved_pc): Remove prototype.
3773 (i386bsd_sicontext_addr): Add prototype.
3774 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3775 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3776 (i386_svr4_sigtramp_saved_pc): Removed.
3777 (i386_svr4_sigcontext_addr): New function.
3778 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3779 Initialize tdep->sigcontext_addr instead. Initialize
3780 tdep->sc_pc_offset and tdep->sc_sp_offset.
3781 (i386_gdbarch_init): Likewise.
3782 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3784 (i386bsd_sigtramp_saved_pc): Remove function.
3785 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3786 Initialize tdep->sigcontext_addr instead. Initialize
3788 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3789 of tdep->sigtramp_saved_pc.
3790 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3791 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3794 * i386-tdep.c (i386_frameless_function_invocation,
3795 i386_frame_num_args, i386_frame_init_saved_regs,
3796 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3797 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3798 i386_extract_return_value, i386_store_return_value,
3799 i386_extract_struct_value_address, i386_register_virtual_type,
3800 i386_register_convertible, i386_register_convert_to_virtual,
3801 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3802 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3805 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3807 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3809 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3810 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3811 this macro. Include "value.h".
3813 2002-06-30 Aidan Skinner <aidan@velvet.net>
3815 * ada-exp.tab.c: remove as it's a generated file
3816 * ada-lex.c: remove as it's a generated file
3818 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3820 * config/i386/tm-i386.h (struct frame_info, struct
3821 frame_saved_regs, struct value, struct type): Remove forward
3824 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3825 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3826 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3827 (FILL_FPXREGSET): Define.
3829 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3831 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3832 i[3456]86-*-netbsd* case.
3833 * config/i386/tm-obsd.h: Removed.
3834 * config/i386/obsd.mt: Removed.
3835 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3837 (MH_CFLAGS): Add -DYYDEBUG=0.
3839 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3840 i386nbsd_sc_pc_offset on OpenBSD too.
3842 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3843 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3844 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3846 * i386bsd-tdep.c: Include "arch-utils.h".
3847 (i386bsd_aout_in_solib_call_trampoline): New function.
3848 (i386bsd_init_abi): Set in_solib_call_trampoline to
3849 i386bsd_aout_in_solib_call_trampoline.
3850 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3851 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3853 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3855 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3856 (struct obstack, struct bcache): Add opaque declarations.
3857 * Makefile.in (macrotab_h): Update
3859 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3861 * blockframe.c (generic_find_dummy_frame): Change return type to
3862 ``struct regcache''.
3863 (struct dummy_frame): Replace field ``registers'' with regcache, a
3864 struct regcache object.
3865 (generic_find_dummy_frame): Update.
3866 (generic_push_dummy_frame): Update. Use regcache_xfree,
3867 regcache_xmalloc and regcache_cpy.
3868 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3870 (deprecated_generic_find_dummy_frame): Update.
3871 (generic_read_register_dummy): Update. Use
3872 regcache_read_as_address.
3873 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3874 (generic_get_saved_register): Update. Use regcache_read.
3876 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3878 * Makefile.in (objfiles_h): Add $(bcache_h).
3879 * objfiles.h: Include "bcache.h".
3881 * Makefile.in (symtab_h): Remove $(bcache_h).
3882 * symtab.h: Do not include "bcache.h".
3884 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3886 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3887 generic_func_frame_chain_valid.
3889 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3891 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3892 * config/i386/tm-fbsd.h: Likewise.
3894 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3896 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3897 generic_unwind_get_saved_register.
3899 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3901 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3902 * regcache.c (supply_register): Add missing argument to
3903 register_buffer call.
3905 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3907 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3908 Solaris /bin/grep does not not like it. From Peter Schauer.
3910 2002-06-26 Tom Tromey <tromey@redhat.com>
3912 * command.h (add_setshow_cmd): Declare.
3913 (add_setshow_cmd_full): Declare.
3914 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3915 returns void. Use add_setshow_cmd_full.
3916 (add_setshow_cmd_full): New function.
3917 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3918 (add_setshow_boolean_cmd): Likewise.
3920 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3922 * config/vax/tm-vax.h: Protect from multiple inclusion.
3923 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3924 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3925 * config/vax/tm-vaxbsd.h: ...here. New file.
3926 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3928 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3930 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3931 (BELIEVE_PCC_PROMOTION): Remove.
3932 (AP_REGNUM): Move to...
3933 * config/vax/nm-vax.h: ...here.
3934 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3935 (vax_breakpoint_from_pc): New function.
3936 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3937 and gdbarch_believe_pcc_promotion.
3939 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3941 * Makefile.in (vax_tdep_h): Define.
3942 (vax-tdep.o): Use $(vax_tdep_h).
3943 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3944 (vax_dump_tdep): New function.
3945 (_initialize_vax_tdep): Register vax_dump_tdep.
3946 * vax-tdep.h: Include osabi.h.
3947 (struct gdbarch_tdep): New.
3949 2002-06-26 Andrew Cagney <cagney@redhat.com>
3951 * frame.h (deprecated_generic_find_dummy_frame): Rename
3952 generic_find_dummy_frame.
3953 * blockframe.c (generic_find_dummy_frame): Make static.
3954 (deprecated_generic_find_dummy_frame): New function.
3955 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3956 generic_find_dummy_frame with deprecated_find_dummy_frame.
3957 (sh64_nofp_frame_init_saved_regs): Ditto.
3958 (sh_fp_frame_init_saved_regs): Ditto.
3959 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3960 (s390_frame_chain): Ditto.
3961 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3963 2002-06-26 Grace Sainsbury <graces@redhat.com>
3965 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3966 gdbarch vector are at the top.
3968 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3969 (FRAME_ARGS_ADDRESS): Remove.
3970 (FRAME_LOCALS_ADDRESS): Remove.
3971 (FRAME_NUM_ARGS): Remove.
3972 (FRAME_ARGS_SKIP): Remove.
3973 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3974 (m68k_gdbarch_init): Add gdbarch initializations for macros
3975 undefined in tm-m68k.h
3977 2002-06-26 Grace Sainsbury <graces@redhat.com>
3979 * monitor.h: Add the function regname to monitor_ops
3980 structure. This way NUM_REGS does not have to be a constant.
3981 * monitor.c (monitor_fetch_register): Added support for regname
3982 function. The function is called if the array regnames is NULL.
3983 (monitor_store_register): Same.
3984 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3986 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3987 cpu32bug_cmds.regname to point to new function.
3988 * abug-rom.c (abug_regname): Same as above.
3989 (init_abug_cmds): Same.
3990 * dbug-rom.c (dbug_regname): Same as above.
3991 (init_dbug_cmds): Same.
3992 * remote-est.c (est_regname): Same.
3993 (init_est_cmds): Same.
3994 * rom68k-rom.c (rom68k_regname): Same.
3995 (init_rom68k_cmds): Same.
3997 2002-06-25 Tom Tromey <tromey@redhat.com>
3999 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4001 2002-06-25 Andrew Cagney <cagney@redhat.com>
4003 * infrun.c (stop_registers): Change variable's type to ``struct
4005 (xmalloc_inferior_status): Delete function.
4006 (free_inferior_status): Delete function.
4007 (normal_stop): Use regcache_cpy.
4008 (struct inferior_status): Change type of fields ``stop_registers''
4009 and ``registers'' to ``struct regcache''.
4010 (write_inferior_status_register): Use regcache_write.
4011 (save_inferior_status): Instead of calling
4012 xmalloc_inferior_status, allocate the inf_status buffer directly.
4013 Use regcache_dup_no_passthrough and regcache_dup to save the
4015 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4016 Replace the stop_registers regcache instead of overriding it. Use
4017 regcache_xfree. Instead of calling free_inferior_status, xfree
4018 the buffer directly.
4019 (discard_inferior_status): Use regcache_xfree. Instead of calling
4020 free_inferior_status, xfree the buffer directly.
4021 (build_infrun): Use regcache_xmalloc.
4022 (_initialize_infrun): Delete redundant call to build_infrun.
4024 * Makefile.in (infcmd.o): Add $(regcache_h).
4026 * infcmd.c: Include "regcache.h".
4027 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4028 obtain the address of `stop_registers' register buffer.
4029 (print_return_value): Ditto.
4031 * inferior.h (struct regcache): Add opaque declaration.
4032 (stop_registers): Change variable's declared type to ``struct
4035 2002-06-24 Tom Tromey <tromey@redhat.com>
4037 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4038 * target.c (initialize_targets): Fixed typo in
4039 trust-readonly-sections `show' documentation.
4041 * main.c: Marked all strings with _().
4043 2002-06-24 Don Howard <dhoward@redhat.com>
4045 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4046 that means max CORE_ADDR+1.
4047 (lookup_mem_region): Ditto.
4048 (mem_info_command): Ditto.
4050 2002-06-24 Grace Sainsbury <graces@redhat.com>
4052 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4053 (REGISTER_BYTES_OK): Remove.
4054 (REGISTER_BYTES): Remove.
4055 (STORE_STRUCT_RETURN): Remove.
4056 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4057 (STORE_RETURN_VALUE): Remove.
4058 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4059 (FRAME_CHAIN): Remove.
4060 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4061 (FRAME_SAVED_PC): Remove.
4062 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4063 (m68k_store_struct_return): Add.
4064 (m68k_deprecated_extract_return_value): Add.
4065 (m68k_deprecated_extract_struct_value_address): Add.
4066 (m68k_store_return_value): Add.
4067 (m68k_frame_chain): Add.
4068 (m68k_frameless_function_invocation): Add.
4069 (m68k_frame_saved_pc): Add.
4070 (m68k_gdbarch_init): added set_gdbarch calls for new
4071 functions and deleted macros.
4073 2002-06-23 Tom Tromey <tromey@redhat.com>
4075 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4076 (ALLDEPFILES): Likewise.
4077 (udiheaders): Removed.
4078 (udip2soc.o): Likewise.
4079 (udi2go32.o): Likewise.
4081 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4083 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4085 * infrun.c (_initialize_infrun): Delete unnecessary call to
4088 * regcache.h: Update comments describing the regcache_cpy family
4090 (regcache_save, regcache_restore): Delete declaration.
4091 (regcache_save_no_passthrough): Delete declaration.
4092 (regcache_restore_no_passthrough): Delete declaration.
4093 * regcache.c (regcache_save): Delete function.
4094 (regcache_save_no_passthrough): Delete function.
4095 (regcache_restore): Delete function.
4096 (regcache_restore_no_passthrough): Delete function.
4098 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4100 * config/m68k/tm-m68k.h: Fix typo.
4101 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4102 (m68k_frame_init_saved_regs): Declare.
4104 2002-06-21 Jim Blandy <jimb@redhat.com>
4106 Remove some vestiges of Harris 88k support.
4107 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4108 register numbering quirk.
4109 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4110 odd symbols occurring in Harris 88k ELF targets.
4112 2002-06-21 Tom Tromey <tromey@redhat.com>
4114 * gdb_locale.h: New file.
4115 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4116 (defs_h): Added gdb_locale.h.
4117 * configure, config.in: Rebuilt.
4118 * configure.in (PACKAGE): Define.
4119 * defs.h: Include gdb_locale.h.
4120 * main.c (captured_main): Call setlocale, bindtextdomain,
4123 2002-06-21 Dave Brolley <brolley@redhat.com>
4125 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4126 * config/frv/frv.mt: New file.
4127 * config/frv/tm-frv.h: New file.
4128 * configure.tgt: Support frv-*-*.
4129 * Makefile.in (frv-tdep.o): New target.
4130 * frv-tdep.c: New file.
4131 * NEWS: Mention frv.
4133 2002-06-21 Dave Brolley <brolley@redhat.com>
4135 * MAINTAINERS: Add self to "Write After Approval" list.
4137 2002-06-21 Grace Sainsbury <graces@redhat.com>
4139 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4140 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4141 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4142 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4143 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4145 * m68k-tdep.c: Include arch-utils.h
4146 (m68k_register_raw_size): Add.
4147 (m68k_register_virtual_size): Add.
4148 (m68k_register_virtual_type): Add.
4149 (m68k_register_name): Add.
4150 (m68k_stack_align): Add.
4151 (m68k_register_byte): Add.
4152 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4155 2002-06-21 Grace Sainsbury <graces@redhat.com>
4157 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4158 m68k_find_saved_regs.
4159 (m68k_pop_frame): Removed saved_regs structure, and replaced
4160 references to it with frame->saved_regs.
4161 (m68k_gdbarch_init): Added function calls to initialize the
4163 (m68k_fix_call_dummy): Add.
4164 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4165 (CALL_DUMMY): Remove.
4166 (CALL_DUMMY_LENGTH): Remove.
4167 (CALL_DUMMY_START_OFFSET): Remove.
4168 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4169 (FIX_CALL_DUMMY): Remove.
4170 (PUSH_DUMMY_FRAME): Remove.
4171 (POP_FRAME): Remove.
4173 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4175 * parse.c (parse_fprintf): New function used to avoid calls to
4176 fprintf in bison parser generated debug code.
4177 * parser-defs.h: Declaration of new parse_fprintf function.
4178 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4179 Set YYDEBUG to 1 by default.
4180 Set YYFPRINTF as parse_fprintf.
4182 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4184 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4186 (pointer_encoding, enum ptr_encoding): New.
4187 (execute_cfa_program): Take care about pointer encoding.
4188 (dwarf2_build_frame_info): Only call parse_frame_info for
4189 .debug_frame and .eh_frame.
4190 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4191 fixed augmentation handling, added relative addressing,
4192 ignore duplicate FDEs. Added comments.
4193 * dwarf2cfi.c: Reindented.
4195 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4197 * event-top.c (command_handler): Don't use space_at_cmd_start
4198 unless there is sbrk() on the host. Assign time and space data
4199 to union fields of the appropriate length.
4201 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4203 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4204 x86_64_register_name. Return type changed to 'const char *'.
4205 (x86_64_register_name2nr): Rename to x86_64_register_number.
4206 (x86_64_gdbarch_init): Update to reflect the change.
4207 * x86-64-tdep.h: Ditto.
4208 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4209 (supply_fpregset): Ditto.
4211 2002-06-19 Andrew Cagney <cagney@redhat.com>
4213 * regcache.h: Update copyright.
4214 (struct regcache, struct gdbarch): Add opaque declarations.
4215 (current_regcache): Declare global variable.
4216 (regcache_read, regcache_write): Add gdbarch parameter.
4217 (regcache_save, regcache_save_no_passthrough)
4218 (regcache_restore, regcache_restore_no_passthrough)
4219 (regcache_dup, regcache_dup_no_passthrough)
4220 (regcache_cpy, regcache_cpy_no_passthrough)
4221 (deprecated_grub_regcache_for_registers)
4222 (deprecated_grub_regcache_for_register_valid)
4223 (regcache_valid_p): Add function declarations.
4225 * regcache.c: Update copyright.
4226 (regcache_descr_handle): New global variable.
4227 (struct regcache_descr): Define.
4228 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4229 (regcache_descr, xfree_regcache_descr): New functions.
4230 (struct regcache): Define.
4231 (regcache_xmalloc, regcache_xfree): New functions.
4232 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4233 (regcache_dup, regcache_dup_no_passthrough): New functions.
4234 (regcache_valid_p, regcache_read_as_address): New functions.
4235 (deprecated_grub_regcache_for_registers): New function.
4236 (deprecated_grub_regcache_for_register_valid): New function.
4237 (current_regcache): New global variable.
4238 (register_buffer): Add regcache parameter. Update calls.
4239 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4240 (read_register_gen, write_register_gen): Update register_buffer
4241 call. Test for legacy_p instead of gdbarch_register_read_p or
4242 gdbarch_register_write_p.
4243 (regcache_collect): Update register_buffer call.
4244 (build_regcache): Rewrite. Use deprecated grub functions.
4245 (regcache_save, regcache_save_no_passthrough): New functions.
4246 (regcache_restore, regcache_restore_no_passthrough): New
4248 (_initialize_regcache): Create the regcache_data_handle. Swap
4249 current_regcache global variable.
4251 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4252 parameter to regcache_read and regcache_write calls.
4253 (sh4_register_read): Ditto.
4254 (sh64_pseudo_register_read): Ditto.
4255 (sh64_register_read): Ditto.
4256 (sh_pseudo_register_write): Ditto.
4257 (sh4_register_write): Ditto.
4258 (sh64_pseudo_register_write): Ditto.
4259 (sh64_register_write): Ditto.
4261 * defs.h (XCALLOC): Define.
4263 2002-06-19 Grace Sainsbury <graces@redhat.com>
4265 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4266 * m68k-tdep.c (m68k_gdbarch_init): Added.
4267 (m68k_dump_tdep): Added.
4269 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4271 * ada-lang.c (fill_in_ada_prototype): Update comment.
4273 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4275 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4277 (mips_abi_string, mips_abi_strings): New.
4278 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4279 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4280 tdep->mips_abi_string. Honor mips_abi_string. Default to
4281 O32 if no ABI is found.
4282 (mips_dump_tdep): Use mips_abi_strings.
4283 (mips_abi_update): New function.
4284 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4285 ``set mips abi'' and ``show mips abi''. Check the size of
4288 2002-06-19 Andrew Cagney <cagney@redhat.com>
4290 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4293 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4295 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4296 current frame using only the first stack size adjustment. All
4297 subsequent size adjustments are not considered to be part of
4298 the "static" part of the current frame.
4299 Compute the address of the saved registers relative to the
4300 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4301 in use in this frame.
4303 2002-06-18 Don Howard <dhoward@redhat.com>
4305 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4306 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4307 suggesting this solution.
4309 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4311 * config/romp/xm-rtbsd.h: Delete file.
4312 * config/romp/rtbsd.mh: Delete file.
4314 2002-06-18 Keith Seitz <keiths@redhat.com>
4316 * breakpoint.c (condition_command): Post breakpoint_modify
4317 when a condition is added to an existing breakpoint.
4318 (commands_command): Likewise for commands.
4319 (set_ignore_count): Likewise for ignore counts.
4320 If no tty, do not simply return, still need to send event
4322 (ignore_command): Only print a newline if the command came
4324 Don't call breakpoints_changed, since this is now properly
4325 handled by set_ignore_count.
4327 2002-06-18 Andrew Cagney <cagney@redhat.com>
4329 * MAINTAINERS: Note that cris-elf target can be compiled with
4331 * cris-tdep.c (cris_register_name): Make return type constant.
4332 (cris_breakpoint_from_pc): Ditto.
4334 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4336 * frame.h (struct frame_info): Change type of context to
4339 2002-06-17 Andrew Cagney <cagney@redhat.com>
4341 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4343 * gdbarch.h, gdbarch.c: Regenerate.
4344 * config/mips/tm-mips.h (mips_register_name): Update.
4345 * i386-tdep.h (i386_register_name): Update.
4346 * mips-tdep.c (mips_register_name): Update
4347 * alpha-tdep.c (alpha_register_name): Update.
4348 * arch-utils.c (legacy_register_name): Update.
4349 * arch-utils.h (legacy_register_name): Update.
4350 * avr-tdep.c (avr_register_name): Update.
4351 * ia64-tdep.c (ia64_register_name): Update.
4352 * i386-tdep.c (i386_register_name): Update.
4353 * sparc-tdep.c (sparc32_register_name): Update.
4354 (sparc64_register_name): Update.
4355 (sparclite_register_name): Update.
4356 (sparclet_register_name): Update.
4357 * sh-tdep.c (sh_generic_register_name): Update.
4358 (sh_sh_register_name): Update.
4359 (sh_sh3_register_name): Update.
4360 (sh_sh3e_register_name): Update.
4361 (sh_sh_dsp_register_name): Update.
4362 (sh_sh3_dsp_register_name): Update.
4363 (sh_sh4_register_name): Update.
4364 (sh_sh64_register_name): Update.
4365 * s390-tdep.c (s390_register_name): Update.
4366 * rs6000-tdep.c (rs6000_register_name): Update.
4367 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4368 (ns32k_register_name_32382): Update.
4369 * d10v-tdep.c (d10v_ts2_register_name): Update.
4370 (d10v_ts3_register_name): Update.
4371 * xstormy16-tdep.c (xstormy16_register_name): Update.
4372 * vax-tdep.c (vax_register_name): Update.
4373 * v850-tdep.c (v850_register_name): Update.
4374 * m68hc11-tdep.c (m68hc11_register_name): Update.
4375 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4376 (am33_register_name): Update.
4378 2002-06-17 Grace Sainsbury <graces@redhat.com>
4380 * m68k-tdep.c: Reindented.
4382 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4384 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4385 list of predefined types.
4387 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4389 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4390 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4391 REGISTER_CONVERT_TO_RAW): Remove defines.
4392 (i386_register_virtual_type, i386_register_convertible,
4393 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4395 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4396 macros mentioned above.
4398 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4399 (i386lynx_saved_pc_after_call): Remove prototype.
4400 * i386ly-tdep.c: Include "i386-tdep.h".
4401 (i386lynx_saved_pc_after_call): Make static. Use
4402 read_memory_nobpt instead of read_memory. Use
4403 read_memory_unsigned_integer instead of read_memory_integer.
4404 (i386lynx_init_abi): New function.
4405 (i386lynx_coff_osabi_sniffer): New function.
4406 (_initialize_i386bsd_tdep): New function.
4408 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4409 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4410 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4411 (i386_fix_call_dummy): Remove prototype.
4412 * i386-tdep.c (i386_call_dummy_words): New variable.
4413 (i386_gdbarch_init): Adjust for removal of the
4414 macros mentioned above.
4416 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4418 * command.h (add_setshow_auto_boolean_cmd): Replace
4419 add_set_auto_boolean_cmd.
4420 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4421 add_set_auto_boolean_cmd.
4422 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4423 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4424 mask-address'' command.
4425 (show_mask_address): Add cmd parameter.
4426 * remote.c (add_packet_config_cmd): Update. Change type of
4427 set_func and show_func to cmd_sfunc_ftype.
4428 (_initialize_remote): Update `set remote Z-packet'
4429 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4430 (show_remote_protocol_e_packet_cmd): Ditto.
4431 (show_remote_protocol_E_packet_cmd): Ditto.
4432 (show_remote_protocol_P_packet_cmd): Ditto.
4433 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4434 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4435 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4436 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4437 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4438 (show_remote_protocol_Z_packet_cmd): Ditto.
4439 (show_remote_protocol_binary_download_cmd): Ditto.
4440 (show_remote_cmd): Pass NULL to all of above.
4442 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4444 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4445 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4446 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4447 POP_FRAME): Remove defines.
4448 (i386_push_arguments, i386_store_struct_return,
4449 i386_extract_return_value, i386_store_return_value,
4450 i386_extract_struct_value_address, i386_push_dummy_frame,
4451 i386_pop_frame): Renove prototypes.
4452 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4453 macros mentioned above.
4455 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4457 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4458 add_set_boolean_cmd.
4459 (add_setshow_cmd): New function.
4460 * command.h (add_setshow_boolean_cmd): Replace
4461 add_set_boolean_cmd.
4462 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4463 and ``set rdiromatzero''.
4464 * maint.c (_initialize_maint_cmds): Update commented out code.
4465 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4466 * target.c (initialize_targets): Update `set
4467 trust-readonly-sections'.
4468 * remote.c (_initialize_remote): Update `set remotebreak'.
4470 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4472 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4473 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4474 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4475 fit into multi-arch framework.
4476 (i386_breakpoint_from_pc): New function.
4477 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4480 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4481 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4482 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4483 (i386_frameless_function_invocation, i386_frame_num_args,
4484 i386_frame_init_saved_regs): Remove prototypes.
4485 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4486 macros mentioned above.
4488 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4490 * cli/cli-decode.c (set_cmd_cfunc): Update.
4491 (set_cmd_sfunc): Update.
4492 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4493 (set_cmd_sfunc, set_cmd_cfunc): Update.
4494 * cli/cli-decode.h: Update.
4496 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4498 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4499 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4501 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4503 * defs.h (auto_boolean): Declare enum.
4504 * command.h (cmd_auto_boolean): Delete enum.
4505 * mips-tdep.c (mask_address_var): Update.
4506 (mips_mask_address_p): Update.
4507 (show_mask_address): Update.
4508 * remote.c (struct packet_config): Update.
4509 (update_packet_config): Update.
4510 (show_packet_config_cmd): Update.
4511 (packet_ok): Update.
4512 (add_packet_config_cmd): Update.
4513 (_initialize_remote):
4514 * command.h: Update.
4515 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4516 (do_setshow_command): Update.
4517 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4518 * cli/cli-decode.h: Update.
4520 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4522 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4523 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4524 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4525 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4526 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4527 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4529 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4530 list of DJGPP COFF targets.
4532 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4533 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4534 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4535 (FP0_REGNUM): Remove define.
4536 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4537 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4538 (i386_register_virtual_size): Remove protoype.
4539 * i386-tdep.c (i386_register_virtual_size): Removed.
4540 (i386_extract_return_value, i386_store_return_value): Use
4541 FP0_REGNUM instead of NUM_FREGS to determine whether the
4542 floating-point registers are available.
4543 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4544 Adjust for removal of macros mentioned above.
4546 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4548 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4550 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4552 (supply_gregset, fill_gregset): Remove use of register keyword and
4553 remove declaration for regmap. Use I386_NUM_GREGS instead of
4554 NUM_REGS and NUM_FREGS.
4555 (FPREGSET_FSAVE_OFFSET): Remove.
4556 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4557 NUM_FREGS to determine whether the floating-point registers are
4560 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4561 gnu_store_registers): Replace usage of NUM_GREGS with
4564 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4565 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4566 usage of NUM_GREGS with I386_NUM_GREGS.
4568 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4570 * i386bsd-nat.c: Include "i386-tdep.h".
4571 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4574 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4575 and associated comment. They no longer make any sense, since we
4576 don't use this file anymore on Linux.
4578 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4579 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4580 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4581 elements in these arrays.
4582 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4585 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4587 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4588 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4590 2002-06-14 Andrew Cagney <cagney@redhat.com>
4592 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4593 EXTRACT_RETURN_VALUE.
4594 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4595 EXTRACT_STRUCT_VALUE_ADDRESS.
4596 * gdbarch.h, gdbarch.c: Regenerate.
4598 * values.c (value_being_returned): Handle
4599 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4600 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4602 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4603 * arm-tdep.c (arm_gdbarch_init): Update.
4604 * avr-tdep.c (avr_gdbarch_init): Update.
4605 * cris-tdep.c (cris_gdbarch_init): Update.
4606 * d10v-tdep.c (d10v_gdbarch_init): Update.
4607 * ia64-tdep.c (ia64_gdbarch_init): Update.
4608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4609 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4610 * s390-tdep.c (s390_gdbarch_init): Update.
4611 * sh-tdep.c (sh_gdbarch_init): Update.
4612 * s390-tdep.c (s390_gdbarch_init): Update.
4613 * sparc-tdep.c (sparc_gdbarch_init): Update.
4614 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4615 * v850-tdep.c (v850_gdbarch_init): Update.
4616 * vax-tdep.c (vax_gdbarch_init): Update.
4617 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4620 * config/arc/tm-arc.h: Update.
4621 * config/d30v/tm-d30v.h: Update.
4622 * config/fr30/tm-fr30.h: Update.
4623 * config/h8300/tm-h8300.h: Update.
4624 * config/h8500/tm-h8500.h: Update.
4625 * config/i386/tm-i386.h: Update.
4626 * config/i386/tm-ptx.h: Update.
4627 * config/i386/tm-symmetry.h: Update.
4628 * config/i960/tm-i960.h: Update.
4629 * config/m32r/tm-m32r.h: Update.
4630 * config/m68k/tm-delta68.h: Update.
4631 * config/m68k/tm-linux.h: Update.
4632 * config/m68k/tm-m68k.h: Update.
4633 * config/m88k/tm-m88k.h: Update.
4634 * config/mcore/tm-mcore.h: Update.
4635 * config/mips/tm-mips.h: Update.
4636 * config/mn10200/tm-mn10200.h: Update.
4637 * config/pa/tm-hppa.h: Update.
4638 * config/pa/tm-hppa64.h: Update.
4639 * config/sparc/tm-sp64.h: Update.
4640 * config/sparc/tm-sparc.h: Update.
4641 * config/sparc/tm-sparclet.h: Update.
4642 * config/z8k/tm-z8k.h: Update.
4644 2002-06-14 Andrew Cagney <cagney@redhat.com>
4646 * Makefile.in (i386_linux_tdep_h): Define.
4647 (i386_tdep_h, i387_tdep_h): Define.
4648 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4649 $(i386_tdep_h) and $(i387_tdep_h).
4650 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4652 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4654 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4655 Already covered by the default.
4657 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4658 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4659 (i386_gdbarch_init): Initialize long_double_format and long_double
4662 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4663 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4665 * config/i386/i386sol2.mh: ... here.
4666 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4667 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4668 (SIGCONTEXT_PC_OFFSET): Remove define.
4669 (IN_SIGTRAMP): Remove define.
4670 * i386-sol2-tdep.c: New file.
4672 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4673 * config/i386/tm-i386nw.h: Removed.
4675 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4676 USE_STRUCT_CONVENTION): Remove defines.
4677 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4678 (get_longjmp_target): Remove prototype.
4679 (IN_SIGTRAMP): Remove define.
4680 (i386bsd_in_sigtramp): Remove prototype.
4681 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4682 function. Update comment accordingly
4683 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4684 (FRAME_SAVED_PC): Remove define.
4685 (i386bsd_frame_saved_pc): Remove prototype.
4686 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4687 GET_LONGJMP_TARGET): Remove defines.
4688 (get_longjmp_target): Remove prototype.
4689 (IN_SIGTRAMP): Remove define.
4690 (i386bsd_in_sigtramp): Remove prototype.
4691 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4692 function. Update comment accordingly
4693 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4694 (FRAME_SAVED_PC): Remove define.
4695 (i386bsd_frame_saved_pc): Remove prototype.
4696 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4698 (USE_STRUCT_CONVENTION): Remove prototype.
4699 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4701 (_initialize_i386bsd_nat): Revise logic to determine some
4702 constants at compile time when compiling a native GDB. Warn if
4703 things don't match up with what we expect.
4704 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4706 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4707 to use date stored in `struct gdbarch_tdep'.
4708 (i386bsd_sigcontext_offset): Remove varaible.
4709 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4710 stored in `struct gdbarch_tdep'.
4711 (i386bsd_frame_saved_pc): Make static.
4712 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4713 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4714 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4715 i386fbsd4_sc_pc_offset): New variables.
4716 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4717 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4719 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4721 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4722 Modify the value of i386fbsd_sigtramp_start and
4723 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4724 i386fbsd_sigtramp_end.
4725 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4728 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4729 define to i386-linux-tdep.h.
4730 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4731 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4733 (i386_linux_register_name, i386_linux_register_byte,
4734 i386_linux_register_raw_size): Remove prototypes.
4735 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4736 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4737 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4738 TARGET_WRITE_PC): Remove defines.
4739 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4740 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4741 i386_linux_write_pc): Remove prototypes.
4742 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4743 (get_longjmp_target): Remove prototype.
4744 * i386-linux-tdep.h: New file.
4745 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4746 * i386-linux-tdep.c: Include "i386-tdep.h" and
4747 "i386-linux-tdep.h".
4748 (i386_linux_register_name, i386_linux_register_byte,
4749 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4750 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4752 (i386_linux_init_abi): New function.
4753 (_initialize_i386_linux_tdep): New function.
4755 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4756 (i386_saved_pc_after_call): Remove prototype.
4757 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4758 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4759 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4760 (i386_register_name, i386_stab_reg_to_regnum,
4761 i386_dwarf_reg_to_regnum): Remove prototypes.
4762 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4763 SIZEOF_SSE_REGS): Remove defines.
4764 (REGISTER_BYTES): Remove define.
4765 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4766 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4767 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4768 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4769 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4770 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4771 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4772 (get_longjmp_target): Remove prototype.
4773 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4774 (sigtramp_saved_pc): Remove define.
4775 (i386v4_sigtramp_saved_pc): Remove prototype.
4776 * config/i386/tm-go32.h (FRAME_CHAIN,
4777 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4778 (i386go32_frame_saved_pc): Remove prototype.
4779 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4780 (get_longjmp_target): Remove prototype.
4781 * i386-tdep.h: Include "osabi.h".
4782 (enum i386_abi): Removed.
4783 (enum struct_return): New enum.
4784 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4785 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4786 sc_pc_offset members.
4787 (i386_gdbarch_register_os_abi): Remove prototype.
4788 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4789 I386_SSE_NUM_REGS): New defines.
4790 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4791 I386_SSE_SIZEOF_REGS): New defines.
4792 (i386_register_name, i386_register_byte, i386_register_raw_size):
4794 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4795 (i386bsd_sigtramp_saved_pc): New prototype.
4796 * i386-tdep.c: Don't include "elf-bfd.h".
4797 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4798 i386_frame_chain, i386_saved_pc_after_call): Make static.
4799 (i386_frame_saved_pc): Rewrite to call architecture dependent
4800 function to deal with signal handlers. Make static.
4801 (i386go32_frame_saved_pc): Removed.
4802 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4804 (i386_get_longjmp_target): New function.
4805 (default_struct_convention, pcc_struct_convention,
4806 reg_struct_convention, valid_conventions, struct_convention): New
4808 (i386_use_struct_convention): New function.
4809 (i386v4_sigtramp_saved_pc): Renamed to
4810 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4811 (i386_pc_in_sigtramp): New function.
4812 (i386_abi_names): Removed.
4813 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4814 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4816 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4817 i386_gdbarch_register_os_abi): Removed.
4818 (struct i386_abi_handler): Removed.
4819 (i386_abi_handler_list): Removed.
4820 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4822 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4823 i386_nw_init_abi): New functions.
4824 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4825 Use set_gdbarch_xxx() calls instead of relying on macros for a
4827 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4828 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4829 Register the various architecture variants defined in this file.
4831 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4833 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4834 (struct main_type): Remove arg_types member. Update comments for
4836 (TYPE_ARG_TYPES): Remove.
4837 (TYPE_FN_FIELD_ARGS): Update.
4838 (smash_to_method_type): Update prototype.
4840 * c-typeprint.c (cp_type_print_method_args): Take method type
4841 instead of argument list. Use new argument layout. Simplify.
4842 (c_type_print_args): Use new argument layout. Simplify.
4843 (c_type_print_base): Update call to cp_type_print_method_args.
4844 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4845 argument; use die->type instead. Update call to
4846 smash_to_method_type.
4847 (read_structure_scope): Update call to dwarf2_add_member_fn.
4848 * gdbtypes.c (allocate_stub_method): Update comment.
4849 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4850 Use new argument layout.
4851 (check_stub_method): Use new argument layout. Don't count
4852 void as an argument.
4853 (print_arg_types): Update comments. Use new argument layout.
4854 (recursive_dump_type): Don't print arg_types member.
4855 * hpread.c (hpread_read_struct_type): Use new argument layout.
4856 (fixup_class_method_type): Likewise.
4857 (hpread_type_lookup): Likewise.
4858 * stabsread.c (read_type): Update calls to read_args and
4859 smash_to_method_type.
4860 (read_args): Use new argument layout. Simplify.
4861 * valops.c (typecmp): Use new argument layout. Update parameters
4862 and comments. Simplify.
4863 (hand_function_call): Use new argument layout.
4864 (search_struct_method): Update call to typecmp.
4865 (find_overload_match): Use new argument layout.
4867 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4869 * NEWS: Mention multithreaded debug support for gdbserver.
4871 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4873 * MAINTAINERS: Mention NEWS.
4875 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4877 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4878 (struct mips_objfile_private, compare_pdr_entries): New.
4879 (non_heuristic_proc_desc): Read the ".pdr" section if it
4882 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4884 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4885 (arm_debug): New static variable.
4886 (_initialize_arm_tdep): Add ``set debug arm'' command.
4888 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4890 * Makefile.in (sim_arm_h): Define.
4891 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4892 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4893 (arm_register_sim_regno): New function, map an internal REGNUM
4894 onto a simulator register number.
4895 (arm_gdbarch_init): Set register_sim_regno.
4897 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4899 * MAINTAINERS: Add self.
4901 2002-06-11 Jim Blandy <jimb@redhat.com>
4903 * source.c (source_info): Mention whether the symtab has
4904 information about preprocessor macros.
4906 Call the command `info macro', not `show macro'.
4907 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4909 (_initialize_macrocmd): Register `info_macro_command' in
4910 `infolist', not `showlist'.
4912 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4914 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4915 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4916 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4917 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4918 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4920 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4921 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4922 (_initialize_mips_tdep): Remove dead code.
4923 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4924 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4925 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4926 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4927 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4928 MIPS_LAST_FP_ARG_REGNUM): Remove.
4930 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4932 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4933 (unwind_tmp_obstack_free, parse_frame_info)
4934 (update_context, cfi_read_fp, cfi_write_fp)
4935 (cfi_frame_chain, cfi_init_extra_frame_info)
4936 (cfi_virtual_frame_pointer): Use the above function.
4937 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4939 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4941 * v850-tdep.c (v850_type_is_scalar): New function.
4942 (v850_use_struct_convention): Match current gcc implementation
4943 as close as possible.
4944 (v850_push_arguments): Fix stack_offset handling. Don't write
4945 struct_addr into register. This is done by v850_store_struct_return.
4946 (v850_extract_return_value): Care for structs.
4947 (v850_store_return_value): Ditto.
4948 (v850_store_struct_return): Actually write address.
4950 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4952 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4953 without debug information too.
4955 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4957 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4958 Make multi-arch pure.
4959 * gdbarch.h, gdbarch.c: Re-generate.
4960 * arm-tdep.c (arm_print_float_info): Update.
4961 * arch-utils.h (default_print_float_info): Update.
4962 * arch-utils.c (default_print_float_info): Update.
4963 * infcmd.c (float_info): Update call.
4965 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4967 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4968 the front of the initialize list.
4970 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4972 * infrun.c (struct inferior_status): Replace fields
4973 selected_frame_address and selected_level with field
4975 (save_inferior_status): Update. Use get_frame_id.
4976 (struct restore_selected_frame_args): Delete.
4977 (restore_selected_frame): Update. Use frame_find_by_id.
4978 (restore_inferior_status): Update.
4980 * breakpoint.h (struct breakpoint): Change type of
4981 watchpoint_frame to frame_id.
4982 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4983 call to get_current_frame.
4984 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4986 (watchpoint_check): Use frame_find_by_id.
4988 * frame.h (record_selected_frame): Delete declaration.
4989 * stack.c (record_selected_frame): Delete function.
4991 * frame.h (struct frame_id): Define.
4992 (get_frame_id): Declare.
4993 (frame_find_by_id): Declare.
4994 * frame.c (frame_find_by_id): New function.
4995 (get_frame_id): New function.
4997 2002-06-10 Andrey Volkov <avolkov@transas.com>
4999 * ser-e7kpc.c: Fix duplicated define and call of
5000 _initialize_ser_e7000pc
5002 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5004 * signals/signals.c (target_signal_from_host): Fix #ifdef
5006 (do_target_signal_to_host): Likewise.
5008 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5010 * mips-tdep.c (mips_find_abi_section): New function.
5011 (mips_gdbarch_init): Call it.
5013 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5015 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5016 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5017 after Andrew's 2002-06-08 gdbarch change.
5019 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5021 * i386-linux-nat.c (suppy_gregset): Don't supply
5022 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5024 (fill_gregset): Don't fetch it under the same circumstances.
5026 2002-06-09 Andrew Cagney <cagney@redhat.com>
5028 * Makefile.in (callback_h): Define.
5029 (remote_sim_h): Update path to remote-sim.h.
5030 (remote-rdp.o): Add $(callback_h).
5031 (remote-sim.o): Use $(callback_h).
5032 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5033 * remote-rdp.c: Include "gdb/callback.h".
5035 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5037 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5038 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5040 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5042 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5043 * rdi-share/serpardr.c: Ditto.
5044 * rdi-share/unixcomm.c: Ditto.
5045 * rdi-share/serdrv.c: Ditto.
5046 * rdi-share/hostchan.h: Ditto.
5047 * rdi-share/hostchan.c: Ditto.
5048 * rdi-share/host.h: Ditto.
5049 * rdi-share/devsw.c: Ditto.
5051 * objfiles.h: Change type of obj_private to void pointer.
5052 * pa64solib.c: Update copyright. Don't include "assert.h", use
5053 strcmp instead of STREQ, use LONGEST, do not use PTR
5054 * somsolib.c: Ditto.
5056 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5057 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5058 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5060 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5062 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5063 (default_get_saved_register): Delete function.
5064 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5065 generic_unwind_get_saved_register.
5066 * gdbarch.h, gdbarch.c: Re-generate.
5068 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5070 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5071 generic_func_frame_chain_valid.
5072 * gdbarch.h, gdbarch.c: Re-generate.
5073 * blockframe.c (generic_func_frame_chain_valid): Only check
5074 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5075 passing FP to PC_IN_CALL_DUMMY.
5078 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5080 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5081 (register_gdbarch_data): Initialize init_p.
5082 (gdbarch_data): Initialize data pointer using the init function.
5083 (init_gdbarch_data): Delete function.
5084 (gdbarch_update_p): Update.
5085 (initialize_non_multiarch): Update.
5086 (struct gdbarch): Add field initialized_p.
5087 * gdbarch.h, gdbarch.c: Re-generate.
5089 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5091 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5092 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5093 better do the things actually here.
5094 * x86-64-tdep.c (x86_64_register_name2nr): New.
5095 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5096 (x86_64_gdbarch_init): Respect the above change.
5097 * x86-64-tdep.h (x86_64_register_name2nr)
5098 (x86_64_register_nr2name): Add prototypes.
5099 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5101 2002-06-06 Michael Snyder <msnyder@redhat.com>
5103 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5104 Delete extra braces and re-indent.
5105 (d10v_store_return_value): Char return values
5106 must be shifted over by one byte in R0.
5107 (d10v_extract_return_value): Delete extra braces, re-indent.
5109 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5111 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5112 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5113 (d10v_integer_to_address): Rewrite.
5114 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5115 the d10v specific functions which take care of converting to the
5118 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5120 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5121 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5123 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5125 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5127 * config/tm-linux.h: Ditto.
5128 * config/alpha/tm-alphalinux.h: Ditto.
5129 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5130 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5131 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5132 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5133 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5134 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5135 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5136 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5137 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5138 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5139 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5140 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5141 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5142 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5143 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5144 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5145 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5146 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5147 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5148 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5149 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5150 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5151 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5152 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5153 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5154 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5155 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5156 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5157 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5158 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5159 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5160 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5161 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5162 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5163 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5164 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5165 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5167 2002-05-04 Aidan Skinner <aidan@velvet.net>
5169 * ada-exp.tab.c: New file
5170 * ada-exp.y: New file
5171 * ada-lang.c: New file
5172 * ada-lang.h: New file
5173 * ada-lex.c: New file
5174 * ada-lex.l: New file
5175 * ada-tasks.c: New file
5176 * ada-typeprint.c: New file
5177 * ada-valprint.c: New file
5179 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5181 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5182 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5184 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5186 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5187 insetead of ppc-linux-tdep.o.
5188 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5189 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5191 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5193 2002-05-07 Christian Groessler <chris@groessler.org>
5194 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5195 bit register contents for little endian hosts.
5197 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5199 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5202 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5204 * gdbarch.h: Regenerate.
5206 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5208 * MAINTAINERS: Add everyone to write-after-approval list.
5210 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5212 * stack.c (frame_info): Use frame_register_unwind instead of
5213 saved_regs. Mention when the SP is on the stack or in a register.
5215 * frame.h (frame_register_unwind_ftype): Define. Document.
5216 (struct frame_info): Add field register_unwind and
5217 register_unwind_cache.
5218 (frame_register_unwind): Declare.
5219 (generic_unwind_get_saved_register): Declare.
5221 * frame.c (frame_register_unwind): New function.
5222 (generic_unwind_get_saved_register): New function.
5224 * blockframe.c (generic_call_dummy_register_unwind): New function.
5225 (frame_saved_regs_register_unwind): New function.
5226 (set_unwind_by_pc): New function.
5227 (create_new_frame): New function.
5228 (get_prev_frame): New function.
5230 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5232 * a29k-share/: Delete directory.
5233 * remote-vx29k.c: Delete file.
5235 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5237 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5238 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5240 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5242 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5243 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5246 (sparcnbsd-tdep.o): New dependency lists.
5247 * NEWS: Note new UltraSPARC NetBSD native configuration.
5248 * configure.host (sparc64-*-netbsd*): New host.
5249 * configure.tgt (sparc-*-netbsdelf*)
5250 (sparc-*-netbsd*): Set gdb_target to nbsd.
5251 (sparc64-*-netbsd*): New target.
5252 * sparc64nbsd-nat.c: New file.
5253 * sparcnbsd-nat.c: New file.
5254 * sparcnbsd-tdep.c: New file.
5255 * sparcnbsd-tdep.h: New file.
5256 * config/sparc/nbsd.mt: New file.
5257 * config/sparc/nbsd64.mh: New file.
5258 * config/sparc/nbsd64.mt: New file.
5259 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5260 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5262 * config/sparc/nbsdaout.mt: Remove.
5263 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5264 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5266 * config/sparc/nbsdelf.mt: Remove.
5267 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5268 sparc-nat.c compatiblity defines.
5269 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5270 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5271 * config/sparc/tm-nbsd64.h: New file.
5272 * config/sparc/tm-nbsdaout.h: Remove.
5273 * config/sparc/xm-nbsd.h: Remove.
5275 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5277 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5278 * sparc-tdep.c: Include osabi.h.
5279 (gdbarch_tdep): Add osabi member.
5280 (_initialize_sparc_tdep): Use gdbarch_register.
5281 (sparc_gdbarch_init): Use generic OS ABI framework.
5282 (sparc_dump_tdep): New function.
5284 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5286 * corefile.c (do_captured_read_memory_integer): Return non-zero
5288 (safe_read_memory_integer): Copy result of memory read when
5289 status is non-zero. Also, add comments.
5291 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5293 * Makefile.in (ppc_tdep_h): Define.
5296 (rs6000-tdep.o): Use $(ppc_tdep_h).
5299 (ppcnbsd-tdep.o): New dependency lists.
5300 * ppc-tdep.h: Use generic OS ABI framework.
5301 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5302 (ppc_linux_init_abi): New functions.
5303 (ppc_sysv_abi_broken_use_struct_convention)
5304 (ppc_sysv_abi_use_struct_convention)
5305 (ppc_sysv_abi_push_arguments): Move to...
5306 * ppc-sysv-tdep.c: ...here.
5307 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5308 * rs6000-tdep.c (process_note_abi_tag_sections)
5309 (get_elfosabi): Remove.
5310 (rs6000_gdbarch_init): Use generic OS ABI framework.
5311 (rs6000_dump_tdep): New function.
5312 (_initialize_rs6000_tdep): Use gdbarch_register.
5313 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5314 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5315 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5316 of ppc-linux-tdep.o.
5317 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5318 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5319 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5320 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5321 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5322 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5324 2002-05-29 Jim Blandy <jimb@redhat.com>
5326 * macroscope.c (default_macro_scope): Put `void' in empty argument
5329 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5331 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5332 * arch-utils.c: Include "sim-regno.h".
5333 * gdbarch.sh: Don't include "sim-regno.h".
5334 * gdbarch.h, gdbarch.c: Regenerate.
5335 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5337 * arch-utils.h (legacy_register_sim_regno): To here.
5338 * remote-sim.c (legacy_register_sim_regno): Move function from
5340 * arch-utils.c (legacy_register_sim_regno): To here.
5342 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5344 * sim-regno.h: New file.
5345 * Makefile.in (sim_regno_h): Define.
5346 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5347 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5348 (legacy_register_sim_regno): New function.
5349 (one2one_register_sim_regno): New function.
5350 (gdbsim_fetch_register): Rewrite.
5351 (gdbsim_store_register): Only store a register when
5352 REGISTER_SIM_REGNO is valid.
5353 * d10v-tdep.c: Include "sim-regno.h".
5354 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5355 (d10v_ts3_register_sim_regno): Ditto.
5356 * gdbarch.sh: Include "sim-regno.h".
5357 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5358 * gdbarch.h, gdbarch.c: Regenerate.
5359 * arch-utils.h (default_register_sim_regno): Delete declaration.
5360 * arch-utils.c (default_register_sim_regno): Delete function.
5362 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5364 * ppcnbsd-nat.c: Rewrite.
5365 * ppcnbsd-tdep.c: New file.
5366 * ppcnbsd-tdep.h: New file.
5367 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5368 solib.o, and solib-svr4.o.
5369 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5370 nbsd-tdep.o, and corelow.o.
5372 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5374 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5375 `tr' and `sed'. Mention that `broken' targets are not expected to
5378 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5380 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5381 Let PC point right after the prologue before looking up symbols.
5383 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5385 * i386-tdep.c (i386_register_virtual_type): Return
5386 builtin_type_vec128i for SSE registers.
5388 * gdbtypes.h (builtin_type_vec128i): Declare.
5390 * gdbtypes.c (build_builtin_type_vec128i): New function.
5391 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5392 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5393 (build_gdbtypes): Initialize new builtin vector types.
5394 (_initialize_gdbtypes): Register new vector types with gdbarch.
5396 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5398 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5399 since it has been multi-arch'd.
5400 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5401 Move Alpha and VAX multi-arch news entries to same section
5402 as other multi-arch news.
5404 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5406 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5407 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5408 static. Rename some register numbers to put them in ns32k-tdep
5410 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5411 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5413 (_initialize_ns32k_tdep): Use gdbarch_register.
5414 * ns32k-tdep.h: New file.
5415 * ns32knbsd-tdep.c: New file.
5416 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5417 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5418 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5419 REGISTER_BYTES, REGISTER_BYTE): Remove.
5420 * config/ns32k/tm-ns32k.h: New file.
5421 * config/ns32k/tm-umax.h: Remove.
5423 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5425 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5426 ns32k_store_struct_return, ns32k_extract_return_value,
5427 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5429 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5430 ns32k_saved_pc_after_call.
5431 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5432 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5433 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5434 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5435 ns32k_extract_struct_value_address.
5437 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5439 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5440 ns32k_fix_call_dummy): New.
5441 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5442 ns32k_call_dummy_words.
5443 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5444 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5445 CALL_DUMMY_NARGS): Remove.
5446 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5448 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5450 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5451 ns32k_frame_saved_pc, ns32k_frame_args_address,
5452 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5453 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5454 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5455 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5456 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5457 (BREAKPOINT): Remove..
5458 (FRAME_CHAIN): Define as ns32k_frame_chain.
5459 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5460 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5461 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5462 (FRAME_FIND_SAVED_REGS): Remove.
5463 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5464 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5465 (POP_FRAME): Define as ns32k_pop_frame.
5467 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5469 * ns32k-tdep.c (ns32k_register_byte_32082,
5470 ns32k_register_byte_32382, ns32k_register_raw_size,
5471 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5473 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5474 ns32k_register_byte_32382.
5475 * config/ns32k/tm-umax.h: Update copyright years.
5476 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5477 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5478 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5479 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5480 (ns32k_get_enter_addr): Fix prototype.
5482 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5484 * ns32k-tdep.c: Update copyright years.
5485 (ns32k_register_name_32082): New function.
5486 (ns32k_register_name_32382): Ditto.
5487 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5488 (REGISTER_NAME): Define as ns32k_register_name_32382.
5489 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5490 (REGISTER_NAME): Define as ns32k_register_name_32082.
5492 2002-05-24 Jim Blandy <jimb@redhat.com>
5494 * dwarf2read.c (free_line_header): Use xfree, not free.
5496 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5498 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5499 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5501 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5503 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5505 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5507 From Ross Alexander at NEC Europe:
5508 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5510 2002-05-23 Michael Snyder <msnyder@redhat.com>
5512 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5513 for input, rather than parse_and_eval_address.
5515 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5517 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5518 * Makefile.in (sim_d10v_h): Update definition.
5520 2002-05-24 Andrew Cagney <cagney@redhat.com>
5522 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5523 change `2002-05-22 Michael Snyder' below.
5524 (d10v_push_arguments): Ditto.
5525 (d10v_extract_return_value): Ditto.
5527 2002-05-23 Jim Blandy <jimb@redhat.com>
5529 * macrotab.c (check_for_redefinition): Don't complain if the new
5530 definition is the same as the previous one. Take more arguments
5531 to allow the comparison.
5532 (macro_define_object, macro_define_function): Pass more arguments
5533 to check_for_redefinition.
5535 2002-05-22 Michael Snyder <msnyder@redhat.com>
5537 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5538 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5539 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5540 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5541 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5542 Add a temp variable to save a call (and a memory read).
5543 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5544 if possible (so that PC_IN_CALL_DUMMY will work).
5546 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5548 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5550 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5552 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5554 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5555 (dwarf2_build_frame_info): Add offset to fde->initial_location
5556 so that frames of shared libraries are mapped correctly.
5557 (execute_stack_op): Change type of 'result' from ULONGEST to
5560 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5562 * config/alpha/tm-nbsd.h: Include solib.h.
5564 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5566 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5567 assumptions about the host's byte order.
5569 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5571 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5573 * alphanbsd-tdep.c: Include solib-svr4.h.
5574 * shnbsd-tdep.c: Ditto.
5576 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5578 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5579 nbsd-tdep.h to dependency list.
5580 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5581 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5582 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5583 nbsdaout.mh and nbsdelf.mh consistently.
5584 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5585 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5586 nbsdaout.mt and nbsdelf.mh consistently.
5587 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5588 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5589 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5590 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5591 a.out shared library stuff from here...
5592 * config/nm-nbsdaout.h: ...to here.
5593 * config/tm-nbsd.h: Remove.
5594 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5595 * config/arm/nbsd.mh: Remove.
5596 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5598 * config/arm/nbsdaout.mh: New file.
5599 * config/arm/nbsdelf.mh: New file.
5600 * config/arm/nm-nbsdaout.h: New file.
5601 * config/i386/nbsd.mh: Remove.
5602 * config/i386/nbsd.mt: Remove.
5603 * config/i386/nbsdaout.mh: New file.
5604 * config/i386/nbsdaout.mt: New file.
5605 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5606 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5607 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5608 i386_register_u_addr): Remove.
5609 * config/i386/nm-nbsdaout.h: New file.
5610 * config/i386/nm-nbsdelf.h: Remove.
5611 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5612 (USE_STRUCT_CONVENTION): Remove.
5613 * config/i386/tm-nbsdaout.h: New file.
5614 * config/i386/tm-nbsdelf.h: Remove.
5615 * config/m68k/nbsd.mh: Remove.
5616 * config/m68k/nbsd.mt: Remove.
5617 * config/m68k/nbsdaout.mh: New file.
5618 * config/m68k/nbsdaout.mt: New file.
5619 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5620 * config/m68k/nm-nbsdaout.h: New file.
5621 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5622 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5623 * config/ns32k/nbsd.mh: Remove.
5624 * config/ns32k/nbsd.mt: Remove.
5625 * config/ns32k/nbsdaout.mh: New file.
5626 * config/ns32k/nbsdaout.mt: New file.
5627 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5628 * config/ns32k/nm-nbsdaout.h: New file.
5629 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5630 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5631 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5632 (SVR4_SHARED_LIBS): Remove.
5633 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5634 * config/sparc/nbsd.mh: Remove.
5635 * config/sparc/nbsd.mt: Remove.
5636 * config/sparc/nbsdaout.mh: New file.
5637 * config/sparc/nbsdaout.mt: New file.
5638 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5639 * config/sparc/nbsdelf.mt: New file.
5640 * config/sparc/nm-nbsdaout.h: New file.
5641 * config/sparc/nm-nbsdelf.h: Remove.
5642 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5643 * config/sparc/tm-nbsdaout.h: New file.
5645 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5647 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5649 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5651 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5653 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5655 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5657 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5659 * NEWS: Note new MIPS NetBSD native configuration.
5660 * configure.host (mips*-*-netbsd*): New host.
5661 * configure.tgt (mips*-*-netbsd*): New target.
5662 * mipsnbsd-nat.c: New file.
5663 * mipsnbsd-tdep.c: New file.
5664 * mipsnbsd-tdep.h: New file.
5665 * config/mips/nbsd.mh: New file.
5666 * config/mips/nbsd.mt: New file.
5667 * config/mips/nm-nbsd.h: New file.
5668 * config/mips/tm-nbsd.h: New file.
5670 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5672 * Makefile.in (SFILES): Add osabi.c.
5673 (COMMON_OBS): Add osabi.o.
5674 (osabi.o): New dependency list.
5675 * osabi.c: New file.
5676 * osabi.h: New file.
5677 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5679 * Makefile.in (alpha_tdep_h): Define and use instead of
5681 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5682 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5684 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5685 * alpha-tdep.h: Include osabi.h.
5686 (alpha_abi): Remove.
5687 (gdbarch_tdep): Use generic OS ABI framework.
5688 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5689 gdbarch_register_osabi.
5690 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5691 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5692 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5694 * Makefile.in (sh_tdep_h): Add osabi.h.
5695 * sh-tdep.h (sh_osabi): Remove.
5696 (gdbarch_tdep): Use generic OS ABI framework.
5697 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5698 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5699 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5700 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5702 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5703 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5704 gdbarch_register_osabi.
5705 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5706 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5707 (get_elfosabi): Rename to...
5708 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5709 ABI framework support routines.
5710 (arm_gdbarch_init): Use generic OS ABI framework.
5711 (arm_dump_tdep): Likewise.
5712 (_initialize_arm_tdep): Likewise.
5713 * arm-tdep.h: Include osabi.h.
5715 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5717 (arm_gdbarch_register_os_abi): Remove prototype.
5718 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5719 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5721 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5722 * mips-tdep.c: Include osabi.h.
5723 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5726 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5728 * h8300-tdep.c: Fix formatting.
5730 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5732 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5733 printing vector registers.
5735 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5737 From Fernando Nasser:
5738 * remote.c (remote_async_open_1): Re-throw the exception when the
5740 (remote_cisco_open): Ditto.
5741 (remote_open_1): Ditto.
5743 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5745 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5746 (remote_start_remote): Add uiout parameter. Pass through to
5747 remote_start_remote_dummy.
5748 (remote_open_1): Use catch_exception instead of catch_errors.
5749 (remote_async_open_1): Ditto.
5750 (remote_cisco_open): Ditto.
5752 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5754 * remote.c (remote_start_remote): Replace PTR with void pointer.
5755 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5758 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5760 * gdb_indent.sh: Allow the script to be run in the sim directory.
5762 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5764 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5765 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5767 * corelow.c (core_open): Only call set_gdbarch_from_file if
5770 2002-05-17 Andrey Volkov <avolkov@transas.com>
5772 * h8300-tdep.c: Add support of EXR register
5773 * config/h8300/tm-h8300.h: Ditto.
5775 2002-05-17 Andrey Volkov <avolkov@transas.com>
5777 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5779 2002-05-17 Andrey Volkov <avolkov@transas.com>
5781 * h8300-tdep.c: Change literal regnums to REGNO.
5783 2002-05-17 Jim Blandy <jimb@redhat.com>
5785 * NEWS: Note addition of macro support.
5787 Expand preprocessor macros in C expressions.
5788 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5789 (scan_macro_expansion, scanning_macro_expansion,
5790 finished_macro_expansion): New function declarations.
5791 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5792 variable declarations.
5793 * parser-defs.h (expression_context_pc): New declaration.
5794 * parse.c (expression_context_pc): New variable.
5795 (parse_exp_1): Set expression_context_pc, as well as
5796 expression_context_block.
5797 * c-exp.y (yylex): If we're not already reading the result of a
5798 macro expansion, try to macro-expand the next token. When we're
5799 done scanning a macro expansion, switch back to the mainline text.
5800 Commas and `if's in a macro's expansion don't terminate the input.
5801 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5802 (macro_original_text, macro_expanded_text,
5803 expression_macro_lookup_func, expression_macro_lookup_baton): New
5805 (scan_macro_expansion, scanning_macro_expansion,
5806 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5807 c_preprocess_and_parse): New functions.
5808 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5809 c_preprocess_and_parse, instead of c_parse.
5810 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5811 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5813 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5815 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5816 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5817 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5819 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5821 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5823 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5825 * Makefile.in (sh_tdep_h): Define and use.
5826 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5827 register enum): Move to...
5828 * * sh-tdep.h: ...here.
5829 * sh-tdep.c: Include sh-tdep.h.
5830 * sh3-rom.c: Likewise.
5831 * shnbsd-tdep.c: Likewise.
5833 2002-05-16 Michael Snyder <msnyder@redhat.com>
5835 * arm-tdep.c: Spelling fix in comment.
5837 2002-05-16 Jim Blandy <jimb@redhat.com>
5839 Add commands for manually expanding macros and showing their
5841 * macrocmd.c, macroscope.c, macroscope.h: New files.
5842 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5843 (macroscope_h): New variable.
5844 (HFILES_NO_SRCDIR): Add macroscope.h.
5845 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5846 (macroscope.o, macrocmd.o): New rules.
5848 Teach the Dwarf 2 reader to read macro information.
5849 * dwarf2read.c: #include "macrotab.h".
5850 (dwarf_macinfo_buffer): New variable.
5851 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5853 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5854 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5855 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5856 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5857 dwarf2_macro_spaces_in_definition): New complaints.
5858 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5859 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5860 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5861 the partial symbol table.
5862 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5863 from what's recorded in the partial symbol table.
5864 (read_file_scope): If the compilation unit has a
5865 `DW_AT_macro_info' attribute, read its macro information.
5866 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5868 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5871 * ser-tcp.c: Don't include <netinet/udp.h>.
5873 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5875 * MAINTAINERS: Update my email address.
5877 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5879 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5880 include file of the same name.
5882 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5884 * configure.tgt: Mark v850 as multi-arched.
5885 * config/v850/tm-v850.h: Remove file.
5886 * config/v850/v850.mt: Eliminate TM_FILE.
5888 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5890 * v850-tdep.c: Full multi-arch.
5891 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5892 Define GDB_MULTI_ARCH to 2.
5894 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5896 * p-exp.y (current_type): New static variable.
5897 Carries the type of the expression at the position that is parsed.
5898 (push_current_type, pop_current_type): Two new functions. Used
5899 to store/restore current_type in expression on specific tokens.
5900 (search_field): New static variable. Set to one after parsing a point
5901 as at that point only a FIELDNAME token should be searched.
5902 (FIELDNAME): New token. After a point only a token belonging to
5903 current_type type definition is allowed.
5904 (all over token rules): reset and change current_type according
5906 (exp '[' rule): insert implicit array index field if
5907 exp is a pascal string type.
5909 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5911 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5912 frame info. Use frame_info's saved_regs instead of matching member
5913 in extra_frame_info throughout.
5914 (v850_frame_init_saved_regs): New function.
5915 (v850_init_extra_frame_info): Move most functionality into
5916 v850_frame_init_saved_regs().
5917 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5918 (v850_frame_find_saved_regs): Remove declaration.
5919 (FRAME_FIND_SAVED_REGS): Remove definition.
5920 (v850_frame_init_saved_regs): Add declaration.
5921 (FRAME_INIT_SAVED_REGS): Add definition.
5923 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5925 * v850-tdep.c: Begin multi-arch'ing v850.
5926 (v850_target_architecture_hook): Remove function.
5927 (v850_gdbarch_init): New function. Add code previously in
5928 v850_target_architecture_hook().
5929 (_initialize_v850_tdep): Don't set target_architecture_hook.
5930 Call register_gdbarch_init() instead.
5932 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5934 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5935 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5936 (fixup_class_method_type): Likewise.
5938 2002-05-15 Jim Blandy <jimb@redhat.com>
5940 Add macro structures to GDB's symbol tables. Nobody puts anything
5942 * symtab.h (struct symtab): New member: `macro_table'.
5943 * buildsym.h (pending_macros): New global variable.
5944 * buildsym.c: #include "macrotab.h".
5945 (buildsym_init): Initialize `pending_macros'.
5946 (end_symtab): If we found macro information while reading a CU's
5947 debugging info, do build a symtab structure for it. Make the
5948 symtab point to the macro information, and clear the
5949 `pending_macros' pointer which held it while we were reading the
5951 (really_free_pendings): Free any pending macro table.
5952 * objfiles.h (struct objfile): New member: `macro_cache'.
5953 * objfiles.c (allocate_objfile): Set allocate and free functions
5954 for the macro cache's objstack.
5955 (free_objfile): Empty the macro cache's obstack.
5956 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5957 set new allocate and free functions for it.
5958 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5959 free functions for the macro cache's objstack. (Why is this
5960 function building its own objfile?)
5961 * symmisc.c (print_objfile_statistics): Print statistics on the
5963 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5965 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5967 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5968 (REGISTER_U_ADDR): Delete definition.
5969 (arm_register_u_addr): Delete declaration.
5971 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5973 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5974 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5976 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5978 * regcache.c (register_valid): Revise comments refering to "Not
5979 available" and "unavailable".
5980 * frame.c (frame_register_read): Ditto.
5981 * findvar.c (value_of_register): Ditto.
5983 2002-05-15 Andrew Cagney <cagney@redhat.com>
5985 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5986 (remote-sim.o): Update dependencies.
5987 (d10v-tdep.o): Specify dependencies.
5988 (sim_d10v_h): Define.
5990 2002-05-14 Jim Blandy <jimb@redhat.com>
5992 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5993 * macrotab.c (macro_lookup_inclusion, find_definition,
5994 new_macro_table): Same.
5996 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5997 not `! strcmp ()'. This is a dubious improvement.
5998 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6000 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6001 although it's not necessary, to avoid a warning.
6003 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6005 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6006 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6007 TYPE_INSTANCE_FLAGS.
6008 (struct main_type): New.
6009 (struct type): Move most members to struct main_type. Change
6010 cv_type and as_type to new type_chain member. Add instance_flags.
6011 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6012 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6013 (finish_cv_type): Remove prototype.
6014 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6016 (alloc_type_instance): New function.
6017 (smash_type): New function.
6018 (make_pointer_type, make_reference_type, make_function_type)
6019 (smash_to_member_type, smash_to_method_type): Call smash_type.
6020 (make_qualified_type): New function.
6021 (make_type_with_address_space): Call make_qualified_type.
6022 (make_cv_type): Likewise.
6023 (finish_cv_type): Remove unnecessary function.
6024 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6025 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6026 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6027 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6028 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6029 * hpread.c (hpread_read_struct_type): Likewise.
6030 * stabsread.c (read_struct_type): Likewise.
6032 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6034 * configure.tgt: Add a catch all sh* target, for cases like
6035 sh[2,3,4]-elf and sh-hms.
6037 2002-05-14 Keith Seitz <keiths@redhat.com>
6039 * event-loop.c (create_file_handler): Don't do anything but
6040 update data when we are given a fd which we are already
6043 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6045 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6046 (update_context): Use __func__ in warnings.
6048 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6050 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6051 and tcp_close to net_open and net_close.
6052 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6053 using UDP if requested. Don't try to disable Nagle on UDP
6055 * remote.c (remote_serial_open): New function. Warn about UDP.
6056 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6058 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6060 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6062 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6064 * configure.tgt: Remove sh-hms target.
6065 * MAINTAINERS: Don't list sh-hms as a separate target.
6067 2002-05-13 Jim Blandy <jimb@redhat.com>
6069 Add first preprocessor macro-expansion files.
6070 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6071 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6072 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6073 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6074 (COMMON_OBS): Add macrotab.o, macroexp.o.
6075 (macroexp.o, macrotab.o): New rules.
6077 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6079 * config/m88k/tm-m88k.h: Update copyright.
6080 (m88k_target_write_pc): Declare
6081 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6082 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6083 (SHIFT_INST_REGS): Update definition.
6084 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6085 using old definition of TARGET_WRITE_PC.
6086 * regcache.c (generic_target_write_pc): Delete code handling
6088 * gdbarch.sh (NNPC_REGNUM): Delete.
6089 * gdbarch.h, gdbarch.c: Regenerate.
6091 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6093 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6096 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6098 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6099 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6100 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6102 * c-typeprint.c (cp_type_print_method_args): Likewise.
6103 (c_type_print_args): Likewise.
6104 * d10v-tdep.c (d10v_push_arguments): Likewise.
6105 (d10v_extract_return_value): Likewise.
6106 * expprint.c (print_subexp): Likewise.
6107 * gdbtypes.c (lookup_primitive_typename): Likewise.
6108 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6109 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6110 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6111 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6112 (TYPE_VECTOR): Likewise.
6113 * hpread.c (hpread_read_struct_type)
6114 (fix_static_member_physnames, fixup_class_method_type)
6115 (hpread_type_lookup): Likewise.
6116 * mdebugread.c (parse_symbol, parse_type): Likewise.
6117 * p-lang.c (is_pascal_string_type): Likewise.
6118 * valops.c (hand_function_call): Likewise.
6119 * x86-64-tdep.c (classify_argument): Likewise.
6121 * hpread.c (hpread_read_function_type)
6122 (hpread_read_doc_function_type): Call replace_type.
6123 * dstread.c (create_new_type): Delete.
6124 (decode_dst_structure, process_dst_function): Call alloc_type.
6125 Use type access macros.
6127 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6129 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6130 the're not supported by the current architecture.
6131 (i387_fill_fxsave): Likewise.
6133 2002-05-12 Fred Fish <fnf@redhat.com>
6135 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6136 sect_index_xxx members to index the first slot in section_offsets
6137 if all of the section_offsets are zero.
6139 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6141 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6142 checked in with last change.
6144 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6146 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6147 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6150 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6152 * Makefile.in: Update dependencies.
6154 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6156 * language.c (local_hex_string_custom): Simplify. Do not depend
6157 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6159 * memattr.c (mem_info_command): Replace calls to
6160 longest_local_hex_string and longest_local_hex_string_custom.
6161 * buildsym.c (make_blockvector): Ditto.
6162 * solib.c (info_sharedlibrary_command): Ditto.
6163 * tracepoint.c (tracepoints_info): Ditto.
6164 * symtab.c (print_msymbol_info): Ditto.
6166 * language.c (local_hex_string): Delete.
6167 (local_hex_string_custom): Delete.
6168 (longest_local_hex_string): Rename to local_hex_string.
6169 (longest_local_hex_string_custom): Rename to
6170 local_hex_string_custom.
6171 * language.h (local_hex_string): Change parameter type to LONGEST.
6172 (local_hex_string_custom): Ditto.
6173 (longest_local_hex_string): Delete declaration.
6174 (longest_local_hex_string_custom): Ditto.
6176 * solib.c: Update copyright.
6177 * memattr.c: Update copyright.
6179 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6181 * arch-utils.h (legacy_register_to_value): Declare.
6182 (legacy_value_to_register): Declare.
6183 (legacy_convert_register_p): Declare.
6184 * arch-utils.c (legacy_register_to_value): New function.
6185 (legacy_value_to_register): New function.
6186 (legacy_convert_register_p): New function.
6188 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6189 (VALUE_TO_REGISTER): Define.
6190 (CONVERT_REGISTER_P): Define.
6191 * gdbarch.h, gdbarch.c: Regenerate.
6193 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6195 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6198 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6199 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6201 * Makefile.in: Update dependencies for valops.c.
6202 * valops.c: Include "gdb_assert.h".
6203 (typecmp): Skip THIS parameter to methods.
6204 (find_method_list): Remove static_memfuncp argument,
6205 update callers. Check for stub methods.
6206 (find_value_oload_method_list): Don't set *static_memfuncp.
6207 (find_overload_match): Don't check for stub methods. Assert
6208 that methods are not stubbed. Handle static methods.
6209 (value_find_oload_method_list): Remove static_memfuncp argument.
6210 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6211 to the argument list for static stub methods.
6212 * value.h (value_find_oload_method_list): Update prototype.
6214 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6216 * arch-utils.h (generic_register_size): Declare.
6217 (generic_register_raw_size, generic_register_virtual_size): Delete
6219 * arch-utils.c (generic_register_raw_size): Delete.
6220 (generic_register_size): New function.
6221 (generic_register_virtual_size): Delete.
6223 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6224 default generic_register_size.
6225 * gdbarch.h, gdbarch.c: Re-generate.
6227 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6228 register_virtual_size.
6229 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6230 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6232 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6234 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6235 * gdbarch.h, gdbarch.c: Regenerate.
6236 * gnu-v3-abi.c: Update copyright.
6237 (vtable_address_point_offset): Update.
6238 (gnuv3_rtti_type): Update.
6239 (gnuv3_baseclass_offset): Update.
6240 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6241 (init_fetch_link_map_offsets): Update.
6242 * remote.c (get_remote_state): Update.
6244 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6246 * TODO: Remove value_headof/value_from_vtable_info comment.
6247 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6248 * values.c (value_headof, value_from_vtable_info): Delete.
6249 * value.h (value_from_vtable_info): Delete prototype.
6251 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6253 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6254 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6256 (gdb_assert_h): Define.
6257 (gdb_wait_h): Define.
6258 (gdb_regex_h): Define.
6260 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6262 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6263 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6265 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6267 * nbsd-tdep.c: Fix comment.
6269 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6271 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6272 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6273 (nbsd-tdep.o): New dependency list.
6274 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6276 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6277 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6278 * nbsd-tdep.c: New file.
6279 * nbsd-tdep.h: New file.
6280 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6282 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6283 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6284 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6285 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6287 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6289 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6290 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6291 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6292 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6293 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6294 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6296 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6298 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6299 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6300 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6301 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6302 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6303 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6304 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6306 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6308 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6309 fetch_elfcore_registers to...
6310 * i386nbsd-tdep.c: ...here.
6311 (i386nbsd_use_struct_convention): Rename to...
6312 (i386nbsd_aout_use_struct_convention): ...this.
6313 (i386nbsd_supply_reg): New function.
6314 (i386nbsd_fill_reg): New function.
6315 (fetch_core_registers): Use i386nbsd_supply_reg.
6316 (fetch_elfcore_registers): Likewise.
6317 (_initialize_i386nbsd_tdep): New function.
6318 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6319 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6320 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6321 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6322 (i386nbsd_aout_use_struct_convention): ...this.
6324 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6326 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6327 (store_inferior_registers): Use shnbsd_fill_reg.
6328 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6329 sh_nbsd_supply_register): Collapse into...
6330 (shnbsd_supply_reg): ...this.
6331 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6332 (shnbsd_fill_reg): ...this.
6333 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6334 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6335 (fetch_core_registers): Use shnbsd_supply_reg.
6336 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6337 (sh_nbsd_core_fns): Rename to...
6338 (shnbsd_core_fns): ...this.
6339 (sh_nbsd_elfcore_fns): Rename to...
6340 (shnbsd_elfcore_fns): ...this.
6341 (sh_nbsd_init_abi): Rename to...
6342 (shnbsd_init_abi): ...this.
6343 (_initialize_sh_nbsd_tdep): Rename to...
6344 (_initialize_shnbsd_tdep): ...this.
6345 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6346 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6347 sh_nbsd_fill_register): Remove prototypes.
6348 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6350 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6352 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6353 (i387-nat.o): Delete dependency list.
6354 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6355 (x86-64-linux-nat.o): Likewise.
6356 * i387-nat.c: Delete file, moving contents to...
6357 * i387-tdep.c: ...here.
6358 * i387-nat.h: Rename...
6359 * i387-tdep.h: ...to this.
6360 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6361 * i386-linux-nat.c: Likewise.
6362 * i386bsd-nat.c: Likewise.
6363 * i386gnu-nat.c: Likewise.
6364 * i386nbsd-nat.c: Likewise.
6365 * i386v4-nat.c: Likewise.
6366 * x86-64-linux-nat.c: Likewise.
6367 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6368 * config/i386/go32.mh (NATDEPFILES): Likewise.
6369 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6370 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6371 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6372 * config/i386/linux.mh (NATDEPFILES): Likewise.
6373 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6374 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6375 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6376 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6378 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6380 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6381 (alphanbsd-nat.o): Remove dependency list.
6382 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6383 * alphanbsd-nat.c: Delete. Contents moved to...
6384 * alphanbsd-tdep.c: ...here.
6385 (_initialize_alphanbsd_tdep): Register core functions.
6386 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6388 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6390 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6391 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6392 (alphanbsd-nat.o): Likewise.
6393 (alphabsd-tdep.o): New dependency list.
6394 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6395 (fill_gregset): Use alphabsd_fill_reg.
6396 (supply_fpregset): Use alphabsd_supply_fpreg.
6397 (fill_fpregset): Use alphabsd_fill_fpreg.
6398 (fetch_inferior_registers): Use struct reg and struct fpreg
6399 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6400 and alphabsd_supply_fpreg.
6401 (store_inferior_registers): Use struct reg and struct fpreg
6402 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6403 and alphabsd_fill_fpreg.
6404 * alphabsd-tdep.c: New file.
6405 * alphabsd-tdep.h: New file.
6406 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6407 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6408 alphabsd_supply_fpreg.
6409 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6410 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6412 2002-05-11 Eric Christopher <echristo@redhat.com>
6414 * mips-tdep.c (mips_double_register_type): Fix thinko.
6415 (mips_single_register_type): Ditto.
6416 * MAINTAINERS: Add self.
6418 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6420 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6421 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6422 right thing on architectures with different endianness and/or
6425 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6427 From Christian Limpach <chris@Pin.LU>
6428 * configure.in: Change sed expression which comments out
6429 NATDEPFILES to also comment out continuation lines.
6430 * configure: Regenerate.
6432 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6434 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6437 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6439 * sh-tdep.c: Include correct file.
6441 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6443 New support for sh64-elf (sh5) target.
6445 * configure.tgt: For sh64-elf target, default to sh-elf.
6447 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6448 (struct gdbarch_tdep): Add new fields for new registers and ABI
6451 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6452 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6453 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6454 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6455 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6456 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6457 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6458 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6459 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6460 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6461 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6462 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6463 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6464 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6465 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6466 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6467 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6468 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6469 sign_extend, sh64_nofp_frame_init_saved_regs,
6470 sh64_init_extra_frame_info, sh64_get_saved_register,
6471 sh64_extract_struct_value_address, sh64_pop_frame,
6472 sh64_push_arguments, sh64_extract_return_value,
6473 sh64_store_return_value, sh64_show_media_regs,
6474 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6475 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6476 sh_sh64_register_virtual_type,
6477 sh_sh64_register_convert_to_virtual,
6478 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6479 sh64_register_read, sh64_pseudo_register_write,
6480 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6481 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6482 sh64_do_pseudo_register, sh_compact_do_registers_info,
6483 sh64_do_registers_info, sh_gdbarch_init): New functions.
6485 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6487 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6489 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6491 * linespec.c (decode_line_1): Check for a double quote after
6492 a filename correctly.
6494 2002-05-10 Jim Blandy <jimb@redhat.com>
6496 Properly track the size of the current objfile's .debug_line section.
6497 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6498 (DWARF_LINE_SIZE): New macro.
6499 (dwarf2_build_psymtabs_hard): Record the line section's size in
6500 the partial symbol table.
6501 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6504 2002-05-10 Petr Sorfa <petrs@caldera.com>
6506 * ia64-tdep.c: Handle breakpoints on L instruction type
6507 in MLX instruction bundle by moving the breakpoint to
6508 the third slot (X instruction type) as L holds only data.
6510 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6512 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6513 (process_one_symbol): Complain about discarding local symbols
6514 due to a misplaced N_LBRAC entry.
6516 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6518 From Daniel Berlin <dan@cgsoftware.com>
6519 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6520 decrease the depth we are at, in the case of templates.
6522 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6524 * mips-tdep.c (mips_float_register_type): New function.
6525 (mips_double_register_type): New function.
6526 (mips_print_register): Use them.
6527 (do_fp_register_row): Likewise.
6529 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6531 * signals/signals.c (signals): Remove conditional compilation around
6532 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6533 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6535 2002-05-09 Michael Snyder <msnyder@redhat.com>
6537 * remote-rdp.c (remote_rdp_can_run): Remove.
6539 2002-05-09 Tom Tromey <tromey@redhat.com>
6541 * jv-valprint.c (java_val_print): Handle `char' as a special case
6544 2002-05-09 Michael Snyder <msnyder@redhat.com>
6546 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6547 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6548 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6549 str r(0123),[sp,#nn].
6550 (arm_skip_prologue): Ditto. Also make disassembly
6551 order-independent by placing it in a loop.
6553 2002-05-06 Michael Snyder <msnyder@redhat.com>
6555 * stabsread.c (read_type): Add recognition for new attribute:
6556 "@V;" means that an array type is actually a vector.
6557 This is analogous to the vector flag that's been added to dwarf2.
6559 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6561 * i386-tdep.h (i386_abi): New enum.
6562 (struct gdbarch_tdep): Replace os_ident member with abi.
6563 (i386_gdbarch_register_os_abi): New prototype.
6564 * i386-tdep.c (i386_abi_names): New array.
6565 (process_note_abi_tag_sections): Removed.
6566 (process_note_sections): New function.
6567 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6568 (struct i386_abi_handler): New struct.
6569 (i386_abi_handler_list): New variable.
6570 (i386_gdbarch_register_os_abi): New function.
6571 (i386_gdbarch_init): Adapt for the changes given above.
6573 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6575 * gregset.h: Say "GNU/Linux".
6577 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6579 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6580 (build_gdbtypes): Build builtin_type_v2_float.
6581 (_initialize_gdbtypes): Register new builtin type.
6583 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6585 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6586 (clear_gdbarch_swap): New function.
6587 (initialize_non_multiarch): Call.
6588 (gdbarch_update_p): Before calling init(), swap out and clear the
6589 existing architecture.
6590 * gdbarch.c: Regenerate.
6592 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6594 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6597 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6599 * sh-nbsd-nat.c: Rename to...
6600 * shnbsd-nat.c: ...this.
6601 * sh-nbsd-tdep.c: Rename to...
6602 * shnbsd-tdep.c: ...this.
6603 * sh-nbsd-tdep.h: Rename to...
6604 * shnbsd-tdep.h: ...this.
6605 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6606 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6608 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6610 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6611 concatenation for command help messages.
6613 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6615 * NEWS: Note new sh*-*-netbsdelf* configuration.
6616 * configure.host: Set gdb_host_cpu to sh for all sh*.
6617 (sh*-*-netbsdelf*): New host.
6618 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6619 (sh*-*-netbsdelf*): New target.
6620 * sh-nbsd-nat.c: New file.
6621 * sh-nbsd-tdep.c: New file.
6622 * sh-nbsd-tdep.h: New file.
6623 * config/sh/nbsd.mh: New file.
6624 * config/sh/nbsd.mt: New file.
6625 * config/sh/nm-nbsd.h: New file.
6626 * config/sh/tm-nbsd.h: New file.
6628 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6630 * sh-tdep.c (sh_osabi_names): Declare.
6631 (process_note_abi_tag_sections): New function.
6632 (get_elfosabi): Ditto.
6633 (sh_gdbarch_register_os_abi): Ditto.
6634 (sh_dump_tdep): Ditto.
6635 _initialize_sh_tdep): Use gdbarch_register to register
6636 sh_gdbarch_init and sh_dump_tdep.
6637 * config/sh/tm-sh.h (sh_osabi): Declare.
6638 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6640 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6642 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6643 (thumb_scan_prologue): Ditto.
6644 (arm_find_callers_reg): Ditto.
6645 (arm_frame_chain): Ditto.
6646 (arm_init_extra_frame_info): Ditto.
6647 (arm_frame_saved_pc): Ditto.
6648 (arm_pop_frame): Ditto.
6649 (arm_push_return_address): New function.
6650 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6651 call_dummy_location, call_dummy_breakpoint_offset_p,
6652 call_dummy_breakpoint_offset, call_dummy_p,
6653 call_dummy_stack_adjust_p, call_dummy_words,
6654 sizeof_call_dummy_words, call_dummy_start_offset,
6655 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6656 call_dummy_address, push_return_address and push_dummy_frame for
6657 generic dummy frames.
6659 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6661 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6662 size computation for alloca.
6663 (sh_fp_frame_init_saved_regs): Likewise.
6665 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6667 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6668 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6669 * arm-tdep.c (arm_store_return_value): Use them.
6670 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6671 * remote-rdp.c (remote_rdp_fetch_register): Use
6672 ARM_MAX_REGISTER_RAW_SIZE.
6673 (remote_rdp_store_register): Likewise.
6675 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6677 * dwarf2cfi.c: Code cleanup, removed unused variables,
6678 added default labels to switch {} statements.
6679 * x86-64-tdep.c: Ditto.
6680 * x86-64-linux-nat.c: Ditto.
6682 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6684 * solib.h: Protect against multiple inclusion.
6686 2002-05-06 Jim Blandy <jimb@redhat.com>
6688 Add first preprocessor macro-expansion files.
6689 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6690 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6691 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6692 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6693 (COMMON_OBS): Add macrotab.o, macroexp.o.
6694 (macroexp.o, macrotab.o): New rules.
6696 Separate the job of reading the line number info statement program
6697 header (...expialidocious) out into its own function.
6698 * dwarf2read.c (struct line_head, struct filenames, struct
6699 directories): Replace with...
6700 (struct line_header): New structure, containing the full
6701 contents of the statement program header, including the
6702 include directory and file name tables.
6703 (read_file_scope): If we have line number info, instead of just
6704 calling dwarf_decode_lines to do all the work, call
6705 dwarf_decode_line_header first to get a `struct line_header'
6706 containing the data in the statement program header, and then
6707 pass that to dwarf_decode_lines, which will pick up where that
6708 left off. Be sure to clean up the `struct line_header' object.
6709 (dwarf_decode_line_header, free_line_header, add_include_dir,
6710 add_file_name): New functions.
6711 (dwarf_decode_lines): Move all the code to read the statement
6712 program header into dwarf_decode_line_header. Take the line
6713 header it built as the first argument, instead of the offset to
6714 the compilation unit's line number info. Use the new `struct
6715 line_header' type instead of the old structures. No need to do
6716 cleanups here now, since we don't allocate anything.
6717 (dwarf2_statement_list_fits_in_line_number_section,
6718 dwarf2_line_header_too_long): New complaints.
6720 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6722 * gdbtypes.c (init_vector_type): New function.
6723 (build_builtin_type_vec128): Simplify the representation of SIMD
6725 (build_gdbtypes): Initialize new builtin vector types.
6726 (_initialize_gdbtypes): Register new vector types with gdbarch.
6727 (builtin_type_v4_float, builtin_type_v4_int32,
6728 builtin_type_v8_int16, builtin_type_v16_int8,
6729 builtin_type_v2_int32, builtin_type_v4_int16,
6730 builtin_type_v8_int8): New (renamed) SIMD types.
6732 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6734 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6735 (i387_fill_fxsave): Likewise.
6737 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6739 * alpha-tdep.c (alpha_extract_return_value): Don't use
6740 non-constant array size in prototype.
6742 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6744 From Brian Taylor <briant at model dot com>:
6745 * ui-out.c (ui_out_field_core_addr): Use the function
6746 longest_local_hex_string_custom'to format addresses > 32 bits
6749 * ui-out.c (ui_out_field_core_addr): Update comment.
6751 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6753 * stack.c (select_and_print_frame): Make static. Delete the
6755 (func_command): Update call.
6756 (select_frame_command): Delete code computing the frame level.
6757 * frame.h (select_and_print_frame): Delete declaration.
6759 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6761 * sparc-tdep.c (sparc_get_saved_register): Comment why
6762 get_prev_frame call is safe.
6764 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6766 * frame.h (select_frame): Delete level parameter.
6767 * stack.c (select_frame): Update. Use frame_relative_level to
6768 obtain the frame's level.
6769 (select_and_print_frame): Update call.
6770 (select_frame_command): Ditto.
6771 (up_silently_base): Ditto.
6772 (down_silently_base): Ditto.
6773 * ocd.c (ocd_start_remote): Ditto.
6774 * remote-rdp.c (remote_rdp_open): Ditto.
6775 * remote-mips.c (mips_initialize): Ditto.
6776 (common_open): Ditto.
6777 * remote-e7000.c (e7000_start_remote): Ditto.
6778 * m3-nat.c (select_thread): Ditto.
6779 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6780 (child_get_current_exception_event): Ditto.
6781 * varobj.c (varobj_create): Ditto.
6782 (varobj_update): Ditto.
6783 (c_value_of_root): Ditto.
6784 * tracepoint.c (finish_tfind_command): Ditto.
6785 * corelow.c (core_open): Ditto.
6786 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6787 * thread.c (info_threads_command): Ditto.
6788 (switch_to_thread): Ditto.
6789 * infrun.c (normal_stop): Ditto.
6790 (restore_selected_frame): Ditto.
6791 (restore_inferior_status): Ditto.
6792 * breakpoint.c (insert_breakpoints): Ditto.
6793 (watchpoint_check): Ditto.
6794 (bpstat_stop_status): Ditto.
6795 (do_enable_breakpoint): Ditto.
6796 * blockframe.c (flush_cached_frames): Ditto.
6797 (reinit_frame_cache): Ditto.
6799 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6801 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6804 2002-05-04 Jim Blandy <jimb@redhat.com>
6806 * gdbtypes.c (replace_type): Doc fix.
6808 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6810 * valprint.c (strcat_longest): Delete commented out function.
6813 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6815 * MAINTAINERS: Mark a29k as deleted.
6816 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6817 Move new configurations to the top.
6818 * configure.tgt: Remove a29k.
6819 * config/a29k/tm-vx29k.h: Delete.
6820 * config/a29k/vx29k.mt: Delete.
6821 * config/a29k/tm-a29k.h: Delete.
6822 * config/a29k/a29k-udi.mt: Delete.
6823 * config/a29k/a29k.mt: Delete.
6824 * a29k-tdep.c: Delete.
6825 * remote-udi.c: Delete.
6826 * remote-mm.c: Delete.
6827 * remote-eb.c: Delete.
6828 * remote-adapt.c: Delete.
6829 * Makefile.in: Remove obsolete code.
6830 * config/s390/s390x.mt: Ditto.
6831 * config/s390/s390.mt: Ditto.
6832 * config/sparc/sparclynx.mh: Ditto.
6833 * config/sparc/linux.mh: Ditto.
6834 * config/pa/hppaosf.mh: Ditto.
6835 * config/pa/hppabsd.mh: Ditto.
6836 * config/ns32k/nbsd.mt: Ditto.
6837 * config/mips/vr5000.mt: Ditto.
6838 * config/m68k/sun3os4.mh: Ditto.
6839 * config/m68k/nbsd.mt: Ditto.
6840 * config/m68k/m68klynx.mh: Ditto.
6841 * config/m32r/m32r.mt: Ditto.
6842 * config/i386/x86-64linux.mt: Ditto.
6843 * config/i386/nbsdelf.mt: Ditto.
6844 * config/i386/nbsd.mt: Ditto.
6845 * config/i386/i386lynx.mh: Ditto.
6847 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6849 * target.c (debug_print_register): New function. Handle oversize
6851 (debug_to_fetch_registers): Call.
6852 (debug_to_store_registers): Call.
6854 2002-05-03 Jim Blandy <jimb@redhat.com>
6856 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6857 (read_type): Doc fix.
6858 * gdbtypes.c (replace_type): Doc fix.
6860 * stabsread.c (multiply_defined_struct): New complaint.
6861 (read_struct_type): If the type we were passed isn't empty, or
6862 incomplete, don't read the new struct type into it; complain,
6863 and return the original type unchanged. Take a new `type_code'
6864 argument, which is the type code for the new type.
6865 (read_type): Rather than storing the type's type code here, pass
6866 it as an argument to read_struct_type, and let that take care of
6867 storing it. That way, we don't overwrite the original type code,
6868 so read_struct_type can use it to decide whether we're overwriting
6869 something we shouldn't.
6870 (complain_about_struct_wipeout): New function.
6872 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6874 * gdbarch.sh: Assert that gdbarch is non-NULL.
6875 * gdbarch.c: Regenerate.
6877 2002-05-03 Jason Merrill <jason@redhat.com>
6879 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6882 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6884 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6885 (x86_64_dwarf2gdb_regno_map_length),
6886 (x86_64_dwarf2_reg_to_regnum): Added.
6887 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6888 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6889 (_initialize_x86_64_tdep): Synced with the change above.
6890 (x86_64_skip_prologue): Reformulated message.
6892 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6894 * f-exp.y: Also use new prev_lexptr variable
6895 to improve error reporting. Based on Michael Snyder
6896 2002-04-24 dated patch to c-exp.y.
6897 * jv-exp.y: Likewise.
6898 * m2-exp.y: Likewise.
6900 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6902 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6903 we are dealing with vectors.
6905 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6907 * config/m68k/tm-nbsd.h: Obvious fix,
6908 correct machine name.
6910 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6912 * p-typeprint.c (pascal_type_print_base): Add support
6913 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6915 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6917 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6918 for fondamental pascal 'char' type.
6920 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6922 * p-lang.h (is_pascal_string_type): Declaration changed,
6923 new sixth argument of type char ** added.
6924 * p-lang.c (is_pascal_string_type): Implementation
6925 changed. Args length_pos, length_size, string_pos, char_size
6926 can now be NULL. New argument arrayname set to the field
6927 name of the char array. Return value set to char array
6928 field index plus one.
6929 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6930 is_pascal_string_type function.
6932 2002-05-02 Andrew Cagney <cagney@redhat.com>
6934 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6935 <cagney@redhat.com> change.
6936 * gdbarch.c: Regenerate.
6938 2002-05-02 Andrew Cagney <cagney@redhat.com>
6940 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6941 before probing for a new one. Detect errorenous gdbarch_init
6943 * gdbarch.c: Regenerate.
6945 2002-05-01 Andrew Cagney <cagney@redhat.com>
6947 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6948 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6949 * config/v850/tm-v850.h: Ditto. Update copyright.
6951 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6953 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6956 2002-04-30 Michael Snyder <msnyder@redhat.com>
6958 * arm-tdep.c: Whitespace clean-ups.
6959 (arm_skip_prologue): Fix thinko; two lines
6960 should have been removed as part of 4/24 change.
6962 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6964 * rs6000-tdep.c: Added comment describing how fpscr register
6965 numbers were chosen.
6967 2002-04-30 Michael Snyder <msnyder@redhat.com>
6969 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6971 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6973 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6974 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6975 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6977 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6979 From Louis Hamilton <hamilton@redhat.com>:
6980 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6981 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6982 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6983 not bfd-private xcoff data, to determine wordsize.
6984 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6986 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6988 GDB 5.2 released from 5.2 branch.
6990 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6992 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6993 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6994 (x86_64_register_info_table): Added comments with register numbers.
6996 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6998 * rs6000-tdep.c (rs6000_extract_return_value,
6999 rs6000_store_return_value): Handle returning vectors.
7000 (rs6000_gdbarch_init): Use
7001 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7002 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7004 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7006 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7007 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7009 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7011 * hpread.c (hpread_psymtab_to_symtab_1,
7012 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7013 with fprintf_unfiltered (gdb_stderr,...).
7015 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7017 * remote-array.c (printf_monitor, write_monitor,
7018 array_insert_breakpoint, array_remove_breakpoint ):
7019 Replace fprintf (stderr,...
7020 with fprintf_unfiltered (gdb_stderr,....
7021 * remote-es.c: Likewise.
7022 * remote-os9k.c: Likewise.
7023 * remote-st.c: Likewise.
7025 2002-04-28 Andreas Schwab <schwab@suse.de>
7027 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7028 linux-proc.o and gcore.o.
7030 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7032 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7033 code without frame pointers.
7035 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7037 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7040 2002-04-26 Ben Elliston <bje@redhat.com>
7042 * target.c (do_xfer_memory): Correct reference to the new option
7043 "trust-readonly-sections".
7045 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7047 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7048 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7049 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7051 (read_array_type): Record the fact that this array type is really a
7052 vector (i.e. are passed in by value).
7054 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7056 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7057 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7058 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7059 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7060 * alpha-linux-tdep.c: Include frame.h.
7061 (alpha_linux_sigcontext_addr): New function.
7062 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7063 alpha_linux_sigcontext_addr.
7064 * alpha-osf1-tdep.c: Include gdbcore.h.
7065 (alpha_osf1_sigcontext_addr): New function.
7066 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7067 alpha_osf1_sigcontext_addr.
7068 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7069 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7071 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7073 * stack.c (selected_frame_level):
7074 (select_frame): Do not set selected_frame_level.
7075 * frame.h (selected_frame_level): Delete declaration.
7077 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7079 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7080 convert_from_func_ptr-addr when AIX / PowerOpen.
7082 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7084 * valops.c (hand_function_call): Call
7085 generic_save_call_dummy_addr.
7086 * frame.h (generic_save_call_dummy_addr): Declare.
7087 * blockframe.c (struct dummy_frame): Add fields call_lo and
7089 (generic_find_dummy_frame): Check for PC in range call_lo to
7090 call_hi instead of entry_point_address.
7091 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7092 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7093 (generic_save_call_dummy_addr): New function.
7095 2002-04-24 David S. Miller <davem@redhat.com>
7097 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7098 sparc_skip_prologue.
7099 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7100 information to find prologue when possible.
7101 (sparc_prologue_frameless_p): Call examine_prologue directly.
7102 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7103 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7105 (SKIP_PROLOGUE): Likewise.
7107 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7109 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7110 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7111 indicate that the condition it was testing is always true.
7112 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7113 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7114 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7116 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7118 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7119 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7120 tdep->jb_pc and tdep->jb_elt_size.
7121 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7122 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7123 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7124 * alpha-nat.c (get_longjmp_target): Remove.
7125 (JB_ELEMENT_SIZE): Ditto.
7127 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7128 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7129 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7130 to alpha_get_longjmp_target.
7131 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7132 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7133 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7135 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7137 * README: Update to GDB 5.2.
7139 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7141 * gdbarch.sh (LC_ALL): Set to `c'.
7143 2002-04-25 Theodore A. Roth <troth@verinet.com>
7145 * avr-tdep.c: Ran through gdb_indent.sh.
7147 2002-04-25 Theodore A. Roth <troth@verinet.com>
7149 * MAINTAINERS: Add myself as AVR maintainer.
7150 * NEWS: Note new target avr.
7152 2002-04-25 Theodore A. Roth <troth@verinet.com>
7154 * Makefile.in: Add support for AVR target.
7155 * configure.tgt: Add support for AVR target.
7156 * avr-tdep.c: New file
7157 * config/avr/avr.mt: New file.
7159 2002-04-25 Theodore A. Roth <troth@verinet.com>
7161 * MAINTAINERS: Add myself to write-after-approval.
7163 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7165 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7166 with fprintf_unfiltered (gdb_stderr,....
7168 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7171 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7173 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7175 * p-exp.y: Also use new prev_lexptr variable
7176 to improve error reporting. Based on Michael Snyder
7177 2002-04-24 dated patch to c-exp.y.
7179 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7181 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7182 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7183 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7185 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7187 (FUNCTION_START_OFFSET): Remove.
7188 (BREAKPOINT): Ditto.
7190 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7192 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7195 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7197 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7198 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7199 alpha_linux_pc_in_sigtramp.
7200 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7201 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7202 alpha_osf1_pc_in_sigtramp.
7203 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7204 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7205 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7206 alphafbsd_pc_in_sigtramp.
7207 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7208 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7209 alphanbsd_pc_in_sigtramp.
7210 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7211 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7213 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7215 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7217 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7219 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7221 (alphanbsd-nat.o): New dependency list.
7222 (alphanbsd-tdep.o): Ditto.
7223 * NEWS: Note new native NetBSD/alpha configuration.
7224 * alphanbsd-nat.c: New file.
7225 * alphanbsd-tdep.c: Ditto.
7226 * configure.host (alpha*-*-netbsd*): New host.
7227 * configure.tgt (alpha*-*-netbsd*): New target.
7228 * config/alpha/nbsd.mh: New file.
7229 * config/alpha/nbsd.mt: Ditto.
7230 * config/alpha/nm-nbsd.h: Ditto.
7231 * config/alpha/tm-nbsd.h: Ditto.
7233 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7235 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7236 (alpha-osf1-tdep.o): New dependency list.
7237 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7238 and skip_sigtramp_frame members.
7239 * alpha-linux-tdep.c: Include gdbcore.h.
7240 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7241 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7242 * alpha-osf1-tdep.c: New file.
7243 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7245 (alpha_frame_past_sigtramp_frame): New function.
7246 (alpha_dynamic_sigtramp_offset): Ditto.
7247 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7248 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7249 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7250 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7251 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7252 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7253 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7254 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7255 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7256 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7257 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7258 to find_solib_trampoline_target.
7259 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7260 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7261 (SKIP_TRAMPOLINE_CODE): Remove.
7262 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7263 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7264 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7265 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7266 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7267 (PROC_SIGTRAMP_MAGIC): Ditto.
7268 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7269 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7270 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7271 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7272 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7274 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7276 * NEWS: Note that Alpha targets are now multi-arch.
7278 2002-04-24 Michael Snyder <msnyder@redhat.com>
7280 * parser-defs.h (prev_lexptr): New external variable.
7281 * parse.c (parse_exp_1): Set prev_lexptr to null before
7282 calling the language-specific parser.
7283 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7284 (yyerror): Use prev_lexptr in error reporting.
7286 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7288 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7289 * gregset.h: If FILL_FPXREGSET is defined, provide
7290 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7291 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7292 is defined, call fill_fpxregset.
7294 2002-04-24 Roland McGrath <roland@frob.com>
7296 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7297 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7298 (supply_gregset, supply_fpregset): New functions.
7300 * gnu-nat.c (gnu_find_memory_regions): New function.
7301 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7302 (gnu_xfer_memory): Add a cast.
7304 2002-04-24 Michael Snyder <msnyder@redhat.com>
7306 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7307 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7308 of argument regs ("str r(0123), [r11, #-nn"]).
7309 (arm_skip_prologue): Better handling for frameless functions.
7310 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7311 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7313 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7315 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7316 NUM_PSEUDO_REGS can be used.
7318 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7320 * arch-utils.h: Update copyright.
7322 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7323 * gdbarch.h, gdbarch.c: Re-generate.
7325 * inferior.h (IN_SIGTRAMP): Delete definition.
7326 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7327 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7329 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7330 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7331 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7332 (find_proc_framesize): Ditto.
7333 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7334 (alpha_init_extra_frame_info): Ditto.
7335 * infrun.c (handle_inferior_event): Ditto.
7336 (handle_inferior_event): Ditto.
7337 (check_sigtramp2): Ditto.
7338 * blockframe.c (create_new_frame): Ditto.
7339 (get_prev_frame): Ditto.
7340 * ppc-linux-tdep.c: Update comments.
7341 * i386-linux-tdep.c: Update comments.
7342 * breakpoint.c (bpstat_what): Update comment.
7344 2002-04-24 David S. Miller <davem@redhat.com>
7346 * i960-tdep.c (register_in_window_p): New function.
7347 (i960_find_saved_register): Use it instead of
7348 REGISTER_IN_WINDOW_P.
7349 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7351 * symtab.h (find_stab_function_addr): Kill extern.
7352 * minsyms.c (find_stab_function_addr): Remove from here...
7353 * dbxread.c: ... to here, and mark it static.
7355 2002-04-20 David S. Miller <davem@redhat.com>
7357 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7358 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7360 2002-04-21 David S. Miller <davem@redhat.com>
7362 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7363 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7364 (vx_write_register): Likewise.
7366 2002-04-23 J. Brobecker <brobecker@gnat.com>
7368 * source.c (is_regular_file): New function.
7369 (openp): Check wether file to open is a regular file
7370 to avoid opening directories.
7372 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7374 * findvar.c (extract_signed_integer): Cast printf argument
7375 to suppress format warning.
7376 (extract_unsigned_integer): Likewise.
7377 * infcmd.c (registers_info): Likewise.
7378 * top.c (get_prompt_1): Likewise.
7379 * valops.c (value_assign): Likewise.
7380 * valprint.c (print_decimal): Likewise.
7382 2002-04-22 H.J. Lu (hjl@gnu.org)
7384 * c-exp.y (typebase): Support
7386 [long|long long|short] [signed|unsigned] [int|]
7390 signed [long|long long|short] int
7392 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7394 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7396 * vax-tdep.h: New file.
7397 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7398 Make several routines static.
7399 (vax_get_saved_register): New function.
7400 (vax_gdbarch_init): New function.
7401 (_initialize_vax_tdep): Register vax_gdbarch_init.
7402 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7403 Remove macros now under the control of gdbarch.
7405 2002-04-22 Michael Snyder <msnyder@redhat.com>
7407 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7408 Some whitespace and coding standards tweaks.
7410 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7412 * vax-tdep.c: Include regcache.h.
7413 (vax_call_dummy_words): New.
7414 (sizeof_vax_call_dummy_words): New.
7415 (vax_fix_call_dummy): New function.
7416 (vax_saved_pc_after_call): Ditto.
7417 * config/vax/tm-vax.h: Don't include regcache.h.
7418 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7419 (CALL_DUMMY): Remove.
7420 (CALL_DUMMY_WORDS): Define.
7421 (SIZEOF_CALL_DUMMY_WORDS): Define.
7422 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7424 2002-04-18 Michael Snyder <msnyder@redhat.com>
7426 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7428 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7430 * vax-tdep.c (vax_frame_chain): New function.
7431 (vax_push_dummy_frame): Ditto.
7432 (vax_pop_frame): Ditto.
7433 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7434 (FRAMELESS_FUNCTION_INVOCATION): Use
7435 generic_frameless_function_invocation_not.
7436 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7437 (POP_FRAME): Use vax_pop_frame.
7439 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7441 * vax-tdep.c (vax_store_struct_return): New function.
7442 (vax_extract_return_value): Ditto.
7443 (vax_store_return_value): Ditto.
7444 (vax_extract_struct_value_address): Ditto.
7445 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7446 vax_store_struct_return.
7447 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7448 (STORE_RETURN_VALUE): Use vax_store_return_value.
7449 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7451 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7453 * vax-tdep.c (vax_frame_saved_pc): New function.
7454 (vax_frame_args_address_correct): Ditto.
7455 (vax_frame_args_address): Ditto.
7456 (vax_frame_locals_address): Ditto.
7457 (vax_frame_num_args): Move code to be in proximity to
7458 other frame-related functions.
7459 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7460 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7461 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7462 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7463 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7465 2002-04-22 H.J. Lu (hjl@gnu.org)
7467 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7470 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7472 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7473 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7474 (FRAME_INIT_SAVED_REGS): New macro.
7476 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7478 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7480 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7482 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7484 (fetch_osf_core_registers): Likewise.
7485 (supply_gregset): Likewise.
7487 2002-04-22 J. Brobecker <brobecker@gnat.com>
7489 * symfile.h (get_section_index): Define.
7490 * symfile.c (get_section_index): New function.
7491 * mdebugread.c (SC_IS_SBSS): New macro.
7492 (SC_IS_BSS): Return true for the scBss storage class only, as
7493 the scSBss storage class refers to the .sbss section.
7494 (parse_partial_symbols): Discard the symbols which associated
7495 section does not exist.
7496 Make sure to use the .sbss section index for symbols which
7497 storage class is scBss, rather than using the .bss section index.
7499 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7501 * vax-tdep.c: Update copyright years.
7502 (vax_register_name): New function.
7503 (vax_register_byte): Ditto.
7504 (vax_register_raw_size): Ditto.
7505 (vax_register_virtual_size): Ditto.
7506 (vax_register_virtual_type): Ditto.
7507 * config/vax/tm-vax.h: Update copyright years.
7508 (REGISTER_NAMES): Remove.
7509 (REGISTER_NAME): Define.
7510 (REGISTER_BYTE): Use vax_register_byte.
7511 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7512 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7513 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7515 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7517 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7519 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7521 2002-04-21 David S. Miller <davem@redhat.com>
7523 * arch-utils.c (generic_prologue_frameless_p): Kill
7524 SKIP_PROLOGUE_FRAMELESS_P code.
7525 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7527 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7528 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7529 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7531 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7532 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7533 (sparc_gdbarch_init): Pass it to
7534 set_gdbarch_prologue_frameless_p.
7536 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7538 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7539 (alphabsd-nat.o): New dependency list.
7541 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7543 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7545 (alpha-linux-tdep.o): New dependency list.
7546 (alphafbsd-tdep.o): Likewise.
7548 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7550 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7552 * alpha-tdep.c: ...from here.
7553 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7555 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7557 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7558 prototype from here...
7559 * alpha-tdep.h: ...to here.
7561 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7563 * frame.h (selected_frame_level): Document as deprecated.
7564 (frame_relative_level): Declare.
7565 * stack.c (frame_relative_level): New function.
7566 (selected_frame_level): Document as deprecated.
7567 (select_frame): Do not set the selected_frame_level.
7569 * stack.c (frame_info, record_selected_frame): Update.
7570 (frame_command, current_frame_command): Update.
7571 (up_silently_base, up_command, down_silently_base): Update.
7572 (down_command): Update.
7573 * inflow.c (kill_command): Update.
7574 * tracepoint.c (finish_tfind_command): Update.
7575 * corelow.c (core_open): Update.
7576 * thread.c (info_threads_command): Update.
7577 (do_captured_thread_select): Update.
7578 * infcmd.c (finish_command): Update.
7579 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7581 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7583 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7585 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7587 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7590 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7592 * alphafbsd-tdep.c: Update copyright years. Include
7594 (alphafbsd_use_struct_convention): Make static.
7595 (alphafbsd_init_abi): New function.
7596 (_initialize_alphafbsd_tdep): New function.
7597 * config/alpha/tm-fbsd.h: Update copyright years.
7598 (USE_STRUCT_CONVENTION): Remove.
7600 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7602 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7603 an Alpha ABI variant.
7604 (alpha_abi_handler_list): Declare.
7605 (alpha_gdbarch_register_os_abi): New function.
7606 (alpha_gdbarch_init): Give registered ABI variant handlers a
7607 chance to tweak the gdbarch once we have set up defaults.
7608 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7610 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7612 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7613 to standard_coerce_float_to_double.
7614 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7616 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7618 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7619 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7620 from gdbarch_tdep rather than a constant.
7621 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7622 the default text address for all Alpha Unix ABIs.
7623 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7624 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7626 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7628 * alpha-tdep.h: New file. Includes several Alpha target constants
7630 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7631 let gdbarch deal with.
7632 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7633 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7635 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7636 Alpha target register names.
7637 * alphabsd-nat.c: Likewise.
7638 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7639 Alpha target register names. Make serveral routines static.
7640 (alpha_get_saved_register): New function.
7641 (alpha_abi_names): New.
7642 (process_note_abi_tag_sections): New function.
7643 (get_elfosabi): New function.
7644 (alpha_gdbarch_init): New function.
7645 (alpha_dump_tdep): New function.
7646 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7648 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7650 * frame.c (find_saved_register): Delete #ifdef
7651 HAVE_REGISTER_WINDOWS code.
7652 * config/sparc/tm-sparc.h: Update comments.
7653 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7655 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7657 * i960-tdep.c (i960_find_saved_register): New function.
7658 (i960_get_saved_register): New function.
7659 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7660 (i960_get_saved_register): Declare.
7661 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7663 2002-04-20 David S. Miller <davem@redhat.com>
7665 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7667 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7669 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7670 instead of NUM_PSEUDO_REGS.
7672 2002-04-20 David S. Miller <davem@redhat.com>
7674 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7675 GDB_MULTI_ARCH_PARTIAL
7676 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7677 define, let tm-sp64.h do it.
7679 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7681 * frame.c (find_saved_register): Avoid a NULL pointer
7682 dereference and actually walk the frame list.
7684 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7686 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7687 sorted in most most-recent-used order. Document.
7688 * gdbarch.h, gdbarch.c: Regenerate.
7690 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7692 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7694 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7695 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7696 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7699 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7702 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7703 (build_builtin_type_vec128): Ditto.
7704 (append_composite_type_field): Fix calculation of type length in
7707 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7709 * config/djgpp/README: Update.
7711 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7714 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7716 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7717 (alpha_setup_arbitrary_frame): ...to this.
7718 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7719 for alpha_setup_arbitrary_frame.
7721 2002-04-18 Andrew Cagney <cagney@redhat.com>
7723 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7724 * gdbarch.h, gdbarch.c: Regenerate.
7726 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7727 * target.h (memory_breakpoint_from_pc): Update declaration.
7728 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7730 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7731 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7732 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7733 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7734 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7735 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7736 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7737 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7738 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7739 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7740 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7741 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7743 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7745 * monitor.c (monitor_insert_breakpoint): Ditto.
7746 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7748 * config/mcore/tm-mcore.h: Update copyright.
7749 * mem-break.c: Ditto.
7750 * xstormy16-tdep.c: Ditto.
7752 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7754 * p-exp.y: Add precedence rule for '^' token.
7755 This removes the shift/reduce conflicts.
7756 Remove the comment concerning these shift/reduce conflicts.
7758 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7760 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7761 (registers_powerpc_nofp): New register set for processors
7762 without floating point unit.
7764 2002-04-18 David S. Miller <davem@redhat.com>
7766 * MAINTAINERS: Add myself to write-after-approval.
7768 2002-04-17 Michael Snyder <msnyder@redhat.com>
7770 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7772 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7774 * rs6000-tdep.c (frame_initial_stack_address): Use
7775 frame_register_read to read the alloca_reg.
7777 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7779 * frame.c (find_saved_register): Find saved registers in the next
7783 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7785 * gdbarch.sh (LANG): Set to ``c''.
7787 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7789 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7791 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7793 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7796 * hpread.c (hpread_get_lntt): Add declaration.
7797 Also fix PR gdb/391.
7799 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7801 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7802 * aclocal.m4, configure: Re-generate.
7805 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7807 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7808 instead of tm_print_insn.
7810 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7812 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7814 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7816 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7817 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7818 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7820 2002-04-12 Don Howard <dhoward@redhat.com>
7822 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7823 max_user_call_depth.
7824 (init_cmd_lists): Initialize the new value;
7825 * cli/cli-script.c (execute_user_command): Limit the call depth of
7826 user defined commands. This avoids a core-dump when user commands
7827 are infinitly recursive.
7829 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7831 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7832 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7833 from tdep struct instead of DEFAULT_LR_SAVE.
7834 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7835 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7836 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7838 2002-04-12 Michael Snyder <msnyder@redhat.com>
7840 * Remote.c: Spelling fix.
7841 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7842 If no symbol found for "sbrk", try "_sbrk".
7843 (make_output_phdrs): Use bfd_section_name.
7844 (gcore_copy_callback): Use bfd_section_name.
7845 * eval.c: Indentation fix-ups.
7846 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7847 in case it gets applied to an address that is already
7848 in the instruction space.
7849 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7850 * symfile.c: Fix indentation, long lines.
7851 * source.c: White space fix-up.
7853 2002-04-12 Andrew Cagney <cagney@redhat.com>
7855 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7856 * frame.c (frame_register_read): New function. Return non-zero on
7858 (read_relative_register_raw_bytes_for_frame): Delete.
7859 (read_relative_register_raw_bytes): Delete.
7860 * frame.h (frame_register_read): Declare.
7861 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7863 * infcmd.c (do_registers_info): Ditto.
7864 * hppa-tdep.c: Ditto.
7865 * rs6000-tdep.c: Ditto.
7866 * h8500-tdep.c: Ditto.
7867 * mips-tdep.c: Ditto.
7868 * h8300-tdep.c: Ditto.
7869 * z8k-tdep.c: Ditto.
7871 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7873 From Jimi X <jimix@watson.ibm.com>:
7874 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7877 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7879 From Jimi X <jimix@watson.ibm.com>:
7880 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7883 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7885 From Jimi X <jimix@watson.ibm.com>:
7886 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7887 register sets for these processor variants.
7889 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7891 * regformats/reg-ppc.dat: Support FPSCR.
7893 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7895 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7896 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7897 Add fpscr as an invalid/unfetchable register.
7898 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7899 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7900 (fill_fpregset): Add support for register fpscr.
7901 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7902 (fill_gregset): Account for the fact that register ``mq'' might
7904 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7905 (registers_power): Add fpscr to register set at slot 71.
7906 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7907 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7909 2002-04-11 Michael Snyder <msnyder@redhat.com>
7911 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7912 * configure: Regenerate.
7913 * config.in: Regenerate.
7914 * acconfig.h: Add define for _SYSCALL32.
7915 * core-sol2.c: Remove #define _SYSCALL32.
7916 * solib-legacy.c: Remove #define _SYSCALL32.
7918 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7920 * stack.c (select_frame): Cleanup internal error message, do not
7923 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7925 * stack.c (select_frame): Check that selected_frame and the
7926 specified level are as expected.
7927 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7929 * frame.h (struct frame_info): Add field `level'. Update
7931 Work-in-progress PR gdb/464.
7933 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7935 * maint.c (maint_print_section_info): Rename print_section_info.
7936 (print_bfd_section_info, print_objfile_section_info): Update.
7937 * inferior.h (struct gdbarch): Add opaque declaration.
7938 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7939 * gdbarch.h: Regenerate.
7941 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7943 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7944 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7945 (kernel_u_size): Added.
7946 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7947 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7949 2002-04-04 Jim Ingham <jingham@apple.com>
7951 * valarith.c (find_size_for_pointer_math): New function, either returns
7952 the size for a pointer's target, returns 1 for void *, or errors for
7954 (value_add, value_sub): use find_size_for_pointer_math.
7956 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7958 * linux-low.c (linux_look_up_symbols): New hook.
7959 (linux_target_ops): Add linux_look_up_symbols.
7960 * remote-utils.c (decode_address): New function.
7961 (look_up_one_symbol): New function.
7962 * server.c (handle_query): Call target look_up_symbols hook.
7963 * server.h (look_up_one_symbol): Add prototype.
7964 * target.h (struct target_ops): Add look_up_symbols hook.
7966 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7968 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7969 override FP_REGNUM with frame->fp. Update copyright.
7970 * parse.c (num_std_regs, std_regs): Delete.
7971 (target_map_name_to_register): Do not search std_regs. Update
7972 function description.
7973 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7974 declarations. Update copyright.
7977 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7979 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7980 after the last symbol in a block.
7982 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7984 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7985 is non zero as a found symbol.
7987 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7989 * findvar.c: Include "builtin-regs.h".
7990 (value_of_register): Call value_of_builtin_reg when applicable.
7991 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7992 (target_map_name_to_register): Call
7993 builtin_reg_map_name_to_regnum.
7994 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7995 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7996 (builtin_regs_h): Define.
7997 (builtin-regs.o): New target.
7998 (findvar.o): Add $(builtin_regs_h).
7999 * builtin-regs.c, builtin-regs.h: New files.
8000 * std-regs.c: New file.
8001 Partial fix for PR gdb/251.
8003 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8005 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8006 it's no longer required.
8008 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8010 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8012 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8014 From Jimi X <jimix@watson.ibm.com>:
8015 * rs6000-tdep.c (rs6000_software_single_step): Use
8016 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8017 and size. Use target_insert_breakpoint() and
8018 target_remove_breakpoint() to insert and remove breakpoints
8019 instead of explicit memory reads and writes.
8021 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8023 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8024 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8025 ELF_OBJECT_FORMAT ifdef.
8027 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8029 From Jimi X <jimix@watson.ibm.com>:
8030 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8032 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8034 From Jimi X <jimix@watson.ibm.com>:
8035 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8036 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8038 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8040 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8041 s/asprintf/xasprintf/.
8042 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8044 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8046 I believe Jeff Law denies responsability for this one:
8047 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8048 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8049 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8050 Work-around for PR gdb/366.
8052 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8054 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8055 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8056 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8058 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8060 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8061 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8064 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8066 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8069 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8071 * README (Reporting Bugs in GDB): Document the bug web page as the
8072 prefered way of submitting bugs.
8075 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8077 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8079 * gdbarch.h, gdbarch.c: Re-generate.
8081 2002-04-07 Andreas Schwab <schwab@suse.de>
8083 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8084 buffer to regcache_collect.
8086 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8088 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8089 * gdbarch.c, gdbarch.h: Re-generate.
8091 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8093 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8094 declaration. Fix -Werror.
8096 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8098 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8099 * gdbarch.c: Regenerate.
8101 2002-04-05 Michael Snyder <msnyder@redhat.com>
8103 * breakpoint.c (clear_command): Rewrite middle section to
8104 combine two loops with identical control conditions.
8105 Add a cleanup to eliminate a memory leak.
8106 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8108 2002-04-05 H.J. Lu (hjl@gnu.org)
8110 * solib-svr4.c (bkpt_names): Add "__start".
8112 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8114 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8115 as test for 64 bit target.
8117 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8119 * h8500-tdep.c (h8500_write_fp): Delete function.
8120 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8121 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8122 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8124 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8125 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8127 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8128 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8129 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8130 (d10v_write_fp): Delete function.
8131 * inferior.h (write_fp, generic_target_write_fp): Delete
8133 * regcache.c (generic_target_write_fp): Delete function.
8134 (write_fp): Delete function.
8135 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8136 * gdbarch.h, gdbarch.c: Regenerate.
8137 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8138 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8139 (sparc64_write_fp): Delete declaration.
8140 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8141 (h8500_write_fp): Delete declaration.
8143 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8145 * sparc-tdep.c (sparc64_write_fp): Delete.
8146 (sparc_push_dummy_frame): Replace write_fp call with code to store
8148 (sparc_gdbarch_init): Do not initialize write_fp.
8150 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8152 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8155 2002-03-29 Jim Blandy <jimb@redhat.com>
8157 * stack.c (get_selected_block): Add new argument `addr_in_block',
8158 used to return the exact code address we used to select the block,
8160 * blockframe.c (get_frame_block, get_current_block): Same.
8161 * frame.h (get_frame_block, get_current_block,
8162 get_selected_block): Update declarations.
8163 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8164 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8166 2002-04-05 Michael Snyder <msnyder@redhat.com>
8168 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8171 2002-04-05 J. Brobecker <brobecker@gnat.com>
8173 * utils.c (xfullpath): New function.
8174 * defs.h (xfullpath): Add declaration.
8175 * source.c (openp): Use xfullpath in place of gdb_realpath to
8176 avoid resolving the basename part of filenames when the
8177 associated file is a symbolic link. This fixes a potential
8178 inconsistency between the filenames known to GDB and the
8179 filenames it prints in the annotations.
8180 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8181 to be able to match a filename with either the real filename, or
8182 the name of any symbolic link to this file.
8183 (lookup_partial_symtab): Ditto.
8185 2002-04-04 Michael Snyder <msnyder@redhat.com>
8187 * breakpoint.c: Add support for hardware breakpoints in overlays.
8188 (overlay_events_enabled): New state variable.
8189 (insert_breakpoints): Use overlay_events_enabled to decide
8190 whether to attempt to set a breakpoint at the overlay load addr.
8191 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8192 (remove_breakpoint): Use overlay_events_enabled to decide
8193 whether breakpoints need to be removed from overlay load addr.
8194 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8195 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8196 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8197 disable_overlay_breakpoints): Update overlay_events_enabled.
8199 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8201 * dwarf2read.c (struct function_range): New.
8202 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8203 (check_cu_functions): New.
8204 (read_file_scope): Initialize global function lists.
8205 Call dwarf_decode_line after processing children.
8206 (read_func_scope): Add to global function list.
8207 (dwarf_decode_lines): Call check_cu_functions everywhere
8208 record_line is called. Call record_line with a linenumber
8209 of 0 to mark sequence ends.
8211 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8213 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8214 change sync with glibc.
8216 2002-04-03 Jim Blandy <jimb@redhat.com>
8218 * configure.in: Call AC_C_INLINE.
8219 * configure: Regenerated.
8221 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8223 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8224 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8226 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8228 * NEWS: Mention gcore support on FreeBSD/i386.
8230 * fbsd-proc.c: New file.
8231 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8232 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8234 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8237 2002-03-29 Jim Blandy <jimb@redhat.com>
8239 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8240 unescaped newlines in string literals, but newer ones don't. So
8243 2002-03-26 Michael Snyder <msnyder@redhat.com>
8244 Andrew Cagney <cagney@redhat.com>
8246 * cli/cli-dump.c: New file. Dump memory to file,
8247 restore file to memory.
8248 * cli/cli-dump.h: New file.
8249 * Makefile.in: Add rules, dependencies for cli-dump.o.
8250 * NEWS: Mention new commands.
8252 2002-03-28 Michael Snyder <msnyder@redhat.com>
8254 * symfile.c (symbol_file_add): Move test for null symbols to later.
8256 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8258 From veksler at il.ibm.com:
8259 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8260 the xstrduped original path.
8263 2002-03-27 Michael Snyder <msnyder@redhat.com>
8265 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8266 * infcmd.c (_initialize_infcmd): Ditto.
8267 * language.c (_initialize_language): Ditto.
8268 * symfile.c (_initialize_symfile): Ditto.
8269 * top.c (_init_main): Ditto.
8270 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8272 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8274 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8275 vector registers handling.
8276 (skip_prologue): Handle new AltiVec instructions. Fill in new
8277 fields of frame data.
8278 (frame_get_saved_regs): Fill in information for AltiVec registers.
8280 2002-03-27 Jim Blandy <jimb@redhat.com>
8282 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8283 a function; leave this macro here to invoke that function.
8284 (symbol_init_mangled_name): Declaration for that function.
8285 * symtab.c (symbol_init_mangled_name): New function.
8287 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8289 * valarith.c: Replace strerror with safe_strerror.
8290 * tracepoint.c: Ditto.
8292 * go32-nat.c: Ditto.
8296 2002-03-27 Andreas Schwab <schwab@suse.de>
8298 * event-top.c (command_line_handler): Remove useless if.
8300 2002-03-27 Andreas Jaeger <aj@suse.de>
8302 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8305 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8307 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8308 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8309 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8310 (x86_64_linux_dr_get_status, supply_gregset),
8311 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8312 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8313 (x86_64_register_info_table): Add.
8314 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8315 (x86_64_register_raw_size, x86_64_register_virtual_type),
8316 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8317 general x86_64_register_info_table.
8318 (i386_gdbarch_init): gdbarch_register_bytes is now set
8319 dynamicaly during initialization.
8320 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8321 * gdbserver/linux-x86-64-low.c: Ditto.
8323 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8325 * gdbserver/server.c (main): Call target_signal_to_host_p
8326 and target_signal_to_host on signals received from the remote.
8327 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8328 target_signal_from_host on signals sent to the remote.
8329 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8330 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8332 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8334 * signals/signals.c: Include "server.h" in gdbserver build.
8335 (target_signal_from_name): Don't use STREQ.
8336 (_initialize_signals): Likewise. Don't include function in
8339 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8341 * signals.c: Moved to...
8342 * signals/signals.c: Here.
8343 * Makefile (signals.o): Update.
8345 2002-03-26 Jeff Law (law@redhat.com)
8347 * somread.c (som_symtab_read): Remove some commented out code and
8348 updated related comments. Do not set the minimal symbol table to
8349 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8350 in a dynamic executable.
8351 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8352 where we are unable to find the minimal symbol for the given
8355 2002-03-25 Jeff Law (law@redhat.com)
8357 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8359 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8361 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8363 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8365 * command.h: Update copyright.
8366 (struct cmd_list_element): Replace definition with opaque
8368 (enum cmd_types): Document that it will eventually be moved to
8370 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8371 (MALLOCED_REPLACEMENT): Delete macro.
8372 * Makefile.in (cli_decode_h): Add $(command_h).
8373 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8374 * top.c: Include "cli/cli-decode.h".
8375 * completer.c: Include "cli/cli-decode.h".
8376 * maint.c: Include "cli/cli-decode.h".
8377 * cli/cli-decode.h: Include "command.h".
8378 (enum command_class): Delete.
8379 (enum cmd_types): Comment out.
8380 (enum cmd_auto_boolean): Delete.
8381 (enum var_types): Delete.
8383 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8385 * cli/cli-decode.c: Include "gdb_assert.h".
8386 (add_set_or_show_cmd): New static function.
8387 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8388 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8389 all fields, such as func, from the set command.
8391 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8393 * MAINTAINERS (sh-elf): Change warning flag to -w.
8395 2002-03-23 Andrew Cagney <cagney@redhat.com>
8397 * defs.h (error): Add printf format attribute.
8398 * thread-db.c (thread_from_lwp): Fix error format string.
8399 * stack.c (parse_frame_specification): Ditto.
8400 * cli/cli-decode.c (undef_cmd_error): Ditto.
8401 * scm-lang.c (scm_lookup_name): Ditto.
8402 * tracepoint.c (trace_error): Ditto.
8403 * remote-utils.c (usage): Ditto.
8404 * remote.c (compare_sections_command): Ditto.
8407 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8409 * gdbtypes.c (append_composite_type_field): New function.
8410 (init_composite_type): New function.
8411 * gdbtypes.h (append_composite_type_field): Declare.
8412 (init_composite_type): Ditto.
8414 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8416 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8418 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8419 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8420 structure returning convention for SYSV ABI case, but not
8421 for GNU/Linux, FreeBSD, or NetBSD.
8423 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8425 * symtab.h (lookup_block_symbol): Add mangled_name argument
8428 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8429 with new mangled_name argument.
8430 * linespec.c (decode_line_1): Likewise.
8431 * valops (value_of_this): Likewise.
8432 * symtab.c (lookup_transparent_type): Likewise.
8433 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8434 (lookup_symbol): If we are given a mangled name, pass it down
8435 to lookup_symbol_aux.
8436 (lookup_block_symbol): If we are given a mangled name to check
8437 against, only return symbols which match it.
8439 2002-03-22 Christopher Faylor <cgf@redhat.com>
8441 * win32-nat.c (child_create_inferior): Check for proper shell to use
8442 here, in case the user changes it on the fly.
8443 (_initialize_inftarg): Remove shell path considerations.
8445 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8447 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8448 for gdbarch_max_register_raw_size and max_register_virtual_size.
8449 Adjust copyright year.
8451 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8453 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8454 in a function to cover the entire beginning of the function
8455 as well if it does not already.
8457 2002-03-21 Tom Rix <trix@redhat.com>
8459 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8460 (rs6000_ptrace64): Renamed from ptrace64.
8462 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8464 * gdbserver/remote-utils.c (remote_open): Don't call
8465 getprotobyname, we're all using TCP here so just use
8467 * gdbserver/gdbreplay.c (remote_open): Ditto.
8469 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8471 * regcache.c (_initialize_regcache): No need to call
8472 build_regcache() at this time; it gets called whenever
8473 the gdbarch changes.
8475 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8477 * sparc-nat.c: Include sys/param.h where possible.
8479 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8482 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8483 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8484 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8486 * stabsread.c (rs6000_builtin_type): Likewise.
8487 (read_sun_floating_type): Likewise.
8489 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8491 * stabsread.c (read_member_functions): Remove skip code for duplicate
8492 constructor/destructor methods. Use standard parsing for these
8493 methods and just do not chain them to the list of methods after
8496 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8498 * coffread.c: Remove redundant static declarations. Replace
8499 occurrences of `PTR' with `void *'.
8500 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8501 * top.h (quit_cover): Likewise.
8502 * defs.h (catch_errors): Likewise.
8504 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8506 * defs.h (XMALLOC): Define.
8507 * gdb-events.sh (XMALLOC): Delete macro.
8508 * gdb-events.c, gdb-events.h: Regenerate.
8509 * gdbarch.sh (XMALLOC): Delete macro.
8510 * gdbarch.c: Regenerate.
8511 * serial.c (XMALLOC): Delete macro.
8512 * ui-file.c (XMALLOC): Ditto.
8513 * ser-unix.h (XMALLOC): Ditto.
8514 * sh-tdep.c (XMALLOC): Ditto.
8515 * ui-out.c (XMALLOC): Ditto.
8516 * utils.c (XMALLOC): Ditto.
8517 * i386-tdep.c (XMALLOC): Ditto.
8518 * gdb-events.c (XMALLOC): Ditto.
8519 * d10v-tdep.c (XMALLOC): Ditto.
8520 * cli-out.c (XMALLOC): Ditto.
8522 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8523 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8524 * ui-file.c, ui-out.c: Ditto.
8526 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8528 * command.h (struct cmd_list_element): Add field context.
8529 (set_cmd_context, get_cmd_context): Declare.
8530 * cli/cli-decode.h: Ditto.
8531 * cli/cli-decode.c (get_cmd_context): New function.
8532 (set_cmd_context): New function.
8533 (add_cmd): Initialize context.
8534 Part of fixing PR gdb/145 and PR gdb/146.
8536 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8538 * cli/cli-decode.c (cmd_type): New function.
8539 * command.h (cmd_type): Declare.
8540 * infrun.c (set_schedlock_func): Call function cmd_type.
8541 * kod.c (kod_set_os): Call cmd_type.
8542 * cris-tdep.c (cris_version_update): Use function cmd_type.
8543 (cris_mode_update, cris_abi_update): Ditto.
8545 * command.h: (execute_cmd_post_hook): Declare.
8546 (execute_cmd_pre_hook): Declare.
8547 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8548 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8549 functions. Execute pre/post hook while ensuring that afterwords
8551 * top.c (execute_command): Use execute_cmd_post_hook, and
8552 execute_cmd_pre_hook to execute pre/post commands.
8553 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8555 (hook_stop_stub): Call execute_cmd_pre_hook.
8557 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8559 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8560 set'' and this leads to a core dump. Move xstrdup of
8561 operating_system to after check that it is not NULL.
8563 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8565 * kod.c (kod_set_os): Remove unnecessary check that
8566 ``command->type'' is set_cmd.
8568 * valprint.c (set_input_radix): Use input_radix.
8569 (set_output_radix): Use output_radix.
8570 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8573 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8575 * value.h (struct value): Delete field ``substring_addr''. Change
8576 aligner fields to force_doublest_align, force_longest_align,
8577 force_core_addr_align and force_pointer_aligh.
8579 * value.h (struct value): Fix typo in above change.
8581 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8583 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8584 to fix internal_error from ``maintenance print architecture''.
8586 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8588 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8589 for gcc versions after gcc-2.8.1.
8591 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8593 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8594 for method resolution. Restore adjustment of ``this'' pointer after
8595 calling value_struct_elt, which was accidentally removed during the
8598 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8600 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8602 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8604 * value.h (value_of_register): Update.
8606 2002-03-14 Richard Henderson <rth@redhat.com>
8608 * configure.in: Detect declaration for canonicalize_file_name.
8609 * utils.c (canonicalize_file_name): Declare, if needed.
8610 (gdb_realpath): Prefer realpath if available and usable.
8611 * config.in, configure: Rebuild.
8613 2002-03-14 Richard Henderson <rth@redhat.com>
8615 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8616 a constant array bound.
8618 * MAINTAINERS: Add myself to write-after-approval.
8620 2002-03-14 Michael Snyder <msnyder@redhat.com>
8622 * symfile.c (syms_from_objfile): Return immediately if no syms.
8623 (symbol_file_add): Return immediately if no syms.
8624 (find_sym_fns): Return immediately if no syms.
8626 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8628 * gdbserver/remote-util.c (remote_open): Print remote-side's
8629 IP address when remote debugging over the network.
8631 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8633 * config/sparc/fbsd.mh: Fix copyright.
8634 * config/sparc/fbsd.mt: Likewise.
8636 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8638 * MAINTAINERS: Fix typo in name of gdb warnings option.
8639 (x86-64): Fix formating so that this can be parsed by awk.
8641 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8643 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8644 * defs.h: Include "gdb/signals.h".
8645 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8647 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8649 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8650 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8653 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8654 Don Howard <dhoward@redhat.com>
8656 * mips-tdep.c (ST0_FR): Define.
8657 (mips2_fp_compat): New function, temporarily disabled.
8658 (mips_read_fp_register_single): New function.
8659 (mips_read_fp_register_double): New function.
8660 (mips_print_register): Use them.
8661 (do_fp_register_row): Likewise.
8663 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8665 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8668 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8670 * stabsread.c (read_member_functions): Fix is_stub test for
8671 static member functions, improve comment.
8673 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8675 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8676 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8677 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8678 commands that set boolean values.
8679 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8680 (arm_rdi_resume): Always initialize PC.
8681 (arm_rdi_open): Don't use rslt as a boolean.
8682 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8683 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8684 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8685 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8687 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8689 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8690 * configure: Rebuilt.
8692 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8694 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8695 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8697 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8699 * cli/cli-decode.c (set_cmd_completer): New function.
8700 * command.h (set_cmd_completer): Declare.
8701 * cli/cli-decode.h (set_cmd_completer): Ditto.
8703 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8704 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8705 * win32-nat.c (_initialize_inftarg): Ditto.
8706 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8707 * proc-api.c (_initialize_proc_api): Ditto.
8708 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8709 * source.c (_initialize_source): Ditto.
8710 * exec.c (_initialize_exec): Ditto.
8711 * solib.c (_initialize_solib): Ditto.
8712 * top.c (init_main): Ditto.
8713 * tracepoint.c (_initialize_tracepoint): Ditto.
8714 * symfile.c (_initialize_symfile): Ditto.
8715 * printcmd.c (_initialize_printcmd): Ditto.
8716 * infcmd.c (_initialize_infcmd): Ditto.
8717 * corefile.c (_initialize_core): Ditto.
8719 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8721 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8723 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8725 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8727 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8729 * NEWS: Update headings, 5.2 has branched.
8731 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8733 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8734 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8735 (register_addr, REGISTER_RAW_SIZE): Likewise.
8736 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8737 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8739 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8741 * MAINTAINERS (x86-64): Add myself.
8742 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8743 changed value_ptr -> struct value *
8745 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8747 * configure.host (sparc64-*-freebsd): Add.
8748 * configure.tgt: Likewise.
8749 * config/sparc/fbsd.mh: New file.
8750 * config/sparc/fbsd.mt: Likewise.
8751 * config/sparc/nm-fbsd.h: Likewise.
8752 * config/sparc/tm-fbsd.h: Likewise.
8754 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8756 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8757 regformats/reg-s390x.dat.
8759 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8761 * utils.c: Add FIXME explaining true/false problem.
8763 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8765 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8767 2002-02-28 Michael Chastain <mec@shout.net>
8769 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8771 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8773 * gdbserver/linux-s390-low.c: New file.
8774 * regformats/reg-s390.dat: New file.
8775 * regformats/reg-s390x.dat: New file.
8776 * gdbserver/configure.srv: Add S/390.
8777 * gdbserver/Makefile.in: Add S/390.
8778 * configure.tgt: Enable gdbserver for S/390.
8780 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8782 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8783 first line of the doc string for "info dos", except at the end of
8784 the sentence, since the short help stops at the first period.
8786 2002-02-28 Jason Merrill <jason@redhat.com>
8788 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8790 2002-02-27 Fred Fish <fnf@redhat.com>
8792 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8793 comment (dumy -> dummy).
8795 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8797 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8799 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8801 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8803 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8805 * gdbserver/acconfig.h: New file.
8806 * gdbserver/i387-fp.c: New file.
8807 * gdbserver/i387-fp.h: New file.
8808 * gdbserver/linux-x86-64.c: New file.
8809 * regformats/reg-x86-64.dat: New file.
8810 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8811 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8812 * gdbserver/configure.in: Add support for regsets.
8813 * gdbserver/config.in: Regenerate.
8814 * gdbserver/configure: Regenerate.
8815 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8816 * gdbserver/linux-low.h: New file.
8817 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8819 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8820 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8821 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8822 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8823 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8824 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8825 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8826 "i387-fp.h". Add PTRACE_GETREGS and friends.
8827 * gdbserver/regcache.c (supply_register): New function.
8828 (supply_register_by_name): New function.
8829 (collect_register): New function.
8830 (collect_register_by_name): New function.
8832 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8834 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8835 (config.status): Add configure.srv dependency.
8836 (server_h): Add config.h dependency.
8838 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8840 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8841 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8842 * gdbserver/configure.srv: Change i386-*-linux* to use
8845 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8847 * x86-64-tdep.c: Re-indent. Update copyright date.
8849 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8851 From Michal Ludvig <mludvig@suse.cz>:
8852 * x86-64-tdep.c (value.h): Delete.
8853 (gdb_assert.h): Include.
8854 (x86_64_register_convert_to_virtual,
8855 x86_64_register_convert_to_raw ): Add check which lets only
8856 floating-point values to be converted.
8857 (value_push): Delete.
8858 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8859 (i386_gdbarch_init): Number of register_bytes fixed.
8861 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8863 * MAINTAINERS: Add x86-64 target.
8865 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8867 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8868 * osfsolib.c (solib_map_sections): Ditto.
8869 * irix5-nat.c (solib_map_sections): Ditto.
8870 * corelow.c (gdb_check_format): Ditto.
8871 * symfile.c (symfile_bfd_open): Ditto.
8872 * solib.c (solib_map_sections): Ditto.
8875 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8877 * remote.c (_initialize_remote): By default, disable ``e'' and
8878 ``E'' step out-of-range packets.
8880 2002-02-26 Andreas Schwab <schwab@suse.de>
8882 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8883 m68k_linux_frame_saved_pc.
8884 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8886 (SIGCONTEXT_PC_OFFSET): Remove.
8887 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8888 m68k_linux_sigtramp_saved_pc): New functions.
8889 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8890 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8891 (UCONTEXT_PC_OFFSET): Define.
8892 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8893 non-RT and RT signal trampolines.
8895 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8897 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8898 (TARGET_NBPG, STACK_END_ADDR): Delete
8899 (VARIABLES_INSIDE_BLOCK): Delete.
8901 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8903 * utils.c (perror_with_name): Make string parameter constant.
8904 (print_sys_errmsg): Ditto.
8906 * defs.h (perror_with_name): Update.
8907 (print_sys_errmsg): Update.
8910 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8912 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8913 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8915 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8917 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8918 if it already matches the current architecture from the exec file.
8919 Include arch-utils.h for gdbarch_info_init prototype.
8920 * Makefile.in (rs6000-nat.o): Update dependencies.
8922 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8924 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8925 list of exported variables.
8927 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8929 * gdbserver/configure.srv: New file.
8930 * gdbserver/configure.in: Use configure.srv instead
8931 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8933 * gdbserver/configure: Regenerated.
8934 * gdbserver/terminal.h: New file.
8935 * gdbserver/Makefile.in: Update for configure changes. Remove
8936 more unneeded include paths.
8938 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8940 From wiz at danbala:
8941 * config/sparc/tm-sp64.h: Fix grammar and typos.
8944 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8946 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8947 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8948 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8949 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8950 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8951 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8952 * s390-tdep.c: Ditto.
8953 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8954 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8955 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8956 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8957 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8958 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8959 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8960 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8961 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8962 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8965 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8967 * lin-thread.c: Delete file.
8968 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8969 to gdb_proc_service.h.
8970 * configure: Re-generate.
8972 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8973 * serial.c (serial_open): Delete check for "ocd".
8976 * Makefile.in (linux-thread.o): Delete target.
8977 * linux-thread.c: Delete file.
8979 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8980 renamed SH files to be consistent.
8982 * symtab.c (sort_search_symbols): Use xfree.
8984 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8986 * arm-linux-tdep.c (arm_linux_init_abi): Register
8987 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8988 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8989 definition with undef, since we don't want the sysvr4 definition.
8990 (SKIP_TRAMPOLINE_CODE): Likewise.
8992 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8994 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8996 * configure.in: (AC_CHECK_FUNCS) Added test for
8997 canonicalize_file_name Regenerated.
8998 * config.in, configure: Regenerated.
8999 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9000 defined use canonicalize_file_name.
9002 2002-02-23 Michael Chastain <mec@shout.net>
9004 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9006 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9008 * README: Remove references to cygnus.com.
9009 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9010 dot com'' form. Remove references to cygnus.com and sourceware.
9012 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9014 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9015 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9016 1003.1-2001 no longer allows "head -1".
9017 * gdb/Makefile.in (version.c): Likewise.
9018 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9019 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9020 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9022 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9024 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9025 * command.h (cmd_cfunc_eq): Declare.
9026 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9028 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9029 ``struct cmd_list_element *''.
9030 * cli/cli-cmds.c (is_complete_command): Update. Use
9032 * top.c (execute_command): Pass the command to
9033 is_complete_command.
9034 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9036 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9038 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9039 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9040 architecture defines.
9041 * s390-tdep.c (s390_gdbarch_init): Likewise.
9043 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9045 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9046 (arm_linux_push_arguments): Likewise.
9047 (arm_linux_init_abi): Register them. Also register linux-specific
9049 (find_minsym_and_objfile): Use strcmp, not STREQ.
9050 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9051 (arm_linux_call_dummy_words): Delete declaration.
9052 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9053 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9055 (LOWEST_PC): Delete.
9057 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9059 * maint.c (print_section_info): Do not prepend `0x' to filepos
9060 output, it will be handled by local_hex_string_custom.
9062 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9064 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9065 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9066 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9068 2002-02-22 Jim Blandy <jimb@redhat.com>
9070 Indicate that the bcache functions don't change the strings
9072 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9073 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9075 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9077 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9079 2002-02-21 Christopher Faylor <cgf@redhat.com>
9081 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9082 find the complete path to a loaded DLL.
9084 2002-02-21 Fred Fish <fnf@redhat.com>
9086 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9087 that marks the end of the range of a function, enter a line number
9088 entry that has a line number of zero and a PC offset that matches
9089 the end of the function. This starts a range of PC's for which no
9090 line number information is known.
9091 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9092 PC's for which no line number info is found (line number is zero)
9093 then we didn't find any valid line information.
9094 * symtab.h: Document use of zero line number entry.
9096 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9098 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9099 (have_ptrace_getvrregs): Define for run time checks.
9100 (gdb_vrregset_t): New type for Altivec register handling.
9101 (fetch_register, store_register): Fetch/store altivec register
9103 (fetch_altivec_register, store_altivec_register): New functions.
9104 (supply_vrregset, fill_vrregset): New functions.
9105 (fetch_altivec_registers, store_altivec_registers): New functions.
9106 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9109 2002-02-21 Jiri Smid <smid@suse.cz>
9111 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9113 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9115 * Makefile.in (armnbsd-nat.o): Update dependencies.
9116 * armnbsd-nat.c (supply_gregset): New function. Common code to
9117 supply the integer register set.
9118 (supply_fparegset): New function. Similar for FPA registers.
9119 (fetch_regs, fetch_fp_regs): Use them.
9120 (fetch_core_registers): Likewise.
9121 (fetch_elfcore_registers): New function.
9122 (arm_netbsd_elfcore_fns): New core-file type specification.
9123 (_initialize_arm_netbsd_nat): Register it.
9125 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9127 * armnbsd-nat.c: Include gdbcore.h.
9128 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9129 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9130 'void' to declaration, to shut up ARI.
9131 (fetch_core_registers): Make static. Rewrite using supply_register.
9132 (arm_netbsd_core_fns): New core-file type specification.
9133 (_initialize_arm_netbsd_nat): New function.
9135 2002-02-21 Christopher Faylor <cgf@redhat.com>
9137 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9140 2002-02-20 Christopher Faylor <cgf@redhat.com>
9142 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9145 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9147 * jv-exp.y (parse_number): Change type of implicit longs
9148 to builtin_type_uint64.
9150 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9152 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9153 to be an integer instead of a `union wait'.
9155 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9157 * mips-linux-nat.c: Call the operating system GNU/Linux.
9158 * mips-linux-tdep.c: Likewise.
9159 * mips-tdep.c: Likewise.
9161 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9164 * jv-exp.y (parse_number): Handle 64-bit integers.
9166 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9168 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9169 AC_STDC_HEADERS to AC_HEADER_STDC.
9170 * gdbserver/configure: Regenerated.
9172 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9174 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9176 * sparc-tdep.c (get_longjmp_target): Likewise.
9178 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9180 * News: Add news about ARM and Multi-arch. Mention the new target
9183 2002-02-19 Jim Blandy <jimb@redhat.com>
9185 * stabsread.c (error_type_complaint): Improve error message.
9187 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9189 * gdbserver/README: Update documentation.
9190 * gdbserver/configure.in: Update configury to match documentation.
9191 * gdbserver/Makefile.in: Likewise.
9192 * gdbserver/configure: Regenerated.
9193 * gdbserver/aclocal.m4: New file, generated by aclocal.
9194 * gdbserver/config.in: New file, generated by autoheader.
9196 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9198 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9201 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9203 * arm-tdep.h (enum arm_float_model): New enum.
9204 (struct gdbarch_tdep): Add fp_model.
9205 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9206 up floating-point conversions until we know the floating-point model
9207 in use by the inferior. Don't complain about being unable to
9208 determine the ABI of the inferior when we don't have one.
9209 (arm_extract_return_value): Support different floating-point models.
9210 (arm_store_return_value): Likewise.
9211 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9213 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9215 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9217 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9218 of ``current_gdbarch''.
9220 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9222 * armnbsd-nat.c : ANSIfy all function declarations.
9223 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9224 (fetch_inferior_registers): Re-implement in terms of above.
9225 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9226 (store_inferior_registers): Re-implement in terms of above.
9228 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9230 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9232 * arm-linux-tdep.c: Likewise.
9233 * config/arm/tm-linux.h: Likewise.
9235 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9237 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9238 * config/arm/nbsd.mt (TM_FILE): Delete.
9239 * config/arm/tm-nbsd.h: Delete.
9241 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9243 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9244 Initialize CALL_DUMMY_LENGTH.
9246 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9248 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9250 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9251 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9252 defines one thing and that is incorrect for this port.
9253 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9255 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9257 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9259 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9261 * win32-nat.c (display_selector): New function. Displays information
9262 about the information returned by GetThreadSelectorEntry API function.
9263 (display_selectors): New function. Displays the infomation of
9264 the selector given as argument, or of CS, DS ans FS selectors
9265 if no argument is given.
9266 ( _initialize_inftarg): Add "w32" as info prefix command.
9267 Add "info w32 selector" as command calling display_selectors.
9269 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9271 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9272 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9275 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9277 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9279 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9281 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9282 (arm_fix_call_dummy): Call it.
9283 (arm_call_dummy_breakpoint_offset): Delete.
9284 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9285 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9287 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9289 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9290 Default to func_frame_chain_valid.
9291 * gdbarch.h, gdbarch.c: Re-generate.
9292 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9294 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9296 * ppc-linux-nat.c: Update copyright.
9297 (fetch_register, store_register): Add tid parameter, don't compute
9299 (fetch_ppc_registers, store_ppc_registers): Add tid
9300 parameter. Pass it along to callees.
9301 (fetch_inferior_registers, store_inferior_registers): Compute tid
9302 here, and pass it to calleed functions.
9303 (fill_gregset, supply_fpregset): Clean up formatting.
9305 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9307 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9308 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9310 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9312 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9313 * gdbarch.c gdbarch.h: Regenerate.
9314 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9316 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9317 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9318 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9320 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9321 * arm-tdep.c (arm_get_longjmp_target): New function.
9322 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9323 this to a positive value register arm_get_longjmp_target as the
9325 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9326 (arm_linux_init_abi): Set up longjmp description in tdep.
9327 * armnbsd-nat.c (get_longjmp_target): Delete.
9328 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9329 description in tdep.
9330 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9331 (get_longjmp_target): Delete declaration.
9332 (GET_LONGJMP_TARGET): Delete.
9333 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9334 (GET_LONGJMP_TARGET): Delete.
9336 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9338 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9339 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9340 of ``current_gdbarch''.
9342 2002-02-17 Tom Tromey <tromey@redhat.com>
9344 * cli/cli-cmds.c (compare_strings): New function.
9345 (complete_command): Only print each unique item once.
9346 * completer.h (complete_line): Declare.
9347 * completer.c (complete_line): New function.
9348 (line_completion_function): Use it.
9350 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9352 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9353 * gdbarch.h, gdbarch.c: Re-generate.
9355 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9357 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9359 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9361 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9362 * valops.c (value_arg_coerce): Don't take the address of a reference
9363 to convert an argument to a reference.
9365 2002-02-15 Christopher Faylor <cgf@redhat.com>
9367 * win32-nat.c (get_image_name): New function.
9368 (handle_load_dll): Use get_image_name function.
9369 (get_child_debug_event): Avoid registering debug events until possibly
9370 execed process is started.
9371 (child_create_inferior): Allow invocation via shell so that command
9372 line redirection, etc. works ok.
9373 (_initialize_inftarg): Add new command: "set shell" to control whether
9374 a shell is used to start a process.
9376 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9378 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9379 instead of find_register_by_number.
9380 (cannot_store_register): Likewise.
9382 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9384 * dwarf2read.c: Replace fprintf (stderr, ...) by
9385 fprintf_unfiltered (gdb_stderr, ...).
9387 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9389 * gdbserver/gdbserver.1: Document --attach.
9391 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9393 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9395 * arm-tdep.c (arm_default_arm_le_breakpoint)
9396 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9397 (arm_default_thumb_be_breakpoint): New. Initialize them from
9398 traditional breakpoint defines.
9399 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9400 (arm_gdbarch_init): Initialize new breakpoint variables.
9401 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9402 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9403 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9404 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9406 (arm_netbsd_init_abi_common): ... here; new function.
9407 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9408 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9409 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9410 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9412 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9414 * arm-tdep.h (enum arm_abi): New enum.
9415 (struct gdbarch_tdep): New structure.
9416 (LOWEST_PC): Provide a default.
9417 (arm_gdbarch_register_os_abi): Declare new function.
9418 * arm-tdep.c (arm_abi_names): New array.
9419 (process_note_abi_tag_sections): New function.
9420 (get_elfosabi): New function.
9421 (arm_gdbarch_register_os_abi): New function.
9422 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9423 support for that ABI has been built in, then call the appropriate
9424 configuration routine. Use gdbarch_num_regs() to get the number
9426 (arm_dump_tdep): New function.
9427 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9428 place-holder functions.
9429 (_initialize_arm_tdep): Register them.
9430 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9432 * armnbsd-tdep.c: New file.
9433 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9434 * config/arm/nbsd.mt (TDEPFILES): Add it.
9435 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9437 * armnbsd-nat.c: Include regcache.h.
9438 * Makefile.in (armnbsd-nat.o): Update dependency list.
9440 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9442 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9444 * gdbserver/Makefile.in: Fix typos in target rules.
9446 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9448 Fix part of PR gdb/267.
9449 * linespec.c (find_methods): Handle constructors specially for now.
9451 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9453 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9455 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9456 standard_coerce_float_to_double().
9458 2002-02-14 Christopher Faylor <cgf@redhat.com>
9460 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9463 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9465 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9466 find_variant_by_name, because it confuses the multiarch
9467 framework. Return NULL if there isn't an architecture with the
9468 user supplied name, instead of forcing a different one without
9469 recording the change with the multiarch machinery.
9470 (find_variant_by_name): Delete.
9472 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9474 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9475 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9477 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9479 * stack.c (print_frame_info_base): When calling
9480 print_frame_info_listing_hook, set current_source_symtab.
9482 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9484 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9485 and remove unused $(INCLUDE_DIR).
9486 Add regcache.c to OBS.
9487 Add generated register protocol files to clean target.
9488 Update dependencies for new objects, obsolete old target code.
9490 * gdbserver/linux-low.c: Remove all platform-specific code to
9491 new files. Remove various dead code. Update to use regcache
9493 * gdbserver/remote-utils.c (fromhex): Add return statement
9495 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9497 (input_interrupt): Add integer parameter to match prototype
9498 of a signal handler.
9499 (outreg): Use register_data ().
9500 (prepare_resume_reply): Use gdbserver_expedite_regs.
9501 * gdbserver/server.c (main): Dynamically allocate own_buf because
9502 PBUFSIZ is no longer constant. Use registers_to_string () and
9503 registers_from_string ().
9504 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9505 for error (), fatal (), and warning (). Update definition of
9506 PBUFSIZ to use regcache functionality. Add include guard.
9507 * gdbserver/utils.c (fatal): Add missing ``const''.
9508 (warning): New function.
9510 * regformats/regdat.sh: Include "regcache.h" in generated files.
9511 Provide init_registers () function.
9512 * regformats/regdef.h: Add prototype for set_register_cache ().
9515 * gdbserver/linux-arm-low.c: New file.
9516 * gdbserver/linux-i386-low.c: New file.
9517 * gdbserver/linux-ia64-low.c: New file.
9518 * gdbserver/linux-m68k-low.c: New file.
9519 * gdbserver/linux-mips-low.c: New file.
9520 * gdbserver/linux-ppc-low.c: New file.
9521 * gdbserver/linux-sh-low.c: New file.
9523 * gdbserver/regcache.c: New file.
9524 * gdbserver/regcache.h: New file.
9526 * gdbserver/low-linux.c: Removed obsolete file.
9528 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9530 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9531 * config/i386/linux.mt: Likewise.
9532 * config/ia64/linux.mt: Likewise.
9533 * config/m68k/linux.mh: Likewise.
9534 * config/powerpc/linux.mh: Likewise.
9535 * config/mips/linux.mt: Likewise.
9537 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9539 * config/i386/i386lynx.mh: Mark gdbserver variables
9540 as (currently) obsolete for this target.
9541 * config/i386/nbsd.mt: Likewise.
9542 * config/i386/nbsdelf.mt: Likewise.
9543 * config/m32r/m32r.mt: Likewise.
9544 * config/m68k/m68klynx.mh: Likewise.
9545 * config/m68k/nbsd.mt: Likewise.
9546 * config/m68k/sun3os4.mh: Likewise.
9547 * config/mips/vr5000.mt: Likewise.
9548 * config/ns32k/nbsd.mt: Likewise.
9549 * config/pa/hppabsd.mh: Likewise.
9550 * config/pa/hppaosf.mh: Likewise.
9551 * config/powerpc/nbsd.mt: Likewise.
9552 * config/rs6000/rs6000lynx.mh: Likewise.
9553 * config/s390/s390.mt: Likewise.
9554 * config/s390/s390x.mt: Likewise.
9555 * config/sparc/sparclynx.mh: Likewise.
9556 * config/sparc/sun4os4.mh: Likewise.
9557 * config/i386/x86-64linux.mt: Likewise.
9558 * config/sparc/linux.mh: Likewise.
9560 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9562 * configure.tgt: Configure gdbserver only for known working
9563 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9564 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9565 SUBDIRS if it is configured. Update comment for ${nativefile}.
9566 * configure: Regenerated.
9568 2002-02-13 Michael Snyder <msnyder@redhat.com>
9570 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9572 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9573 (default_gcore_mach): Just return 0, work around a problem in bfd.
9574 (default_gcore_target): OK to return NULL if exec_bfd is null.
9575 (make_mem_sec): Use a cast, avoid a warning.
9577 * procfs.c (find_memory_regions_callback): Use a cast instead of
9578 calling host_pointer_to_address (which complains if
9579 sizeof (host pointer) != sizeof (target pointer)).
9580 (procfs_make_note_section): Avoid overflow in psargs string.
9582 * procfs.c (procfs_make_note_section): Make the default
9583 implementation return an error.
9585 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9587 * procfs.c (procfs_make_note_section): Provide a default definition
9588 (for alpha-dec-osf4.0f). Fix typos.
9590 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9592 * linux-proc.c: Add include of regcache.h.
9593 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9595 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9597 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9598 * memattr.c (create_mem_region): Disallow useless empty region.
9599 Regions are half-open intervals, so allow [A..B) [B..C) as
9602 2002-02-13 Michael Chastain <mec@shout.net>
9604 * defs.h: Kill CONST_PTR.
9605 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9606 * c-lang.c (c_builtin_types): Likewise.
9607 * ch-lang.c (ch_builtin_types): Likewise.
9608 * f-lang.c (f_builtin_types): Likewise.
9609 * language.c (unknown_builtin_types): Likewise.
9610 * m2-lang.c (m2_builtin_types): Likewise.
9611 * p-lang.c (pascal_builtin_types): Likewise.
9612 * scm-lang.c (c_builtin_types): Likewise.
9614 2002-02-13 Keith Seitz <keiths@redhat.com>
9616 * arm-tdep.h (arm_get_next_pc): Add declaration.
9618 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9620 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9621 with other related struct-returning functions.
9622 (arm_extract_struct_value_address): New function.
9623 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9624 initialize float_format, double_format and long_double_format as
9625 appropriate to the endianness of the target.
9626 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9627 (arm_use_struct_convention): Delete declaration.
9628 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9630 2002-02-13 Keith Seitz <keiths@redhat.com>
9632 * defs.h (core_addr_to_string_nz): New function.
9634 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9636 Apply missing bits of 2002-01-15 patch.
9637 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9638 (fill_fpregset): Use i387_fill_fsave.
9640 2002-02-12 Keith Seitz <keiths@redhat.com>
9642 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9643 (core_addr_to_string_nz): New function.
9645 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9647 * arm-linux-nat.c: Really include arm-tdep.h.
9648 * config/arm/tm-linux.h (struct type, struct value): Declare.
9650 2002-02-11 Michael Snyder <msnyder@redhat.com>
9652 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9653 (gcore section): Ifdef for Solaris and Unixware only.
9654 (procfs_do_thread_registers): Unixware needs one lwpstatus
9655 per thread (not one prstatus or pstatus).
9656 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9657 not over all gdb threads. For unixware, call elfcore_write_pstatus
9658 once before iterating over threads.
9660 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9662 * arm-tdep.h: New file.
9663 * arm-tdep.c: Include arm-tdep.h.
9664 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9665 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9666 (arm_print_float_info, arm_register_type, convert_to_extended)
9667 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9668 (arm_extract_return_value, arm_register_name): Make static.
9669 (arm_software_single_step): Similarly. Fix types in declaration.
9670 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9671 (arm_store_return_value, arm_store_struct_return): New functions.
9672 (arm_gdbarch_init): Register the above functions. Also register
9673 call_dummy_start_offset, sizeof_call_dummy_words,
9674 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9675 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9676 max_register_virtual_size, register_size. Set up
9677 prologue_cache.saved_regs here, rather than ...
9678 (_initialize_arm_tdep): ... here.
9679 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9681 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9682 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9683 (arm_print_float_info, arm_register_type, convert_to_extended)
9684 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9685 (arm_extract_return_value, arm_register_name): Delete declarations.
9686 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9687 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9688 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9689 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9690 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9691 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9692 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9693 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9694 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9695 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9696 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9697 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9699 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9700 * remote-rdi.c remote-rdp.c: Likewise.
9701 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9702 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9703 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9706 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9707 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9708 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9709 from non-ARM_ prefixed definitions.
9710 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9712 * remote-rdi.c remote-rdp.c: Likewise.
9713 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9715 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9717 * arm-tdep.c (arm_frameless_function_invocation)
9718 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9719 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9720 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9721 (arm_pop_frame, arm_get_next_pc): Make static.
9722 (arm_gdbarch_init): Register above in gdbarch structure.
9723 (arm_read_fp): Renamed from arm_target_read_fp.
9724 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9725 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9726 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9727 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9728 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9729 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9730 (arm_pc_is_thumb_dummy): Delete declarations.
9731 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9732 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9733 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9734 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9736 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9738 * symtab.c (compare_search_syms): New function.
9739 (sort_search_symbols): New function.
9740 (search_symbols): Sort symbols after searching rather than
9743 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9745 * NEWS: Linux -> GNU/Linux.
9747 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9749 * gdbarch.sh: For for level one methods, disallow a definition
9750 when partially multi-arched. Add comments explaining rationale.
9751 * gdbarch.h: Re-generate.
9753 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9755 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9758 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9760 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9762 * gdbarch.c: Re-generate.
9764 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9766 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9767 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9770 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9772 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9774 (PUSH_ARGUMENTS): Switch to using predefault.
9775 * gdbarch.c: Regenerate.
9777 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9779 * valops.c (PUSH_ARGUMENTS): Delete definition.
9780 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9781 partial. Default to default_push_arguments.
9782 * gdbarch.h, gdbarch.c: Regenerate.
9784 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9786 * defs.h (throw_exception): Rename return_to_top_level. Update
9788 * utils.c (error_stream, internal_verror, quit): Ditto.
9789 * top.c (throw_exception, catcher): Ditto.
9790 * sparclet-rom.c (sparclet_load): Ditto.
9791 * remote.c (interrupt_query, minitelnet): Ditto.
9792 * remote-sds.c (interrupt_query): Ditto.
9793 * remote-mips.c (mips_error, mips_kill): Ditto.
9794 * ocd.c (interrupt_query): Ditto.
9795 * monitor.c (monitor_interrupt_query): Ditto.
9796 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9797 * target.h: Update comment.
9799 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9801 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9803 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9804 default_double_format.
9805 * gdbarch.h, gdbarch.c: Re-generate.
9806 * findvar.c (floatformat_unknown): Delete variable definition.
9807 * doublest.h (floatformat_unknown): Delete variable declaration.
9809 2002-02-09 Jim Blandy <jimb@redhat.com>
9811 * stabsread.c (read_type): Add code to parse Sun's syntax for
9812 prototyped function types.
9814 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9816 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9817 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9819 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9821 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9822 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9823 now _initialize_xcoffsolib gets called again and overrides the
9824 commands from solib.c in a native configuration.
9826 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9828 * doublest.c (store_typed_floating): Don't try to return a value.
9831 2002-02-08 Jim Blandy <jimb@redhat.com>
9833 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9834 is prototyped and has no arguments, print its argument list as
9837 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9839 * MAINTAINERS (write-after-approval): Add myself.
9840 (paper-trail): I've escaped!
9842 2002-02-08 Christopher Faylor <cgf@redhat.com>
9844 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9846 (_initialize_check_for_gdb_ini): Ditto.
9848 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9850 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9851 xaprintf -> xasprintf.
9853 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9855 * win32-nat.c: Remove use of printf and sprintf functions.
9857 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9859 * arm-tdep.c (arm_frame_chain_valid): Make static.
9860 (arm_push_arguments): Likewise.
9861 (arm_gdbarch_init): New function.
9862 (_initialize_arm_tdep): Call it.
9863 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9864 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9865 (FRAME_CHAIN_VALID): Delete.
9866 (arm_frame_chain_valid): Delete declaration.
9867 (PUSH_ARGUMENTS): Delete.
9868 (arm_push_arguments): Delete declaration.
9869 (CALL_DUMMY_P): Delete.
9871 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9872 Corinna Vinschen <vinschen@redhat.com>
9874 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9875 on builtin float types.
9877 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9879 * utils.c: Include <curses.h> before "bfd.h".
9880 * tui/tui-hooks.c: Likewise.
9881 * tui/tui.c: Likewise.
9882 * tui/tuiCommand.c: Likewise.
9883 * tui/tuiData.c: Likewise.
9884 * tui/tuiDataWin.c: Likewise.
9885 * tui/tuiDisassem.c: Likewise.
9886 * tui/tuiGeneralWin.c: Likewise.
9887 * tui/tuiIO.c: Likewise.
9888 * tui/tuiLayout.c: Likewise.
9889 * tui/tuiRegs.c: Likewise.
9890 * tui/tuiSource.c: Likewise.
9891 * tui/tuiSourceWin.c: Likewise.
9892 * tui/tuiStack.c: Likewise.
9893 * tui/tuiWin.c: Likewise.
9895 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9897 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9898 to include space for pseudoregs as well. Update loops accordingly.
9899 (sh_fp_frame_init_saved_regs): Ditto.
9900 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9902 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9904 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9905 Add Richard Earnshaw to Arm maintainers.
9907 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9909 * defs.h (warning_begin): Delete declaration.
9911 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9914 2002-02-07 Michael Snyder <msnyder@redhat.com>
9916 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9917 Logic bug, remove misplaced else.
9919 2002-02-07 Klee Dienes <klee@apple.com>
9921 * fork-inferior.c (fork_inferior): Add '!' to the list of
9922 characters that need to be quoted when building a string for the
9923 shell. Quote '!' specifically with a backslash, since CSH chokes
9924 when trying to evaluate "str!str".
9926 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9928 * rdi-share/host.h: Only provide a typedef for bool if it is not
9931 2002-02-04 Michael Snyder <msnyder@redhat.com>
9933 * breakpoint.h (enum bptype): Add new overlay event bp type.
9934 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9936 * breakpoint.c (create_internal_breakpoint): New function.
9937 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9938 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9939 (create_thread_event_breakpoint): Ditto.
9940 (create_solib_event_breakpoint): Ditto.
9941 (create_overlay_event_breakpoint): New function.
9942 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9943 (update_breakpoints_after_exec): Delete and re-initialize
9944 overlay event breakpoints after an exec. Add FIXME comment
9945 about longjmp breakpoint.
9946 (print_it_typical): Ignore overlay event breakpoints.
9947 (print_one_breakpoint): Ditto.
9949 (bpstat_what): Do not stop for overlay event breakpoints.
9950 (delete_breakpoint): Don't delete overlay event breakpoints.
9951 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9952 (breakpoint_re_set): Re-create overlay event breakpoint.
9954 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9955 (overlay_manual_command): Disable overlay breakpoints.
9956 (overlay_off_command): Disable overlay breakpoints.
9958 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9960 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9961 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9962 to here from config/tm-arm.h.
9963 (coff_sym_is_thumb): Make static.
9964 (arm_elf_make_msymbol_special): New function.
9965 (arm_coff_make_msymbol_special): New function.
9966 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9967 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9968 (coff_sym_is_thumb): Delete declaration.
9969 (arm_elf_make_msymbol_special): Declare.
9970 (arm_coff_make_msymbol_special): Declare.
9971 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9972 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9974 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9976 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9978 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9980 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9981 * gdbarch.c gdbarch.h: Regenerate.
9982 * arch-utils.c (default_print_float_info): New function.
9983 * arch-utils.h (default_print_float_info): Prototype it.
9984 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9985 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9986 (PRINT_FLOAT_INFO): Document it.
9988 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9989 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9990 (PRINT_FLOAT_INFO): Define.
9992 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9994 * win32-nat.c (_initialize_check_for_gdb_ini):
9995 Add typecast to sprintf argument to suppress a warning.
9997 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9999 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10000 to allow easier handling of pass state.
10001 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10002 that gives exception name and address.
10003 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10004 and set last_sig value to ourstatus->value.sig. Some missing
10006 (child_continue): Correctly report continue_status.
10007 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10008 TARGET_SIGNAL_0 (new default value).
10009 (child_resume): consider sig argument passed to decide if
10010 the exception should be passed to debuggee or not.
10012 2002-02-05 Michael Snyder <msnyder@redhat.com>
10014 * regcache.c (fetch_register): Call target_fetch_register
10015 only if we don't call FETCH_PSEUDO_REGISTER.
10016 (store_register): Call target_store_register only if we
10017 don't call STORE_PSEUDO_REGISTER.
10019 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10021 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10022 ELF_MAKE_MSYMBOL_SPECIAL.
10023 * gdbarch.c, gdbarch.h: Regenerate.
10024 * arch-utils.c (default_make_msymbol_special): New function.
10025 * arch-utils.h (default_make_msymbol_special): Export.
10026 * elfread.c (elf_symtab_read): Compile use of
10027 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10029 * coffread.c (coff_symtab_read): Ditto, for
10030 COFF_MAKE_MSYMBOL_SPECIAL.
10032 2002-02-05 Jim Blandy <jimb@redhat.com>
10034 * solib-svr4.c (svr4_truncate_ptr): New function.
10035 (svr4_relocate_section_addresses): Do the address arithmetic with
10036 the appropriate truncation for target addresses, even when
10037 CORE_ADDR is larger than a target address.
10039 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10041 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10044 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10046 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10049 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10051 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10053 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10055 * gdbserver/linux-low.c: Remove unused include files.
10057 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10059 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10060 (read_inferior_memory): Use it.
10061 (write_inferior_memory): Likewise.
10063 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10065 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10066 grubbing through sys_errlist.
10068 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10070 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10072 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10073 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10075 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10077 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10078 (do_sfunc, set_cmd_sfunc): New functions.
10080 * command.h (struct cmd_list_element): Add field func.
10081 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10082 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10083 * cli/cli-decode.h: Ditto.
10085 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10086 (help_all, help_cmd_list): Ditto.
10087 (find_cmd, complete_on_cmdlist): Ditto.
10088 * top.c (execute_command): Ditto.
10090 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10093 * infcmd.c (notice_args_read): Fix function signature.
10095 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10096 * cli/cli-decode.c (add_set_cmd): Ditto.
10097 * utils.c (initialize_utils): Ditto.
10098 * maint.c (_initialize_maint_cmds): Ditto.
10099 * infrun.c (_initialize_infrun): Ditto.
10100 * demangle.c (_initialize_demangler): Ditto.
10101 * remote.c (add_packet_config_cmd): Ditto.
10102 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10103 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10104 * proc-api.c (_initialize_proc_api): Ditto.
10105 * kod.c (_initialize_kod): Ditto.
10106 * valprint.c (_initialize_valprint): Ditto.
10107 * top.c (init_main): Ditto.
10108 * infcmd.c (_initialize_infcmd): Ditto.
10109 * corefile.c (_initialize_core): Ditto.
10110 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10111 * arch-utils.c (initialize_current_architecture): Ditto.
10112 (_initialize_gdbarch_utils): Ditto.
10113 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10115 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10116 * wince.c (_initialize_inftarg): Ditto.
10117 * symfile.c (_initialize_symfile): Ditto.
10118 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10119 * language.c (_initialize_language): Ditto.
10120 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10122 2002-02-04 Michael Snyder <msnyder@redhat.com>
10124 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10126 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10128 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10129 Add rules for building the register data files.
10131 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10133 * regformats/regdat.sh: Add braces to the definition of
10134 expedite_regs_${arch}.
10136 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10138 * regformats/regdef.h (struct reg): Add comment describing the
10139 requirements for offset and size fields.
10141 2002-02-04 Andreas Schwab <schwab@suse.de>
10143 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10144 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10146 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10148 * gdbarch.sh (copyright): Update years in generated header.
10149 (SMASH_TEXT_ADDRESS): Add rule.
10150 * gdbarch.h, gdbarch.c: Re-generate.
10151 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10152 * dbxread.c: Likewise.
10153 * dwarfread.c: Likewise.
10154 * elfread.c: Likewise.
10155 * somread.c: Likewise.
10157 * arm-tdep.c (arm_smash_text_address): New function.
10158 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10160 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10162 Add support for hardware watchpoints on win32 native.
10163 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10164 CONTEXT_DEBUG_REGISTERS.
10165 (dr variable): New variable. Static array containing a local copy
10166 of debug registers.
10167 (debug_registers_changed): New variable. Reflects when debug registers
10168 are changed and need to be written to inferior.
10169 (debug_registers_used): New variable. Reflects when any debug register
10170 was set, used when new threads are created.
10171 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10173 (thread_rec): Set dr array if id is the thread of current_event .
10174 (child_continue, child_resume): Change the debug registers for all
10175 threads if debug_registers_changed.
10176 (child_add_thread): Change the debug registers if debug_registers_used.
10177 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10178 Link nm.h to new nm-cygwin.h file.
10179 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10180 of hardware registers.
10182 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10184 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10185 Restore behavour broken by 2002-01-20 Andrew Cagney
10186 <ac131313@redhat.com> IEEE_FLOAT removal.
10188 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10190 * c-valprint.c (c_val_print): Pass a proper valaddr to
10191 cp_print_class_method.
10192 * valops.c (search_struct_method): If there is only one method
10193 and args is NULL, return that method.
10195 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10197 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10198 accessing tag_name directly.
10200 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10202 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10203 of accessing tag_name directly.
10205 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10208 * gdbtypes.c (replace_type): New function.
10209 * gdbtypes.h (replace_type): Add prototype.
10210 * stabsread.c (read_type): Use replace_type.
10212 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10214 * Makefile.in (memattr.o): Add missing dependencies rule.
10216 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10218 * breakpoint.c (break_at_finish_command): Really export.
10219 (break_at_finish_at_depth_command): Ditto.
10220 (tbreak_at_finish_command): Ditto.
10221 * hppa-tdep.c: Include completer.h.
10222 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10223 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10225 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10227 * utils.c (do_write): New function.
10228 (error_stream): Rewrite combining the code from error_begin and
10230 (verror): Rewrite using error_stream.
10231 (error_begin): Delete function.
10233 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10235 * utils.c (error_begin): Make static.
10236 * defs.h (error_begin): Delete declaration.
10238 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10239 (decode_line_1): Use cplusplus_error instead of error_begin,
10240 cplusplus_hint and return_to_top_level.
10241 * coffread.c (coff_symfile_read): Use error instead of error_begin
10242 and return_to_top_level.
10243 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10245 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10247 * language.h (type_error, range_error): Make string parameter
10249 * language.c (warning_pre_print): Delete extern declaration.
10250 * dwarfread.c (warning_pre_print): Ditto.
10251 * language.c (type_error, range_error): Rewrite to use verror and
10252 vwarning instead of warning_begin.
10254 2002-02-01 Michael Snyder <msnyder@redhat.com>
10256 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10257 (set_ignore_count): Move misplaced comment back where it belongs.
10259 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10261 * command.h (NO_FUNCTION): Delete macro.
10262 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10263 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10264 * tracepoint.c (_initialize_tracepoint): Ditto.
10265 * cli/cli-decode.c (add_set_cmd): Ditto.
10266 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10268 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10270 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10271 Update ``this'' pointer when calling virtual functions.
10273 2002-02-01 Michael Snyder <msnyder@redhat.com>
10275 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10276 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10278 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10280 * regformats/reg-arm.dat: New file.
10281 * regformats/reg-i386.dat: New file.
10282 * regformats/reg-ia64.dat: New file.
10283 * regformats/reg-m68k.dat: New file.
10284 * regformats/reg-mips.dat: New file.
10285 * regformats/reg-ppc.dat: New file.
10286 * regformats/reg-sh.dat: New file.
10287 * regformats/regdef.h: New file.
10288 * regformats/regdat.sh: New file.
10290 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10292 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10293 (arm_frame_args_address, arm_frame_locals_address): New functions.
10294 (arm_frame_num_args): New function.
10295 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10296 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10297 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10299 2002-01-31 Michael Snyder <msnyder@redhat.com>
10301 * breakpoint.c (break_at_finish_command): Export.
10302 (break_at_finish_at_depth_command): Export.
10303 (tbreak_at_finish_command): Export.
10304 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10305 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10306 "tbreak" commands, which are HPPA specific.
10308 * printcmd.c (disassemble_command): Remove an ancient
10309 artifact of an old merge.
10311 * symfile.h (enum overlay_debugging_state):
10312 Define enum constant values for overlay mode.
10313 * symfile.c (overlay_debugging): Use enums instead of literals.
10314 (overlay_is_mapped, overlay_auto_command,
10315 overlay_manual_command): Ditto.
10317 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10318 breakpoint_here_p, breakpoint_inserted_here_p,
10319 breakpoint_thread_match, bpstat_stop_status,
10320 describe_other_breakpoints, check_duplicates, clear_command):
10321 Coding standard fixes.
10323 * target.c (target_xfer_memory): Add spaces, coding standard.
10324 (do_xfer_memory): Add missing line to trust-readonly
10325 code: check bfd SEC_READONLY flag for section.
10327 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10329 * PROBLEMS: Fix typo, 5.1->5.1.1.
10331 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10333 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10334 data symbols, since we search based on textlow and texthigh.
10335 (find_pc_sect_symtab): Likewise.
10337 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10339 * defs.h (vwarning): Declare.
10340 * utils.c (vwarning): New function.
10341 (warning): Call vwarning.
10342 (warning_begin): Delete function.
10344 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10345 the warning message.
10346 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10349 2002-01-30 Michael Snyder <msnyder@redhat.com>
10351 * NEWS: Mention "set trust-readonly-sections" command.
10352 Mention generate-core-file command.
10354 2002-01-15 Michael Snyder <msnyder@redhat.com>
10356 * target.c: New command, "set trust-readonly-sections on".
10357 (do_xfer_memory): Honor the suggestion to trust readonly sections
10358 by reading them from the object file instead of from the target.
10359 (initialize_targets): Register command "set trust-readonly-sections".
10361 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10363 * parse.c (target_map_name_to_register): Simplify, search regs and
10364 pseudo-regs using a single loop.
10366 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10368 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10370 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10372 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10373 * config/i386/i386v42mp.mh: Add i387-nat.o .
10374 * i386v4-nat.c: Include i387-nat.h.
10375 (supply_fpregset): Use i387_supply_fsave.
10376 (fill_fpregset): Use i387_fill_fsave.
10378 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10380 * arm-tdep.c (arm_call_dummy_words): Define.
10381 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10382 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10383 (CALL_DUMMY_WORDS): Define.
10384 (arm_call_dummy_words): Declare.
10385 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10386 (arm_linux_call_dummy_words): Declare.
10388 2002-01-30 Andreas Schwab <schwab@suse.de>
10390 * m68klinux-nat.c: Fix last change to use regcache_collect
10391 instead of referencing registers[] directly.
10393 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10395 * parse.c (target_map_name_to_register): Delete code wrapped in
10396 #ifdef REGISTER_NAME_ALIAS_HOOK.
10398 2002-01-28 Michael Snyder <msnyder@redhat.com>
10400 * regcache.c (legacy_read_register_gen): Need to be able to
10401 read pseudo-register as well as real register.
10402 (legacy_write_register_gen): Ditto.
10404 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10406 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10407 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10408 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10409 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10410 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10411 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10412 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10413 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10414 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10415 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10416 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10417 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10418 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10419 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10420 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10421 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10422 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10423 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10424 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10425 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10427 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10429 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10430 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10431 (initialize_current_architecture): Update target_byte_order using
10432 information from BFD.
10433 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10434 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10436 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10438 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10439 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10441 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10442 #ifdef INVALID_FLOAT.
10443 * infcmd.c (do_registers_info): Ditto.
10444 * values.c (unpack_double): Ditto. Add comment.
10446 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10447 already commented out.
10449 2002-01-26 Andreas Schwab <schwab@suse.de>
10451 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10452 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10453 registers and add support for PTRACE_GETREGS.
10455 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10457 GDB 5.1.1 released from 5.1 branch.
10458 * NEWS: Add 5.1.1 news.
10459 * README: Sync with 5.1 branch.
10461 2002-01-23 Fred Fish <fnf@redhat.com>
10463 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10464 stabstring on initial malloc. Reallocing will copy it for us,
10467 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10469 * Makefile.in (hpread_h): Delete.
10470 (HFILES_NO_SRCDIR): Remove hpread.h.
10471 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10472 (hpread.o): Update dependencies.
10473 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10475 * hp-psymtab-read.c: Remove file.
10476 * hp-symtab-read.c: Remove file.
10477 * hpread.h: Remove file.
10479 * hpread.c: Merge all contents of hp-psymtab-read.c,
10480 hp-symtab-read.c and hpread.h into this file, as it was prior to
10483 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10484 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10485 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10486 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10488 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10490 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10491 fill_gregset): Call gdbarch_tdep() just once, assign result to
10492 variable and use that, instead of calling the function several
10495 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10497 * configure.host: Accept sparcv9 as alias for sparc64.
10498 * configure.tgt: Likewise.
10500 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10502 * solib-aix5.c (build_so_list_from_mapfile)
10503 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10504 arguments is not reversed.
10505 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10506 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10508 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10510 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10511 modified version of obsolete sh_fetch_pseudo_register.
10512 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10513 (sh4_register_read): New function.
10514 (sh_pseudo_register_write): New function. Renamed and modified
10515 version of obsolete sh_store_pseudo_register.
10516 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10517 (sh4_register_write): New function.
10518 (sh_gdbarch_init): Remove setting of gdbarch function
10519 fetch_pseudo_register and store_pseudo_register. Remove setting of
10520 register_convert_to_raw, register_convert_to_virtual,
10521 register_convertible.
10522 (sh_sh4_register_convertible): Delete. No longer needed. All is
10523 taken care by architecture specific functions
10524 register_read/register_write.
10525 (sh_sh4_register_convert_to_virtual): Make static.
10526 (sh_sh4_register_convert_to_raw): Ditto.
10528 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10530 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10531 (floatformat_is_nan, floatformat_mantissa): Ditto.
10533 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10534 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10535 builtin_type_ieee_double_little,
10536 builtin_type_ieee_double_littlebyte_bigword,
10537 builtin_type_m68881_ext, builtin_type_i960_ext,
10538 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10539 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10540 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10541 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10543 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10545 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10546 parameter. Set frameless flag if it exists and depended of
10547 whether the scanned function is frameless or not.
10548 (xstormy16_skip_prologue): If function is frameless, return
10549 result of xstormy16_scan_prologue().
10550 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10553 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10555 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10556 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10557 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10558 sh_sh4_register_byte, sh_sh4_register_raw_size,
10559 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10560 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10561 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10562 sh_store_pseudo_register, sh_do_pseudo_register): Call
10563 gdbarch_tdep() just once, assign result to variable and use that,
10564 instead of calling the function several times.
10566 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10568 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10569 macros instead of LAST_FPU_CTRL_REGNUM.
10570 (store_register): Likewise.
10572 2002-01-21 Jim Blandy <jimb@redhat.com>
10574 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10575 is up-to-date before running the program, not just when a program
10578 2002-01-21 Fred Fish <fnf@redhat.com>
10580 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10581 when we have found all instructions we are looking for.
10583 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10585 * arm-tdep.c (arm_register_name): New function.
10586 (arm_registers_names): Make static.
10587 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10588 (arm_register_name): Declare.
10589 (REGISTER_NAME): Use it.
10591 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10592 Kevin Buettner <kevinb@redhat.com>
10594 Convert arm targets to new FRAME interface.
10595 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10596 (arm_frame_find_save_regs): Delete.
10597 (arm_frame_init_saved_regs): New.
10598 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10599 Allocate extra_info as required. Convert all uses of fsr.regs
10600 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10602 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10603 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10604 (check_prologue_cache, save_prologue_cache): Likewise.
10605 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10606 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10607 (FRAME_FIND_SAVED_REGS): Delete.
10608 (arm_frame_find_saved_regs): Delete prototype.
10609 (arm_frame_init_saved_regs): New prototype.
10610 (FRAME_INIT_SAVED_REGS): Define.
10612 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10614 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10616 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10618 From Jeff Law <law@redhat.com>:
10619 * infttrace.c: Include <sys/pstat.h>.
10620 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10621 exec file if the ttrace equivalent fails.
10623 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10625 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10626 (closeLogFile): Ditto.
10628 2002-01-20 Michael Chastain <mec@shout.net>
10630 * top.c (print_gdb_version): Bump copyright year to 2002.
10632 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10634 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10635 Zannoni and Eli Zaretskii.
10637 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10639 * buildsym.c: Update copyright years.
10640 * c-typeprint.c: Likewise.
10641 * dwarf2read.c: Likewise.
10642 * f-typeprint.c: Likewise.
10643 * gdbtypes.c: Likewise.
10644 * gdbtypes.h: Likewise.
10645 * hp-symtab-read.c: Likewise.
10646 * hpread.c: Likewise.
10647 * mdebugread.c: Likewise.
10648 * p-typeprint.c: Likewise.
10650 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10652 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10653 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10654 byte-order selectable.
10655 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10656 * arch-utils.c: Ditto.
10657 (set_endian): Ditto.
10658 (set_endian_from_file): Ditto.
10659 * gdbserver/low-sim.c (create_inferior): Ditto.
10660 * gdbarch.sh: Ditto.
10661 * gdbarch.h: Re-generate.
10662 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10663 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10664 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10665 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10666 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10667 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10668 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10669 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10671 * config/mips/tm-wince.h: Remove #undef of macro
10672 TARGET_BYTE_ORDER_SELECTABLE.
10673 * config/sh/tm-wince.h: Ditto.
10675 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10677 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10678 member function fields. Add accessor macro
10679 TYPE_FN_FIELD_ARTIFICIAL.
10680 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10681 * c-typeprint.c (c_type_print_base): Skip artificial member
10684 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10686 * f-typeprint.c: Delete unused function f_type_print_args.
10687 * p-typeprint.c: Delete unused function pascal_type_print_args.
10689 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10691 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10692 comment. Add ``artificial'' to ``union field_location''.
10694 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10696 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10697 * mdebugread.c (parse_symbol): Likewise.
10698 * stabsread.c (define_symbol): Likewise.
10699 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10700 initializing TYPE_FIELD_BITPOS to n (obsolete).
10701 (hpread_doc_function_type): Likewise.
10702 * hpread.c (hpread_function_type): Likewise.
10704 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10706 * configure.in (host_makefile_frag): Only require a host makefile
10707 fragment when a native build.
10708 * configure: Re-generate.
10710 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10712 * doublest.h (floatformat_from_type): Declare.
10713 * doublest.c (floatformat_from_type): New function.
10714 (convert_typed_floating): Use.
10716 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10717 call to function floatformat_from_type.
10719 * gdbarch.sh (IEEE_FLOAT): Delete.
10720 * gdbarch.h, gdbarch.c: Re-generate.
10721 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10722 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10723 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10724 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10725 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10726 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10727 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10728 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10729 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10730 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10731 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10732 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10734 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10735 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10736 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10737 * sh-tdep.c (sh_gdbarch_init): Ditto.
10738 * mips-tdep.c (mips_gdbarch_init): Ditto.
10739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10740 * cris-tdep.c (cris_gdbarch_init): Ditto.
10742 2002-01-20 Jiri Smid <smid@suse.cz>
10744 * configure.host, configure.tgt: Support x86-64.
10745 * NEWS: Note new target x86-64.
10747 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10748 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10749 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10750 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10751 x86-64-linux-nat.o): Fix dependencies.
10753 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10755 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10756 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10757 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10758 * config/sparc/xm-sun4os4.h: Delete file.
10759 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10761 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10763 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10764 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10765 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10766 * config/i386/i386lynx.mh (XM_FILE): Delete.
10767 * config/rs6000/xm-rs6000ly.h: Delete file.
10768 * config/sparc/xm-sparclynx.h: Delete file.
10769 * config/m68k/xm-m68klynx.h: Delete file.
10770 * config/i386/xm-i386lynx.h: Delete file.
10771 * config/xm-lynx.h: Delete file.
10772 * config/djgpp/fnchange.lst: Update.
10774 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10776 * alpha-tdep.c (alpha_register_byte): New function.
10777 (alpha_register_raw_size): Ditto.
10778 (alpha_register_virtual_size): Ditto.
10779 (alpha_skip_prologue_internal): Renamed from
10780 alpha_skip_prologue.
10781 (alpha_skip_prologue): New version that calls
10782 alpha_skip_prologue_internal.
10783 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10784 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10785 second argument from alpha_skip_prologue.
10786 (REGISTER_BYTE): Use alpha_register_byte.
10787 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10788 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10789 (FRAMELESS_FUNCTION_INVOCATION): Use
10790 generic_frameless_function_invocation_not.
10791 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10792 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10794 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10796 * config/mips/xm-news-mips.h: Delete file.
10797 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10799 * config/m88k/xm-m88k.h: Delete file.
10800 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10801 * config/m88k/xm-delta88v4.h: Ditto.
10802 * config/m88k/xm-delta88.h: Ditto.
10804 * config/alpha/xm-fbsd.h: Delete file.
10805 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10807 * config/sparc/xm-sparc.h: Delete file.
10808 * Makefile.in (xm-sun4os4.h): Delete dependency.
10809 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10810 * config/sparc/xm-sun4os4.h: Ditto.
10811 * config/sparc/xm-linux.h: Ditto.
10813 * config/i386/xm-windows.h: Delete file.
10815 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10817 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10818 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10820 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10822 * alpha-tdep.c (alpha_call_dummy_words): New.
10823 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10824 (CALL_DUMMY_P): Define.
10825 (CALL_DUMMY_WORDS): Define.
10826 (SIZEOF_CALL_DUMMY_WORDS): Define.
10828 2002-01-19 Per Bothner <per@bothner.com>
10830 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10831 isn't NULL, which can happen with some gcj-3.x-produced code.
10833 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10835 * alpha-tdep.c (alpha_register_virtual_type): New function.
10836 (alpha_init_frame_pc_first): Ditto.
10837 (alpha_fix_call_dummy): Ditto.
10838 (alpha_store_struct_return): Ditto.
10839 (alpha_extract_struct_value_address): Ditto.
10840 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10841 alpha_register_virtual_type.
10842 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10843 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10844 alpha_extract_struct_value_address.
10845 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10846 (INIT_FRAME_PC): Use init_frame_pc_noop.
10847 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10849 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10851 * i386gnu-nat.c: Include "i386-tdep.h".
10852 (fetch_fpregs): Simplify code dealing with uninitialized floating
10853 point states such that it doesn't require FP7_REGNUM.
10855 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10857 * alpha-tdep.c (frame_extra_info): New.
10858 (alpha_find_saved_regs): Make static. Use
10860 (alpha_frame_init_saved_regs): New function.
10861 (alpha_frame_saved_pc): Use frame->extra_info.
10862 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10863 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10864 (init_extra_frame_info): Rename to...
10865 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10866 (alpha_print_extra_frame_info): New function.
10867 (alpha_frame_locals_address): Ditto.
10868 (alpha_frame_args_address): Ditto.
10869 (alpha_pop_frame): Use frame->extra_info.
10870 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10871 alpha_frame_args_address.
10872 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10873 (alpha_find_saved_regs): Remove prototype.
10874 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10875 (EXTRA_FRAME_INFO): Remove.
10876 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10877 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10879 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10881 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10882 (alpha_cannot_fetch_register): Ditto.
10883 (alpha_cannot_store_register): Ditto.
10884 (alpha_register_convertible): Ditto.
10885 (alpha_use_struct_convention): Ditto.
10886 * config/alpha/tm-alpha.h: Update copyright years.
10887 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10888 (INNER_THAN): Use core_addr_lessthan.
10889 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10890 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10891 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10892 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10893 (FRAME_CHAIN): Remove unnecessary cast.
10895 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10897 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10900 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10902 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10903 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10904 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10905 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10906 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10907 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10908 * x86-64-linux-nat.c: Ditto.
10910 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10912 * alpha-tdep.c (alpha_register_name): New function.
10913 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10914 (REGISTER_NAME): Define.
10916 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10918 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10920 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10922 * alpha-tdep.c: Update copyright years.
10923 (alpha_next_pc): New function.
10924 (alpha_software_single_step): Ditto.
10925 * config/alpha/tm-alpha.h: Add prototype for
10926 alpha_software_single_step.
10928 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10930 * alphabsd-nat.c: Update copyright years.
10931 (fill_gregset): Use regcache_collect.
10932 (fill_fpregset): Likewise.
10933 (fetch_inferior_registers): Only fetch integer registers
10934 if requested to do so.
10935 (store_inferior_registers): Only store integer registers
10936 if requested to do so.
10938 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10940 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10941 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10942 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10943 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10944 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10945 * config/arm/linux.mh (XDEPFILES): Delete.
10946 * config/arm/nbsd.mh (XDEPFILES): Delete.
10947 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10948 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10949 * config/i386/i386m3.mh (XDEPFILES): Delete.
10950 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10951 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10952 * config/i386/fbsd.mh (XDEPFILES): Delete.
10953 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10954 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10955 * config/i386/i386v4.mh (XDEPFILES): Delete.
10956 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10957 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10958 * config/i386/i386aix.mh (XDEPFILES): Delete.
10959 * config/i386/go32.mh (XDEPFILES): Delete.
10960 * config/i386/cygwin.mh (XDEPFILES): Delete.
10961 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10962 * config/i386/i386mach.mh (XDEPFILES): Delete.
10963 * config/i386/i386v32.mh (XDEPFILES): Delete.
10964 * config/i386/linux.mh (XDEPFILES): Delete.
10965 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10966 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10967 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10968 * config/i386/i386sco.mh (XDEPFILES): Delete.
10969 * config/i386/i386v.mh (XDEPFILES): Delete.
10970 * config/i386/nbsd.mh (XDEPFILES): Delete.
10971 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10972 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10973 * config/i386/symmetry.mh (XDEPFILES): Delete.
10974 * config/i386/obsd.mh (XDEPFILES): Delete.
10975 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10976 * config/ia64/linux.mh (XDEPFILES): Delete.
10977 * config/ia64/aix.mh (XDEPFILES): Delete.
10978 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10979 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10980 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10981 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10982 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10983 * config/m68k/linux.mh (XDEPFILES): Delete.
10984 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10985 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10986 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10987 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10988 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10989 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10990 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10991 * config/m88k/delta88.mh (XDEPFILES): Delete.
10992 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10993 * config/m88k/m88k.mh (XDEPFILES): Delete.
10994 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10995 * config/mips/linux.mh (XDEPFILES): Delete.
10996 * config/mips/irix6.mh (XDEPFILES): Delete.
10997 * config/mips/irix5.mh (XDEPFILES): Delete.
10998 * config/mips/irix4.mh (XDEPFILES): Delete.
10999 * config/mips/irix3.mh (XDEPFILES): Delete.
11000 * config/mips/decstation.mh (XDEPFILES): Delete.
11001 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11002 (NATDEPFILES): Move core-aout.o to here.
11003 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11004 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11005 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11006 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11007 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11008 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11009 * config/pa/hpux11.mh (XDEPFILES): Delete.
11010 * config/powerpc/aix.mh (XDEPFILES): Delete.
11011 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11012 * config/powerpc/linux.mh (XDEPFILES): Delete.
11013 * config/romp/rtbsd.mh: Rename XDEPFILES.
11014 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11015 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11016 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11017 * config/s390/s390.mh (XDEPFILES): Delete.
11018 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11019 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11020 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11021 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11022 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11023 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11024 * config/sparc/linux.mh (XDEPFILES): Delete.
11025 * config/vax/vaxult.mh (XDEPFILES): Delete.
11026 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11027 * Makefile.in (DEPFILES): Remove XDEPFILES.
11029 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11031 * utils.c (internal_verror): Fix comments, default is yes not no.
11032 Update queries to match. Default to quit and dump core.
11034 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11036 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11038 * defs.h, event-top.c, gdbcmd.h: Ditto.
11039 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11040 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11041 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11042 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11043 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11044 * mi/mi-main.c:Ditto.
11046 * stack.c, symfile.c: Update copyright.
11048 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11050 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11051 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11052 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11053 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11055 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11057 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11058 * gdbserver/low-lynx.c (myattach): Likewise.
11059 * gdbserver/low-nbsd.c (myattach): Likewise.
11060 * gdbserver/low-sim.c (myattach): Likewise.
11061 * gdbserver/low-sparc.c (myattach): Likewise.
11062 * gdbserver/low-sun3.c (myattach): Likewise.
11064 * gdbserver/low-linux.c (myattach): New function.
11066 * gdbserver/server.c (attach_inferior): New function.
11067 (main): Handle "--attach".
11069 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11071 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11074 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11076 * c-typeprint.c (is_type_conversion_operator): Add additional
11077 check for non-conversion operators.
11079 2002-01-15 Michael Snyder <msnyder@redhat.com>
11081 * linux-proc.c: Add "info proc" command, a la procfs.c.
11082 (read_mapping): New function, abstract and re-use code.
11083 (linux_find_memory_regions): Use new func read_mapping.
11084 (linux_info_proc_cmd): New function, implement "info proc".
11085 (_initialize_linux_proc): Add new command "info proc".
11087 2002-01-15 Michael Snyder <msnyder@redhat.com>
11089 * symfile.c (generic_load): Use bfd_map_over_sections method
11090 instead of manipulating bfd structure members directly.
11091 (add_section_size_callback): New function, bfd sections callback
11092 used by generic_load.
11093 (load_sections_callback): New function, bfd sections callback
11094 used by generic_load.
11096 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11098 [Based on work by Jim Blandy]
11099 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11100 (builtin_type_vec128): Export.
11101 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11103 (builtin_type_vec128): New builtin type for 128 bit vector
11105 (build_gdbtypes): Initialize builtin_type_v16qi and
11106 builtin_type_v8hi. Create the vec128 register builtin type
11108 (build_builtin_type_vec128): New function.
11109 (_initialize_gdbtypes): Register builtin_type_v16qi and
11110 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11111 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11112 AltiVec register to new builtin type.
11114 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11116 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11119 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11121 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11122 CLEAN_UP_REGISTER_VALUE.
11123 * regcache.c (supply_register): Update only call.
11125 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11127 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11128 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11129 a29k-*-vxworks* targets as obsolete.
11131 2002-01-14 Michael Snyder <msnyder@redhat.com>
11133 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11134 until we can resolve portability issues.
11135 * gregset.h: Remove references to fpxregs.
11136 * gcore.c (gcore_command): Initialize note_sec to NULL.
11138 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11140 * signals.c (target_signal_to_name): Rewrite. Only use
11141 signals[].name when in bounds and non-NULL.
11143 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11145 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11146 * signals.c (target_signal_to_name): Verify that SIG is within the
11147 bounds of the signals array.
11149 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11151 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11153 2002-01-13 Keith Seitz <keiths@redhat.com>
11155 * stack.c (print_frame_info_base): Print the frame's pc
11156 only if when print_frame_info_listing_hook is not defined.
11158 2002-01-13 Keith Seitz <keiths@redhat.com>
11160 * varobj.c (varobj_set_value): Make sure that there were no
11161 errors evaluating the object before attempting to set its
11163 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11164 so this offset adjustment is no longer necessary.
11165 (create_child): Don't set the error flag if the child is
11166 a CPLUS_FAKE_CHILD.
11167 (value_of_child): If value_fetch_lazy fails, return NULL
11168 so that callers will be notified that an error occurred.
11169 (c_value_of_variable): Delay check of variable's validity
11170 until later. We actually want all structs and unions to have
11172 Do not return "???" for variables which could not be evaluated.
11173 This error condition must be returned to the caller so that it
11174 can get the error condition from gdb.
11175 (cplus_name_of_child): Adjust index for vptr before figuring
11176 out the name of the child.
11177 (cplus_value_of_child): If a child's (real) parent is not valid,
11178 don't even bother trying to give a value for it. Just return
11179 an error. Change all instances in this function.
11180 (cplus_type_of_child): If our parent is one of the "fake"
11181 parents, we need to get at the type of the real parent, and
11182 derive the child's true type using this information.
11184 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11186 From 2002-01-09 John Marshall <johnm@falch.net>:
11187 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11188 sources.redhat.com, and tweak some related URLs which had
11189 suffered from linkrot.
11191 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11194 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11195 structures passed in registers.
11197 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11199 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11200 white space which prevented compilation. Reported by DSK
11201 <dsk@student.unsw.edu.au>.
11203 2002-01-11 Michael Snyder <msnyder@redhat.com>
11205 * symfile.c (build_section_addr_info_from_section_tab):
11206 Use bfd access method instead of manipulating bfd directly.
11207 (syms_from_objfile): Ditto.
11208 (simple_overlay_update_1): Ditto.
11209 (simple_overlay_update): Ditto.
11210 (generic_load): Ditto.
11211 (overlay_unmapped_address): FIXME comment, bfd access methods.
11212 (sections_overlap): FIXME comment, bfd access methods.
11213 (pc_in_mapped_range): FIXME comment, bfd access methods.
11214 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11215 (section_is_mapped): FIXME comment, bfd access methods.
11216 (section_is_overlay): FIXME comment, bfd access methods.
11218 * symfile.c (generic_load): Whitespace and long line cleanups.
11219 Remove duplicate variable, change several local variables to
11220 more appropriate data types.
11221 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11223 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11225 From Peter Schauer:
11226 * language.c (longest_local_hex_string_custom): Use phex_nz to
11227 convert NUM to a hex string.
11229 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11231 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11233 Update Copyright year.
11235 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11237 * language.c (longest_raw_hex_string): Delete unused function.
11239 2002-01-11 Petr Sorfa <petrs@caldera.com>
11241 * MAINTAINERS (write-after-approval): Add myself.
11242 * dwarf2read.c (read_tag_string_type): Handling of
11244 (read_tag_string_type): FORTRAN fix to prevent propagation of
11246 (set_cu_language): Handling of DW_LANG_Fortran95
11248 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11250 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11251 GETPID(inferior_ptid).
11252 (store_inferior_registers): Likewise.
11254 2002-01-10 Jason Merrill <jason@redhat.com>
11256 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11259 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11261 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11262 and bfd/elf32-sh-nbsd.c.
11264 2002-01-10 Michael Snyder <msnyder@redhat.com>
11266 * NEWS: Mention --pid and corefile/proc-id behavior change.
11268 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11269 * gcore.c: Include cli/cli-decode.h instead of command.h.
11271 * main.c (captured_main): Add new command line option "--pid".
11272 If the second command line argument (following the symbol-file)
11273 begins with a digit, try to attach to it before trying to open
11275 (print_gdb_help): Document the "--pid" argument.
11277 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11279 * completer.c (command_completer): New function.
11281 * completer.h <command_completer>: Add prototype.
11283 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11284 completer for the "help" command.
11286 2002-01-09 Jason Merrill <jason@redhat.com>
11288 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11290 2002-01-09 Michael Snyder <msnyder@redhat.com>
11292 * i386-linux-nat.c (fill_fpxregset): Make global.
11293 (store_fpxregset): Ditto.
11295 * gregset.h (gdb_fpxregset_t): Define.
11296 (supply_fpxregset): Prototype.
11297 (fill_fpxregset): Prototype.
11299 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11301 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11303 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11304 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11305 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11307 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11309 * MAINTAINERS: Update target maintainer rules so that any
11310 Maintainer can approve a tested patch for a maintenance-only
11313 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11315 * MAINTAINERS (write-after-approval): Add myself.
11317 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11320 2002-01-08 Michael Snyder <msnyder@redhat.com>
11322 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11323 real name of the executable, rather than the /proc name.
11325 2002-01-03 Michael Snyder <msnyder@redhat.com>
11327 Implement a "generate-core-file" command in gdb, save target state.
11328 * gcore.c: New file. Implement new command 'generate-core-file'.
11329 Save a corefile image of the current state of the inferior.
11330 * linux-proc.c: Add linux-specific code for saving corefiles.
11331 * target.h (struct target_ops): Add new target vectors for saving
11332 corefiles; to_find_memory_regions and to_make_corefile_notes.
11333 (target_find_memory_regions): New macro.
11334 (target_make_corefile_notes): New macro.
11335 * target.c (update_current_target): Inherit new target methods.
11336 (dummy_find_memory_regions): New place-holder method.
11337 (dummy_make_corefile_notes): New place-holder method.
11338 (init_dummy_target): Initialize new dummy target vectors.
11339 * exec.c (exec_set_find_memory_regions): New function.
11340 Allow the exec_ops vector for memory regions to be taken over.
11341 (exec_make_note_section): New function, target vector method.
11342 * defs.h (exec_set_find_memory_regions): Export prototype.
11343 * procfs.c (proc_find_memory_regions): New function, corefile method.
11344 (procfs_make_note_section): New function, corefile method.
11345 (init_procfs_ops): Set new target vector pointers.
11346 (find_memory_regions_callback): New function.
11347 (procfs_do_thread_registers): New function.
11348 (procfs_corefile_thread_callback): New function.
11349 * sol-thread.c (sol_find_memory_regions): New function.
11350 (sol_make_note_section): New function.
11351 (init_sol_thread_ops): Initialize new target vectors.
11352 * inftarg.c (inftarg_set_find_memory_regions): New function.
11353 Allow to_find_memory_regions vector to be taken over.
11354 (inftarg_set_make_corefile_notes): New function.
11355 Allow to_make_corefile_notes vector to be taken over.
11356 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11357 interface layer if not target_has_execution (may be a corefile).
11358 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11359 * config/sparc/sun4sol2.mh: Ditto.
11360 * config/alpha/alpha-linux.mh: Ditto.
11361 * config/arm/linux.mh: Ditto.
11362 * config/i386/x86-64linux.mh: Ditto.
11363 * config/ia64/linux.mh: Ditto.
11364 * config/m68k/linux.mh: Ditto.
11365 * config/mips/linux.mh: Ditto.
11366 * config/powerpc/linux.mh: Ditto.
11367 * config/sparc/linux.mh: Ditto.
11369 2002-01-07 Michael Snyder <msnyder@redhat.com>
11371 * arm-linux-nat.c: Remove references to regcache.c internal data
11372 (registers[] and register_valid[]).
11374 2002-01-07 Michael Snyder <msnyder@redhat.com>
11376 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11377 so that attaching to a pid will automatically read the process's
11378 symbol file and shlibs.
11379 * Makefile.in: Add rule for linux-proc.o.
11380 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11381 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11382 * config/arm/linux.mh: Ditto.
11383 * config/i386/linux.mh: Ditto.
11384 * config/i386/x86-64linux.mh: Ditto.
11385 * config/ia64/linux.mh: Ditto.
11386 * config/m68k/linux.mh: Ditto.
11387 * config/mips/linux.mh: Ditto.
11388 * config/powerpc/linux.mh: Ditto.
11389 * config/sparc/linux.mh: Ditto.
11391 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11393 * win32-nat.c: Add i386-tdep.h dependency.
11395 2002-01-07 Michael Snyder <msnyder@redhat.com>
11397 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11398 instead of bfd_get_arch_size. Don't bail out just because
11399 there's no exec_bfd.
11401 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11402 * p-valprint.c (pascal_object_print_value): Ditto.
11403 * somread.c (som_symtab_read): Ditto.
11404 * symfile.c (simple_free_overlay_region_table): Ditto.
11405 * valops.c (value_assign): Ditto.
11407 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11408 use tilde_expand and strerror for opening save-tracepoints file.
11410 * thread-db.c (thread_db_new_objfile): Indendation fix.
11412 * infptrace.c (GDB_MAX_ALLOCA): New define.
11413 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11414 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11415 can be overridden with whatever value is appropriate to the host).
11416 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11417 alloca to allocate potentially large buffer.
11418 * rs6000-nat.c (child_xfer_memory): Ditto.
11419 * symm-nat.c (child_xfer_memory): Ditto.
11420 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11422 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11424 From Nick Clifton <nickc@redhat.com>
11425 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11427 2002-01-07 Michael Snyder <msnyder@redhat.com>
11429 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11430 Don't use exec_bfd if it's NULL.
11432 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11434 * valops.c (value_arg_coerce): Fix formatting.
11436 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11438 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11439 * gnu-nat.c: Ditto.
11441 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11443 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11444 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11445 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11446 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11447 z8k-coff have not been multi-arched. Update z8k-coff build
11450 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11452 * MAINTAINERS: Mark a29k target as obsolete.
11453 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11454 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11456 * NEWS: Note that a29k targets are obsolete.
11457 * a29k-tdep.c: Mark as obsolete.
11458 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11459 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11460 a29k-*-vxworks* targets as obsolete.
11461 * remote-adapt.c: Obsolete.
11462 * remote-eb.c: Obsolete.
11463 * remote-mm.c: Obsolete.
11464 * remote-udi.c: Obsolete.
11465 * config/a29k/a29k-udi.mt: Obsolete.
11466 * config/a29k/a29k.mt: Obsolete.
11467 * config/a29k/tm-a29k.h: Obsolete.
11468 * config/a29k/tm-vx29k.h: Obsolete.
11469 * config/a29k/vx29k.mt: Obsolete.
11471 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11473 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11474 with BFD_ENDIAN_BIG.
11476 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11478 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11479 * configure, config.in: Re-generate.
11480 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11481 * defs.h: Do not include <endian.h>.
11483 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11485 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11486 * config.in: Regenerate.
11487 * configure.in: Update copyright years.
11488 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11489 * configure: Regenerate.
11490 * i386bsd-nat.c: Update copyright years.
11491 (fill_gregset): Use regcache_collect.
11492 (fetch_inferior_registers): Only fetch integer registers
11493 if requested to do so. Add support for XMM registers
11494 using PT_GETXMMREGS.
11495 (store_inferior_registers): Only store integer registers
11496 if requested to do so. Add support for XMM registers
11497 using PT_SETXMMREGS.
11498 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11499 (store_inferior_registers): Remove.
11500 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11501 (fetch_elfcore_registers): New function.
11502 (i386nbsd_elfcore_fns): New.
11503 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11504 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11506 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11507 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11508 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11509 * config/i386/tm-nbsd.h: Update copyright years.
11510 (HAVE_SSE_REGS): Define.
11511 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11512 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11513 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11514 (SIGCONTEXT_PC_OFFSET): Remove.
11515 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11517 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11519 * configure.tgt: Remove powerpc-*-macos* target.
11520 * config/m68k/xm-mpw.h: Delete file.
11521 * config/xm-mpw.h: Delete file.
11522 * ser-mac.c: Delete file.
11523 * mpw-make.sed: Delete file.
11524 * mpw-config.in: Delete file.
11525 * mac-xdep.c: Delete file.
11526 * mac-gdb.r: Delete file.
11527 * mac-defs.h: Delete file.
11528 * mac-nat.c: Delete file.
11529 * config/powerpc/macos.mh: Delete file.
11530 * config/powerpc/macos.mt: Delete file.
11531 * config/powerpc/nm-macos.h: Delete file.
11532 * config/powerpc/tm-macos.h: Delete file.
11533 * source.c (openp, open_source_file): Remove obsolete code.
11534 * top.c (gdb_readline): Ditto.
11535 * utils.c (query): Ditto.
11536 * event-top.c (display_gdb_prompt): Ditto.
11537 * Makefile.in (ser-mac.o): Delete obsolete target.
11540 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11542 * defs.h (BIG_ENDIAN): Delete macro definition.
11543 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11544 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11545 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11546 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11547 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11548 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11549 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11550 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11551 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11552 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11553 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11554 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11555 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11556 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11557 * gdbarch.c: Re-generate.
11559 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11561 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11564 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11566 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11568 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11570 * value.h (value_ptr): Delete typedef.
11572 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11574 * i386nbsd-nat.c: Update copyright years.
11575 Include i386-tdep.h.
11577 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11579 * stabsread.c: Update copyright years.
11581 From Debashis Mahata <debashis.mahata@wipro.com>:
11582 (read_struct_fields): Deal with Sun C compiler erroneous stab
11583 output for structs and unions.
11586 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11588 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11591 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11593 * cp-abi.c: Fix whitespace.
11594 (baseclass_offset): New wrapper function.
11595 * cp-abi.h (baseclass_offset): Add prototype.
11596 (struct cp_abi_ops): Add baseclass_offset pointer.
11598 * valops.c (vb_match): Move to...
11599 * gnu-v2-abi.c (vb_match): here.
11600 * valops.c (baseclass_offset): Move to...
11601 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11603 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11605 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11606 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11607 * hpacc-abi.c (init_hpacc_ops): Likewise.
11609 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11611 * valops.c (find_overload_match): Accept obj as a
11612 reference parameter. Update it before returning.
11613 * value.h (find_overload_match): Update prototype.
11614 * eval.c (evaluate_subexp_standard): Pass object to
11615 find_overload_match by reference.
11617 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11619 * valarith.c: Replace value_ptr with struct value pointer. Remove
11620 register attribute from value declarations.
11623 * scm-lang.c (scm_lookup_name): Ditto.
11625 2002-01-03 Michael Snyder <msnyder@redhat.com>
11627 Abstract the functionality of iterating over mapped memory
11628 regions into a general purpose iterator function.
11629 * procfs.c (iterate_over_mappings): New function, general purpose
11630 iterator for memory sections.
11631 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11632 (solib_mappings_callback): New function, callback for above.
11633 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11634 (info_mappings_callback): New function, callback for above.
11636 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11638 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11640 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11641 * i386-tdep.c: Include "elf-bfd.h".
11642 (process_note_abi_tag_sections): New function.
11643 (i386_gdbarch_init): Add code to recognize various OS/ABI
11646 * maint.c (_initialize_maint_cmds): Add missing \ in
11649 For older changes see ChangeLog-2001
11655 version-control: never