1 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4 and that "mi0" syntax has been removed.
6 2002-09-30 David Carlton <carlton@math.stanford.edu>
8 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
9 * ppc-sysv-tdep.c: #include "gdb_string.h".
10 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
13 2002-10-01 Andrew Cagney <ac131313@redhat.com>
15 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
16 "vrsave"'s register number.
18 2002-09-30 Andrew Cagney <ac131313@redhat.com>
20 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
21 use frame_unwind_signed_register to obtain the PC.
22 (mips_frame_chain): Handle a generic dummy frame.
23 (mips_init_extra_frame_info): When a generic dummy frame, don't
24 re-compute the frame base.
25 (mips_pop_frame): Handle generic dummy frames.
26 (mips_gdbarch_init): When generic dummy frames, set
27 use_generic_dummy_frames, push_dummy_frame to
28 generic_push_dummy_frame, pc_in_call_dummy to
29 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
30 generic_save_dummy_frame_tos.
32 2002-09-30 Andrew Cagney <ac131313@redhat.com>
34 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
35 against TOP when TOP was explictly set.
36 (generic_push_dummy_frame): Set TOP to zero.
38 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
40 * event-loop.c (start_event_loop): Rename variable 'result' to
41 'gdb_result', to avoid conflicts with upcoming intepreters changes.
43 2002-09-30 Keith Seitz <keiths@redhat.com>
45 * gdb-events.sh (selected_thread_changed): New event.
46 * gdb-events.c: Regenerated.
47 * gdb-events.h: Regenerated.
49 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
51 * MAINTAINERS: Add self to Write After Approval list.
53 2002-09-30 Fernando Nasser <fnasser@redhat.com>
57 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
58 (compare_lines): Ditto.
60 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
62 (do_assembly_only): Ditto.
63 (do_disassembly): Renamed to gdb_disassembly and moved to
64 disasm.c. Sdded uiout argument.
65 * Makefile.in: Add new files. Reorder SFILES list. Update
66 dependencies. Include libgdb.a later in the insight executable.
68 2002-09-29 Andrew Cagney <ac131313@redhat.com>
70 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
71 bfd/elf64-alpha-fbsd.c.
73 2002-09-29 Andrew Cagney <ac131313@redhat.com>
75 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
78 2002-09-29 Andrew Cagney <ac131313@redhat.com>
80 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
82 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
84 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
85 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
86 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
87 (S_msg_sig_post_reply): Ditto.
89 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
91 * sh-tdep.c (sh_use_struct_convention): Use definition according
93 (sh_push_arguments): Store in register with correct endianess.
94 (sh_default_store_return_value): Ditto.
95 (sh_gdbarch_init): Set sizeof long double to 8.
97 2002-09-27 Mark Kettenis <kettenis@gnu.org>
99 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
100 Fix some whitespace problems.
102 2002-09-27 David Carlton <carlton@math.stanford.edu>
104 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
105 (mcore-tdep.o): Ditto.
106 (ns32k-tdep.o): Ditto.
107 (ns32knbsd-tdep.o): Ditto.
110 * cris-tdep.c: #include "gdb_string.h"
111 * mcore-tdep.c: Ditto.
112 * ns32k-tdep.c: Ditto.
113 * ns32knbsd-tdep.c: Ditto.
117 2002-09-27 David Carlton <carlton@math.stanford.edu>
119 * config/djgpp/fnchange.lst: Add entries for
120 gdb/testsuite/gdb.c++/m-static files.
122 2002-09-27 Jim Wilson <wilson@redhat.com>
124 * MAINTAINERS: Add myself to the Write After Approval list.
126 2002-09-26 Martin M. Hunt <hunt@redhat.com>
128 * mips-tdep.c (find_proc_desc): Initialize startaddr.
131 2002-09-26 Andrew Cagney <ac131313@redhat.com>
133 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
136 2002-09-26 Andrew Cagney <ac131313@redhat.com>
138 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
139 (rs6000_struct_return_address): Delete variable.
140 (rs6000_store_struct_return): Update.
141 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
142 deprecated_extract_struct_value_address.
143 (rs6000_frame_align): New function.
144 (rs6000_gdbarch_init): Set frame_align.
146 2002-09-26 Andrew Cagney <ac131313@redhat.com>
148 From Grace Sainsbury <graces@redhat.com>:
149 * Makefile.in (gdbtk-main.o): New target.
152 (main.o): Update dependencies.
153 (gdb$(EXEEXT)): Add gdb.o.
154 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
155 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
156 (SUBDIR_GDBTK_CLEAN): Set.
157 (install-gdbtk): Install the insight binary.
158 (uninstall-gdbtk): New target.
159 (all-gdbtk, clean-gdbtk): New rule.
160 * top.c (use_windows): Default to zero.
161 * main.c: Include "main.h".
163 (struct captured_main_args): Delete.
164 (gdb_main): New function.
168 2002-09-25 Andrew Cagney <cagney@redhat.com>
170 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
171 (frame_map_regnum_to_name): New function.
172 (frame_map_name_to_regnum): New function.
173 * frame.h (frame_map_name_to_regnum): Declare.
174 (frame_map_regnum_to_name): Declare.
175 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
176 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
177 * parse.c: Do not include "builtin-regs.h".
178 (target_map_name_to_register): Delete function.
179 (write_dollar_variable): Use frame_map_name_to_regnum.
180 * parser-defs.h (target_map_name_to_register): Delete declaration.
181 * expprint.c: Include "frame.h".
182 (print_subexp): Use frame_map_regnum_to_name.
183 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
184 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
186 2002-09-25 Andrew Cagney <ac131313@redhat.com>
188 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
189 wasn't saved, and the next innermost frame is a dummy, return the
190 dummy frame's link register.
192 2002-09-24 Jim Blandy <jimb@redhat.com>
195 * main.c (captured_main): Add a `break' after the case for 'b'.
197 2002-09-24 Keith Seitz <keiths@redhat.com>
199 * varobj.c (c_type_of_child): Use get_target_type instead
202 2002-09-22 Fernando Nasser <fnasser@redhat.com>
204 * source.c (get_current_or_default_source_symtab_and_line): Remove
206 (set_default_source_symtab_and_line): New function. Attempts to
207 determine a source file to list lines from if one is not currently
209 (get_current_source_symtab_and_line): Initialize sal.pc and
211 (set_current_source_symtab_and_line): Mark argument as const.
212 * source.h: Update declarations and comments.
213 * linespec.c (decode_line_1): Replace call to removed routine above.
214 * stack.c (print_frame_info_base): Ditto.
215 * cli/cli-cmds.c (edit_command): Ditto.
216 (list_command): Ditto.
218 2002-09-22 Fernando Nasser <fnasser@redhat.com>
220 * source.c (get_current__or_default_source_symtab_and_line): Initialize
221 sal.pc and sal.end fields.
222 (get_current_or_default_source_symtab_and_line): Ditto.
223 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
224 so we do not cause a new source symtab to be searched for (reverting an
225 unintentional change from the 2002-09-20 patch).
226 * scm-lang.c (scm_unpac): Ditto.
228 2002-09-21 Andrew Cagney <cagney@redhat.com>
230 * complaints.c (symfile_explanations): Remove new-line from
231 ``isolated_message''.
232 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
233 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
235 2002-09-20 Nick Clifton <nickc@redhat.com>
237 * NEWS: Announce that V850EA ISA is no longer supported.
238 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
240 2002-09-20 David Carlton <carlton@math.stanford.edu>
242 * Makefile.in (c-lang.o): Correct dependencies.
243 (utils.o): Gather dependencies.
245 * c-lang.c: #include "gdb_string.h"
247 2002-09-20 Fernando Nasser <fnasser@redhat.com>
249 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
250 * cli/cli-cmds.c (list_command): New function. Implements the new
252 (_init_cli_cmds): Add new command definition.
253 * gdb.1: Document edit command.
254 * doc/gdb.texinfo: Document edit command.
256 2002-09-20 Fernando Nasser <fnasser@redhat.com>
258 * source.c: Make global variables current_source_symtab and
259 current_source_line static.
260 (list_command): Moved to cli/cli-cmds.c.
261 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
262 (get_first_line_listed): New accessor function.
263 (get_lines_to_list): New accessor function.
264 (get_current_source_symtab_and_line): New function. Retrieves the
265 position in the source code that we consider current.
266 (get_current_or_default_source_symtab_and_line): New function.
267 Like the above but attempts to determine a default position if one
268 is not currently defined.
269 (set_current_source_symtab_and_line): New function. Sets the source
270 code position considered current and returns the previously set one.
271 (clear_current_source_symtab_and_line): Reset stored information about
272 a current source line.
273 (_initialize_source): Remove registration for the "list" command and
275 * source.h: Add declarations for the new functions above.
276 * symtab.h: Remove declarations for the global variables mentioned
278 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
279 obtain current source line.
280 * linespec.c (decode_line_1): Ditto.
281 * macroscope.c (default_macro_scope): Ditto.
282 * scm-lang.c (scm_unpac): Ditto.
283 * stack.c (print_frame_info_base): Ditto.
284 * symfile.c (clear_symtab_users): Ditto.
285 * symtab.c (decode_line_spec): Ditto.
286 * cli/cli-cmds.c (list_command): Moved here from source.c.
287 (ambiguous_line_spec): Moved here from source.c.
288 (_init_cli_cmds): Add definition for "list" and its alias.
289 * Makefile.in: Update dependencies.
291 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
293 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
294 with what gcc thinks is correct.
296 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
298 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
299 multiple register push instruction.
301 2002-09-19 Jim Blandy <jimb@redhat.com>
303 Add support for distinct host and target character sets.
304 * charset.c, charset.h: New files.
305 * c-exp.y: #include "charset.h".
306 (yylex): Convert character and string literals to the target
307 character set, before returning them as the semantic value of the
309 * c-lang.c: #include "charset.h".
310 (c_emit_char): Use charset-specific methods to recognize
311 characters with backslash escape forms, to decide which characters
312 to print literally and which to print using numeric escape
313 sequences, and to convert target characters to host characters
315 * utils.c: #include "charset.h".
316 (no_control_char_error): New function.
317 (parse_escape): Use charset-specific methods to recognize
318 backslash escapes, parse `control character' notation, and convert
319 characters from the host character set to the target character set.
320 * configure.in: Set the default host character set.
321 Check where to find iconv, and what its argument types might be.
322 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
323 * Makefile.in (SFILES): List charset.c.
324 (COMMON_OBS): List charset.o.
325 (charset.o): New rule.
326 (charset_h): New header dependency variable.
327 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
328 (LIBICONV): New variable, set by configure.
329 (CLIBS): Include $(LIBICONV) here.
330 * aclocal.m4, config.in, configure: Regenerated.
332 2002-09-19 Joel Brobecker <brobecker@gnat.com>
334 * ada-exp.y: Add missing semicolons to end rules. Fixes a
337 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
339 * gdb_mbuild.sh: New file.
341 2002-09-19 Andrew Cagney <ac131313@redhat.com>
343 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
345 2002-09-18 Andrew Cagney <ac131313@redhat.com>
347 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
348 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
349 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
350 valops.c, value.h: Revert previous change.
352 2002-09-18 Michael Snyder <msnyder@redhat.com>
354 Preliminary support for Objective-C:
355 * defs.h (language_objc): New enum value.
356 (puts_filtered_tabular): Declaration only, exported from utils.c.
357 (skip_quoted): Delete, declared in completer.h.
358 * c-exp.y: Include completer.h.
361 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
362 New operator enum values.
363 * language.h (CAST_IS_CONVERSION): Test for language_objc.
364 * language.c (binop_result_type): Handle language_objc case.
365 (integral_type, character_type, string_type, boolean_type,
366 structured_type, binop_type_check): Ditto.
367 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
368 (struct objc_specific): Add to general_symbol_info.
369 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
370 (SYMBOL_DEMANGLED_NAME): Handle objc case.
371 * parser-defs.h (struct objc_class_str): New struct type.
372 (start_msglist, end_msglist, add_msglist): Declaration only,
373 exported from objc-lang.c.
374 * value.h (value_of_local, value_nsstring,
375 call_function_by_hand_expecting_type): Exported from valops.c.
376 * valops.c (find_function_addr): Export.
377 (call_function_by_hand_expecting_type): New function.
378 (value_of_local): New function.
379 * symfile.c (init_filename_language_table): Add ".m" extension
381 * utils.c (puts_filtered_tabular): New function.
382 (fprintf_symbol_filtered): Add objc demangling support (disabled).
383 (set/show demangle): Extend help-string to refer to ObjC.
384 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
385 * stabsread.c (symbol_reference_defined): Objective-C symbols
386 may contain colons: make allowances when scanning stabs strings
388 (objc_find_colon): New function.
389 * printcmd.c (address_info): If language == objc then print
390 "self" instead of "this".
391 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
392 OP_NSSTRING, and OP_SELF.
393 (prefixify_subexp): Ditto.
394 * source.c (print_source_lines): Mention objc in comment.
395 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
398 2002-09-18 Andrew Cagney <ac131313@redhat.com>
400 * complaints.h: Update copyright.
401 (struct complaints): Declare.
402 (struct complaint): Make `message' constant.
403 (internal_complaint): Declare.
404 (complaint): Declare.
405 (complaint_root): Delete declaration.
406 (symfile_complaints): Delete declaration.
407 (struct complaints): Add opaque declaration.
408 (clear_complaints): Add a complaints parameter.
409 * complaints.c: Update copyright.
410 (enum complaint_series): Define.
411 (complaint_root): Delete.
412 (struct complaints): Define.
413 (complaint_sentinel, symfile_complaint_book): New variables.
414 (symfile_explanations, symfile_complaints): New variables.
416 (get_complaints): New function.
417 (vcomplaint): New function.
418 (complaint): New function.
419 (internal_complaint): New function.
420 (complain): Call vcomplain with symfile_complaint.
421 (clear_complaints): Rewrite.
422 (_initialize_complaints): Use add_setshow_command.
423 * Makefile.in (complaints.o): Update dependencies.
424 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
425 to call to clear_complaints.
426 (new_symfile_objfile, reread_symbols): Ditto.
427 (oldsyms_complaint): Delete.
428 (empty_symtab_complaint, unknown_option_complaint): Delete.
429 (free_named_symtabs): Use complaint instead of complain.
431 2002-09-18 Michael Snyder <msnyder@redhat.com>
433 Contributed by Apple Computer, Inc. Merged with current sources
434 by Adam Fedor <fedor@doc.com> [cagney].
436 * objc-lang.c: First clean-up round: comments, indentation.
437 * objc-lang.h: Ditto.
438 * objc-lang.y: Ditto.
440 2002-09-18 Andrew Cagney <ac131313@redhat.com>
442 * maint.c (maintenance_internal_error): Print the parameter as the
444 (maintenance_internal_warning): New function.
445 (_initialize_maint_cmds): Add command `maint internal-warning'.
447 * defs.h (internal_warning, internal_vwarning): Declare.
448 * utils.c (struct internal_problem): Define.
449 (internal_vproblem): New function.
450 (internal_warning): New function.
451 (internal_vwarning): New function.
452 (internal_warning_problem, internal_error_problem): New variables.
453 (internal_verror): Just call internal_vproblem.
455 2002-09-18 Michael Snyder <msnyder@redhat.com>
457 * objc-lang.c: New file, support for Objective-C.
458 Preliminary check-in, not yet integrated into gdb.
459 * objc-lang.h: New file.
460 * objc-exp.y: New file.
462 2002-09-18 Andrew Cagney <ac131313@redhat.com>
464 * infrun.c (signal_stop_update): Convert definition to ISO C.
465 (signal_print_update): Ditto.
466 (signal_pass_update): Ditto.
467 * inflow.c (terminal_save_ours): Ditto.
469 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
472 * config/djgpp/fnchange.lst: Handle name clashes between
473 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
476 * i386-linux-tdep.h: Fix tipo.
478 2002-09-18 Adam Fedor <fedor@gnu.org>
480 * MAINTAINERS: Add myself to the Write After Approval list.
482 2002-09-18 Jim Blandy <jimb@redhat.com>
484 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
485 texthigh and textlow to reader-specific structs caused
486 objfile_relocate to miss them. This is fixable, but the work that
487 the change was supposed to prepare GDB for never got done anyway.
489 2002-09-18 David Carlton <carlton@math.stanford.edu>
491 * MAINTAINERS: Alphabetize Write After Approval list.
493 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
496 * values.c (value_static_field): Call read_var_value.
498 2002-09-18 Andrew Cagney <ac131313@redhat.com>
500 * valops.c (hand_function_call): Align the initial stack pointer
501 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
502 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
504 * mips-tdep.c (mips_frame_align): New function.
505 (mips_gdbarch_init): Set frame_align.
506 * gdbarch.sh (FRAME_ALIGN): New method.
507 * gdbarch.h, gdbarch.c: Re-generate.
509 2002-09-18 Michal Ludvig <mludvig@suse.cz>
511 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
514 2002-09-17 Andrew Cagney <ac131313@redhat.com>
516 * NEWS: Mention that MIPS $fp behavior changed.
517 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
518 reference to FP_REGNUM.
519 (mipsnbsd_cannot_store_register): Ditto.
520 * mips-linux-nat.c: Update copyright.
521 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
522 (mips_linux_cannot_store_register): Ditto.
523 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
524 * config/mips/tm-mips.h: Update copyright.
525 (FP_REGNUM): Delete macro.
526 (MIPS_REGISTER_NAMES): Replace "fp" with "".
527 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
528 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
529 (mips_r3041_reg_names, mips_r3051_reg_names)
530 (mips_r3081_reg_names): Replace "fp" with "".
533 2002-09-17 Theodore A. Roth <troth@verinet.com>
535 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
536 generic_read_register_dummy() (PR gdb/703).
537 (avr_push_return_address): #if 0 out unused vars.
538 (avr_gdbarch_init): Enable use of avr_push_return_address().
540 2002-09-17 Michael Snyder <msnyder@redhat.com>
542 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
543 RTE will take care of it.
545 2002-09-17 Andrew Cagney <ac131313@redhat.com>
547 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
548 invalid, return SP_REGNUM.
550 2002-09-17 Michael Snyder <msnyder@redhat.com>
552 * mips-tdep.c (mips_pop_frame): Read saved values of floating
553 point registers without sign extension.
555 2002-09-17 Andrew Cagney <cagney@redhat.com>
557 * blockframe.c (deprecated_read_register_dummy): Rename
558 generic_read_register_dummy.
559 * frame.c (frame_unwind_signed_register): New function.
560 (frame_unwind_unsigned_register): New function.
561 * frame.h (frame_unwind_signed_register): Declare.
562 (frame_unwind_unsigned_register): Declare.
563 (deprecated_read_register_dummy): Rename
564 generic_read_register_dummy.
566 * h8300-tdep.c (h8300_frame_chain): Update.
567 (h8300_frame_saved_pc): Update.
568 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
569 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
570 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
571 (s390_frame_chain): Update.
572 * v850-tdep.c (v850_find_callers_reg): Update.
573 (v850_frame_saved_pc): Update.
574 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
575 (m32r_find_callers_reg): Update.
576 (m32r_frame_saved_pc): Update.
577 * sh-tdep.c (sh_find_callers_reg): Update.
578 (sh64_get_saved_pr): Update.
579 (sh_init_extra_frame_info): Update.
580 (sh_init_extra_frame_info): Update.
581 (sh64_init_extra_frame_info): Update.
582 (sh64_init_extra_frame_info): Update.
583 * mcore-tdep.c (mcore_find_callers_reg): Update.
584 (mcore_frame_saved_pc): Update.
585 (mcore_init_extra_frame_info): Update.
586 * i386-tdep.c (i386_frame_saved_pc): Update.
587 * ia64-tdep.c (ia64_frame_saved_pc): Update.
588 (ia64_init_extra_frame_info): Update.
589 (ia64_init_extra_frame_info): Update.
590 * d10v-tdep.c (d10v_frame_saved_pc): Update.
591 * cris-tdep.c (cris_init_extra_frame_info): Update.
592 * avr-tdep.c (avr_frame_chain): Update.
593 (avr_init_extra_frame_info): Update.
594 (avr_frame_saved_pc): Update.
595 * arm-tdep.c (arm_find_callers_reg): Update.
596 (arm_init_extra_frame_info): Update.
597 (arm_frame_saved_pc): Update.
599 2002-09-17 Tom Tromey <tromey@redhat.com>
601 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
604 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
606 * MAINTAINERS: Remove "non multi-arched" text from h8300.
607 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
609 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
612 2002-09-16 Joel Brobecker <brobecker@gnat.com>
614 * osfsolib.c: Remove file, replaced by solib-osf.c.
615 * Makefile.in: Remove compilation rules for osfsolib.c.
617 2002-09-16 David Carlton <carlton@math.stanford.edu>
619 * cp-valprint.c (cp_print_class_method): Correct args to
620 check_stub_method_group.
622 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
624 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
625 `set architecture'. Unify naming convention of functions.
626 (h8300_skip_prologue): Improve prologue analysis.
627 (h8300_push_arguments): Rewritten to more closely match GCC's
628 bizarre argument-passing behavior, along with the comment describing
630 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
631 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
632 sim, remote-e7000.c, remote-hms.c and remote.c
634 2002-09-15 Mark Kettenis <kettenis@gnu.org>
636 * i386-tdep.c (gdb_print_insn_i386): Removed.
637 (i386_print_insn): New function.
638 (i386_gdbarch_init): Set print_insn to i386_print_insns.
639 (_initialize_i386_tdep): Don't initialize tm_print_insn and
642 2002-09-14 Mark Kettenis <kettenis@gnu.org>
644 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
647 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
649 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
650 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
651 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
653 2002-09-13 Christopher Faylor <cgf@redhat.com>
655 * win32-nat.c (child_create_inferior): Honor 'tty' command.
657 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
659 * gdbtypes.c (check_stub_method): Make static.
660 (check_stub_method_group): New function.
661 * gdbtypes.h: Update prototypes.
662 * cp-support.c: New file.
663 * cp-support.h: New file.
665 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
666 (update_method_name_from_physname): New function.
667 (read_member_functions): Correct method names for operators
668 and v3 constructors/destructors. Separate v2 constructors and
670 * Makefile.in (stabsread.o): Update dependencies.
671 (SFILES): Add cp-support.c.
672 (COMMON_OBS): Add cp-support.o.
673 (cp_support_h, cp-support.o): Add.
675 * cp-valprint.c (cp_print_class_method): Call
676 check_stub_method_group instead of check_stub_method. Remove
678 * p-valprint.c (pascal_object_print_class_method): Likewise.
679 * valops.c (search_struct_method): Likewise.
680 (find_method_list, value_struct_elt_for_reference): Likewise.
682 2002-09-13 Andrew Cagney <cagney@redhat.com>
684 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
685 * gdbarch.h, gdbarch.c: Regenerate.
687 2002-09-13 Andrew Cagney <ac131313@redhat.com>
689 * frame.c (find_saved_register): Delete function.
690 * frame.h (find_saved_register): Delete declaration.
693 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
695 * mips-tdep.c (read_next_frame_reg): Re-hack using
696 frame_register_unwind.
698 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
700 * mips-tdep.c (mips_get_saved_register): Re-hack using
701 frame_register_unwind.
703 2002-09-12 Joel Brobecker <brobecker@gnat.com>
705 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
706 vector. Will be useful for Interix.
707 * gdbarch.h, gdbarch.c: Regenerate.
709 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
710 name of the malloc function by NAME_OF_MALLOC.
712 2002-09-12 Joel Brobecker <brobecker@gnat.com>
714 * value.h (find_function_in_inferior): Add const keyword to
715 one of the parameters. Allows us to invoke this function with
717 * valops.c (find_function_in_inferior): Likewise.
719 2002-09-12 Joel Brobecker <brobecker@gnat.com>
721 * exec.c (xfer_memory): Fix compilation warning with old versions
723 * tracepoint.c (trace_find_tracepoint_command): Likewise.
725 2002-09-12 David Carlton <carlton@math.stanford.edu>
727 * symtab.h: Run through gdb_indent.h.
728 Add 2002 to Copyright year list.
730 2002-09-12 Alan Modra <amodra@bigpond.net.au>
732 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
734 * MAINTAINERS: Add myself to write after approval list.
736 2002-09-11 J. Brobecker <brobecker@gnat.com>
738 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
740 2002-09-11 J. Brobecker <brobecker@gnat.com>
742 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
745 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
747 * procfs.c (do_detach): Clear current signal, not just fault.
748 Corrects problem with breakpoint trap signal leaking to detached
751 2002-09-10 Michael Snyder <msnyder@redhat.com>
753 * buildsym.c (finish_block): Protect against null pointer.
755 2002-09-10 Andrew Cagney <cagney@redhat.com>
757 * infcmd.c (default_print_registers_info): Send all output to
758 ``file'' instead of ``gdb_stdout''.
760 2002-09-10 Michael Snyder <msnyder@redhat.com>
762 * mips-tdep.c (mips_extract_struct_value_address): Make val a
763 LONGEST, and use signed register read (addresses are sign-
766 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
768 * event-loop.c (gdb_do_one_event): Make public.
769 * event-loop.h (gdb_do_one_event): Declare.
771 2002-09-10 Jeff Law <law@redhat.com>
773 * infttrace.c (child_resume): Simplify and rework to avoid
776 2002-09-09 Fred Fish <fnf@intrinsity.com>
778 * printcmd.c (print_scalar_formatted): "len" is the number of
779 target bytes, NOT the number of target bits.
781 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
783 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
784 * top.c (init_main): Set rl_terminal_name.
786 2002-09-08 Aidan Skinner <aidan@velvet.net>
788 * ada-lang.c (ada_array_bound, ada_type_match,
789 _initialize_ada_language): Fix K&R definitions.
790 * ada-tasks.c (get_current_task): Fix K&R definitions.
791 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
793 2002-09-07 Christopher Faylor <cgf@redhat.com>
795 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
798 2002-09-06 Mark Kettenis <kettenis@gnu.org>
800 * i386-tdep.c (i386_register_virtual_type,
801 i386_register_convertible, i386_register_convert_to_virtual,
802 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
803 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
804 (i386_gdbarch_init): Fix comment. Add comments on calls that set
805 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
806 Don't set push_arguments twice.
808 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
809 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
810 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
811 sigtramp_end to NULL.
812 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
814 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
816 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
819 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
820 * gdbarch.h, gdbarch.c: Re-generate.
821 * blockframe.c (find_pc_sect_partial_function): Convert to use
822 SIGTRAMP_START_P predicate.
824 2002-09-05 Michael Snyder <msnyder@redhat.com>
826 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
827 generic_dummy_frame method and old method. Also distinguish
828 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
829 (arm_extract_return_value): Use new regcache method.
831 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
832 adjustment that doesn't conform to the ABI.
833 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
834 saved regcache, not from current regcache.
836 2002-09-05 Andrew Cagney <ac131313@redhat.com>
838 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
841 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
843 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
844 if arm_apcs_32 is false.
846 2002-09-04 Andrew Cagney <ac131313@redhat.com>
848 GDB 5.3 branch created.
850 2002-09-03 Theodore A. Roth <troth@verinet.com>
852 * gdb/avr-tdep.c (avr_gdbarch_init): Use
853 generic_unwind_get_saved_register.
855 2002-09-03 David Carlton <carlton@math.stanford.edu>
857 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
858 argument (PR gdb/653). Update call to smash_to_method_type.
859 (read_structure_scope): Update call to dwarf2_add_member_fn.
861 2002-09-03 Michal Ludvig <mludvig@suse.cz>
863 * x86-64-linux-tdep.c: Include gdb_string.h
864 * x86-64-linux-nat.c: Ditto.
866 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
868 * ada-exp.y (yyname, yyrule): Remap global variables that appear
869 when YYDEBUG is set to 1.
872 * jv-exp.y: Likewise.
873 * m2-exp.y: Likewise.
876 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
878 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
880 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
881 solib_svr4_fetch_link_map_offsets to
882 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
883 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
884 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
885 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
886 solib-svr4.o, and solib-legacy.o.
887 * config/i386/tm-nbsd.h: Include solib.h.
889 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
891 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
892 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
893 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
894 comment noting that this needs its own target configuration.
895 * config/i386/nbsd.mt: New file.
896 * config/i386/nbsdaout.mt: Remove.
897 * config/i386/nbsdelf.mt: Ditto.
898 * config/i386/tm-nbsdaout.h: Ditto.
900 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
902 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
903 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
904 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
906 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
907 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
908 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
910 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
912 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
913 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
914 * i386-tdep.h (i386bsd_init_abi): New prototype.
915 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
916 function declaration.
917 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
918 for NetBSD-a.out or NetBSD-ELF.
919 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
920 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
921 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
922 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
924 (i386nbsd_pc_in_sigtramp): New function.
925 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
926 i386nbsd_pc_in_sigtramp.
927 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
928 and i386nbsdelf_init_abi OS ABI handlers.
929 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
930 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
932 2002-09-02 Mark Kettenis <kettenis@gnu.org>
934 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
935 registers if the target really has them.
937 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
939 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
942 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
944 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
946 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
947 (alphanbsd_skip_sigtramp_frame): New functions.
948 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
949 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
950 to alphanbsd_sigcontext_addr.
952 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
954 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
956 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
957 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
959 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
960 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
961 * nbsd-tdep.c: Include gdb_string.h.
962 (nbsd_pc_in_sigtramp): New function.
963 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
964 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
965 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
966 ppcnbsd_pc_in_sigtramp.
967 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
968 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
969 shnbsd_pc_in_sigtramp.
970 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
971 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
972 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
974 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
976 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
978 (insert_breakpoints): set val field of watchpoints if NULL.
981 2002-08-29 Jim Blandy <jimb@redhat.com>
983 * symtab.c (lookup_symbol_aux): In the cases where we find a
984 minimal symbol of an appropriate name and use its address to
985 select a symtab to read and search, use `name' (as passed to us)
986 as the demangled name when searching the symtab's global and
987 static blocks, not the minsym's name.
989 2002-08-29 Keith Seitz <keiths@redhat.com>
991 * stack.c (print_frame_info_base): Always set current_source_symtab
992 and current_source_line.
994 2002-08-29 Donn Terry <donnte@microsoft.com>
996 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
998 2002-08-28 Keith Seitz <keiths@redhat.com>
1000 * stack.c (select_frame): Add FIXME concerning selected-frame
1002 (select_frame_command): Send selected-frame-level-changed
1003 event notification, but only if the level actually changed.
1004 (up_silently_base): Add selected-frame-level-changed event
1006 (down_silently_base): Likewise.
1008 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1010 * Makefile.in: Update dependencies for all gdb/*.c files.
1012 2002-08-27 Tom Tromey <tromey@redhat.com>
1014 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1015 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1016 Update dependencies.
1017 * i387-tdep.c: Include gdb_string.h.
1018 * osabi.c: Likewise.
1019 * i386-linux-nat.c: Likewise.
1020 * lin-lwp.c: Likewise.
1021 * ax-gdb.c: Likewise.
1022 * signals/signals.c: Likewise.
1023 * jv-valprint.c: Likewise.
1024 * p-lang.c: Likewise.
1025 * c-valprint.c: Likewise.
1026 * cp-abi.c: Likewise.
1028 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1030 * cli/cli-script.h (copy_command_lines): Export.
1031 * breakpoint.c: Include cli/cli-script.h.
1032 * Makefile.in (breakpoint.o): Update dependencies.
1034 2002-08-26 Michael Snyder <msnyder@redhat.com>
1036 * breakpoint.c (insert_breakpoints): Protect all references
1037 to 'process_warning'. Shorten long lines.
1039 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1041 * cli/cli-script.c (copy_command_lines): New function.
1042 * defs.h (copy_command_lines): Export.
1043 * testsuite/gdb.base/commands.exp: New tests for commands
1044 attached to a temporary breakpoint, and for commands that
1045 delete the breakpoint they are attached to.
1047 2002-08-26 Michael Snyder <msnyder@redhat.com>
1049 * breakpoint.c (bpstat_stop_status): Instead of copying the
1050 pointer to the breakpoint commands struct, make a new copy
1051 of the struct and point to that.
1052 (bpstat_clear): Free the commands struct.
1053 (bpstat_clear_actions): Free the commands struct.
1054 (bpstat_do_actions): Free the command actions. Also execute
1055 the local cleanups, instead of deleting them.
1056 (delete_breakpoint): Leave the commands field of the bpstat
1057 chain alone -- it will be freed later.
1059 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1061 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1062 deleted in 2002-08-20 commit. This function is still used by
1065 2002-08-26 Keith Seitz <keiths@redhat.com>
1067 * gdb-events.sh: Add selected-frame-level-changed event.
1068 * gdb-events.c: Regenerated.
1069 * gdb-events.h: Regenerated.
1071 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1074 * inflow.c (terminal_save_ours): New function to save terminal
1076 * inferior.h (terminal_save_ours): Declare.
1077 * target.c (debug_to_terminal_save_ours): New function.
1078 (cleanup_target): Defaults to_terminal_save_ours.
1079 (update_current_target): Inherit to_terminal_save_ours.
1080 (setup_target_debug): Set to_terminal_save_ours.
1081 * target.h (target_terminal_save_ours): New to save terminal settings.
1082 (target_ops): New member to_terminal_save_ours.
1083 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1084 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1085 * inftarg.c (init_child_ops): Likewise.
1086 * m3-nat.c (init_m3_ops): Likewise.
1087 * procfs.c (init_procfs_ops): Likewise.
1088 * wince.c (init_child_ops): Likewise.
1089 * win32-nat.c (init_child_ops): Likewise.
1090 * sol-thread.c (init_sol_thread_ops): Likewise.
1092 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1094 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1095 use regcache_* functions.
1096 (i386_gdbarch_init): Set store_return_value instead of
1097 deprecated_store_return_value.
1099 * regcache.c (regcache_raw_write_signed,
1100 regcache_raw_write_unsigned): New functions.
1101 * regcache.h (regcache_raw_write_signed,
1102 regcache_raw_write_unsigned): New prototypes.
1104 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1106 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1107 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1108 source file dependencies. Cleanup corresponding generator rules.
1110 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1112 * regcache.h (register_offset_hack): Declare.
1113 (regcache_cooked_read_using_offset_hack): Declare.
1114 (regcache_cooked_write_using_offset_hack): Declare.
1116 * regcache.c (register_offset_hack): New function.
1117 (regcache_cooked_read_using_offset_hack): New function.
1118 (regcache_cooked_write_using_offset_hack): New function.
1119 (regcache_dump): Check that the registers, according to their
1120 offset, are packed hard against each other.
1121 (cooked_xfer_using_offset_hack): New function.
1123 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1125 * regcache.c (struct regcache_descr): Add field register_type.
1126 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1128 (init_regcache_descr): Initialize register_type. Pass the descr
1129 to init_legacy_regcache_descr. Use register_type instead of
1130 REGISTER_VIRTUAL_TYPE.
1131 (register_type): New function.
1132 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1133 * regcache.h (register_type): Declare.
1135 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1137 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1138 instead of deprecated_store_return_value. Fix fallout from
1139 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1141 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1143 * regcache.c (max_register_size): New function.
1144 (init_legacy_regcache_descr): Ensure that max_register_size is
1145 large enough for REGISTER_VIRTUAL_SIZE.
1146 * regcache.h (max_register_size): Declare.
1148 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1150 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1152 (e500_extract_return_value): Change type of valbuf pointer to
1155 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1157 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1160 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1161 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1162 long long) to prevent compiler warning on 64-bit systems.
1164 2002-08-23 Andrew Cagney <cagney@redhat.com>
1166 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1167 (DEPRECATED_STORE_RETURN_VALUE): New method.
1168 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1169 * gdbarch.h, gdbarch.c: Re-generate.
1171 * values.c (set_return_value): Pass current_regcache to
1173 * arch-utils.h (legacy_store_return_value): Declare.
1174 * arch-utils.c (legacy_store_return_value): New function.
1175 (legacy_extract_return_value): Update parameters.
1177 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1179 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1180 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1181 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1182 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1183 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1184 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1185 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1186 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1187 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1188 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1191 * i386-tdep.c (i386_extract_return_value): Update.
1192 * arch-utils.c (legacy_extract_return_value): Update.
1193 * frv-tdep.c (frv_gdbarch_init): Update.
1194 * cris-tdep.c (cris_gdbarch_init): Update.
1195 * d10v-tdep.c (d10v_gdbarch_init): Update.
1196 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1197 * m68k-tdep.c (m68k_gdbarch_init): Update.
1198 * mcore-tdep.c (mcore_gdbarch_init): Update.
1199 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1200 * s390-tdep.c (s390_gdbarch_init): Update.
1201 * sparc-tdep.c (sparc_gdbarch_init): Update.
1202 * sh-tdep.c (sh_gdbarch_init): Update.
1203 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1204 * v850-tdep.c (v850_gdbarch_init): Update.
1205 * avr-tdep.c (avr_gdbarch_init): Update.
1206 * ia64-tdep.c (ia64_gdbarch_init): Update.
1207 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1208 * vax-tdep.c (vax_gdbarch_init): Update.
1209 * alpha-tdep.c (alpha_gdbarch_init): Update.
1210 * arm-tdep.c (arm_gdbarch_init): Update.
1211 * mips-tdep.c (mips_gdbarch_init): Update.
1212 * i386-tdep.c (i386_gdbarch_init): Update.
1214 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1216 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1217 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1219 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1221 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1224 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1226 * infrun.c (handle_inferior_event): Move a comment outside of a
1227 function call, in order to avoid indent reformatting this part
1228 of the code in an unreadable way.
1230 2002-08-23 Grace Sainsbury <graces@redhat.com>
1232 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1233 when breakpoints fail. Move general breakpoint error messages to
1235 * breakpoint.c (insert_breakpoints): Change warnings when
1236 breakpoints are nto inserted to specify the type. Remove call to
1237 memory_error when hardware breakpoints can't be inserted. Remove
1238 multiple calls to warning so all messages are sent to the user at
1240 (delete_breakpoints): Make insert error messsages more explicit.
1242 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1244 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1245 gdbserver/ChangeLog.
1247 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1249 * i386-tdep.c: Include "objfiles.h".
1250 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1251 skip_trampoline_code.
1252 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1253 (CPLUS_MARKER): Define to '.'.
1255 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1257 (linux_corefile_thread_callback): Increase args->num_notes.
1258 (linux_make_note_section): Initialize thread_args.num_notes, and
1259 use it to determine whether notes for any threads were created.
1261 2002-08-23 Donn Terry <donnte@microsoft.com>
1263 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1264 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1266 (write_with_trace): Conditionalize out the switch branch handling
1267 PCSHOLD if the corresponding macro is not defined. Likewise for
1268 PRSABORT and PRSTOP.
1269 This change will be needed by the Interix port.
1271 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1273 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1274 write_register wherever possible instead of manipulating the
1275 register bytes directly.
1276 Assign VALUE_CONTENTS to a variable and use that.
1277 The GPR numbers are now dependent on the architecture.
1279 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1281 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1283 (skip_prologue): Add support for BookE/e500 instructions.
1284 (e500_extract_return_value): New function.
1285 (frame_get_saved_regs): Add support for saving ev registers and
1287 (e500_store_return_value): New function.
1288 (rs6000_gdbarch_init): Move up default intializations of
1289 deprecated_extract_return_value and store_return_value. Overwrite
1290 init of store_return_value with e500 specific version.
1291 Set extract_return_value for e500.
1293 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1295 * blockframe.c (generic_call_dummy_register_unwind): Use
1296 regcache_cooked_read to catch cases in which the variable is
1297 stored in a pseudo register.
1299 2002-08-22 Andrew Cagney <cagney@redhat.com>
1301 * NEWS: Mention that the i960 has been made obsolete.
1302 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1304 (remote-nrom.o): Obsolete target.
1305 (remote-nindy.o, i960-tdep.o): Ditto.
1306 * remote-nrom.c: Make file obsolete.
1307 * remote-nindy.c, remote-vx960.c: Ditto.
1308 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1309 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1310 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1311 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1312 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1313 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1314 i960-*-vxworks* obsolete.
1315 * MAINTAINERS: Note that the i960 is obsolete.
1317 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1319 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1320 detach to allow reinitialization.
1322 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1324 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1327 2002-08-22 Jim Blandy <jimb@redhat.com>
1329 * coffread.c (coff_symfile_read): Don't try to read the line
1330 number table from disk if the image file doesn't have a symbol
1331 table; we'll never actually look at the info anyway, and Windows
1332 ships DLL's with bogus file offsets for the line number data.
1334 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1336 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1339 2002-08-21 Michael Snyder <msnyder@redhat.com>
1341 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1342 (MSYMBOL_SIZE): Replace macro with function.
1343 (DEFAULT_MIPS_TYPE): Delete unused macro.
1344 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1345 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1347 2002-08-21 Jim Blandy <jimb@redhat.com>
1349 * valops.c (value_cast): Simplify and correct logic for doing a
1350 static cast from a pointer to a base class to a pointer to a
1353 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1355 * infcmd.c (default_print_registers_info): Replace
1357 (registers_info): Use gdbarch_print_registers_info instead of
1359 * inferior.h (default_print_registers_info): Replace
1361 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1362 (DO_REGISTERS_INFO): Change to a predicate function.
1363 * gdbarch.h, gdbarch.c: Regenerate.
1365 2002-08-21 Keith Seitz <keiths@redhat.com>
1367 * gdb-events.sh: Add target-changed event.
1368 * gdb-events.c: Regenerated.
1369 * gdb-events.c: Regenerated.
1370 * valops.c (value_assign): Add target-changed event notification
1371 to inlval_register, lval_memory, and lval_reg_frame_relative.
1373 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1375 * NEWS: Add an entry regarding the improvement of the next/step
1376 operation on Alpha Tru64 multi-processor machines.
1378 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1380 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1382 * Makefile.in: Update all _h macro definitions.
1383 * Makefile.in (install-gdbtk): Move to install section.
1384 (rdi-share/libangsd.a): Move to end of file.
1386 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1388 * frame.c (frame_register_unwind): When a register, set addrp to
1389 the register's byte.
1391 2002-08-20 Michael Snyder <msnyder@redhat.com>
1393 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1394 used locally, so move them from the target machine header to here.
1395 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1396 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1398 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1400 2002-08-20 Andrew Cagney <cagney@redhat.com>
1402 * NEWS: Mention that the Apollo line was made obsolete.
1403 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1404 m68*-hp-hpux* obsolete.
1405 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1406 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1407 * buildsym.c (make_blockvector): Make static.
1408 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1409 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1410 (ALLDEPFILES): Remove dstread.c.
1411 (dstread.o): Obsolete make rule.
1412 * dstread.c: Makefile obsolete.
1414 * config/m68k/hp300hpux.mt: Ditto.
1415 * config/m68k/hp300hpux.mh: Ditto.
1416 * config/m68k/hp300bsd.mt: Ditto.
1417 * config/m68k/hp300bsd.mh: Ditto.
1418 * config/m68k/apollo68b.mt: Ditto.
1419 * config/m68k/apollo68v.mh: Ditto.
1420 * config/m68k/apollo68b.mh: Ditto.
1422 2002-08-20 Michael Snyder <msnyder@redhat.com>
1424 * mips-tdep.c (mips_in_return_stub): Make static.
1425 (mips_gdbarch_init): Set in_solib_return_trampoline.
1426 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1428 2002-08-20 Michael Snyder <msnyder@redhat.com>
1430 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1431 * gdbarch.c, gdbarch.h: Regenerate.
1432 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1434 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1436 2002-08-20 Michael Snyder <msnyder@redhat.com>
1438 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1439 (mips_gdbarch_init): Set skip_trampoline_code,
1440 in_solib_call_trampoline.
1441 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1442 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1444 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1446 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1448 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1449 vector type for ev registers.
1450 (e500_pseudo_register_read): New function.
1451 (e500_pseudo_register_write): New function.
1452 (e500_dwarf2_reg_to_regnum): New function.
1453 (PPC_UISA_NOFP_SPRS): New macro.
1454 (PPC_EV_REGS): New macro.
1455 (PPC_GPRS_PSEUDO_REGS): New macro.
1456 (registers_e500): New register set for e500.
1457 (variants): Add e500 variant.
1458 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1459 before setting architectural dependent variations. Initialize ev
1460 registers numbers. Add case for e500 architecture. Set the
1461 number of pseudo registers.
1463 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1465 * rs6000-tdep.c: Clean up comments.
1467 2002-08-20 Andrew Cagney <cagney@redhat.com>
1469 * h8300-tdep.c: Re-indent file.
1471 2002-08-20 Jim Blandy <jimb@redhat.com>
1473 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1476 2002-08-20 Keith Seitz <keiths@redhat.com>
1478 * breakpoints.c (watch_command_1): Use internal breakpoint
1479 when setting a watchpoint_scope breakpoint.
1481 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1483 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1484 (build_builtin_type_vec64i): Ditto.
1485 (build_builtin_type_vec128): Ditto.
1486 (build_builtin_type_vec128i): Ditto.
1488 2002-08-19 Michael Snyder <msnyder@redhat.com>
1490 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1491 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1492 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1493 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1494 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1495 CALL_DUMMY_ADDRESS): Delete.
1496 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1497 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1498 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1499 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1500 push_return_address.
1501 (mips_register_raw_size, mips_eabi_use_struct_convention,
1502 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1503 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1504 mips_init_extra_frame_info, mips_eabi_push_arguments,
1505 mips_n32n64_push_arguments, mips_push_return_address,
1506 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1507 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1509 2002-08-19 Michael Snyder <msnyder@redhat.com>
1511 * mips-tdep.c (mips_frame_num_args): New function.
1512 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1513 frame_saved_pc, frame_args_address, frame_locals_address,
1514 frame_num_args, and frame_args_skip.
1515 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1516 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1517 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1518 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1520 2002-08-20 Michael Snyder <msnyder@redhat.com>
1522 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1523 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1524 * mips-tdep.c (mips_store_struct_return): New function.
1525 (mips_extract_struct_value_address): New function.
1526 (mips_gdbarch_init): Set store_struct_return and
1527 extract_struct_value_address.
1529 2002-08-20 David Carlton <carlton@math.stanford.edu>
1531 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1532 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1533 (read_file_scope): Check that line_header is nonzero before
1534 decoding macro information.
1536 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1538 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1539 flag the general-purpose registers as floating-point on targets
1540 that don't support the floating-point registers.
1542 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1544 * rs6000-tdep.c (altivec_register_p): Delete.
1545 (rs6000_do_altivec_registers): Delete.
1546 (rs6000_altivec_registers_info): Delete.
1547 (rs6000_do_registers_info): Delete.
1548 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1549 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1551 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1553 * infcmd.c (do_registers_info): Print vector registers in hex
1555 (print_vector_info): Check that printing registers
1557 (print_float_info): Ditto.
1559 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1561 * mips-tdep.c (mips_gdbarch_init): Update.
1562 (mips_o32_extract_return_value): Rewrite.
1563 (mips_o32_store_return_value): Rewrite.
1564 (mips_o32_xfer_return_value): New function.
1565 (mips_xfer_register): Tweak debug print message. Allow for
1566 buf_offset when dumping the value transfered.
1568 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1570 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1571 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1572 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1573 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1574 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1576 2002-08-14 Michael Snyder <msnyder@redhat.com>
1578 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1580 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1582 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1584 (P): New macro to define a register as a pseudo register.
1585 (R, R4, R8, R16, FR32, R64, R0): Updated.
1586 (struct variant): Add new fields for number of pseudo registers
1587 and number of total registers.
1588 (tot_num_registers): New macro replacing....
1589 (num_registers): ...deleted macro.
1590 (num_registers): New function.
1591 (num_pseudo_registers): New function.
1592 (variants): Update all variants to intialize new fields correctly.
1593 Postpone initialization of number of pseudo regs and real regs.
1594 (init_variants): New function.
1595 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1598 2002-08-19 David Carlton <carlton@math.stanford.edu>
1600 * valops.c (search_struct_field): Change error message to treat
1601 return value of 0 from value_static_field as meaning that field is
1603 (value_struct_elt_for_reference): Ditto.
1604 * values.c (value_static_field): Treat an unresolved location the
1605 same as a nonexistent symbol. Fix PR gdb/635.
1606 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1607 enclosed. Fix PR gdb/574.
1608 * MAINTAINERS: Add self to Write After Approval list.
1610 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1612 * mips-tdep.c (mips_xfer_register): New function.
1613 (mips_n32n64_extract_return_value): Rewrite.
1614 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1615 instead of deprecated_extract_return_value.
1617 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1619 * rs6000-tdep.c (TDEP): Delete macro.
1620 (branch_dest): Replace use of TDEP macro with its body.
1621 (rs6000_pop_frame): Ditto.
1622 (rs6000_push_arguments): Ditto.
1623 (rs6000_skip_trampoline_code): Ditto.
1624 (rs6000_frame_saved_pc): Ditto.
1625 (rs6000_frame_chain): Ditto.
1626 (rs6000_register_name): Ditto.
1627 (rs6000_register_byte): Ditto.
1628 (rs6000_register_raw_size): Ditto.
1629 (rs6000_register_virtual_type): Ditto.
1630 (rs6000_register_convertible): Ditto.
1631 (rs6000_convert_from_func_ptr_addr): Ditto.
1633 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1635 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1637 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1638 MIPS_LINUX_JB_ELEMENT_SIZE.
1639 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1640 for MAX_REGISTER_RAW_SIZE arrays.
1641 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1642 MIPS_LINUX_JB_ELEMENT_SIZE.
1644 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1646 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1648 2002-08-19 Aidan Skinner <aidan@velvet.net>
1650 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1651 ada-valprint.c ada-tasks.c.
1652 (YYFILES): Add ada-exp.y.
1653 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1654 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1655 (ada-exp.tab.o): New target.
1657 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1659 * regcache.c (regcache_xfer_part): New function.
1660 (regcache_raw_read_part): New function.
1661 (regcache_raw_write_part): New function.
1662 (regcache_cooked_read_part): New function.
1663 (regcache_cooked_write_part): New function.
1664 * regcache.h (regcache_raw_read_part): Declare.
1665 (regcache_raw_write_part): Declare.
1666 (regcache_cooked_read_part): Declare.
1667 (regcache_cooked_write_part): Declare.
1669 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1671 * remote.c (remote_open_1): Add async_p.
1672 (remote_async_open_1): Delete.
1673 (open_remote_target): Delete.
1674 (remote_open, extended_remote_open): Update calls to remote_open_1.
1675 (remote_async_open, extended_remote_async_open): Call
1676 remote_open_1 instead of remote_async_open_1.
1678 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1680 * blockframe.c: Fix a few coding standard violations.
1682 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1684 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1686 * config/i386/tm-i386sco5.h: ... here. File removed.
1687 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1689 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1690 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1691 (TM_FILE): Set to tm-i386.h.
1692 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1693 * config/i386/tm-i386v.h: Remove file.
1694 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1695 instead of "i386/tm-i386v.h".
1696 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1697 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1699 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1700 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1703 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1705 * config/i386/nm-i386v.h: Add protection against
1707 (i386_register_u_addr): Remove prototype.
1708 (register_u_addr): New prototype.
1709 (REGISTER_U_ADDR): Redefine accordingly.
1710 * i386v-nat.c: Improve several comments.
1711 (i386_register_u_addr): Change signature and rename to
1712 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1715 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1717 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1718 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1719 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1720 deprecated_extract_return_value.
1721 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1722 rename mips_o32o64_push_arguments.
1723 (mips_gdbarch_init): Update.
1724 (mips_extract_return_value): Delete.
1725 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1726 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1727 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1728 (mips_n32n64_extract_return_value): Clone
1729 mips_extract_return_value.
1730 (mips_store_return_value): Delete.
1731 (mips_o32_store_return_value): Clone mips_store_return_value.
1732 (mips_o64_store_return_value): Clone mips_store_return_value.
1733 (mips_eabi_store_return_value): Clone mips_store_return_value.
1734 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1736 2002-08-18 Aidan Skinner <aidan@velvet.net>
1738 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1739 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1741 2002-08-18 Aidan Skinner <aidan@velvet.net>
1743 * ada-lang.c: Run through gdb_indent.sh.
1744 * ada-lang.h: Run through gdb_indent.sh.
1745 * ada-tasks.c: Run through gdb_indent.sh.
1746 * ada-typeprint.c: Run through gdb_indent.sh.
1747 * ada-valprint.c: Run through gdb_indent.sh.
1749 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1751 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1754 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1756 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1758 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1759 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1761 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1762 write_register_gen instead of write_register_bytes.
1764 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1765 i[3456]-*-osf1mk* configurations have been made obsolete.
1766 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1767 i[3456]86-*-osf1mk* hosts obsolete.
1768 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1770 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1771 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1772 config/i386/i386m3.mt, config/i386/nm-m3.h,
1773 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1774 config/i386/i386mk.mh, config/i386/i386mk.mt,
1775 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1777 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1778 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1779 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1781 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1783 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1784 (hppa_value_returned_from_stack): Declare.
1785 (hppa_extract_return_value): Declare.
1786 * config/pa/hppa.mt: New file.
1787 * configure.tgt: Recognize hppa*-*-*.
1788 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1790 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1792 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1795 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1797 * top.c (gdb_rl_operate_and_get_next): Make sure
1798 operate-and-get-next functions correctly even when the history
1799 list is completely filled.
1801 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1803 * MAINTAINERS (Target Instruction Set Architectures): Rename
1804 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1805 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1806 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1807 already listed under Host/Native.
1809 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1810 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1813 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1815 * config/ia64/ia64.mt: New file.
1816 * config/alpha/alpha.mt: New file.
1817 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1818 ia64-linux-gnu. Mention that ia64-elf is broken.
1819 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1821 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1823 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1824 generic_func_frame_valid instead of func_frame_valid.
1826 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1828 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1829 procfs appears to be broken when debugging on multi-processor
1830 machines. So enable software single stepping in order to avoid
1831 using the procfs interface to do next/step operations, using
1832 internal breakpoints instead.
1834 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1835 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1836 make this pc address equal to the value it would have if the
1837 system stepping capability was used. Also set a new flag used
1838 to ensure that we don't readjust the PC one more time later.
1840 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1841 address by DECR_PC_AFTER_BREAK when software single step is
1842 in use for this architecture, as this has already been taken
1843 care of in handle_inferior_event().
1845 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1847 * infrun.c (handle_inferior_event): Minor reformatting, to make
1848 a rather long condition expression easier to read.
1850 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1852 * Makefile.in (gdbtk.o): Move to end of file.
1853 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1854 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1855 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1856 (gdbtk-wrapper.o, gdbres.o): Ditto.
1858 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1860 * Makefile.in (copying.o): Separate out compile rule.
1861 (hpux-thread.o, procfs.o, signals.o): Ditto.
1862 (v850ice.o, z8k-tdep.o): Ditto.
1863 (tui-file.o): Move to TUI section.
1864 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1865 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1867 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1869 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1870 skip_trampoline_code, for better namespace-proofing.
1872 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1874 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1876 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1878 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1880 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1881 signal, check whether we hit a breakpoint before checking for a
1882 single step breakpoint. Otherwise, GDB fails to notice that a
1883 breakpoint has been hit when stepping onto a breakpoint.
1885 2002-08-16 Keith Seitz <keiths@redhat.com>
1887 * gdb-events.sh (clear_gdb_event_hooks): New function.
1888 * gdb-events.c: Regenerate.
1889 * gdb-events.h: Regenerate.
1891 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1893 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1894 not_a_sw_breakpoint.
1895 * breakpoint.h (bpstat_stop_status): Add parameter names.
1897 2002-08-16 Grace Sainsbury <graces@redhat.com>
1899 * remote.c (remote_insert_hw_breakpoint)
1900 (remote_remove_hw_breakpoint): Fix calculation of length field
1903 2002-08-15 Michael Snyder <msnyder@redhat.com>
1905 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1906 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1907 (supply_fpregset): Ditto.
1909 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1910 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1911 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1912 (TARGET_READ_SP): Delete.
1913 (DO_REGISTERS_INFO): Delete.
1914 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1916 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1917 from macros to functions.
1919 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1920 (mips_register_convertible, mips_register_convert_to_virtual,
1921 mips_register_convert_to_raw): Make static.
1922 (mips_read_sp): New function.
1923 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1924 (mips_do_registers_info): Make static.
1925 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1926 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1927 (mips_register_convert_from_type, mips_register_convert_to_type):
1929 (mips_gdbarch_init): Set up function_start_offset,
1930 register_virtual_size, pc_in_sigtramp.
1932 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1934 * infcmd.c (vector_info): New function.
1935 (_initialize_infcmd): Add command "info vector".
1936 (print_vector_info): New function.
1938 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1939 * gdbarch.h, gdbarch.c: Regenerate.
1941 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1943 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1944 ``print_all''. Only print vector registers when ``print_all''.
1946 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1948 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1949 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1951 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1952 Add `args' parameter.
1953 * gdbarch.h, gdbarch.c: Regenerate.
1955 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1957 * infcmd.c (float_info): Call print_float_info.
1958 (print_float_info): New function. By default, print the
1959 floating-point registers.
1961 * arch-utils.h (default_print_float_info): Delete declaration.
1962 * arch-utils.c (default_print_float_info): Delete function.
1964 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1966 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1969 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1972 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1973 * configure.host: Make i[3456]86-*-aix host obsolete.
1974 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1975 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1976 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1977 config/i386/xm-i386aix.h: Make files obsolete.
1978 * i386aix-nat.c: Make file obsolete.
1979 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1980 (i386aix-nat.o): Make target obsolete.
1982 * config/i386/nm-gnu.h: Removed.
1983 * config/i386/nm-i386gnu.h: New file.
1984 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1985 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1987 * config/i386/tm-i386gnu.h: ... here. Removed.
1988 * config/i386/xm-i386gnu.h: Removed.
1989 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1990 (NAT_FILE): Set to nm-i386gnu.h.
1991 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1992 * i386-tdep.c: New file.
1993 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1994 (i386gnu-tdep.o): Specify dependencies.
1996 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1998 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1999 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2000 Adjust a few comments to reflect reality a bit closer.
2001 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2002 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2003 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2004 target_insert_watchpoint, target_remove_watchpoint):
2006 * config/i386/nm-i386sco5.h: ... here.
2007 (kernel_u_size): Add prototype. Improve a few comments and add
2008 protection against multiple inclusion.
2010 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2013 * uw-thread.c (SP_ARG0): Define if not already defined.
2014 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2016 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2018 * config/i386/tm-i386.h: Don't include "regcache.h".
2020 * i387-tdep.h (i387_print_float_info): New prototype.
2021 * i387-tdep.c (print_i387_value, print_i387_ext,
2022 print_i387_status_word, print_i387_control_word): Add `struct
2023 ui_file *' argument and use it for output.
2024 (i387_print_float_info): Renamed from i387_float_info. Add
2025 `struct gdbarch *' and `struct ui_file *' arguments and use the
2027 * i386-tdep.c: Include "i387-tdep.h".
2028 (i386_gdbarch_init): Set print_float_info.
2029 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2030 (FLOAT_INFO): Remove define.
2032 2002-08-13 Michael Snyder <msnyder@redhat.com>
2034 * mips-tdep.c (mips_push_arguments): Rename to
2035 mips_eabi_push_arguments, and tune for EABI.
2036 (MIPS_REGS_HAVE_HOME_P): Delete.
2037 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2038 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2039 Delete references to mips_regs_have_home_p.
2041 2002-08-14 Keith Seitz <keiths@redhat.com>
2043 * Makefile.in (install-gdbtk): Create insight plugin directory.
2044 Install plugins.tcl file.
2046 2002-08-14 Keith Seitz <keiths@redhat.com>
2048 * configure.in: Move SUBDIRS to near top of the file so that
2049 --enable options may add things to it.
2050 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2051 * configure: Regenerate.
2053 2002-08-13 Michael Snyder <msnyder@redhat.com>
2055 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2056 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2057 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2059 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2061 * vax-tdep.c (vax_get_saved_register): Delete function.
2062 (vax_gdbarch_init): Update.
2063 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2064 (ns32k_gdbarch_init): Update.
2065 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2066 (alpha_gdbarch_init): Update.
2068 2002-08-13 Andrew Cagney <cagney@redhat.com>
2070 * regcache.c (init_regcache_descr): Overallocate the
2071 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2072 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2074 (set_register_cached): Add range checking assertions. Use
2077 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2079 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2080 numbers for MMX registers.
2082 2002-08-13 Andrew Cagney <cagney@redhat.com>
2084 * i386-tdep.c (i386_gdbarch_init): Use
2085 generic_unwind_get_saved_register.
2087 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2089 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2090 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2092 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2093 Delete. Add comment regarding this now-deleted target method.
2095 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2097 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2098 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2099 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2100 real PC and the page number (if it's within the memory bank window).
2101 (m68hc11_pseudo_register_write): Likewise when saving.
2102 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2103 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2104 (m68hc11_register_raw_size): And use 32-bit for it.
2105 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2106 16K memory bank is used by the prog; also use the virtual pc.
2108 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2110 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2111 (m68hc11_gdbarch_init): Install it in gdbarch.
2112 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2113 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2114 (MSYMBOL_SIZE): New for documentation.
2115 (insn_return_kind): Enum to specify how a function returns.
2116 (frame_extra_info): Cleanup and record the return mode.
2117 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2118 register in address computation.
2119 (m68hc11_get_return_insn): New to obtain the return instruction used
2121 (m68hc11_frame_init_saved_regs): Take into account the return
2122 instruction used by the function for far and interrupt functions.
2123 (m68hc11_init_extra_frame_info): Take into account page register.
2124 (m68hc11_frame_args_address): Adjust according to the return mode.
2125 (show_regs): Print page register only when it's used.
2127 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2129 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2130 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2131 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2133 (m68hc11_register_raw_size): Likewise.
2135 2002-08-13 Andrew Cagney <cagney@redhat.com>
2137 * i386-tdep.c (i386_register_name): Handle mmx registers.
2138 (mmx_regnum_p): New function.
2139 (i386_mmx_names): New array.
2140 (mmx_num_regs): New variable.
2141 (i386_pseudo_register_read): New function.
2142 (i386_pseudo_register_write): New function.
2143 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2145 * regcache.c (regcache_raw_read_unsigned): New function.
2146 (regcache_raw_read_signed): New function.
2147 * regcache.h (regcache_raw_read_unsigned): Declare.
2148 (regcache_raw_read_signed): Declare.
2150 2002-08-13 Andrew Cagney <cagney@redhat.com>
2152 * regcache.c (regcache_raw_read_as_address): Delete function.
2153 (regcache_cooked_read_signed): New function.
2154 (regcache_cooked_read_unsigned): New function.
2155 * regcache.h (regcache_cooked_read_signed): Declare.
2156 (regcache_cooked_read_unsigned): Declare.
2157 (regcache_raw_read_as_address): Delete declaration.
2159 * blockframe.c (generic_read_register_dummy): Use
2160 regcache_cooked_read_unsigned.
2161 * i386-tdep.c (i386_extract_struct_value_address): Use
2162 regcache_cooked_read_unsigned.
2164 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2167 double sizes according to ELF ABI flags.
2168 (gdbarch_tdep): Record elf_flags.
2170 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2172 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2173 (m6812_prolog): They can appear in 68HC12 function prologue.
2174 (m68hc11_frame_chain): Cleanup.
2176 2002-08-12 Andrew Cagney <cagney@redhat.com>
2178 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2180 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2181 (i386_linux_register_raw_size): Delete function.
2182 (i386_linux_init_abi): Update.
2183 * i386-tdep.c (i386_register_raw_size): Delete function.
2184 (i386_register_byte): Delete function.
2185 (i386_gdbarch_init): Update.
2186 (i386_register_size): Delete array.
2187 (i386_register_offset): Delete array.
2189 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2190 (REGISTER_RAW_SIZE): Delete macro.
2191 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2192 (REGISTER_BYTE): Delete macro.
2194 2002-08-11 Aidan Skinner <aidan@velvet.net>
2196 * ada-lang.c (ada_lookup_partial_symbol)
2197 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2198 prototype names so that grep ^func works properly.
2200 * ada-lang.c (ada_array_element_type)
2201 (ada_lookup_partial_symbol): Fix typos in parameter list.
2203 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2204 Fix prototype names so that grep ^func works properly.
2206 2002-08-10 Andrew Cagney <cagney@redhat.com>
2207 Elena Zannoni <ezannoni@redhat.com>
2208 Martin M. Hunt <hunt@redhat.com>
2210 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2211 (build_builtin_type_vec128i): Set the vector bit.
2212 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2213 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2214 (build_builtin_type_vec64): New function.
2215 (build_builtin_type_vec64i): New function.
2216 (build_gdbtypes): Initialize builtin_type_vec64 and
2217 builtin_type_vec64i.
2219 2002-08-09 Andrew Cagney <cagney@redhat.com>
2221 * regcache.c (regcache_dump): Compare the register offset
2223 * arch-utils.c (generic_register_byte): New function.
2224 * arch-utils.h (generic_register_byte): Declare.
2225 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2226 * gdbarch.h, gdbarch.c: Regenerate.
2228 2002-08-09 Andrew Cagney <cagney@redhat.com>
2230 * regcache.c: Include "gdbcmd.h"
2231 (_initialize_regcache): Add commands "maintenance print
2232 registers", "maintenance print raw-registers" and "maintenance
2233 print cooked-registers".
2234 (enum regcache_dump_what): Define.
2235 (dump_endian_bytes): New function.
2236 (regcache_dump): New function.
2237 (regcache_print): New function.
2238 (maintenance_print_registers): New function.
2239 (maintenance_print_raw_registers): New function.
2240 (maintenance_print_cooked_registers): New function.
2241 * Makefile.in (regcache.o): Update dependencies.
2243 2002-08-09 Michael Snyder <msnyder@redhat.com>
2245 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2246 (mips_push_arguments): Correct some comments. Use paddr_nz
2247 for printing addresses in debug output. Replace static
2248 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2249 (mips_n32n64_push_arguments): New function, cloned from
2250 mips_push_arguments and tuned for the n32/n64 ABI.
2251 (mips_push_register): Buffer needs dynamic allocation.
2252 (mips_print_register): Ditto.
2253 (do_gp_register_row): Ditto.
2254 (mips_store_return_value): Ditto.
2255 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2257 2002-08-09 Don Howard <dhoward@redhat.com>
2259 * memattr.c (mem_info_command): Print special case of upper bound
2260 as max CORE_ADDR + 1.
2262 2002-08-08 Michael Snyder <msnyder@redhat.com>
2264 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2265 returns structs by ref if they're too big to fit in two registers.
2267 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2269 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2271 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2272 mips_find_saved_regs().
2273 (mips_pop_frame): Likewise.
2275 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2277 * blockframe.c (frame_saved_regs_register_unwind): Revise
2278 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2281 2002-08-09 Grace Sainsbury <graces@redhat.com>
2283 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2284 T-packets; the 'a' is not taken as a register number.
2285 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2286 (remote_stopped_data_address): New functions; add to target
2288 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2289 prototypes to match other implementations of this
2290 function. replace integer argument with pointer -- the length
2291 field in the Z-packet is the length of what is pointed to or 1 if
2292 pointer is null. Add to target vector.
2293 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2297 * remote.c (remote_wait): Add support to extract optional
2298 watchpoint information from T-packet. Ignore unrecognized
2299 optional info in T-packet.
2300 (remote_async_wait): Ditto.
2302 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2304 * cli/cli-dump.c: Change fopen modes to use binary open modes
2305 as defined in include/fopen-bin.h throughout.
2307 2002-08-08 Michael Snyder <msnyder@redhat.com>
2309 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2311 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2313 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2314 assertion failure by returning early after a warning.
2316 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2318 * mips-tdep.c (mips_find_saved_regs): Make static.
2319 (mips_frame_init_saved_regs): New function.
2320 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2321 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2322 (mips_find_saved_regs): Delete declaration.
2324 2002-08-08 Grace Sainsbury <graces@redhat.com>
2326 * remote.c (remote_wait, remote_async_wait): Change
2327 thread_num from int to ULONGEST.
2328 (unpack_varlen_hex): Change result parameter from
2329 int * to ULONGEST *.
2331 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2333 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2334 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2336 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2338 2002-08-08 Andrew Cagney <cagney@redhat.com>
2340 * gcore.c (override_derive_stack_segment): Delete variable.
2341 (preempt_derive_stack_segment): Delete function.
2342 (derive_stack_segment): Delete function.
2343 (default_derive_stack_segment): Renamed to derive_stack_segment.
2344 (override_derive_heap_segment): Delete variable.
2345 (preempt_derive_heap_segment): Delete function.
2346 (derive_heap_segment): Delete function.
2347 (default_derive_heap_segment): Rename to derive_heap_segment.
2349 2002-08-06 Michael Snyder <msnyder@redhat.com>
2351 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2352 * mips-tdep.c (mips_EABI_use_struct_convention,
2353 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2354 New functions. (mips_use_struct_convention): Delete.
2355 (mips_gdbarch_init): set use_gdbarch_convention.
2357 2002-08-06 Michael Snyder <msnyder@redhat.com>
2359 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2360 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2361 mips_o32_reg_struct_has_addr): New functions.
2362 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2364 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2366 * regcache.c (pseudo_register): Delete function.
2367 (fetch_register): Delete function.
2368 (store_register): Delete function.
2369 (regcache_raw_read, legacy_read_register_gen): Use
2370 target_fetch_registers instead of fetch_register.
2371 (legacy_write_register_gen, regcache_raw_write): Use
2372 target_store_register instead of store_register.
2373 (write_register_bytes): Ditto.
2375 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2376 (STORE_PSEUDO_REGISTER): Delete.
2377 * gdbarch.h, gdbarch.c: Regenerate.
2379 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2381 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2382 write dump file binary.
2384 2002-08-05 Michael Snyder <msnyder@redhat.com>
2386 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2387 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2388 (mips_gdbarch_init): Set N32 target to be mips64.
2390 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2392 * frame.c (find_saved_register): Break out of loop once saved
2393 register address is found. Don't mention sparc in loop comment
2396 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2398 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2399 mips_default_saved_regsize to 8.
2401 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2403 * gcore.c: Do not include <sys/procfs.h>.
2404 * Makefile.in (gcore.o): Update dependencies.
2406 2002-08-06 Andrew Cagney <cagney@redhat.com>
2408 * configure.tgt: Make arc-*-* obsolete.
2409 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2410 * MAINTAINERS: Make arc-elf obsolete.
2411 * arc-tdep.c: Make file obsolete.
2412 * config/arc/arc.mt: Ditto.
2413 * config/arc/tm-arc.h: Ditto.
2415 2002-08-05 Theodore A. Roth <troth@verinet.com>
2417 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2419 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2421 * mcore-tdep.c (mcore_gdbarch_init): Use
2422 generic_unwind_get_saved_register instead of
2423 generic_get_saved_register.
2424 * v850-tdep.c (v850_gdbarch_init): Ditto.
2425 * frv-tdep.c (frv_gdbarch_init): Ditto.
2426 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2427 * s390-tdep.c (s390_gdbarch_init): Ditto.
2428 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2429 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2430 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2432 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2434 * objfiles.h: Add missing #include "symfile.h"
2436 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2438 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2440 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2441 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2444 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2446 * NEWS: Cleanup and nitpick.
2448 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2450 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2452 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2454 * Makefile.in (gdbtk-bp.o): Update dependencies.
2455 (gdbtk-register.o): Ditto.
2456 (gdbtk-varobj.o): Ditto.
2458 2002-08-03 Andrew Cagney <cagney@redhat.com>
2460 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2461 m68hc11_fetch_pseudo_register.
2462 (m68hc11_pseudo_register_write): Replace
2463 m68hc11_store_pseudo_register.
2464 (m68hc11_gdbarch_init): Update.
2466 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2468 * gdbarch.sh: Include "gdb_string.h".
2469 * gdbarch.c: Regenerate.
2471 * regcache.c: Include "gdb_string.h".
2472 * ax-general.c: Ditto.
2474 * std-regs.c: Ditto.
2475 * fbsd-proc.c: Ditto.
2478 * Makefile.in (regcache.o): Update dependencies.
2479 (thread.o, gdbarch.o): Ditto.
2480 (ax-general.o, gdbarch.o): Ditto.
2481 (varobj.o, std-regs.o): Ditto.
2482 (fbsd-proc.o): Specify dependencies.
2484 2002-08-02 Andrew Cagney <cagney@redhat.com>
2486 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2488 (regcache_cooked_write): Ditto.
2490 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2492 * regcache.c (regcache_cooked_read): New function.
2493 (regcache_cooked_write): New function.
2494 (read_register_gen): Rewrite using regcache_cooked_read.
2495 (write_register_gen): Rewrite using regcache_cooked_write.
2497 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2500 2002-08-02 Andrew Cagney <cagney@redhat.com>
2502 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2503 Replace the architecture methods register_read and register_write.
2504 * gdbarch.h, gdbarch.c: Regenerate.
2505 * regcache.c (init_regcache_descr): Update.
2506 (read_register_gen): Update.
2507 (write_register_gen): Update.
2508 (supply_register): Update comment.
2510 * sh-tdep.c (sh_gdbarch_init): Update.
2511 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2512 `regcache' and `gdbarch' parameters. Make `buffer' a void
2513 pointer. Update code.
2514 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2515 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2516 void pointer. Update code.
2517 (sh64_register_write): Delete.
2518 (sh4_register_read): Delete.
2519 (sh64_register_read): Delete.
2520 (sh4_register_write): Delete.
2521 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2522 void pointer, `to' parameter a void pointer.
2523 (sh_sh64_register_convert_to_raw): Ditto.
2525 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2527 * mips-tdep.c (mips_register_virtual_type): Use architecture
2528 invariant return values.
2530 2002-08-01 Andrew Cagney <cagney@redhat.com>
2532 * linux-proc.c: Include "gdb_string.h".
2533 * Makefile.in (linux-proc.o): Update dependency list.
2535 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2537 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2540 2002-08-01 Grace Sainsbury <graces@redhat.com>
2542 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2543 to_insert_watchpoint, to_remove_watchpoint,
2544 to_stopped_by_watchpoint, to_stopped_data_address,
2545 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2546 target vecctor. Define their corresponding macros so they call
2549 * target.c: Add default and debug versions of for
2550 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2551 to_insert_watchpoint, to_remove_watchpoint,
2552 to_stopped_by_watchpoint, to_stopped_data_address,
2553 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2555 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2557 * mips-tdep.c (mips_register_virtual_type): New function.
2558 (mips_gdbarch_init): Register mips_register_virtual_type()
2559 with gdbarch machinery.
2560 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2561 this file instead of tm-bigmips.h.
2562 (MIPS_REGSIZE): Delete this macro.
2563 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2564 multiarch version in mips-tdep.c will be found.
2566 2002-08-01 Andrew Cagney <cagney@redhat.com>
2568 * NEWS: Menion that CHILL has been made obsolete.
2570 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2571 * stabsread.c (read_range_type): Ditto.
2572 * gdbtypes.h: Ditto.
2573 * language.c (binop_type_check): Ditto.
2574 (binop_result_type): Ditto.
2575 (integral_type): Ditto.
2576 (character_type): Ditto.
2577 (string_type): Ditto.
2578 (boolean_type): Ditto.
2579 (structured_type): Ditto.
2580 (lang_bool_type): Ditto.
2581 (binop_type_check): Ditto.
2582 * language.h (_LANG_chill): Ditto.
2583 * dwarfread.c (set_cu_language): Ditto.
2584 * dwarfread.c (CHILL_PRODUCER): Ditto.
2585 * dwarfread.c (handle_producer): Ditto.
2586 * expression.h (enum exp_opcode): Ditto.
2587 * eval.c: Ditto for comments.
2588 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2589 * expprint.c (print_subexp): Ditto.
2590 (print_subexp): Ditto.
2591 * valops.c (value_cast): Ditto.
2592 (search_struct_field): Ditto.
2593 * value.h (COERCE_VARYING_ARRAY): Ditto.
2594 * symfile.c (init_filename_language_table): Ditto.
2595 (add_psymbol_with_dem_name_to_list): Ditto.
2596 * valarith.c (value_binop): Ditto.
2598 * valops.c (value_slice): Ditto.
2599 * symtab.h (union language_specific): Ditto.
2600 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2601 (SYMBOL_DEMANGLED_NAME): Ditto.
2602 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2603 * defs.h (enum language): Ditto.
2604 * symtab.c (got_symtab): Ditto.
2605 * utils.c (fprintf_symbol_filtered): Ditto.
2607 * ch-typeprint.c: Make file obsolete.
2608 * ch-valprint.c: Make file obsolete.
2609 * ch-lang.h: Make file obsolete.
2610 * ch-exp.c: Make file obsolete.
2611 * ch-lang.c: Make file obsolete.
2613 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2615 (TARGET_FLAGS_TO_PASS): Ditto.
2616 (CHILLFLAGS): Obsolete.
2618 (CHILL_FOR_TARGET): Obsolete.
2619 (CHILL_LIB): Obsolete.
2620 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2622 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2623 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2625 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2628 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2630 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2631 This does not change anything at the moment, but will be helpful
2632 later when full Ada support is integrated.
2634 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2636 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2639 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2641 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2642 and save it in a local variable. Use variable in later test.
2644 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2646 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2647 test. (Thanks to Daniel Jacobowitz.)
2649 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2651 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2652 (mips_abi_strings): Add "n64".
2653 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2655 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2657 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2658 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2660 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2662 * utils.c (host_pointer_to_address, address_to_host_pointer):
2663 Use gdb_assert() instead of explicit call to internal_error().
2665 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2667 * Makefile.in (rs6000-nat.o): Update dependencies.
2669 From Nicholas Duffek:
2670 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2671 (aix-thread.o): New rule.
2672 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2673 * config/powerpc/aix432.mh: New file.
2675 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2677 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2678 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2679 (fetch_core_registers, ppc_linux_supply_gregset)
2680 (ppc_linux_supply_fpregset): New functions.
2681 (ppc_linux_regset_core_fns): New.
2682 (_initialize_ppc_linux_tdep): Call add_core_fns.
2683 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2684 and ppc_linux_supply_gregset.
2685 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2686 (supply_fpregset): Call ppc_linux_supply_fpregset.
2687 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2689 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2691 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2693 * symtab.c (lookup_symbol): Demangle before lowercasing.
2695 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2697 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2699 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2700 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2701 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2702 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2704 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2705 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2706 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2707 (avr-tdep.o, mon960-rom.o): Ditto.
2708 (aout_stabs_gnu_h): Define.
2709 (symtab_h): Remove $(gdb_obstack_h).
2711 2002-07-30 Jim Blandy <jimb@redhat.com>
2713 Patch from David Carlton <carlton@math.stanford.edu>:
2714 * gdbinit.in: Move the `dir' commands that add GDB's own source
2715 directory to the search path to the end, so that the `gdb' source
2716 directory will be searched first.
2718 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2720 * gdb_obstack.h: New file.
2721 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2722 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2723 * objfiles.h: Include "gdb_obstack.h".
2724 * Makefile.in (gdb_obstack_h): Define.
2725 (symtab_h): Add $(gdb_obstack_h).
2726 (objfiles_h): Add $(gdb_obstack_h).
2728 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2729 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2730 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2731 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2732 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2733 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2734 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2735 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2737 * Makefile.in (bcache.o): Update dependencies.
2738 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2739 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2740 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2741 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2742 (stabsread.o, symfile.o, symmisc.o): Ditto.
2743 (symtab.o, typeprint.o, macroexp.o): Ditto.
2744 (macrotab.o, mdebugread.o): Ditto.
2745 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2746 (coff_ecoff_h, aout_aout64_h): Define.
2747 (aout_stabs_gnu_h, libaout_h): Define.
2749 2002-07-29 Andrew Cagney <cagney@redhat.com>
2751 * regcache.c (struct regcache_descr): Rename nr_registers to
2752 nr_cooked_registers. Revise comments describing the structure
2754 (init_regcache_descr): Update.
2755 (init_legacy_regcache_descr): Update.
2756 (read_register_gen, write_register_gen): When a cooked register in
2757 the raw register range, directly access the value from the raw
2760 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2762 * z8k-tdep.c: Do not include "obstack.h".
2763 * h8300-tdep.c, h8500-tdep.c: Ditto.
2764 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2765 * valprint.c, v850-tdep.c: Ditto.
2766 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2767 * mn10200-tdep.c: Ditto.
2769 * Makefile.in (z8k-tdep.o): Update dependencies.
2770 (m68hc11-tdep.o, valprint.o): Ditto.
2771 (v850-tdep.o, d10v-tdep.o): Ditto.
2772 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2773 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2774 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2775 (sh_opc_h, gdb_sim_sh_h): Define.
2776 (elf_sh_h, elf_bfd_h): Define.
2777 (opcode_m68hc11_h): Define.
2778 (OPCODES_SRC, OPCODES_DIR): define.
2779 (OPCODES): Use $(OPCODES_DIR).
2780 (gdb_sim_d10v_h): Rename sim_d10v_h.
2781 (gdb_sim_arm_h): Rename sim_arm_h.
2783 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2785 * utils.c (host_pointer_to_address, address_to_host_pointer):
2786 Change internal_error() message to indicate function responsible
2789 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2791 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2792 calls to local_hex_string_custom().
2794 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2796 * irix5-nat.c: Move IRIX shared library support from here...
2797 * solib-irix.c: ...to here. Revised substantially to work with
2798 generic solib framework.
2800 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2801 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2802 * mips-irix-tdep.c: New file.
2804 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2805 (mips-irix-tdep.o, solib-irix.o): New rules.
2806 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2808 * config/mips/irix6.mt (TDEPFILES): Likewise.
2809 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2811 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2813 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2814 disabled (via ``#if 0'') includes.
2816 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2818 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2819 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2820 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2821 Add support for the fpscr register.
2822 * rs6000-nat.c (regmap, fetch_inferior_registers)
2823 (store_inferior_registers, fetch_core_registers): Likewise.
2825 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2827 * rs6000-nat.c (language.h): Include.
2828 (special_regs): Delete this array.
2829 (regmap): New function.
2830 (fetch_register, store_register): Use regmap() to map gdb
2831 register numbers to ptrace register numbers. Also, use
2832 outputs from regmap() to make decisions regarding type of
2833 ptrace() call to make. In particular, don't compare against
2834 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2835 (fetch_inferior_registers, store_inferior_registers): Where
2836 possible, obtain register numbers from tdep struct. Don't
2837 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2838 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2839 (LAST_UISA_SP_REGNUM): Delete.
2841 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2843 * rs6000-nat.c (ppc-tdep.h): Include.
2844 (fetch_registers, store_register, fetch_core_registers): Don't
2845 access registers[] directly. Instead, use supply_register() or
2846 regcache_collect() as appropriate.
2847 (find_toc_address): Format hex address with local_hex_string().
2849 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2851 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2854 2002-07-24 Tom Tromey <tromey@redhat.com>
2856 * jv-exp.y: Marked all strings with _().
2857 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2859 (MethodInvocation, CastExpression, parse_number, yyerror,
2860 java_type_from_name, push_expression_name, yylex): Typo fixes.
2862 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2864 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2865 (tee_file_flush, tee_file_write, tee_file_fputs)
2866 (tee_file_isatty): New.
2867 * ui-file.h (tee_file_new): Add prototype.
2869 2002-07-24 Aidan Skinner <aidan@velvet.net>
2871 * ada-lang.c: Change k&r style function definitions to prototyped
2873 * ada-typeprint.c: Change k&r style function definitions to prototyped
2875 * ada-valprint.c: Change k&r style function definitions to prototyped
2878 2002-07-24 Andrew Cagney <cagney@redhat.com>
2880 * README: Remove reference to remote-bug.
2881 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2883 (m88k-nat.o): Delete rule.
2884 (m88k-tdep.o): Delete rule.
2885 (remote-bug.o): Delete rule.
2886 * MAINTAINERS: Mark as obsolete.
2887 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2888 * m88k-tdep.c: Make file obsolete.
2889 * config/m88k/m88k.mh: Ditto.
2890 * config/m88k/delta88v4.mh: Ditto.
2891 * config/m88k/delta88v4.mt: Ditto.
2892 * config/m88k/delta88.mt: Ditto.
2893 * config/m88k/delta88.mh: Ditto.
2894 * remote-bug.c: Ditto.
2895 * config/m88k/tm-delta88.h: Ditto.
2896 * config/m88k/nm-delta88v4.h: Ditto.
2897 * config/m88k/xm-delta88.h: Ditto.
2898 * config/m88k/xm-dgux.h: Ditto.
2899 * config/m88k/tm-m88k.h: Ditto.
2900 * config/m88k/nm-m88k.h: Ditto.
2901 * config/m88k/tm-delta88v4.h: Ditto.
2902 * m88k-nat.c: Ditto.
2903 * cxux-nat.c: Ditto.
2904 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2905 and m88*-*-* obsolete.
2906 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2909 2002-07-24 Andrew Cagney <cagney@redhat.com>
2911 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2912 constant. Same for local pointer variables.
2913 (extract_signed_integer): Ditto.
2914 * defs.h (extract_unsigned_integer): Update.
2915 (extract_signed_integer): Update.
2917 2002-07-24 Andrew Cagney <cagney@redhat.com>
2919 * regcache.c (regcache_raw_write): Change buf parameter to a
2920 constant void pointer.
2921 (regcache_raw_read): Change buf parameter to a void pointer.
2922 (legacy_write_register_gen): Change myaddr parameter a constant
2924 (supply_register): Change val parameter to a const void pointer.
2925 * regcache.h (regcache_raw_write): Update declaration.
2926 (regcache_raw_read): Update declaration.
2927 (supply_register): Update declaration.
2929 2002-07-24 Tom Tromey <tromey@redhat.com>
2931 * defs.h (gdb_readline_wrapper): Declare.
2932 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2933 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2934 * top.c (gdb_readline_wrapper): New function.
2935 (command_line_input): Use it.
2937 2002-07-24 Andrew Cagney <cagney@redhat.com>
2939 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2940 regcache_read and regcache_write.
2941 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2942 * regcache.c: Update.
2943 * sh-tdep.c (sh64_push_arguments): Update comment.
2944 (sh_pseudo_register_read): Update.
2945 (sh_pseudo_register_write): Update.
2946 (sh4_register_read): Update.
2947 (sh4_register_write): Update.
2948 (sh64_pseudo_register_read): Update.
2949 (sh64_pseudo_register_write): Update.
2950 (sh64_register_read): Update.
2951 (sh64_register_write): Update.
2952 * i386-tdep.c (i386_extract_return_value): Update.
2953 (i386_extract_struct_value_address): Update.
2954 (i386_extract_return_value): Update.
2955 * blockframe.c (generic_read_register_dummy): Update.
2956 (generic_call_dummy_register_unwind): Update
2957 * infrun.c (write_inferior_status_register): Update.
2959 2002-07-23 Jim Blandy <jimb@redhat.com>
2961 * parser-defs.h (expression_context_pc): Make this extern.
2962 (Thanks to Michael Snyder.)
2964 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2966 GDB 5.2.1 released from 5.2 branch.
2967 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2968 * README: Update to mention 5.2.1.
2970 2002-07-23 Mark Salter <msalter@redhat.com>
2972 * remote.c (remote_read_bytes): Fix check for error.
2974 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2976 * aix-thread.c (language.h): Include.
2977 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2978 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2979 Print newlines at end of debug messages.
2980 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2981 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2983 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2985 * aix-thread.c (ppc-tdep.h): Include.
2986 (special_register_p): New function.
2987 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2988 (store_regs_user_thread): Use register number information from
2989 gdbarch_tdep struct instead of hardcoded offsets relative to
2990 FIRST_UISA_SP_REGNUM.
2991 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2992 special_register_p() instead of using FPLAST_REGNUM and
2993 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2994 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2995 will be MQ's register number.
2997 2002-07-22 Michael Snyder <msnyder@redhat.com>
2999 * aix-thread.c (ops): Rename to aix_thread_ops.
3000 (base_ops): Rename to base_target.
3001 (ops_attach): Rename to aix_thread_attach.
3002 (ops_detach): Rename to aix_thread_detach.
3003 (ops_resume): Rename to aix_thread_detach.
3004 (ops_wait): Rename to aix_thread_wait.
3005 (ops_kill): Rename to aix_thread_kill.
3006 (init_ops): Rename to init_aix_thread_ops.
3007 (ops_fetch_register): Rename to aix_thread_fetch_register.
3008 (ops_store_register): Rename to aix_thread_store_register.
3009 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3010 (ops_thread_alive): Rename to aix_thread_thread_alive.
3011 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3012 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3013 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3014 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3015 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3016 (store_regs_lib): Rename to store_regs_user_thread.
3017 (store_regs_kern): Rename to store_regs_kernel_thread.
3019 2002-07-22 Michael Snyder <msnyder@redhat.com>
3021 * aix-thread.c (ops_prepare_to_store): Eliminate.
3022 (init_ops): Don't initialize ops.prepare_to_store.
3023 (store_regs_kern): Pre-fetch register buffers from child,
3024 because some registers may not be in the cache. Copy
3025 regs from register cache only if they are cached.
3026 (store_regs_lib): Copy regs from register cache only
3028 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3029 fill_gprs64): Ditto.
3031 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3033 * aix-thread.c (gdb_assert.h): Include.
3034 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3035 register sizes (from register cache) match size of buffer holding
3037 (fill_sprs32): Change parameter types to match those in the ptrace()
3039 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3040 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3042 2002-07-22 Michael Snyder <msnyder@redhat.com>
3044 * aix-thread.c (supply_sprs64): Cosmetic change.
3045 (supply_sprs32): Cosmetic change.
3046 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3047 (fill_sprs64): Use regcache_collect instead of read_register.
3048 (store_regs_lib): Use regcache_collect instead of
3049 read_register. Use fill_sprs32 instead of fill_sprs64,
3050 if debugging a 32-bit architecture.
3051 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3052 out of the register cache, instead of passing a pointer into
3053 the register cache directly to ptrace. Use regcache_collect
3054 insteaad of read_register.
3055 (ops_prepare_to_store): Use target_read_registers instead
3056 of read_register_bytes.
3058 2002-07-20 Aidan Skinner <aidan@velvet.net>
3060 * MAINTAINERS: Add self under write after approval.
3062 2002-07-20 Aidan Skinner <aidan@velvet.net>
3064 * ada-tasks.c: Change k&r style function definitions to prototyped
3067 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3069 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3070 * x86-64-tdep.c: Include "objfiles.h".
3071 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3072 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3074 2002-07-17 Michal Ludvig <michal@suse.cz>
3076 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3077 (update_context): Initialise cfa variable.
3079 2002-07-17 Michael Snyder <msnyder@redhat.com>
3081 * aix-thread.c: Shorten some long lines.
3082 Bring comments into line with code spec.
3084 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3086 * infrun.c: Re-indent using gdb_indent.sh.
3088 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3090 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3091 Leave the indentation temporarily untouched, to minimize the diffs.
3093 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3095 * stabsread.c: Make os9k sections of the code obsolete,
3097 * stabsread.h: Make os9k sections of the code obsolete.
3099 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3101 * linux-low.c (regsets_store_inferior_registers): Add free()
3102 at the end of a loop to prevent memory leak.
3103 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3104 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3105 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3107 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3109 2002-07-17 Jim Blandy <jimb@redhat.com>
3111 * macrocmd.c (info_macro_command): Remove newline from error
3114 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3116 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3117 (sh_gdbarch_init): Use it for sh-dsp.
3119 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3121 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3122 64-bit DWARF2 format.
3124 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3126 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3127 <sys/proc.h> when not available.
3129 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3131 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3132 * stabsread.c: Make os9k sections of the code obsolete.
3133 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3134 * config/i386/i386os9k.mt: Make file obsolete.
3135 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3136 (COMMON_OBS): Remove os9kread.o
3137 (SFILES): Remove os9kread.c.
3138 (os9kread.o, remote-os9k.o): Make target obsolete.
3139 * remote-os9k.c: Make file obsolete.
3140 * os9kread.c: Make file obsolete.
3143 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3145 * NEWS: Mention that the FR30 has been made obsolete.
3146 * fr30-tdep.c: Make file obsolete.
3147 * config/fr30/tm-fr30.h: Ditto.
3148 * config/fr30/fr30.mt: Ditto.
3149 * configure.tgt: Make fr30-*-elf obsolete.
3150 * MAINTAINERS: Make fr30-elf obsolete.
3152 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3154 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3155 found is not inside a section.
3157 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3159 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3161 (pdc_realloc): Use xrealloc() instead of realloc().
3163 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3165 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3166 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3167 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3170 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3172 * aix-thread.c (ptrace_check): Eliminate goto.
3173 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3176 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3178 * aix-thread.c (gdbcmd.h): Include.
3179 (DEBUG, DBG, DBG2, dbg): Eliminate.
3180 (debug_aix_thread): New static global.
3181 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3182 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3183 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3184 invocations to DBG and DBG2 macros to test against
3185 ``debug_aix_thread'' and call fprintf_unfiltered().
3186 (_initialize_aix_thread): Add new command "set debug aix-thread".
3188 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3190 From Gerhard Tonn <TON@de.ibm.com>:
3191 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3192 instead of supply_register.
3194 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3196 * dwarf2cfi.c: Include "gdb_assert.h".
3197 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3199 (update_context): Do not use __func__. Add missing ``break''.
3200 (update_context): Do not use __func__.
3202 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3204 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3205 and its setting. Set gdbarch instruction printing functions
3206 directly. For non-rs6000 case use new function
3207 gdb_print_insn_powerpc.
3208 (gdb_print_insn_powerpc): New function.
3210 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3212 * NEWS: Mention that the d30v has been marked obsolete.
3213 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3214 * configure.tgt: Mark d30v-*-* as obsolete.
3215 * d30v-tdep.c: Mark file as obsolete.
3216 * config/d30v/d30v.mt: Ditto.
3217 * config/d30v/tm-d30v.h: Ditto.
3219 2002-07-13 Aidan Skinner <aidan@velvet.net>
3221 * ada-tasks.c (add_task_entry): replace calls to
3222 malloc() with xmalloc
3223 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3225 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3226 ada_finish_decode_line_1, all_sals_for_line
3227 ada_breakpoint_rewrite): replace calls to free() with xfree()
3229 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3231 From Nicholas Duffek (with minor changes by Martin Hunt,
3232 Louis Hamilton, and Kevin Buettner):
3233 * aix-thread.c: New file.
3235 2002-07-12 Petr Sorfa <petrs@caldera.com>
3237 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3238 complaint for invalid attribute class or form.
3239 (read_func_scope): DW_AT_frame_base
3240 better handling of DW_AT_block*.
3241 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3242 better handling of DW_AT_block*.
3243 (read_common_block): DW_AT_location
3244 better handling of DW_AT_block*.
3245 (read_partial_die): DW_AT_location better handling
3247 (new_symbol): DW_AT_external better handling of
3248 DW_AT_block*. Proper initialization of variable
3250 (attr_form_is_block): New function that returns true
3251 if the attribute's form is of DW_FORM_block*.
3253 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3255 * valops.c (find_method_list): Remove comment about
3256 removed STATIC_MEMFUNCP argument.
3257 (value_find_oload_method_list): Likewise.
3259 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3261 From Nicholas Duffek:
3262 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3263 target_new_objfile_hook.
3265 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3267 From Nicholas Duffek:
3268 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3271 2002-07-12 Andrew Cagney <cagney@redhat.com>
3273 * MAINTAINERS: Mention --enable-sim-build-warnings.
3274 (m68hc11-elf): Disable sim build warnings.
3275 (m32r-elf): Mark as broken obsolete candidate.
3276 (x86_64-linux-gnu): Mark as buildable with -Werror.
3277 (arm-elf): Change -w to ``,'' which enables warnings but not
3280 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3282 * bcache.h: Update copyright.
3283 (struct bstring, struct bcache): Move definition to "bcache.c".
3284 Replaced by opaque declaration.
3285 (bcache_xfree): Replace free_bcache.
3286 (bcache_xmalloc, bcache_memory_used): Declare.
3288 * bcache.c: Update copyright.
3289 (struct bstring, struct bcache): Moved to here from "bcache.h".
3291 (bcache_xmalloc, bcache_memory_used): New functions.
3292 (bcache_xfree): Replace function free_bcache.
3294 * Makefile.in (objfiles.o): Add $(bcache_h).
3295 (objfiles_h): Remove $(bcache_h).
3296 (symfile.o): Add $(bcache_h).
3298 * symmisc.c: Update copyright.
3299 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3300 (print_objfile_statistics): Use bcache_memory_used.
3302 * symfile.c: Include "bcache.h".
3303 (reread_symbols): Use bcache_xfree.
3304 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3305 (add_psymbol_to_list): Pass psymbol_cache by value.
3306 (add_psymbol_with_dem_name_to_list): Ditto.
3308 * objfiles.h: Update copyright.
3309 (struct bcache): Declare opaque. Do not include "bcache.h".
3310 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3312 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3314 * objfiles.c: Include "bcache.h". Update copyright.
3315 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3317 (free_objfile): Use bcache_xfree.
3319 2002-07-11 Grace Sainsbury <graces@redhat.com>
3321 * monitor.c (monitor_fetch_register): Make name a constant.
3322 (monitor_store_register): Same.
3324 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3326 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3327 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3328 (finish_block) For non-function blocks, hash the symbol table. For
3329 function blocks, mark the symbol table as unhashed.
3330 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3331 (msymbol_hash_iw): Likewise.
3332 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3334 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3335 (lookup_minimal_symbol): Likewise for both.
3336 * symtab.h (struct block): Add `hashtable' flag. Comment the
3338 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3339 (ALL_BLOCK_SYMBOLS): Update.
3340 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3341 (struct symbol): Add `hash_next' pointer.
3342 * symtab.c (lookup_block_symbol): Search using the hash table when
3344 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3345 (search_symbols, find_addr_symbol): Likewise.
3347 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3348 (read_dst_symtab): Likewise.
3349 * jv-lang.c (get_java_class_symtab): Likewise.
3350 * mdebugread.c: Include "gdb_assert.h".
3351 (shrink_block): Assert that the block being modified is not hashed.
3352 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3353 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3355 (dump_symtab): Recognize hashed blocks.
3356 * printcmd.c (print_frame_args): Assert that function blocks do not
3357 have hashed symbol tables.
3358 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3359 (fill_in_ada_prototype, debug_print_block): Likewise.
3360 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3362 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3364 * stack.c (print_frame): Use result of frame_address_in_block()
3365 instead of fi->pc when evaluating symbols.
3366 (backtrace_command_1): Ditto.
3368 2002-07-11 Andrew Cagney <cagney@redhat.com>
3370 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3373 * arm-tdep.c (arm_register_name): Make return type constant.
3375 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3377 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3379 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3380 * s390-tdep.c (s390_fp_regnum): Ditto.
3381 (s390_read_fp): Ditto.
3382 (s390_pop_frame): Ditto.
3383 (_initialize_s390_tdep): Ditto.
3384 * remote.c (get_remote_state): Ditto.
3385 * procfs.c (mappingflags): Ditto.
3386 * memattr.c (_initialize_mem): Ditto.
3387 * mcore-tdep.c (mcore_pop_frame): Ditto.
3388 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3389 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3390 * language.c (set_case_str): Ditto.
3391 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3392 * frv-tdep.c (new_variant): Ditto.
3393 (frv_stopped_data_address): Ditto.
3394 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3395 (context_alloc): Ditto.
3396 (frame_state_alloc): Ditto.
3397 (unwind_tmp_obstack_init): Ditto.
3398 (unwind_tmp_obstack_free): Ditto.
3399 (cfi_read_fp): Ditto.
3400 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3401 (cris_pop_frame): Ditto.
3402 * c-lang.c (scanning_macro_expansion): Ditto.
3403 (finished_macro_expansion): Ditto.
3404 (c_preprocess_and_parse): Ditto.
3405 * gdbarch.sh: Ditto.
3406 * gdbarch.h, gdbarch.c: Regenerate.
3407 * config/mn10200/tm-mn10200.h: Adjust indentation.
3408 * target.c: Adjust indentation.
3409 * symtab.h: Adjust indentation.
3410 * stabsread.h: Adjust indentation.
3411 * remote-es.c: Adjust indentation.
3412 * os9kread.c: Adjust indentation.
3414 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3416 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3417 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3419 2002-07-10 Grace Sainsbury <graces@redhat.com>
3421 * NEWS: Mention m68k, mcore multi-arching.
3422 * MAINTAINERS: Change status of m68k, mcore to reflect
3425 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3427 * valops.c (find_overload_match): Free oload_syms.
3429 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3431 Define HAVE_SYS_PROC_H if sys/proc.h exists
3432 * configure.in: Add check for sys/proc.h
3433 * config.in: Regenerate.
3434 * configure: Regenerate.
3436 2002-07-09 Grace Sainsbury <graces@redhat.com>
3438 * config/m68k/tm-m68k.h: Remove macros wrapped in
3439 #if !GDB_MULTI_ARCH.
3441 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3443 * config.in, configure: Regenerate.
3445 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3447 * dwarf2cfi.c: Include "gcore.h".
3448 (execute_stack_op): Fix implementation of the
3449 DW_OP_deref and DW_OP_deref_size operators by letting do their
3450 lookup in the target.
3452 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3454 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3455 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3458 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3460 Fix PR gdb/595, gdb/602
3461 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3462 Don't call value_cast, just read the vtable pointer; update comments
3465 2002-07-05 Grace Sainsbury <graces@redhat.com>
3467 * config/mcore/tm-mcore.h: Remove file.
3468 * config/mcore/mcore.mt: Remove definition of TM_FILE
3469 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3471 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3473 * i386bsd-tdep.c: Include "gdb_string.h".
3475 2002-07-04 Grace Sainsbury <graces@redhat.com>
3477 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3478 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3480 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3481 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3482 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3483 (RETVAL_REGNUM): Move macros from tm-mcore.h
3484 (mcore_reg_struct_has_addr): New function.
3485 (mcore_gdbarch_init): Added initializations for the macros removed
3488 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3490 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3491 traditonal string branding within the ELF header.
3493 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3495 * symtab.c (remove_params): New function.
3496 (make_symbol_overload_list): Use it instead of cplus_demangle.
3497 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3499 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3501 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3503 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3505 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3506 and tdep->sigtramp_end.
3507 * i386obsd-nat.c: New file.
3508 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3510 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3511 Don't call get_current_frame().
3513 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3515 * i386-nat.c (child_post_startup_inferior): New function
3516 calling i386_cleanup_dregs if
3517 I386_USE_GENERIC_WATCHPOINTS is defined.
3518 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3519 conditional to acknowledge that i386-nat.c has its
3520 own child_post_startup_inferior function.
3522 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3524 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3525 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3526 instead of MAX_REGISTER_RAW_SIZE.
3527 (i386_extract_return_value, i386_extract_struct_value_address):
3528 Convert to use regcache.
3529 (i386_gdbarch_init): Set max_register_raw_size and
3530 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3531 Set extract_return_value and extract_struct_value_address instead
3532 of their deprecated variants.
3534 Convert i386 target to generic dummy frames.
3535 * i386-tdep.c: Include "symfile.h".
3536 (i386_frameless_signal_p): Consider a function to be frameless if
3537 the pc points at the first instruction of the function.
3538 (i386_frame_chain): Handle (generic) call dummies.
3539 (i386_frame_saved_pc): Likewise.
3540 (i386_frame_init_saved_regs): Remove code dealing with call
3541 dummies on the stack.
3542 (i386_push_dummy_frame): Removed.
3543 (i386_call_dummy_words): Removed.
3544 (i386_fix_call_dummy): Removed.
3545 (i386_push_return_address): New function.
3546 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3547 parameter, and don't call get_current_frame.
3548 (i386_pop_frame): New function.
3549 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3550 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3551 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3552 call_dummy_length to 0, set call_dummy_words to NULL, set
3553 sizeof_call_dummy_words to 0, set fix_call_dummy to
3554 generic_fix_call_dummy, set pc_in_call_dummy to
3555 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3556 generic_push_dummy_frame, set push_return_address to
3557 i386_push_return_address and set frame_chain_valid to
3558 generic_file_frame_chain_valid.
3560 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3562 * gdbarch.sh (struct regcache): Add opaque declaration.
3563 (EXTRACT_RETURN_VALUE): New architecture method.
3564 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3565 * gdbarch.h, gdbarch.c: Regenerate.
3566 * arch-utils.c (legacy_extract_return_value): New function.
3567 * arch-utils.h (legacy_extract_return_value): Declare.
3568 * values.c (value_being_returned): Re-enable code handling
3569 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3570 deprecated_grub_regcache_for_registers call to block handling
3571 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3572 (EXTRACT_RETURN_VALUE): Do not define.
3574 2002-07-03 Grace Sainsbury <graces@redhat.com>
3576 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3577 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3578 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3579 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3580 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3581 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3582 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3583 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3584 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3585 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3586 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3587 argument so the function fits the prototype in the architecture
3589 (mcore_pop_frame): Remove argument so the function fits the
3590 prototype. Use get_current_frame instead of the argument.
3591 (mcore_push_arguments): Change type of struct_return so the
3592 function can be used in the architecture vector.
3593 (mcore_store_struct_return): Add.
3594 (mcore_frame_init_saved_regs): Add.
3595 (mcore_gdbarch_init): Add function calls to replace the macros
3596 removed from tm-mcore.h
3598 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3600 * infcmd.c (print_return_value): Remove compatibility code calling
3601 deprecated_grub_regcache_for_registers.
3603 * values.c: Include "regcache.h".
3604 (value_being_returned): Update. Use
3605 deprecated_grub_regcache_for_registers to extract the register
3607 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3608 ``struct regcache''.
3609 * Makefile.in (values.o): Add dependency on $(regcache_h).
3611 * inferior.h (run_stack_dummy): Change type of second parameter to
3612 a ``struct regcache''.
3613 * valops.c (hand_function_call): Change type of retbuf to ``struct
3614 regcache''. Allocate using regcache_xmalloc, clean using
3615 make_cleanup_regcache_xfree.
3616 * infcmd.c (run_stack_dummy): Update. Use
3617 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3619 * regcache.c (do_regcache_xfree): New function.
3620 (make_cleanup_regcache_xfree): New function.
3621 * regcache.h (make_cleanup_regcache_xfree): Declare.
3623 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3625 * event-top.c (command_line_handler): Don't read past
3626 beginning of buffer.
3628 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3630 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3632 (varobj_create): Store frame_id for root.
3633 (varobj_gen_name): Use xasprintf.
3634 (varobj_update): Save and restore frame using get_frame_id() and
3636 (create_child): Use xasprintf.
3637 (new_root_variable): Initialize frame_id.
3638 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3639 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3640 to prevent memory leak.
3642 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3644 * valops.c (hand_function_call): Move declaration of retbuf to
3645 start of function, allocate using malloc, add a cleanup but before
3646 the inf_status cleanup, cleanup the buffer. Rename local variable
3647 old_chain to inf_status_cleanup.
3649 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3651 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3653 * cli/cli-decode.c (cmd_func_p): New function.
3654 (cmd_func): New function.
3656 * command.h: Add cmd_func() and cmd_func_p().
3658 2002-07-03 Grace Sainsbury <graces@redhat.com>
3660 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3661 (REGISTER_SIZE): Remove.
3662 (MAX_REGISTER_RAW_SIZE): Remove.
3663 (REGISTER_VIRTUAL_TYPE): Remove.
3664 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3665 (REGISTER_NAME): Remove.
3666 (USE_GENERIC_DUMMY_FRAMES): Remove.
3667 (CALL_DUMMY): Remove.
3668 (CALL_DUMMY_START_OFFSET): Remove.
3669 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3670 (CALL_DUMMY_LOCATION): Remove.
3671 (FIX_CALL_DUMMY): Remove.
3672 (CALL_DUMMY_ADDRESS): Remove.
3673 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3674 (SAVE_DUMMY_FRAME_TOS): Remove.
3675 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3676 (mcore_register_virtual_type): New function.
3677 (mcore_register_byte): New function.
3678 (mcore_register_size): New function.
3679 (mcore_register_name): New function.
3680 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3681 macros removed from tm-mcore.h.
3682 (mcore_dump_tdep): Add.
3683 (_initialize_mcore_tdep): Add gdbarch_register call.
3685 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3687 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3688 frameless_look_for_prologue, such that we actually call this
3691 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3693 * frame.h (frame_address_in_block): New function.
3695 * blockframe.c (frame_address_in_block): New function extracted
3696 from get_frame_block().
3697 (get_frame_block): Use frame_address_in_block().
3698 (block_innermost_frame): Use frame_address_in_block() to match
3699 the frame pc address against the block boundaries rather than
3700 the frame pc directly. This prevents a failure when a frame pc
3701 is actually a return-address pointing immediately after the end
3704 2002-07-02 Grace Sainsbury <graces@redhat.com>
3706 * MAINTAINERS: Add self under write after approval.
3708 2002-07-02 Grace Sainsbury <graces@redhat.com>
3710 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3711 used in architecture vector. The default is
3712 m68k_local_breakpoint_from_pc.
3713 (m68k_local_breakpoint_from_pc): Add.
3714 (enum): Add register numbers from tm-m68k.h.
3715 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3717 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3718 GDB_MULTI_ARCH_PARTIAL.
3719 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3720 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3722 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3723 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3724 to enum in m68k-tdep.c
3726 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3728 * solib-osf.c (open_map): Compute the list of shared libraries
3729 loaded by the inferior, rather than the list of libraries loaded
3730 by GDB itself. Otherwise, GDB ends up reading the symbols from
3731 the wrong shared libraries...
3733 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3735 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3736 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3738 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3740 (FRAMELESS_SIGNAL): Remove function.
3741 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3742 i386_linux_saved_pc_after_call): Removed.
3743 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3744 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3745 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3747 * i386-tdep.c (i386_frameless_signal_p): New function.
3748 (i386_frame_chain): Deal with frameless signals.
3749 (i386_sigtramp_saved_sp): New function.
3750 (i386_frame_saved_pc): Deal with frameless signals.
3751 (i386_saved_pc_after_call): Make sure the correct value is
3752 returned just after entry into a sigtramp.
3753 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3754 i386fbsd4_sc_sp_offset): New variables.
3755 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3756 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3757 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3758 similiar to what we already did for sc_pc_offset.
3759 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3762 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3764 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3766 * config/i386/tm-x86-64linux.h: New.
3767 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3769 * config/i386/nm-x86-64.h: Rename to ...
3770 * config/i386/nm-x86-64linux.h: ... this one.
3771 * config/i386/x86-64linux.mh: Reflect the above change.
3773 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3775 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3776 with sigcontext_addr. Add sc_sp_offset.
3777 (i386bsd_sigtramp_saved_pc): Remove prototype.
3778 (i386bsd_sicontext_addr): Add prototype.
3779 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3780 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3781 (i386_svr4_sigtramp_saved_pc): Removed.
3782 (i386_svr4_sigcontext_addr): New function.
3783 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3784 Initialize tdep->sigcontext_addr instead. Initialize
3785 tdep->sc_pc_offset and tdep->sc_sp_offset.
3786 (i386_gdbarch_init): Likewise.
3787 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3789 (i386bsd_sigtramp_saved_pc): Remove function.
3790 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3791 Initialize tdep->sigcontext_addr instead. Initialize
3793 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3794 of tdep->sigtramp_saved_pc.
3795 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3796 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3799 * i386-tdep.c (i386_frameless_function_invocation,
3800 i386_frame_num_args, i386_frame_init_saved_regs,
3801 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3802 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3803 i386_extract_return_value, i386_store_return_value,
3804 i386_extract_struct_value_address, i386_register_virtual_type,
3805 i386_register_convertible, i386_register_convert_to_virtual,
3806 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3807 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3810 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3812 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3814 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3815 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3816 this macro. Include "value.h".
3818 2002-06-30 Aidan Skinner <aidan@velvet.net>
3820 * ada-exp.tab.c: remove as it's a generated file
3821 * ada-lex.c: remove as it's a generated file
3823 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3825 * config/i386/tm-i386.h (struct frame_info, struct
3826 frame_saved_regs, struct value, struct type): Remove forward
3829 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3830 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3831 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3832 (FILL_FPXREGSET): Define.
3834 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3836 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3837 i[3456]86-*-netbsd* case.
3838 * config/i386/tm-obsd.h: Removed.
3839 * config/i386/obsd.mt: Removed.
3840 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3842 (MH_CFLAGS): Add -DYYDEBUG=0.
3844 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3845 i386nbsd_sc_pc_offset on OpenBSD too.
3847 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3848 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3849 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3851 * i386bsd-tdep.c: Include "arch-utils.h".
3852 (i386bsd_aout_in_solib_call_trampoline): New function.
3853 (i386bsd_init_abi): Set in_solib_call_trampoline to
3854 i386bsd_aout_in_solib_call_trampoline.
3855 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3856 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3858 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3860 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3861 (struct obstack, struct bcache): Add opaque declarations.
3862 * Makefile.in (macrotab_h): Update
3864 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3866 * blockframe.c (generic_find_dummy_frame): Change return type to
3867 ``struct regcache''.
3868 (struct dummy_frame): Replace field ``registers'' with regcache, a
3869 struct regcache object.
3870 (generic_find_dummy_frame): Update.
3871 (generic_push_dummy_frame): Update. Use regcache_xfree,
3872 regcache_xmalloc and regcache_cpy.
3873 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3875 (deprecated_generic_find_dummy_frame): Update.
3876 (generic_read_register_dummy): Update. Use
3877 regcache_read_as_address.
3878 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3879 (generic_get_saved_register): Update. Use regcache_read.
3881 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3883 * Makefile.in (objfiles_h): Add $(bcache_h).
3884 * objfiles.h: Include "bcache.h".
3886 * Makefile.in (symtab_h): Remove $(bcache_h).
3887 * symtab.h: Do not include "bcache.h".
3889 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3891 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3892 generic_func_frame_chain_valid.
3894 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3896 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3897 * config/i386/tm-fbsd.h: Likewise.
3899 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3901 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3902 generic_unwind_get_saved_register.
3904 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3906 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3907 * regcache.c (supply_register): Add missing argument to
3908 register_buffer call.
3910 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3912 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3913 Solaris /bin/grep does not not like it. From Peter Schauer.
3915 2002-06-26 Tom Tromey <tromey@redhat.com>
3917 * command.h (add_setshow_cmd): Declare.
3918 (add_setshow_cmd_full): Declare.
3919 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3920 returns void. Use add_setshow_cmd_full.
3921 (add_setshow_cmd_full): New function.
3922 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3923 (add_setshow_boolean_cmd): Likewise.
3925 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3927 * config/vax/tm-vax.h: Protect from multiple inclusion.
3928 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3929 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3930 * config/vax/tm-vaxbsd.h: ...here. New file.
3931 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3933 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3935 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3936 (BELIEVE_PCC_PROMOTION): Remove.
3937 (AP_REGNUM): Move to...
3938 * config/vax/nm-vax.h: ...here.
3939 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3940 (vax_breakpoint_from_pc): New function.
3941 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3942 and gdbarch_believe_pcc_promotion.
3944 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3946 * Makefile.in (vax_tdep_h): Define.
3947 (vax-tdep.o): Use $(vax_tdep_h).
3948 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3949 (vax_dump_tdep): New function.
3950 (_initialize_vax_tdep): Register vax_dump_tdep.
3951 * vax-tdep.h: Include osabi.h.
3952 (struct gdbarch_tdep): New.
3954 2002-06-26 Andrew Cagney <cagney@redhat.com>
3956 * frame.h (deprecated_generic_find_dummy_frame): Rename
3957 generic_find_dummy_frame.
3958 * blockframe.c (generic_find_dummy_frame): Make static.
3959 (deprecated_generic_find_dummy_frame): New function.
3960 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3961 generic_find_dummy_frame with deprecated_find_dummy_frame.
3962 (sh64_nofp_frame_init_saved_regs): Ditto.
3963 (sh_fp_frame_init_saved_regs): Ditto.
3964 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3965 (s390_frame_chain): Ditto.
3966 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3968 2002-06-26 Grace Sainsbury <graces@redhat.com>
3970 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3971 gdbarch vector are at the top.
3973 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3974 (FRAME_ARGS_ADDRESS): Remove.
3975 (FRAME_LOCALS_ADDRESS): Remove.
3976 (FRAME_NUM_ARGS): Remove.
3977 (FRAME_ARGS_SKIP): Remove.
3978 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3979 (m68k_gdbarch_init): Add gdbarch initializations for macros
3980 undefined in tm-m68k.h
3982 2002-06-26 Grace Sainsbury <graces@redhat.com>
3984 * monitor.h: Add the function regname to monitor_ops
3985 structure. This way NUM_REGS does not have to be a constant.
3986 * monitor.c (monitor_fetch_register): Added support for regname
3987 function. The function is called if the array regnames is NULL.
3988 (monitor_store_register): Same.
3989 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3991 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3992 cpu32bug_cmds.regname to point to new function.
3993 * abug-rom.c (abug_regname): Same as above.
3994 (init_abug_cmds): Same.
3995 * dbug-rom.c (dbug_regname): Same as above.
3996 (init_dbug_cmds): Same.
3997 * remote-est.c (est_regname): Same.
3998 (init_est_cmds): Same.
3999 * rom68k-rom.c (rom68k_regname): Same.
4000 (init_rom68k_cmds): Same.
4002 2002-06-25 Tom Tromey <tromey@redhat.com>
4004 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4006 2002-06-25 Andrew Cagney <cagney@redhat.com>
4008 * infrun.c (stop_registers): Change variable's type to ``struct
4010 (xmalloc_inferior_status): Delete function.
4011 (free_inferior_status): Delete function.
4012 (normal_stop): Use regcache_cpy.
4013 (struct inferior_status): Change type of fields ``stop_registers''
4014 and ``registers'' to ``struct regcache''.
4015 (write_inferior_status_register): Use regcache_write.
4016 (save_inferior_status): Instead of calling
4017 xmalloc_inferior_status, allocate the inf_status buffer directly.
4018 Use regcache_dup_no_passthrough and regcache_dup to save the
4020 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4021 Replace the stop_registers regcache instead of overriding it. Use
4022 regcache_xfree. Instead of calling free_inferior_status, xfree
4023 the buffer directly.
4024 (discard_inferior_status): Use regcache_xfree. Instead of calling
4025 free_inferior_status, xfree the buffer directly.
4026 (build_infrun): Use regcache_xmalloc.
4027 (_initialize_infrun): Delete redundant call to build_infrun.
4029 * Makefile.in (infcmd.o): Add $(regcache_h).
4031 * infcmd.c: Include "regcache.h".
4032 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4033 obtain the address of `stop_registers' register buffer.
4034 (print_return_value): Ditto.
4036 * inferior.h (struct regcache): Add opaque declaration.
4037 (stop_registers): Change variable's declared type to ``struct
4040 2002-06-24 Tom Tromey <tromey@redhat.com>
4042 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4043 * target.c (initialize_targets): Fixed typo in
4044 trust-readonly-sections `show' documentation.
4046 * main.c: Marked all strings with _().
4048 2002-06-24 Don Howard <dhoward@redhat.com>
4050 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4051 that means max CORE_ADDR+1.
4052 (lookup_mem_region): Ditto.
4053 (mem_info_command): Ditto.
4055 2002-06-24 Grace Sainsbury <graces@redhat.com>
4057 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4058 (REGISTER_BYTES_OK): Remove.
4059 (REGISTER_BYTES): Remove.
4060 (STORE_STRUCT_RETURN): Remove.
4061 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4062 (STORE_RETURN_VALUE): Remove.
4063 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4064 (FRAME_CHAIN): Remove.
4065 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4066 (FRAME_SAVED_PC): Remove.
4067 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4068 (m68k_store_struct_return): Add.
4069 (m68k_deprecated_extract_return_value): Add.
4070 (m68k_deprecated_extract_struct_value_address): Add.
4071 (m68k_store_return_value): Add.
4072 (m68k_frame_chain): Add.
4073 (m68k_frameless_function_invocation): Add.
4074 (m68k_frame_saved_pc): Add.
4075 (m68k_gdbarch_init): added set_gdbarch calls for new
4076 functions and deleted macros.
4078 2002-06-23 Tom Tromey <tromey@redhat.com>
4080 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4081 (ALLDEPFILES): Likewise.
4082 (udiheaders): Removed.
4083 (udip2soc.o): Likewise.
4084 (udi2go32.o): Likewise.
4086 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4088 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4090 * infrun.c (_initialize_infrun): Delete unnecessary call to
4093 * regcache.h: Update comments describing the regcache_cpy family
4095 (regcache_save, regcache_restore): Delete declaration.
4096 (regcache_save_no_passthrough): Delete declaration.
4097 (regcache_restore_no_passthrough): Delete declaration.
4098 * regcache.c (regcache_save): Delete function.
4099 (regcache_save_no_passthrough): Delete function.
4100 (regcache_restore): Delete function.
4101 (regcache_restore_no_passthrough): Delete function.
4103 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4105 * config/m68k/tm-m68k.h: Fix typo.
4106 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4107 (m68k_frame_init_saved_regs): Declare.
4109 2002-06-21 Jim Blandy <jimb@redhat.com>
4111 Remove some vestiges of Harris 88k support.
4112 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4113 register numbering quirk.
4114 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4115 odd symbols occurring in Harris 88k ELF targets.
4117 2002-06-21 Tom Tromey <tromey@redhat.com>
4119 * gdb_locale.h: New file.
4120 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4121 (defs_h): Added gdb_locale.h.
4122 * configure, config.in: Rebuilt.
4123 * configure.in (PACKAGE): Define.
4124 * defs.h: Include gdb_locale.h.
4125 * main.c (captured_main): Call setlocale, bindtextdomain,
4128 2002-06-21 Dave Brolley <brolley@redhat.com>
4130 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4131 * config/frv/frv.mt: New file.
4132 * config/frv/tm-frv.h: New file.
4133 * configure.tgt: Support frv-*-*.
4134 * Makefile.in (frv-tdep.o): New target.
4135 * frv-tdep.c: New file.
4136 * NEWS: Mention frv.
4138 2002-06-21 Dave Brolley <brolley@redhat.com>
4140 * MAINTAINERS: Add self to "Write After Approval" list.
4142 2002-06-21 Grace Sainsbury <graces@redhat.com>
4144 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4145 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4146 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4147 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4148 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4150 * m68k-tdep.c: Include arch-utils.h
4151 (m68k_register_raw_size): Add.
4152 (m68k_register_virtual_size): Add.
4153 (m68k_register_virtual_type): Add.
4154 (m68k_register_name): Add.
4155 (m68k_stack_align): Add.
4156 (m68k_register_byte): Add.
4157 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4160 2002-06-21 Grace Sainsbury <graces@redhat.com>
4162 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4163 m68k_find_saved_regs.
4164 (m68k_pop_frame): Removed saved_regs structure, and replaced
4165 references to it with frame->saved_regs.
4166 (m68k_gdbarch_init): Added function calls to initialize the
4168 (m68k_fix_call_dummy): Add.
4169 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4170 (CALL_DUMMY): Remove.
4171 (CALL_DUMMY_LENGTH): Remove.
4172 (CALL_DUMMY_START_OFFSET): Remove.
4173 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4174 (FIX_CALL_DUMMY): Remove.
4175 (PUSH_DUMMY_FRAME): Remove.
4176 (POP_FRAME): Remove.
4178 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4180 * parse.c (parse_fprintf): New function used to avoid calls to
4181 fprintf in bison parser generated debug code.
4182 * parser-defs.h: Declaration of new parse_fprintf function.
4183 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4184 Set YYDEBUG to 1 by default.
4185 Set YYFPRINTF as parse_fprintf.
4187 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4189 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4191 (pointer_encoding, enum ptr_encoding): New.
4192 (execute_cfa_program): Take care about pointer encoding.
4193 (dwarf2_build_frame_info): Only call parse_frame_info for
4194 .debug_frame and .eh_frame.
4195 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4196 fixed augmentation handling, added relative addressing,
4197 ignore duplicate FDEs. Added comments.
4198 * dwarf2cfi.c: Reindented.
4200 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4202 * event-top.c (command_handler): Don't use space_at_cmd_start
4203 unless there is sbrk() on the host. Assign time and space data
4204 to union fields of the appropriate length.
4206 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4208 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4209 x86_64_register_name. Return type changed to 'const char *'.
4210 (x86_64_register_name2nr): Rename to x86_64_register_number.
4211 (x86_64_gdbarch_init): Update to reflect the change.
4212 * x86-64-tdep.h: Ditto.
4213 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4214 (supply_fpregset): Ditto.
4216 2002-06-19 Andrew Cagney <cagney@redhat.com>
4218 * regcache.h: Update copyright.
4219 (struct regcache, struct gdbarch): Add opaque declarations.
4220 (current_regcache): Declare global variable.
4221 (regcache_read, regcache_write): Add gdbarch parameter.
4222 (regcache_save, regcache_save_no_passthrough)
4223 (regcache_restore, regcache_restore_no_passthrough)
4224 (regcache_dup, regcache_dup_no_passthrough)
4225 (regcache_cpy, regcache_cpy_no_passthrough)
4226 (deprecated_grub_regcache_for_registers)
4227 (deprecated_grub_regcache_for_register_valid)
4228 (regcache_valid_p): Add function declarations.
4230 * regcache.c: Update copyright.
4231 (regcache_descr_handle): New global variable.
4232 (struct regcache_descr): Define.
4233 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4234 (regcache_descr, xfree_regcache_descr): New functions.
4235 (struct regcache): Define.
4236 (regcache_xmalloc, regcache_xfree): New functions.
4237 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4238 (regcache_dup, regcache_dup_no_passthrough): New functions.
4239 (regcache_valid_p, regcache_read_as_address): New functions.
4240 (deprecated_grub_regcache_for_registers): New function.
4241 (deprecated_grub_regcache_for_register_valid): New function.
4242 (current_regcache): New global variable.
4243 (register_buffer): Add regcache parameter. Update calls.
4244 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4245 (read_register_gen, write_register_gen): Update register_buffer
4246 call. Test for legacy_p instead of gdbarch_register_read_p or
4247 gdbarch_register_write_p.
4248 (regcache_collect): Update register_buffer call.
4249 (build_regcache): Rewrite. Use deprecated grub functions.
4250 (regcache_save, regcache_save_no_passthrough): New functions.
4251 (regcache_restore, regcache_restore_no_passthrough): New
4253 (_initialize_regcache): Create the regcache_data_handle. Swap
4254 current_regcache global variable.
4256 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4257 parameter to regcache_read and regcache_write calls.
4258 (sh4_register_read): Ditto.
4259 (sh64_pseudo_register_read): Ditto.
4260 (sh64_register_read): Ditto.
4261 (sh_pseudo_register_write): Ditto.
4262 (sh4_register_write): Ditto.
4263 (sh64_pseudo_register_write): Ditto.
4264 (sh64_register_write): Ditto.
4266 * defs.h (XCALLOC): Define.
4268 2002-06-19 Grace Sainsbury <graces@redhat.com>
4270 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4271 * m68k-tdep.c (m68k_gdbarch_init): Added.
4272 (m68k_dump_tdep): Added.
4274 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4276 * ada-lang.c (fill_in_ada_prototype): Update comment.
4278 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4280 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4282 (mips_abi_string, mips_abi_strings): New.
4283 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4284 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4285 tdep->mips_abi_string. Honor mips_abi_string. Default to
4286 O32 if no ABI is found.
4287 (mips_dump_tdep): Use mips_abi_strings.
4288 (mips_abi_update): New function.
4289 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4290 ``set mips abi'' and ``show mips abi''. Check the size of
4293 2002-06-19 Andrew Cagney <cagney@redhat.com>
4295 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4298 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4300 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4301 current frame using only the first stack size adjustment. All
4302 subsequent size adjustments are not considered to be part of
4303 the "static" part of the current frame.
4304 Compute the address of the saved registers relative to the
4305 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4306 in use in this frame.
4308 2002-06-18 Don Howard <dhoward@redhat.com>
4310 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4311 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4312 suggesting this solution.
4314 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4316 * config/romp/xm-rtbsd.h: Delete file.
4317 * config/romp/rtbsd.mh: Delete file.
4319 2002-06-18 Keith Seitz <keiths@redhat.com>
4321 * breakpoint.c (condition_command): Post breakpoint_modify
4322 when a condition is added to an existing breakpoint.
4323 (commands_command): Likewise for commands.
4324 (set_ignore_count): Likewise for ignore counts.
4325 If no tty, do not simply return, still need to send event
4327 (ignore_command): Only print a newline if the command came
4329 Don't call breakpoints_changed, since this is now properly
4330 handled by set_ignore_count.
4332 2002-06-18 Andrew Cagney <cagney@redhat.com>
4334 * MAINTAINERS: Note that cris-elf target can be compiled with
4336 * cris-tdep.c (cris_register_name): Make return type constant.
4337 (cris_breakpoint_from_pc): Ditto.
4339 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4341 * frame.h (struct frame_info): Change type of context to
4344 2002-06-17 Andrew Cagney <cagney@redhat.com>
4346 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4348 * gdbarch.h, gdbarch.c: Regenerate.
4349 * config/mips/tm-mips.h (mips_register_name): Update.
4350 * i386-tdep.h (i386_register_name): Update.
4351 * mips-tdep.c (mips_register_name): Update
4352 * alpha-tdep.c (alpha_register_name): Update.
4353 * arch-utils.c (legacy_register_name): Update.
4354 * arch-utils.h (legacy_register_name): Update.
4355 * avr-tdep.c (avr_register_name): Update.
4356 * ia64-tdep.c (ia64_register_name): Update.
4357 * i386-tdep.c (i386_register_name): Update.
4358 * sparc-tdep.c (sparc32_register_name): Update.
4359 (sparc64_register_name): Update.
4360 (sparclite_register_name): Update.
4361 (sparclet_register_name): Update.
4362 * sh-tdep.c (sh_generic_register_name): Update.
4363 (sh_sh_register_name): Update.
4364 (sh_sh3_register_name): Update.
4365 (sh_sh3e_register_name): Update.
4366 (sh_sh_dsp_register_name): Update.
4367 (sh_sh3_dsp_register_name): Update.
4368 (sh_sh4_register_name): Update.
4369 (sh_sh64_register_name): Update.
4370 * s390-tdep.c (s390_register_name): Update.
4371 * rs6000-tdep.c (rs6000_register_name): Update.
4372 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4373 (ns32k_register_name_32382): Update.
4374 * d10v-tdep.c (d10v_ts2_register_name): Update.
4375 (d10v_ts3_register_name): Update.
4376 * xstormy16-tdep.c (xstormy16_register_name): Update.
4377 * vax-tdep.c (vax_register_name): Update.
4378 * v850-tdep.c (v850_register_name): Update.
4379 * m68hc11-tdep.c (m68hc11_register_name): Update.
4380 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4381 (am33_register_name): Update.
4383 2002-06-17 Grace Sainsbury <graces@redhat.com>
4385 * m68k-tdep.c: Reindented.
4387 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4389 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4390 list of predefined types.
4392 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4394 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4395 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4396 REGISTER_CONVERT_TO_RAW): Remove defines.
4397 (i386_register_virtual_type, i386_register_convertible,
4398 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4400 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4401 macros mentioned above.
4403 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4404 (i386lynx_saved_pc_after_call): Remove prototype.
4405 * i386ly-tdep.c: Include "i386-tdep.h".
4406 (i386lynx_saved_pc_after_call): Make static. Use
4407 read_memory_nobpt instead of read_memory. Use
4408 read_memory_unsigned_integer instead of read_memory_integer.
4409 (i386lynx_init_abi): New function.
4410 (i386lynx_coff_osabi_sniffer): New function.
4411 (_initialize_i386bsd_tdep): New function.
4413 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4414 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4415 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4416 (i386_fix_call_dummy): Remove prototype.
4417 * i386-tdep.c (i386_call_dummy_words): New variable.
4418 (i386_gdbarch_init): Adjust for removal of the
4419 macros mentioned above.
4421 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4423 * command.h (add_setshow_auto_boolean_cmd): Replace
4424 add_set_auto_boolean_cmd.
4425 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4426 add_set_auto_boolean_cmd.
4427 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4428 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4429 mask-address'' command.
4430 (show_mask_address): Add cmd parameter.
4431 * remote.c (add_packet_config_cmd): Update. Change type of
4432 set_func and show_func to cmd_sfunc_ftype.
4433 (_initialize_remote): Update `set remote Z-packet'
4434 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4435 (show_remote_protocol_e_packet_cmd): Ditto.
4436 (show_remote_protocol_E_packet_cmd): Ditto.
4437 (show_remote_protocol_P_packet_cmd): Ditto.
4438 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4439 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4440 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4441 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4442 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4443 (show_remote_protocol_Z_packet_cmd): Ditto.
4444 (show_remote_protocol_binary_download_cmd): Ditto.
4445 (show_remote_cmd): Pass NULL to all of above.
4447 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4449 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4450 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4451 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4452 POP_FRAME): Remove defines.
4453 (i386_push_arguments, i386_store_struct_return,
4454 i386_extract_return_value, i386_store_return_value,
4455 i386_extract_struct_value_address, i386_push_dummy_frame,
4456 i386_pop_frame): Renove prototypes.
4457 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4458 macros mentioned above.
4460 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4462 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4463 add_set_boolean_cmd.
4464 (add_setshow_cmd): New function.
4465 * command.h (add_setshow_boolean_cmd): Replace
4466 add_set_boolean_cmd.
4467 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4468 and ``set rdiromatzero''.
4469 * maint.c (_initialize_maint_cmds): Update commented out code.
4470 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4471 * target.c (initialize_targets): Update `set
4472 trust-readonly-sections'.
4473 * remote.c (_initialize_remote): Update `set remotebreak'.
4475 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4477 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4478 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4479 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4480 fit into multi-arch framework.
4481 (i386_breakpoint_from_pc): New function.
4482 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4485 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4486 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4487 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4488 (i386_frameless_function_invocation, i386_frame_num_args,
4489 i386_frame_init_saved_regs): Remove prototypes.
4490 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4491 macros mentioned above.
4493 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4495 * cli/cli-decode.c (set_cmd_cfunc): Update.
4496 (set_cmd_sfunc): Update.
4497 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4498 (set_cmd_sfunc, set_cmd_cfunc): Update.
4499 * cli/cli-decode.h: Update.
4501 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4503 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4504 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4506 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4508 * defs.h (auto_boolean): Declare enum.
4509 * command.h (cmd_auto_boolean): Delete enum.
4510 * mips-tdep.c (mask_address_var): Update.
4511 (mips_mask_address_p): Update.
4512 (show_mask_address): Update.
4513 * remote.c (struct packet_config): Update.
4514 (update_packet_config): Update.
4515 (show_packet_config_cmd): Update.
4516 (packet_ok): Update.
4517 (add_packet_config_cmd): Update.
4518 (_initialize_remote):
4519 * command.h: Update.
4520 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4521 (do_setshow_command): Update.
4522 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4523 * cli/cli-decode.h: Update.
4525 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4527 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4528 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4529 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4530 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4531 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4532 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4534 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4535 list of DJGPP COFF targets.
4537 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4538 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4539 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4540 (FP0_REGNUM): Remove define.
4541 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4542 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4543 (i386_register_virtual_size): Remove protoype.
4544 * i386-tdep.c (i386_register_virtual_size): Removed.
4545 (i386_extract_return_value, i386_store_return_value): Use
4546 FP0_REGNUM instead of NUM_FREGS to determine whether the
4547 floating-point registers are available.
4548 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4549 Adjust for removal of macros mentioned above.
4551 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4553 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4555 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4557 (supply_gregset, fill_gregset): Remove use of register keyword and
4558 remove declaration for regmap. Use I386_NUM_GREGS instead of
4559 NUM_REGS and NUM_FREGS.
4560 (FPREGSET_FSAVE_OFFSET): Remove.
4561 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4562 NUM_FREGS to determine whether the floating-point registers are
4565 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4566 gnu_store_registers): Replace usage of NUM_GREGS with
4569 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4570 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4571 usage of NUM_GREGS with I386_NUM_GREGS.
4573 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4575 * i386bsd-nat.c: Include "i386-tdep.h".
4576 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4579 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4580 and associated comment. They no longer make any sense, since we
4581 don't use this file anymore on Linux.
4583 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4584 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4585 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4586 elements in these arrays.
4587 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4590 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4592 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4593 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4595 2002-06-14 Andrew Cagney <cagney@redhat.com>
4597 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4598 EXTRACT_RETURN_VALUE.
4599 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4600 EXTRACT_STRUCT_VALUE_ADDRESS.
4601 * gdbarch.h, gdbarch.c: Regenerate.
4603 * values.c (value_being_returned): Handle
4604 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4605 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4607 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4608 * arm-tdep.c (arm_gdbarch_init): Update.
4609 * avr-tdep.c (avr_gdbarch_init): Update.
4610 * cris-tdep.c (cris_gdbarch_init): Update.
4611 * d10v-tdep.c (d10v_gdbarch_init): Update.
4612 * ia64-tdep.c (ia64_gdbarch_init): Update.
4613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4614 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4615 * s390-tdep.c (s390_gdbarch_init): Update.
4616 * sh-tdep.c (sh_gdbarch_init): Update.
4617 * s390-tdep.c (s390_gdbarch_init): Update.
4618 * sparc-tdep.c (sparc_gdbarch_init): Update.
4619 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4620 * v850-tdep.c (v850_gdbarch_init): Update.
4621 * vax-tdep.c (vax_gdbarch_init): Update.
4622 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4625 * config/arc/tm-arc.h: Update.
4626 * config/d30v/tm-d30v.h: Update.
4627 * config/fr30/tm-fr30.h: Update.
4628 * config/h8300/tm-h8300.h: Update.
4629 * config/h8500/tm-h8500.h: Update.
4630 * config/i386/tm-i386.h: Update.
4631 * config/i386/tm-ptx.h: Update.
4632 * config/i386/tm-symmetry.h: Update.
4633 * config/i960/tm-i960.h: Update.
4634 * config/m32r/tm-m32r.h: Update.
4635 * config/m68k/tm-delta68.h: Update.
4636 * config/m68k/tm-linux.h: Update.
4637 * config/m68k/tm-m68k.h: Update.
4638 * config/m88k/tm-m88k.h: Update.
4639 * config/mcore/tm-mcore.h: Update.
4640 * config/mips/tm-mips.h: Update.
4641 * config/mn10200/tm-mn10200.h: Update.
4642 * config/pa/tm-hppa.h: Update.
4643 * config/pa/tm-hppa64.h: Update.
4644 * config/sparc/tm-sp64.h: Update.
4645 * config/sparc/tm-sparc.h: Update.
4646 * config/sparc/tm-sparclet.h: Update.
4647 * config/z8k/tm-z8k.h: Update.
4649 2002-06-14 Andrew Cagney <cagney@redhat.com>
4651 * Makefile.in (i386_linux_tdep_h): Define.
4652 (i386_tdep_h, i387_tdep_h): Define.
4653 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4654 $(i386_tdep_h) and $(i387_tdep_h).
4655 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4657 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4659 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4660 Already covered by the default.
4662 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4663 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4664 (i386_gdbarch_init): Initialize long_double_format and long_double
4667 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4668 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4670 * config/i386/i386sol2.mh: ... here.
4671 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4672 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4673 (SIGCONTEXT_PC_OFFSET): Remove define.
4674 (IN_SIGTRAMP): Remove define.
4675 * i386-sol2-tdep.c: New file.
4677 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4678 * config/i386/tm-i386nw.h: Removed.
4680 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4681 USE_STRUCT_CONVENTION): Remove defines.
4682 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4683 (get_longjmp_target): Remove prototype.
4684 (IN_SIGTRAMP): Remove define.
4685 (i386bsd_in_sigtramp): Remove prototype.
4686 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4687 function. Update comment accordingly
4688 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4689 (FRAME_SAVED_PC): Remove define.
4690 (i386bsd_frame_saved_pc): Remove prototype.
4691 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4692 GET_LONGJMP_TARGET): Remove defines.
4693 (get_longjmp_target): Remove prototype.
4694 (IN_SIGTRAMP): Remove define.
4695 (i386bsd_in_sigtramp): Remove prototype.
4696 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4697 function. Update comment accordingly
4698 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4699 (FRAME_SAVED_PC): Remove define.
4700 (i386bsd_frame_saved_pc): Remove prototype.
4701 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4703 (USE_STRUCT_CONVENTION): Remove prototype.
4704 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4706 (_initialize_i386bsd_nat): Revise logic to determine some
4707 constants at compile time when compiling a native GDB. Warn if
4708 things don't match up with what we expect.
4709 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4711 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4712 to use date stored in `struct gdbarch_tdep'.
4713 (i386bsd_sigcontext_offset): Remove varaible.
4714 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4715 stored in `struct gdbarch_tdep'.
4716 (i386bsd_frame_saved_pc): Make static.
4717 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4718 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4719 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4720 i386fbsd4_sc_pc_offset): New variables.
4721 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4722 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4724 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4726 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4727 Modify the value of i386fbsd_sigtramp_start and
4728 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4729 i386fbsd_sigtramp_end.
4730 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4733 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4734 define to i386-linux-tdep.h.
4735 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4736 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4738 (i386_linux_register_name, i386_linux_register_byte,
4739 i386_linux_register_raw_size): Remove prototypes.
4740 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4741 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4742 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4743 TARGET_WRITE_PC): Remove defines.
4744 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4745 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4746 i386_linux_write_pc): Remove prototypes.
4747 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4748 (get_longjmp_target): Remove prototype.
4749 * i386-linux-tdep.h: New file.
4750 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4751 * i386-linux-tdep.c: Include "i386-tdep.h" and
4752 "i386-linux-tdep.h".
4753 (i386_linux_register_name, i386_linux_register_byte,
4754 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4755 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4757 (i386_linux_init_abi): New function.
4758 (_initialize_i386_linux_tdep): New function.
4760 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4761 (i386_saved_pc_after_call): Remove prototype.
4762 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4763 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4764 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4765 (i386_register_name, i386_stab_reg_to_regnum,
4766 i386_dwarf_reg_to_regnum): Remove prototypes.
4767 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4768 SIZEOF_SSE_REGS): Remove defines.
4769 (REGISTER_BYTES): Remove define.
4770 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4771 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4772 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4773 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4774 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4775 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4776 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4777 (get_longjmp_target): Remove prototype.
4778 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4779 (sigtramp_saved_pc): Remove define.
4780 (i386v4_sigtramp_saved_pc): Remove prototype.
4781 * config/i386/tm-go32.h (FRAME_CHAIN,
4782 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4783 (i386go32_frame_saved_pc): Remove prototype.
4784 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4785 (get_longjmp_target): Remove prototype.
4786 * i386-tdep.h: Include "osabi.h".
4787 (enum i386_abi): Removed.
4788 (enum struct_return): New enum.
4789 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4790 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4791 sc_pc_offset members.
4792 (i386_gdbarch_register_os_abi): Remove prototype.
4793 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4794 I386_SSE_NUM_REGS): New defines.
4795 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4796 I386_SSE_SIZEOF_REGS): New defines.
4797 (i386_register_name, i386_register_byte, i386_register_raw_size):
4799 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4800 (i386bsd_sigtramp_saved_pc): New prototype.
4801 * i386-tdep.c: Don't include "elf-bfd.h".
4802 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4803 i386_frame_chain, i386_saved_pc_after_call): Make static.
4804 (i386_frame_saved_pc): Rewrite to call architecture dependent
4805 function to deal with signal handlers. Make static.
4806 (i386go32_frame_saved_pc): Removed.
4807 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4809 (i386_get_longjmp_target): New function.
4810 (default_struct_convention, pcc_struct_convention,
4811 reg_struct_convention, valid_conventions, struct_convention): New
4813 (i386_use_struct_convention): New function.
4814 (i386v4_sigtramp_saved_pc): Renamed to
4815 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4816 (i386_pc_in_sigtramp): New function.
4817 (i386_abi_names): Removed.
4818 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4819 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4821 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4822 i386_gdbarch_register_os_abi): Removed.
4823 (struct i386_abi_handler): Removed.
4824 (i386_abi_handler_list): Removed.
4825 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4827 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4828 i386_nw_init_abi): New functions.
4829 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4830 Use set_gdbarch_xxx() calls instead of relying on macros for a
4832 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4833 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4834 Register the various architecture variants defined in this file.
4836 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4838 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4839 (struct main_type): Remove arg_types member. Update comments for
4841 (TYPE_ARG_TYPES): Remove.
4842 (TYPE_FN_FIELD_ARGS): Update.
4843 (smash_to_method_type): Update prototype.
4845 * c-typeprint.c (cp_type_print_method_args): Take method type
4846 instead of argument list. Use new argument layout. Simplify.
4847 (c_type_print_args): Use new argument layout. Simplify.
4848 (c_type_print_base): Update call to cp_type_print_method_args.
4849 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4850 argument; use die->type instead. Update call to
4851 smash_to_method_type.
4852 (read_structure_scope): Update call to dwarf2_add_member_fn.
4853 * gdbtypes.c (allocate_stub_method): Update comment.
4854 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4855 Use new argument layout.
4856 (check_stub_method): Use new argument layout. Don't count
4857 void as an argument.
4858 (print_arg_types): Update comments. Use new argument layout.
4859 (recursive_dump_type): Don't print arg_types member.
4860 * hpread.c (hpread_read_struct_type): Use new argument layout.
4861 (fixup_class_method_type): Likewise.
4862 (hpread_type_lookup): Likewise.
4863 * stabsread.c (read_type): Update calls to read_args and
4864 smash_to_method_type.
4865 (read_args): Use new argument layout. Simplify.
4866 * valops.c (typecmp): Use new argument layout. Update parameters
4867 and comments. Simplify.
4868 (hand_function_call): Use new argument layout.
4869 (search_struct_method): Update call to typecmp.
4870 (find_overload_match): Use new argument layout.
4872 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4874 * NEWS: Mention multithreaded debug support for gdbserver.
4876 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4878 * MAINTAINERS: Mention NEWS.
4880 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4882 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4883 (struct mips_objfile_private, compare_pdr_entries): New.
4884 (non_heuristic_proc_desc): Read the ".pdr" section if it
4887 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4889 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4890 (arm_debug): New static variable.
4891 (_initialize_arm_tdep): Add ``set debug arm'' command.
4893 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4895 * Makefile.in (sim_arm_h): Define.
4896 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4897 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4898 (arm_register_sim_regno): New function, map an internal REGNUM
4899 onto a simulator register number.
4900 (arm_gdbarch_init): Set register_sim_regno.
4902 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4904 * MAINTAINERS: Add self.
4906 2002-06-11 Jim Blandy <jimb@redhat.com>
4908 * source.c (source_info): Mention whether the symtab has
4909 information about preprocessor macros.
4911 Call the command `info macro', not `show macro'.
4912 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4914 (_initialize_macrocmd): Register `info_macro_command' in
4915 `infolist', not `showlist'.
4917 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4919 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4920 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4921 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4922 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4923 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4925 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4926 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4927 (_initialize_mips_tdep): Remove dead code.
4928 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4929 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4930 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4931 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4932 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4933 MIPS_LAST_FP_ARG_REGNUM): Remove.
4935 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4937 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4938 (unwind_tmp_obstack_free, parse_frame_info)
4939 (update_context, cfi_read_fp, cfi_write_fp)
4940 (cfi_frame_chain, cfi_init_extra_frame_info)
4941 (cfi_virtual_frame_pointer): Use the above function.
4942 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4944 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4946 * v850-tdep.c (v850_type_is_scalar): New function.
4947 (v850_use_struct_convention): Match current gcc implementation
4948 as close as possible.
4949 (v850_push_arguments): Fix stack_offset handling. Don't write
4950 struct_addr into register. This is done by v850_store_struct_return.
4951 (v850_extract_return_value): Care for structs.
4952 (v850_store_return_value): Ditto.
4953 (v850_store_struct_return): Actually write address.
4955 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4957 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4958 without debug information too.
4960 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4962 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4963 Make multi-arch pure.
4964 * gdbarch.h, gdbarch.c: Re-generate.
4965 * arm-tdep.c (arm_print_float_info): Update.
4966 * arch-utils.h (default_print_float_info): Update.
4967 * arch-utils.c (default_print_float_info): Update.
4968 * infcmd.c (float_info): Update call.
4970 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4972 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4973 the front of the initialize list.
4975 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4977 * infrun.c (struct inferior_status): Replace fields
4978 selected_frame_address and selected_level with field
4980 (save_inferior_status): Update. Use get_frame_id.
4981 (struct restore_selected_frame_args): Delete.
4982 (restore_selected_frame): Update. Use frame_find_by_id.
4983 (restore_inferior_status): Update.
4985 * breakpoint.h (struct breakpoint): Change type of
4986 watchpoint_frame to frame_id.
4987 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4988 call to get_current_frame.
4989 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4991 (watchpoint_check): Use frame_find_by_id.
4993 * frame.h (record_selected_frame): Delete declaration.
4994 * stack.c (record_selected_frame): Delete function.
4996 * frame.h (struct frame_id): Define.
4997 (get_frame_id): Declare.
4998 (frame_find_by_id): Declare.
4999 * frame.c (frame_find_by_id): New function.
5000 (get_frame_id): New function.
5002 2002-06-10 Andrey Volkov <avolkov@transas.com>
5004 * ser-e7kpc.c: Fix duplicated define and call of
5005 _initialize_ser_e7000pc
5007 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5009 * signals/signals.c (target_signal_from_host): Fix #ifdef
5011 (do_target_signal_to_host): Likewise.
5013 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5015 * mips-tdep.c (mips_find_abi_section): New function.
5016 (mips_gdbarch_init): Call it.
5018 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5020 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5021 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5022 after Andrew's 2002-06-08 gdbarch change.
5024 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5026 * i386-linux-nat.c (suppy_gregset): Don't supply
5027 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5029 (fill_gregset): Don't fetch it under the same circumstances.
5031 2002-06-09 Andrew Cagney <cagney@redhat.com>
5033 * Makefile.in (callback_h): Define.
5034 (remote_sim_h): Update path to remote-sim.h.
5035 (remote-rdp.o): Add $(callback_h).
5036 (remote-sim.o): Use $(callback_h).
5037 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5038 * remote-rdp.c: Include "gdb/callback.h".
5040 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5042 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5043 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5045 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5047 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5048 * rdi-share/serpardr.c: Ditto.
5049 * rdi-share/unixcomm.c: Ditto.
5050 * rdi-share/serdrv.c: Ditto.
5051 * rdi-share/hostchan.h: Ditto.
5052 * rdi-share/hostchan.c: Ditto.
5053 * rdi-share/host.h: Ditto.
5054 * rdi-share/devsw.c: Ditto.
5056 * objfiles.h: Change type of obj_private to void pointer.
5057 * pa64solib.c: Update copyright. Don't include "assert.h", use
5058 strcmp instead of STREQ, use LONGEST, do not use PTR
5059 * somsolib.c: Ditto.
5061 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5062 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5063 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5065 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5067 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5068 (default_get_saved_register): Delete function.
5069 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5070 generic_unwind_get_saved_register.
5071 * gdbarch.h, gdbarch.c: Re-generate.
5073 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5075 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5076 generic_func_frame_chain_valid.
5077 * gdbarch.h, gdbarch.c: Re-generate.
5078 * blockframe.c (generic_func_frame_chain_valid): Only check
5079 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5080 passing FP to PC_IN_CALL_DUMMY.
5083 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5085 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5086 (register_gdbarch_data): Initialize init_p.
5087 (gdbarch_data): Initialize data pointer using the init function.
5088 (init_gdbarch_data): Delete function.
5089 (gdbarch_update_p): Update.
5090 (initialize_non_multiarch): Update.
5091 (struct gdbarch): Add field initialized_p.
5092 * gdbarch.h, gdbarch.c: Re-generate.
5094 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5096 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5097 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5098 better do the things actually here.
5099 * x86-64-tdep.c (x86_64_register_name2nr): New.
5100 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5101 (x86_64_gdbarch_init): Respect the above change.
5102 * x86-64-tdep.h (x86_64_register_name2nr)
5103 (x86_64_register_nr2name): Add prototypes.
5104 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5106 2002-06-06 Michael Snyder <msnyder@redhat.com>
5108 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5109 Delete extra braces and re-indent.
5110 (d10v_store_return_value): Char return values
5111 must be shifted over by one byte in R0.
5112 (d10v_extract_return_value): Delete extra braces, re-indent.
5114 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5116 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5117 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5118 (d10v_integer_to_address): Rewrite.
5119 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5120 the d10v specific functions which take care of converting to the
5123 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5125 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5126 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5128 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5130 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5132 * config/tm-linux.h: Ditto.
5133 * config/alpha/tm-alphalinux.h: Ditto.
5134 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5135 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5136 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5137 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5138 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5139 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5140 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5141 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5142 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5143 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5144 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5145 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5146 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5147 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5148 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5149 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5150 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5151 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5152 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5153 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5154 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5155 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5156 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5157 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5158 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5159 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5160 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5161 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5162 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5163 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5164 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5165 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5166 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5167 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5168 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5169 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5170 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5172 2002-05-04 Aidan Skinner <aidan@velvet.net>
5174 * ada-exp.tab.c: New file
5175 * ada-exp.y: New file
5176 * ada-lang.c: New file
5177 * ada-lang.h: New file
5178 * ada-lex.c: New file
5179 * ada-lex.l: New file
5180 * ada-tasks.c: New file
5181 * ada-typeprint.c: New file
5182 * ada-valprint.c: New file
5184 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5186 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5187 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5189 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5191 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5192 insetead of ppc-linux-tdep.o.
5193 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5194 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5196 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5198 2002-05-07 Christian Groessler <chris@groessler.org>
5199 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5200 bit register contents for little endian hosts.
5202 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5204 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5207 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5209 * gdbarch.h: Regenerate.
5211 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5213 * MAINTAINERS: Add everyone to write-after-approval list.
5215 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5217 * stack.c (frame_info): Use frame_register_unwind instead of
5218 saved_regs. Mention when the SP is on the stack or in a register.
5220 * frame.h (frame_register_unwind_ftype): Define. Document.
5221 (struct frame_info): Add field register_unwind and
5222 register_unwind_cache.
5223 (frame_register_unwind): Declare.
5224 (generic_unwind_get_saved_register): Declare.
5226 * frame.c (frame_register_unwind): New function.
5227 (generic_unwind_get_saved_register): New function.
5229 * blockframe.c (generic_call_dummy_register_unwind): New function.
5230 (frame_saved_regs_register_unwind): New function.
5231 (set_unwind_by_pc): New function.
5232 (create_new_frame): New function.
5233 (get_prev_frame): New function.
5235 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5237 * a29k-share/: Delete directory.
5238 * remote-vx29k.c: Delete file.
5240 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5242 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5243 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5245 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5247 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5248 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5251 (sparcnbsd-tdep.o): New dependency lists.
5252 * NEWS: Note new UltraSPARC NetBSD native configuration.
5253 * configure.host (sparc64-*-netbsd*): New host.
5254 * configure.tgt (sparc-*-netbsdelf*)
5255 (sparc-*-netbsd*): Set gdb_target to nbsd.
5256 (sparc64-*-netbsd*): New target.
5257 * sparc64nbsd-nat.c: New file.
5258 * sparcnbsd-nat.c: New file.
5259 * sparcnbsd-tdep.c: New file.
5260 * sparcnbsd-tdep.h: New file.
5261 * config/sparc/nbsd.mt: New file.
5262 * config/sparc/nbsd64.mh: New file.
5263 * config/sparc/nbsd64.mt: New file.
5264 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5265 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5267 * config/sparc/nbsdaout.mt: Remove.
5268 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5269 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5271 * config/sparc/nbsdelf.mt: Remove.
5272 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5273 sparc-nat.c compatiblity defines.
5274 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5275 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5276 * config/sparc/tm-nbsd64.h: New file.
5277 * config/sparc/tm-nbsdaout.h: Remove.
5278 * config/sparc/xm-nbsd.h: Remove.
5280 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5282 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5283 * sparc-tdep.c: Include osabi.h.
5284 (gdbarch_tdep): Add osabi member.
5285 (_initialize_sparc_tdep): Use gdbarch_register.
5286 (sparc_gdbarch_init): Use generic OS ABI framework.
5287 (sparc_dump_tdep): New function.
5289 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5291 * corefile.c (do_captured_read_memory_integer): Return non-zero
5293 (safe_read_memory_integer): Copy result of memory read when
5294 status is non-zero. Also, add comments.
5296 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5298 * Makefile.in (ppc_tdep_h): Define.
5301 (rs6000-tdep.o): Use $(ppc_tdep_h).
5304 (ppcnbsd-tdep.o): New dependency lists.
5305 * ppc-tdep.h: Use generic OS ABI framework.
5306 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5307 (ppc_linux_init_abi): New functions.
5308 (ppc_sysv_abi_broken_use_struct_convention)
5309 (ppc_sysv_abi_use_struct_convention)
5310 (ppc_sysv_abi_push_arguments): Move to...
5311 * ppc-sysv-tdep.c: ...here.
5312 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5313 * rs6000-tdep.c (process_note_abi_tag_sections)
5314 (get_elfosabi): Remove.
5315 (rs6000_gdbarch_init): Use generic OS ABI framework.
5316 (rs6000_dump_tdep): New function.
5317 (_initialize_rs6000_tdep): Use gdbarch_register.
5318 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5319 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5320 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5321 of ppc-linux-tdep.o.
5322 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5323 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5324 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5325 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5326 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5327 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5329 2002-05-29 Jim Blandy <jimb@redhat.com>
5331 * macroscope.c (default_macro_scope): Put `void' in empty argument
5334 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5336 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5337 * arch-utils.c: Include "sim-regno.h".
5338 * gdbarch.sh: Don't include "sim-regno.h".
5339 * gdbarch.h, gdbarch.c: Regenerate.
5340 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5342 * arch-utils.h (legacy_register_sim_regno): To here.
5343 * remote-sim.c (legacy_register_sim_regno): Move function from
5345 * arch-utils.c (legacy_register_sim_regno): To here.
5347 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5349 * sim-regno.h: New file.
5350 * Makefile.in (sim_regno_h): Define.
5351 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5352 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5353 (legacy_register_sim_regno): New function.
5354 (one2one_register_sim_regno): New function.
5355 (gdbsim_fetch_register): Rewrite.
5356 (gdbsim_store_register): Only store a register when
5357 REGISTER_SIM_REGNO is valid.
5358 * d10v-tdep.c: Include "sim-regno.h".
5359 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5360 (d10v_ts3_register_sim_regno): Ditto.
5361 * gdbarch.sh: Include "sim-regno.h".
5362 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5363 * gdbarch.h, gdbarch.c: Regenerate.
5364 * arch-utils.h (default_register_sim_regno): Delete declaration.
5365 * arch-utils.c (default_register_sim_regno): Delete function.
5367 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5369 * ppcnbsd-nat.c: Rewrite.
5370 * ppcnbsd-tdep.c: New file.
5371 * ppcnbsd-tdep.h: New file.
5372 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5373 solib.o, and solib-svr4.o.
5374 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5375 nbsd-tdep.o, and corelow.o.
5377 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5379 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5380 `tr' and `sed'. Mention that `broken' targets are not expected to
5383 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5385 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5386 Let PC point right after the prologue before looking up symbols.
5388 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5390 * i386-tdep.c (i386_register_virtual_type): Return
5391 builtin_type_vec128i for SSE registers.
5393 * gdbtypes.h (builtin_type_vec128i): Declare.
5395 * gdbtypes.c (build_builtin_type_vec128i): New function.
5396 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5397 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5398 (build_gdbtypes): Initialize new builtin vector types.
5399 (_initialize_gdbtypes): Register new vector types with gdbarch.
5401 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5403 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5404 since it has been multi-arch'd.
5405 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5406 Move Alpha and VAX multi-arch news entries to same section
5407 as other multi-arch news.
5409 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5411 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5412 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5413 static. Rename some register numbers to put them in ns32k-tdep
5415 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5416 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5418 (_initialize_ns32k_tdep): Use gdbarch_register.
5419 * ns32k-tdep.h: New file.
5420 * ns32knbsd-tdep.c: New file.
5421 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5422 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5423 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5424 REGISTER_BYTES, REGISTER_BYTE): Remove.
5425 * config/ns32k/tm-ns32k.h: New file.
5426 * config/ns32k/tm-umax.h: Remove.
5428 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5430 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5431 ns32k_store_struct_return, ns32k_extract_return_value,
5432 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5434 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5435 ns32k_saved_pc_after_call.
5436 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5437 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5438 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5439 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5440 ns32k_extract_struct_value_address.
5442 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5444 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5445 ns32k_fix_call_dummy): New.
5446 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5447 ns32k_call_dummy_words.
5448 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5449 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5450 CALL_DUMMY_NARGS): Remove.
5451 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5453 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5455 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5456 ns32k_frame_saved_pc, ns32k_frame_args_address,
5457 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5458 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5459 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5460 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5461 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5462 (BREAKPOINT): Remove..
5463 (FRAME_CHAIN): Define as ns32k_frame_chain.
5464 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5465 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5466 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5467 (FRAME_FIND_SAVED_REGS): Remove.
5468 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5469 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5470 (POP_FRAME): Define as ns32k_pop_frame.
5472 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5474 * ns32k-tdep.c (ns32k_register_byte_32082,
5475 ns32k_register_byte_32382, ns32k_register_raw_size,
5476 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5478 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5479 ns32k_register_byte_32382.
5480 * config/ns32k/tm-umax.h: Update copyright years.
5481 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5482 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5483 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5484 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5485 (ns32k_get_enter_addr): Fix prototype.
5487 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5489 * ns32k-tdep.c: Update copyright years.
5490 (ns32k_register_name_32082): New function.
5491 (ns32k_register_name_32382): Ditto.
5492 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5493 (REGISTER_NAME): Define as ns32k_register_name_32382.
5494 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5495 (REGISTER_NAME): Define as ns32k_register_name_32082.
5497 2002-05-24 Jim Blandy <jimb@redhat.com>
5499 * dwarf2read.c (free_line_header): Use xfree, not free.
5501 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5503 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5504 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5506 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5508 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5510 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5512 From Ross Alexander at NEC Europe:
5513 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5515 2002-05-23 Michael Snyder <msnyder@redhat.com>
5517 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5518 for input, rather than parse_and_eval_address.
5520 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5522 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5523 * Makefile.in (sim_d10v_h): Update definition.
5525 2002-05-24 Andrew Cagney <cagney@redhat.com>
5527 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5528 change `2002-05-22 Michael Snyder' below.
5529 (d10v_push_arguments): Ditto.
5530 (d10v_extract_return_value): Ditto.
5532 2002-05-23 Jim Blandy <jimb@redhat.com>
5534 * macrotab.c (check_for_redefinition): Don't complain if the new
5535 definition is the same as the previous one. Take more arguments
5536 to allow the comparison.
5537 (macro_define_object, macro_define_function): Pass more arguments
5538 to check_for_redefinition.
5540 2002-05-22 Michael Snyder <msnyder@redhat.com>
5542 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5543 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5544 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5545 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5546 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5547 Add a temp variable to save a call (and a memory read).
5548 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5549 if possible (so that PC_IN_CALL_DUMMY will work).
5551 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5553 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5555 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5557 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5559 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5560 (dwarf2_build_frame_info): Add offset to fde->initial_location
5561 so that frames of shared libraries are mapped correctly.
5562 (execute_stack_op): Change type of 'result' from ULONGEST to
5565 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5567 * config/alpha/tm-nbsd.h: Include solib.h.
5569 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5571 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5572 assumptions about the host's byte order.
5574 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5576 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5578 * alphanbsd-tdep.c: Include solib-svr4.h.
5579 * shnbsd-tdep.c: Ditto.
5581 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5583 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5584 nbsd-tdep.h to dependency list.
5585 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5586 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5587 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5588 nbsdaout.mh and nbsdelf.mh consistently.
5589 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5590 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5591 nbsdaout.mt and nbsdelf.mh consistently.
5592 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5593 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5594 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5595 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5596 a.out shared library stuff from here...
5597 * config/nm-nbsdaout.h: ...to here.
5598 * config/tm-nbsd.h: Remove.
5599 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5600 * config/arm/nbsd.mh: Remove.
5601 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5603 * config/arm/nbsdaout.mh: New file.
5604 * config/arm/nbsdelf.mh: New file.
5605 * config/arm/nm-nbsdaout.h: New file.
5606 * config/i386/nbsd.mh: Remove.
5607 * config/i386/nbsd.mt: Remove.
5608 * config/i386/nbsdaout.mh: New file.
5609 * config/i386/nbsdaout.mt: New file.
5610 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5611 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5612 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5613 i386_register_u_addr): Remove.
5614 * config/i386/nm-nbsdaout.h: New file.
5615 * config/i386/nm-nbsdelf.h: Remove.
5616 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5617 (USE_STRUCT_CONVENTION): Remove.
5618 * config/i386/tm-nbsdaout.h: New file.
5619 * config/i386/tm-nbsdelf.h: Remove.
5620 * config/m68k/nbsd.mh: Remove.
5621 * config/m68k/nbsd.mt: Remove.
5622 * config/m68k/nbsdaout.mh: New file.
5623 * config/m68k/nbsdaout.mt: New file.
5624 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5625 * config/m68k/nm-nbsdaout.h: New file.
5626 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5627 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5628 * config/ns32k/nbsd.mh: Remove.
5629 * config/ns32k/nbsd.mt: Remove.
5630 * config/ns32k/nbsdaout.mh: New file.
5631 * config/ns32k/nbsdaout.mt: New file.
5632 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5633 * config/ns32k/nm-nbsdaout.h: New file.
5634 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5635 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5636 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5637 (SVR4_SHARED_LIBS): Remove.
5638 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5639 * config/sparc/nbsd.mh: Remove.
5640 * config/sparc/nbsd.mt: Remove.
5641 * config/sparc/nbsdaout.mh: New file.
5642 * config/sparc/nbsdaout.mt: New file.
5643 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5644 * config/sparc/nbsdelf.mt: New file.
5645 * config/sparc/nm-nbsdaout.h: New file.
5646 * config/sparc/nm-nbsdelf.h: Remove.
5647 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5648 * config/sparc/tm-nbsdaout.h: New file.
5650 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5652 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5654 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5656 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5658 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5660 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5662 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5664 * NEWS: Note new MIPS NetBSD native configuration.
5665 * configure.host (mips*-*-netbsd*): New host.
5666 * configure.tgt (mips*-*-netbsd*): New target.
5667 * mipsnbsd-nat.c: New file.
5668 * mipsnbsd-tdep.c: New file.
5669 * mipsnbsd-tdep.h: New file.
5670 * config/mips/nbsd.mh: New file.
5671 * config/mips/nbsd.mt: New file.
5672 * config/mips/nm-nbsd.h: New file.
5673 * config/mips/tm-nbsd.h: New file.
5675 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5677 * Makefile.in (SFILES): Add osabi.c.
5678 (COMMON_OBS): Add osabi.o.
5679 (osabi.o): New dependency list.
5680 * osabi.c: New file.
5681 * osabi.h: New file.
5682 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5684 * Makefile.in (alpha_tdep_h): Define and use instead of
5686 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5687 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5689 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5690 * alpha-tdep.h: Include osabi.h.
5691 (alpha_abi): Remove.
5692 (gdbarch_tdep): Use generic OS ABI framework.
5693 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5694 gdbarch_register_osabi.
5695 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5696 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5697 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5699 * Makefile.in (sh_tdep_h): Add osabi.h.
5700 * sh-tdep.h (sh_osabi): Remove.
5701 (gdbarch_tdep): Use generic OS ABI framework.
5702 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5703 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5704 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5705 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5707 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5708 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5709 gdbarch_register_osabi.
5710 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5711 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5712 (get_elfosabi): Rename to...
5713 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5714 ABI framework support routines.
5715 (arm_gdbarch_init): Use generic OS ABI framework.
5716 (arm_dump_tdep): Likewise.
5717 (_initialize_arm_tdep): Likewise.
5718 * arm-tdep.h: Include osabi.h.
5720 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5722 (arm_gdbarch_register_os_abi): Remove prototype.
5723 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5724 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5726 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5727 * mips-tdep.c: Include osabi.h.
5728 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5731 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5733 * h8300-tdep.c: Fix formatting.
5735 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5737 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5738 printing vector registers.
5740 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5742 From Fernando Nasser:
5743 * remote.c (remote_async_open_1): Re-throw the exception when the
5745 (remote_cisco_open): Ditto.
5746 (remote_open_1): Ditto.
5748 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5750 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5751 (remote_start_remote): Add uiout parameter. Pass through to
5752 remote_start_remote_dummy.
5753 (remote_open_1): Use catch_exception instead of catch_errors.
5754 (remote_async_open_1): Ditto.
5755 (remote_cisco_open): Ditto.
5757 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5759 * remote.c (remote_start_remote): Replace PTR with void pointer.
5760 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5763 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5765 * gdb_indent.sh: Allow the script to be run in the sim directory.
5767 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5769 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5770 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5772 * corelow.c (core_open): Only call set_gdbarch_from_file if
5775 2002-05-17 Andrey Volkov <avolkov@transas.com>
5777 * h8300-tdep.c: Add support of EXR register
5778 * config/h8300/tm-h8300.h: Ditto.
5780 2002-05-17 Andrey Volkov <avolkov@transas.com>
5782 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5784 2002-05-17 Andrey Volkov <avolkov@transas.com>
5786 * h8300-tdep.c: Change literal regnums to REGNO.
5788 2002-05-17 Jim Blandy <jimb@redhat.com>
5790 * NEWS: Note addition of macro support.
5792 Expand preprocessor macros in C expressions.
5793 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5794 (scan_macro_expansion, scanning_macro_expansion,
5795 finished_macro_expansion): New function declarations.
5796 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5797 variable declarations.
5798 * parser-defs.h (expression_context_pc): New declaration.
5799 * parse.c (expression_context_pc): New variable.
5800 (parse_exp_1): Set expression_context_pc, as well as
5801 expression_context_block.
5802 * c-exp.y (yylex): If we're not already reading the result of a
5803 macro expansion, try to macro-expand the next token. When we're
5804 done scanning a macro expansion, switch back to the mainline text.
5805 Commas and `if's in a macro's expansion don't terminate the input.
5806 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5807 (macro_original_text, macro_expanded_text,
5808 expression_macro_lookup_func, expression_macro_lookup_baton): New
5810 (scan_macro_expansion, scanning_macro_expansion,
5811 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5812 c_preprocess_and_parse): New functions.
5813 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5814 c_preprocess_and_parse, instead of c_parse.
5815 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5816 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5818 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5820 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5821 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5822 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5824 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5826 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5828 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5830 * Makefile.in (sh_tdep_h): Define and use.
5831 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5832 register enum): Move to...
5833 * * sh-tdep.h: ...here.
5834 * sh-tdep.c: Include sh-tdep.h.
5835 * sh3-rom.c: Likewise.
5836 * shnbsd-tdep.c: Likewise.
5838 2002-05-16 Michael Snyder <msnyder@redhat.com>
5840 * arm-tdep.c: Spelling fix in comment.
5842 2002-05-16 Jim Blandy <jimb@redhat.com>
5844 Add commands for manually expanding macros and showing their
5846 * macrocmd.c, macroscope.c, macroscope.h: New files.
5847 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5848 (macroscope_h): New variable.
5849 (HFILES_NO_SRCDIR): Add macroscope.h.
5850 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5851 (macroscope.o, macrocmd.o): New rules.
5853 Teach the Dwarf 2 reader to read macro information.
5854 * dwarf2read.c: #include "macrotab.h".
5855 (dwarf_macinfo_buffer): New variable.
5856 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5858 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5859 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5860 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5861 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5862 dwarf2_macro_spaces_in_definition): New complaints.
5863 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5864 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5865 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5866 the partial symbol table.
5867 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5868 from what's recorded in the partial symbol table.
5869 (read_file_scope): If the compilation unit has a
5870 `DW_AT_macro_info' attribute, read its macro information.
5871 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5873 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5876 * ser-tcp.c: Don't include <netinet/udp.h>.
5878 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5880 * MAINTAINERS: Update my email address.
5882 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5884 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5885 include file of the same name.
5887 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5889 * configure.tgt: Mark v850 as multi-arched.
5890 * config/v850/tm-v850.h: Remove file.
5891 * config/v850/v850.mt: Eliminate TM_FILE.
5893 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5895 * v850-tdep.c: Full multi-arch.
5896 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5897 Define GDB_MULTI_ARCH to 2.
5899 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5901 * p-exp.y (current_type): New static variable.
5902 Carries the type of the expression at the position that is parsed.
5903 (push_current_type, pop_current_type): Two new functions. Used
5904 to store/restore current_type in expression on specific tokens.
5905 (search_field): New static variable. Set to one after parsing a point
5906 as at that point only a FIELDNAME token should be searched.
5907 (FIELDNAME): New token. After a point only a token belonging to
5908 current_type type definition is allowed.
5909 (all over token rules): reset and change current_type according
5911 (exp '[' rule): insert implicit array index field if
5912 exp is a pascal string type.
5914 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5916 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5917 frame info. Use frame_info's saved_regs instead of matching member
5918 in extra_frame_info throughout.
5919 (v850_frame_init_saved_regs): New function.
5920 (v850_init_extra_frame_info): Move most functionality into
5921 v850_frame_init_saved_regs().
5922 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5923 (v850_frame_find_saved_regs): Remove declaration.
5924 (FRAME_FIND_SAVED_REGS): Remove definition.
5925 (v850_frame_init_saved_regs): Add declaration.
5926 (FRAME_INIT_SAVED_REGS): Add definition.
5928 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5930 * v850-tdep.c: Begin multi-arch'ing v850.
5931 (v850_target_architecture_hook): Remove function.
5932 (v850_gdbarch_init): New function. Add code previously in
5933 v850_target_architecture_hook().
5934 (_initialize_v850_tdep): Don't set target_architecture_hook.
5935 Call register_gdbarch_init() instead.
5937 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5939 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5940 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5941 (fixup_class_method_type): Likewise.
5943 2002-05-15 Jim Blandy <jimb@redhat.com>
5945 Add macro structures to GDB's symbol tables. Nobody puts anything
5947 * symtab.h (struct symtab): New member: `macro_table'.
5948 * buildsym.h (pending_macros): New global variable.
5949 * buildsym.c: #include "macrotab.h".
5950 (buildsym_init): Initialize `pending_macros'.
5951 (end_symtab): If we found macro information while reading a CU's
5952 debugging info, do build a symtab structure for it. Make the
5953 symtab point to the macro information, and clear the
5954 `pending_macros' pointer which held it while we were reading the
5956 (really_free_pendings): Free any pending macro table.
5957 * objfiles.h (struct objfile): New member: `macro_cache'.
5958 * objfiles.c (allocate_objfile): Set allocate and free functions
5959 for the macro cache's objstack.
5960 (free_objfile): Empty the macro cache's obstack.
5961 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5962 set new allocate and free functions for it.
5963 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5964 free functions for the macro cache's objstack. (Why is this
5965 function building its own objfile?)
5966 * symmisc.c (print_objfile_statistics): Print statistics on the
5968 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5970 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5972 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5973 (REGISTER_U_ADDR): Delete definition.
5974 (arm_register_u_addr): Delete declaration.
5976 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5978 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5979 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5981 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5983 * regcache.c (register_valid): Revise comments refering to "Not
5984 available" and "unavailable".
5985 * frame.c (frame_register_read): Ditto.
5986 * findvar.c (value_of_register): Ditto.
5988 2002-05-15 Andrew Cagney <cagney@redhat.com>
5990 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5991 (remote-sim.o): Update dependencies.
5992 (d10v-tdep.o): Specify dependencies.
5993 (sim_d10v_h): Define.
5995 2002-05-14 Jim Blandy <jimb@redhat.com>
5997 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5998 * macrotab.c (macro_lookup_inclusion, find_definition,
5999 new_macro_table): Same.
6001 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6002 not `! strcmp ()'. This is a dubious improvement.
6003 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6005 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6006 although it's not necessary, to avoid a warning.
6008 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6010 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6011 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6012 TYPE_INSTANCE_FLAGS.
6013 (struct main_type): New.
6014 (struct type): Move most members to struct main_type. Change
6015 cv_type and as_type to new type_chain member. Add instance_flags.
6016 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6017 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6018 (finish_cv_type): Remove prototype.
6019 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6021 (alloc_type_instance): New function.
6022 (smash_type): New function.
6023 (make_pointer_type, make_reference_type, make_function_type)
6024 (smash_to_member_type, smash_to_method_type): Call smash_type.
6025 (make_qualified_type): New function.
6026 (make_type_with_address_space): Call make_qualified_type.
6027 (make_cv_type): Likewise.
6028 (finish_cv_type): Remove unnecessary function.
6029 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6030 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6031 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6032 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6033 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6034 * hpread.c (hpread_read_struct_type): Likewise.
6035 * stabsread.c (read_struct_type): Likewise.
6037 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6039 * configure.tgt: Add a catch all sh* target, for cases like
6040 sh[2,3,4]-elf and sh-hms.
6042 2002-05-14 Keith Seitz <keiths@redhat.com>
6044 * event-loop.c (create_file_handler): Don't do anything but
6045 update data when we are given a fd which we are already
6048 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6050 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6051 (update_context): Use __func__ in warnings.
6053 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6055 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6056 and tcp_close to net_open and net_close.
6057 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6058 using UDP if requested. Don't try to disable Nagle on UDP
6060 * remote.c (remote_serial_open): New function. Warn about UDP.
6061 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6063 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6065 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6067 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6069 * configure.tgt: Remove sh-hms target.
6070 * MAINTAINERS: Don't list sh-hms as a separate target.
6072 2002-05-13 Jim Blandy <jimb@redhat.com>
6074 Add first preprocessor macro-expansion files.
6075 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6076 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6077 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6078 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6079 (COMMON_OBS): Add macrotab.o, macroexp.o.
6080 (macroexp.o, macrotab.o): New rules.
6082 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6084 * config/m88k/tm-m88k.h: Update copyright.
6085 (m88k_target_write_pc): Declare
6086 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6087 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6088 (SHIFT_INST_REGS): Update definition.
6089 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6090 using old definition of TARGET_WRITE_PC.
6091 * regcache.c (generic_target_write_pc): Delete code handling
6093 * gdbarch.sh (NNPC_REGNUM): Delete.
6094 * gdbarch.h, gdbarch.c: Regenerate.
6096 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6098 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6101 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6103 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6104 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6105 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6107 * c-typeprint.c (cp_type_print_method_args): Likewise.
6108 (c_type_print_args): Likewise.
6109 * d10v-tdep.c (d10v_push_arguments): Likewise.
6110 (d10v_extract_return_value): Likewise.
6111 * expprint.c (print_subexp): Likewise.
6112 * gdbtypes.c (lookup_primitive_typename): Likewise.
6113 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6114 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6115 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6116 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6117 (TYPE_VECTOR): Likewise.
6118 * hpread.c (hpread_read_struct_type)
6119 (fix_static_member_physnames, fixup_class_method_type)
6120 (hpread_type_lookup): Likewise.
6121 * mdebugread.c (parse_symbol, parse_type): Likewise.
6122 * p-lang.c (is_pascal_string_type): Likewise.
6123 * valops.c (hand_function_call): Likewise.
6124 * x86-64-tdep.c (classify_argument): Likewise.
6126 * hpread.c (hpread_read_function_type)
6127 (hpread_read_doc_function_type): Call replace_type.
6128 * dstread.c (create_new_type): Delete.
6129 (decode_dst_structure, process_dst_function): Call alloc_type.
6130 Use type access macros.
6132 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6134 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6135 the're not supported by the current architecture.
6136 (i387_fill_fxsave): Likewise.
6138 2002-05-12 Fred Fish <fnf@redhat.com>
6140 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6141 sect_index_xxx members to index the first slot in section_offsets
6142 if all of the section_offsets are zero.
6144 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6146 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6147 checked in with last change.
6149 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6151 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6152 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6155 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6157 * Makefile.in: Update dependencies.
6159 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6161 * language.c (local_hex_string_custom): Simplify. Do not depend
6162 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6164 * memattr.c (mem_info_command): Replace calls to
6165 longest_local_hex_string and longest_local_hex_string_custom.
6166 * buildsym.c (make_blockvector): Ditto.
6167 * solib.c (info_sharedlibrary_command): Ditto.
6168 * tracepoint.c (tracepoints_info): Ditto.
6169 * symtab.c (print_msymbol_info): Ditto.
6171 * language.c (local_hex_string): Delete.
6172 (local_hex_string_custom): Delete.
6173 (longest_local_hex_string): Rename to local_hex_string.
6174 (longest_local_hex_string_custom): Rename to
6175 local_hex_string_custom.
6176 * language.h (local_hex_string): Change parameter type to LONGEST.
6177 (local_hex_string_custom): Ditto.
6178 (longest_local_hex_string): Delete declaration.
6179 (longest_local_hex_string_custom): Ditto.
6181 * solib.c: Update copyright.
6182 * memattr.c: Update copyright.
6184 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6186 * arch-utils.h (legacy_register_to_value): Declare.
6187 (legacy_value_to_register): Declare.
6188 (legacy_convert_register_p): Declare.
6189 * arch-utils.c (legacy_register_to_value): New function.
6190 (legacy_value_to_register): New function.
6191 (legacy_convert_register_p): New function.
6193 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6194 (VALUE_TO_REGISTER): Define.
6195 (CONVERT_REGISTER_P): Define.
6196 * gdbarch.h, gdbarch.c: Regenerate.
6198 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6200 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6203 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6204 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6206 * Makefile.in: Update dependencies for valops.c.
6207 * valops.c: Include "gdb_assert.h".
6208 (typecmp): Skip THIS parameter to methods.
6209 (find_method_list): Remove static_memfuncp argument,
6210 update callers. Check for stub methods.
6211 (find_value_oload_method_list): Don't set *static_memfuncp.
6212 (find_overload_match): Don't check for stub methods. Assert
6213 that methods are not stubbed. Handle static methods.
6214 (value_find_oload_method_list): Remove static_memfuncp argument.
6215 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6216 to the argument list for static stub methods.
6217 * value.h (value_find_oload_method_list): Update prototype.
6219 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6221 * arch-utils.h (generic_register_size): Declare.
6222 (generic_register_raw_size, generic_register_virtual_size): Delete
6224 * arch-utils.c (generic_register_raw_size): Delete.
6225 (generic_register_size): New function.
6226 (generic_register_virtual_size): Delete.
6228 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6229 default generic_register_size.
6230 * gdbarch.h, gdbarch.c: Re-generate.
6232 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6233 register_virtual_size.
6234 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6235 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6237 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6239 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6240 * gdbarch.h, gdbarch.c: Regenerate.
6241 * gnu-v3-abi.c: Update copyright.
6242 (vtable_address_point_offset): Update.
6243 (gnuv3_rtti_type): Update.
6244 (gnuv3_baseclass_offset): Update.
6245 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6246 (init_fetch_link_map_offsets): Update.
6247 * remote.c (get_remote_state): Update.
6249 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6251 * TODO: Remove value_headof/value_from_vtable_info comment.
6252 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6253 * values.c (value_headof, value_from_vtable_info): Delete.
6254 * value.h (value_from_vtable_info): Delete prototype.
6256 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6258 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6259 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6261 (gdb_assert_h): Define.
6262 (gdb_wait_h): Define.
6263 (gdb_regex_h): Define.
6265 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6267 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6268 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6270 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6272 * nbsd-tdep.c: Fix comment.
6274 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6276 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6277 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6278 (nbsd-tdep.o): New dependency list.
6279 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6281 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6282 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6283 * nbsd-tdep.c: New file.
6284 * nbsd-tdep.h: New file.
6285 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6287 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6288 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6289 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6290 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6292 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6294 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6295 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6296 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6297 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6298 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6299 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6301 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6303 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6304 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6305 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6306 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6307 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6308 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6309 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6311 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6313 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6314 fetch_elfcore_registers to...
6315 * i386nbsd-tdep.c: ...here.
6316 (i386nbsd_use_struct_convention): Rename to...
6317 (i386nbsd_aout_use_struct_convention): ...this.
6318 (i386nbsd_supply_reg): New function.
6319 (i386nbsd_fill_reg): New function.
6320 (fetch_core_registers): Use i386nbsd_supply_reg.
6321 (fetch_elfcore_registers): Likewise.
6322 (_initialize_i386nbsd_tdep): New function.
6323 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6324 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6325 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6326 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6327 (i386nbsd_aout_use_struct_convention): ...this.
6329 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6331 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6332 (store_inferior_registers): Use shnbsd_fill_reg.
6333 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6334 sh_nbsd_supply_register): Collapse into...
6335 (shnbsd_supply_reg): ...this.
6336 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6337 (shnbsd_fill_reg): ...this.
6338 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6339 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6340 (fetch_core_registers): Use shnbsd_supply_reg.
6341 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6342 (sh_nbsd_core_fns): Rename to...
6343 (shnbsd_core_fns): ...this.
6344 (sh_nbsd_elfcore_fns): Rename to...
6345 (shnbsd_elfcore_fns): ...this.
6346 (sh_nbsd_init_abi): Rename to...
6347 (shnbsd_init_abi): ...this.
6348 (_initialize_sh_nbsd_tdep): Rename to...
6349 (_initialize_shnbsd_tdep): ...this.
6350 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6351 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6352 sh_nbsd_fill_register): Remove prototypes.
6353 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6355 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6357 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6358 (i387-nat.o): Delete dependency list.
6359 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6360 (x86-64-linux-nat.o): Likewise.
6361 * i387-nat.c: Delete file, moving contents to...
6362 * i387-tdep.c: ...here.
6363 * i387-nat.h: Rename...
6364 * i387-tdep.h: ...to this.
6365 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6366 * i386-linux-nat.c: Likewise.
6367 * i386bsd-nat.c: Likewise.
6368 * i386gnu-nat.c: Likewise.
6369 * i386nbsd-nat.c: Likewise.
6370 * i386v4-nat.c: Likewise.
6371 * x86-64-linux-nat.c: Likewise.
6372 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6373 * config/i386/go32.mh (NATDEPFILES): Likewise.
6374 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6375 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6376 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6377 * config/i386/linux.mh (NATDEPFILES): Likewise.
6378 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6379 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6380 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6381 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6383 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6385 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6386 (alphanbsd-nat.o): Remove dependency list.
6387 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6388 * alphanbsd-nat.c: Delete. Contents moved to...
6389 * alphanbsd-tdep.c: ...here.
6390 (_initialize_alphanbsd_tdep): Register core functions.
6391 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6393 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6395 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6396 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6397 (alphanbsd-nat.o): Likewise.
6398 (alphabsd-tdep.o): New dependency list.
6399 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6400 (fill_gregset): Use alphabsd_fill_reg.
6401 (supply_fpregset): Use alphabsd_supply_fpreg.
6402 (fill_fpregset): Use alphabsd_fill_fpreg.
6403 (fetch_inferior_registers): Use struct reg and struct fpreg
6404 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6405 and alphabsd_supply_fpreg.
6406 (store_inferior_registers): Use struct reg and struct fpreg
6407 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6408 and alphabsd_fill_fpreg.
6409 * alphabsd-tdep.c: New file.
6410 * alphabsd-tdep.h: New file.
6411 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6412 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6413 alphabsd_supply_fpreg.
6414 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6415 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6417 2002-05-11 Eric Christopher <echristo@redhat.com>
6419 * mips-tdep.c (mips_double_register_type): Fix thinko.
6420 (mips_single_register_type): Ditto.
6421 * MAINTAINERS: Add self.
6423 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6425 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6426 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6427 right thing on architectures with different endianness and/or
6430 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6432 From Christian Limpach <chris@Pin.LU>
6433 * configure.in: Change sed expression which comments out
6434 NATDEPFILES to also comment out continuation lines.
6435 * configure: Regenerate.
6437 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6439 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6442 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6444 * sh-tdep.c: Include correct file.
6446 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6448 New support for sh64-elf (sh5) target.
6450 * configure.tgt: For sh64-elf target, default to sh-elf.
6452 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6453 (struct gdbarch_tdep): Add new fields for new registers and ABI
6456 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6457 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6458 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6459 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6460 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6461 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6462 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6463 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6464 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6465 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6466 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6467 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6468 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6469 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6470 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6471 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6472 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6473 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6474 sign_extend, sh64_nofp_frame_init_saved_regs,
6475 sh64_init_extra_frame_info, sh64_get_saved_register,
6476 sh64_extract_struct_value_address, sh64_pop_frame,
6477 sh64_push_arguments, sh64_extract_return_value,
6478 sh64_store_return_value, sh64_show_media_regs,
6479 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6480 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6481 sh_sh64_register_virtual_type,
6482 sh_sh64_register_convert_to_virtual,
6483 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6484 sh64_register_read, sh64_pseudo_register_write,
6485 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6486 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6487 sh64_do_pseudo_register, sh_compact_do_registers_info,
6488 sh64_do_registers_info, sh_gdbarch_init): New functions.
6490 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6492 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6494 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6496 * linespec.c (decode_line_1): Check for a double quote after
6497 a filename correctly.
6499 2002-05-10 Jim Blandy <jimb@redhat.com>
6501 Properly track the size of the current objfile's .debug_line section.
6502 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6503 (DWARF_LINE_SIZE): New macro.
6504 (dwarf2_build_psymtabs_hard): Record the line section's size in
6505 the partial symbol table.
6506 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6509 2002-05-10 Petr Sorfa <petrs@caldera.com>
6511 * ia64-tdep.c: Handle breakpoints on L instruction type
6512 in MLX instruction bundle by moving the breakpoint to
6513 the third slot (X instruction type) as L holds only data.
6515 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6517 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6518 (process_one_symbol): Complain about discarding local symbols
6519 due to a misplaced N_LBRAC entry.
6521 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6523 From Daniel Berlin <dan@cgsoftware.com>
6524 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6525 decrease the depth we are at, in the case of templates.
6527 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6529 * mips-tdep.c (mips_float_register_type): New function.
6530 (mips_double_register_type): New function.
6531 (mips_print_register): Use them.
6532 (do_fp_register_row): Likewise.
6534 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6536 * signals/signals.c (signals): Remove conditional compilation around
6537 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6538 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6540 2002-05-09 Michael Snyder <msnyder@redhat.com>
6542 * remote-rdp.c (remote_rdp_can_run): Remove.
6544 2002-05-09 Tom Tromey <tromey@redhat.com>
6546 * jv-valprint.c (java_val_print): Handle `char' as a special case
6549 2002-05-09 Michael Snyder <msnyder@redhat.com>
6551 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6552 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6553 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6554 str r(0123),[sp,#nn].
6555 (arm_skip_prologue): Ditto. Also make disassembly
6556 order-independent by placing it in a loop.
6558 2002-05-06 Michael Snyder <msnyder@redhat.com>
6560 * stabsread.c (read_type): Add recognition for new attribute:
6561 "@V;" means that an array type is actually a vector.
6562 This is analogous to the vector flag that's been added to dwarf2.
6564 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6566 * i386-tdep.h (i386_abi): New enum.
6567 (struct gdbarch_tdep): Replace os_ident member with abi.
6568 (i386_gdbarch_register_os_abi): New prototype.
6569 * i386-tdep.c (i386_abi_names): New array.
6570 (process_note_abi_tag_sections): Removed.
6571 (process_note_sections): New function.
6572 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6573 (struct i386_abi_handler): New struct.
6574 (i386_abi_handler_list): New variable.
6575 (i386_gdbarch_register_os_abi): New function.
6576 (i386_gdbarch_init): Adapt for the changes given above.
6578 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6580 * gregset.h: Say "GNU/Linux".
6582 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6584 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6585 (build_gdbtypes): Build builtin_type_v2_float.
6586 (_initialize_gdbtypes): Register new builtin type.
6588 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6590 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6591 (clear_gdbarch_swap): New function.
6592 (initialize_non_multiarch): Call.
6593 (gdbarch_update_p): Before calling init(), swap out and clear the
6594 existing architecture.
6595 * gdbarch.c: Regenerate.
6597 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6599 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6602 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6604 * sh-nbsd-nat.c: Rename to...
6605 * shnbsd-nat.c: ...this.
6606 * sh-nbsd-tdep.c: Rename to...
6607 * shnbsd-tdep.c: ...this.
6608 * sh-nbsd-tdep.h: Rename to...
6609 * shnbsd-tdep.h: ...this.
6610 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6611 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6613 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6615 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6616 concatenation for command help messages.
6618 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6620 * NEWS: Note new sh*-*-netbsdelf* configuration.
6621 * configure.host: Set gdb_host_cpu to sh for all sh*.
6622 (sh*-*-netbsdelf*): New host.
6623 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6624 (sh*-*-netbsdelf*): New target.
6625 * sh-nbsd-nat.c: New file.
6626 * sh-nbsd-tdep.c: New file.
6627 * sh-nbsd-tdep.h: New file.
6628 * config/sh/nbsd.mh: New file.
6629 * config/sh/nbsd.mt: New file.
6630 * config/sh/nm-nbsd.h: New file.
6631 * config/sh/tm-nbsd.h: New file.
6633 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6635 * sh-tdep.c (sh_osabi_names): Declare.
6636 (process_note_abi_tag_sections): New function.
6637 (get_elfosabi): Ditto.
6638 (sh_gdbarch_register_os_abi): Ditto.
6639 (sh_dump_tdep): Ditto.
6640 _initialize_sh_tdep): Use gdbarch_register to register
6641 sh_gdbarch_init and sh_dump_tdep.
6642 * config/sh/tm-sh.h (sh_osabi): Declare.
6643 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6645 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6647 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6648 (thumb_scan_prologue): Ditto.
6649 (arm_find_callers_reg): Ditto.
6650 (arm_frame_chain): Ditto.
6651 (arm_init_extra_frame_info): Ditto.
6652 (arm_frame_saved_pc): Ditto.
6653 (arm_pop_frame): Ditto.
6654 (arm_push_return_address): New function.
6655 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6656 call_dummy_location, call_dummy_breakpoint_offset_p,
6657 call_dummy_breakpoint_offset, call_dummy_p,
6658 call_dummy_stack_adjust_p, call_dummy_words,
6659 sizeof_call_dummy_words, call_dummy_start_offset,
6660 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6661 call_dummy_address, push_return_address and push_dummy_frame for
6662 generic dummy frames.
6664 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6666 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6667 size computation for alloca.
6668 (sh_fp_frame_init_saved_regs): Likewise.
6670 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6672 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6673 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6674 * arm-tdep.c (arm_store_return_value): Use them.
6675 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6676 * remote-rdp.c (remote_rdp_fetch_register): Use
6677 ARM_MAX_REGISTER_RAW_SIZE.
6678 (remote_rdp_store_register): Likewise.
6680 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6682 * dwarf2cfi.c: Code cleanup, removed unused variables,
6683 added default labels to switch {} statements.
6684 * x86-64-tdep.c: Ditto.
6685 * x86-64-linux-nat.c: Ditto.
6687 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6689 * solib.h: Protect against multiple inclusion.
6691 2002-05-06 Jim Blandy <jimb@redhat.com>
6693 Add first preprocessor macro-expansion files.
6694 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6695 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6696 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6697 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6698 (COMMON_OBS): Add macrotab.o, macroexp.o.
6699 (macroexp.o, macrotab.o): New rules.
6701 Separate the job of reading the line number info statement program
6702 header (...expialidocious) out into its own function.
6703 * dwarf2read.c (struct line_head, struct filenames, struct
6704 directories): Replace with...
6705 (struct line_header): New structure, containing the full
6706 contents of the statement program header, including the
6707 include directory and file name tables.
6708 (read_file_scope): If we have line number info, instead of just
6709 calling dwarf_decode_lines to do all the work, call
6710 dwarf_decode_line_header first to get a `struct line_header'
6711 containing the data in the statement program header, and then
6712 pass that to dwarf_decode_lines, which will pick up where that
6713 left off. Be sure to clean up the `struct line_header' object.
6714 (dwarf_decode_line_header, free_line_header, add_include_dir,
6715 add_file_name): New functions.
6716 (dwarf_decode_lines): Move all the code to read the statement
6717 program header into dwarf_decode_line_header. Take the line
6718 header it built as the first argument, instead of the offset to
6719 the compilation unit's line number info. Use the new `struct
6720 line_header' type instead of the old structures. No need to do
6721 cleanups here now, since we don't allocate anything.
6722 (dwarf2_statement_list_fits_in_line_number_section,
6723 dwarf2_line_header_too_long): New complaints.
6725 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6727 * gdbtypes.c (init_vector_type): New function.
6728 (build_builtin_type_vec128): Simplify the representation of SIMD
6730 (build_gdbtypes): Initialize new builtin vector types.
6731 (_initialize_gdbtypes): Register new vector types with gdbarch.
6732 (builtin_type_v4_float, builtin_type_v4_int32,
6733 builtin_type_v8_int16, builtin_type_v16_int8,
6734 builtin_type_v2_int32, builtin_type_v4_int16,
6735 builtin_type_v8_int8): New (renamed) SIMD types.
6737 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6739 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6740 (i387_fill_fxsave): Likewise.
6742 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6744 * alpha-tdep.c (alpha_extract_return_value): Don't use
6745 non-constant array size in prototype.
6747 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6749 From Brian Taylor <briant at model dot com>:
6750 * ui-out.c (ui_out_field_core_addr): Use the function
6751 longest_local_hex_string_custom'to format addresses > 32 bits
6754 * ui-out.c (ui_out_field_core_addr): Update comment.
6756 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6758 * stack.c (select_and_print_frame): Make static. Delete the
6760 (func_command): Update call.
6761 (select_frame_command): Delete code computing the frame level.
6762 * frame.h (select_and_print_frame): Delete declaration.
6764 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6766 * sparc-tdep.c (sparc_get_saved_register): Comment why
6767 get_prev_frame call is safe.
6769 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6771 * frame.h (select_frame): Delete level parameter.
6772 * stack.c (select_frame): Update. Use frame_relative_level to
6773 obtain the frame's level.
6774 (select_and_print_frame): Update call.
6775 (select_frame_command): Ditto.
6776 (up_silently_base): Ditto.
6777 (down_silently_base): Ditto.
6778 * ocd.c (ocd_start_remote): Ditto.
6779 * remote-rdp.c (remote_rdp_open): Ditto.
6780 * remote-mips.c (mips_initialize): Ditto.
6781 (common_open): Ditto.
6782 * remote-e7000.c (e7000_start_remote): Ditto.
6783 * m3-nat.c (select_thread): Ditto.
6784 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6785 (child_get_current_exception_event): Ditto.
6786 * varobj.c (varobj_create): Ditto.
6787 (varobj_update): Ditto.
6788 (c_value_of_root): Ditto.
6789 * tracepoint.c (finish_tfind_command): Ditto.
6790 * corelow.c (core_open): Ditto.
6791 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6792 * thread.c (info_threads_command): Ditto.
6793 (switch_to_thread): Ditto.
6794 * infrun.c (normal_stop): Ditto.
6795 (restore_selected_frame): Ditto.
6796 (restore_inferior_status): Ditto.
6797 * breakpoint.c (insert_breakpoints): Ditto.
6798 (watchpoint_check): Ditto.
6799 (bpstat_stop_status): Ditto.
6800 (do_enable_breakpoint): Ditto.
6801 * blockframe.c (flush_cached_frames): Ditto.
6802 (reinit_frame_cache): Ditto.
6804 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6806 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6809 2002-05-04 Jim Blandy <jimb@redhat.com>
6811 * gdbtypes.c (replace_type): Doc fix.
6813 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6815 * valprint.c (strcat_longest): Delete commented out function.
6818 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6820 * MAINTAINERS: Mark a29k as deleted.
6821 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6822 Move new configurations to the top.
6823 * configure.tgt: Remove a29k.
6824 * config/a29k/tm-vx29k.h: Delete.
6825 * config/a29k/vx29k.mt: Delete.
6826 * config/a29k/tm-a29k.h: Delete.
6827 * config/a29k/a29k-udi.mt: Delete.
6828 * config/a29k/a29k.mt: Delete.
6829 * a29k-tdep.c: Delete.
6830 * remote-udi.c: Delete.
6831 * remote-mm.c: Delete.
6832 * remote-eb.c: Delete.
6833 * remote-adapt.c: Delete.
6834 * Makefile.in: Remove obsolete code.
6835 * config/s390/s390x.mt: Ditto.
6836 * config/s390/s390.mt: Ditto.
6837 * config/sparc/sparclynx.mh: Ditto.
6838 * config/sparc/linux.mh: Ditto.
6839 * config/pa/hppaosf.mh: Ditto.
6840 * config/pa/hppabsd.mh: Ditto.
6841 * config/ns32k/nbsd.mt: Ditto.
6842 * config/mips/vr5000.mt: Ditto.
6843 * config/m68k/sun3os4.mh: Ditto.
6844 * config/m68k/nbsd.mt: Ditto.
6845 * config/m68k/m68klynx.mh: Ditto.
6846 * config/m32r/m32r.mt: Ditto.
6847 * config/i386/x86-64linux.mt: Ditto.
6848 * config/i386/nbsdelf.mt: Ditto.
6849 * config/i386/nbsd.mt: Ditto.
6850 * config/i386/i386lynx.mh: Ditto.
6852 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6854 * target.c (debug_print_register): New function. Handle oversize
6856 (debug_to_fetch_registers): Call.
6857 (debug_to_store_registers): Call.
6859 2002-05-03 Jim Blandy <jimb@redhat.com>
6861 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6862 (read_type): Doc fix.
6863 * gdbtypes.c (replace_type): Doc fix.
6865 * stabsread.c (multiply_defined_struct): New complaint.
6866 (read_struct_type): If the type we were passed isn't empty, or
6867 incomplete, don't read the new struct type into it; complain,
6868 and return the original type unchanged. Take a new `type_code'
6869 argument, which is the type code for the new type.
6870 (read_type): Rather than storing the type's type code here, pass
6871 it as an argument to read_struct_type, and let that take care of
6872 storing it. That way, we don't overwrite the original type code,
6873 so read_struct_type can use it to decide whether we're overwriting
6874 something we shouldn't.
6875 (complain_about_struct_wipeout): New function.
6877 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6879 * gdbarch.sh: Assert that gdbarch is non-NULL.
6880 * gdbarch.c: Regenerate.
6882 2002-05-03 Jason Merrill <jason@redhat.com>
6884 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6887 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6889 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6890 (x86_64_dwarf2gdb_regno_map_length),
6891 (x86_64_dwarf2_reg_to_regnum): Added.
6892 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6893 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6894 (_initialize_x86_64_tdep): Synced with the change above.
6895 (x86_64_skip_prologue): Reformulated message.
6897 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6899 * f-exp.y: Also use new prev_lexptr variable
6900 to improve error reporting. Based on Michael Snyder
6901 2002-04-24 dated patch to c-exp.y.
6902 * jv-exp.y: Likewise.
6903 * m2-exp.y: Likewise.
6905 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6907 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6908 we are dealing with vectors.
6910 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6912 * config/m68k/tm-nbsd.h: Obvious fix,
6913 correct machine name.
6915 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6917 * p-typeprint.c (pascal_type_print_base): Add support
6918 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6920 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6922 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6923 for fondamental pascal 'char' type.
6925 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6927 * p-lang.h (is_pascal_string_type): Declaration changed,
6928 new sixth argument of type char ** added.
6929 * p-lang.c (is_pascal_string_type): Implementation
6930 changed. Args length_pos, length_size, string_pos, char_size
6931 can now be NULL. New argument arrayname set to the field
6932 name of the char array. Return value set to char array
6933 field index plus one.
6934 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6935 is_pascal_string_type function.
6937 2002-05-02 Andrew Cagney <cagney@redhat.com>
6939 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6940 <cagney@redhat.com> change.
6941 * gdbarch.c: Regenerate.
6943 2002-05-02 Andrew Cagney <cagney@redhat.com>
6945 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6946 before probing for a new one. Detect errorenous gdbarch_init
6948 * gdbarch.c: Regenerate.
6950 2002-05-01 Andrew Cagney <cagney@redhat.com>
6952 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6953 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6954 * config/v850/tm-v850.h: Ditto. Update copyright.
6956 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6958 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6961 2002-04-30 Michael Snyder <msnyder@redhat.com>
6963 * arm-tdep.c: Whitespace clean-ups.
6964 (arm_skip_prologue): Fix thinko; two lines
6965 should have been removed as part of 4/24 change.
6967 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6969 * rs6000-tdep.c: Added comment describing how fpscr register
6970 numbers were chosen.
6972 2002-04-30 Michael Snyder <msnyder@redhat.com>
6974 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6976 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6978 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6979 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6980 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6982 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6984 From Louis Hamilton <hamilton@redhat.com>:
6985 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6986 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6987 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6988 not bfd-private xcoff data, to determine wordsize.
6989 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6991 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6993 GDB 5.2 released from 5.2 branch.
6995 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6997 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6998 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6999 (x86_64_register_info_table): Added comments with register numbers.
7001 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7003 * rs6000-tdep.c (rs6000_extract_return_value,
7004 rs6000_store_return_value): Handle returning vectors.
7005 (rs6000_gdbarch_init): Use
7006 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7007 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7009 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7011 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7012 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7014 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7016 * hpread.c (hpread_psymtab_to_symtab_1,
7017 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7018 with fprintf_unfiltered (gdb_stderr,...).
7020 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7022 * remote-array.c (printf_monitor, write_monitor,
7023 array_insert_breakpoint, array_remove_breakpoint ):
7024 Replace fprintf (stderr,...
7025 with fprintf_unfiltered (gdb_stderr,....
7026 * remote-es.c: Likewise.
7027 * remote-os9k.c: Likewise.
7028 * remote-st.c: Likewise.
7030 2002-04-28 Andreas Schwab <schwab@suse.de>
7032 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7033 linux-proc.o and gcore.o.
7035 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7037 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7038 code without frame pointers.
7040 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7042 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7045 2002-04-26 Ben Elliston <bje@redhat.com>
7047 * target.c (do_xfer_memory): Correct reference to the new option
7048 "trust-readonly-sections".
7050 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7052 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7053 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7054 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7056 (read_array_type): Record the fact that this array type is really a
7057 vector (i.e. are passed in by value).
7059 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7061 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7062 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7063 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7064 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7065 * alpha-linux-tdep.c: Include frame.h.
7066 (alpha_linux_sigcontext_addr): New function.
7067 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7068 alpha_linux_sigcontext_addr.
7069 * alpha-osf1-tdep.c: Include gdbcore.h.
7070 (alpha_osf1_sigcontext_addr): New function.
7071 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7072 alpha_osf1_sigcontext_addr.
7073 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7074 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7076 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7078 * stack.c (selected_frame_level):
7079 (select_frame): Do not set selected_frame_level.
7080 * frame.h (selected_frame_level): Delete declaration.
7082 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7084 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7085 convert_from_func_ptr-addr when AIX / PowerOpen.
7087 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7089 * valops.c (hand_function_call): Call
7090 generic_save_call_dummy_addr.
7091 * frame.h (generic_save_call_dummy_addr): Declare.
7092 * blockframe.c (struct dummy_frame): Add fields call_lo and
7094 (generic_find_dummy_frame): Check for PC in range call_lo to
7095 call_hi instead of entry_point_address.
7096 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7097 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7098 (generic_save_call_dummy_addr): New function.
7100 2002-04-24 David S. Miller <davem@redhat.com>
7102 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7103 sparc_skip_prologue.
7104 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7105 information to find prologue when possible.
7106 (sparc_prologue_frameless_p): Call examine_prologue directly.
7107 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7108 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7110 (SKIP_PROLOGUE): Likewise.
7112 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7114 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7115 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7116 indicate that the condition it was testing is always true.
7117 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7118 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7119 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7121 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7123 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7124 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7125 tdep->jb_pc and tdep->jb_elt_size.
7126 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7127 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7128 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7129 * alpha-nat.c (get_longjmp_target): Remove.
7130 (JB_ELEMENT_SIZE): Ditto.
7132 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7133 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7134 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7135 to alpha_get_longjmp_target.
7136 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7137 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7138 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7140 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7142 * README: Update to GDB 5.2.
7144 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7146 * gdbarch.sh (LC_ALL): Set to `c'.
7148 2002-04-25 Theodore A. Roth <troth@verinet.com>
7150 * avr-tdep.c: Ran through gdb_indent.sh.
7152 2002-04-25 Theodore A. Roth <troth@verinet.com>
7154 * MAINTAINERS: Add myself as AVR maintainer.
7155 * NEWS: Note new target avr.
7157 2002-04-25 Theodore A. Roth <troth@verinet.com>
7159 * Makefile.in: Add support for AVR target.
7160 * configure.tgt: Add support for AVR target.
7161 * avr-tdep.c: New file
7162 * config/avr/avr.mt: New file.
7164 2002-04-25 Theodore A. Roth <troth@verinet.com>
7166 * MAINTAINERS: Add myself to write-after-approval.
7168 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7170 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7171 with fprintf_unfiltered (gdb_stderr,....
7173 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7176 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7178 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7180 * p-exp.y: Also use new prev_lexptr variable
7181 to improve error reporting. Based on Michael Snyder
7182 2002-04-24 dated patch to c-exp.y.
7184 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7186 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7187 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7188 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7190 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7192 (FUNCTION_START_OFFSET): Remove.
7193 (BREAKPOINT): Ditto.
7195 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7197 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7200 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7202 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7203 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7204 alpha_linux_pc_in_sigtramp.
7205 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7206 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7207 alpha_osf1_pc_in_sigtramp.
7208 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7209 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7210 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7211 alphafbsd_pc_in_sigtramp.
7212 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7213 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7214 alphanbsd_pc_in_sigtramp.
7215 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7216 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7218 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7220 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7222 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7224 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7226 (alphanbsd-nat.o): New dependency list.
7227 (alphanbsd-tdep.o): Ditto.
7228 * NEWS: Note new native NetBSD/alpha configuration.
7229 * alphanbsd-nat.c: New file.
7230 * alphanbsd-tdep.c: Ditto.
7231 * configure.host (alpha*-*-netbsd*): New host.
7232 * configure.tgt (alpha*-*-netbsd*): New target.
7233 * config/alpha/nbsd.mh: New file.
7234 * config/alpha/nbsd.mt: Ditto.
7235 * config/alpha/nm-nbsd.h: Ditto.
7236 * config/alpha/tm-nbsd.h: Ditto.
7238 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7240 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7241 (alpha-osf1-tdep.o): New dependency list.
7242 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7243 and skip_sigtramp_frame members.
7244 * alpha-linux-tdep.c: Include gdbcore.h.
7245 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7246 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7247 * alpha-osf1-tdep.c: New file.
7248 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7250 (alpha_frame_past_sigtramp_frame): New function.
7251 (alpha_dynamic_sigtramp_offset): Ditto.
7252 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7253 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7254 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7255 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7256 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7257 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7258 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7259 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7260 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7261 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7262 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7263 to find_solib_trampoline_target.
7264 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7265 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7266 (SKIP_TRAMPOLINE_CODE): Remove.
7267 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7268 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7269 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7270 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7271 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7272 (PROC_SIGTRAMP_MAGIC): Ditto.
7273 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7274 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7275 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7276 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7277 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7279 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7281 * NEWS: Note that Alpha targets are now multi-arch.
7283 2002-04-24 Michael Snyder <msnyder@redhat.com>
7285 * parser-defs.h (prev_lexptr): New external variable.
7286 * parse.c (parse_exp_1): Set prev_lexptr to null before
7287 calling the language-specific parser.
7288 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7289 (yyerror): Use prev_lexptr in error reporting.
7291 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7293 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7294 * gregset.h: If FILL_FPXREGSET is defined, provide
7295 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7296 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7297 is defined, call fill_fpxregset.
7299 2002-04-24 Roland McGrath <roland@frob.com>
7301 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7302 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7303 (supply_gregset, supply_fpregset): New functions.
7305 * gnu-nat.c (gnu_find_memory_regions): New function.
7306 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7307 (gnu_xfer_memory): Add a cast.
7309 2002-04-24 Michael Snyder <msnyder@redhat.com>
7311 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7312 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7313 of argument regs ("str r(0123), [r11, #-nn"]).
7314 (arm_skip_prologue): Better handling for frameless functions.
7315 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7316 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7318 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7320 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7321 NUM_PSEUDO_REGS can be used.
7323 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7325 * arch-utils.h: Update copyright.
7327 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7328 * gdbarch.h, gdbarch.c: Re-generate.
7330 * inferior.h (IN_SIGTRAMP): Delete definition.
7331 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7332 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7334 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7335 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7336 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7337 (find_proc_framesize): Ditto.
7338 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7339 (alpha_init_extra_frame_info): Ditto.
7340 * infrun.c (handle_inferior_event): Ditto.
7341 (handle_inferior_event): Ditto.
7342 (check_sigtramp2): Ditto.
7343 * blockframe.c (create_new_frame): Ditto.
7344 (get_prev_frame): Ditto.
7345 * ppc-linux-tdep.c: Update comments.
7346 * i386-linux-tdep.c: Update comments.
7347 * breakpoint.c (bpstat_what): Update comment.
7349 2002-04-24 David S. Miller <davem@redhat.com>
7351 * i960-tdep.c (register_in_window_p): New function.
7352 (i960_find_saved_register): Use it instead of
7353 REGISTER_IN_WINDOW_P.
7354 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7356 * symtab.h (find_stab_function_addr): Kill extern.
7357 * minsyms.c (find_stab_function_addr): Remove from here...
7358 * dbxread.c: ... to here, and mark it static.
7360 2002-04-20 David S. Miller <davem@redhat.com>
7362 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7363 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7365 2002-04-21 David S. Miller <davem@redhat.com>
7367 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7368 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7369 (vx_write_register): Likewise.
7371 2002-04-23 J. Brobecker <brobecker@gnat.com>
7373 * source.c (is_regular_file): New function.
7374 (openp): Check wether file to open is a regular file
7375 to avoid opening directories.
7377 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7379 * findvar.c (extract_signed_integer): Cast printf argument
7380 to suppress format warning.
7381 (extract_unsigned_integer): Likewise.
7382 * infcmd.c (registers_info): Likewise.
7383 * top.c (get_prompt_1): Likewise.
7384 * valops.c (value_assign): Likewise.
7385 * valprint.c (print_decimal): Likewise.
7387 2002-04-22 H.J. Lu (hjl@gnu.org)
7389 * c-exp.y (typebase): Support
7391 [long|long long|short] [signed|unsigned] [int|]
7395 signed [long|long long|short] int
7397 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7399 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7401 * vax-tdep.h: New file.
7402 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7403 Make several routines static.
7404 (vax_get_saved_register): New function.
7405 (vax_gdbarch_init): New function.
7406 (_initialize_vax_tdep): Register vax_gdbarch_init.
7407 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7408 Remove macros now under the control of gdbarch.
7410 2002-04-22 Michael Snyder <msnyder@redhat.com>
7412 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7413 Some whitespace and coding standards tweaks.
7415 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7417 * vax-tdep.c: Include regcache.h.
7418 (vax_call_dummy_words): New.
7419 (sizeof_vax_call_dummy_words): New.
7420 (vax_fix_call_dummy): New function.
7421 (vax_saved_pc_after_call): Ditto.
7422 * config/vax/tm-vax.h: Don't include regcache.h.
7423 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7424 (CALL_DUMMY): Remove.
7425 (CALL_DUMMY_WORDS): Define.
7426 (SIZEOF_CALL_DUMMY_WORDS): Define.
7427 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7429 2002-04-18 Michael Snyder <msnyder@redhat.com>
7431 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7433 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7435 * vax-tdep.c (vax_frame_chain): New function.
7436 (vax_push_dummy_frame): Ditto.
7437 (vax_pop_frame): Ditto.
7438 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7439 (FRAMELESS_FUNCTION_INVOCATION): Use
7440 generic_frameless_function_invocation_not.
7441 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7442 (POP_FRAME): Use vax_pop_frame.
7444 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7446 * vax-tdep.c (vax_store_struct_return): New function.
7447 (vax_extract_return_value): Ditto.
7448 (vax_store_return_value): Ditto.
7449 (vax_extract_struct_value_address): Ditto.
7450 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7451 vax_store_struct_return.
7452 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7453 (STORE_RETURN_VALUE): Use vax_store_return_value.
7454 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7456 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7458 * vax-tdep.c (vax_frame_saved_pc): New function.
7459 (vax_frame_args_address_correct): Ditto.
7460 (vax_frame_args_address): Ditto.
7461 (vax_frame_locals_address): Ditto.
7462 (vax_frame_num_args): Move code to be in proximity to
7463 other frame-related functions.
7464 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7465 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7466 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7467 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7468 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7470 2002-04-22 H.J. Lu (hjl@gnu.org)
7472 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7475 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7477 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7478 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7479 (FRAME_INIT_SAVED_REGS): New macro.
7481 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7483 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7485 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7487 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7489 (fetch_osf_core_registers): Likewise.
7490 (supply_gregset): Likewise.
7492 2002-04-22 J. Brobecker <brobecker@gnat.com>
7494 * symfile.h (get_section_index): Define.
7495 * symfile.c (get_section_index): New function.
7496 * mdebugread.c (SC_IS_SBSS): New macro.
7497 (SC_IS_BSS): Return true for the scBss storage class only, as
7498 the scSBss storage class refers to the .sbss section.
7499 (parse_partial_symbols): Discard the symbols which associated
7500 section does not exist.
7501 Make sure to use the .sbss section index for symbols which
7502 storage class is scBss, rather than using the .bss section index.
7504 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7506 * vax-tdep.c: Update copyright years.
7507 (vax_register_name): New function.
7508 (vax_register_byte): Ditto.
7509 (vax_register_raw_size): Ditto.
7510 (vax_register_virtual_size): Ditto.
7511 (vax_register_virtual_type): Ditto.
7512 * config/vax/tm-vax.h: Update copyright years.
7513 (REGISTER_NAMES): Remove.
7514 (REGISTER_NAME): Define.
7515 (REGISTER_BYTE): Use vax_register_byte.
7516 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7517 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7518 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7520 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7522 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7524 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7526 2002-04-21 David S. Miller <davem@redhat.com>
7528 * arch-utils.c (generic_prologue_frameless_p): Kill
7529 SKIP_PROLOGUE_FRAMELESS_P code.
7530 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7532 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7533 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7534 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7536 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7537 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7538 (sparc_gdbarch_init): Pass it to
7539 set_gdbarch_prologue_frameless_p.
7541 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7543 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7544 (alphabsd-nat.o): New dependency list.
7546 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7548 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7550 (alpha-linux-tdep.o): New dependency list.
7551 (alphafbsd-tdep.o): Likewise.
7553 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7555 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7557 * alpha-tdep.c: ...from here.
7558 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7560 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7562 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7563 prototype from here...
7564 * alpha-tdep.h: ...to here.
7566 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7568 * frame.h (selected_frame_level): Document as deprecated.
7569 (frame_relative_level): Declare.
7570 * stack.c (frame_relative_level): New function.
7571 (selected_frame_level): Document as deprecated.
7572 (select_frame): Do not set the selected_frame_level.
7574 * stack.c (frame_info, record_selected_frame): Update.
7575 (frame_command, current_frame_command): Update.
7576 (up_silently_base, up_command, down_silently_base): Update.
7577 (down_command): Update.
7578 * inflow.c (kill_command): Update.
7579 * tracepoint.c (finish_tfind_command): Update.
7580 * corelow.c (core_open): Update.
7581 * thread.c (info_threads_command): Update.
7582 (do_captured_thread_select): Update.
7583 * infcmd.c (finish_command): Update.
7584 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7586 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7588 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7590 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7592 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7595 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7597 * alphafbsd-tdep.c: Update copyright years. Include
7599 (alphafbsd_use_struct_convention): Make static.
7600 (alphafbsd_init_abi): New function.
7601 (_initialize_alphafbsd_tdep): New function.
7602 * config/alpha/tm-fbsd.h: Update copyright years.
7603 (USE_STRUCT_CONVENTION): Remove.
7605 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7607 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7608 an Alpha ABI variant.
7609 (alpha_abi_handler_list): Declare.
7610 (alpha_gdbarch_register_os_abi): New function.
7611 (alpha_gdbarch_init): Give registered ABI variant handlers a
7612 chance to tweak the gdbarch once we have set up defaults.
7613 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7615 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7617 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7618 to standard_coerce_float_to_double.
7619 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7621 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7623 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7624 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7625 from gdbarch_tdep rather than a constant.
7626 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7627 the default text address for all Alpha Unix ABIs.
7628 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7629 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7631 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7633 * alpha-tdep.h: New file. Includes several Alpha target constants
7635 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7636 let gdbarch deal with.
7637 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7638 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7640 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7641 Alpha target register names.
7642 * alphabsd-nat.c: Likewise.
7643 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7644 Alpha target register names. Make serveral routines static.
7645 (alpha_get_saved_register): New function.
7646 (alpha_abi_names): New.
7647 (process_note_abi_tag_sections): New function.
7648 (get_elfosabi): New function.
7649 (alpha_gdbarch_init): New function.
7650 (alpha_dump_tdep): New function.
7651 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7653 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7655 * frame.c (find_saved_register): Delete #ifdef
7656 HAVE_REGISTER_WINDOWS code.
7657 * config/sparc/tm-sparc.h: Update comments.
7658 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7660 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7662 * i960-tdep.c (i960_find_saved_register): New function.
7663 (i960_get_saved_register): New function.
7664 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7665 (i960_get_saved_register): Declare.
7666 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7668 2002-04-20 David S. Miller <davem@redhat.com>
7670 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7672 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7674 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7675 instead of NUM_PSEUDO_REGS.
7677 2002-04-20 David S. Miller <davem@redhat.com>
7679 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7680 GDB_MULTI_ARCH_PARTIAL
7681 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7682 define, let tm-sp64.h do it.
7684 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7686 * frame.c (find_saved_register): Avoid a NULL pointer
7687 dereference and actually walk the frame list.
7689 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7691 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7692 sorted in most most-recent-used order. Document.
7693 * gdbarch.h, gdbarch.c: Regenerate.
7695 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7697 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7699 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7700 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7701 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7704 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7707 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7708 (build_builtin_type_vec128): Ditto.
7709 (append_composite_type_field): Fix calculation of type length in
7712 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7714 * config/djgpp/README: Update.
7716 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7719 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7721 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7722 (alpha_setup_arbitrary_frame): ...to this.
7723 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7724 for alpha_setup_arbitrary_frame.
7726 2002-04-18 Andrew Cagney <cagney@redhat.com>
7728 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7729 * gdbarch.h, gdbarch.c: Regenerate.
7731 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7732 * target.h (memory_breakpoint_from_pc): Update declaration.
7733 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7735 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7736 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7737 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7738 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7739 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7740 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7741 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7742 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7743 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7744 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7745 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7746 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7748 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7750 * monitor.c (monitor_insert_breakpoint): Ditto.
7751 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7753 * config/mcore/tm-mcore.h: Update copyright.
7754 * mem-break.c: Ditto.
7755 * xstormy16-tdep.c: Ditto.
7757 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7759 * p-exp.y: Add precedence rule for '^' token.
7760 This removes the shift/reduce conflicts.
7761 Remove the comment concerning these shift/reduce conflicts.
7763 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7765 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7766 (registers_powerpc_nofp): New register set for processors
7767 without floating point unit.
7769 2002-04-18 David S. Miller <davem@redhat.com>
7771 * MAINTAINERS: Add myself to write-after-approval.
7773 2002-04-17 Michael Snyder <msnyder@redhat.com>
7775 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7777 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7779 * rs6000-tdep.c (frame_initial_stack_address): Use
7780 frame_register_read to read the alloca_reg.
7782 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7784 * frame.c (find_saved_register): Find saved registers in the next
7788 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7790 * gdbarch.sh (LANG): Set to ``c''.
7792 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7794 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7796 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7798 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7801 * hpread.c (hpread_get_lntt): Add declaration.
7802 Also fix PR gdb/391.
7804 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7806 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7807 * aclocal.m4, configure: Re-generate.
7810 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7812 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7813 instead of tm_print_insn.
7815 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7817 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7819 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7821 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7822 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7823 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7825 2002-04-12 Don Howard <dhoward@redhat.com>
7827 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7828 max_user_call_depth.
7829 (init_cmd_lists): Initialize the new value;
7830 * cli/cli-script.c (execute_user_command): Limit the call depth of
7831 user defined commands. This avoids a core-dump when user commands
7832 are infinitly recursive.
7834 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7836 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7837 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7838 from tdep struct instead of DEFAULT_LR_SAVE.
7839 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7840 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7841 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7843 2002-04-12 Michael Snyder <msnyder@redhat.com>
7845 * Remote.c: Spelling fix.
7846 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7847 If no symbol found for "sbrk", try "_sbrk".
7848 (make_output_phdrs): Use bfd_section_name.
7849 (gcore_copy_callback): Use bfd_section_name.
7850 * eval.c: Indentation fix-ups.
7851 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7852 in case it gets applied to an address that is already
7853 in the instruction space.
7854 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7855 * symfile.c: Fix indentation, long lines.
7856 * source.c: White space fix-up.
7858 2002-04-12 Andrew Cagney <cagney@redhat.com>
7860 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7861 * frame.c (frame_register_read): New function. Return non-zero on
7863 (read_relative_register_raw_bytes_for_frame): Delete.
7864 (read_relative_register_raw_bytes): Delete.
7865 * frame.h (frame_register_read): Declare.
7866 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7868 * infcmd.c (do_registers_info): Ditto.
7869 * hppa-tdep.c: Ditto.
7870 * rs6000-tdep.c: Ditto.
7871 * h8500-tdep.c: Ditto.
7872 * mips-tdep.c: Ditto.
7873 * h8300-tdep.c: Ditto.
7874 * z8k-tdep.c: Ditto.
7876 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7878 From Jimi X <jimix@watson.ibm.com>:
7879 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7882 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7884 From Jimi X <jimix@watson.ibm.com>:
7885 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7888 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7890 From Jimi X <jimix@watson.ibm.com>:
7891 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7892 register sets for these processor variants.
7894 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7896 * regformats/reg-ppc.dat: Support FPSCR.
7898 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7900 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7901 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7902 Add fpscr as an invalid/unfetchable register.
7903 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7904 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7905 (fill_fpregset): Add support for register fpscr.
7906 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7907 (fill_gregset): Account for the fact that register ``mq'' might
7909 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7910 (registers_power): Add fpscr to register set at slot 71.
7911 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7912 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7914 2002-04-11 Michael Snyder <msnyder@redhat.com>
7916 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7917 * configure: Regenerate.
7918 * config.in: Regenerate.
7919 * acconfig.h: Add define for _SYSCALL32.
7920 * core-sol2.c: Remove #define _SYSCALL32.
7921 * solib-legacy.c: Remove #define _SYSCALL32.
7923 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7925 * stack.c (select_frame): Cleanup internal error message, do not
7928 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7930 * stack.c (select_frame): Check that selected_frame and the
7931 specified level are as expected.
7932 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7934 * frame.h (struct frame_info): Add field `level'. Update
7936 Work-in-progress PR gdb/464.
7938 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7940 * maint.c (maint_print_section_info): Rename print_section_info.
7941 (print_bfd_section_info, print_objfile_section_info): Update.
7942 * inferior.h (struct gdbarch): Add opaque declaration.
7943 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7944 * gdbarch.h: Regenerate.
7946 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7948 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7949 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7950 (kernel_u_size): Added.
7951 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7952 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7954 2002-04-04 Jim Ingham <jingham@apple.com>
7956 * valarith.c (find_size_for_pointer_math): New function, either returns
7957 the size for a pointer's target, returns 1 for void *, or errors for
7959 (value_add, value_sub): use find_size_for_pointer_math.
7961 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7963 * linux-low.c (linux_look_up_symbols): New hook.
7964 (linux_target_ops): Add linux_look_up_symbols.
7965 * remote-utils.c (decode_address): New function.
7966 (look_up_one_symbol): New function.
7967 * server.c (handle_query): Call target look_up_symbols hook.
7968 * server.h (look_up_one_symbol): Add prototype.
7969 * target.h (struct target_ops): Add look_up_symbols hook.
7971 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7973 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7974 override FP_REGNUM with frame->fp. Update copyright.
7975 * parse.c (num_std_regs, std_regs): Delete.
7976 (target_map_name_to_register): Do not search std_regs. Update
7977 function description.
7978 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7979 declarations. Update copyright.
7982 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7984 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7985 after the last symbol in a block.
7987 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7989 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7990 is non zero as a found symbol.
7992 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7994 * findvar.c: Include "builtin-regs.h".
7995 (value_of_register): Call value_of_builtin_reg when applicable.
7996 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7997 (target_map_name_to_register): Call
7998 builtin_reg_map_name_to_regnum.
7999 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8000 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8001 (builtin_regs_h): Define.
8002 (builtin-regs.o): New target.
8003 (findvar.o): Add $(builtin_regs_h).
8004 * builtin-regs.c, builtin-regs.h: New files.
8005 * std-regs.c: New file.
8006 Partial fix for PR gdb/251.
8008 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8010 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8011 it's no longer required.
8013 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8015 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8017 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8019 From Jimi X <jimix@watson.ibm.com>:
8020 * rs6000-tdep.c (rs6000_software_single_step): Use
8021 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8022 and size. Use target_insert_breakpoint() and
8023 target_remove_breakpoint() to insert and remove breakpoints
8024 instead of explicit memory reads and writes.
8026 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8028 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8029 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8030 ELF_OBJECT_FORMAT ifdef.
8032 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8034 From Jimi X <jimix@watson.ibm.com>:
8035 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8037 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8039 From Jimi X <jimix@watson.ibm.com>:
8040 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8041 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8043 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8045 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8046 s/asprintf/xasprintf/.
8047 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8049 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8051 I believe Jeff Law denies responsability for this one:
8052 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8053 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8054 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8055 Work-around for PR gdb/366.
8057 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8059 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8060 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8061 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8063 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8065 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8066 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8069 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8071 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8074 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8076 * README (Reporting Bugs in GDB): Document the bug web page as the
8077 prefered way of submitting bugs.
8080 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8082 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8084 * gdbarch.h, gdbarch.c: Re-generate.
8086 2002-04-07 Andreas Schwab <schwab@suse.de>
8088 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8089 buffer to regcache_collect.
8091 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8093 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8094 * gdbarch.c, gdbarch.h: Re-generate.
8096 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8098 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8099 declaration. Fix -Werror.
8101 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8103 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8104 * gdbarch.c: Regenerate.
8106 2002-04-05 Michael Snyder <msnyder@redhat.com>
8108 * breakpoint.c (clear_command): Rewrite middle section to
8109 combine two loops with identical control conditions.
8110 Add a cleanup to eliminate a memory leak.
8111 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8113 2002-04-05 H.J. Lu (hjl@gnu.org)
8115 * solib-svr4.c (bkpt_names): Add "__start".
8117 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8119 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8120 as test for 64 bit target.
8122 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8124 * h8500-tdep.c (h8500_write_fp): Delete function.
8125 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8126 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8127 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8129 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8130 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8132 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8133 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8134 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8135 (d10v_write_fp): Delete function.
8136 * inferior.h (write_fp, generic_target_write_fp): Delete
8138 * regcache.c (generic_target_write_fp): Delete function.
8139 (write_fp): Delete function.
8140 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8141 * gdbarch.h, gdbarch.c: Regenerate.
8142 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8143 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8144 (sparc64_write_fp): Delete declaration.
8145 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8146 (h8500_write_fp): Delete declaration.
8148 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8150 * sparc-tdep.c (sparc64_write_fp): Delete.
8151 (sparc_push_dummy_frame): Replace write_fp call with code to store
8153 (sparc_gdbarch_init): Do not initialize write_fp.
8155 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8157 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8160 2002-03-29 Jim Blandy <jimb@redhat.com>
8162 * stack.c (get_selected_block): Add new argument `addr_in_block',
8163 used to return the exact code address we used to select the block,
8165 * blockframe.c (get_frame_block, get_current_block): Same.
8166 * frame.h (get_frame_block, get_current_block,
8167 get_selected_block): Update declarations.
8168 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8169 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8171 2002-04-05 Michael Snyder <msnyder@redhat.com>
8173 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8176 2002-04-05 J. Brobecker <brobecker@gnat.com>
8178 * utils.c (xfullpath): New function.
8179 * defs.h (xfullpath): Add declaration.
8180 * source.c (openp): Use xfullpath in place of gdb_realpath to
8181 avoid resolving the basename part of filenames when the
8182 associated file is a symbolic link. This fixes a potential
8183 inconsistency between the filenames known to GDB and the
8184 filenames it prints in the annotations.
8185 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8186 to be able to match a filename with either the real filename, or
8187 the name of any symbolic link to this file.
8188 (lookup_partial_symtab): Ditto.
8190 2002-04-04 Michael Snyder <msnyder@redhat.com>
8192 * breakpoint.c: Add support for hardware breakpoints in overlays.
8193 (overlay_events_enabled): New state variable.
8194 (insert_breakpoints): Use overlay_events_enabled to decide
8195 whether to attempt to set a breakpoint at the overlay load addr.
8196 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8197 (remove_breakpoint): Use overlay_events_enabled to decide
8198 whether breakpoints need to be removed from overlay load addr.
8199 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8200 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8201 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8202 disable_overlay_breakpoints): Update overlay_events_enabled.
8204 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8206 * dwarf2read.c (struct function_range): New.
8207 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8208 (check_cu_functions): New.
8209 (read_file_scope): Initialize global function lists.
8210 Call dwarf_decode_line after processing children.
8211 (read_func_scope): Add to global function list.
8212 (dwarf_decode_lines): Call check_cu_functions everywhere
8213 record_line is called. Call record_line with a linenumber
8214 of 0 to mark sequence ends.
8216 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8218 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8219 change sync with glibc.
8221 2002-04-03 Jim Blandy <jimb@redhat.com>
8223 * configure.in: Call AC_C_INLINE.
8224 * configure: Regenerated.
8226 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8228 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8229 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8231 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8233 * NEWS: Mention gcore support on FreeBSD/i386.
8235 * fbsd-proc.c: New file.
8236 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8237 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8239 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8242 2002-03-29 Jim Blandy <jimb@redhat.com>
8244 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8245 unescaped newlines in string literals, but newer ones don't. So
8248 2002-03-26 Michael Snyder <msnyder@redhat.com>
8249 Andrew Cagney <cagney@redhat.com>
8251 * cli/cli-dump.c: New file. Dump memory to file,
8252 restore file to memory.
8253 * cli/cli-dump.h: New file.
8254 * Makefile.in: Add rules, dependencies for cli-dump.o.
8255 * NEWS: Mention new commands.
8257 2002-03-28 Michael Snyder <msnyder@redhat.com>
8259 * symfile.c (symbol_file_add): Move test for null symbols to later.
8261 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8263 From veksler at il.ibm.com:
8264 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8265 the xstrduped original path.
8268 2002-03-27 Michael Snyder <msnyder@redhat.com>
8270 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8271 * infcmd.c (_initialize_infcmd): Ditto.
8272 * language.c (_initialize_language): Ditto.
8273 * symfile.c (_initialize_symfile): Ditto.
8274 * top.c (_init_main): Ditto.
8275 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8277 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8279 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8280 vector registers handling.
8281 (skip_prologue): Handle new AltiVec instructions. Fill in new
8282 fields of frame data.
8283 (frame_get_saved_regs): Fill in information for AltiVec registers.
8285 2002-03-27 Jim Blandy <jimb@redhat.com>
8287 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8288 a function; leave this macro here to invoke that function.
8289 (symbol_init_mangled_name): Declaration for that function.
8290 * symtab.c (symbol_init_mangled_name): New function.
8292 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8294 * valarith.c: Replace strerror with safe_strerror.
8295 * tracepoint.c: Ditto.
8297 * go32-nat.c: Ditto.
8301 2002-03-27 Andreas Schwab <schwab@suse.de>
8303 * event-top.c (command_line_handler): Remove useless if.
8305 2002-03-27 Andreas Jaeger <aj@suse.de>
8307 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8310 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8312 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8313 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8314 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8315 (x86_64_linux_dr_get_status, supply_gregset),
8316 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8317 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8318 (x86_64_register_info_table): Add.
8319 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8320 (x86_64_register_raw_size, x86_64_register_virtual_type),
8321 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8322 general x86_64_register_info_table.
8323 (i386_gdbarch_init): gdbarch_register_bytes is now set
8324 dynamicaly during initialization.
8325 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8326 * gdbserver/linux-x86-64-low.c: Ditto.
8328 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8330 * gdbserver/server.c (main): Call target_signal_to_host_p
8331 and target_signal_to_host on signals received from the remote.
8332 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8333 target_signal_from_host on signals sent to the remote.
8334 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8335 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8337 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8339 * signals/signals.c: Include "server.h" in gdbserver build.
8340 (target_signal_from_name): Don't use STREQ.
8341 (_initialize_signals): Likewise. Don't include function in
8344 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8346 * signals.c: Moved to...
8347 * signals/signals.c: Here.
8348 * Makefile (signals.o): Update.
8350 2002-03-26 Jeff Law (law@redhat.com)
8352 * somread.c (som_symtab_read): Remove some commented out code and
8353 updated related comments. Do not set the minimal symbol table to
8354 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8355 in a dynamic executable.
8356 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8357 where we are unable to find the minimal symbol for the given
8360 2002-03-25 Jeff Law (law@redhat.com)
8362 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8364 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8366 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8368 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8370 * command.h: Update copyright.
8371 (struct cmd_list_element): Replace definition with opaque
8373 (enum cmd_types): Document that it will eventually be moved to
8375 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8376 (MALLOCED_REPLACEMENT): Delete macro.
8377 * Makefile.in (cli_decode_h): Add $(command_h).
8378 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8379 * top.c: Include "cli/cli-decode.h".
8380 * completer.c: Include "cli/cli-decode.h".
8381 * maint.c: Include "cli/cli-decode.h".
8382 * cli/cli-decode.h: Include "command.h".
8383 (enum command_class): Delete.
8384 (enum cmd_types): Comment out.
8385 (enum cmd_auto_boolean): Delete.
8386 (enum var_types): Delete.
8388 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8390 * cli/cli-decode.c: Include "gdb_assert.h".
8391 (add_set_or_show_cmd): New static function.
8392 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8393 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8394 all fields, such as func, from the set command.
8396 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8398 * MAINTAINERS (sh-elf): Change warning flag to -w.
8400 2002-03-23 Andrew Cagney <cagney@redhat.com>
8402 * defs.h (error): Add printf format attribute.
8403 * thread-db.c (thread_from_lwp): Fix error format string.
8404 * stack.c (parse_frame_specification): Ditto.
8405 * cli/cli-decode.c (undef_cmd_error): Ditto.
8406 * scm-lang.c (scm_lookup_name): Ditto.
8407 * tracepoint.c (trace_error): Ditto.
8408 * remote-utils.c (usage): Ditto.
8409 * remote.c (compare_sections_command): Ditto.
8412 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8414 * gdbtypes.c (append_composite_type_field): New function.
8415 (init_composite_type): New function.
8416 * gdbtypes.h (append_composite_type_field): Declare.
8417 (init_composite_type): Ditto.
8419 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8421 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8423 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8424 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8425 structure returning convention for SYSV ABI case, but not
8426 for GNU/Linux, FreeBSD, or NetBSD.
8428 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8430 * symtab.h (lookup_block_symbol): Add mangled_name argument
8433 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8434 with new mangled_name argument.
8435 * linespec.c (decode_line_1): Likewise.
8436 * valops (value_of_this): Likewise.
8437 * symtab.c (lookup_transparent_type): Likewise.
8438 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8439 (lookup_symbol): If we are given a mangled name, pass it down
8440 to lookup_symbol_aux.
8441 (lookup_block_symbol): If we are given a mangled name to check
8442 against, only return symbols which match it.
8444 2002-03-22 Christopher Faylor <cgf@redhat.com>
8446 * win32-nat.c (child_create_inferior): Check for proper shell to use
8447 here, in case the user changes it on the fly.
8448 (_initialize_inftarg): Remove shell path considerations.
8450 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8452 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8453 for gdbarch_max_register_raw_size and max_register_virtual_size.
8454 Adjust copyright year.
8456 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8458 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8459 in a function to cover the entire beginning of the function
8460 as well if it does not already.
8462 2002-03-21 Tom Rix <trix@redhat.com>
8464 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8465 (rs6000_ptrace64): Renamed from ptrace64.
8467 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8469 * gdbserver/remote-utils.c (remote_open): Don't call
8470 getprotobyname, we're all using TCP here so just use
8472 * gdbserver/gdbreplay.c (remote_open): Ditto.
8474 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8476 * regcache.c (_initialize_regcache): No need to call
8477 build_regcache() at this time; it gets called whenever
8478 the gdbarch changes.
8480 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8482 * sparc-nat.c: Include sys/param.h where possible.
8484 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8487 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8488 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8489 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8491 * stabsread.c (rs6000_builtin_type): Likewise.
8492 (read_sun_floating_type): Likewise.
8494 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8496 * stabsread.c (read_member_functions): Remove skip code for duplicate
8497 constructor/destructor methods. Use standard parsing for these
8498 methods and just do not chain them to the list of methods after
8501 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8503 * coffread.c: Remove redundant static declarations. Replace
8504 occurrences of `PTR' with `void *'.
8505 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8506 * top.h (quit_cover): Likewise.
8507 * defs.h (catch_errors): Likewise.
8509 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8511 * defs.h (XMALLOC): Define.
8512 * gdb-events.sh (XMALLOC): Delete macro.
8513 * gdb-events.c, gdb-events.h: Regenerate.
8514 * gdbarch.sh (XMALLOC): Delete macro.
8515 * gdbarch.c: Regenerate.
8516 * serial.c (XMALLOC): Delete macro.
8517 * ui-file.c (XMALLOC): Ditto.
8518 * ser-unix.h (XMALLOC): Ditto.
8519 * sh-tdep.c (XMALLOC): Ditto.
8520 * ui-out.c (XMALLOC): Ditto.
8521 * utils.c (XMALLOC): Ditto.
8522 * i386-tdep.c (XMALLOC): Ditto.
8523 * gdb-events.c (XMALLOC): Ditto.
8524 * d10v-tdep.c (XMALLOC): Ditto.
8525 * cli-out.c (XMALLOC): Ditto.
8527 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8528 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8529 * ui-file.c, ui-out.c: Ditto.
8531 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8533 * command.h (struct cmd_list_element): Add field context.
8534 (set_cmd_context, get_cmd_context): Declare.
8535 * cli/cli-decode.h: Ditto.
8536 * cli/cli-decode.c (get_cmd_context): New function.
8537 (set_cmd_context): New function.
8538 (add_cmd): Initialize context.
8539 Part of fixing PR gdb/145 and PR gdb/146.
8541 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8543 * cli/cli-decode.c (cmd_type): New function.
8544 * command.h (cmd_type): Declare.
8545 * infrun.c (set_schedlock_func): Call function cmd_type.
8546 * kod.c (kod_set_os): Call cmd_type.
8547 * cris-tdep.c (cris_version_update): Use function cmd_type.
8548 (cris_mode_update, cris_abi_update): Ditto.
8550 * command.h: (execute_cmd_post_hook): Declare.
8551 (execute_cmd_pre_hook): Declare.
8552 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8553 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8554 functions. Execute pre/post hook while ensuring that afterwords
8556 * top.c (execute_command): Use execute_cmd_post_hook, and
8557 execute_cmd_pre_hook to execute pre/post commands.
8558 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8560 (hook_stop_stub): Call execute_cmd_pre_hook.
8562 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8564 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8565 set'' and this leads to a core dump. Move xstrdup of
8566 operating_system to after check that it is not NULL.
8568 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8570 * kod.c (kod_set_os): Remove unnecessary check that
8571 ``command->type'' is set_cmd.
8573 * valprint.c (set_input_radix): Use input_radix.
8574 (set_output_radix): Use output_radix.
8575 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8578 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8580 * value.h (struct value): Delete field ``substring_addr''. Change
8581 aligner fields to force_doublest_align, force_longest_align,
8582 force_core_addr_align and force_pointer_aligh.
8584 * value.h (struct value): Fix typo in above change.
8586 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8588 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8589 to fix internal_error from ``maintenance print architecture''.
8591 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8593 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8594 for gcc versions after gcc-2.8.1.
8596 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8598 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8599 for method resolution. Restore adjustment of ``this'' pointer after
8600 calling value_struct_elt, which was accidentally removed during the
8603 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8605 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8607 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8609 * value.h (value_of_register): Update.
8611 2002-03-14 Richard Henderson <rth@redhat.com>
8613 * configure.in: Detect declaration for canonicalize_file_name.
8614 * utils.c (canonicalize_file_name): Declare, if needed.
8615 (gdb_realpath): Prefer realpath if available and usable.
8616 * config.in, configure: Rebuild.
8618 2002-03-14 Richard Henderson <rth@redhat.com>
8620 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8621 a constant array bound.
8623 * MAINTAINERS: Add myself to write-after-approval.
8625 2002-03-14 Michael Snyder <msnyder@redhat.com>
8627 * symfile.c (syms_from_objfile): Return immediately if no syms.
8628 (symbol_file_add): Return immediately if no syms.
8629 (find_sym_fns): Return immediately if no syms.
8631 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8633 * gdbserver/remote-util.c (remote_open): Print remote-side's
8634 IP address when remote debugging over the network.
8636 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8638 * config/sparc/fbsd.mh: Fix copyright.
8639 * config/sparc/fbsd.mt: Likewise.
8641 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8643 * MAINTAINERS: Fix typo in name of gdb warnings option.
8644 (x86-64): Fix formating so that this can be parsed by awk.
8646 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8648 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8649 * defs.h: Include "gdb/signals.h".
8650 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8652 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8654 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8655 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8658 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8659 Don Howard <dhoward@redhat.com>
8661 * mips-tdep.c (ST0_FR): Define.
8662 (mips2_fp_compat): New function, temporarily disabled.
8663 (mips_read_fp_register_single): New function.
8664 (mips_read_fp_register_double): New function.
8665 (mips_print_register): Use them.
8666 (do_fp_register_row): Likewise.
8668 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8670 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8673 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8675 * stabsread.c (read_member_functions): Fix is_stub test for
8676 static member functions, improve comment.
8678 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8680 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8681 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8682 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8683 commands that set boolean values.
8684 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8685 (arm_rdi_resume): Always initialize PC.
8686 (arm_rdi_open): Don't use rslt as a boolean.
8687 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8688 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8689 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8690 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8692 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8694 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8695 * configure: Rebuilt.
8697 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8699 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8700 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8702 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8704 * cli/cli-decode.c (set_cmd_completer): New function.
8705 * command.h (set_cmd_completer): Declare.
8706 * cli/cli-decode.h (set_cmd_completer): Ditto.
8708 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8709 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8710 * win32-nat.c (_initialize_inftarg): Ditto.
8711 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8712 * proc-api.c (_initialize_proc_api): Ditto.
8713 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8714 * source.c (_initialize_source): Ditto.
8715 * exec.c (_initialize_exec): Ditto.
8716 * solib.c (_initialize_solib): Ditto.
8717 * top.c (init_main): Ditto.
8718 * tracepoint.c (_initialize_tracepoint): Ditto.
8719 * symfile.c (_initialize_symfile): Ditto.
8720 * printcmd.c (_initialize_printcmd): Ditto.
8721 * infcmd.c (_initialize_infcmd): Ditto.
8722 * corefile.c (_initialize_core): Ditto.
8724 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8726 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8728 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8730 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8732 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8734 * NEWS: Update headings, 5.2 has branched.
8736 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8738 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8739 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8740 (register_addr, REGISTER_RAW_SIZE): Likewise.
8741 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8742 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8744 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8746 * MAINTAINERS (x86-64): Add myself.
8747 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8748 changed value_ptr -> struct value *
8750 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8752 * configure.host (sparc64-*-freebsd): Add.
8753 * configure.tgt: Likewise.
8754 * config/sparc/fbsd.mh: New file.
8755 * config/sparc/fbsd.mt: Likewise.
8756 * config/sparc/nm-fbsd.h: Likewise.
8757 * config/sparc/tm-fbsd.h: Likewise.
8759 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8761 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8762 regformats/reg-s390x.dat.
8764 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8766 * utils.c: Add FIXME explaining true/false problem.
8768 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8770 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8772 2002-02-28 Michael Chastain <mec@shout.net>
8774 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8776 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8778 * gdbserver/linux-s390-low.c: New file.
8779 * regformats/reg-s390.dat: New file.
8780 * regformats/reg-s390x.dat: New file.
8781 * gdbserver/configure.srv: Add S/390.
8782 * gdbserver/Makefile.in: Add S/390.
8783 * configure.tgt: Enable gdbserver for S/390.
8785 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8787 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8788 first line of the doc string for "info dos", except at the end of
8789 the sentence, since the short help stops at the first period.
8791 2002-02-28 Jason Merrill <jason@redhat.com>
8793 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8795 2002-02-27 Fred Fish <fnf@redhat.com>
8797 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8798 comment (dumy -> dummy).
8800 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8802 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8804 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8806 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8808 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8810 * gdbserver/acconfig.h: New file.
8811 * gdbserver/i387-fp.c: New file.
8812 * gdbserver/i387-fp.h: New file.
8813 * gdbserver/linux-x86-64.c: New file.
8814 * regformats/reg-x86-64.dat: New file.
8815 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8816 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8817 * gdbserver/configure.in: Add support for regsets.
8818 * gdbserver/config.in: Regenerate.
8819 * gdbserver/configure: Regenerate.
8820 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8821 * gdbserver/linux-low.h: New file.
8822 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8824 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8825 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8826 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8827 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8828 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8829 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8830 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8831 "i387-fp.h". Add PTRACE_GETREGS and friends.
8832 * gdbserver/regcache.c (supply_register): New function.
8833 (supply_register_by_name): New function.
8834 (collect_register): New function.
8835 (collect_register_by_name): New function.
8837 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8839 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8840 (config.status): Add configure.srv dependency.
8841 (server_h): Add config.h dependency.
8843 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8845 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8846 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8847 * gdbserver/configure.srv: Change i386-*-linux* to use
8850 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8852 * x86-64-tdep.c: Re-indent. Update copyright date.
8854 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8856 From Michal Ludvig <mludvig@suse.cz>:
8857 * x86-64-tdep.c (value.h): Delete.
8858 (gdb_assert.h): Include.
8859 (x86_64_register_convert_to_virtual,
8860 x86_64_register_convert_to_raw ): Add check which lets only
8861 floating-point values to be converted.
8862 (value_push): Delete.
8863 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8864 (i386_gdbarch_init): Number of register_bytes fixed.
8866 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8868 * MAINTAINERS: Add x86-64 target.
8870 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8872 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8873 * osfsolib.c (solib_map_sections): Ditto.
8874 * irix5-nat.c (solib_map_sections): Ditto.
8875 * corelow.c (gdb_check_format): Ditto.
8876 * symfile.c (symfile_bfd_open): Ditto.
8877 * solib.c (solib_map_sections): Ditto.
8880 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8882 * remote.c (_initialize_remote): By default, disable ``e'' and
8883 ``E'' step out-of-range packets.
8885 2002-02-26 Andreas Schwab <schwab@suse.de>
8887 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8888 m68k_linux_frame_saved_pc.
8889 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8891 (SIGCONTEXT_PC_OFFSET): Remove.
8892 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8893 m68k_linux_sigtramp_saved_pc): New functions.
8894 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8895 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8896 (UCONTEXT_PC_OFFSET): Define.
8897 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8898 non-RT and RT signal trampolines.
8900 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8902 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8903 (TARGET_NBPG, STACK_END_ADDR): Delete
8904 (VARIABLES_INSIDE_BLOCK): Delete.
8906 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8908 * utils.c (perror_with_name): Make string parameter constant.
8909 (print_sys_errmsg): Ditto.
8911 * defs.h (perror_with_name): Update.
8912 (print_sys_errmsg): Update.
8915 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8917 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8918 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8920 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8922 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8923 if it already matches the current architecture from the exec file.
8924 Include arch-utils.h for gdbarch_info_init prototype.
8925 * Makefile.in (rs6000-nat.o): Update dependencies.
8927 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8929 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8930 list of exported variables.
8932 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8934 * gdbserver/configure.srv: New file.
8935 * gdbserver/configure.in: Use configure.srv instead
8936 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8938 * gdbserver/configure: Regenerated.
8939 * gdbserver/terminal.h: New file.
8940 * gdbserver/Makefile.in: Update for configure changes. Remove
8941 more unneeded include paths.
8943 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8945 From wiz at danbala:
8946 * config/sparc/tm-sp64.h: Fix grammar and typos.
8949 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8951 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8952 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8953 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8954 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8955 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8956 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8957 * s390-tdep.c: Ditto.
8958 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8959 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8960 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8961 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8962 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8963 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8964 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8965 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8966 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8967 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8970 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8972 * lin-thread.c: Delete file.
8973 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8974 to gdb_proc_service.h.
8975 * configure: Re-generate.
8977 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8978 * serial.c (serial_open): Delete check for "ocd".
8981 * Makefile.in (linux-thread.o): Delete target.
8982 * linux-thread.c: Delete file.
8984 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8985 renamed SH files to be consistent.
8987 * symtab.c (sort_search_symbols): Use xfree.
8989 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8991 * arm-linux-tdep.c (arm_linux_init_abi): Register
8992 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8993 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8994 definition with undef, since we don't want the sysvr4 definition.
8995 (SKIP_TRAMPOLINE_CODE): Likewise.
8997 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8999 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9001 * configure.in: (AC_CHECK_FUNCS) Added test for
9002 canonicalize_file_name Regenerated.
9003 * config.in, configure: Regenerated.
9004 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9005 defined use canonicalize_file_name.
9007 2002-02-23 Michael Chastain <mec@shout.net>
9009 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9011 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9013 * README: Remove references to cygnus.com.
9014 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9015 dot com'' form. Remove references to cygnus.com and sourceware.
9017 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9019 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9020 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9021 1003.1-2001 no longer allows "head -1".
9022 * gdb/Makefile.in (version.c): Likewise.
9023 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9024 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9025 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9027 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9029 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9030 * command.h (cmd_cfunc_eq): Declare.
9031 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9033 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9034 ``struct cmd_list_element *''.
9035 * cli/cli-cmds.c (is_complete_command): Update. Use
9037 * top.c (execute_command): Pass the command to
9038 is_complete_command.
9039 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9041 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9043 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9044 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9045 architecture defines.
9046 * s390-tdep.c (s390_gdbarch_init): Likewise.
9048 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9050 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9051 (arm_linux_push_arguments): Likewise.
9052 (arm_linux_init_abi): Register them. Also register linux-specific
9054 (find_minsym_and_objfile): Use strcmp, not STREQ.
9055 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9056 (arm_linux_call_dummy_words): Delete declaration.
9057 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9058 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9060 (LOWEST_PC): Delete.
9062 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9064 * maint.c (print_section_info): Do not prepend `0x' to filepos
9065 output, it will be handled by local_hex_string_custom.
9067 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9069 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9070 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9071 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9073 2002-02-22 Jim Blandy <jimb@redhat.com>
9075 Indicate that the bcache functions don't change the strings
9077 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9078 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9080 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9082 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9084 2002-02-21 Christopher Faylor <cgf@redhat.com>
9086 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9087 find the complete path to a loaded DLL.
9089 2002-02-21 Fred Fish <fnf@redhat.com>
9091 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9092 that marks the end of the range of a function, enter a line number
9093 entry that has a line number of zero and a PC offset that matches
9094 the end of the function. This starts a range of PC's for which no
9095 line number information is known.
9096 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9097 PC's for which no line number info is found (line number is zero)
9098 then we didn't find any valid line information.
9099 * symtab.h: Document use of zero line number entry.
9101 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9103 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9104 (have_ptrace_getvrregs): Define for run time checks.
9105 (gdb_vrregset_t): New type for Altivec register handling.
9106 (fetch_register, store_register): Fetch/store altivec register
9108 (fetch_altivec_register, store_altivec_register): New functions.
9109 (supply_vrregset, fill_vrregset): New functions.
9110 (fetch_altivec_registers, store_altivec_registers): New functions.
9111 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9114 2002-02-21 Jiri Smid <smid@suse.cz>
9116 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9118 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9120 * Makefile.in (armnbsd-nat.o): Update dependencies.
9121 * armnbsd-nat.c (supply_gregset): New function. Common code to
9122 supply the integer register set.
9123 (supply_fparegset): New function. Similar for FPA registers.
9124 (fetch_regs, fetch_fp_regs): Use them.
9125 (fetch_core_registers): Likewise.
9126 (fetch_elfcore_registers): New function.
9127 (arm_netbsd_elfcore_fns): New core-file type specification.
9128 (_initialize_arm_netbsd_nat): Register it.
9130 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9132 * armnbsd-nat.c: Include gdbcore.h.
9133 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9134 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9135 'void' to declaration, to shut up ARI.
9136 (fetch_core_registers): Make static. Rewrite using supply_register.
9137 (arm_netbsd_core_fns): New core-file type specification.
9138 (_initialize_arm_netbsd_nat): New function.
9140 2002-02-21 Christopher Faylor <cgf@redhat.com>
9142 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9145 2002-02-20 Christopher Faylor <cgf@redhat.com>
9147 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9150 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9152 * jv-exp.y (parse_number): Change type of implicit longs
9153 to builtin_type_uint64.
9155 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9157 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9158 to be an integer instead of a `union wait'.
9160 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9162 * mips-linux-nat.c: Call the operating system GNU/Linux.
9163 * mips-linux-tdep.c: Likewise.
9164 * mips-tdep.c: Likewise.
9166 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9169 * jv-exp.y (parse_number): Handle 64-bit integers.
9171 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9173 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9174 AC_STDC_HEADERS to AC_HEADER_STDC.
9175 * gdbserver/configure: Regenerated.
9177 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9179 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9181 * sparc-tdep.c (get_longjmp_target): Likewise.
9183 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9185 * News: Add news about ARM and Multi-arch. Mention the new target
9188 2002-02-19 Jim Blandy <jimb@redhat.com>
9190 * stabsread.c (error_type_complaint): Improve error message.
9192 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9194 * gdbserver/README: Update documentation.
9195 * gdbserver/configure.in: Update configury to match documentation.
9196 * gdbserver/Makefile.in: Likewise.
9197 * gdbserver/configure: Regenerated.
9198 * gdbserver/aclocal.m4: New file, generated by aclocal.
9199 * gdbserver/config.in: New file, generated by autoheader.
9201 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9203 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9206 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9208 * arm-tdep.h (enum arm_float_model): New enum.
9209 (struct gdbarch_tdep): Add fp_model.
9210 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9211 up floating-point conversions until we know the floating-point model
9212 in use by the inferior. Don't complain about being unable to
9213 determine the ABI of the inferior when we don't have one.
9214 (arm_extract_return_value): Support different floating-point models.
9215 (arm_store_return_value): Likewise.
9216 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9218 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9220 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9222 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9223 of ``current_gdbarch''.
9225 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9227 * armnbsd-nat.c : ANSIfy all function declarations.
9228 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9229 (fetch_inferior_registers): Re-implement in terms of above.
9230 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9231 (store_inferior_registers): Re-implement in terms of above.
9233 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9235 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9237 * arm-linux-tdep.c: Likewise.
9238 * config/arm/tm-linux.h: Likewise.
9240 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9242 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9243 * config/arm/nbsd.mt (TM_FILE): Delete.
9244 * config/arm/tm-nbsd.h: Delete.
9246 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9248 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9249 Initialize CALL_DUMMY_LENGTH.
9251 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9253 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9255 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9256 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9257 defines one thing and that is incorrect for this port.
9258 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9260 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9262 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9264 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9266 * win32-nat.c (display_selector): New function. Displays information
9267 about the information returned by GetThreadSelectorEntry API function.
9268 (display_selectors): New function. Displays the infomation of
9269 the selector given as argument, or of CS, DS ans FS selectors
9270 if no argument is given.
9271 ( _initialize_inftarg): Add "w32" as info prefix command.
9272 Add "info w32 selector" as command calling display_selectors.
9274 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9276 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9277 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9280 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9282 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9284 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9286 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9287 (arm_fix_call_dummy): Call it.
9288 (arm_call_dummy_breakpoint_offset): Delete.
9289 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9290 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9292 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9294 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9295 Default to func_frame_chain_valid.
9296 * gdbarch.h, gdbarch.c: Re-generate.
9297 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9299 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9301 * ppc-linux-nat.c: Update copyright.
9302 (fetch_register, store_register): Add tid parameter, don't compute
9304 (fetch_ppc_registers, store_ppc_registers): Add tid
9305 parameter. Pass it along to callees.
9306 (fetch_inferior_registers, store_inferior_registers): Compute tid
9307 here, and pass it to calleed functions.
9308 (fill_gregset, supply_fpregset): Clean up formatting.
9310 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9312 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9313 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9315 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9317 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9318 * gdbarch.c gdbarch.h: Regenerate.
9319 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9321 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9322 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9323 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9325 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9326 * arm-tdep.c (arm_get_longjmp_target): New function.
9327 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9328 this to a positive value register arm_get_longjmp_target as the
9330 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9331 (arm_linux_init_abi): Set up longjmp description in tdep.
9332 * armnbsd-nat.c (get_longjmp_target): Delete.
9333 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9334 description in tdep.
9335 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9336 (get_longjmp_target): Delete declaration.
9337 (GET_LONGJMP_TARGET): Delete.
9338 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9339 (GET_LONGJMP_TARGET): Delete.
9341 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9343 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9344 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9345 of ``current_gdbarch''.
9347 2002-02-17 Tom Tromey <tromey@redhat.com>
9349 * cli/cli-cmds.c (compare_strings): New function.
9350 (complete_command): Only print each unique item once.
9351 * completer.h (complete_line): Declare.
9352 * completer.c (complete_line): New function.
9353 (line_completion_function): Use it.
9355 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9357 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9358 * gdbarch.h, gdbarch.c: Re-generate.
9360 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9362 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9364 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9366 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9367 * valops.c (value_arg_coerce): Don't take the address of a reference
9368 to convert an argument to a reference.
9370 2002-02-15 Christopher Faylor <cgf@redhat.com>
9372 * win32-nat.c (get_image_name): New function.
9373 (handle_load_dll): Use get_image_name function.
9374 (get_child_debug_event): Avoid registering debug events until possibly
9375 execed process is started.
9376 (child_create_inferior): Allow invocation via shell so that command
9377 line redirection, etc. works ok.
9378 (_initialize_inftarg): Add new command: "set shell" to control whether
9379 a shell is used to start a process.
9381 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9383 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9384 instead of find_register_by_number.
9385 (cannot_store_register): Likewise.
9387 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9389 * dwarf2read.c: Replace fprintf (stderr, ...) by
9390 fprintf_unfiltered (gdb_stderr, ...).
9392 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9394 * gdbserver/gdbserver.1: Document --attach.
9396 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9398 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9400 * arm-tdep.c (arm_default_arm_le_breakpoint)
9401 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9402 (arm_default_thumb_be_breakpoint): New. Initialize them from
9403 traditional breakpoint defines.
9404 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9405 (arm_gdbarch_init): Initialize new breakpoint variables.
9406 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9407 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9408 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9409 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9411 (arm_netbsd_init_abi_common): ... here; new function.
9412 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9413 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9414 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9415 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9417 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9419 * arm-tdep.h (enum arm_abi): New enum.
9420 (struct gdbarch_tdep): New structure.
9421 (LOWEST_PC): Provide a default.
9422 (arm_gdbarch_register_os_abi): Declare new function.
9423 * arm-tdep.c (arm_abi_names): New array.
9424 (process_note_abi_tag_sections): New function.
9425 (get_elfosabi): New function.
9426 (arm_gdbarch_register_os_abi): New function.
9427 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9428 support for that ABI has been built in, then call the appropriate
9429 configuration routine. Use gdbarch_num_regs() to get the number
9431 (arm_dump_tdep): New function.
9432 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9433 place-holder functions.
9434 (_initialize_arm_tdep): Register them.
9435 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9437 * armnbsd-tdep.c: New file.
9438 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9439 * config/arm/nbsd.mt (TDEPFILES): Add it.
9440 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9442 * armnbsd-nat.c: Include regcache.h.
9443 * Makefile.in (armnbsd-nat.o): Update dependency list.
9445 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9447 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9449 * gdbserver/Makefile.in: Fix typos in target rules.
9451 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9453 Fix part of PR gdb/267.
9454 * linespec.c (find_methods): Handle constructors specially for now.
9456 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9458 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9460 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9461 standard_coerce_float_to_double().
9463 2002-02-14 Christopher Faylor <cgf@redhat.com>
9465 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9468 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9470 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9471 find_variant_by_name, because it confuses the multiarch
9472 framework. Return NULL if there isn't an architecture with the
9473 user supplied name, instead of forcing a different one without
9474 recording the change with the multiarch machinery.
9475 (find_variant_by_name): Delete.
9477 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9479 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9480 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9482 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9484 * stack.c (print_frame_info_base): When calling
9485 print_frame_info_listing_hook, set current_source_symtab.
9487 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9489 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9490 and remove unused $(INCLUDE_DIR).
9491 Add regcache.c to OBS.
9492 Add generated register protocol files to clean target.
9493 Update dependencies for new objects, obsolete old target code.
9495 * gdbserver/linux-low.c: Remove all platform-specific code to
9496 new files. Remove various dead code. Update to use regcache
9498 * gdbserver/remote-utils.c (fromhex): Add return statement
9500 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9502 (input_interrupt): Add integer parameter to match prototype
9503 of a signal handler.
9504 (outreg): Use register_data ().
9505 (prepare_resume_reply): Use gdbserver_expedite_regs.
9506 * gdbserver/server.c (main): Dynamically allocate own_buf because
9507 PBUFSIZ is no longer constant. Use registers_to_string () and
9508 registers_from_string ().
9509 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9510 for error (), fatal (), and warning (). Update definition of
9511 PBUFSIZ to use regcache functionality. Add include guard.
9512 * gdbserver/utils.c (fatal): Add missing ``const''.
9513 (warning): New function.
9515 * regformats/regdat.sh: Include "regcache.h" in generated files.
9516 Provide init_registers () function.
9517 * regformats/regdef.h: Add prototype for set_register_cache ().
9520 * gdbserver/linux-arm-low.c: New file.
9521 * gdbserver/linux-i386-low.c: New file.
9522 * gdbserver/linux-ia64-low.c: New file.
9523 * gdbserver/linux-m68k-low.c: New file.
9524 * gdbserver/linux-mips-low.c: New file.
9525 * gdbserver/linux-ppc-low.c: New file.
9526 * gdbserver/linux-sh-low.c: New file.
9528 * gdbserver/regcache.c: New file.
9529 * gdbserver/regcache.h: New file.
9531 * gdbserver/low-linux.c: Removed obsolete file.
9533 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9535 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9536 * config/i386/linux.mt: Likewise.
9537 * config/ia64/linux.mt: Likewise.
9538 * config/m68k/linux.mh: Likewise.
9539 * config/powerpc/linux.mh: Likewise.
9540 * config/mips/linux.mt: Likewise.
9542 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9544 * config/i386/i386lynx.mh: Mark gdbserver variables
9545 as (currently) obsolete for this target.
9546 * config/i386/nbsd.mt: Likewise.
9547 * config/i386/nbsdelf.mt: Likewise.
9548 * config/m32r/m32r.mt: Likewise.
9549 * config/m68k/m68klynx.mh: Likewise.
9550 * config/m68k/nbsd.mt: Likewise.
9551 * config/m68k/sun3os4.mh: Likewise.
9552 * config/mips/vr5000.mt: Likewise.
9553 * config/ns32k/nbsd.mt: Likewise.
9554 * config/pa/hppabsd.mh: Likewise.
9555 * config/pa/hppaosf.mh: Likewise.
9556 * config/powerpc/nbsd.mt: Likewise.
9557 * config/rs6000/rs6000lynx.mh: Likewise.
9558 * config/s390/s390.mt: Likewise.
9559 * config/s390/s390x.mt: Likewise.
9560 * config/sparc/sparclynx.mh: Likewise.
9561 * config/sparc/sun4os4.mh: Likewise.
9562 * config/i386/x86-64linux.mt: Likewise.
9563 * config/sparc/linux.mh: Likewise.
9565 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9567 * configure.tgt: Configure gdbserver only for known working
9568 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9569 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9570 SUBDIRS if it is configured. Update comment for ${nativefile}.
9571 * configure: Regenerated.
9573 2002-02-13 Michael Snyder <msnyder@redhat.com>
9575 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9577 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9578 (default_gcore_mach): Just return 0, work around a problem in bfd.
9579 (default_gcore_target): OK to return NULL if exec_bfd is null.
9580 (make_mem_sec): Use a cast, avoid a warning.
9582 * procfs.c (find_memory_regions_callback): Use a cast instead of
9583 calling host_pointer_to_address (which complains if
9584 sizeof (host pointer) != sizeof (target pointer)).
9585 (procfs_make_note_section): Avoid overflow in psargs string.
9587 * procfs.c (procfs_make_note_section): Make the default
9588 implementation return an error.
9590 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9592 * procfs.c (procfs_make_note_section): Provide a default definition
9593 (for alpha-dec-osf4.0f). Fix typos.
9595 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9597 * linux-proc.c: Add include of regcache.h.
9598 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9600 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9602 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9603 * memattr.c (create_mem_region): Disallow useless empty region.
9604 Regions are half-open intervals, so allow [A..B) [B..C) as
9607 2002-02-13 Michael Chastain <mec@shout.net>
9609 * defs.h: Kill CONST_PTR.
9610 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9611 * c-lang.c (c_builtin_types): Likewise.
9612 * ch-lang.c (ch_builtin_types): Likewise.
9613 * f-lang.c (f_builtin_types): Likewise.
9614 * language.c (unknown_builtin_types): Likewise.
9615 * m2-lang.c (m2_builtin_types): Likewise.
9616 * p-lang.c (pascal_builtin_types): Likewise.
9617 * scm-lang.c (c_builtin_types): Likewise.
9619 2002-02-13 Keith Seitz <keiths@redhat.com>
9621 * arm-tdep.h (arm_get_next_pc): Add declaration.
9623 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9625 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9626 with other related struct-returning functions.
9627 (arm_extract_struct_value_address): New function.
9628 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9629 initialize float_format, double_format and long_double_format as
9630 appropriate to the endianness of the target.
9631 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9632 (arm_use_struct_convention): Delete declaration.
9633 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9635 2002-02-13 Keith Seitz <keiths@redhat.com>
9637 * defs.h (core_addr_to_string_nz): New function.
9639 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9641 Apply missing bits of 2002-01-15 patch.
9642 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9643 (fill_fpregset): Use i387_fill_fsave.
9645 2002-02-12 Keith Seitz <keiths@redhat.com>
9647 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9648 (core_addr_to_string_nz): New function.
9650 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9652 * arm-linux-nat.c: Really include arm-tdep.h.
9653 * config/arm/tm-linux.h (struct type, struct value): Declare.
9655 2002-02-11 Michael Snyder <msnyder@redhat.com>
9657 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9658 (gcore section): Ifdef for Solaris and Unixware only.
9659 (procfs_do_thread_registers): Unixware needs one lwpstatus
9660 per thread (not one prstatus or pstatus).
9661 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9662 not over all gdb threads. For unixware, call elfcore_write_pstatus
9663 once before iterating over threads.
9665 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9667 * arm-tdep.h: New file.
9668 * arm-tdep.c: Include arm-tdep.h.
9669 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9670 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9671 (arm_print_float_info, arm_register_type, convert_to_extended)
9672 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9673 (arm_extract_return_value, arm_register_name): Make static.
9674 (arm_software_single_step): Similarly. Fix types in declaration.
9675 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9676 (arm_store_return_value, arm_store_struct_return): New functions.
9677 (arm_gdbarch_init): Register the above functions. Also register
9678 call_dummy_start_offset, sizeof_call_dummy_words,
9679 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9680 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9681 max_register_virtual_size, register_size. Set up
9682 prologue_cache.saved_regs here, rather than ...
9683 (_initialize_arm_tdep): ... here.
9684 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9686 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9687 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9688 (arm_print_float_info, arm_register_type, convert_to_extended)
9689 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9690 (arm_extract_return_value, arm_register_name): Delete declarations.
9691 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9692 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9693 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9694 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9695 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9696 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9697 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9698 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9699 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9700 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9701 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9702 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9704 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9705 * remote-rdi.c remote-rdp.c: Likewise.
9706 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9707 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9708 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9711 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9712 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9713 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9714 from non-ARM_ prefixed definitions.
9715 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9717 * remote-rdi.c remote-rdp.c: Likewise.
9718 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9720 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9722 * arm-tdep.c (arm_frameless_function_invocation)
9723 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9724 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9725 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9726 (arm_pop_frame, arm_get_next_pc): Make static.
9727 (arm_gdbarch_init): Register above in gdbarch structure.
9728 (arm_read_fp): Renamed from arm_target_read_fp.
9729 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9730 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9731 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9732 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9733 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9734 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9735 (arm_pc_is_thumb_dummy): Delete declarations.
9736 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9737 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9738 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9739 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9741 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9743 * symtab.c (compare_search_syms): New function.
9744 (sort_search_symbols): New function.
9745 (search_symbols): Sort symbols after searching rather than
9748 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9750 * NEWS: Linux -> GNU/Linux.
9752 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9754 * gdbarch.sh: For for level one methods, disallow a definition
9755 when partially multi-arched. Add comments explaining rationale.
9756 * gdbarch.h: Re-generate.
9758 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9760 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9763 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9765 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9767 * gdbarch.c: Re-generate.
9769 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9771 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9772 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9775 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9777 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9779 (PUSH_ARGUMENTS): Switch to using predefault.
9780 * gdbarch.c: Regenerate.
9782 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9784 * valops.c (PUSH_ARGUMENTS): Delete definition.
9785 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9786 partial. Default to default_push_arguments.
9787 * gdbarch.h, gdbarch.c: Regenerate.
9789 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9791 * defs.h (throw_exception): Rename return_to_top_level. Update
9793 * utils.c (error_stream, internal_verror, quit): Ditto.
9794 * top.c (throw_exception, catcher): Ditto.
9795 * sparclet-rom.c (sparclet_load): Ditto.
9796 * remote.c (interrupt_query, minitelnet): Ditto.
9797 * remote-sds.c (interrupt_query): Ditto.
9798 * remote-mips.c (mips_error, mips_kill): Ditto.
9799 * ocd.c (interrupt_query): Ditto.
9800 * monitor.c (monitor_interrupt_query): Ditto.
9801 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9802 * target.h: Update comment.
9804 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9806 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9808 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9809 default_double_format.
9810 * gdbarch.h, gdbarch.c: Re-generate.
9811 * findvar.c (floatformat_unknown): Delete variable definition.
9812 * doublest.h (floatformat_unknown): Delete variable declaration.
9814 2002-02-09 Jim Blandy <jimb@redhat.com>
9816 * stabsread.c (read_type): Add code to parse Sun's syntax for
9817 prototyped function types.
9819 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9821 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9822 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9824 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9826 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9827 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9828 now _initialize_xcoffsolib gets called again and overrides the
9829 commands from solib.c in a native configuration.
9831 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9833 * doublest.c (store_typed_floating): Don't try to return a value.
9836 2002-02-08 Jim Blandy <jimb@redhat.com>
9838 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9839 is prototyped and has no arguments, print its argument list as
9842 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9844 * MAINTAINERS (write-after-approval): Add myself.
9845 (paper-trail): I've escaped!
9847 2002-02-08 Christopher Faylor <cgf@redhat.com>
9849 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9851 (_initialize_check_for_gdb_ini): Ditto.
9853 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9855 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9856 xaprintf -> xasprintf.
9858 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9860 * win32-nat.c: Remove use of printf and sprintf functions.
9862 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9864 * arm-tdep.c (arm_frame_chain_valid): Make static.
9865 (arm_push_arguments): Likewise.
9866 (arm_gdbarch_init): New function.
9867 (_initialize_arm_tdep): Call it.
9868 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9869 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9870 (FRAME_CHAIN_VALID): Delete.
9871 (arm_frame_chain_valid): Delete declaration.
9872 (PUSH_ARGUMENTS): Delete.
9873 (arm_push_arguments): Delete declaration.
9874 (CALL_DUMMY_P): Delete.
9876 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9877 Corinna Vinschen <vinschen@redhat.com>
9879 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9880 on builtin float types.
9882 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9884 * utils.c: Include <curses.h> before "bfd.h".
9885 * tui/tui-hooks.c: Likewise.
9886 * tui/tui.c: Likewise.
9887 * tui/tuiCommand.c: Likewise.
9888 * tui/tuiData.c: Likewise.
9889 * tui/tuiDataWin.c: Likewise.
9890 * tui/tuiDisassem.c: Likewise.
9891 * tui/tuiGeneralWin.c: Likewise.
9892 * tui/tuiIO.c: Likewise.
9893 * tui/tuiLayout.c: Likewise.
9894 * tui/tuiRegs.c: Likewise.
9895 * tui/tuiSource.c: Likewise.
9896 * tui/tuiSourceWin.c: Likewise.
9897 * tui/tuiStack.c: Likewise.
9898 * tui/tuiWin.c: Likewise.
9900 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9902 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9903 to include space for pseudoregs as well. Update loops accordingly.
9904 (sh_fp_frame_init_saved_regs): Ditto.
9905 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9907 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9909 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9910 Add Richard Earnshaw to Arm maintainers.
9912 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9914 * defs.h (warning_begin): Delete declaration.
9916 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9919 2002-02-07 Michael Snyder <msnyder@redhat.com>
9921 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9922 Logic bug, remove misplaced else.
9924 2002-02-07 Klee Dienes <klee@apple.com>
9926 * fork-inferior.c (fork_inferior): Add '!' to the list of
9927 characters that need to be quoted when building a string for the
9928 shell. Quote '!' specifically with a backslash, since CSH chokes
9929 when trying to evaluate "str!str".
9931 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9933 * rdi-share/host.h: Only provide a typedef for bool if it is not
9936 2002-02-04 Michael Snyder <msnyder@redhat.com>
9938 * breakpoint.h (enum bptype): Add new overlay event bp type.
9939 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9941 * breakpoint.c (create_internal_breakpoint): New function.
9942 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9943 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9944 (create_thread_event_breakpoint): Ditto.
9945 (create_solib_event_breakpoint): Ditto.
9946 (create_overlay_event_breakpoint): New function.
9947 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9948 (update_breakpoints_after_exec): Delete and re-initialize
9949 overlay event breakpoints after an exec. Add FIXME comment
9950 about longjmp breakpoint.
9951 (print_it_typical): Ignore overlay event breakpoints.
9952 (print_one_breakpoint): Ditto.
9954 (bpstat_what): Do not stop for overlay event breakpoints.
9955 (delete_breakpoint): Don't delete overlay event breakpoints.
9956 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9957 (breakpoint_re_set): Re-create overlay event breakpoint.
9959 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9960 (overlay_manual_command): Disable overlay breakpoints.
9961 (overlay_off_command): Disable overlay breakpoints.
9963 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9965 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9966 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9967 to here from config/tm-arm.h.
9968 (coff_sym_is_thumb): Make static.
9969 (arm_elf_make_msymbol_special): New function.
9970 (arm_coff_make_msymbol_special): New function.
9971 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9972 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9973 (coff_sym_is_thumb): Delete declaration.
9974 (arm_elf_make_msymbol_special): Declare.
9975 (arm_coff_make_msymbol_special): Declare.
9976 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9977 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9979 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9981 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9983 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9985 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9986 * gdbarch.c gdbarch.h: Regenerate.
9987 * arch-utils.c (default_print_float_info): New function.
9988 * arch-utils.h (default_print_float_info): Prototype it.
9989 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9990 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9991 (PRINT_FLOAT_INFO): Document it.
9993 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9994 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9995 (PRINT_FLOAT_INFO): Define.
9997 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9999 * win32-nat.c (_initialize_check_for_gdb_ini):
10000 Add typecast to sprintf argument to suppress a warning.
10002 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10004 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10005 to allow easier handling of pass state.
10006 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10007 that gives exception name and address.
10008 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10009 and set last_sig value to ourstatus->value.sig. Some missing
10011 (child_continue): Correctly report continue_status.
10012 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10013 TARGET_SIGNAL_0 (new default value).
10014 (child_resume): consider sig argument passed to decide if
10015 the exception should be passed to debuggee or not.
10017 2002-02-05 Michael Snyder <msnyder@redhat.com>
10019 * regcache.c (fetch_register): Call target_fetch_register
10020 only if we don't call FETCH_PSEUDO_REGISTER.
10021 (store_register): Call target_store_register only if we
10022 don't call STORE_PSEUDO_REGISTER.
10024 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10026 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10027 ELF_MAKE_MSYMBOL_SPECIAL.
10028 * gdbarch.c, gdbarch.h: Regenerate.
10029 * arch-utils.c (default_make_msymbol_special): New function.
10030 * arch-utils.h (default_make_msymbol_special): Export.
10031 * elfread.c (elf_symtab_read): Compile use of
10032 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10034 * coffread.c (coff_symtab_read): Ditto, for
10035 COFF_MAKE_MSYMBOL_SPECIAL.
10037 2002-02-05 Jim Blandy <jimb@redhat.com>
10039 * solib-svr4.c (svr4_truncate_ptr): New function.
10040 (svr4_relocate_section_addresses): Do the address arithmetic with
10041 the appropriate truncation for target addresses, even when
10042 CORE_ADDR is larger than a target address.
10044 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10046 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10049 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10051 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10054 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10056 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10058 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10060 * gdbserver/linux-low.c: Remove unused include files.
10062 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10064 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10065 (read_inferior_memory): Use it.
10066 (write_inferior_memory): Likewise.
10068 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10070 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10071 grubbing through sys_errlist.
10073 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10075 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10077 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10078 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10080 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10082 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10083 (do_sfunc, set_cmd_sfunc): New functions.
10085 * command.h (struct cmd_list_element): Add field func.
10086 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10087 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10088 * cli/cli-decode.h: Ditto.
10090 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10091 (help_all, help_cmd_list): Ditto.
10092 (find_cmd, complete_on_cmdlist): Ditto.
10093 * top.c (execute_command): Ditto.
10095 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10098 * infcmd.c (notice_args_read): Fix function signature.
10100 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10101 * cli/cli-decode.c (add_set_cmd): Ditto.
10102 * utils.c (initialize_utils): Ditto.
10103 * maint.c (_initialize_maint_cmds): Ditto.
10104 * infrun.c (_initialize_infrun): Ditto.
10105 * demangle.c (_initialize_demangler): Ditto.
10106 * remote.c (add_packet_config_cmd): Ditto.
10107 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10108 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10109 * proc-api.c (_initialize_proc_api): Ditto.
10110 * kod.c (_initialize_kod): Ditto.
10111 * valprint.c (_initialize_valprint): Ditto.
10112 * top.c (init_main): Ditto.
10113 * infcmd.c (_initialize_infcmd): Ditto.
10114 * corefile.c (_initialize_core): Ditto.
10115 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10116 * arch-utils.c (initialize_current_architecture): Ditto.
10117 (_initialize_gdbarch_utils): Ditto.
10118 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10120 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10121 * wince.c (_initialize_inftarg): Ditto.
10122 * symfile.c (_initialize_symfile): Ditto.
10123 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10124 * language.c (_initialize_language): Ditto.
10125 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10127 2002-02-04 Michael Snyder <msnyder@redhat.com>
10129 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10131 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10133 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10134 Add rules for building the register data files.
10136 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10138 * regformats/regdat.sh: Add braces to the definition of
10139 expedite_regs_${arch}.
10141 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10143 * regformats/regdef.h (struct reg): Add comment describing the
10144 requirements for offset and size fields.
10146 2002-02-04 Andreas Schwab <schwab@suse.de>
10148 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10149 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10151 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10153 * gdbarch.sh (copyright): Update years in generated header.
10154 (SMASH_TEXT_ADDRESS): Add rule.
10155 * gdbarch.h, gdbarch.c: Re-generate.
10156 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10157 * dbxread.c: Likewise.
10158 * dwarfread.c: Likewise.
10159 * elfread.c: Likewise.
10160 * somread.c: Likewise.
10162 * arm-tdep.c (arm_smash_text_address): New function.
10163 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10165 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10167 Add support for hardware watchpoints on win32 native.
10168 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10169 CONTEXT_DEBUG_REGISTERS.
10170 (dr variable): New variable. Static array containing a local copy
10171 of debug registers.
10172 (debug_registers_changed): New variable. Reflects when debug registers
10173 are changed and need to be written to inferior.
10174 (debug_registers_used): New variable. Reflects when any debug register
10175 was set, used when new threads are created.
10176 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10178 (thread_rec): Set dr array if id is the thread of current_event .
10179 (child_continue, child_resume): Change the debug registers for all
10180 threads if debug_registers_changed.
10181 (child_add_thread): Change the debug registers if debug_registers_used.
10182 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10183 Link nm.h to new nm-cygwin.h file.
10184 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10185 of hardware registers.
10187 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10189 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10190 Restore behavour broken by 2002-01-20 Andrew Cagney
10191 <ac131313@redhat.com> IEEE_FLOAT removal.
10193 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10195 * c-valprint.c (c_val_print): Pass a proper valaddr to
10196 cp_print_class_method.
10197 * valops.c (search_struct_method): If there is only one method
10198 and args is NULL, return that method.
10200 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10202 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10203 accessing tag_name directly.
10205 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10207 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10208 of accessing tag_name directly.
10210 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10213 * gdbtypes.c (replace_type): New function.
10214 * gdbtypes.h (replace_type): Add prototype.
10215 * stabsread.c (read_type): Use replace_type.
10217 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10219 * Makefile.in (memattr.o): Add missing dependencies rule.
10221 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10223 * breakpoint.c (break_at_finish_command): Really export.
10224 (break_at_finish_at_depth_command): Ditto.
10225 (tbreak_at_finish_command): Ditto.
10226 * hppa-tdep.c: Include completer.h.
10227 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10228 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10230 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10232 * utils.c (do_write): New function.
10233 (error_stream): Rewrite combining the code from error_begin and
10235 (verror): Rewrite using error_stream.
10236 (error_begin): Delete function.
10238 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10240 * utils.c (error_begin): Make static.
10241 * defs.h (error_begin): Delete declaration.
10243 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10244 (decode_line_1): Use cplusplus_error instead of error_begin,
10245 cplusplus_hint and return_to_top_level.
10246 * coffread.c (coff_symfile_read): Use error instead of error_begin
10247 and return_to_top_level.
10248 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10250 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10252 * language.h (type_error, range_error): Make string parameter
10254 * language.c (warning_pre_print): Delete extern declaration.
10255 * dwarfread.c (warning_pre_print): Ditto.
10256 * language.c (type_error, range_error): Rewrite to use verror and
10257 vwarning instead of warning_begin.
10259 2002-02-01 Michael Snyder <msnyder@redhat.com>
10261 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10262 (set_ignore_count): Move misplaced comment back where it belongs.
10264 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10266 * command.h (NO_FUNCTION): Delete macro.
10267 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10268 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10269 * tracepoint.c (_initialize_tracepoint): Ditto.
10270 * cli/cli-decode.c (add_set_cmd): Ditto.
10271 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10273 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10275 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10276 Update ``this'' pointer when calling virtual functions.
10278 2002-02-01 Michael Snyder <msnyder@redhat.com>
10280 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10281 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10283 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10285 * regformats/reg-arm.dat: New file.
10286 * regformats/reg-i386.dat: New file.
10287 * regformats/reg-ia64.dat: New file.
10288 * regformats/reg-m68k.dat: New file.
10289 * regformats/reg-mips.dat: New file.
10290 * regformats/reg-ppc.dat: New file.
10291 * regformats/reg-sh.dat: New file.
10292 * regformats/regdef.h: New file.
10293 * regformats/regdat.sh: New file.
10295 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10297 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10298 (arm_frame_args_address, arm_frame_locals_address): New functions.
10299 (arm_frame_num_args): New function.
10300 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10301 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10302 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10304 2002-01-31 Michael Snyder <msnyder@redhat.com>
10306 * breakpoint.c (break_at_finish_command): Export.
10307 (break_at_finish_at_depth_command): Export.
10308 (tbreak_at_finish_command): Export.
10309 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10310 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10311 "tbreak" commands, which are HPPA specific.
10313 * printcmd.c (disassemble_command): Remove an ancient
10314 artifact of an old merge.
10316 * symfile.h (enum overlay_debugging_state):
10317 Define enum constant values for overlay mode.
10318 * symfile.c (overlay_debugging): Use enums instead of literals.
10319 (overlay_is_mapped, overlay_auto_command,
10320 overlay_manual_command): Ditto.
10322 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10323 breakpoint_here_p, breakpoint_inserted_here_p,
10324 breakpoint_thread_match, bpstat_stop_status,
10325 describe_other_breakpoints, check_duplicates, clear_command):
10326 Coding standard fixes.
10328 * target.c (target_xfer_memory): Add spaces, coding standard.
10329 (do_xfer_memory): Add missing line to trust-readonly
10330 code: check bfd SEC_READONLY flag for section.
10332 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10334 * PROBLEMS: Fix typo, 5.1->5.1.1.
10336 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10338 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10339 data symbols, since we search based on textlow and texthigh.
10340 (find_pc_sect_symtab): Likewise.
10342 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10344 * defs.h (vwarning): Declare.
10345 * utils.c (vwarning): New function.
10346 (warning): Call vwarning.
10347 (warning_begin): Delete function.
10349 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10350 the warning message.
10351 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10354 2002-01-30 Michael Snyder <msnyder@redhat.com>
10356 * NEWS: Mention "set trust-readonly-sections" command.
10357 Mention generate-core-file command.
10359 2002-01-15 Michael Snyder <msnyder@redhat.com>
10361 * target.c: New command, "set trust-readonly-sections on".
10362 (do_xfer_memory): Honor the suggestion to trust readonly sections
10363 by reading them from the object file instead of from the target.
10364 (initialize_targets): Register command "set trust-readonly-sections".
10366 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10368 * parse.c (target_map_name_to_register): Simplify, search regs and
10369 pseudo-regs using a single loop.
10371 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10373 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10375 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10377 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10378 * config/i386/i386v42mp.mh: Add i387-nat.o .
10379 * i386v4-nat.c: Include i387-nat.h.
10380 (supply_fpregset): Use i387_supply_fsave.
10381 (fill_fpregset): Use i387_fill_fsave.
10383 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10385 * arm-tdep.c (arm_call_dummy_words): Define.
10386 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10387 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10388 (CALL_DUMMY_WORDS): Define.
10389 (arm_call_dummy_words): Declare.
10390 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10391 (arm_linux_call_dummy_words): Declare.
10393 2002-01-30 Andreas Schwab <schwab@suse.de>
10395 * m68klinux-nat.c: Fix last change to use regcache_collect
10396 instead of referencing registers[] directly.
10398 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10400 * parse.c (target_map_name_to_register): Delete code wrapped in
10401 #ifdef REGISTER_NAME_ALIAS_HOOK.
10403 2002-01-28 Michael Snyder <msnyder@redhat.com>
10405 * regcache.c (legacy_read_register_gen): Need to be able to
10406 read pseudo-register as well as real register.
10407 (legacy_write_register_gen): Ditto.
10409 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10411 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10412 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10413 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10414 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10415 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10416 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10417 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10418 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10419 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10420 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10421 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10422 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10423 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10424 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10425 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10426 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10427 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10428 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10429 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10430 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10432 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10434 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10435 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10436 (initialize_current_architecture): Update target_byte_order using
10437 information from BFD.
10438 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10439 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10441 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10443 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10444 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10446 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10447 #ifdef INVALID_FLOAT.
10448 * infcmd.c (do_registers_info): Ditto.
10449 * values.c (unpack_double): Ditto. Add comment.
10451 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10452 already commented out.
10454 2002-01-26 Andreas Schwab <schwab@suse.de>
10456 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10457 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10458 registers and add support for PTRACE_GETREGS.
10460 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10462 GDB 5.1.1 released from 5.1 branch.
10463 * NEWS: Add 5.1.1 news.
10464 * README: Sync with 5.1 branch.
10466 2002-01-23 Fred Fish <fnf@redhat.com>
10468 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10469 stabstring on initial malloc. Reallocing will copy it for us,
10472 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10474 * Makefile.in (hpread_h): Delete.
10475 (HFILES_NO_SRCDIR): Remove hpread.h.
10476 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10477 (hpread.o): Update dependencies.
10478 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10480 * hp-psymtab-read.c: Remove file.
10481 * hp-symtab-read.c: Remove file.
10482 * hpread.h: Remove file.
10484 * hpread.c: Merge all contents of hp-psymtab-read.c,
10485 hp-symtab-read.c and hpread.h into this file, as it was prior to
10488 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10489 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10490 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10491 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10493 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10495 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10496 fill_gregset): Call gdbarch_tdep() just once, assign result to
10497 variable and use that, instead of calling the function several
10500 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10502 * configure.host: Accept sparcv9 as alias for sparc64.
10503 * configure.tgt: Likewise.
10505 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10507 * solib-aix5.c (build_so_list_from_mapfile)
10508 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10509 arguments is not reversed.
10510 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10511 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10513 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10515 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10516 modified version of obsolete sh_fetch_pseudo_register.
10517 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10518 (sh4_register_read): New function.
10519 (sh_pseudo_register_write): New function. Renamed and modified
10520 version of obsolete sh_store_pseudo_register.
10521 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10522 (sh4_register_write): New function.
10523 (sh_gdbarch_init): Remove setting of gdbarch function
10524 fetch_pseudo_register and store_pseudo_register. Remove setting of
10525 register_convert_to_raw, register_convert_to_virtual,
10526 register_convertible.
10527 (sh_sh4_register_convertible): Delete. No longer needed. All is
10528 taken care by architecture specific functions
10529 register_read/register_write.
10530 (sh_sh4_register_convert_to_virtual): Make static.
10531 (sh_sh4_register_convert_to_raw): Ditto.
10533 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10535 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10536 (floatformat_is_nan, floatformat_mantissa): Ditto.
10538 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10539 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10540 builtin_type_ieee_double_little,
10541 builtin_type_ieee_double_littlebyte_bigword,
10542 builtin_type_m68881_ext, builtin_type_i960_ext,
10543 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10544 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10545 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10546 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10548 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10550 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10551 parameter. Set frameless flag if it exists and depended of
10552 whether the scanned function is frameless or not.
10553 (xstormy16_skip_prologue): If function is frameless, return
10554 result of xstormy16_scan_prologue().
10555 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10558 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10560 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10561 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10562 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10563 sh_sh4_register_byte, sh_sh4_register_raw_size,
10564 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10565 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10566 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10567 sh_store_pseudo_register, sh_do_pseudo_register): Call
10568 gdbarch_tdep() just once, assign result to variable and use that,
10569 instead of calling the function several times.
10571 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10573 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10574 macros instead of LAST_FPU_CTRL_REGNUM.
10575 (store_register): Likewise.
10577 2002-01-21 Jim Blandy <jimb@redhat.com>
10579 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10580 is up-to-date before running the program, not just when a program
10583 2002-01-21 Fred Fish <fnf@redhat.com>
10585 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10586 when we have found all instructions we are looking for.
10588 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10590 * arm-tdep.c (arm_register_name): New function.
10591 (arm_registers_names): Make static.
10592 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10593 (arm_register_name): Declare.
10594 (REGISTER_NAME): Use it.
10596 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10597 Kevin Buettner <kevinb@redhat.com>
10599 Convert arm targets to new FRAME interface.
10600 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10601 (arm_frame_find_save_regs): Delete.
10602 (arm_frame_init_saved_regs): New.
10603 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10604 Allocate extra_info as required. Convert all uses of fsr.regs
10605 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10607 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10608 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10609 (check_prologue_cache, save_prologue_cache): Likewise.
10610 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10611 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10612 (FRAME_FIND_SAVED_REGS): Delete.
10613 (arm_frame_find_saved_regs): Delete prototype.
10614 (arm_frame_init_saved_regs): New prototype.
10615 (FRAME_INIT_SAVED_REGS): Define.
10617 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10619 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10621 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10623 From Jeff Law <law@redhat.com>:
10624 * infttrace.c: Include <sys/pstat.h>.
10625 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10626 exec file if the ttrace equivalent fails.
10628 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10630 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10631 (closeLogFile): Ditto.
10633 2002-01-20 Michael Chastain <mec@shout.net>
10635 * top.c (print_gdb_version): Bump copyright year to 2002.
10637 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10639 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10640 Zannoni and Eli Zaretskii.
10642 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10644 * buildsym.c: Update copyright years.
10645 * c-typeprint.c: Likewise.
10646 * dwarf2read.c: Likewise.
10647 * f-typeprint.c: Likewise.
10648 * gdbtypes.c: Likewise.
10649 * gdbtypes.h: Likewise.
10650 * hp-symtab-read.c: Likewise.
10651 * hpread.c: Likewise.
10652 * mdebugread.c: Likewise.
10653 * p-typeprint.c: Likewise.
10655 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10657 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10658 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10659 byte-order selectable.
10660 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10661 * arch-utils.c: Ditto.
10662 (set_endian): Ditto.
10663 (set_endian_from_file): Ditto.
10664 * gdbserver/low-sim.c (create_inferior): Ditto.
10665 * gdbarch.sh: Ditto.
10666 * gdbarch.h: Re-generate.
10667 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10668 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10669 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10670 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10671 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10672 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10673 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10674 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10676 * config/mips/tm-wince.h: Remove #undef of macro
10677 TARGET_BYTE_ORDER_SELECTABLE.
10678 * config/sh/tm-wince.h: Ditto.
10680 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10682 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10683 member function fields. Add accessor macro
10684 TYPE_FN_FIELD_ARTIFICIAL.
10685 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10686 * c-typeprint.c (c_type_print_base): Skip artificial member
10689 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10691 * f-typeprint.c: Delete unused function f_type_print_args.
10692 * p-typeprint.c: Delete unused function pascal_type_print_args.
10694 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10696 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10697 comment. Add ``artificial'' to ``union field_location''.
10699 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10701 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10702 * mdebugread.c (parse_symbol): Likewise.
10703 * stabsread.c (define_symbol): Likewise.
10704 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10705 initializing TYPE_FIELD_BITPOS to n (obsolete).
10706 (hpread_doc_function_type): Likewise.
10707 * hpread.c (hpread_function_type): Likewise.
10709 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10711 * configure.in (host_makefile_frag): Only require a host makefile
10712 fragment when a native build.
10713 * configure: Re-generate.
10715 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10717 * doublest.h (floatformat_from_type): Declare.
10718 * doublest.c (floatformat_from_type): New function.
10719 (convert_typed_floating): Use.
10721 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10722 call to function floatformat_from_type.
10724 * gdbarch.sh (IEEE_FLOAT): Delete.
10725 * gdbarch.h, gdbarch.c: Re-generate.
10726 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10727 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10728 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10729 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10730 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10731 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10732 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10733 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10734 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10735 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10736 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10737 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10739 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10740 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10741 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10742 * sh-tdep.c (sh_gdbarch_init): Ditto.
10743 * mips-tdep.c (mips_gdbarch_init): Ditto.
10744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10745 * cris-tdep.c (cris_gdbarch_init): Ditto.
10747 2002-01-20 Jiri Smid <smid@suse.cz>
10749 * configure.host, configure.tgt: Support x86-64.
10750 * NEWS: Note new target x86-64.
10752 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10753 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10754 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10755 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10756 x86-64-linux-nat.o): Fix dependencies.
10758 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10760 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10761 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10762 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10763 * config/sparc/xm-sun4os4.h: Delete file.
10764 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10766 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10768 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10769 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10770 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10771 * config/i386/i386lynx.mh (XM_FILE): Delete.
10772 * config/rs6000/xm-rs6000ly.h: Delete file.
10773 * config/sparc/xm-sparclynx.h: Delete file.
10774 * config/m68k/xm-m68klynx.h: Delete file.
10775 * config/i386/xm-i386lynx.h: Delete file.
10776 * config/xm-lynx.h: Delete file.
10777 * config/djgpp/fnchange.lst: Update.
10779 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10781 * alpha-tdep.c (alpha_register_byte): New function.
10782 (alpha_register_raw_size): Ditto.
10783 (alpha_register_virtual_size): Ditto.
10784 (alpha_skip_prologue_internal): Renamed from
10785 alpha_skip_prologue.
10786 (alpha_skip_prologue): New version that calls
10787 alpha_skip_prologue_internal.
10788 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10789 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10790 second argument from alpha_skip_prologue.
10791 (REGISTER_BYTE): Use alpha_register_byte.
10792 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10793 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10794 (FRAMELESS_FUNCTION_INVOCATION): Use
10795 generic_frameless_function_invocation_not.
10796 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10797 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10799 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10801 * config/mips/xm-news-mips.h: Delete file.
10802 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10804 * config/m88k/xm-m88k.h: Delete file.
10805 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10806 * config/m88k/xm-delta88v4.h: Ditto.
10807 * config/m88k/xm-delta88.h: Ditto.
10809 * config/alpha/xm-fbsd.h: Delete file.
10810 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10812 * config/sparc/xm-sparc.h: Delete file.
10813 * Makefile.in (xm-sun4os4.h): Delete dependency.
10814 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10815 * config/sparc/xm-sun4os4.h: Ditto.
10816 * config/sparc/xm-linux.h: Ditto.
10818 * config/i386/xm-windows.h: Delete file.
10820 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10822 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10823 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10825 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10827 * alpha-tdep.c (alpha_call_dummy_words): New.
10828 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10829 (CALL_DUMMY_P): Define.
10830 (CALL_DUMMY_WORDS): Define.
10831 (SIZEOF_CALL_DUMMY_WORDS): Define.
10833 2002-01-19 Per Bothner <per@bothner.com>
10835 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10836 isn't NULL, which can happen with some gcj-3.x-produced code.
10838 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10840 * alpha-tdep.c (alpha_register_virtual_type): New function.
10841 (alpha_init_frame_pc_first): Ditto.
10842 (alpha_fix_call_dummy): Ditto.
10843 (alpha_store_struct_return): Ditto.
10844 (alpha_extract_struct_value_address): Ditto.
10845 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10846 alpha_register_virtual_type.
10847 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10848 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10849 alpha_extract_struct_value_address.
10850 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10851 (INIT_FRAME_PC): Use init_frame_pc_noop.
10852 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10854 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10856 * i386gnu-nat.c: Include "i386-tdep.h".
10857 (fetch_fpregs): Simplify code dealing with uninitialized floating
10858 point states such that it doesn't require FP7_REGNUM.
10860 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10862 * alpha-tdep.c (frame_extra_info): New.
10863 (alpha_find_saved_regs): Make static. Use
10865 (alpha_frame_init_saved_regs): New function.
10866 (alpha_frame_saved_pc): Use frame->extra_info.
10867 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10868 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10869 (init_extra_frame_info): Rename to...
10870 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10871 (alpha_print_extra_frame_info): New function.
10872 (alpha_frame_locals_address): Ditto.
10873 (alpha_frame_args_address): Ditto.
10874 (alpha_pop_frame): Use frame->extra_info.
10875 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10876 alpha_frame_args_address.
10877 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10878 (alpha_find_saved_regs): Remove prototype.
10879 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10880 (EXTRA_FRAME_INFO): Remove.
10881 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10882 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10884 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10886 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10887 (alpha_cannot_fetch_register): Ditto.
10888 (alpha_cannot_store_register): Ditto.
10889 (alpha_register_convertible): Ditto.
10890 (alpha_use_struct_convention): Ditto.
10891 * config/alpha/tm-alpha.h: Update copyright years.
10892 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10893 (INNER_THAN): Use core_addr_lessthan.
10894 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10895 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10896 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10897 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10898 (FRAME_CHAIN): Remove unnecessary cast.
10900 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10902 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10905 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10907 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10908 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10909 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10910 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10911 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10912 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10913 * x86-64-linux-nat.c: Ditto.
10915 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10917 * alpha-tdep.c (alpha_register_name): New function.
10918 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10919 (REGISTER_NAME): Define.
10921 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10923 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10925 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10927 * alpha-tdep.c: Update copyright years.
10928 (alpha_next_pc): New function.
10929 (alpha_software_single_step): Ditto.
10930 * config/alpha/tm-alpha.h: Add prototype for
10931 alpha_software_single_step.
10933 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10935 * alphabsd-nat.c: Update copyright years.
10936 (fill_gregset): Use regcache_collect.
10937 (fill_fpregset): Likewise.
10938 (fetch_inferior_registers): Only fetch integer registers
10939 if requested to do so.
10940 (store_inferior_registers): Only store integer registers
10941 if requested to do so.
10943 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10945 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10946 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10947 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10948 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10949 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10950 * config/arm/linux.mh (XDEPFILES): Delete.
10951 * config/arm/nbsd.mh (XDEPFILES): Delete.
10952 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10953 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10954 * config/i386/i386m3.mh (XDEPFILES): Delete.
10955 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10956 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10957 * config/i386/fbsd.mh (XDEPFILES): Delete.
10958 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10959 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10960 * config/i386/i386v4.mh (XDEPFILES): Delete.
10961 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10962 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10963 * config/i386/i386aix.mh (XDEPFILES): Delete.
10964 * config/i386/go32.mh (XDEPFILES): Delete.
10965 * config/i386/cygwin.mh (XDEPFILES): Delete.
10966 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10967 * config/i386/i386mach.mh (XDEPFILES): Delete.
10968 * config/i386/i386v32.mh (XDEPFILES): Delete.
10969 * config/i386/linux.mh (XDEPFILES): Delete.
10970 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10971 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10972 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10973 * config/i386/i386sco.mh (XDEPFILES): Delete.
10974 * config/i386/i386v.mh (XDEPFILES): Delete.
10975 * config/i386/nbsd.mh (XDEPFILES): Delete.
10976 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10977 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10978 * config/i386/symmetry.mh (XDEPFILES): Delete.
10979 * config/i386/obsd.mh (XDEPFILES): Delete.
10980 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10981 * config/ia64/linux.mh (XDEPFILES): Delete.
10982 * config/ia64/aix.mh (XDEPFILES): Delete.
10983 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10984 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10985 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10986 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10987 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10988 * config/m68k/linux.mh (XDEPFILES): Delete.
10989 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10990 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10991 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10992 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10993 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10994 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10995 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10996 * config/m88k/delta88.mh (XDEPFILES): Delete.
10997 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10998 * config/m88k/m88k.mh (XDEPFILES): Delete.
10999 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11000 * config/mips/linux.mh (XDEPFILES): Delete.
11001 * config/mips/irix6.mh (XDEPFILES): Delete.
11002 * config/mips/irix5.mh (XDEPFILES): Delete.
11003 * config/mips/irix4.mh (XDEPFILES): Delete.
11004 * config/mips/irix3.mh (XDEPFILES): Delete.
11005 * config/mips/decstation.mh (XDEPFILES): Delete.
11006 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11007 (NATDEPFILES): Move core-aout.o to here.
11008 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11009 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11010 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11011 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11012 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11013 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11014 * config/pa/hpux11.mh (XDEPFILES): Delete.
11015 * config/powerpc/aix.mh (XDEPFILES): Delete.
11016 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11017 * config/powerpc/linux.mh (XDEPFILES): Delete.
11018 * config/romp/rtbsd.mh: Rename XDEPFILES.
11019 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11020 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11021 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11022 * config/s390/s390.mh (XDEPFILES): Delete.
11023 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11024 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11025 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11026 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11027 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11028 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11029 * config/sparc/linux.mh (XDEPFILES): Delete.
11030 * config/vax/vaxult.mh (XDEPFILES): Delete.
11031 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11032 * Makefile.in (DEPFILES): Remove XDEPFILES.
11034 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11036 * utils.c (internal_verror): Fix comments, default is yes not no.
11037 Update queries to match. Default to quit and dump core.
11039 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11041 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11043 * defs.h, event-top.c, gdbcmd.h: Ditto.
11044 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11045 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11046 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11047 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11048 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11049 * mi/mi-main.c:Ditto.
11051 * stack.c, symfile.c: Update copyright.
11053 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11055 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11056 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11057 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11058 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11060 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11062 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11063 * gdbserver/low-lynx.c (myattach): Likewise.
11064 * gdbserver/low-nbsd.c (myattach): Likewise.
11065 * gdbserver/low-sim.c (myattach): Likewise.
11066 * gdbserver/low-sparc.c (myattach): Likewise.
11067 * gdbserver/low-sun3.c (myattach): Likewise.
11069 * gdbserver/low-linux.c (myattach): New function.
11071 * gdbserver/server.c (attach_inferior): New function.
11072 (main): Handle "--attach".
11074 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11076 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11079 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11081 * c-typeprint.c (is_type_conversion_operator): Add additional
11082 check for non-conversion operators.
11084 2002-01-15 Michael Snyder <msnyder@redhat.com>
11086 * linux-proc.c: Add "info proc" command, a la procfs.c.
11087 (read_mapping): New function, abstract and re-use code.
11088 (linux_find_memory_regions): Use new func read_mapping.
11089 (linux_info_proc_cmd): New function, implement "info proc".
11090 (_initialize_linux_proc): Add new command "info proc".
11092 2002-01-15 Michael Snyder <msnyder@redhat.com>
11094 * symfile.c (generic_load): Use bfd_map_over_sections method
11095 instead of manipulating bfd structure members directly.
11096 (add_section_size_callback): New function, bfd sections callback
11097 used by generic_load.
11098 (load_sections_callback): New function, bfd sections callback
11099 used by generic_load.
11101 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11103 [Based on work by Jim Blandy]
11104 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11105 (builtin_type_vec128): Export.
11106 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11108 (builtin_type_vec128): New builtin type for 128 bit vector
11110 (build_gdbtypes): Initialize builtin_type_v16qi and
11111 builtin_type_v8hi. Create the vec128 register builtin type
11113 (build_builtin_type_vec128): New function.
11114 (_initialize_gdbtypes): Register builtin_type_v16qi and
11115 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11116 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11117 AltiVec register to new builtin type.
11119 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11121 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11124 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11126 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11127 CLEAN_UP_REGISTER_VALUE.
11128 * regcache.c (supply_register): Update only call.
11130 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11132 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11133 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11134 a29k-*-vxworks* targets as obsolete.
11136 2002-01-14 Michael Snyder <msnyder@redhat.com>
11138 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11139 until we can resolve portability issues.
11140 * gregset.h: Remove references to fpxregs.
11141 * gcore.c (gcore_command): Initialize note_sec to NULL.
11143 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11145 * signals.c (target_signal_to_name): Rewrite. Only use
11146 signals[].name when in bounds and non-NULL.
11148 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11150 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11151 * signals.c (target_signal_to_name): Verify that SIG is within the
11152 bounds of the signals array.
11154 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11156 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11158 2002-01-13 Keith Seitz <keiths@redhat.com>
11160 * stack.c (print_frame_info_base): Print the frame's pc
11161 only if when print_frame_info_listing_hook is not defined.
11163 2002-01-13 Keith Seitz <keiths@redhat.com>
11165 * varobj.c (varobj_set_value): Make sure that there were no
11166 errors evaluating the object before attempting to set its
11168 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11169 so this offset adjustment is no longer necessary.
11170 (create_child): Don't set the error flag if the child is
11171 a CPLUS_FAKE_CHILD.
11172 (value_of_child): If value_fetch_lazy fails, return NULL
11173 so that callers will be notified that an error occurred.
11174 (c_value_of_variable): Delay check of variable's validity
11175 until later. We actually want all structs and unions to have
11177 Do not return "???" for variables which could not be evaluated.
11178 This error condition must be returned to the caller so that it
11179 can get the error condition from gdb.
11180 (cplus_name_of_child): Adjust index for vptr before figuring
11181 out the name of the child.
11182 (cplus_value_of_child): If a child's (real) parent is not valid,
11183 don't even bother trying to give a value for it. Just return
11184 an error. Change all instances in this function.
11185 (cplus_type_of_child): If our parent is one of the "fake"
11186 parents, we need to get at the type of the real parent, and
11187 derive the child's true type using this information.
11189 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11191 From 2002-01-09 John Marshall <johnm@falch.net>:
11192 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11193 sources.redhat.com, and tweak some related URLs which had
11194 suffered from linkrot.
11196 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11199 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11200 structures passed in registers.
11202 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11204 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11205 white space which prevented compilation. Reported by DSK
11206 <dsk@student.unsw.edu.au>.
11208 2002-01-11 Michael Snyder <msnyder@redhat.com>
11210 * symfile.c (build_section_addr_info_from_section_tab):
11211 Use bfd access method instead of manipulating bfd directly.
11212 (syms_from_objfile): Ditto.
11213 (simple_overlay_update_1): Ditto.
11214 (simple_overlay_update): Ditto.
11215 (generic_load): Ditto.
11216 (overlay_unmapped_address): FIXME comment, bfd access methods.
11217 (sections_overlap): FIXME comment, bfd access methods.
11218 (pc_in_mapped_range): FIXME comment, bfd access methods.
11219 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11220 (section_is_mapped): FIXME comment, bfd access methods.
11221 (section_is_overlay): FIXME comment, bfd access methods.
11223 * symfile.c (generic_load): Whitespace and long line cleanups.
11224 Remove duplicate variable, change several local variables to
11225 more appropriate data types.
11226 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11228 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11230 From Peter Schauer:
11231 * language.c (longest_local_hex_string_custom): Use phex_nz to
11232 convert NUM to a hex string.
11234 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11236 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11238 Update Copyright year.
11240 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11242 * language.c (longest_raw_hex_string): Delete unused function.
11244 2002-01-11 Petr Sorfa <petrs@caldera.com>
11246 * MAINTAINERS (write-after-approval): Add myself.
11247 * dwarf2read.c (read_tag_string_type): Handling of
11249 (read_tag_string_type): FORTRAN fix to prevent propagation of
11251 (set_cu_language): Handling of DW_LANG_Fortran95
11253 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11255 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11256 GETPID(inferior_ptid).
11257 (store_inferior_registers): Likewise.
11259 2002-01-10 Jason Merrill <jason@redhat.com>
11261 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11264 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11266 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11267 and bfd/elf32-sh-nbsd.c.
11269 2002-01-10 Michael Snyder <msnyder@redhat.com>
11271 * NEWS: Mention --pid and corefile/proc-id behavior change.
11273 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11274 * gcore.c: Include cli/cli-decode.h instead of command.h.
11276 * main.c (captured_main): Add new command line option "--pid".
11277 If the second command line argument (following the symbol-file)
11278 begins with a digit, try to attach to it before trying to open
11280 (print_gdb_help): Document the "--pid" argument.
11282 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11284 * completer.c (command_completer): New function.
11286 * completer.h <command_completer>: Add prototype.
11288 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11289 completer for the "help" command.
11291 2002-01-09 Jason Merrill <jason@redhat.com>
11293 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11295 2002-01-09 Michael Snyder <msnyder@redhat.com>
11297 * i386-linux-nat.c (fill_fpxregset): Make global.
11298 (store_fpxregset): Ditto.
11300 * gregset.h (gdb_fpxregset_t): Define.
11301 (supply_fpxregset): Prototype.
11302 (fill_fpxregset): Prototype.
11304 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11306 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11308 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11309 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11310 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11312 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11314 * MAINTAINERS: Update target maintainer rules so that any
11315 Maintainer can approve a tested patch for a maintenance-only
11318 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11320 * MAINTAINERS (write-after-approval): Add myself.
11322 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11325 2002-01-08 Michael Snyder <msnyder@redhat.com>
11327 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11328 real name of the executable, rather than the /proc name.
11330 2002-01-03 Michael Snyder <msnyder@redhat.com>
11332 Implement a "generate-core-file" command in gdb, save target state.
11333 * gcore.c: New file. Implement new command 'generate-core-file'.
11334 Save a corefile image of the current state of the inferior.
11335 * linux-proc.c: Add linux-specific code for saving corefiles.
11336 * target.h (struct target_ops): Add new target vectors for saving
11337 corefiles; to_find_memory_regions and to_make_corefile_notes.
11338 (target_find_memory_regions): New macro.
11339 (target_make_corefile_notes): New macro.
11340 * target.c (update_current_target): Inherit new target methods.
11341 (dummy_find_memory_regions): New place-holder method.
11342 (dummy_make_corefile_notes): New place-holder method.
11343 (init_dummy_target): Initialize new dummy target vectors.
11344 * exec.c (exec_set_find_memory_regions): New function.
11345 Allow the exec_ops vector for memory regions to be taken over.
11346 (exec_make_note_section): New function, target vector method.
11347 * defs.h (exec_set_find_memory_regions): Export prototype.
11348 * procfs.c (proc_find_memory_regions): New function, corefile method.
11349 (procfs_make_note_section): New function, corefile method.
11350 (init_procfs_ops): Set new target vector pointers.
11351 (find_memory_regions_callback): New function.
11352 (procfs_do_thread_registers): New function.
11353 (procfs_corefile_thread_callback): New function.
11354 * sol-thread.c (sol_find_memory_regions): New function.
11355 (sol_make_note_section): New function.
11356 (init_sol_thread_ops): Initialize new target vectors.
11357 * inftarg.c (inftarg_set_find_memory_regions): New function.
11358 Allow to_find_memory_regions vector to be taken over.
11359 (inftarg_set_make_corefile_notes): New function.
11360 Allow to_make_corefile_notes vector to be taken over.
11361 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11362 interface layer if not target_has_execution (may be a corefile).
11363 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11364 * config/sparc/sun4sol2.mh: Ditto.
11365 * config/alpha/alpha-linux.mh: Ditto.
11366 * config/arm/linux.mh: Ditto.
11367 * config/i386/x86-64linux.mh: Ditto.
11368 * config/ia64/linux.mh: Ditto.
11369 * config/m68k/linux.mh: Ditto.
11370 * config/mips/linux.mh: Ditto.
11371 * config/powerpc/linux.mh: Ditto.
11372 * config/sparc/linux.mh: Ditto.
11374 2002-01-07 Michael Snyder <msnyder@redhat.com>
11376 * arm-linux-nat.c: Remove references to regcache.c internal data
11377 (registers[] and register_valid[]).
11379 2002-01-07 Michael Snyder <msnyder@redhat.com>
11381 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11382 so that attaching to a pid will automatically read the process's
11383 symbol file and shlibs.
11384 * Makefile.in: Add rule for linux-proc.o.
11385 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11386 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11387 * config/arm/linux.mh: Ditto.
11388 * config/i386/linux.mh: Ditto.
11389 * config/i386/x86-64linux.mh: Ditto.
11390 * config/ia64/linux.mh: Ditto.
11391 * config/m68k/linux.mh: Ditto.
11392 * config/mips/linux.mh: Ditto.
11393 * config/powerpc/linux.mh: Ditto.
11394 * config/sparc/linux.mh: Ditto.
11396 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11398 * win32-nat.c: Add i386-tdep.h dependency.
11400 2002-01-07 Michael Snyder <msnyder@redhat.com>
11402 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11403 instead of bfd_get_arch_size. Don't bail out just because
11404 there's no exec_bfd.
11406 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11407 * p-valprint.c (pascal_object_print_value): Ditto.
11408 * somread.c (som_symtab_read): Ditto.
11409 * symfile.c (simple_free_overlay_region_table): Ditto.
11410 * valops.c (value_assign): Ditto.
11412 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11413 use tilde_expand and strerror for opening save-tracepoints file.
11415 * thread-db.c (thread_db_new_objfile): Indendation fix.
11417 * infptrace.c (GDB_MAX_ALLOCA): New define.
11418 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11419 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11420 can be overridden with whatever value is appropriate to the host).
11421 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11422 alloca to allocate potentially large buffer.
11423 * rs6000-nat.c (child_xfer_memory): Ditto.
11424 * symm-nat.c (child_xfer_memory): Ditto.
11425 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11427 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11429 From Nick Clifton <nickc@redhat.com>
11430 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11432 2002-01-07 Michael Snyder <msnyder@redhat.com>
11434 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11435 Don't use exec_bfd if it's NULL.
11437 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11439 * valops.c (value_arg_coerce): Fix formatting.
11441 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11443 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11444 * gnu-nat.c: Ditto.
11446 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11448 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11449 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11450 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11451 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11452 z8k-coff have not been multi-arched. Update z8k-coff build
11455 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11457 * MAINTAINERS: Mark a29k target as obsolete.
11458 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11459 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11461 * NEWS: Note that a29k targets are obsolete.
11462 * a29k-tdep.c: Mark as obsolete.
11463 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11464 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11465 a29k-*-vxworks* targets as obsolete.
11466 * remote-adapt.c: Obsolete.
11467 * remote-eb.c: Obsolete.
11468 * remote-mm.c: Obsolete.
11469 * remote-udi.c: Obsolete.
11470 * config/a29k/a29k-udi.mt: Obsolete.
11471 * config/a29k/a29k.mt: Obsolete.
11472 * config/a29k/tm-a29k.h: Obsolete.
11473 * config/a29k/tm-vx29k.h: Obsolete.
11474 * config/a29k/vx29k.mt: Obsolete.
11476 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11478 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11479 with BFD_ENDIAN_BIG.
11481 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11483 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11484 * configure, config.in: Re-generate.
11485 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11486 * defs.h: Do not include <endian.h>.
11488 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11490 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11491 * config.in: Regenerate.
11492 * configure.in: Update copyright years.
11493 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11494 * configure: Regenerate.
11495 * i386bsd-nat.c: Update copyright years.
11496 (fill_gregset): Use regcache_collect.
11497 (fetch_inferior_registers): Only fetch integer registers
11498 if requested to do so. Add support for XMM registers
11499 using PT_GETXMMREGS.
11500 (store_inferior_registers): Only store integer registers
11501 if requested to do so. Add support for XMM registers
11502 using PT_SETXMMREGS.
11503 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11504 (store_inferior_registers): Remove.
11505 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11506 (fetch_elfcore_registers): New function.
11507 (i386nbsd_elfcore_fns): New.
11508 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11509 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11511 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11512 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11513 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11514 * config/i386/tm-nbsd.h: Update copyright years.
11515 (HAVE_SSE_REGS): Define.
11516 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11517 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11518 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11519 (SIGCONTEXT_PC_OFFSET): Remove.
11520 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11522 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11524 * configure.tgt: Remove powerpc-*-macos* target.
11525 * config/m68k/xm-mpw.h: Delete file.
11526 * config/xm-mpw.h: Delete file.
11527 * ser-mac.c: Delete file.
11528 * mpw-make.sed: Delete file.
11529 * mpw-config.in: Delete file.
11530 * mac-xdep.c: Delete file.
11531 * mac-gdb.r: Delete file.
11532 * mac-defs.h: Delete file.
11533 * mac-nat.c: Delete file.
11534 * config/powerpc/macos.mh: Delete file.
11535 * config/powerpc/macos.mt: Delete file.
11536 * config/powerpc/nm-macos.h: Delete file.
11537 * config/powerpc/tm-macos.h: Delete file.
11538 * source.c (openp, open_source_file): Remove obsolete code.
11539 * top.c (gdb_readline): Ditto.
11540 * utils.c (query): Ditto.
11541 * event-top.c (display_gdb_prompt): Ditto.
11542 * Makefile.in (ser-mac.o): Delete obsolete target.
11545 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11547 * defs.h (BIG_ENDIAN): Delete macro definition.
11548 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11549 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11550 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11551 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11552 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11553 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11554 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11555 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11556 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11557 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11558 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11559 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11560 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11561 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11562 * gdbarch.c: Re-generate.
11564 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11566 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11569 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11571 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11573 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11575 * value.h (value_ptr): Delete typedef.
11577 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11579 * i386nbsd-nat.c: Update copyright years.
11580 Include i386-tdep.h.
11582 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11584 * stabsread.c: Update copyright years.
11586 From Debashis Mahata <debashis.mahata@wipro.com>:
11587 (read_struct_fields): Deal with Sun C compiler erroneous stab
11588 output for structs and unions.
11591 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11593 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11596 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11598 * cp-abi.c: Fix whitespace.
11599 (baseclass_offset): New wrapper function.
11600 * cp-abi.h (baseclass_offset): Add prototype.
11601 (struct cp_abi_ops): Add baseclass_offset pointer.
11603 * valops.c (vb_match): Move to...
11604 * gnu-v2-abi.c (vb_match): here.
11605 * valops.c (baseclass_offset): Move to...
11606 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11608 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11610 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11611 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11612 * hpacc-abi.c (init_hpacc_ops): Likewise.
11614 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11616 * valops.c (find_overload_match): Accept obj as a
11617 reference parameter. Update it before returning.
11618 * value.h (find_overload_match): Update prototype.
11619 * eval.c (evaluate_subexp_standard): Pass object to
11620 find_overload_match by reference.
11622 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11624 * valarith.c: Replace value_ptr with struct value pointer. Remove
11625 register attribute from value declarations.
11628 * scm-lang.c (scm_lookup_name): Ditto.
11630 2002-01-03 Michael Snyder <msnyder@redhat.com>
11632 Abstract the functionality of iterating over mapped memory
11633 regions into a general purpose iterator function.
11634 * procfs.c (iterate_over_mappings): New function, general purpose
11635 iterator for memory sections.
11636 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11637 (solib_mappings_callback): New function, callback for above.
11638 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11639 (info_mappings_callback): New function, callback for above.
11641 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11643 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11645 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11646 * i386-tdep.c: Include "elf-bfd.h".
11647 (process_note_abi_tag_sections): New function.
11648 (i386_gdbarch_init): Add code to recognize various OS/ABI
11651 * maint.c (_initialize_maint_cmds): Add missing \ in
11654 For older changes see ChangeLog-2001
11660 version-control: never