1 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3 * inferior.h (registers_info, stepi_command, nexti_command,
4 continue_command, interrupt_target_command): Export from infcmd.c.
5 * frame.h (args_info, selected_frame_level_changed_hook,
6 return_command): Export from stack.c.
7 * v850ice.c (stepi_command, nexti_command, continue_command): use
8 prototypes from inferior.h.
9 * tracepoint.c (registers_info, args_info, locals_info): Use
10 prototypes from frame.h and inferior.h.
11 * Makefile.in (mi-main.o): Add dependency on frame.h.
13 2002-10-02 Andrew Cagney <ac131313@redhat.com>
15 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
16 value in register 3 adjusted by ppc_gp0_regnum.
18 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
20 2002-10-02 Marko Mlinar <markom@opencores.org>
22 * MAINTAINERS: Add myself to the Write After Approval list.
24 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
26 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
27 of the section for the N64 ABI, fixed.
29 * config/mips/tm-irix6.h: Include solib.h.
31 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
33 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
36 2002-10-01 Andrew Cagney <ac131313@redhat.com>
38 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
39 and that "mi0" syntax has been removed.
41 2002-09-30 David Carlton <carlton@math.stanford.edu>
43 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
44 * ppc-sysv-tdep.c: #include "gdb_string.h".
45 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
48 2002-10-01 Andrew Cagney <ac131313@redhat.com>
50 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
51 "vrsave"'s register number.
53 2002-09-30 Andrew Cagney <ac131313@redhat.com>
55 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
56 use frame_unwind_signed_register to obtain the PC.
57 (mips_frame_chain): Handle a generic dummy frame.
58 (mips_init_extra_frame_info): When a generic dummy frame, don't
59 re-compute the frame base.
60 (mips_pop_frame): Handle generic dummy frames.
61 (mips_gdbarch_init): When generic dummy frames, set
62 use_generic_dummy_frames, push_dummy_frame to
63 generic_push_dummy_frame, pc_in_call_dummy to
64 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
65 generic_save_dummy_frame_tos.
67 2002-09-30 Andrew Cagney <ac131313@redhat.com>
69 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
70 against TOP when TOP was explictly set.
71 (generic_push_dummy_frame): Set TOP to zero.
73 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
75 * event-loop.c (start_event_loop): Rename variable 'result' to
76 'gdb_result', to avoid conflicts with upcoming intepreters changes.
78 2002-09-30 Keith Seitz <keiths@redhat.com>
80 * gdb-events.sh (selected_thread_changed): New event.
81 * gdb-events.c: Regenerated.
82 * gdb-events.h: Regenerated.
84 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
86 * MAINTAINERS: Add self to Write After Approval list.
88 2002-09-30 Fernando Nasser <fnasser@redhat.com>
92 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
93 (compare_lines): Ditto.
95 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
97 (do_assembly_only): Ditto.
98 (do_disassembly): Renamed to gdb_disassembly and moved to
99 disasm.c. Sdded uiout argument.
100 * Makefile.in: Add new files. Reorder SFILES list. Update
101 dependencies. Include libgdb.a later in the insight executable.
103 2002-09-29 Andrew Cagney <ac131313@redhat.com>
105 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
106 bfd/elf64-alpha-fbsd.c.
108 2002-09-29 Andrew Cagney <ac131313@redhat.com>
110 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
113 2002-09-29 Andrew Cagney <ac131313@redhat.com>
115 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
117 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
119 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
120 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
121 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
122 (S_msg_sig_post_reply): Ditto.
124 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
126 * sh-tdep.c (sh_use_struct_convention): Use definition according
128 (sh_push_arguments): Store in register with correct endianess.
129 (sh_default_store_return_value): Ditto.
130 (sh_gdbarch_init): Set sizeof long double to 8.
132 2002-09-27 Mark Kettenis <kettenis@gnu.org>
134 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
135 Fix some whitespace problems.
137 2002-09-27 David Carlton <carlton@math.stanford.edu>
139 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
140 (mcore-tdep.o): Ditto.
141 (ns32k-tdep.o): Ditto.
142 (ns32knbsd-tdep.o): Ditto.
145 * cris-tdep.c: #include "gdb_string.h"
146 * mcore-tdep.c: Ditto.
147 * ns32k-tdep.c: Ditto.
148 * ns32knbsd-tdep.c: Ditto.
152 2002-09-27 David Carlton <carlton@math.stanford.edu>
154 * config/djgpp/fnchange.lst: Add entries for
155 gdb/testsuite/gdb.c++/m-static files.
157 2002-09-27 Jim Wilson <wilson@redhat.com>
159 * MAINTAINERS: Add myself to the Write After Approval list.
161 2002-09-26 Martin M. Hunt <hunt@redhat.com>
163 * mips-tdep.c (find_proc_desc): Initialize startaddr.
166 2002-09-26 Andrew Cagney <ac131313@redhat.com>
168 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
171 2002-09-26 Andrew Cagney <ac131313@redhat.com>
173 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
174 (rs6000_struct_return_address): Delete variable.
175 (rs6000_store_struct_return): Update.
176 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
177 deprecated_extract_struct_value_address.
178 (rs6000_frame_align): New function.
179 (rs6000_gdbarch_init): Set frame_align.
181 2002-09-26 Andrew Cagney <ac131313@redhat.com>
183 From Grace Sainsbury <graces@redhat.com>:
184 * Makefile.in (gdbtk-main.o): New target.
187 (main.o): Update dependencies.
188 (gdb$(EXEEXT)): Add gdb.o.
189 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
190 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
191 (SUBDIR_GDBTK_CLEAN): Set.
192 (install-gdbtk): Install the insight binary.
193 (uninstall-gdbtk): New target.
194 (all-gdbtk, clean-gdbtk): New rule.
195 * top.c (use_windows): Default to zero.
196 * main.c: Include "main.h".
198 (struct captured_main_args): Delete.
199 (gdb_main): New function.
203 2002-09-25 Andrew Cagney <cagney@redhat.com>
205 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
206 (frame_map_regnum_to_name): New function.
207 (frame_map_name_to_regnum): New function.
208 * frame.h (frame_map_name_to_regnum): Declare.
209 (frame_map_regnum_to_name): Declare.
210 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
211 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
212 * parse.c: Do not include "builtin-regs.h".
213 (target_map_name_to_register): Delete function.
214 (write_dollar_variable): Use frame_map_name_to_regnum.
215 * parser-defs.h (target_map_name_to_register): Delete declaration.
216 * expprint.c: Include "frame.h".
217 (print_subexp): Use frame_map_regnum_to_name.
218 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
219 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
221 2002-09-25 Andrew Cagney <ac131313@redhat.com>
223 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
224 wasn't saved, and the next innermost frame is a dummy, return the
225 dummy frame's link register.
227 2002-09-24 Jim Blandy <jimb@redhat.com>
230 * main.c (captured_main): Add a `break' after the case for 'b'.
232 2002-09-24 Keith Seitz <keiths@redhat.com>
234 * varobj.c (c_type_of_child): Use get_target_type instead
237 2002-09-22 Fernando Nasser <fnasser@redhat.com>
239 * source.c (get_current_or_default_source_symtab_and_line): Remove
241 (set_default_source_symtab_and_line): New function. Attempts to
242 determine a source file to list lines from if one is not currently
244 (get_current_source_symtab_and_line): Initialize sal.pc and
246 (set_current_source_symtab_and_line): Mark argument as const.
247 * source.h: Update declarations and comments.
248 * linespec.c (decode_line_1): Replace call to removed routine above.
249 * stack.c (print_frame_info_base): Ditto.
250 * cli/cli-cmds.c (edit_command): Ditto.
251 (list_command): Ditto.
253 2002-09-22 Fernando Nasser <fnasser@redhat.com>
255 * source.c (get_current__or_default_source_symtab_and_line): Initialize
256 sal.pc and sal.end fields.
257 (get_current_or_default_source_symtab_and_line): Ditto.
258 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
259 so we do not cause a new source symtab to be searched for (reverting an
260 unintentional change from the 2002-09-20 patch).
261 * scm-lang.c (scm_unpac): Ditto.
263 2002-09-21 Andrew Cagney <cagney@redhat.com>
265 * complaints.c (symfile_explanations): Remove new-line from
266 ``isolated_message''.
267 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
268 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
270 2002-09-20 Nick Clifton <nickc@redhat.com>
272 * NEWS: Announce that V850EA ISA is no longer supported.
273 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
275 2002-09-20 David Carlton <carlton@math.stanford.edu>
277 * Makefile.in (c-lang.o): Correct dependencies.
278 (utils.o): Gather dependencies.
280 * c-lang.c: #include "gdb_string.h"
282 2002-09-20 Fernando Nasser <fnasser@redhat.com>
284 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
285 * cli/cli-cmds.c (list_command): New function. Implements the new
287 (_init_cli_cmds): Add new command definition.
288 * gdb.1: Document edit command.
289 * doc/gdb.texinfo: Document edit command.
291 2002-09-20 Fernando Nasser <fnasser@redhat.com>
293 * source.c: Make global variables current_source_symtab and
294 current_source_line static.
295 (list_command): Moved to cli/cli-cmds.c.
296 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
297 (get_first_line_listed): New accessor function.
298 (get_lines_to_list): New accessor function.
299 (get_current_source_symtab_and_line): New function. Retrieves the
300 position in the source code that we consider current.
301 (get_current_or_default_source_symtab_and_line): New function.
302 Like the above but attempts to determine a default position if one
303 is not currently defined.
304 (set_current_source_symtab_and_line): New function. Sets the source
305 code position considered current and returns the previously set one.
306 (clear_current_source_symtab_and_line): Reset stored information about
307 a current source line.
308 (_initialize_source): Remove registration for the "list" command and
310 * source.h: Add declarations for the new functions above.
311 * symtab.h: Remove declarations for the global variables mentioned
313 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
314 obtain current source line.
315 * linespec.c (decode_line_1): Ditto.
316 * macroscope.c (default_macro_scope): Ditto.
317 * scm-lang.c (scm_unpac): Ditto.
318 * stack.c (print_frame_info_base): Ditto.
319 * symfile.c (clear_symtab_users): Ditto.
320 * symtab.c (decode_line_spec): Ditto.
321 * cli/cli-cmds.c (list_command): Moved here from source.c.
322 (ambiguous_line_spec): Moved here from source.c.
323 (_init_cli_cmds): Add definition for "list" and its alias.
324 * Makefile.in: Update dependencies.
326 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
328 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
329 with what gcc thinks is correct.
331 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
333 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
334 multiple register push instruction.
336 2002-09-19 Jim Blandy <jimb@redhat.com>
338 Add support for distinct host and target character sets.
339 * charset.c, charset.h: New files.
340 * c-exp.y: #include "charset.h".
341 (yylex): Convert character and string literals to the target
342 character set, before returning them as the semantic value of the
344 * c-lang.c: #include "charset.h".
345 (c_emit_char): Use charset-specific methods to recognize
346 characters with backslash escape forms, to decide which characters
347 to print literally and which to print using numeric escape
348 sequences, and to convert target characters to host characters
350 * utils.c: #include "charset.h".
351 (no_control_char_error): New function.
352 (parse_escape): Use charset-specific methods to recognize
353 backslash escapes, parse `control character' notation, and convert
354 characters from the host character set to the target character set.
355 * configure.in: Set the default host character set.
356 Check where to find iconv, and what its argument types might be.
357 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
358 * Makefile.in (SFILES): List charset.c.
359 (COMMON_OBS): List charset.o.
360 (charset.o): New rule.
361 (charset_h): New header dependency variable.
362 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
363 (LIBICONV): New variable, set by configure.
364 (CLIBS): Include $(LIBICONV) here.
365 * aclocal.m4, config.in, configure: Regenerated.
367 2002-09-19 Joel Brobecker <brobecker@gnat.com>
369 * ada-exp.y: Add missing semicolons to end rules. Fixes a
372 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
374 * gdb_mbuild.sh: New file.
376 2002-09-19 Andrew Cagney <ac131313@redhat.com>
378 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
380 2002-09-18 Andrew Cagney <ac131313@redhat.com>
382 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
383 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
384 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
385 valops.c, value.h: Revert previous change.
387 2002-09-18 Michael Snyder <msnyder@redhat.com>
389 Preliminary support for Objective-C:
390 * defs.h (language_objc): New enum value.
391 (puts_filtered_tabular): Declaration only, exported from utils.c.
392 (skip_quoted): Delete, declared in completer.h.
393 * c-exp.y: Include completer.h.
396 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
397 New operator enum values.
398 * language.h (CAST_IS_CONVERSION): Test for language_objc.
399 * language.c (binop_result_type): Handle language_objc case.
400 (integral_type, character_type, string_type, boolean_type,
401 structured_type, binop_type_check): Ditto.
402 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
403 (struct objc_specific): Add to general_symbol_info.
404 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
405 (SYMBOL_DEMANGLED_NAME): Handle objc case.
406 * parser-defs.h (struct objc_class_str): New struct type.
407 (start_msglist, end_msglist, add_msglist): Declaration only,
408 exported from objc-lang.c.
409 * value.h (value_of_local, value_nsstring,
410 call_function_by_hand_expecting_type): Exported from valops.c.
411 * valops.c (find_function_addr): Export.
412 (call_function_by_hand_expecting_type): New function.
413 (value_of_local): New function.
414 * symfile.c (init_filename_language_table): Add ".m" extension
416 * utils.c (puts_filtered_tabular): New function.
417 (fprintf_symbol_filtered): Add objc demangling support (disabled).
418 (set/show demangle): Extend help-string to refer to ObjC.
419 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
420 * stabsread.c (symbol_reference_defined): Objective-C symbols
421 may contain colons: make allowances when scanning stabs strings
423 (objc_find_colon): New function.
424 * printcmd.c (address_info): If language == objc then print
425 "self" instead of "this".
426 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
427 OP_NSSTRING, and OP_SELF.
428 (prefixify_subexp): Ditto.
429 * source.c (print_source_lines): Mention objc in comment.
430 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
433 2002-09-18 Andrew Cagney <ac131313@redhat.com>
435 * complaints.h: Update copyright.
436 (struct complaints): Declare.
437 (struct complaint): Make `message' constant.
438 (internal_complaint): Declare.
439 (complaint): Declare.
440 (complaint_root): Delete declaration.
441 (symfile_complaints): Delete declaration.
442 (struct complaints): Add opaque declaration.
443 (clear_complaints): Add a complaints parameter.
444 * complaints.c: Update copyright.
445 (enum complaint_series): Define.
446 (complaint_root): Delete.
447 (struct complaints): Define.
448 (complaint_sentinel, symfile_complaint_book): New variables.
449 (symfile_explanations, symfile_complaints): New variables.
451 (get_complaints): New function.
452 (vcomplaint): New function.
453 (complaint): New function.
454 (internal_complaint): New function.
455 (complain): Call vcomplain with symfile_complaint.
456 (clear_complaints): Rewrite.
457 (_initialize_complaints): Use add_setshow_command.
458 * Makefile.in (complaints.o): Update dependencies.
459 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
460 to call to clear_complaints.
461 (new_symfile_objfile, reread_symbols): Ditto.
462 (oldsyms_complaint): Delete.
463 (empty_symtab_complaint, unknown_option_complaint): Delete.
464 (free_named_symtabs): Use complaint instead of complain.
466 2002-09-18 Michael Snyder <msnyder@redhat.com>
468 Contributed by Apple Computer, Inc. Merged with current sources
469 by Adam Fedor <fedor@doc.com> [cagney].
471 * objc-lang.c: First clean-up round: comments, indentation.
472 * objc-lang.h: Ditto.
473 * objc-lang.y: Ditto.
475 2002-09-18 Andrew Cagney <ac131313@redhat.com>
477 * maint.c (maintenance_internal_error): Print the parameter as the
479 (maintenance_internal_warning): New function.
480 (_initialize_maint_cmds): Add command `maint internal-warning'.
482 * defs.h (internal_warning, internal_vwarning): Declare.
483 * utils.c (struct internal_problem): Define.
484 (internal_vproblem): New function.
485 (internal_warning): New function.
486 (internal_vwarning): New function.
487 (internal_warning_problem, internal_error_problem): New variables.
488 (internal_verror): Just call internal_vproblem.
490 2002-09-18 Michael Snyder <msnyder@redhat.com>
492 * objc-lang.c: New file, support for Objective-C.
493 Preliminary check-in, not yet integrated into gdb.
494 * objc-lang.h: New file.
495 * objc-exp.y: New file.
497 2002-09-18 Andrew Cagney <ac131313@redhat.com>
499 * infrun.c (signal_stop_update): Convert definition to ISO C.
500 (signal_print_update): Ditto.
501 (signal_pass_update): Ditto.
502 * inflow.c (terminal_save_ours): Ditto.
504 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
507 * config/djgpp/fnchange.lst: Handle name clashes between
508 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
511 * i386-linux-tdep.h: Fix tipo.
513 2002-09-18 Adam Fedor <fedor@gnu.org>
515 * MAINTAINERS: Add myself to the Write After Approval list.
517 2002-09-18 Jim Blandy <jimb@redhat.com>
519 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
520 texthigh and textlow to reader-specific structs caused
521 objfile_relocate to miss them. This is fixable, but the work that
522 the change was supposed to prepare GDB for never got done anyway.
524 2002-09-18 David Carlton <carlton@math.stanford.edu>
526 * MAINTAINERS: Alphabetize Write After Approval list.
528 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
531 * values.c (value_static_field): Call read_var_value.
533 2002-09-18 Andrew Cagney <ac131313@redhat.com>
535 * valops.c (hand_function_call): Align the initial stack pointer
536 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
537 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
539 * mips-tdep.c (mips_frame_align): New function.
540 (mips_gdbarch_init): Set frame_align.
541 * gdbarch.sh (FRAME_ALIGN): New method.
542 * gdbarch.h, gdbarch.c: Re-generate.
544 2002-09-18 Michal Ludvig <mludvig@suse.cz>
546 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
549 2002-09-17 Andrew Cagney <ac131313@redhat.com>
551 * NEWS: Mention that MIPS $fp behavior changed.
552 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
553 reference to FP_REGNUM.
554 (mipsnbsd_cannot_store_register): Ditto.
555 * mips-linux-nat.c: Update copyright.
556 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
557 (mips_linux_cannot_store_register): Ditto.
558 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
559 * config/mips/tm-mips.h: Update copyright.
560 (FP_REGNUM): Delete macro.
561 (MIPS_REGISTER_NAMES): Replace "fp" with "".
562 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
563 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
564 (mips_r3041_reg_names, mips_r3051_reg_names)
565 (mips_r3081_reg_names): Replace "fp" with "".
568 2002-09-17 Theodore A. Roth <troth@verinet.com>
570 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
571 generic_read_register_dummy() (PR gdb/703).
572 (avr_push_return_address): #if 0 out unused vars.
573 (avr_gdbarch_init): Enable use of avr_push_return_address().
575 2002-09-17 Michael Snyder <msnyder@redhat.com>
577 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
578 RTE will take care of it.
580 2002-09-17 Andrew Cagney <ac131313@redhat.com>
582 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
583 invalid, return SP_REGNUM.
585 2002-09-17 Michael Snyder <msnyder@redhat.com>
587 * mips-tdep.c (mips_pop_frame): Read saved values of floating
588 point registers without sign extension.
590 2002-09-17 Andrew Cagney <cagney@redhat.com>
592 * blockframe.c (deprecated_read_register_dummy): Rename
593 generic_read_register_dummy.
594 * frame.c (frame_unwind_signed_register): New function.
595 (frame_unwind_unsigned_register): New function.
596 * frame.h (frame_unwind_signed_register): Declare.
597 (frame_unwind_unsigned_register): Declare.
598 (deprecated_read_register_dummy): Rename
599 generic_read_register_dummy.
601 * h8300-tdep.c (h8300_frame_chain): Update.
602 (h8300_frame_saved_pc): Update.
603 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
604 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
605 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
606 (s390_frame_chain): Update.
607 * v850-tdep.c (v850_find_callers_reg): Update.
608 (v850_frame_saved_pc): Update.
609 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
610 (m32r_find_callers_reg): Update.
611 (m32r_frame_saved_pc): Update.
612 * sh-tdep.c (sh_find_callers_reg): Update.
613 (sh64_get_saved_pr): Update.
614 (sh_init_extra_frame_info): Update.
615 (sh_init_extra_frame_info): Update.
616 (sh64_init_extra_frame_info): Update.
617 (sh64_init_extra_frame_info): Update.
618 * mcore-tdep.c (mcore_find_callers_reg): Update.
619 (mcore_frame_saved_pc): Update.
620 (mcore_init_extra_frame_info): Update.
621 * i386-tdep.c (i386_frame_saved_pc): Update.
622 * ia64-tdep.c (ia64_frame_saved_pc): Update.
623 (ia64_init_extra_frame_info): Update.
624 (ia64_init_extra_frame_info): Update.
625 * d10v-tdep.c (d10v_frame_saved_pc): Update.
626 * cris-tdep.c (cris_init_extra_frame_info): Update.
627 * avr-tdep.c (avr_frame_chain): Update.
628 (avr_init_extra_frame_info): Update.
629 (avr_frame_saved_pc): Update.
630 * arm-tdep.c (arm_find_callers_reg): Update.
631 (arm_init_extra_frame_info): Update.
632 (arm_frame_saved_pc): Update.
634 2002-09-17 Tom Tromey <tromey@redhat.com>
636 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
639 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
641 * MAINTAINERS: Remove "non multi-arched" text from h8300.
642 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
644 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
647 2002-09-16 Joel Brobecker <brobecker@gnat.com>
649 * osfsolib.c: Remove file, replaced by solib-osf.c.
650 * Makefile.in: Remove compilation rules for osfsolib.c.
652 2002-09-16 David Carlton <carlton@math.stanford.edu>
654 * cp-valprint.c (cp_print_class_method): Correct args to
655 check_stub_method_group.
657 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
659 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
660 `set architecture'. Unify naming convention of functions.
661 (h8300_skip_prologue): Improve prologue analysis.
662 (h8300_push_arguments): Rewritten to more closely match GCC's
663 bizarre argument-passing behavior, along with the comment describing
665 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
666 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
667 sim, remote-e7000.c, remote-hms.c and remote.c
669 2002-09-15 Mark Kettenis <kettenis@gnu.org>
671 * i386-tdep.c (gdb_print_insn_i386): Removed.
672 (i386_print_insn): New function.
673 (i386_gdbarch_init): Set print_insn to i386_print_insns.
674 (_initialize_i386_tdep): Don't initialize tm_print_insn and
677 2002-09-14 Mark Kettenis <kettenis@gnu.org>
679 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
682 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
684 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
685 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
686 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
688 2002-09-13 Christopher Faylor <cgf@redhat.com>
690 * win32-nat.c (child_create_inferior): Honor 'tty' command.
692 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
694 * gdbtypes.c (check_stub_method): Make static.
695 (check_stub_method_group): New function.
696 * gdbtypes.h: Update prototypes.
697 * cp-support.c: New file.
698 * cp-support.h: New file.
700 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
701 (update_method_name_from_physname): New function.
702 (read_member_functions): Correct method names for operators
703 and v3 constructors/destructors. Separate v2 constructors and
705 * Makefile.in (stabsread.o): Update dependencies.
706 (SFILES): Add cp-support.c.
707 (COMMON_OBS): Add cp-support.o.
708 (cp_support_h, cp-support.o): Add.
710 * cp-valprint.c (cp_print_class_method): Call
711 check_stub_method_group instead of check_stub_method. Remove
713 * p-valprint.c (pascal_object_print_class_method): Likewise.
714 * valops.c (search_struct_method): Likewise.
715 (find_method_list, value_struct_elt_for_reference): Likewise.
717 2002-09-13 Andrew Cagney <cagney@redhat.com>
719 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
720 * gdbarch.h, gdbarch.c: Regenerate.
722 2002-09-13 Andrew Cagney <ac131313@redhat.com>
724 * frame.c (find_saved_register): Delete function.
725 * frame.h (find_saved_register): Delete declaration.
728 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
730 * mips-tdep.c (read_next_frame_reg): Re-hack using
731 frame_register_unwind.
733 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
735 * mips-tdep.c (mips_get_saved_register): Re-hack using
736 frame_register_unwind.
738 2002-09-12 Joel Brobecker <brobecker@gnat.com>
740 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
741 vector. Will be useful for Interix.
742 * gdbarch.h, gdbarch.c: Regenerate.
744 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
745 name of the malloc function by NAME_OF_MALLOC.
747 2002-09-12 Joel Brobecker <brobecker@gnat.com>
749 * value.h (find_function_in_inferior): Add const keyword to
750 one of the parameters. Allows us to invoke this function with
752 * valops.c (find_function_in_inferior): Likewise.
754 2002-09-12 Joel Brobecker <brobecker@gnat.com>
756 * exec.c (xfer_memory): Fix compilation warning with old versions
758 * tracepoint.c (trace_find_tracepoint_command): Likewise.
760 2002-09-12 David Carlton <carlton@math.stanford.edu>
762 * symtab.h: Run through gdb_indent.h.
763 Add 2002 to Copyright year list.
765 2002-09-12 Alan Modra <amodra@bigpond.net.au>
767 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
769 * MAINTAINERS: Add myself to write after approval list.
771 2002-09-11 J. Brobecker <brobecker@gnat.com>
773 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
775 2002-09-11 J. Brobecker <brobecker@gnat.com>
777 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
780 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
782 * procfs.c (do_detach): Clear current signal, not just fault.
783 Corrects problem with breakpoint trap signal leaking to detached
786 2002-09-10 Michael Snyder <msnyder@redhat.com>
788 * buildsym.c (finish_block): Protect against null pointer.
790 2002-09-10 Andrew Cagney <cagney@redhat.com>
792 * infcmd.c (default_print_registers_info): Send all output to
793 ``file'' instead of ``gdb_stdout''.
795 2002-09-10 Michael Snyder <msnyder@redhat.com>
797 * mips-tdep.c (mips_extract_struct_value_address): Make val a
798 LONGEST, and use signed register read (addresses are sign-
801 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
803 * event-loop.c (gdb_do_one_event): Make public.
804 * event-loop.h (gdb_do_one_event): Declare.
806 2002-09-10 Jeff Law <law@redhat.com>
808 * infttrace.c (child_resume): Simplify and rework to avoid
811 2002-09-09 Fred Fish <fnf@intrinsity.com>
813 * printcmd.c (print_scalar_formatted): "len" is the number of
814 target bytes, NOT the number of target bits.
816 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
818 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
819 * top.c (init_main): Set rl_terminal_name.
821 2002-09-08 Aidan Skinner <aidan@velvet.net>
823 * ada-lang.c (ada_array_bound, ada_type_match,
824 _initialize_ada_language): Fix K&R definitions.
825 * ada-tasks.c (get_current_task): Fix K&R definitions.
826 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
828 2002-09-07 Christopher Faylor <cgf@redhat.com>
830 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
833 2002-09-06 Mark Kettenis <kettenis@gnu.org>
835 * i386-tdep.c (i386_register_virtual_type,
836 i386_register_convertible, i386_register_convert_to_virtual,
837 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
838 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
839 (i386_gdbarch_init): Fix comment. Add comments on calls that set
840 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
841 Don't set push_arguments twice.
843 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
844 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
845 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
846 sigtramp_end to NULL.
847 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
849 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
851 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
854 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
855 * gdbarch.h, gdbarch.c: Re-generate.
856 * blockframe.c (find_pc_sect_partial_function): Convert to use
857 SIGTRAMP_START_P predicate.
859 2002-09-05 Michael Snyder <msnyder@redhat.com>
861 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
862 generic_dummy_frame method and old method. Also distinguish
863 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
864 (arm_extract_return_value): Use new regcache method.
866 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
867 adjustment that doesn't conform to the ABI.
868 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
869 saved regcache, not from current regcache.
871 2002-09-05 Andrew Cagney <ac131313@redhat.com>
873 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
876 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
878 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
879 if arm_apcs_32 is false.
881 2002-09-04 Andrew Cagney <ac131313@redhat.com>
883 GDB 5.3 branch created.
885 2002-09-03 Theodore A. Roth <troth@verinet.com>
887 * gdb/avr-tdep.c (avr_gdbarch_init): Use
888 generic_unwind_get_saved_register.
890 2002-09-03 David Carlton <carlton@math.stanford.edu>
892 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
893 argument (PR gdb/653). Update call to smash_to_method_type.
894 (read_structure_scope): Update call to dwarf2_add_member_fn.
896 2002-09-03 Michal Ludvig <mludvig@suse.cz>
898 * x86-64-linux-tdep.c: Include gdb_string.h
899 * x86-64-linux-nat.c: Ditto.
901 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
903 * ada-exp.y (yyname, yyrule): Remap global variables that appear
904 when YYDEBUG is set to 1.
907 * jv-exp.y: Likewise.
908 * m2-exp.y: Likewise.
911 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
913 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
915 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
916 solib_svr4_fetch_link_map_offsets to
917 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
918 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
919 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
920 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
921 solib-svr4.o, and solib-legacy.o.
922 * config/i386/tm-nbsd.h: Include solib.h.
924 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
926 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
927 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
928 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
929 comment noting that this needs its own target configuration.
930 * config/i386/nbsd.mt: New file.
931 * config/i386/nbsdaout.mt: Remove.
932 * config/i386/nbsdelf.mt: Ditto.
933 * config/i386/tm-nbsdaout.h: Ditto.
935 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
937 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
938 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
939 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
941 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
942 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
943 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
945 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
947 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
948 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
949 * i386-tdep.h (i386bsd_init_abi): New prototype.
950 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
951 function declaration.
952 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
953 for NetBSD-a.out or NetBSD-ELF.
954 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
955 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
956 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
957 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
959 (i386nbsd_pc_in_sigtramp): New function.
960 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
961 i386nbsd_pc_in_sigtramp.
962 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
963 and i386nbsdelf_init_abi OS ABI handlers.
964 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
965 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
967 2002-09-02 Mark Kettenis <kettenis@gnu.org>
969 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
970 registers if the target really has them.
972 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
974 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
977 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
979 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
981 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
982 (alphanbsd_skip_sigtramp_frame): New functions.
983 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
984 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
985 to alphanbsd_sigcontext_addr.
987 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
989 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
991 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
992 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
994 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
995 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
996 * nbsd-tdep.c: Include gdb_string.h.
997 (nbsd_pc_in_sigtramp): New function.
998 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
999 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1000 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1001 ppcnbsd_pc_in_sigtramp.
1002 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1003 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1004 shnbsd_pc_in_sigtramp.
1005 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1006 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1007 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1009 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1011 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1012 watchpoints to NULL.
1013 (insert_breakpoints): set val field of watchpoints if NULL.
1016 2002-08-29 Jim Blandy <jimb@redhat.com>
1018 * symtab.c (lookup_symbol_aux): In the cases where we find a
1019 minimal symbol of an appropriate name and use its address to
1020 select a symtab to read and search, use `name' (as passed to us)
1021 as the demangled name when searching the symtab's global and
1022 static blocks, not the minsym's name.
1024 2002-08-29 Keith Seitz <keiths@redhat.com>
1026 * stack.c (print_frame_info_base): Always set current_source_symtab
1027 and current_source_line.
1029 2002-08-29 Donn Terry <donnte@microsoft.com>
1031 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1033 2002-08-28 Keith Seitz <keiths@redhat.com>
1035 * stack.c (select_frame): Add FIXME concerning selected-frame
1037 (select_frame_command): Send selected-frame-level-changed
1038 event notification, but only if the level actually changed.
1039 (up_silently_base): Add selected-frame-level-changed event
1041 (down_silently_base): Likewise.
1043 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1045 * Makefile.in: Update dependencies for all gdb/*.c files.
1047 2002-08-27 Tom Tromey <tromey@redhat.com>
1049 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1050 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1051 Update dependencies.
1052 * i387-tdep.c: Include gdb_string.h.
1053 * osabi.c: Likewise.
1054 * i386-linux-nat.c: Likewise.
1055 * lin-lwp.c: Likewise.
1056 * ax-gdb.c: Likewise.
1057 * signals/signals.c: Likewise.
1058 * jv-valprint.c: Likewise.
1059 * p-lang.c: Likewise.
1060 * c-valprint.c: Likewise.
1061 * cp-abi.c: Likewise.
1063 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1065 * cli/cli-script.h (copy_command_lines): Export.
1066 * breakpoint.c: Include cli/cli-script.h.
1067 * Makefile.in (breakpoint.o): Update dependencies.
1069 2002-08-26 Michael Snyder <msnyder@redhat.com>
1071 * breakpoint.c (insert_breakpoints): Protect all references
1072 to 'process_warning'. Shorten long lines.
1074 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1076 * cli/cli-script.c (copy_command_lines): New function.
1077 * defs.h (copy_command_lines): Export.
1078 * testsuite/gdb.base/commands.exp: New tests for commands
1079 attached to a temporary breakpoint, and for commands that
1080 delete the breakpoint they are attached to.
1082 2002-08-26 Michael Snyder <msnyder@redhat.com>
1084 * breakpoint.c (bpstat_stop_status): Instead of copying the
1085 pointer to the breakpoint commands struct, make a new copy
1086 of the struct and point to that.
1087 (bpstat_clear): Free the commands struct.
1088 (bpstat_clear_actions): Free the commands struct.
1089 (bpstat_do_actions): Free the command actions. Also execute
1090 the local cleanups, instead of deleting them.
1091 (delete_breakpoint): Leave the commands field of the bpstat
1092 chain alone -- it will be freed later.
1094 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1096 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1097 deleted in 2002-08-20 commit. This function is still used by
1100 2002-08-26 Keith Seitz <keiths@redhat.com>
1102 * gdb-events.sh: Add selected-frame-level-changed event.
1103 * gdb-events.c: Regenerated.
1104 * gdb-events.h: Regenerated.
1106 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1109 * inflow.c (terminal_save_ours): New function to save terminal
1111 * inferior.h (terminal_save_ours): Declare.
1112 * target.c (debug_to_terminal_save_ours): New function.
1113 (cleanup_target): Defaults to_terminal_save_ours.
1114 (update_current_target): Inherit to_terminal_save_ours.
1115 (setup_target_debug): Set to_terminal_save_ours.
1116 * target.h (target_terminal_save_ours): New to save terminal settings.
1117 (target_ops): New member to_terminal_save_ours.
1118 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1119 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1120 * inftarg.c (init_child_ops): Likewise.
1121 * m3-nat.c (init_m3_ops): Likewise.
1122 * procfs.c (init_procfs_ops): Likewise.
1123 * wince.c (init_child_ops): Likewise.
1124 * win32-nat.c (init_child_ops): Likewise.
1125 * sol-thread.c (init_sol_thread_ops): Likewise.
1127 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1129 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1130 use regcache_* functions.
1131 (i386_gdbarch_init): Set store_return_value instead of
1132 deprecated_store_return_value.
1134 * regcache.c (regcache_raw_write_signed,
1135 regcache_raw_write_unsigned): New functions.
1136 * regcache.h (regcache_raw_write_signed,
1137 regcache_raw_write_unsigned): New prototypes.
1139 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1141 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1142 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1143 source file dependencies. Cleanup corresponding generator rules.
1145 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1147 * regcache.h (register_offset_hack): Declare.
1148 (regcache_cooked_read_using_offset_hack): Declare.
1149 (regcache_cooked_write_using_offset_hack): Declare.
1151 * regcache.c (register_offset_hack): New function.
1152 (regcache_cooked_read_using_offset_hack): New function.
1153 (regcache_cooked_write_using_offset_hack): New function.
1154 (regcache_dump): Check that the registers, according to their
1155 offset, are packed hard against each other.
1156 (cooked_xfer_using_offset_hack): New function.
1158 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1160 * regcache.c (struct regcache_descr): Add field register_type.
1161 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1163 (init_regcache_descr): Initialize register_type. Pass the descr
1164 to init_legacy_regcache_descr. Use register_type instead of
1165 REGISTER_VIRTUAL_TYPE.
1166 (register_type): New function.
1167 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1168 * regcache.h (register_type): Declare.
1170 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1172 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1173 instead of deprecated_store_return_value. Fix fallout from
1174 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1176 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1178 * regcache.c (max_register_size): New function.
1179 (init_legacy_regcache_descr): Ensure that max_register_size is
1180 large enough for REGISTER_VIRTUAL_SIZE.
1181 * regcache.h (max_register_size): Declare.
1183 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1185 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1187 (e500_extract_return_value): Change type of valbuf pointer to
1190 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1192 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1195 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1196 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1197 long long) to prevent compiler warning on 64-bit systems.
1199 2002-08-23 Andrew Cagney <cagney@redhat.com>
1201 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1202 (DEPRECATED_STORE_RETURN_VALUE): New method.
1203 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1204 * gdbarch.h, gdbarch.c: Re-generate.
1206 * values.c (set_return_value): Pass current_regcache to
1208 * arch-utils.h (legacy_store_return_value): Declare.
1209 * arch-utils.c (legacy_store_return_value): New function.
1210 (legacy_extract_return_value): Update parameters.
1212 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1214 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1215 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1216 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1217 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1218 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1219 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1220 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1221 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1222 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1223 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1226 * i386-tdep.c (i386_extract_return_value): Update.
1227 * arch-utils.c (legacy_extract_return_value): Update.
1228 * frv-tdep.c (frv_gdbarch_init): Update.
1229 * cris-tdep.c (cris_gdbarch_init): Update.
1230 * d10v-tdep.c (d10v_gdbarch_init): Update.
1231 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1232 * m68k-tdep.c (m68k_gdbarch_init): Update.
1233 * mcore-tdep.c (mcore_gdbarch_init): Update.
1234 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1235 * s390-tdep.c (s390_gdbarch_init): Update.
1236 * sparc-tdep.c (sparc_gdbarch_init): Update.
1237 * sh-tdep.c (sh_gdbarch_init): Update.
1238 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1239 * v850-tdep.c (v850_gdbarch_init): Update.
1240 * avr-tdep.c (avr_gdbarch_init): Update.
1241 * ia64-tdep.c (ia64_gdbarch_init): Update.
1242 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1243 * vax-tdep.c (vax_gdbarch_init): Update.
1244 * alpha-tdep.c (alpha_gdbarch_init): Update.
1245 * arm-tdep.c (arm_gdbarch_init): Update.
1246 * mips-tdep.c (mips_gdbarch_init): Update.
1247 * i386-tdep.c (i386_gdbarch_init): Update.
1249 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1251 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1252 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1254 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1256 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1259 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1261 * infrun.c (handle_inferior_event): Move a comment outside of a
1262 function call, in order to avoid indent reformatting this part
1263 of the code in an unreadable way.
1265 2002-08-23 Grace Sainsbury <graces@redhat.com>
1267 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1268 when breakpoints fail. Move general breakpoint error messages to
1270 * breakpoint.c (insert_breakpoints): Change warnings when
1271 breakpoints are nto inserted to specify the type. Remove call to
1272 memory_error when hardware breakpoints can't be inserted. Remove
1273 multiple calls to warning so all messages are sent to the user at
1275 (delete_breakpoints): Make insert error messsages more explicit.
1277 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1279 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1280 gdbserver/ChangeLog.
1282 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1284 * i386-tdep.c: Include "objfiles.h".
1285 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1286 skip_trampoline_code.
1287 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1288 (CPLUS_MARKER): Define to '.'.
1290 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1292 (linux_corefile_thread_callback): Increase args->num_notes.
1293 (linux_make_note_section): Initialize thread_args.num_notes, and
1294 use it to determine whether notes for any threads were created.
1296 2002-08-23 Donn Terry <donnte@microsoft.com>
1298 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1299 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1301 (write_with_trace): Conditionalize out the switch branch handling
1302 PCSHOLD if the corresponding macro is not defined. Likewise for
1303 PRSABORT and PRSTOP.
1304 This change will be needed by the Interix port.
1306 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1308 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1309 write_register wherever possible instead of manipulating the
1310 register bytes directly.
1311 Assign VALUE_CONTENTS to a variable and use that.
1312 The GPR numbers are now dependent on the architecture.
1314 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1316 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1318 (skip_prologue): Add support for BookE/e500 instructions.
1319 (e500_extract_return_value): New function.
1320 (frame_get_saved_regs): Add support for saving ev registers and
1322 (e500_store_return_value): New function.
1323 (rs6000_gdbarch_init): Move up default intializations of
1324 deprecated_extract_return_value and store_return_value. Overwrite
1325 init of store_return_value with e500 specific version.
1326 Set extract_return_value for e500.
1328 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1330 * blockframe.c (generic_call_dummy_register_unwind): Use
1331 regcache_cooked_read to catch cases in which the variable is
1332 stored in a pseudo register.
1334 2002-08-22 Andrew Cagney <cagney@redhat.com>
1336 * NEWS: Mention that the i960 has been made obsolete.
1337 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1339 (remote-nrom.o): Obsolete target.
1340 (remote-nindy.o, i960-tdep.o): Ditto.
1341 * remote-nrom.c: Make file obsolete.
1342 * remote-nindy.c, remote-vx960.c: Ditto.
1343 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1344 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1345 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1346 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1347 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1348 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1349 i960-*-vxworks* obsolete.
1350 * MAINTAINERS: Note that the i960 is obsolete.
1352 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1354 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1355 detach to allow reinitialization.
1357 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1359 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1362 2002-08-22 Jim Blandy <jimb@redhat.com>
1364 * coffread.c (coff_symfile_read): Don't try to read the line
1365 number table from disk if the image file doesn't have a symbol
1366 table; we'll never actually look at the info anyway, and Windows
1367 ships DLL's with bogus file offsets for the line number data.
1369 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1371 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1374 2002-08-21 Michael Snyder <msnyder@redhat.com>
1376 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1377 (MSYMBOL_SIZE): Replace macro with function.
1378 (DEFAULT_MIPS_TYPE): Delete unused macro.
1379 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1380 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1382 2002-08-21 Jim Blandy <jimb@redhat.com>
1384 * valops.c (value_cast): Simplify and correct logic for doing a
1385 static cast from a pointer to a base class to a pointer to a
1388 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1390 * infcmd.c (default_print_registers_info): Replace
1392 (registers_info): Use gdbarch_print_registers_info instead of
1394 * inferior.h (default_print_registers_info): Replace
1396 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1397 (DO_REGISTERS_INFO): Change to a predicate function.
1398 * gdbarch.h, gdbarch.c: Regenerate.
1400 2002-08-21 Keith Seitz <keiths@redhat.com>
1402 * gdb-events.sh: Add target-changed event.
1403 * gdb-events.c: Regenerated.
1404 * gdb-events.c: Regenerated.
1405 * valops.c (value_assign): Add target-changed event notification
1406 to inlval_register, lval_memory, and lval_reg_frame_relative.
1408 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1410 * NEWS: Add an entry regarding the improvement of the next/step
1411 operation on Alpha Tru64 multi-processor machines.
1413 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1415 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1417 * Makefile.in: Update all _h macro definitions.
1418 * Makefile.in (install-gdbtk): Move to install section.
1419 (rdi-share/libangsd.a): Move to end of file.
1421 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1423 * frame.c (frame_register_unwind): When a register, set addrp to
1424 the register's byte.
1426 2002-08-20 Michael Snyder <msnyder@redhat.com>
1428 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1429 used locally, so move them from the target machine header to here.
1430 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1431 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1433 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1435 2002-08-20 Andrew Cagney <cagney@redhat.com>
1437 * NEWS: Mention that the Apollo line was made obsolete.
1438 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1439 m68*-hp-hpux* obsolete.
1440 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1441 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1442 * buildsym.c (make_blockvector): Make static.
1443 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1444 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1445 (ALLDEPFILES): Remove dstread.c.
1446 (dstread.o): Obsolete make rule.
1447 * dstread.c: Makefile obsolete.
1449 * config/m68k/hp300hpux.mt: Ditto.
1450 * config/m68k/hp300hpux.mh: Ditto.
1451 * config/m68k/hp300bsd.mt: Ditto.
1452 * config/m68k/hp300bsd.mh: Ditto.
1453 * config/m68k/apollo68b.mt: Ditto.
1454 * config/m68k/apollo68v.mh: Ditto.
1455 * config/m68k/apollo68b.mh: Ditto.
1457 2002-08-20 Michael Snyder <msnyder@redhat.com>
1459 * mips-tdep.c (mips_in_return_stub): Make static.
1460 (mips_gdbarch_init): Set in_solib_return_trampoline.
1461 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1463 2002-08-20 Michael Snyder <msnyder@redhat.com>
1465 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1466 * gdbarch.c, gdbarch.h: Regenerate.
1467 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1469 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1471 2002-08-20 Michael Snyder <msnyder@redhat.com>
1473 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1474 (mips_gdbarch_init): Set skip_trampoline_code,
1475 in_solib_call_trampoline.
1476 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1477 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1479 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1481 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1483 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1484 vector type for ev registers.
1485 (e500_pseudo_register_read): New function.
1486 (e500_pseudo_register_write): New function.
1487 (e500_dwarf2_reg_to_regnum): New function.
1488 (PPC_UISA_NOFP_SPRS): New macro.
1489 (PPC_EV_REGS): New macro.
1490 (PPC_GPRS_PSEUDO_REGS): New macro.
1491 (registers_e500): New register set for e500.
1492 (variants): Add e500 variant.
1493 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1494 before setting architectural dependent variations. Initialize ev
1495 registers numbers. Add case for e500 architecture. Set the
1496 number of pseudo registers.
1498 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1500 * rs6000-tdep.c: Clean up comments.
1502 2002-08-20 Andrew Cagney <cagney@redhat.com>
1504 * h8300-tdep.c: Re-indent file.
1506 2002-08-20 Jim Blandy <jimb@redhat.com>
1508 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1511 2002-08-20 Keith Seitz <keiths@redhat.com>
1513 * breakpoints.c (watch_command_1): Use internal breakpoint
1514 when setting a watchpoint_scope breakpoint.
1516 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1518 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1519 (build_builtin_type_vec64i): Ditto.
1520 (build_builtin_type_vec128): Ditto.
1521 (build_builtin_type_vec128i): Ditto.
1523 2002-08-19 Michael Snyder <msnyder@redhat.com>
1525 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1526 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1527 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1528 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1529 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1530 CALL_DUMMY_ADDRESS): Delete.
1531 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1532 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1533 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1534 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1535 push_return_address.
1536 (mips_register_raw_size, mips_eabi_use_struct_convention,
1537 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1538 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1539 mips_init_extra_frame_info, mips_eabi_push_arguments,
1540 mips_n32n64_push_arguments, mips_push_return_address,
1541 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1542 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1544 2002-08-19 Michael Snyder <msnyder@redhat.com>
1546 * mips-tdep.c (mips_frame_num_args): New function.
1547 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1548 frame_saved_pc, frame_args_address, frame_locals_address,
1549 frame_num_args, and frame_args_skip.
1550 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1551 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1552 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1553 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1555 2002-08-20 Michael Snyder <msnyder@redhat.com>
1557 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1558 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1559 * mips-tdep.c (mips_store_struct_return): New function.
1560 (mips_extract_struct_value_address): New function.
1561 (mips_gdbarch_init): Set store_struct_return and
1562 extract_struct_value_address.
1564 2002-08-20 David Carlton <carlton@math.stanford.edu>
1566 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1567 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1568 (read_file_scope): Check that line_header is nonzero before
1569 decoding macro information.
1571 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1573 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1574 flag the general-purpose registers as floating-point on targets
1575 that don't support the floating-point registers.
1577 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1579 * rs6000-tdep.c (altivec_register_p): Delete.
1580 (rs6000_do_altivec_registers): Delete.
1581 (rs6000_altivec_registers_info): Delete.
1582 (rs6000_do_registers_info): Delete.
1583 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1584 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1586 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1588 * infcmd.c (do_registers_info): Print vector registers in hex
1590 (print_vector_info): Check that printing registers
1592 (print_float_info): Ditto.
1594 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1596 * mips-tdep.c (mips_gdbarch_init): Update.
1597 (mips_o32_extract_return_value): Rewrite.
1598 (mips_o32_store_return_value): Rewrite.
1599 (mips_o32_xfer_return_value): New function.
1600 (mips_xfer_register): Tweak debug print message. Allow for
1601 buf_offset when dumping the value transfered.
1603 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1605 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1606 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1607 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1608 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1609 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1611 2002-08-14 Michael Snyder <msnyder@redhat.com>
1613 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1615 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1617 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1619 (P): New macro to define a register as a pseudo register.
1620 (R, R4, R8, R16, FR32, R64, R0): Updated.
1621 (struct variant): Add new fields for number of pseudo registers
1622 and number of total registers.
1623 (tot_num_registers): New macro replacing....
1624 (num_registers): ...deleted macro.
1625 (num_registers): New function.
1626 (num_pseudo_registers): New function.
1627 (variants): Update all variants to intialize new fields correctly.
1628 Postpone initialization of number of pseudo regs and real regs.
1629 (init_variants): New function.
1630 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1633 2002-08-19 David Carlton <carlton@math.stanford.edu>
1635 * valops.c (search_struct_field): Change error message to treat
1636 return value of 0 from value_static_field as meaning that field is
1638 (value_struct_elt_for_reference): Ditto.
1639 * values.c (value_static_field): Treat an unresolved location the
1640 same as a nonexistent symbol. Fix PR gdb/635.
1641 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1642 enclosed. Fix PR gdb/574.
1643 * MAINTAINERS: Add self to Write After Approval list.
1645 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1647 * mips-tdep.c (mips_xfer_register): New function.
1648 (mips_n32n64_extract_return_value): Rewrite.
1649 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1650 instead of deprecated_extract_return_value.
1652 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1654 * rs6000-tdep.c (TDEP): Delete macro.
1655 (branch_dest): Replace use of TDEP macro with its body.
1656 (rs6000_pop_frame): Ditto.
1657 (rs6000_push_arguments): Ditto.
1658 (rs6000_skip_trampoline_code): Ditto.
1659 (rs6000_frame_saved_pc): Ditto.
1660 (rs6000_frame_chain): Ditto.
1661 (rs6000_register_name): Ditto.
1662 (rs6000_register_byte): Ditto.
1663 (rs6000_register_raw_size): Ditto.
1664 (rs6000_register_virtual_type): Ditto.
1665 (rs6000_register_convertible): Ditto.
1666 (rs6000_convert_from_func_ptr_addr): Ditto.
1668 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1670 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1672 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1673 MIPS_LINUX_JB_ELEMENT_SIZE.
1674 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1675 for MAX_REGISTER_RAW_SIZE arrays.
1676 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1677 MIPS_LINUX_JB_ELEMENT_SIZE.
1679 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1681 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1683 2002-08-19 Aidan Skinner <aidan@velvet.net>
1685 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1686 ada-valprint.c ada-tasks.c.
1687 (YYFILES): Add ada-exp.y.
1688 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1689 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1690 (ada-exp.tab.o): New target.
1692 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1694 * regcache.c (regcache_xfer_part): New function.
1695 (regcache_raw_read_part): New function.
1696 (regcache_raw_write_part): New function.
1697 (regcache_cooked_read_part): New function.
1698 (regcache_cooked_write_part): New function.
1699 * regcache.h (regcache_raw_read_part): Declare.
1700 (regcache_raw_write_part): Declare.
1701 (regcache_cooked_read_part): Declare.
1702 (regcache_cooked_write_part): Declare.
1704 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1706 * remote.c (remote_open_1): Add async_p.
1707 (remote_async_open_1): Delete.
1708 (open_remote_target): Delete.
1709 (remote_open, extended_remote_open): Update calls to remote_open_1.
1710 (remote_async_open, extended_remote_async_open): Call
1711 remote_open_1 instead of remote_async_open_1.
1713 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1715 * blockframe.c: Fix a few coding standard violations.
1717 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1719 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1721 * config/i386/tm-i386sco5.h: ... here. File removed.
1722 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1724 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1725 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1726 (TM_FILE): Set to tm-i386.h.
1727 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1728 * config/i386/tm-i386v.h: Remove file.
1729 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1730 instead of "i386/tm-i386v.h".
1731 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1732 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1734 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1735 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1738 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1740 * config/i386/nm-i386v.h: Add protection against
1742 (i386_register_u_addr): Remove prototype.
1743 (register_u_addr): New prototype.
1744 (REGISTER_U_ADDR): Redefine accordingly.
1745 * i386v-nat.c: Improve several comments.
1746 (i386_register_u_addr): Change signature and rename to
1747 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1750 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1752 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1753 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1754 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1755 deprecated_extract_return_value.
1756 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1757 rename mips_o32o64_push_arguments.
1758 (mips_gdbarch_init): Update.
1759 (mips_extract_return_value): Delete.
1760 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1761 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1762 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1763 (mips_n32n64_extract_return_value): Clone
1764 mips_extract_return_value.
1765 (mips_store_return_value): Delete.
1766 (mips_o32_store_return_value): Clone mips_store_return_value.
1767 (mips_o64_store_return_value): Clone mips_store_return_value.
1768 (mips_eabi_store_return_value): Clone mips_store_return_value.
1769 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1771 2002-08-18 Aidan Skinner <aidan@velvet.net>
1773 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1774 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1776 2002-08-18 Aidan Skinner <aidan@velvet.net>
1778 * ada-lang.c: Run through gdb_indent.sh.
1779 * ada-lang.h: Run through gdb_indent.sh.
1780 * ada-tasks.c: Run through gdb_indent.sh.
1781 * ada-typeprint.c: Run through gdb_indent.sh.
1782 * ada-valprint.c: Run through gdb_indent.sh.
1784 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1786 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1789 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1791 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1793 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1794 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1796 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1797 write_register_gen instead of write_register_bytes.
1799 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1800 i[3456]-*-osf1mk* configurations have been made obsolete.
1801 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1802 i[3456]86-*-osf1mk* hosts obsolete.
1803 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1805 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1806 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1807 config/i386/i386m3.mt, config/i386/nm-m3.h,
1808 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1809 config/i386/i386mk.mh, config/i386/i386mk.mt,
1810 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1812 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1813 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1814 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1816 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1818 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1819 (hppa_value_returned_from_stack): Declare.
1820 (hppa_extract_return_value): Declare.
1821 * config/pa/hppa.mt: New file.
1822 * configure.tgt: Recognize hppa*-*-*.
1823 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1825 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1827 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1830 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1832 * top.c (gdb_rl_operate_and_get_next): Make sure
1833 operate-and-get-next functions correctly even when the history
1834 list is completely filled.
1836 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1838 * MAINTAINERS (Target Instruction Set Architectures): Rename
1839 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1840 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1841 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1842 already listed under Host/Native.
1844 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1845 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1848 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1850 * config/ia64/ia64.mt: New file.
1851 * config/alpha/alpha.mt: New file.
1852 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1853 ia64-linux-gnu. Mention that ia64-elf is broken.
1854 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1856 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1858 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1859 generic_func_frame_valid instead of func_frame_valid.
1861 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1863 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1864 procfs appears to be broken when debugging on multi-processor
1865 machines. So enable software single stepping in order to avoid
1866 using the procfs interface to do next/step operations, using
1867 internal breakpoints instead.
1869 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1870 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1871 make this pc address equal to the value it would have if the
1872 system stepping capability was used. Also set a new flag used
1873 to ensure that we don't readjust the PC one more time later.
1875 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1876 address by DECR_PC_AFTER_BREAK when software single step is
1877 in use for this architecture, as this has already been taken
1878 care of in handle_inferior_event().
1880 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1882 * infrun.c (handle_inferior_event): Minor reformatting, to make
1883 a rather long condition expression easier to read.
1885 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1887 * Makefile.in (gdbtk.o): Move to end of file.
1888 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1889 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1890 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1891 (gdbtk-wrapper.o, gdbres.o): Ditto.
1893 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1895 * Makefile.in (copying.o): Separate out compile rule.
1896 (hpux-thread.o, procfs.o, signals.o): Ditto.
1897 (v850ice.o, z8k-tdep.o): Ditto.
1898 (tui-file.o): Move to TUI section.
1899 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1900 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1902 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1904 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1905 skip_trampoline_code, for better namespace-proofing.
1907 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1909 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1911 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1913 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1915 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1916 signal, check whether we hit a breakpoint before checking for a
1917 single step breakpoint. Otherwise, GDB fails to notice that a
1918 breakpoint has been hit when stepping onto a breakpoint.
1920 2002-08-16 Keith Seitz <keiths@redhat.com>
1922 * gdb-events.sh (clear_gdb_event_hooks): New function.
1923 * gdb-events.c: Regenerate.
1924 * gdb-events.h: Regenerate.
1926 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1928 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1929 not_a_sw_breakpoint.
1930 * breakpoint.h (bpstat_stop_status): Add parameter names.
1932 2002-08-16 Grace Sainsbury <graces@redhat.com>
1934 * remote.c (remote_insert_hw_breakpoint)
1935 (remote_remove_hw_breakpoint): Fix calculation of length field
1938 2002-08-15 Michael Snyder <msnyder@redhat.com>
1940 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1941 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1942 (supply_fpregset): Ditto.
1944 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1945 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1946 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1947 (TARGET_READ_SP): Delete.
1948 (DO_REGISTERS_INFO): Delete.
1949 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1951 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1952 from macros to functions.
1954 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1955 (mips_register_convertible, mips_register_convert_to_virtual,
1956 mips_register_convert_to_raw): Make static.
1957 (mips_read_sp): New function.
1958 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1959 (mips_do_registers_info): Make static.
1960 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1961 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1962 (mips_register_convert_from_type, mips_register_convert_to_type):
1964 (mips_gdbarch_init): Set up function_start_offset,
1965 register_virtual_size, pc_in_sigtramp.
1967 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1969 * infcmd.c (vector_info): New function.
1970 (_initialize_infcmd): Add command "info vector".
1971 (print_vector_info): New function.
1973 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1974 * gdbarch.h, gdbarch.c: Regenerate.
1976 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1978 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1979 ``print_all''. Only print vector registers when ``print_all''.
1981 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1983 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1984 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1986 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1987 Add `args' parameter.
1988 * gdbarch.h, gdbarch.c: Regenerate.
1990 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1992 * infcmd.c (float_info): Call print_float_info.
1993 (print_float_info): New function. By default, print the
1994 floating-point registers.
1996 * arch-utils.h (default_print_float_info): Delete declaration.
1997 * arch-utils.c (default_print_float_info): Delete function.
1999 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2001 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2004 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2007 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2008 * configure.host: Make i[3456]86-*-aix host obsolete.
2009 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2010 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2011 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2012 config/i386/xm-i386aix.h: Make files obsolete.
2013 * i386aix-nat.c: Make file obsolete.
2014 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2015 (i386aix-nat.o): Make target obsolete.
2017 * config/i386/nm-gnu.h: Removed.
2018 * config/i386/nm-i386gnu.h: New file.
2019 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2020 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2022 * config/i386/tm-i386gnu.h: ... here. Removed.
2023 * config/i386/xm-i386gnu.h: Removed.
2024 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2025 (NAT_FILE): Set to nm-i386gnu.h.
2026 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2027 * i386-tdep.c: New file.
2028 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2029 (i386gnu-tdep.o): Specify dependencies.
2031 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2033 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2034 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2035 Adjust a few comments to reflect reality a bit closer.
2036 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2037 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2038 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2039 target_insert_watchpoint, target_remove_watchpoint):
2041 * config/i386/nm-i386sco5.h: ... here.
2042 (kernel_u_size): Add prototype. Improve a few comments and add
2043 protection against multiple inclusion.
2045 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2048 * uw-thread.c (SP_ARG0): Define if not already defined.
2049 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2051 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2053 * config/i386/tm-i386.h: Don't include "regcache.h".
2055 * i387-tdep.h (i387_print_float_info): New prototype.
2056 * i387-tdep.c (print_i387_value, print_i387_ext,
2057 print_i387_status_word, print_i387_control_word): Add `struct
2058 ui_file *' argument and use it for output.
2059 (i387_print_float_info): Renamed from i387_float_info. Add
2060 `struct gdbarch *' and `struct ui_file *' arguments and use the
2062 * i386-tdep.c: Include "i387-tdep.h".
2063 (i386_gdbarch_init): Set print_float_info.
2064 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2065 (FLOAT_INFO): Remove define.
2067 2002-08-13 Michael Snyder <msnyder@redhat.com>
2069 * mips-tdep.c (mips_push_arguments): Rename to
2070 mips_eabi_push_arguments, and tune for EABI.
2071 (MIPS_REGS_HAVE_HOME_P): Delete.
2072 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2073 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2074 Delete references to mips_regs_have_home_p.
2076 2002-08-14 Keith Seitz <keiths@redhat.com>
2078 * Makefile.in (install-gdbtk): Create insight plugin directory.
2079 Install plugins.tcl file.
2081 2002-08-14 Keith Seitz <keiths@redhat.com>
2083 * configure.in: Move SUBDIRS to near top of the file so that
2084 --enable options may add things to it.
2085 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2086 * configure: Regenerate.
2088 2002-08-13 Michael Snyder <msnyder@redhat.com>
2090 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2091 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2092 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2094 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2096 * vax-tdep.c (vax_get_saved_register): Delete function.
2097 (vax_gdbarch_init): Update.
2098 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2099 (ns32k_gdbarch_init): Update.
2100 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2101 (alpha_gdbarch_init): Update.
2103 2002-08-13 Andrew Cagney <cagney@redhat.com>
2105 * regcache.c (init_regcache_descr): Overallocate the
2106 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2107 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2109 (set_register_cached): Add range checking assertions. Use
2112 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2114 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2115 numbers for MMX registers.
2117 2002-08-13 Andrew Cagney <cagney@redhat.com>
2119 * i386-tdep.c (i386_gdbarch_init): Use
2120 generic_unwind_get_saved_register.
2122 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2124 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2125 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2127 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2128 Delete. Add comment regarding this now-deleted target method.
2130 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2132 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2133 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2134 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2135 real PC and the page number (if it's within the memory bank window).
2136 (m68hc11_pseudo_register_write): Likewise when saving.
2137 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2138 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2139 (m68hc11_register_raw_size): And use 32-bit for it.
2140 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2141 16K memory bank is used by the prog; also use the virtual pc.
2143 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2145 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2146 (m68hc11_gdbarch_init): Install it in gdbarch.
2147 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2148 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2149 (MSYMBOL_SIZE): New for documentation.
2150 (insn_return_kind): Enum to specify how a function returns.
2151 (frame_extra_info): Cleanup and record the return mode.
2152 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2153 register in address computation.
2154 (m68hc11_get_return_insn): New to obtain the return instruction used
2156 (m68hc11_frame_init_saved_regs): Take into account the return
2157 instruction used by the function for far and interrupt functions.
2158 (m68hc11_init_extra_frame_info): Take into account page register.
2159 (m68hc11_frame_args_address): Adjust according to the return mode.
2160 (show_regs): Print page register only when it's used.
2162 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2164 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2165 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2166 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2168 (m68hc11_register_raw_size): Likewise.
2170 2002-08-13 Andrew Cagney <cagney@redhat.com>
2172 * i386-tdep.c (i386_register_name): Handle mmx registers.
2173 (mmx_regnum_p): New function.
2174 (i386_mmx_names): New array.
2175 (mmx_num_regs): New variable.
2176 (i386_pseudo_register_read): New function.
2177 (i386_pseudo_register_write): New function.
2178 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2180 * regcache.c (regcache_raw_read_unsigned): New function.
2181 (regcache_raw_read_signed): New function.
2182 * regcache.h (regcache_raw_read_unsigned): Declare.
2183 (regcache_raw_read_signed): Declare.
2185 2002-08-13 Andrew Cagney <cagney@redhat.com>
2187 * regcache.c (regcache_raw_read_as_address): Delete function.
2188 (regcache_cooked_read_signed): New function.
2189 (regcache_cooked_read_unsigned): New function.
2190 * regcache.h (regcache_cooked_read_signed): Declare.
2191 (regcache_cooked_read_unsigned): Declare.
2192 (regcache_raw_read_as_address): Delete declaration.
2194 * blockframe.c (generic_read_register_dummy): Use
2195 regcache_cooked_read_unsigned.
2196 * i386-tdep.c (i386_extract_struct_value_address): Use
2197 regcache_cooked_read_unsigned.
2199 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2202 double sizes according to ELF ABI flags.
2203 (gdbarch_tdep): Record elf_flags.
2205 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2207 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2208 (m6812_prolog): They can appear in 68HC12 function prologue.
2209 (m68hc11_frame_chain): Cleanup.
2211 2002-08-12 Andrew Cagney <cagney@redhat.com>
2213 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2215 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2216 (i386_linux_register_raw_size): Delete function.
2217 (i386_linux_init_abi): Update.
2218 * i386-tdep.c (i386_register_raw_size): Delete function.
2219 (i386_register_byte): Delete function.
2220 (i386_gdbarch_init): Update.
2221 (i386_register_size): Delete array.
2222 (i386_register_offset): Delete array.
2224 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2225 (REGISTER_RAW_SIZE): Delete macro.
2226 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2227 (REGISTER_BYTE): Delete macro.
2229 2002-08-11 Aidan Skinner <aidan@velvet.net>
2231 * ada-lang.c (ada_lookup_partial_symbol)
2232 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2233 prototype names so that grep ^func works properly.
2235 * ada-lang.c (ada_array_element_type)
2236 (ada_lookup_partial_symbol): Fix typos in parameter list.
2238 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2239 Fix prototype names so that grep ^func works properly.
2241 2002-08-10 Andrew Cagney <cagney@redhat.com>
2242 Elena Zannoni <ezannoni@redhat.com>
2243 Martin M. Hunt <hunt@redhat.com>
2245 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2246 (build_builtin_type_vec128i): Set the vector bit.
2247 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2248 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2249 (build_builtin_type_vec64): New function.
2250 (build_builtin_type_vec64i): New function.
2251 (build_gdbtypes): Initialize builtin_type_vec64 and
2252 builtin_type_vec64i.
2254 2002-08-09 Andrew Cagney <cagney@redhat.com>
2256 * regcache.c (regcache_dump): Compare the register offset
2258 * arch-utils.c (generic_register_byte): New function.
2259 * arch-utils.h (generic_register_byte): Declare.
2260 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2261 * gdbarch.h, gdbarch.c: Regenerate.
2263 2002-08-09 Andrew Cagney <cagney@redhat.com>
2265 * regcache.c: Include "gdbcmd.h"
2266 (_initialize_regcache): Add commands "maintenance print
2267 registers", "maintenance print raw-registers" and "maintenance
2268 print cooked-registers".
2269 (enum regcache_dump_what): Define.
2270 (dump_endian_bytes): New function.
2271 (regcache_dump): New function.
2272 (regcache_print): New function.
2273 (maintenance_print_registers): New function.
2274 (maintenance_print_raw_registers): New function.
2275 (maintenance_print_cooked_registers): New function.
2276 * Makefile.in (regcache.o): Update dependencies.
2278 2002-08-09 Michael Snyder <msnyder@redhat.com>
2280 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2281 (mips_push_arguments): Correct some comments. Use paddr_nz
2282 for printing addresses in debug output. Replace static
2283 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2284 (mips_n32n64_push_arguments): New function, cloned from
2285 mips_push_arguments and tuned for the n32/n64 ABI.
2286 (mips_push_register): Buffer needs dynamic allocation.
2287 (mips_print_register): Ditto.
2288 (do_gp_register_row): Ditto.
2289 (mips_store_return_value): Ditto.
2290 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2292 2002-08-09 Don Howard <dhoward@redhat.com>
2294 * memattr.c (mem_info_command): Print special case of upper bound
2295 as max CORE_ADDR + 1.
2297 2002-08-08 Michael Snyder <msnyder@redhat.com>
2299 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2300 returns structs by ref if they're too big to fit in two registers.
2302 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2304 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2306 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2307 mips_find_saved_regs().
2308 (mips_pop_frame): Likewise.
2310 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2312 * blockframe.c (frame_saved_regs_register_unwind): Revise
2313 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2316 2002-08-09 Grace Sainsbury <graces@redhat.com>
2318 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2319 T-packets; the 'a' is not taken as a register number.
2320 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2321 (remote_stopped_data_address): New functions; add to target
2323 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2324 prototypes to match other implementations of this
2325 function. replace integer argument with pointer -- the length
2326 field in the Z-packet is the length of what is pointed to or 1 if
2327 pointer is null. Add to target vector.
2328 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2332 * remote.c (remote_wait): Add support to extract optional
2333 watchpoint information from T-packet. Ignore unrecognized
2334 optional info in T-packet.
2335 (remote_async_wait): Ditto.
2337 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2339 * cli/cli-dump.c: Change fopen modes to use binary open modes
2340 as defined in include/fopen-bin.h throughout.
2342 2002-08-08 Michael Snyder <msnyder@redhat.com>
2344 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2346 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2348 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2349 assertion failure by returning early after a warning.
2351 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2353 * mips-tdep.c (mips_find_saved_regs): Make static.
2354 (mips_frame_init_saved_regs): New function.
2355 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2356 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2357 (mips_find_saved_regs): Delete declaration.
2359 2002-08-08 Grace Sainsbury <graces@redhat.com>
2361 * remote.c (remote_wait, remote_async_wait): Change
2362 thread_num from int to ULONGEST.
2363 (unpack_varlen_hex): Change result parameter from
2364 int * to ULONGEST *.
2366 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2368 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2369 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2371 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2373 2002-08-08 Andrew Cagney <cagney@redhat.com>
2375 * gcore.c (override_derive_stack_segment): Delete variable.
2376 (preempt_derive_stack_segment): Delete function.
2377 (derive_stack_segment): Delete function.
2378 (default_derive_stack_segment): Renamed to derive_stack_segment.
2379 (override_derive_heap_segment): Delete variable.
2380 (preempt_derive_heap_segment): Delete function.
2381 (derive_heap_segment): Delete function.
2382 (default_derive_heap_segment): Rename to derive_heap_segment.
2384 2002-08-06 Michael Snyder <msnyder@redhat.com>
2386 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2387 * mips-tdep.c (mips_EABI_use_struct_convention,
2388 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2389 New functions. (mips_use_struct_convention): Delete.
2390 (mips_gdbarch_init): set use_gdbarch_convention.
2392 2002-08-06 Michael Snyder <msnyder@redhat.com>
2394 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2395 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2396 mips_o32_reg_struct_has_addr): New functions.
2397 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2399 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2401 * regcache.c (pseudo_register): Delete function.
2402 (fetch_register): Delete function.
2403 (store_register): Delete function.
2404 (regcache_raw_read, legacy_read_register_gen): Use
2405 target_fetch_registers instead of fetch_register.
2406 (legacy_write_register_gen, regcache_raw_write): Use
2407 target_store_register instead of store_register.
2408 (write_register_bytes): Ditto.
2410 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2411 (STORE_PSEUDO_REGISTER): Delete.
2412 * gdbarch.h, gdbarch.c: Regenerate.
2414 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2416 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2417 write dump file binary.
2419 2002-08-05 Michael Snyder <msnyder@redhat.com>
2421 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2422 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2423 (mips_gdbarch_init): Set N32 target to be mips64.
2425 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2427 * frame.c (find_saved_register): Break out of loop once saved
2428 register address is found. Don't mention sparc in loop comment
2431 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2433 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2434 mips_default_saved_regsize to 8.
2436 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2438 * gcore.c: Do not include <sys/procfs.h>.
2439 * Makefile.in (gcore.o): Update dependencies.
2441 2002-08-06 Andrew Cagney <cagney@redhat.com>
2443 * configure.tgt: Make arc-*-* obsolete.
2444 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2445 * MAINTAINERS: Make arc-elf obsolete.
2446 * arc-tdep.c: Make file obsolete.
2447 * config/arc/arc.mt: Ditto.
2448 * config/arc/tm-arc.h: Ditto.
2450 2002-08-05 Theodore A. Roth <troth@verinet.com>
2452 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2454 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2456 * mcore-tdep.c (mcore_gdbarch_init): Use
2457 generic_unwind_get_saved_register instead of
2458 generic_get_saved_register.
2459 * v850-tdep.c (v850_gdbarch_init): Ditto.
2460 * frv-tdep.c (frv_gdbarch_init): Ditto.
2461 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2462 * s390-tdep.c (s390_gdbarch_init): Ditto.
2463 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2464 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2465 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2467 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2469 * objfiles.h: Add missing #include "symfile.h"
2471 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2473 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2475 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2476 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2479 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2481 * NEWS: Cleanup and nitpick.
2483 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2485 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2487 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2489 * Makefile.in (gdbtk-bp.o): Update dependencies.
2490 (gdbtk-register.o): Ditto.
2491 (gdbtk-varobj.o): Ditto.
2493 2002-08-03 Andrew Cagney <cagney@redhat.com>
2495 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2496 m68hc11_fetch_pseudo_register.
2497 (m68hc11_pseudo_register_write): Replace
2498 m68hc11_store_pseudo_register.
2499 (m68hc11_gdbarch_init): Update.
2501 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2503 * gdbarch.sh: Include "gdb_string.h".
2504 * gdbarch.c: Regenerate.
2506 * regcache.c: Include "gdb_string.h".
2507 * ax-general.c: Ditto.
2509 * std-regs.c: Ditto.
2510 * fbsd-proc.c: Ditto.
2513 * Makefile.in (regcache.o): Update dependencies.
2514 (thread.o, gdbarch.o): Ditto.
2515 (ax-general.o, gdbarch.o): Ditto.
2516 (varobj.o, std-regs.o): Ditto.
2517 (fbsd-proc.o): Specify dependencies.
2519 2002-08-02 Andrew Cagney <cagney@redhat.com>
2521 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2523 (regcache_cooked_write): Ditto.
2525 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2527 * regcache.c (regcache_cooked_read): New function.
2528 (regcache_cooked_write): New function.
2529 (read_register_gen): Rewrite using regcache_cooked_read.
2530 (write_register_gen): Rewrite using regcache_cooked_write.
2532 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2535 2002-08-02 Andrew Cagney <cagney@redhat.com>
2537 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2538 Replace the architecture methods register_read and register_write.
2539 * gdbarch.h, gdbarch.c: Regenerate.
2540 * regcache.c (init_regcache_descr): Update.
2541 (read_register_gen): Update.
2542 (write_register_gen): Update.
2543 (supply_register): Update comment.
2545 * sh-tdep.c (sh_gdbarch_init): Update.
2546 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2547 `regcache' and `gdbarch' parameters. Make `buffer' a void
2548 pointer. Update code.
2549 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2550 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2551 void pointer. Update code.
2552 (sh64_register_write): Delete.
2553 (sh4_register_read): Delete.
2554 (sh64_register_read): Delete.
2555 (sh4_register_write): Delete.
2556 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2557 void pointer, `to' parameter a void pointer.
2558 (sh_sh64_register_convert_to_raw): Ditto.
2560 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2562 * mips-tdep.c (mips_register_virtual_type): Use architecture
2563 invariant return values.
2565 2002-08-01 Andrew Cagney <cagney@redhat.com>
2567 * linux-proc.c: Include "gdb_string.h".
2568 * Makefile.in (linux-proc.o): Update dependency list.
2570 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2572 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2575 2002-08-01 Grace Sainsbury <graces@redhat.com>
2577 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2578 to_insert_watchpoint, to_remove_watchpoint,
2579 to_stopped_by_watchpoint, to_stopped_data_address,
2580 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2581 target vecctor. Define their corresponding macros so they call
2584 * target.c: Add default and debug versions of for
2585 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2586 to_insert_watchpoint, to_remove_watchpoint,
2587 to_stopped_by_watchpoint, to_stopped_data_address,
2588 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2590 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2592 * mips-tdep.c (mips_register_virtual_type): New function.
2593 (mips_gdbarch_init): Register mips_register_virtual_type()
2594 with gdbarch machinery.
2595 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2596 this file instead of tm-bigmips.h.
2597 (MIPS_REGSIZE): Delete this macro.
2598 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2599 multiarch version in mips-tdep.c will be found.
2601 2002-08-01 Andrew Cagney <cagney@redhat.com>
2603 * NEWS: Menion that CHILL has been made obsolete.
2605 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2606 * stabsread.c (read_range_type): Ditto.
2607 * gdbtypes.h: Ditto.
2608 * language.c (binop_type_check): Ditto.
2609 (binop_result_type): Ditto.
2610 (integral_type): Ditto.
2611 (character_type): Ditto.
2612 (string_type): Ditto.
2613 (boolean_type): Ditto.
2614 (structured_type): Ditto.
2615 (lang_bool_type): Ditto.
2616 (binop_type_check): Ditto.
2617 * language.h (_LANG_chill): Ditto.
2618 * dwarfread.c (set_cu_language): Ditto.
2619 * dwarfread.c (CHILL_PRODUCER): Ditto.
2620 * dwarfread.c (handle_producer): Ditto.
2621 * expression.h (enum exp_opcode): Ditto.
2622 * eval.c: Ditto for comments.
2623 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2624 * expprint.c (print_subexp): Ditto.
2625 (print_subexp): Ditto.
2626 * valops.c (value_cast): Ditto.
2627 (search_struct_field): Ditto.
2628 * value.h (COERCE_VARYING_ARRAY): Ditto.
2629 * symfile.c (init_filename_language_table): Ditto.
2630 (add_psymbol_with_dem_name_to_list): Ditto.
2631 * valarith.c (value_binop): Ditto.
2633 * valops.c (value_slice): Ditto.
2634 * symtab.h (union language_specific): Ditto.
2635 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2636 (SYMBOL_DEMANGLED_NAME): Ditto.
2637 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2638 * defs.h (enum language): Ditto.
2639 * symtab.c (got_symtab): Ditto.
2640 * utils.c (fprintf_symbol_filtered): Ditto.
2642 * ch-typeprint.c: Make file obsolete.
2643 * ch-valprint.c: Make file obsolete.
2644 * ch-lang.h: Make file obsolete.
2645 * ch-exp.c: Make file obsolete.
2646 * ch-lang.c: Make file obsolete.
2648 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2650 (TARGET_FLAGS_TO_PASS): Ditto.
2651 (CHILLFLAGS): Obsolete.
2653 (CHILL_FOR_TARGET): Obsolete.
2654 (CHILL_LIB): Obsolete.
2655 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2657 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2658 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2660 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2663 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2665 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2666 This does not change anything at the moment, but will be helpful
2667 later when full Ada support is integrated.
2669 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2671 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2674 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2676 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2677 and save it in a local variable. Use variable in later test.
2679 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2681 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2682 test. (Thanks to Daniel Jacobowitz.)
2684 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2686 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2687 (mips_abi_strings): Add "n64".
2688 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2690 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2692 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2693 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2695 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2697 * utils.c (host_pointer_to_address, address_to_host_pointer):
2698 Use gdb_assert() instead of explicit call to internal_error().
2700 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2702 * Makefile.in (rs6000-nat.o): Update dependencies.
2704 From Nicholas Duffek:
2705 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2706 (aix-thread.o): New rule.
2707 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2708 * config/powerpc/aix432.mh: New file.
2710 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2712 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2713 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2714 (fetch_core_registers, ppc_linux_supply_gregset)
2715 (ppc_linux_supply_fpregset): New functions.
2716 (ppc_linux_regset_core_fns): New.
2717 (_initialize_ppc_linux_tdep): Call add_core_fns.
2718 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2719 and ppc_linux_supply_gregset.
2720 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2721 (supply_fpregset): Call ppc_linux_supply_fpregset.
2722 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2724 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2726 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2728 * symtab.c (lookup_symbol): Demangle before lowercasing.
2730 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2732 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2734 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2735 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2736 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2737 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2739 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2740 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2741 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2742 (avr-tdep.o, mon960-rom.o): Ditto.
2743 (aout_stabs_gnu_h): Define.
2744 (symtab_h): Remove $(gdb_obstack_h).
2746 2002-07-30 Jim Blandy <jimb@redhat.com>
2748 Patch from David Carlton <carlton@math.stanford.edu>:
2749 * gdbinit.in: Move the `dir' commands that add GDB's own source
2750 directory to the search path to the end, so that the `gdb' source
2751 directory will be searched first.
2753 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2755 * gdb_obstack.h: New file.
2756 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2757 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2758 * objfiles.h: Include "gdb_obstack.h".
2759 * Makefile.in (gdb_obstack_h): Define.
2760 (symtab_h): Add $(gdb_obstack_h).
2761 (objfiles_h): Add $(gdb_obstack_h).
2763 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2764 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2765 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2766 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2767 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2768 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2769 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2770 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2772 * Makefile.in (bcache.o): Update dependencies.
2773 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2774 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2775 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2776 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2777 (stabsread.o, symfile.o, symmisc.o): Ditto.
2778 (symtab.o, typeprint.o, macroexp.o): Ditto.
2779 (macrotab.o, mdebugread.o): Ditto.
2780 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2781 (coff_ecoff_h, aout_aout64_h): Define.
2782 (aout_stabs_gnu_h, libaout_h): Define.
2784 2002-07-29 Andrew Cagney <cagney@redhat.com>
2786 * regcache.c (struct regcache_descr): Rename nr_registers to
2787 nr_cooked_registers. Revise comments describing the structure
2789 (init_regcache_descr): Update.
2790 (init_legacy_regcache_descr): Update.
2791 (read_register_gen, write_register_gen): When a cooked register in
2792 the raw register range, directly access the value from the raw
2795 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2797 * z8k-tdep.c: Do not include "obstack.h".
2798 * h8300-tdep.c, h8500-tdep.c: Ditto.
2799 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2800 * valprint.c, v850-tdep.c: Ditto.
2801 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2802 * mn10200-tdep.c: Ditto.
2804 * Makefile.in (z8k-tdep.o): Update dependencies.
2805 (m68hc11-tdep.o, valprint.o): Ditto.
2806 (v850-tdep.o, d10v-tdep.o): Ditto.
2807 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2808 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2809 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2810 (sh_opc_h, gdb_sim_sh_h): Define.
2811 (elf_sh_h, elf_bfd_h): Define.
2812 (opcode_m68hc11_h): Define.
2813 (OPCODES_SRC, OPCODES_DIR): define.
2814 (OPCODES): Use $(OPCODES_DIR).
2815 (gdb_sim_d10v_h): Rename sim_d10v_h.
2816 (gdb_sim_arm_h): Rename sim_arm_h.
2818 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2820 * utils.c (host_pointer_to_address, address_to_host_pointer):
2821 Change internal_error() message to indicate function responsible
2824 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2826 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2827 calls to local_hex_string_custom().
2829 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2831 * irix5-nat.c: Move IRIX shared library support from here...
2832 * solib-irix.c: ...to here. Revised substantially to work with
2833 generic solib framework.
2835 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2836 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2837 * mips-irix-tdep.c: New file.
2839 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2840 (mips-irix-tdep.o, solib-irix.o): New rules.
2841 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2843 * config/mips/irix6.mt (TDEPFILES): Likewise.
2844 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2846 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2848 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2849 disabled (via ``#if 0'') includes.
2851 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2853 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2854 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2855 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2856 Add support for the fpscr register.
2857 * rs6000-nat.c (regmap, fetch_inferior_registers)
2858 (store_inferior_registers, fetch_core_registers): Likewise.
2860 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2862 * rs6000-nat.c (language.h): Include.
2863 (special_regs): Delete this array.
2864 (regmap): New function.
2865 (fetch_register, store_register): Use regmap() to map gdb
2866 register numbers to ptrace register numbers. Also, use
2867 outputs from regmap() to make decisions regarding type of
2868 ptrace() call to make. In particular, don't compare against
2869 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2870 (fetch_inferior_registers, store_inferior_registers): Where
2871 possible, obtain register numbers from tdep struct. Don't
2872 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2873 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2874 (LAST_UISA_SP_REGNUM): Delete.
2876 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2878 * rs6000-nat.c (ppc-tdep.h): Include.
2879 (fetch_registers, store_register, fetch_core_registers): Don't
2880 access registers[] directly. Instead, use supply_register() or
2881 regcache_collect() as appropriate.
2882 (find_toc_address): Format hex address with local_hex_string().
2884 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2886 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2889 2002-07-24 Tom Tromey <tromey@redhat.com>
2891 * jv-exp.y: Marked all strings with _().
2892 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2894 (MethodInvocation, CastExpression, parse_number, yyerror,
2895 java_type_from_name, push_expression_name, yylex): Typo fixes.
2897 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2899 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2900 (tee_file_flush, tee_file_write, tee_file_fputs)
2901 (tee_file_isatty): New.
2902 * ui-file.h (tee_file_new): Add prototype.
2904 2002-07-24 Aidan Skinner <aidan@velvet.net>
2906 * ada-lang.c: Change k&r style function definitions to prototyped
2908 * ada-typeprint.c: Change k&r style function definitions to prototyped
2910 * ada-valprint.c: Change k&r style function definitions to prototyped
2913 2002-07-24 Andrew Cagney <cagney@redhat.com>
2915 * README: Remove reference to remote-bug.
2916 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2918 (m88k-nat.o): Delete rule.
2919 (m88k-tdep.o): Delete rule.
2920 (remote-bug.o): Delete rule.
2921 * MAINTAINERS: Mark as obsolete.
2922 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2923 * m88k-tdep.c: Make file obsolete.
2924 * config/m88k/m88k.mh: Ditto.
2925 * config/m88k/delta88v4.mh: Ditto.
2926 * config/m88k/delta88v4.mt: Ditto.
2927 * config/m88k/delta88.mt: Ditto.
2928 * config/m88k/delta88.mh: Ditto.
2929 * remote-bug.c: Ditto.
2930 * config/m88k/tm-delta88.h: Ditto.
2931 * config/m88k/nm-delta88v4.h: Ditto.
2932 * config/m88k/xm-delta88.h: Ditto.
2933 * config/m88k/xm-dgux.h: Ditto.
2934 * config/m88k/tm-m88k.h: Ditto.
2935 * config/m88k/nm-m88k.h: Ditto.
2936 * config/m88k/tm-delta88v4.h: Ditto.
2937 * m88k-nat.c: Ditto.
2938 * cxux-nat.c: Ditto.
2939 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2940 and m88*-*-* obsolete.
2941 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2944 2002-07-24 Andrew Cagney <cagney@redhat.com>
2946 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2947 constant. Same for local pointer variables.
2948 (extract_signed_integer): Ditto.
2949 * defs.h (extract_unsigned_integer): Update.
2950 (extract_signed_integer): Update.
2952 2002-07-24 Andrew Cagney <cagney@redhat.com>
2954 * regcache.c (regcache_raw_write): Change buf parameter to a
2955 constant void pointer.
2956 (regcache_raw_read): Change buf parameter to a void pointer.
2957 (legacy_write_register_gen): Change myaddr parameter a constant
2959 (supply_register): Change val parameter to a const void pointer.
2960 * regcache.h (regcache_raw_write): Update declaration.
2961 (regcache_raw_read): Update declaration.
2962 (supply_register): Update declaration.
2964 2002-07-24 Tom Tromey <tromey@redhat.com>
2966 * defs.h (gdb_readline_wrapper): Declare.
2967 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2968 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2969 * top.c (gdb_readline_wrapper): New function.
2970 (command_line_input): Use it.
2972 2002-07-24 Andrew Cagney <cagney@redhat.com>
2974 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2975 regcache_read and regcache_write.
2976 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2977 * regcache.c: Update.
2978 * sh-tdep.c (sh64_push_arguments): Update comment.
2979 (sh_pseudo_register_read): Update.
2980 (sh_pseudo_register_write): Update.
2981 (sh4_register_read): Update.
2982 (sh4_register_write): Update.
2983 (sh64_pseudo_register_read): Update.
2984 (sh64_pseudo_register_write): Update.
2985 (sh64_register_read): Update.
2986 (sh64_register_write): Update.
2987 * i386-tdep.c (i386_extract_return_value): Update.
2988 (i386_extract_struct_value_address): Update.
2989 (i386_extract_return_value): Update.
2990 * blockframe.c (generic_read_register_dummy): Update.
2991 (generic_call_dummy_register_unwind): Update
2992 * infrun.c (write_inferior_status_register): Update.
2994 2002-07-23 Jim Blandy <jimb@redhat.com>
2996 * parser-defs.h (expression_context_pc): Make this extern.
2997 (Thanks to Michael Snyder.)
2999 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3001 GDB 5.2.1 released from 5.2 branch.
3002 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3003 * README: Update to mention 5.2.1.
3005 2002-07-23 Mark Salter <msalter@redhat.com>
3007 * remote.c (remote_read_bytes): Fix check for error.
3009 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3011 * aix-thread.c (language.h): Include.
3012 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3013 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3014 Print newlines at end of debug messages.
3015 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3016 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3018 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3020 * aix-thread.c (ppc-tdep.h): Include.
3021 (special_register_p): New function.
3022 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3023 (store_regs_user_thread): Use register number information from
3024 gdbarch_tdep struct instead of hardcoded offsets relative to
3025 FIRST_UISA_SP_REGNUM.
3026 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3027 special_register_p() instead of using FPLAST_REGNUM and
3028 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3029 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3030 will be MQ's register number.
3032 2002-07-22 Michael Snyder <msnyder@redhat.com>
3034 * aix-thread.c (ops): Rename to aix_thread_ops.
3035 (base_ops): Rename to base_target.
3036 (ops_attach): Rename to aix_thread_attach.
3037 (ops_detach): Rename to aix_thread_detach.
3038 (ops_resume): Rename to aix_thread_detach.
3039 (ops_wait): Rename to aix_thread_wait.
3040 (ops_kill): Rename to aix_thread_kill.
3041 (init_ops): Rename to init_aix_thread_ops.
3042 (ops_fetch_register): Rename to aix_thread_fetch_register.
3043 (ops_store_register): Rename to aix_thread_store_register.
3044 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3045 (ops_thread_alive): Rename to aix_thread_thread_alive.
3046 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3047 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3048 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3049 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3050 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3051 (store_regs_lib): Rename to store_regs_user_thread.
3052 (store_regs_kern): Rename to store_regs_kernel_thread.
3054 2002-07-22 Michael Snyder <msnyder@redhat.com>
3056 * aix-thread.c (ops_prepare_to_store): Eliminate.
3057 (init_ops): Don't initialize ops.prepare_to_store.
3058 (store_regs_kern): Pre-fetch register buffers from child,
3059 because some registers may not be in the cache. Copy
3060 regs from register cache only if they are cached.
3061 (store_regs_lib): Copy regs from register cache only
3063 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3064 fill_gprs64): Ditto.
3066 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3068 * aix-thread.c (gdb_assert.h): Include.
3069 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3070 register sizes (from register cache) match size of buffer holding
3072 (fill_sprs32): Change parameter types to match those in the ptrace()
3074 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3075 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3077 2002-07-22 Michael Snyder <msnyder@redhat.com>
3079 * aix-thread.c (supply_sprs64): Cosmetic change.
3080 (supply_sprs32): Cosmetic change.
3081 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3082 (fill_sprs64): Use regcache_collect instead of read_register.
3083 (store_regs_lib): Use regcache_collect instead of
3084 read_register. Use fill_sprs32 instead of fill_sprs64,
3085 if debugging a 32-bit architecture.
3086 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3087 out of the register cache, instead of passing a pointer into
3088 the register cache directly to ptrace. Use regcache_collect
3089 insteaad of read_register.
3090 (ops_prepare_to_store): Use target_read_registers instead
3091 of read_register_bytes.
3093 2002-07-20 Aidan Skinner <aidan@velvet.net>
3095 * MAINTAINERS: Add self under write after approval.
3097 2002-07-20 Aidan Skinner <aidan@velvet.net>
3099 * ada-tasks.c: Change k&r style function definitions to prototyped
3102 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3104 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3105 * x86-64-tdep.c: Include "objfiles.h".
3106 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3107 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3109 2002-07-17 Michal Ludvig <michal@suse.cz>
3111 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3112 (update_context): Initialise cfa variable.
3114 2002-07-17 Michael Snyder <msnyder@redhat.com>
3116 * aix-thread.c: Shorten some long lines.
3117 Bring comments into line with code spec.
3119 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3121 * infrun.c: Re-indent using gdb_indent.sh.
3123 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3125 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3126 Leave the indentation temporarily untouched, to minimize the diffs.
3128 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3130 * stabsread.c: Make os9k sections of the code obsolete,
3132 * stabsread.h: Make os9k sections of the code obsolete.
3134 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3136 * linux-low.c (regsets_store_inferior_registers): Add free()
3137 at the end of a loop to prevent memory leak.
3138 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3139 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3140 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3142 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3144 2002-07-17 Jim Blandy <jimb@redhat.com>
3146 * macrocmd.c (info_macro_command): Remove newline from error
3149 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3151 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3152 (sh_gdbarch_init): Use it for sh-dsp.
3154 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3156 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3157 64-bit DWARF2 format.
3159 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3161 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3162 <sys/proc.h> when not available.
3164 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3166 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3167 * stabsread.c: Make os9k sections of the code obsolete.
3168 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3169 * config/i386/i386os9k.mt: Make file obsolete.
3170 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3171 (COMMON_OBS): Remove os9kread.o
3172 (SFILES): Remove os9kread.c.
3173 (os9kread.o, remote-os9k.o): Make target obsolete.
3174 * remote-os9k.c: Make file obsolete.
3175 * os9kread.c: Make file obsolete.
3178 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3180 * NEWS: Mention that the FR30 has been made obsolete.
3181 * fr30-tdep.c: Make file obsolete.
3182 * config/fr30/tm-fr30.h: Ditto.
3183 * config/fr30/fr30.mt: Ditto.
3184 * configure.tgt: Make fr30-*-elf obsolete.
3185 * MAINTAINERS: Make fr30-elf obsolete.
3187 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3189 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3190 found is not inside a section.
3192 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3194 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3196 (pdc_realloc): Use xrealloc() instead of realloc().
3198 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3200 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3201 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3202 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3205 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3207 * aix-thread.c (ptrace_check): Eliminate goto.
3208 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3211 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3213 * aix-thread.c (gdbcmd.h): Include.
3214 (DEBUG, DBG, DBG2, dbg): Eliminate.
3215 (debug_aix_thread): New static global.
3216 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3217 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3218 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3219 invocations to DBG and DBG2 macros to test against
3220 ``debug_aix_thread'' and call fprintf_unfiltered().
3221 (_initialize_aix_thread): Add new command "set debug aix-thread".
3223 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3225 From Gerhard Tonn <TON@de.ibm.com>:
3226 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3227 instead of supply_register.
3229 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3231 * dwarf2cfi.c: Include "gdb_assert.h".
3232 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3234 (update_context): Do not use __func__. Add missing ``break''.
3235 (update_context): Do not use __func__.
3237 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3239 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3240 and its setting. Set gdbarch instruction printing functions
3241 directly. For non-rs6000 case use new function
3242 gdb_print_insn_powerpc.
3243 (gdb_print_insn_powerpc): New function.
3245 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3247 * NEWS: Mention that the d30v has been marked obsolete.
3248 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3249 * configure.tgt: Mark d30v-*-* as obsolete.
3250 * d30v-tdep.c: Mark file as obsolete.
3251 * config/d30v/d30v.mt: Ditto.
3252 * config/d30v/tm-d30v.h: Ditto.
3254 2002-07-13 Aidan Skinner <aidan@velvet.net>
3256 * ada-tasks.c (add_task_entry): replace calls to
3257 malloc() with xmalloc
3258 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3260 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3261 ada_finish_decode_line_1, all_sals_for_line
3262 ada_breakpoint_rewrite): replace calls to free() with xfree()
3264 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3266 From Nicholas Duffek (with minor changes by Martin Hunt,
3267 Louis Hamilton, and Kevin Buettner):
3268 * aix-thread.c: New file.
3270 2002-07-12 Petr Sorfa <petrs@caldera.com>
3272 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3273 complaint for invalid attribute class or form.
3274 (read_func_scope): DW_AT_frame_base
3275 better handling of DW_AT_block*.
3276 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3277 better handling of DW_AT_block*.
3278 (read_common_block): DW_AT_location
3279 better handling of DW_AT_block*.
3280 (read_partial_die): DW_AT_location better handling
3282 (new_symbol): DW_AT_external better handling of
3283 DW_AT_block*. Proper initialization of variable
3285 (attr_form_is_block): New function that returns true
3286 if the attribute's form is of DW_FORM_block*.
3288 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3290 * valops.c (find_method_list): Remove comment about
3291 removed STATIC_MEMFUNCP argument.
3292 (value_find_oload_method_list): Likewise.
3294 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3296 From Nicholas Duffek:
3297 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3298 target_new_objfile_hook.
3300 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3302 From Nicholas Duffek:
3303 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3306 2002-07-12 Andrew Cagney <cagney@redhat.com>
3308 * MAINTAINERS: Mention --enable-sim-build-warnings.
3309 (m68hc11-elf): Disable sim build warnings.
3310 (m32r-elf): Mark as broken obsolete candidate.
3311 (x86_64-linux-gnu): Mark as buildable with -Werror.
3312 (arm-elf): Change -w to ``,'' which enables warnings but not
3315 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3317 * bcache.h: Update copyright.
3318 (struct bstring, struct bcache): Move definition to "bcache.c".
3319 Replaced by opaque declaration.
3320 (bcache_xfree): Replace free_bcache.
3321 (bcache_xmalloc, bcache_memory_used): Declare.
3323 * bcache.c: Update copyright.
3324 (struct bstring, struct bcache): Moved to here from "bcache.h".
3326 (bcache_xmalloc, bcache_memory_used): New functions.
3327 (bcache_xfree): Replace function free_bcache.
3329 * Makefile.in (objfiles.o): Add $(bcache_h).
3330 (objfiles_h): Remove $(bcache_h).
3331 (symfile.o): Add $(bcache_h).
3333 * symmisc.c: Update copyright.
3334 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3335 (print_objfile_statistics): Use bcache_memory_used.
3337 * symfile.c: Include "bcache.h".
3338 (reread_symbols): Use bcache_xfree.
3339 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3340 (add_psymbol_to_list): Pass psymbol_cache by value.
3341 (add_psymbol_with_dem_name_to_list): Ditto.
3343 * objfiles.h: Update copyright.
3344 (struct bcache): Declare opaque. Do not include "bcache.h".
3345 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3347 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3349 * objfiles.c: Include "bcache.h". Update copyright.
3350 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3352 (free_objfile): Use bcache_xfree.
3354 2002-07-11 Grace Sainsbury <graces@redhat.com>
3356 * monitor.c (monitor_fetch_register): Make name a constant.
3357 (monitor_store_register): Same.
3359 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3361 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3362 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3363 (finish_block) For non-function blocks, hash the symbol table. For
3364 function blocks, mark the symbol table as unhashed.
3365 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3366 (msymbol_hash_iw): Likewise.
3367 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3369 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3370 (lookup_minimal_symbol): Likewise for both.
3371 * symtab.h (struct block): Add `hashtable' flag. Comment the
3373 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3374 (ALL_BLOCK_SYMBOLS): Update.
3375 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3376 (struct symbol): Add `hash_next' pointer.
3377 * symtab.c (lookup_block_symbol): Search using the hash table when
3379 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3380 (search_symbols, find_addr_symbol): Likewise.
3382 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3383 (read_dst_symtab): Likewise.
3384 * jv-lang.c (get_java_class_symtab): Likewise.
3385 * mdebugread.c: Include "gdb_assert.h".
3386 (shrink_block): Assert that the block being modified is not hashed.
3387 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3388 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3390 (dump_symtab): Recognize hashed blocks.
3391 * printcmd.c (print_frame_args): Assert that function blocks do not
3392 have hashed symbol tables.
3393 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3394 (fill_in_ada_prototype, debug_print_block): Likewise.
3395 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3397 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3399 * stack.c (print_frame): Use result of frame_address_in_block()
3400 instead of fi->pc when evaluating symbols.
3401 (backtrace_command_1): Ditto.
3403 2002-07-11 Andrew Cagney <cagney@redhat.com>
3405 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3408 * arm-tdep.c (arm_register_name): Make return type constant.
3410 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3412 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3414 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3415 * s390-tdep.c (s390_fp_regnum): Ditto.
3416 (s390_read_fp): Ditto.
3417 (s390_pop_frame): Ditto.
3418 (_initialize_s390_tdep): Ditto.
3419 * remote.c (get_remote_state): Ditto.
3420 * procfs.c (mappingflags): Ditto.
3421 * memattr.c (_initialize_mem): Ditto.
3422 * mcore-tdep.c (mcore_pop_frame): Ditto.
3423 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3424 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3425 * language.c (set_case_str): Ditto.
3426 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3427 * frv-tdep.c (new_variant): Ditto.
3428 (frv_stopped_data_address): Ditto.
3429 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3430 (context_alloc): Ditto.
3431 (frame_state_alloc): Ditto.
3432 (unwind_tmp_obstack_init): Ditto.
3433 (unwind_tmp_obstack_free): Ditto.
3434 (cfi_read_fp): Ditto.
3435 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3436 (cris_pop_frame): Ditto.
3437 * c-lang.c (scanning_macro_expansion): Ditto.
3438 (finished_macro_expansion): Ditto.
3439 (c_preprocess_and_parse): Ditto.
3440 * gdbarch.sh: Ditto.
3441 * gdbarch.h, gdbarch.c: Regenerate.
3442 * config/mn10200/tm-mn10200.h: Adjust indentation.
3443 * target.c: Adjust indentation.
3444 * symtab.h: Adjust indentation.
3445 * stabsread.h: Adjust indentation.
3446 * remote-es.c: Adjust indentation.
3447 * os9kread.c: Adjust indentation.
3449 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3451 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3452 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3454 2002-07-10 Grace Sainsbury <graces@redhat.com>
3456 * NEWS: Mention m68k, mcore multi-arching.
3457 * MAINTAINERS: Change status of m68k, mcore to reflect
3460 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3462 * valops.c (find_overload_match): Free oload_syms.
3464 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3466 Define HAVE_SYS_PROC_H if sys/proc.h exists
3467 * configure.in: Add check for sys/proc.h
3468 * config.in: Regenerate.
3469 * configure: Regenerate.
3471 2002-07-09 Grace Sainsbury <graces@redhat.com>
3473 * config/m68k/tm-m68k.h: Remove macros wrapped in
3474 #if !GDB_MULTI_ARCH.
3476 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3478 * config.in, configure: Regenerate.
3480 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3482 * dwarf2cfi.c: Include "gcore.h".
3483 (execute_stack_op): Fix implementation of the
3484 DW_OP_deref and DW_OP_deref_size operators by letting do their
3485 lookup in the target.
3487 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3489 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3490 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3493 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3495 Fix PR gdb/595, gdb/602
3496 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3497 Don't call value_cast, just read the vtable pointer; update comments
3500 2002-07-05 Grace Sainsbury <graces@redhat.com>
3502 * config/mcore/tm-mcore.h: Remove file.
3503 * config/mcore/mcore.mt: Remove definition of TM_FILE
3504 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3506 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3508 * i386bsd-tdep.c: Include "gdb_string.h".
3510 2002-07-04 Grace Sainsbury <graces@redhat.com>
3512 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3513 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3515 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3516 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3517 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3518 (RETVAL_REGNUM): Move macros from tm-mcore.h
3519 (mcore_reg_struct_has_addr): New function.
3520 (mcore_gdbarch_init): Added initializations for the macros removed
3523 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3525 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3526 traditonal string branding within the ELF header.
3528 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3530 * symtab.c (remove_params): New function.
3531 (make_symbol_overload_list): Use it instead of cplus_demangle.
3532 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3534 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3536 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3538 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3540 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3541 and tdep->sigtramp_end.
3542 * i386obsd-nat.c: New file.
3543 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3545 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3546 Don't call get_current_frame().
3548 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3550 * i386-nat.c (child_post_startup_inferior): New function
3551 calling i386_cleanup_dregs if
3552 I386_USE_GENERIC_WATCHPOINTS is defined.
3553 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3554 conditional to acknowledge that i386-nat.c has its
3555 own child_post_startup_inferior function.
3557 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3559 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3560 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3561 instead of MAX_REGISTER_RAW_SIZE.
3562 (i386_extract_return_value, i386_extract_struct_value_address):
3563 Convert to use regcache.
3564 (i386_gdbarch_init): Set max_register_raw_size and
3565 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3566 Set extract_return_value and extract_struct_value_address instead
3567 of their deprecated variants.
3569 Convert i386 target to generic dummy frames.
3570 * i386-tdep.c: Include "symfile.h".
3571 (i386_frameless_signal_p): Consider a function to be frameless if
3572 the pc points at the first instruction of the function.
3573 (i386_frame_chain): Handle (generic) call dummies.
3574 (i386_frame_saved_pc): Likewise.
3575 (i386_frame_init_saved_regs): Remove code dealing with call
3576 dummies on the stack.
3577 (i386_push_dummy_frame): Removed.
3578 (i386_call_dummy_words): Removed.
3579 (i386_fix_call_dummy): Removed.
3580 (i386_push_return_address): New function.
3581 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3582 parameter, and don't call get_current_frame.
3583 (i386_pop_frame): New function.
3584 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3585 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3586 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3587 call_dummy_length to 0, set call_dummy_words to NULL, set
3588 sizeof_call_dummy_words to 0, set fix_call_dummy to
3589 generic_fix_call_dummy, set pc_in_call_dummy to
3590 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3591 generic_push_dummy_frame, set push_return_address to
3592 i386_push_return_address and set frame_chain_valid to
3593 generic_file_frame_chain_valid.
3595 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3597 * gdbarch.sh (struct regcache): Add opaque declaration.
3598 (EXTRACT_RETURN_VALUE): New architecture method.
3599 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3600 * gdbarch.h, gdbarch.c: Regenerate.
3601 * arch-utils.c (legacy_extract_return_value): New function.
3602 * arch-utils.h (legacy_extract_return_value): Declare.
3603 * values.c (value_being_returned): Re-enable code handling
3604 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3605 deprecated_grub_regcache_for_registers call to block handling
3606 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3607 (EXTRACT_RETURN_VALUE): Do not define.
3609 2002-07-03 Grace Sainsbury <graces@redhat.com>
3611 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3612 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3613 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3614 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3615 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3616 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3617 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3618 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3619 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3620 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3621 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3622 argument so the function fits the prototype in the architecture
3624 (mcore_pop_frame): Remove argument so the function fits the
3625 prototype. Use get_current_frame instead of the argument.
3626 (mcore_push_arguments): Change type of struct_return so the
3627 function can be used in the architecture vector.
3628 (mcore_store_struct_return): Add.
3629 (mcore_frame_init_saved_regs): Add.
3630 (mcore_gdbarch_init): Add function calls to replace the macros
3631 removed from tm-mcore.h
3633 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3635 * infcmd.c (print_return_value): Remove compatibility code calling
3636 deprecated_grub_regcache_for_registers.
3638 * values.c: Include "regcache.h".
3639 (value_being_returned): Update. Use
3640 deprecated_grub_regcache_for_registers to extract the register
3642 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3643 ``struct regcache''.
3644 * Makefile.in (values.o): Add dependency on $(regcache_h).
3646 * inferior.h (run_stack_dummy): Change type of second parameter to
3647 a ``struct regcache''.
3648 * valops.c (hand_function_call): Change type of retbuf to ``struct
3649 regcache''. Allocate using regcache_xmalloc, clean using
3650 make_cleanup_regcache_xfree.
3651 * infcmd.c (run_stack_dummy): Update. Use
3652 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3654 * regcache.c (do_regcache_xfree): New function.
3655 (make_cleanup_regcache_xfree): New function.
3656 * regcache.h (make_cleanup_regcache_xfree): Declare.
3658 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3660 * event-top.c (command_line_handler): Don't read past
3661 beginning of buffer.
3663 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3665 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3667 (varobj_create): Store frame_id for root.
3668 (varobj_gen_name): Use xasprintf.
3669 (varobj_update): Save and restore frame using get_frame_id() and
3671 (create_child): Use xasprintf.
3672 (new_root_variable): Initialize frame_id.
3673 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3674 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3675 to prevent memory leak.
3677 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3679 * valops.c (hand_function_call): Move declaration of retbuf to
3680 start of function, allocate using malloc, add a cleanup but before
3681 the inf_status cleanup, cleanup the buffer. Rename local variable
3682 old_chain to inf_status_cleanup.
3684 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3686 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3688 * cli/cli-decode.c (cmd_func_p): New function.
3689 (cmd_func): New function.
3691 * command.h: Add cmd_func() and cmd_func_p().
3693 2002-07-03 Grace Sainsbury <graces@redhat.com>
3695 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3696 (REGISTER_SIZE): Remove.
3697 (MAX_REGISTER_RAW_SIZE): Remove.
3698 (REGISTER_VIRTUAL_TYPE): Remove.
3699 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3700 (REGISTER_NAME): Remove.
3701 (USE_GENERIC_DUMMY_FRAMES): Remove.
3702 (CALL_DUMMY): Remove.
3703 (CALL_DUMMY_START_OFFSET): Remove.
3704 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3705 (CALL_DUMMY_LOCATION): Remove.
3706 (FIX_CALL_DUMMY): Remove.
3707 (CALL_DUMMY_ADDRESS): Remove.
3708 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3709 (SAVE_DUMMY_FRAME_TOS): Remove.
3710 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3711 (mcore_register_virtual_type): New function.
3712 (mcore_register_byte): New function.
3713 (mcore_register_size): New function.
3714 (mcore_register_name): New function.
3715 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3716 macros removed from tm-mcore.h.
3717 (mcore_dump_tdep): Add.
3718 (_initialize_mcore_tdep): Add gdbarch_register call.
3720 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3722 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3723 frameless_look_for_prologue, such that we actually call this
3726 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3728 * frame.h (frame_address_in_block): New function.
3730 * blockframe.c (frame_address_in_block): New function extracted
3731 from get_frame_block().
3732 (get_frame_block): Use frame_address_in_block().
3733 (block_innermost_frame): Use frame_address_in_block() to match
3734 the frame pc address against the block boundaries rather than
3735 the frame pc directly. This prevents a failure when a frame pc
3736 is actually a return-address pointing immediately after the end
3739 2002-07-02 Grace Sainsbury <graces@redhat.com>
3741 * MAINTAINERS: Add self under write after approval.
3743 2002-07-02 Grace Sainsbury <graces@redhat.com>
3745 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3746 used in architecture vector. The default is
3747 m68k_local_breakpoint_from_pc.
3748 (m68k_local_breakpoint_from_pc): Add.
3749 (enum): Add register numbers from tm-m68k.h.
3750 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3752 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3753 GDB_MULTI_ARCH_PARTIAL.
3754 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3755 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3757 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3758 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3759 to enum in m68k-tdep.c
3761 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3763 * solib-osf.c (open_map): Compute the list of shared libraries
3764 loaded by the inferior, rather than the list of libraries loaded
3765 by GDB itself. Otherwise, GDB ends up reading the symbols from
3766 the wrong shared libraries...
3768 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3770 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3771 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3773 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3775 (FRAMELESS_SIGNAL): Remove function.
3776 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3777 i386_linux_saved_pc_after_call): Removed.
3778 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3779 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3780 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3782 * i386-tdep.c (i386_frameless_signal_p): New function.
3783 (i386_frame_chain): Deal with frameless signals.
3784 (i386_sigtramp_saved_sp): New function.
3785 (i386_frame_saved_pc): Deal with frameless signals.
3786 (i386_saved_pc_after_call): Make sure the correct value is
3787 returned just after entry into a sigtramp.
3788 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3789 i386fbsd4_sc_sp_offset): New variables.
3790 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3791 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3792 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3793 similiar to what we already did for sc_pc_offset.
3794 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3797 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3799 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3801 * config/i386/tm-x86-64linux.h: New.
3802 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3804 * config/i386/nm-x86-64.h: Rename to ...
3805 * config/i386/nm-x86-64linux.h: ... this one.
3806 * config/i386/x86-64linux.mh: Reflect the above change.
3808 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3810 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3811 with sigcontext_addr. Add sc_sp_offset.
3812 (i386bsd_sigtramp_saved_pc): Remove prototype.
3813 (i386bsd_sicontext_addr): Add prototype.
3814 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3815 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3816 (i386_svr4_sigtramp_saved_pc): Removed.
3817 (i386_svr4_sigcontext_addr): New function.
3818 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3819 Initialize tdep->sigcontext_addr instead. Initialize
3820 tdep->sc_pc_offset and tdep->sc_sp_offset.
3821 (i386_gdbarch_init): Likewise.
3822 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3824 (i386bsd_sigtramp_saved_pc): Remove function.
3825 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3826 Initialize tdep->sigcontext_addr instead. Initialize
3828 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3829 of tdep->sigtramp_saved_pc.
3830 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3831 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3834 * i386-tdep.c (i386_frameless_function_invocation,
3835 i386_frame_num_args, i386_frame_init_saved_regs,
3836 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3837 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3838 i386_extract_return_value, i386_store_return_value,
3839 i386_extract_struct_value_address, i386_register_virtual_type,
3840 i386_register_convertible, i386_register_convert_to_virtual,
3841 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3842 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3845 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3847 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3849 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3850 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3851 this macro. Include "value.h".
3853 2002-06-30 Aidan Skinner <aidan@velvet.net>
3855 * ada-exp.tab.c: remove as it's a generated file
3856 * ada-lex.c: remove as it's a generated file
3858 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3860 * config/i386/tm-i386.h (struct frame_info, struct
3861 frame_saved_regs, struct value, struct type): Remove forward
3864 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3865 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3866 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3867 (FILL_FPXREGSET): Define.
3869 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3871 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3872 i[3456]86-*-netbsd* case.
3873 * config/i386/tm-obsd.h: Removed.
3874 * config/i386/obsd.mt: Removed.
3875 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3877 (MH_CFLAGS): Add -DYYDEBUG=0.
3879 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3880 i386nbsd_sc_pc_offset on OpenBSD too.
3882 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3883 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3884 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3886 * i386bsd-tdep.c: Include "arch-utils.h".
3887 (i386bsd_aout_in_solib_call_trampoline): New function.
3888 (i386bsd_init_abi): Set in_solib_call_trampoline to
3889 i386bsd_aout_in_solib_call_trampoline.
3890 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3891 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3893 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3895 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3896 (struct obstack, struct bcache): Add opaque declarations.
3897 * Makefile.in (macrotab_h): Update
3899 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3901 * blockframe.c (generic_find_dummy_frame): Change return type to
3902 ``struct regcache''.
3903 (struct dummy_frame): Replace field ``registers'' with regcache, a
3904 struct regcache object.
3905 (generic_find_dummy_frame): Update.
3906 (generic_push_dummy_frame): Update. Use regcache_xfree,
3907 regcache_xmalloc and regcache_cpy.
3908 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3910 (deprecated_generic_find_dummy_frame): Update.
3911 (generic_read_register_dummy): Update. Use
3912 regcache_read_as_address.
3913 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3914 (generic_get_saved_register): Update. Use regcache_read.
3916 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3918 * Makefile.in (objfiles_h): Add $(bcache_h).
3919 * objfiles.h: Include "bcache.h".
3921 * Makefile.in (symtab_h): Remove $(bcache_h).
3922 * symtab.h: Do not include "bcache.h".
3924 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3926 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3927 generic_func_frame_chain_valid.
3929 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3931 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3932 * config/i386/tm-fbsd.h: Likewise.
3934 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3936 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3937 generic_unwind_get_saved_register.
3939 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3941 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3942 * regcache.c (supply_register): Add missing argument to
3943 register_buffer call.
3945 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3947 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3948 Solaris /bin/grep does not not like it. From Peter Schauer.
3950 2002-06-26 Tom Tromey <tromey@redhat.com>
3952 * command.h (add_setshow_cmd): Declare.
3953 (add_setshow_cmd_full): Declare.
3954 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3955 returns void. Use add_setshow_cmd_full.
3956 (add_setshow_cmd_full): New function.
3957 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3958 (add_setshow_boolean_cmd): Likewise.
3960 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3962 * config/vax/tm-vax.h: Protect from multiple inclusion.
3963 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3964 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3965 * config/vax/tm-vaxbsd.h: ...here. New file.
3966 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3968 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3970 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3971 (BELIEVE_PCC_PROMOTION): Remove.
3972 (AP_REGNUM): Move to...
3973 * config/vax/nm-vax.h: ...here.
3974 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3975 (vax_breakpoint_from_pc): New function.
3976 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3977 and gdbarch_believe_pcc_promotion.
3979 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3981 * Makefile.in (vax_tdep_h): Define.
3982 (vax-tdep.o): Use $(vax_tdep_h).
3983 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3984 (vax_dump_tdep): New function.
3985 (_initialize_vax_tdep): Register vax_dump_tdep.
3986 * vax-tdep.h: Include osabi.h.
3987 (struct gdbarch_tdep): New.
3989 2002-06-26 Andrew Cagney <cagney@redhat.com>
3991 * frame.h (deprecated_generic_find_dummy_frame): Rename
3992 generic_find_dummy_frame.
3993 * blockframe.c (generic_find_dummy_frame): Make static.
3994 (deprecated_generic_find_dummy_frame): New function.
3995 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3996 generic_find_dummy_frame with deprecated_find_dummy_frame.
3997 (sh64_nofp_frame_init_saved_regs): Ditto.
3998 (sh_fp_frame_init_saved_regs): Ditto.
3999 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4000 (s390_frame_chain): Ditto.
4001 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4003 2002-06-26 Grace Sainsbury <graces@redhat.com>
4005 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4006 gdbarch vector are at the top.
4008 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4009 (FRAME_ARGS_ADDRESS): Remove.
4010 (FRAME_LOCALS_ADDRESS): Remove.
4011 (FRAME_NUM_ARGS): Remove.
4012 (FRAME_ARGS_SKIP): Remove.
4013 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4014 (m68k_gdbarch_init): Add gdbarch initializations for macros
4015 undefined in tm-m68k.h
4017 2002-06-26 Grace Sainsbury <graces@redhat.com>
4019 * monitor.h: Add the function regname to monitor_ops
4020 structure. This way NUM_REGS does not have to be a constant.
4021 * monitor.c (monitor_fetch_register): Added support for regname
4022 function. The function is called if the array regnames is NULL.
4023 (monitor_store_register): Same.
4024 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4026 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4027 cpu32bug_cmds.regname to point to new function.
4028 * abug-rom.c (abug_regname): Same as above.
4029 (init_abug_cmds): Same.
4030 * dbug-rom.c (dbug_regname): Same as above.
4031 (init_dbug_cmds): Same.
4032 * remote-est.c (est_regname): Same.
4033 (init_est_cmds): Same.
4034 * rom68k-rom.c (rom68k_regname): Same.
4035 (init_rom68k_cmds): Same.
4037 2002-06-25 Tom Tromey <tromey@redhat.com>
4039 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4041 2002-06-25 Andrew Cagney <cagney@redhat.com>
4043 * infrun.c (stop_registers): Change variable's type to ``struct
4045 (xmalloc_inferior_status): Delete function.
4046 (free_inferior_status): Delete function.
4047 (normal_stop): Use regcache_cpy.
4048 (struct inferior_status): Change type of fields ``stop_registers''
4049 and ``registers'' to ``struct regcache''.
4050 (write_inferior_status_register): Use regcache_write.
4051 (save_inferior_status): Instead of calling
4052 xmalloc_inferior_status, allocate the inf_status buffer directly.
4053 Use regcache_dup_no_passthrough and regcache_dup to save the
4055 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4056 Replace the stop_registers regcache instead of overriding it. Use
4057 regcache_xfree. Instead of calling free_inferior_status, xfree
4058 the buffer directly.
4059 (discard_inferior_status): Use regcache_xfree. Instead of calling
4060 free_inferior_status, xfree the buffer directly.
4061 (build_infrun): Use regcache_xmalloc.
4062 (_initialize_infrun): Delete redundant call to build_infrun.
4064 * Makefile.in (infcmd.o): Add $(regcache_h).
4066 * infcmd.c: Include "regcache.h".
4067 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4068 obtain the address of `stop_registers' register buffer.
4069 (print_return_value): Ditto.
4071 * inferior.h (struct regcache): Add opaque declaration.
4072 (stop_registers): Change variable's declared type to ``struct
4075 2002-06-24 Tom Tromey <tromey@redhat.com>
4077 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4078 * target.c (initialize_targets): Fixed typo in
4079 trust-readonly-sections `show' documentation.
4081 * main.c: Marked all strings with _().
4083 2002-06-24 Don Howard <dhoward@redhat.com>
4085 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4086 that means max CORE_ADDR+1.
4087 (lookup_mem_region): Ditto.
4088 (mem_info_command): Ditto.
4090 2002-06-24 Grace Sainsbury <graces@redhat.com>
4092 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4093 (REGISTER_BYTES_OK): Remove.
4094 (REGISTER_BYTES): Remove.
4095 (STORE_STRUCT_RETURN): Remove.
4096 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4097 (STORE_RETURN_VALUE): Remove.
4098 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4099 (FRAME_CHAIN): Remove.
4100 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4101 (FRAME_SAVED_PC): Remove.
4102 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4103 (m68k_store_struct_return): Add.
4104 (m68k_deprecated_extract_return_value): Add.
4105 (m68k_deprecated_extract_struct_value_address): Add.
4106 (m68k_store_return_value): Add.
4107 (m68k_frame_chain): Add.
4108 (m68k_frameless_function_invocation): Add.
4109 (m68k_frame_saved_pc): Add.
4110 (m68k_gdbarch_init): added set_gdbarch calls for new
4111 functions and deleted macros.
4113 2002-06-23 Tom Tromey <tromey@redhat.com>
4115 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4116 (ALLDEPFILES): Likewise.
4117 (udiheaders): Removed.
4118 (udip2soc.o): Likewise.
4119 (udi2go32.o): Likewise.
4121 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4123 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4125 * infrun.c (_initialize_infrun): Delete unnecessary call to
4128 * regcache.h: Update comments describing the regcache_cpy family
4130 (regcache_save, regcache_restore): Delete declaration.
4131 (regcache_save_no_passthrough): Delete declaration.
4132 (regcache_restore_no_passthrough): Delete declaration.
4133 * regcache.c (regcache_save): Delete function.
4134 (regcache_save_no_passthrough): Delete function.
4135 (regcache_restore): Delete function.
4136 (regcache_restore_no_passthrough): Delete function.
4138 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4140 * config/m68k/tm-m68k.h: Fix typo.
4141 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4142 (m68k_frame_init_saved_regs): Declare.
4144 2002-06-21 Jim Blandy <jimb@redhat.com>
4146 Remove some vestiges of Harris 88k support.
4147 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4148 register numbering quirk.
4149 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4150 odd symbols occurring in Harris 88k ELF targets.
4152 2002-06-21 Tom Tromey <tromey@redhat.com>
4154 * gdb_locale.h: New file.
4155 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4156 (defs_h): Added gdb_locale.h.
4157 * configure, config.in: Rebuilt.
4158 * configure.in (PACKAGE): Define.
4159 * defs.h: Include gdb_locale.h.
4160 * main.c (captured_main): Call setlocale, bindtextdomain,
4163 2002-06-21 Dave Brolley <brolley@redhat.com>
4165 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4166 * config/frv/frv.mt: New file.
4167 * config/frv/tm-frv.h: New file.
4168 * configure.tgt: Support frv-*-*.
4169 * Makefile.in (frv-tdep.o): New target.
4170 * frv-tdep.c: New file.
4171 * NEWS: Mention frv.
4173 2002-06-21 Dave Brolley <brolley@redhat.com>
4175 * MAINTAINERS: Add self to "Write After Approval" list.
4177 2002-06-21 Grace Sainsbury <graces@redhat.com>
4179 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4180 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4181 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4182 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4183 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4185 * m68k-tdep.c: Include arch-utils.h
4186 (m68k_register_raw_size): Add.
4187 (m68k_register_virtual_size): Add.
4188 (m68k_register_virtual_type): Add.
4189 (m68k_register_name): Add.
4190 (m68k_stack_align): Add.
4191 (m68k_register_byte): Add.
4192 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4195 2002-06-21 Grace Sainsbury <graces@redhat.com>
4197 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4198 m68k_find_saved_regs.
4199 (m68k_pop_frame): Removed saved_regs structure, and replaced
4200 references to it with frame->saved_regs.
4201 (m68k_gdbarch_init): Added function calls to initialize the
4203 (m68k_fix_call_dummy): Add.
4204 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4205 (CALL_DUMMY): Remove.
4206 (CALL_DUMMY_LENGTH): Remove.
4207 (CALL_DUMMY_START_OFFSET): Remove.
4208 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4209 (FIX_CALL_DUMMY): Remove.
4210 (PUSH_DUMMY_FRAME): Remove.
4211 (POP_FRAME): Remove.
4213 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4215 * parse.c (parse_fprintf): New function used to avoid calls to
4216 fprintf in bison parser generated debug code.
4217 * parser-defs.h: Declaration of new parse_fprintf function.
4218 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4219 Set YYDEBUG to 1 by default.
4220 Set YYFPRINTF as parse_fprintf.
4222 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4224 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4226 (pointer_encoding, enum ptr_encoding): New.
4227 (execute_cfa_program): Take care about pointer encoding.
4228 (dwarf2_build_frame_info): Only call parse_frame_info for
4229 .debug_frame and .eh_frame.
4230 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4231 fixed augmentation handling, added relative addressing,
4232 ignore duplicate FDEs. Added comments.
4233 * dwarf2cfi.c: Reindented.
4235 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4237 * event-top.c (command_handler): Don't use space_at_cmd_start
4238 unless there is sbrk() on the host. Assign time and space data
4239 to union fields of the appropriate length.
4241 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4243 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4244 x86_64_register_name. Return type changed to 'const char *'.
4245 (x86_64_register_name2nr): Rename to x86_64_register_number.
4246 (x86_64_gdbarch_init): Update to reflect the change.
4247 * x86-64-tdep.h: Ditto.
4248 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4249 (supply_fpregset): Ditto.
4251 2002-06-19 Andrew Cagney <cagney@redhat.com>
4253 * regcache.h: Update copyright.
4254 (struct regcache, struct gdbarch): Add opaque declarations.
4255 (current_regcache): Declare global variable.
4256 (regcache_read, regcache_write): Add gdbarch parameter.
4257 (regcache_save, regcache_save_no_passthrough)
4258 (regcache_restore, regcache_restore_no_passthrough)
4259 (regcache_dup, regcache_dup_no_passthrough)
4260 (regcache_cpy, regcache_cpy_no_passthrough)
4261 (deprecated_grub_regcache_for_registers)
4262 (deprecated_grub_regcache_for_register_valid)
4263 (regcache_valid_p): Add function declarations.
4265 * regcache.c: Update copyright.
4266 (regcache_descr_handle): New global variable.
4267 (struct regcache_descr): Define.
4268 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4269 (regcache_descr, xfree_regcache_descr): New functions.
4270 (struct regcache): Define.
4271 (regcache_xmalloc, regcache_xfree): New functions.
4272 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4273 (regcache_dup, regcache_dup_no_passthrough): New functions.
4274 (regcache_valid_p, regcache_read_as_address): New functions.
4275 (deprecated_grub_regcache_for_registers): New function.
4276 (deprecated_grub_regcache_for_register_valid): New function.
4277 (current_regcache): New global variable.
4278 (register_buffer): Add regcache parameter. Update calls.
4279 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4280 (read_register_gen, write_register_gen): Update register_buffer
4281 call. Test for legacy_p instead of gdbarch_register_read_p or
4282 gdbarch_register_write_p.
4283 (regcache_collect): Update register_buffer call.
4284 (build_regcache): Rewrite. Use deprecated grub functions.
4285 (regcache_save, regcache_save_no_passthrough): New functions.
4286 (regcache_restore, regcache_restore_no_passthrough): New
4288 (_initialize_regcache): Create the regcache_data_handle. Swap
4289 current_regcache global variable.
4291 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4292 parameter to regcache_read and regcache_write calls.
4293 (sh4_register_read): Ditto.
4294 (sh64_pseudo_register_read): Ditto.
4295 (sh64_register_read): Ditto.
4296 (sh_pseudo_register_write): Ditto.
4297 (sh4_register_write): Ditto.
4298 (sh64_pseudo_register_write): Ditto.
4299 (sh64_register_write): Ditto.
4301 * defs.h (XCALLOC): Define.
4303 2002-06-19 Grace Sainsbury <graces@redhat.com>
4305 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4306 * m68k-tdep.c (m68k_gdbarch_init): Added.
4307 (m68k_dump_tdep): Added.
4309 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4311 * ada-lang.c (fill_in_ada_prototype): Update comment.
4313 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4315 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4317 (mips_abi_string, mips_abi_strings): New.
4318 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4319 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4320 tdep->mips_abi_string. Honor mips_abi_string. Default to
4321 O32 if no ABI is found.
4322 (mips_dump_tdep): Use mips_abi_strings.
4323 (mips_abi_update): New function.
4324 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4325 ``set mips abi'' and ``show mips abi''. Check the size of
4328 2002-06-19 Andrew Cagney <cagney@redhat.com>
4330 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4333 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4335 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4336 current frame using only the first stack size adjustment. All
4337 subsequent size adjustments are not considered to be part of
4338 the "static" part of the current frame.
4339 Compute the address of the saved registers relative to the
4340 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4341 in use in this frame.
4343 2002-06-18 Don Howard <dhoward@redhat.com>
4345 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4346 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4347 suggesting this solution.
4349 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4351 * config/romp/xm-rtbsd.h: Delete file.
4352 * config/romp/rtbsd.mh: Delete file.
4354 2002-06-18 Keith Seitz <keiths@redhat.com>
4356 * breakpoint.c (condition_command): Post breakpoint_modify
4357 when a condition is added to an existing breakpoint.
4358 (commands_command): Likewise for commands.
4359 (set_ignore_count): Likewise for ignore counts.
4360 If no tty, do not simply return, still need to send event
4362 (ignore_command): Only print a newline if the command came
4364 Don't call breakpoints_changed, since this is now properly
4365 handled by set_ignore_count.
4367 2002-06-18 Andrew Cagney <cagney@redhat.com>
4369 * MAINTAINERS: Note that cris-elf target can be compiled with
4371 * cris-tdep.c (cris_register_name): Make return type constant.
4372 (cris_breakpoint_from_pc): Ditto.
4374 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4376 * frame.h (struct frame_info): Change type of context to
4379 2002-06-17 Andrew Cagney <cagney@redhat.com>
4381 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4383 * gdbarch.h, gdbarch.c: Regenerate.
4384 * config/mips/tm-mips.h (mips_register_name): Update.
4385 * i386-tdep.h (i386_register_name): Update.
4386 * mips-tdep.c (mips_register_name): Update
4387 * alpha-tdep.c (alpha_register_name): Update.
4388 * arch-utils.c (legacy_register_name): Update.
4389 * arch-utils.h (legacy_register_name): Update.
4390 * avr-tdep.c (avr_register_name): Update.
4391 * ia64-tdep.c (ia64_register_name): Update.
4392 * i386-tdep.c (i386_register_name): Update.
4393 * sparc-tdep.c (sparc32_register_name): Update.
4394 (sparc64_register_name): Update.
4395 (sparclite_register_name): Update.
4396 (sparclet_register_name): Update.
4397 * sh-tdep.c (sh_generic_register_name): Update.
4398 (sh_sh_register_name): Update.
4399 (sh_sh3_register_name): Update.
4400 (sh_sh3e_register_name): Update.
4401 (sh_sh_dsp_register_name): Update.
4402 (sh_sh3_dsp_register_name): Update.
4403 (sh_sh4_register_name): Update.
4404 (sh_sh64_register_name): Update.
4405 * s390-tdep.c (s390_register_name): Update.
4406 * rs6000-tdep.c (rs6000_register_name): Update.
4407 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4408 (ns32k_register_name_32382): Update.
4409 * d10v-tdep.c (d10v_ts2_register_name): Update.
4410 (d10v_ts3_register_name): Update.
4411 * xstormy16-tdep.c (xstormy16_register_name): Update.
4412 * vax-tdep.c (vax_register_name): Update.
4413 * v850-tdep.c (v850_register_name): Update.
4414 * m68hc11-tdep.c (m68hc11_register_name): Update.
4415 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4416 (am33_register_name): Update.
4418 2002-06-17 Grace Sainsbury <graces@redhat.com>
4420 * m68k-tdep.c: Reindented.
4422 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4424 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4425 list of predefined types.
4427 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4429 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4430 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4431 REGISTER_CONVERT_TO_RAW): Remove defines.
4432 (i386_register_virtual_type, i386_register_convertible,
4433 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4435 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4436 macros mentioned above.
4438 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4439 (i386lynx_saved_pc_after_call): Remove prototype.
4440 * i386ly-tdep.c: Include "i386-tdep.h".
4441 (i386lynx_saved_pc_after_call): Make static. Use
4442 read_memory_nobpt instead of read_memory. Use
4443 read_memory_unsigned_integer instead of read_memory_integer.
4444 (i386lynx_init_abi): New function.
4445 (i386lynx_coff_osabi_sniffer): New function.
4446 (_initialize_i386bsd_tdep): New function.
4448 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4449 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4450 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4451 (i386_fix_call_dummy): Remove prototype.
4452 * i386-tdep.c (i386_call_dummy_words): New variable.
4453 (i386_gdbarch_init): Adjust for removal of the
4454 macros mentioned above.
4456 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4458 * command.h (add_setshow_auto_boolean_cmd): Replace
4459 add_set_auto_boolean_cmd.
4460 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4461 add_set_auto_boolean_cmd.
4462 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4463 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4464 mask-address'' command.
4465 (show_mask_address): Add cmd parameter.
4466 * remote.c (add_packet_config_cmd): Update. Change type of
4467 set_func and show_func to cmd_sfunc_ftype.
4468 (_initialize_remote): Update `set remote Z-packet'
4469 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4470 (show_remote_protocol_e_packet_cmd): Ditto.
4471 (show_remote_protocol_E_packet_cmd): Ditto.
4472 (show_remote_protocol_P_packet_cmd): Ditto.
4473 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4474 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4475 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4476 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4477 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4478 (show_remote_protocol_Z_packet_cmd): Ditto.
4479 (show_remote_protocol_binary_download_cmd): Ditto.
4480 (show_remote_cmd): Pass NULL to all of above.
4482 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4484 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4485 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4486 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4487 POP_FRAME): Remove defines.
4488 (i386_push_arguments, i386_store_struct_return,
4489 i386_extract_return_value, i386_store_return_value,
4490 i386_extract_struct_value_address, i386_push_dummy_frame,
4491 i386_pop_frame): Renove prototypes.
4492 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4493 macros mentioned above.
4495 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4497 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4498 add_set_boolean_cmd.
4499 (add_setshow_cmd): New function.
4500 * command.h (add_setshow_boolean_cmd): Replace
4501 add_set_boolean_cmd.
4502 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4503 and ``set rdiromatzero''.
4504 * maint.c (_initialize_maint_cmds): Update commented out code.
4505 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4506 * target.c (initialize_targets): Update `set
4507 trust-readonly-sections'.
4508 * remote.c (_initialize_remote): Update `set remotebreak'.
4510 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4512 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4513 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4514 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4515 fit into multi-arch framework.
4516 (i386_breakpoint_from_pc): New function.
4517 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4520 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4521 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4522 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4523 (i386_frameless_function_invocation, i386_frame_num_args,
4524 i386_frame_init_saved_regs): Remove prototypes.
4525 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4526 macros mentioned above.
4528 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4530 * cli/cli-decode.c (set_cmd_cfunc): Update.
4531 (set_cmd_sfunc): Update.
4532 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4533 (set_cmd_sfunc, set_cmd_cfunc): Update.
4534 * cli/cli-decode.h: Update.
4536 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4538 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4539 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4541 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4543 * defs.h (auto_boolean): Declare enum.
4544 * command.h (cmd_auto_boolean): Delete enum.
4545 * mips-tdep.c (mask_address_var): Update.
4546 (mips_mask_address_p): Update.
4547 (show_mask_address): Update.
4548 * remote.c (struct packet_config): Update.
4549 (update_packet_config): Update.
4550 (show_packet_config_cmd): Update.
4551 (packet_ok): Update.
4552 (add_packet_config_cmd): Update.
4553 (_initialize_remote):
4554 * command.h: Update.
4555 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4556 (do_setshow_command): Update.
4557 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4558 * cli/cli-decode.h: Update.
4560 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4562 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4563 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4564 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4565 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4566 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4567 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4569 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4570 list of DJGPP COFF targets.
4572 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4573 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4574 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4575 (FP0_REGNUM): Remove define.
4576 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4577 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4578 (i386_register_virtual_size): Remove protoype.
4579 * i386-tdep.c (i386_register_virtual_size): Removed.
4580 (i386_extract_return_value, i386_store_return_value): Use
4581 FP0_REGNUM instead of NUM_FREGS to determine whether the
4582 floating-point registers are available.
4583 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4584 Adjust for removal of macros mentioned above.
4586 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4588 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4590 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4592 (supply_gregset, fill_gregset): Remove use of register keyword and
4593 remove declaration for regmap. Use I386_NUM_GREGS instead of
4594 NUM_REGS and NUM_FREGS.
4595 (FPREGSET_FSAVE_OFFSET): Remove.
4596 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4597 NUM_FREGS to determine whether the floating-point registers are
4600 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4601 gnu_store_registers): Replace usage of NUM_GREGS with
4604 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4605 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4606 usage of NUM_GREGS with I386_NUM_GREGS.
4608 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4610 * i386bsd-nat.c: Include "i386-tdep.h".
4611 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4614 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4615 and associated comment. They no longer make any sense, since we
4616 don't use this file anymore on Linux.
4618 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4619 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4620 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4621 elements in these arrays.
4622 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4625 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4627 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4628 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4630 2002-06-14 Andrew Cagney <cagney@redhat.com>
4632 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4633 EXTRACT_RETURN_VALUE.
4634 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4635 EXTRACT_STRUCT_VALUE_ADDRESS.
4636 * gdbarch.h, gdbarch.c: Regenerate.
4638 * values.c (value_being_returned): Handle
4639 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4640 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4642 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4643 * arm-tdep.c (arm_gdbarch_init): Update.
4644 * avr-tdep.c (avr_gdbarch_init): Update.
4645 * cris-tdep.c (cris_gdbarch_init): Update.
4646 * d10v-tdep.c (d10v_gdbarch_init): Update.
4647 * ia64-tdep.c (ia64_gdbarch_init): Update.
4648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4649 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4650 * s390-tdep.c (s390_gdbarch_init): Update.
4651 * sh-tdep.c (sh_gdbarch_init): Update.
4652 * s390-tdep.c (s390_gdbarch_init): Update.
4653 * sparc-tdep.c (sparc_gdbarch_init): Update.
4654 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4655 * v850-tdep.c (v850_gdbarch_init): Update.
4656 * vax-tdep.c (vax_gdbarch_init): Update.
4657 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4660 * config/arc/tm-arc.h: Update.
4661 * config/d30v/tm-d30v.h: Update.
4662 * config/fr30/tm-fr30.h: Update.
4663 * config/h8300/tm-h8300.h: Update.
4664 * config/h8500/tm-h8500.h: Update.
4665 * config/i386/tm-i386.h: Update.
4666 * config/i386/tm-ptx.h: Update.
4667 * config/i386/tm-symmetry.h: Update.
4668 * config/i960/tm-i960.h: Update.
4669 * config/m32r/tm-m32r.h: Update.
4670 * config/m68k/tm-delta68.h: Update.
4671 * config/m68k/tm-linux.h: Update.
4672 * config/m68k/tm-m68k.h: Update.
4673 * config/m88k/tm-m88k.h: Update.
4674 * config/mcore/tm-mcore.h: Update.
4675 * config/mips/tm-mips.h: Update.
4676 * config/mn10200/tm-mn10200.h: Update.
4677 * config/pa/tm-hppa.h: Update.
4678 * config/pa/tm-hppa64.h: Update.
4679 * config/sparc/tm-sp64.h: Update.
4680 * config/sparc/tm-sparc.h: Update.
4681 * config/sparc/tm-sparclet.h: Update.
4682 * config/z8k/tm-z8k.h: Update.
4684 2002-06-14 Andrew Cagney <cagney@redhat.com>
4686 * Makefile.in (i386_linux_tdep_h): Define.
4687 (i386_tdep_h, i387_tdep_h): Define.
4688 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4689 $(i386_tdep_h) and $(i387_tdep_h).
4690 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4692 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4694 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4695 Already covered by the default.
4697 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4698 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4699 (i386_gdbarch_init): Initialize long_double_format and long_double
4702 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4703 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4705 * config/i386/i386sol2.mh: ... here.
4706 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4707 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4708 (SIGCONTEXT_PC_OFFSET): Remove define.
4709 (IN_SIGTRAMP): Remove define.
4710 * i386-sol2-tdep.c: New file.
4712 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4713 * config/i386/tm-i386nw.h: Removed.
4715 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4716 USE_STRUCT_CONVENTION): Remove defines.
4717 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4718 (get_longjmp_target): Remove prototype.
4719 (IN_SIGTRAMP): Remove define.
4720 (i386bsd_in_sigtramp): Remove prototype.
4721 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4722 function. Update comment accordingly
4723 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4724 (FRAME_SAVED_PC): Remove define.
4725 (i386bsd_frame_saved_pc): Remove prototype.
4726 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4727 GET_LONGJMP_TARGET): Remove defines.
4728 (get_longjmp_target): Remove prototype.
4729 (IN_SIGTRAMP): Remove define.
4730 (i386bsd_in_sigtramp): Remove prototype.
4731 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4732 function. Update comment accordingly
4733 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4734 (FRAME_SAVED_PC): Remove define.
4735 (i386bsd_frame_saved_pc): Remove prototype.
4736 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4738 (USE_STRUCT_CONVENTION): Remove prototype.
4739 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4741 (_initialize_i386bsd_nat): Revise logic to determine some
4742 constants at compile time when compiling a native GDB. Warn if
4743 things don't match up with what we expect.
4744 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4746 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4747 to use date stored in `struct gdbarch_tdep'.
4748 (i386bsd_sigcontext_offset): Remove varaible.
4749 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4750 stored in `struct gdbarch_tdep'.
4751 (i386bsd_frame_saved_pc): Make static.
4752 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4753 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4754 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4755 i386fbsd4_sc_pc_offset): New variables.
4756 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4757 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4759 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4761 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4762 Modify the value of i386fbsd_sigtramp_start and
4763 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4764 i386fbsd_sigtramp_end.
4765 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4768 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4769 define to i386-linux-tdep.h.
4770 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4771 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4773 (i386_linux_register_name, i386_linux_register_byte,
4774 i386_linux_register_raw_size): Remove prototypes.
4775 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4776 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4777 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4778 TARGET_WRITE_PC): Remove defines.
4779 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4780 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4781 i386_linux_write_pc): Remove prototypes.
4782 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4783 (get_longjmp_target): Remove prototype.
4784 * i386-linux-tdep.h: New file.
4785 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4786 * i386-linux-tdep.c: Include "i386-tdep.h" and
4787 "i386-linux-tdep.h".
4788 (i386_linux_register_name, i386_linux_register_byte,
4789 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4790 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4792 (i386_linux_init_abi): New function.
4793 (_initialize_i386_linux_tdep): New function.
4795 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4796 (i386_saved_pc_after_call): Remove prototype.
4797 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4798 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4799 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4800 (i386_register_name, i386_stab_reg_to_regnum,
4801 i386_dwarf_reg_to_regnum): Remove prototypes.
4802 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4803 SIZEOF_SSE_REGS): Remove defines.
4804 (REGISTER_BYTES): Remove define.
4805 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4806 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4807 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4808 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4809 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4810 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4811 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4812 (get_longjmp_target): Remove prototype.
4813 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4814 (sigtramp_saved_pc): Remove define.
4815 (i386v4_sigtramp_saved_pc): Remove prototype.
4816 * config/i386/tm-go32.h (FRAME_CHAIN,
4817 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4818 (i386go32_frame_saved_pc): Remove prototype.
4819 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4820 (get_longjmp_target): Remove prototype.
4821 * i386-tdep.h: Include "osabi.h".
4822 (enum i386_abi): Removed.
4823 (enum struct_return): New enum.
4824 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4825 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4826 sc_pc_offset members.
4827 (i386_gdbarch_register_os_abi): Remove prototype.
4828 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4829 I386_SSE_NUM_REGS): New defines.
4830 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4831 I386_SSE_SIZEOF_REGS): New defines.
4832 (i386_register_name, i386_register_byte, i386_register_raw_size):
4834 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4835 (i386bsd_sigtramp_saved_pc): New prototype.
4836 * i386-tdep.c: Don't include "elf-bfd.h".
4837 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4838 i386_frame_chain, i386_saved_pc_after_call): Make static.
4839 (i386_frame_saved_pc): Rewrite to call architecture dependent
4840 function to deal with signal handlers. Make static.
4841 (i386go32_frame_saved_pc): Removed.
4842 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4844 (i386_get_longjmp_target): New function.
4845 (default_struct_convention, pcc_struct_convention,
4846 reg_struct_convention, valid_conventions, struct_convention): New
4848 (i386_use_struct_convention): New function.
4849 (i386v4_sigtramp_saved_pc): Renamed to
4850 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4851 (i386_pc_in_sigtramp): New function.
4852 (i386_abi_names): Removed.
4853 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4854 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4856 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4857 i386_gdbarch_register_os_abi): Removed.
4858 (struct i386_abi_handler): Removed.
4859 (i386_abi_handler_list): Removed.
4860 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4862 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4863 i386_nw_init_abi): New functions.
4864 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4865 Use set_gdbarch_xxx() calls instead of relying on macros for a
4867 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4868 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4869 Register the various architecture variants defined in this file.
4871 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4873 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4874 (struct main_type): Remove arg_types member. Update comments for
4876 (TYPE_ARG_TYPES): Remove.
4877 (TYPE_FN_FIELD_ARGS): Update.
4878 (smash_to_method_type): Update prototype.
4880 * c-typeprint.c (cp_type_print_method_args): Take method type
4881 instead of argument list. Use new argument layout. Simplify.
4882 (c_type_print_args): Use new argument layout. Simplify.
4883 (c_type_print_base): Update call to cp_type_print_method_args.
4884 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4885 argument; use die->type instead. Update call to
4886 smash_to_method_type.
4887 (read_structure_scope): Update call to dwarf2_add_member_fn.
4888 * gdbtypes.c (allocate_stub_method): Update comment.
4889 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4890 Use new argument layout.
4891 (check_stub_method): Use new argument layout. Don't count
4892 void as an argument.
4893 (print_arg_types): Update comments. Use new argument layout.
4894 (recursive_dump_type): Don't print arg_types member.
4895 * hpread.c (hpread_read_struct_type): Use new argument layout.
4896 (fixup_class_method_type): Likewise.
4897 (hpread_type_lookup): Likewise.
4898 * stabsread.c (read_type): Update calls to read_args and
4899 smash_to_method_type.
4900 (read_args): Use new argument layout. Simplify.
4901 * valops.c (typecmp): Use new argument layout. Update parameters
4902 and comments. Simplify.
4903 (hand_function_call): Use new argument layout.
4904 (search_struct_method): Update call to typecmp.
4905 (find_overload_match): Use new argument layout.
4907 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4909 * NEWS: Mention multithreaded debug support for gdbserver.
4911 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4913 * MAINTAINERS: Mention NEWS.
4915 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4917 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4918 (struct mips_objfile_private, compare_pdr_entries): New.
4919 (non_heuristic_proc_desc): Read the ".pdr" section if it
4922 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4924 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4925 (arm_debug): New static variable.
4926 (_initialize_arm_tdep): Add ``set debug arm'' command.
4928 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4930 * Makefile.in (sim_arm_h): Define.
4931 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4932 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4933 (arm_register_sim_regno): New function, map an internal REGNUM
4934 onto a simulator register number.
4935 (arm_gdbarch_init): Set register_sim_regno.
4937 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4939 * MAINTAINERS: Add self.
4941 2002-06-11 Jim Blandy <jimb@redhat.com>
4943 * source.c (source_info): Mention whether the symtab has
4944 information about preprocessor macros.
4946 Call the command `info macro', not `show macro'.
4947 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4949 (_initialize_macrocmd): Register `info_macro_command' in
4950 `infolist', not `showlist'.
4952 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4954 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4955 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4956 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4957 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4958 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4960 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4961 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4962 (_initialize_mips_tdep): Remove dead code.
4963 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4964 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4965 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4966 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4967 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4968 MIPS_LAST_FP_ARG_REGNUM): Remove.
4970 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4972 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4973 (unwind_tmp_obstack_free, parse_frame_info)
4974 (update_context, cfi_read_fp, cfi_write_fp)
4975 (cfi_frame_chain, cfi_init_extra_frame_info)
4976 (cfi_virtual_frame_pointer): Use the above function.
4977 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4979 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4981 * v850-tdep.c (v850_type_is_scalar): New function.
4982 (v850_use_struct_convention): Match current gcc implementation
4983 as close as possible.
4984 (v850_push_arguments): Fix stack_offset handling. Don't write
4985 struct_addr into register. This is done by v850_store_struct_return.
4986 (v850_extract_return_value): Care for structs.
4987 (v850_store_return_value): Ditto.
4988 (v850_store_struct_return): Actually write address.
4990 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4992 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4993 without debug information too.
4995 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4997 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4998 Make multi-arch pure.
4999 * gdbarch.h, gdbarch.c: Re-generate.
5000 * arm-tdep.c (arm_print_float_info): Update.
5001 * arch-utils.h (default_print_float_info): Update.
5002 * arch-utils.c (default_print_float_info): Update.
5003 * infcmd.c (float_info): Update call.
5005 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5007 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5008 the front of the initialize list.
5010 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5012 * infrun.c (struct inferior_status): Replace fields
5013 selected_frame_address and selected_level with field
5015 (save_inferior_status): Update. Use get_frame_id.
5016 (struct restore_selected_frame_args): Delete.
5017 (restore_selected_frame): Update. Use frame_find_by_id.
5018 (restore_inferior_status): Update.
5020 * breakpoint.h (struct breakpoint): Change type of
5021 watchpoint_frame to frame_id.
5022 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5023 call to get_current_frame.
5024 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5026 (watchpoint_check): Use frame_find_by_id.
5028 * frame.h (record_selected_frame): Delete declaration.
5029 * stack.c (record_selected_frame): Delete function.
5031 * frame.h (struct frame_id): Define.
5032 (get_frame_id): Declare.
5033 (frame_find_by_id): Declare.
5034 * frame.c (frame_find_by_id): New function.
5035 (get_frame_id): New function.
5037 2002-06-10 Andrey Volkov <avolkov@transas.com>
5039 * ser-e7kpc.c: Fix duplicated define and call of
5040 _initialize_ser_e7000pc
5042 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5044 * signals/signals.c (target_signal_from_host): Fix #ifdef
5046 (do_target_signal_to_host): Likewise.
5048 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5050 * mips-tdep.c (mips_find_abi_section): New function.
5051 (mips_gdbarch_init): Call it.
5053 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5055 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5056 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5057 after Andrew's 2002-06-08 gdbarch change.
5059 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5061 * i386-linux-nat.c (suppy_gregset): Don't supply
5062 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5064 (fill_gregset): Don't fetch it under the same circumstances.
5066 2002-06-09 Andrew Cagney <cagney@redhat.com>
5068 * Makefile.in (callback_h): Define.
5069 (remote_sim_h): Update path to remote-sim.h.
5070 (remote-rdp.o): Add $(callback_h).
5071 (remote-sim.o): Use $(callback_h).
5072 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5073 * remote-rdp.c: Include "gdb/callback.h".
5075 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5077 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5078 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5080 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5082 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5083 * rdi-share/serpardr.c: Ditto.
5084 * rdi-share/unixcomm.c: Ditto.
5085 * rdi-share/serdrv.c: Ditto.
5086 * rdi-share/hostchan.h: Ditto.
5087 * rdi-share/hostchan.c: Ditto.
5088 * rdi-share/host.h: Ditto.
5089 * rdi-share/devsw.c: Ditto.
5091 * objfiles.h: Change type of obj_private to void pointer.
5092 * pa64solib.c: Update copyright. Don't include "assert.h", use
5093 strcmp instead of STREQ, use LONGEST, do not use PTR
5094 * somsolib.c: Ditto.
5096 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5097 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5098 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5100 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5102 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5103 (default_get_saved_register): Delete function.
5104 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5105 generic_unwind_get_saved_register.
5106 * gdbarch.h, gdbarch.c: Re-generate.
5108 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5110 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5111 generic_func_frame_chain_valid.
5112 * gdbarch.h, gdbarch.c: Re-generate.
5113 * blockframe.c (generic_func_frame_chain_valid): Only check
5114 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5115 passing FP to PC_IN_CALL_DUMMY.
5118 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5120 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5121 (register_gdbarch_data): Initialize init_p.
5122 (gdbarch_data): Initialize data pointer using the init function.
5123 (init_gdbarch_data): Delete function.
5124 (gdbarch_update_p): Update.
5125 (initialize_non_multiarch): Update.
5126 (struct gdbarch): Add field initialized_p.
5127 * gdbarch.h, gdbarch.c: Re-generate.
5129 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5131 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5132 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5133 better do the things actually here.
5134 * x86-64-tdep.c (x86_64_register_name2nr): New.
5135 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5136 (x86_64_gdbarch_init): Respect the above change.
5137 * x86-64-tdep.h (x86_64_register_name2nr)
5138 (x86_64_register_nr2name): Add prototypes.
5139 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5141 2002-06-06 Michael Snyder <msnyder@redhat.com>
5143 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5144 Delete extra braces and re-indent.
5145 (d10v_store_return_value): Char return values
5146 must be shifted over by one byte in R0.
5147 (d10v_extract_return_value): Delete extra braces, re-indent.
5149 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5151 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5152 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5153 (d10v_integer_to_address): Rewrite.
5154 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5155 the d10v specific functions which take care of converting to the
5158 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5160 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5161 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5163 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5165 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5167 * config/tm-linux.h: Ditto.
5168 * config/alpha/tm-alphalinux.h: Ditto.
5169 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5170 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5171 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5172 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5173 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5174 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5175 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5176 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5177 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5178 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5179 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5180 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5181 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5182 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5183 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5184 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5185 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5186 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5187 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5188 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5189 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5190 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5191 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5192 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5193 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5194 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5195 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5196 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5197 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5198 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5199 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5200 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5201 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5202 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5203 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5204 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5205 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5207 2002-05-04 Aidan Skinner <aidan@velvet.net>
5209 * ada-exp.tab.c: New file
5210 * ada-exp.y: New file
5211 * ada-lang.c: New file
5212 * ada-lang.h: New file
5213 * ada-lex.c: New file
5214 * ada-lex.l: New file
5215 * ada-tasks.c: New file
5216 * ada-typeprint.c: New file
5217 * ada-valprint.c: New file
5219 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5221 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5222 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5224 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5226 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5227 insetead of ppc-linux-tdep.o.
5228 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5229 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5231 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5233 2002-05-07 Christian Groessler <chris@groessler.org>
5234 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5235 bit register contents for little endian hosts.
5237 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5239 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5242 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5244 * gdbarch.h: Regenerate.
5246 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5248 * MAINTAINERS: Add everyone to write-after-approval list.
5250 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5252 * stack.c (frame_info): Use frame_register_unwind instead of
5253 saved_regs. Mention when the SP is on the stack or in a register.
5255 * frame.h (frame_register_unwind_ftype): Define. Document.
5256 (struct frame_info): Add field register_unwind and
5257 register_unwind_cache.
5258 (frame_register_unwind): Declare.
5259 (generic_unwind_get_saved_register): Declare.
5261 * frame.c (frame_register_unwind): New function.
5262 (generic_unwind_get_saved_register): New function.
5264 * blockframe.c (generic_call_dummy_register_unwind): New function.
5265 (frame_saved_regs_register_unwind): New function.
5266 (set_unwind_by_pc): New function.
5267 (create_new_frame): New function.
5268 (get_prev_frame): New function.
5270 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5272 * a29k-share/: Delete directory.
5273 * remote-vx29k.c: Delete file.
5275 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5277 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5278 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5280 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5282 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5283 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5286 (sparcnbsd-tdep.o): New dependency lists.
5287 * NEWS: Note new UltraSPARC NetBSD native configuration.
5288 * configure.host (sparc64-*-netbsd*): New host.
5289 * configure.tgt (sparc-*-netbsdelf*)
5290 (sparc-*-netbsd*): Set gdb_target to nbsd.
5291 (sparc64-*-netbsd*): New target.
5292 * sparc64nbsd-nat.c: New file.
5293 * sparcnbsd-nat.c: New file.
5294 * sparcnbsd-tdep.c: New file.
5295 * sparcnbsd-tdep.h: New file.
5296 * config/sparc/nbsd.mt: New file.
5297 * config/sparc/nbsd64.mh: New file.
5298 * config/sparc/nbsd64.mt: New file.
5299 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5300 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5302 * config/sparc/nbsdaout.mt: Remove.
5303 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5304 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5306 * config/sparc/nbsdelf.mt: Remove.
5307 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5308 sparc-nat.c compatiblity defines.
5309 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5310 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5311 * config/sparc/tm-nbsd64.h: New file.
5312 * config/sparc/tm-nbsdaout.h: Remove.
5313 * config/sparc/xm-nbsd.h: Remove.
5315 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5317 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5318 * sparc-tdep.c: Include osabi.h.
5319 (gdbarch_tdep): Add osabi member.
5320 (_initialize_sparc_tdep): Use gdbarch_register.
5321 (sparc_gdbarch_init): Use generic OS ABI framework.
5322 (sparc_dump_tdep): New function.
5324 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5326 * corefile.c (do_captured_read_memory_integer): Return non-zero
5328 (safe_read_memory_integer): Copy result of memory read when
5329 status is non-zero. Also, add comments.
5331 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5333 * Makefile.in (ppc_tdep_h): Define.
5336 (rs6000-tdep.o): Use $(ppc_tdep_h).
5339 (ppcnbsd-tdep.o): New dependency lists.
5340 * ppc-tdep.h: Use generic OS ABI framework.
5341 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5342 (ppc_linux_init_abi): New functions.
5343 (ppc_sysv_abi_broken_use_struct_convention)
5344 (ppc_sysv_abi_use_struct_convention)
5345 (ppc_sysv_abi_push_arguments): Move to...
5346 * ppc-sysv-tdep.c: ...here.
5347 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5348 * rs6000-tdep.c (process_note_abi_tag_sections)
5349 (get_elfosabi): Remove.
5350 (rs6000_gdbarch_init): Use generic OS ABI framework.
5351 (rs6000_dump_tdep): New function.
5352 (_initialize_rs6000_tdep): Use gdbarch_register.
5353 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5354 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5355 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5356 of ppc-linux-tdep.o.
5357 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5358 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5359 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5360 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5361 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5362 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5364 2002-05-29 Jim Blandy <jimb@redhat.com>
5366 * macroscope.c (default_macro_scope): Put `void' in empty argument
5369 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5371 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5372 * arch-utils.c: Include "sim-regno.h".
5373 * gdbarch.sh: Don't include "sim-regno.h".
5374 * gdbarch.h, gdbarch.c: Regenerate.
5375 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5377 * arch-utils.h (legacy_register_sim_regno): To here.
5378 * remote-sim.c (legacy_register_sim_regno): Move function from
5380 * arch-utils.c (legacy_register_sim_regno): To here.
5382 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5384 * sim-regno.h: New file.
5385 * Makefile.in (sim_regno_h): Define.
5386 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5387 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5388 (legacy_register_sim_regno): New function.
5389 (one2one_register_sim_regno): New function.
5390 (gdbsim_fetch_register): Rewrite.
5391 (gdbsim_store_register): Only store a register when
5392 REGISTER_SIM_REGNO is valid.
5393 * d10v-tdep.c: Include "sim-regno.h".
5394 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5395 (d10v_ts3_register_sim_regno): Ditto.
5396 * gdbarch.sh: Include "sim-regno.h".
5397 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5398 * gdbarch.h, gdbarch.c: Regenerate.
5399 * arch-utils.h (default_register_sim_regno): Delete declaration.
5400 * arch-utils.c (default_register_sim_regno): Delete function.
5402 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5404 * ppcnbsd-nat.c: Rewrite.
5405 * ppcnbsd-tdep.c: New file.
5406 * ppcnbsd-tdep.h: New file.
5407 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5408 solib.o, and solib-svr4.o.
5409 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5410 nbsd-tdep.o, and corelow.o.
5412 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5414 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5415 `tr' and `sed'. Mention that `broken' targets are not expected to
5418 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5420 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5421 Let PC point right after the prologue before looking up symbols.
5423 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5425 * i386-tdep.c (i386_register_virtual_type): Return
5426 builtin_type_vec128i for SSE registers.
5428 * gdbtypes.h (builtin_type_vec128i): Declare.
5430 * gdbtypes.c (build_builtin_type_vec128i): New function.
5431 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5432 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5433 (build_gdbtypes): Initialize new builtin vector types.
5434 (_initialize_gdbtypes): Register new vector types with gdbarch.
5436 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5438 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5439 since it has been multi-arch'd.
5440 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5441 Move Alpha and VAX multi-arch news entries to same section
5442 as other multi-arch news.
5444 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5446 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5447 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5448 static. Rename some register numbers to put them in ns32k-tdep
5450 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5451 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5453 (_initialize_ns32k_tdep): Use gdbarch_register.
5454 * ns32k-tdep.h: New file.
5455 * ns32knbsd-tdep.c: New file.
5456 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5457 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5458 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5459 REGISTER_BYTES, REGISTER_BYTE): Remove.
5460 * config/ns32k/tm-ns32k.h: New file.
5461 * config/ns32k/tm-umax.h: Remove.
5463 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5465 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5466 ns32k_store_struct_return, ns32k_extract_return_value,
5467 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5469 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5470 ns32k_saved_pc_after_call.
5471 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5472 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5473 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5474 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5475 ns32k_extract_struct_value_address.
5477 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5479 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5480 ns32k_fix_call_dummy): New.
5481 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5482 ns32k_call_dummy_words.
5483 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5484 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5485 CALL_DUMMY_NARGS): Remove.
5486 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5488 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5490 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5491 ns32k_frame_saved_pc, ns32k_frame_args_address,
5492 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5493 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5494 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5495 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5496 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5497 (BREAKPOINT): Remove..
5498 (FRAME_CHAIN): Define as ns32k_frame_chain.
5499 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5500 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5501 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5502 (FRAME_FIND_SAVED_REGS): Remove.
5503 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5504 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5505 (POP_FRAME): Define as ns32k_pop_frame.
5507 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5509 * ns32k-tdep.c (ns32k_register_byte_32082,
5510 ns32k_register_byte_32382, ns32k_register_raw_size,
5511 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5513 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5514 ns32k_register_byte_32382.
5515 * config/ns32k/tm-umax.h: Update copyright years.
5516 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5517 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5518 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5519 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5520 (ns32k_get_enter_addr): Fix prototype.
5522 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5524 * ns32k-tdep.c: Update copyright years.
5525 (ns32k_register_name_32082): New function.
5526 (ns32k_register_name_32382): Ditto.
5527 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5528 (REGISTER_NAME): Define as ns32k_register_name_32382.
5529 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5530 (REGISTER_NAME): Define as ns32k_register_name_32082.
5532 2002-05-24 Jim Blandy <jimb@redhat.com>
5534 * dwarf2read.c (free_line_header): Use xfree, not free.
5536 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5538 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5539 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5541 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5543 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5545 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5547 From Ross Alexander at NEC Europe:
5548 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5550 2002-05-23 Michael Snyder <msnyder@redhat.com>
5552 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5553 for input, rather than parse_and_eval_address.
5555 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5557 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5558 * Makefile.in (sim_d10v_h): Update definition.
5560 2002-05-24 Andrew Cagney <cagney@redhat.com>
5562 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5563 change `2002-05-22 Michael Snyder' below.
5564 (d10v_push_arguments): Ditto.
5565 (d10v_extract_return_value): Ditto.
5567 2002-05-23 Jim Blandy <jimb@redhat.com>
5569 * macrotab.c (check_for_redefinition): Don't complain if the new
5570 definition is the same as the previous one. Take more arguments
5571 to allow the comparison.
5572 (macro_define_object, macro_define_function): Pass more arguments
5573 to check_for_redefinition.
5575 2002-05-22 Michael Snyder <msnyder@redhat.com>
5577 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5578 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5579 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5580 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5581 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5582 Add a temp variable to save a call (and a memory read).
5583 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5584 if possible (so that PC_IN_CALL_DUMMY will work).
5586 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5588 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5590 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5592 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5594 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5595 (dwarf2_build_frame_info): Add offset to fde->initial_location
5596 so that frames of shared libraries are mapped correctly.
5597 (execute_stack_op): Change type of 'result' from ULONGEST to
5600 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5602 * config/alpha/tm-nbsd.h: Include solib.h.
5604 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5606 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5607 assumptions about the host's byte order.
5609 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5611 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5613 * alphanbsd-tdep.c: Include solib-svr4.h.
5614 * shnbsd-tdep.c: Ditto.
5616 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5618 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5619 nbsd-tdep.h to dependency list.
5620 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5621 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5622 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5623 nbsdaout.mh and nbsdelf.mh consistently.
5624 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5625 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5626 nbsdaout.mt and nbsdelf.mh consistently.
5627 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5628 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5629 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5630 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5631 a.out shared library stuff from here...
5632 * config/nm-nbsdaout.h: ...to here.
5633 * config/tm-nbsd.h: Remove.
5634 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5635 * config/arm/nbsd.mh: Remove.
5636 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5638 * config/arm/nbsdaout.mh: New file.
5639 * config/arm/nbsdelf.mh: New file.
5640 * config/arm/nm-nbsdaout.h: New file.
5641 * config/i386/nbsd.mh: Remove.
5642 * config/i386/nbsd.mt: Remove.
5643 * config/i386/nbsdaout.mh: New file.
5644 * config/i386/nbsdaout.mt: New file.
5645 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5646 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5647 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5648 i386_register_u_addr): Remove.
5649 * config/i386/nm-nbsdaout.h: New file.
5650 * config/i386/nm-nbsdelf.h: Remove.
5651 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5652 (USE_STRUCT_CONVENTION): Remove.
5653 * config/i386/tm-nbsdaout.h: New file.
5654 * config/i386/tm-nbsdelf.h: Remove.
5655 * config/m68k/nbsd.mh: Remove.
5656 * config/m68k/nbsd.mt: Remove.
5657 * config/m68k/nbsdaout.mh: New file.
5658 * config/m68k/nbsdaout.mt: New file.
5659 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5660 * config/m68k/nm-nbsdaout.h: New file.
5661 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5662 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5663 * config/ns32k/nbsd.mh: Remove.
5664 * config/ns32k/nbsd.mt: Remove.
5665 * config/ns32k/nbsdaout.mh: New file.
5666 * config/ns32k/nbsdaout.mt: New file.
5667 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5668 * config/ns32k/nm-nbsdaout.h: New file.
5669 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5670 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5671 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5672 (SVR4_SHARED_LIBS): Remove.
5673 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5674 * config/sparc/nbsd.mh: Remove.
5675 * config/sparc/nbsd.mt: Remove.
5676 * config/sparc/nbsdaout.mh: New file.
5677 * config/sparc/nbsdaout.mt: New file.
5678 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5679 * config/sparc/nbsdelf.mt: New file.
5680 * config/sparc/nm-nbsdaout.h: New file.
5681 * config/sparc/nm-nbsdelf.h: Remove.
5682 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5683 * config/sparc/tm-nbsdaout.h: New file.
5685 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5687 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5689 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5691 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5693 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5695 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5697 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5699 * NEWS: Note new MIPS NetBSD native configuration.
5700 * configure.host (mips*-*-netbsd*): New host.
5701 * configure.tgt (mips*-*-netbsd*): New target.
5702 * mipsnbsd-nat.c: New file.
5703 * mipsnbsd-tdep.c: New file.
5704 * mipsnbsd-tdep.h: New file.
5705 * config/mips/nbsd.mh: New file.
5706 * config/mips/nbsd.mt: New file.
5707 * config/mips/nm-nbsd.h: New file.
5708 * config/mips/tm-nbsd.h: New file.
5710 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5712 * Makefile.in (SFILES): Add osabi.c.
5713 (COMMON_OBS): Add osabi.o.
5714 (osabi.o): New dependency list.
5715 * osabi.c: New file.
5716 * osabi.h: New file.
5717 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5719 * Makefile.in (alpha_tdep_h): Define and use instead of
5721 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5722 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5724 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5725 * alpha-tdep.h: Include osabi.h.
5726 (alpha_abi): Remove.
5727 (gdbarch_tdep): Use generic OS ABI framework.
5728 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5729 gdbarch_register_osabi.
5730 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5731 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5732 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5734 * Makefile.in (sh_tdep_h): Add osabi.h.
5735 * sh-tdep.h (sh_osabi): Remove.
5736 (gdbarch_tdep): Use generic OS ABI framework.
5737 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5738 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5739 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5740 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5742 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5743 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5744 gdbarch_register_osabi.
5745 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5746 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5747 (get_elfosabi): Rename to...
5748 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5749 ABI framework support routines.
5750 (arm_gdbarch_init): Use generic OS ABI framework.
5751 (arm_dump_tdep): Likewise.
5752 (_initialize_arm_tdep): Likewise.
5753 * arm-tdep.h: Include osabi.h.
5755 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5757 (arm_gdbarch_register_os_abi): Remove prototype.
5758 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5759 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5761 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5762 * mips-tdep.c: Include osabi.h.
5763 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5766 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5768 * h8300-tdep.c: Fix formatting.
5770 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5772 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5773 printing vector registers.
5775 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5777 From Fernando Nasser:
5778 * remote.c (remote_async_open_1): Re-throw the exception when the
5780 (remote_cisco_open): Ditto.
5781 (remote_open_1): Ditto.
5783 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5785 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5786 (remote_start_remote): Add uiout parameter. Pass through to
5787 remote_start_remote_dummy.
5788 (remote_open_1): Use catch_exception instead of catch_errors.
5789 (remote_async_open_1): Ditto.
5790 (remote_cisco_open): Ditto.
5792 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5794 * remote.c (remote_start_remote): Replace PTR with void pointer.
5795 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5798 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5800 * gdb_indent.sh: Allow the script to be run in the sim directory.
5802 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5804 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5805 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5807 * corelow.c (core_open): Only call set_gdbarch_from_file if
5810 2002-05-17 Andrey Volkov <avolkov@transas.com>
5812 * h8300-tdep.c: Add support of EXR register
5813 * config/h8300/tm-h8300.h: Ditto.
5815 2002-05-17 Andrey Volkov <avolkov@transas.com>
5817 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5819 2002-05-17 Andrey Volkov <avolkov@transas.com>
5821 * h8300-tdep.c: Change literal regnums to REGNO.
5823 2002-05-17 Jim Blandy <jimb@redhat.com>
5825 * NEWS: Note addition of macro support.
5827 Expand preprocessor macros in C expressions.
5828 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5829 (scan_macro_expansion, scanning_macro_expansion,
5830 finished_macro_expansion): New function declarations.
5831 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5832 variable declarations.
5833 * parser-defs.h (expression_context_pc): New declaration.
5834 * parse.c (expression_context_pc): New variable.
5835 (parse_exp_1): Set expression_context_pc, as well as
5836 expression_context_block.
5837 * c-exp.y (yylex): If we're not already reading the result of a
5838 macro expansion, try to macro-expand the next token. When we're
5839 done scanning a macro expansion, switch back to the mainline text.
5840 Commas and `if's in a macro's expansion don't terminate the input.
5841 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5842 (macro_original_text, macro_expanded_text,
5843 expression_macro_lookup_func, expression_macro_lookup_baton): New
5845 (scan_macro_expansion, scanning_macro_expansion,
5846 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5847 c_preprocess_and_parse): New functions.
5848 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5849 c_preprocess_and_parse, instead of c_parse.
5850 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5851 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5853 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5855 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5856 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5857 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5859 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5861 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5863 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5865 * Makefile.in (sh_tdep_h): Define and use.
5866 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5867 register enum): Move to...
5868 * * sh-tdep.h: ...here.
5869 * sh-tdep.c: Include sh-tdep.h.
5870 * sh3-rom.c: Likewise.
5871 * shnbsd-tdep.c: Likewise.
5873 2002-05-16 Michael Snyder <msnyder@redhat.com>
5875 * arm-tdep.c: Spelling fix in comment.
5877 2002-05-16 Jim Blandy <jimb@redhat.com>
5879 Add commands for manually expanding macros and showing their
5881 * macrocmd.c, macroscope.c, macroscope.h: New files.
5882 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5883 (macroscope_h): New variable.
5884 (HFILES_NO_SRCDIR): Add macroscope.h.
5885 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5886 (macroscope.o, macrocmd.o): New rules.
5888 Teach the Dwarf 2 reader to read macro information.
5889 * dwarf2read.c: #include "macrotab.h".
5890 (dwarf_macinfo_buffer): New variable.
5891 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5893 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5894 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5895 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5896 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5897 dwarf2_macro_spaces_in_definition): New complaints.
5898 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5899 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5900 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5901 the partial symbol table.
5902 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5903 from what's recorded in the partial symbol table.
5904 (read_file_scope): If the compilation unit has a
5905 `DW_AT_macro_info' attribute, read its macro information.
5906 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5908 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5911 * ser-tcp.c: Don't include <netinet/udp.h>.
5913 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5915 * MAINTAINERS: Update my email address.
5917 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5919 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5920 include file of the same name.
5922 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5924 * configure.tgt: Mark v850 as multi-arched.
5925 * config/v850/tm-v850.h: Remove file.
5926 * config/v850/v850.mt: Eliminate TM_FILE.
5928 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5930 * v850-tdep.c: Full multi-arch.
5931 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5932 Define GDB_MULTI_ARCH to 2.
5934 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5936 * p-exp.y (current_type): New static variable.
5937 Carries the type of the expression at the position that is parsed.
5938 (push_current_type, pop_current_type): Two new functions. Used
5939 to store/restore current_type in expression on specific tokens.
5940 (search_field): New static variable. Set to one after parsing a point
5941 as at that point only a FIELDNAME token should be searched.
5942 (FIELDNAME): New token. After a point only a token belonging to
5943 current_type type definition is allowed.
5944 (all over token rules): reset and change current_type according
5946 (exp '[' rule): insert implicit array index field if
5947 exp is a pascal string type.
5949 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5951 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5952 frame info. Use frame_info's saved_regs instead of matching member
5953 in extra_frame_info throughout.
5954 (v850_frame_init_saved_regs): New function.
5955 (v850_init_extra_frame_info): Move most functionality into
5956 v850_frame_init_saved_regs().
5957 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5958 (v850_frame_find_saved_regs): Remove declaration.
5959 (FRAME_FIND_SAVED_REGS): Remove definition.
5960 (v850_frame_init_saved_regs): Add declaration.
5961 (FRAME_INIT_SAVED_REGS): Add definition.
5963 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5965 * v850-tdep.c: Begin multi-arch'ing v850.
5966 (v850_target_architecture_hook): Remove function.
5967 (v850_gdbarch_init): New function. Add code previously in
5968 v850_target_architecture_hook().
5969 (_initialize_v850_tdep): Don't set target_architecture_hook.
5970 Call register_gdbarch_init() instead.
5972 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5974 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5975 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5976 (fixup_class_method_type): Likewise.
5978 2002-05-15 Jim Blandy <jimb@redhat.com>
5980 Add macro structures to GDB's symbol tables. Nobody puts anything
5982 * symtab.h (struct symtab): New member: `macro_table'.
5983 * buildsym.h (pending_macros): New global variable.
5984 * buildsym.c: #include "macrotab.h".
5985 (buildsym_init): Initialize `pending_macros'.
5986 (end_symtab): If we found macro information while reading a CU's
5987 debugging info, do build a symtab structure for it. Make the
5988 symtab point to the macro information, and clear the
5989 `pending_macros' pointer which held it while we were reading the
5991 (really_free_pendings): Free any pending macro table.
5992 * objfiles.h (struct objfile): New member: `macro_cache'.
5993 * objfiles.c (allocate_objfile): Set allocate and free functions
5994 for the macro cache's objstack.
5995 (free_objfile): Empty the macro cache's obstack.
5996 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5997 set new allocate and free functions for it.
5998 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5999 free functions for the macro cache's objstack. (Why is this
6000 function building its own objfile?)
6001 * symmisc.c (print_objfile_statistics): Print statistics on the
6003 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6005 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6007 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6008 (REGISTER_U_ADDR): Delete definition.
6009 (arm_register_u_addr): Delete declaration.
6011 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6013 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6014 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6016 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6018 * regcache.c (register_valid): Revise comments refering to "Not
6019 available" and "unavailable".
6020 * frame.c (frame_register_read): Ditto.
6021 * findvar.c (value_of_register): Ditto.
6023 2002-05-15 Andrew Cagney <cagney@redhat.com>
6025 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6026 (remote-sim.o): Update dependencies.
6027 (d10v-tdep.o): Specify dependencies.
6028 (sim_d10v_h): Define.
6030 2002-05-14 Jim Blandy <jimb@redhat.com>
6032 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6033 * macrotab.c (macro_lookup_inclusion, find_definition,
6034 new_macro_table): Same.
6036 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6037 not `! strcmp ()'. This is a dubious improvement.
6038 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6040 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6041 although it's not necessary, to avoid a warning.
6043 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6045 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6046 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6047 TYPE_INSTANCE_FLAGS.
6048 (struct main_type): New.
6049 (struct type): Move most members to struct main_type. Change
6050 cv_type and as_type to new type_chain member. Add instance_flags.
6051 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6052 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6053 (finish_cv_type): Remove prototype.
6054 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6056 (alloc_type_instance): New function.
6057 (smash_type): New function.
6058 (make_pointer_type, make_reference_type, make_function_type)
6059 (smash_to_member_type, smash_to_method_type): Call smash_type.
6060 (make_qualified_type): New function.
6061 (make_type_with_address_space): Call make_qualified_type.
6062 (make_cv_type): Likewise.
6063 (finish_cv_type): Remove unnecessary function.
6064 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6065 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6066 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6067 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6068 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6069 * hpread.c (hpread_read_struct_type): Likewise.
6070 * stabsread.c (read_struct_type): Likewise.
6072 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6074 * configure.tgt: Add a catch all sh* target, for cases like
6075 sh[2,3,4]-elf and sh-hms.
6077 2002-05-14 Keith Seitz <keiths@redhat.com>
6079 * event-loop.c (create_file_handler): Don't do anything but
6080 update data when we are given a fd which we are already
6083 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6085 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6086 (update_context): Use __func__ in warnings.
6088 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6090 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6091 and tcp_close to net_open and net_close.
6092 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6093 using UDP if requested. Don't try to disable Nagle on UDP
6095 * remote.c (remote_serial_open): New function. Warn about UDP.
6096 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6098 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6100 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6102 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6104 * configure.tgt: Remove sh-hms target.
6105 * MAINTAINERS: Don't list sh-hms as a separate target.
6107 2002-05-13 Jim Blandy <jimb@redhat.com>
6109 Add first preprocessor macro-expansion files.
6110 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6111 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6112 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6113 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6114 (COMMON_OBS): Add macrotab.o, macroexp.o.
6115 (macroexp.o, macrotab.o): New rules.
6117 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6119 * config/m88k/tm-m88k.h: Update copyright.
6120 (m88k_target_write_pc): Declare
6121 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6122 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6123 (SHIFT_INST_REGS): Update definition.
6124 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6125 using old definition of TARGET_WRITE_PC.
6126 * regcache.c (generic_target_write_pc): Delete code handling
6128 * gdbarch.sh (NNPC_REGNUM): Delete.
6129 * gdbarch.h, gdbarch.c: Regenerate.
6131 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6133 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6136 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6138 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6139 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6140 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6142 * c-typeprint.c (cp_type_print_method_args): Likewise.
6143 (c_type_print_args): Likewise.
6144 * d10v-tdep.c (d10v_push_arguments): Likewise.
6145 (d10v_extract_return_value): Likewise.
6146 * expprint.c (print_subexp): Likewise.
6147 * gdbtypes.c (lookup_primitive_typename): Likewise.
6148 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6149 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6150 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6151 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6152 (TYPE_VECTOR): Likewise.
6153 * hpread.c (hpread_read_struct_type)
6154 (fix_static_member_physnames, fixup_class_method_type)
6155 (hpread_type_lookup): Likewise.
6156 * mdebugread.c (parse_symbol, parse_type): Likewise.
6157 * p-lang.c (is_pascal_string_type): Likewise.
6158 * valops.c (hand_function_call): Likewise.
6159 * x86-64-tdep.c (classify_argument): Likewise.
6161 * hpread.c (hpread_read_function_type)
6162 (hpread_read_doc_function_type): Call replace_type.
6163 * dstread.c (create_new_type): Delete.
6164 (decode_dst_structure, process_dst_function): Call alloc_type.
6165 Use type access macros.
6167 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6169 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6170 the're not supported by the current architecture.
6171 (i387_fill_fxsave): Likewise.
6173 2002-05-12 Fred Fish <fnf@redhat.com>
6175 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6176 sect_index_xxx members to index the first slot in section_offsets
6177 if all of the section_offsets are zero.
6179 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6181 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6182 checked in with last change.
6184 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6186 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6187 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6190 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6192 * Makefile.in: Update dependencies.
6194 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6196 * language.c (local_hex_string_custom): Simplify. Do not depend
6197 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6199 * memattr.c (mem_info_command): Replace calls to
6200 longest_local_hex_string and longest_local_hex_string_custom.
6201 * buildsym.c (make_blockvector): Ditto.
6202 * solib.c (info_sharedlibrary_command): Ditto.
6203 * tracepoint.c (tracepoints_info): Ditto.
6204 * symtab.c (print_msymbol_info): Ditto.
6206 * language.c (local_hex_string): Delete.
6207 (local_hex_string_custom): Delete.
6208 (longest_local_hex_string): Rename to local_hex_string.
6209 (longest_local_hex_string_custom): Rename to
6210 local_hex_string_custom.
6211 * language.h (local_hex_string): Change parameter type to LONGEST.
6212 (local_hex_string_custom): Ditto.
6213 (longest_local_hex_string): Delete declaration.
6214 (longest_local_hex_string_custom): Ditto.
6216 * solib.c: Update copyright.
6217 * memattr.c: Update copyright.
6219 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6221 * arch-utils.h (legacy_register_to_value): Declare.
6222 (legacy_value_to_register): Declare.
6223 (legacy_convert_register_p): Declare.
6224 * arch-utils.c (legacy_register_to_value): New function.
6225 (legacy_value_to_register): New function.
6226 (legacy_convert_register_p): New function.
6228 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6229 (VALUE_TO_REGISTER): Define.
6230 (CONVERT_REGISTER_P): Define.
6231 * gdbarch.h, gdbarch.c: Regenerate.
6233 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6235 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6238 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6239 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6241 * Makefile.in: Update dependencies for valops.c.
6242 * valops.c: Include "gdb_assert.h".
6243 (typecmp): Skip THIS parameter to methods.
6244 (find_method_list): Remove static_memfuncp argument,
6245 update callers. Check for stub methods.
6246 (find_value_oload_method_list): Don't set *static_memfuncp.
6247 (find_overload_match): Don't check for stub methods. Assert
6248 that methods are not stubbed. Handle static methods.
6249 (value_find_oload_method_list): Remove static_memfuncp argument.
6250 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6251 to the argument list for static stub methods.
6252 * value.h (value_find_oload_method_list): Update prototype.
6254 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6256 * arch-utils.h (generic_register_size): Declare.
6257 (generic_register_raw_size, generic_register_virtual_size): Delete
6259 * arch-utils.c (generic_register_raw_size): Delete.
6260 (generic_register_size): New function.
6261 (generic_register_virtual_size): Delete.
6263 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6264 default generic_register_size.
6265 * gdbarch.h, gdbarch.c: Re-generate.
6267 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6268 register_virtual_size.
6269 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6270 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6272 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6274 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6275 * gdbarch.h, gdbarch.c: Regenerate.
6276 * gnu-v3-abi.c: Update copyright.
6277 (vtable_address_point_offset): Update.
6278 (gnuv3_rtti_type): Update.
6279 (gnuv3_baseclass_offset): Update.
6280 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6281 (init_fetch_link_map_offsets): Update.
6282 * remote.c (get_remote_state): Update.
6284 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6286 * TODO: Remove value_headof/value_from_vtable_info comment.
6287 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6288 * values.c (value_headof, value_from_vtable_info): Delete.
6289 * value.h (value_from_vtable_info): Delete prototype.
6291 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6293 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6294 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6296 (gdb_assert_h): Define.
6297 (gdb_wait_h): Define.
6298 (gdb_regex_h): Define.
6300 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6302 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6303 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6305 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6307 * nbsd-tdep.c: Fix comment.
6309 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6311 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6312 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6313 (nbsd-tdep.o): New dependency list.
6314 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6316 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6317 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6318 * nbsd-tdep.c: New file.
6319 * nbsd-tdep.h: New file.
6320 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6322 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6323 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6324 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6325 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6327 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6329 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6330 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6331 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6332 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6333 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6334 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6336 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6338 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6339 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6340 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6341 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6342 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6343 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6344 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6346 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6348 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6349 fetch_elfcore_registers to...
6350 * i386nbsd-tdep.c: ...here.
6351 (i386nbsd_use_struct_convention): Rename to...
6352 (i386nbsd_aout_use_struct_convention): ...this.
6353 (i386nbsd_supply_reg): New function.
6354 (i386nbsd_fill_reg): New function.
6355 (fetch_core_registers): Use i386nbsd_supply_reg.
6356 (fetch_elfcore_registers): Likewise.
6357 (_initialize_i386nbsd_tdep): New function.
6358 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6359 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6360 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6361 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6362 (i386nbsd_aout_use_struct_convention): ...this.
6364 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6366 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6367 (store_inferior_registers): Use shnbsd_fill_reg.
6368 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6369 sh_nbsd_supply_register): Collapse into...
6370 (shnbsd_supply_reg): ...this.
6371 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6372 (shnbsd_fill_reg): ...this.
6373 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6374 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6375 (fetch_core_registers): Use shnbsd_supply_reg.
6376 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6377 (sh_nbsd_core_fns): Rename to...
6378 (shnbsd_core_fns): ...this.
6379 (sh_nbsd_elfcore_fns): Rename to...
6380 (shnbsd_elfcore_fns): ...this.
6381 (sh_nbsd_init_abi): Rename to...
6382 (shnbsd_init_abi): ...this.
6383 (_initialize_sh_nbsd_tdep): Rename to...
6384 (_initialize_shnbsd_tdep): ...this.
6385 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6386 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6387 sh_nbsd_fill_register): Remove prototypes.
6388 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6390 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6392 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6393 (i387-nat.o): Delete dependency list.
6394 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6395 (x86-64-linux-nat.o): Likewise.
6396 * i387-nat.c: Delete file, moving contents to...
6397 * i387-tdep.c: ...here.
6398 * i387-nat.h: Rename...
6399 * i387-tdep.h: ...to this.
6400 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6401 * i386-linux-nat.c: Likewise.
6402 * i386bsd-nat.c: Likewise.
6403 * i386gnu-nat.c: Likewise.
6404 * i386nbsd-nat.c: Likewise.
6405 * i386v4-nat.c: Likewise.
6406 * x86-64-linux-nat.c: Likewise.
6407 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6408 * config/i386/go32.mh (NATDEPFILES): Likewise.
6409 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6410 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6411 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6412 * config/i386/linux.mh (NATDEPFILES): Likewise.
6413 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6414 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6415 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6416 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6418 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6420 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6421 (alphanbsd-nat.o): Remove dependency list.
6422 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6423 * alphanbsd-nat.c: Delete. Contents moved to...
6424 * alphanbsd-tdep.c: ...here.
6425 (_initialize_alphanbsd_tdep): Register core functions.
6426 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6428 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6430 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6431 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6432 (alphanbsd-nat.o): Likewise.
6433 (alphabsd-tdep.o): New dependency list.
6434 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6435 (fill_gregset): Use alphabsd_fill_reg.
6436 (supply_fpregset): Use alphabsd_supply_fpreg.
6437 (fill_fpregset): Use alphabsd_fill_fpreg.
6438 (fetch_inferior_registers): Use struct reg and struct fpreg
6439 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6440 and alphabsd_supply_fpreg.
6441 (store_inferior_registers): Use struct reg and struct fpreg
6442 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6443 and alphabsd_fill_fpreg.
6444 * alphabsd-tdep.c: New file.
6445 * alphabsd-tdep.h: New file.
6446 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6447 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6448 alphabsd_supply_fpreg.
6449 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6450 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6452 2002-05-11 Eric Christopher <echristo@redhat.com>
6454 * mips-tdep.c (mips_double_register_type): Fix thinko.
6455 (mips_single_register_type): Ditto.
6456 * MAINTAINERS: Add self.
6458 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6460 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6461 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6462 right thing on architectures with different endianness and/or
6465 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6467 From Christian Limpach <chris@Pin.LU>
6468 * configure.in: Change sed expression which comments out
6469 NATDEPFILES to also comment out continuation lines.
6470 * configure: Regenerate.
6472 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6474 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6477 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6479 * sh-tdep.c: Include correct file.
6481 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6483 New support for sh64-elf (sh5) target.
6485 * configure.tgt: For sh64-elf target, default to sh-elf.
6487 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6488 (struct gdbarch_tdep): Add new fields for new registers and ABI
6491 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6492 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6493 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6494 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6495 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6496 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6497 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6498 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6499 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6500 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6501 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6502 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6503 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6504 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6505 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6506 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6507 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6508 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6509 sign_extend, sh64_nofp_frame_init_saved_regs,
6510 sh64_init_extra_frame_info, sh64_get_saved_register,
6511 sh64_extract_struct_value_address, sh64_pop_frame,
6512 sh64_push_arguments, sh64_extract_return_value,
6513 sh64_store_return_value, sh64_show_media_regs,
6514 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6515 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6516 sh_sh64_register_virtual_type,
6517 sh_sh64_register_convert_to_virtual,
6518 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6519 sh64_register_read, sh64_pseudo_register_write,
6520 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6521 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6522 sh64_do_pseudo_register, sh_compact_do_registers_info,
6523 sh64_do_registers_info, sh_gdbarch_init): New functions.
6525 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6527 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6529 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6531 * linespec.c (decode_line_1): Check for a double quote after
6532 a filename correctly.
6534 2002-05-10 Jim Blandy <jimb@redhat.com>
6536 Properly track the size of the current objfile's .debug_line section.
6537 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6538 (DWARF_LINE_SIZE): New macro.
6539 (dwarf2_build_psymtabs_hard): Record the line section's size in
6540 the partial symbol table.
6541 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6544 2002-05-10 Petr Sorfa <petrs@caldera.com>
6546 * ia64-tdep.c: Handle breakpoints on L instruction type
6547 in MLX instruction bundle by moving the breakpoint to
6548 the third slot (X instruction type) as L holds only data.
6550 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6552 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6553 (process_one_symbol): Complain about discarding local symbols
6554 due to a misplaced N_LBRAC entry.
6556 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6558 From Daniel Berlin <dan@cgsoftware.com>
6559 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6560 decrease the depth we are at, in the case of templates.
6562 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6564 * mips-tdep.c (mips_float_register_type): New function.
6565 (mips_double_register_type): New function.
6566 (mips_print_register): Use them.
6567 (do_fp_register_row): Likewise.
6569 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6571 * signals/signals.c (signals): Remove conditional compilation around
6572 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6573 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6575 2002-05-09 Michael Snyder <msnyder@redhat.com>
6577 * remote-rdp.c (remote_rdp_can_run): Remove.
6579 2002-05-09 Tom Tromey <tromey@redhat.com>
6581 * jv-valprint.c (java_val_print): Handle `char' as a special case
6584 2002-05-09 Michael Snyder <msnyder@redhat.com>
6586 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6587 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6588 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6589 str r(0123),[sp,#nn].
6590 (arm_skip_prologue): Ditto. Also make disassembly
6591 order-independent by placing it in a loop.
6593 2002-05-06 Michael Snyder <msnyder@redhat.com>
6595 * stabsread.c (read_type): Add recognition for new attribute:
6596 "@V;" means that an array type is actually a vector.
6597 This is analogous to the vector flag that's been added to dwarf2.
6599 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6601 * i386-tdep.h (i386_abi): New enum.
6602 (struct gdbarch_tdep): Replace os_ident member with abi.
6603 (i386_gdbarch_register_os_abi): New prototype.
6604 * i386-tdep.c (i386_abi_names): New array.
6605 (process_note_abi_tag_sections): Removed.
6606 (process_note_sections): New function.
6607 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6608 (struct i386_abi_handler): New struct.
6609 (i386_abi_handler_list): New variable.
6610 (i386_gdbarch_register_os_abi): New function.
6611 (i386_gdbarch_init): Adapt for the changes given above.
6613 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6615 * gregset.h: Say "GNU/Linux".
6617 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6619 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6620 (build_gdbtypes): Build builtin_type_v2_float.
6621 (_initialize_gdbtypes): Register new builtin type.
6623 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6625 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6626 (clear_gdbarch_swap): New function.
6627 (initialize_non_multiarch): Call.
6628 (gdbarch_update_p): Before calling init(), swap out and clear the
6629 existing architecture.
6630 * gdbarch.c: Regenerate.
6632 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6634 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6637 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6639 * sh-nbsd-nat.c: Rename to...
6640 * shnbsd-nat.c: ...this.
6641 * sh-nbsd-tdep.c: Rename to...
6642 * shnbsd-tdep.c: ...this.
6643 * sh-nbsd-tdep.h: Rename to...
6644 * shnbsd-tdep.h: ...this.
6645 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6646 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6648 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6650 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6651 concatenation for command help messages.
6653 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6655 * NEWS: Note new sh*-*-netbsdelf* configuration.
6656 * configure.host: Set gdb_host_cpu to sh for all sh*.
6657 (sh*-*-netbsdelf*): New host.
6658 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6659 (sh*-*-netbsdelf*): New target.
6660 * sh-nbsd-nat.c: New file.
6661 * sh-nbsd-tdep.c: New file.
6662 * sh-nbsd-tdep.h: New file.
6663 * config/sh/nbsd.mh: New file.
6664 * config/sh/nbsd.mt: New file.
6665 * config/sh/nm-nbsd.h: New file.
6666 * config/sh/tm-nbsd.h: New file.
6668 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6670 * sh-tdep.c (sh_osabi_names): Declare.
6671 (process_note_abi_tag_sections): New function.
6672 (get_elfosabi): Ditto.
6673 (sh_gdbarch_register_os_abi): Ditto.
6674 (sh_dump_tdep): Ditto.
6675 _initialize_sh_tdep): Use gdbarch_register to register
6676 sh_gdbarch_init and sh_dump_tdep.
6677 * config/sh/tm-sh.h (sh_osabi): Declare.
6678 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6680 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6682 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6683 (thumb_scan_prologue): Ditto.
6684 (arm_find_callers_reg): Ditto.
6685 (arm_frame_chain): Ditto.
6686 (arm_init_extra_frame_info): Ditto.
6687 (arm_frame_saved_pc): Ditto.
6688 (arm_pop_frame): Ditto.
6689 (arm_push_return_address): New function.
6690 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6691 call_dummy_location, call_dummy_breakpoint_offset_p,
6692 call_dummy_breakpoint_offset, call_dummy_p,
6693 call_dummy_stack_adjust_p, call_dummy_words,
6694 sizeof_call_dummy_words, call_dummy_start_offset,
6695 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6696 call_dummy_address, push_return_address and push_dummy_frame for
6697 generic dummy frames.
6699 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6701 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6702 size computation for alloca.
6703 (sh_fp_frame_init_saved_regs): Likewise.
6705 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6707 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6708 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6709 * arm-tdep.c (arm_store_return_value): Use them.
6710 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6711 * remote-rdp.c (remote_rdp_fetch_register): Use
6712 ARM_MAX_REGISTER_RAW_SIZE.
6713 (remote_rdp_store_register): Likewise.
6715 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6717 * dwarf2cfi.c: Code cleanup, removed unused variables,
6718 added default labels to switch {} statements.
6719 * x86-64-tdep.c: Ditto.
6720 * x86-64-linux-nat.c: Ditto.
6722 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6724 * solib.h: Protect against multiple inclusion.
6726 2002-05-06 Jim Blandy <jimb@redhat.com>
6728 Add first preprocessor macro-expansion files.
6729 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6730 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6731 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6732 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6733 (COMMON_OBS): Add macrotab.o, macroexp.o.
6734 (macroexp.o, macrotab.o): New rules.
6736 Separate the job of reading the line number info statement program
6737 header (...expialidocious) out into its own function.
6738 * dwarf2read.c (struct line_head, struct filenames, struct
6739 directories): Replace with...
6740 (struct line_header): New structure, containing the full
6741 contents of the statement program header, including the
6742 include directory and file name tables.
6743 (read_file_scope): If we have line number info, instead of just
6744 calling dwarf_decode_lines to do all the work, call
6745 dwarf_decode_line_header first to get a `struct line_header'
6746 containing the data in the statement program header, and then
6747 pass that to dwarf_decode_lines, which will pick up where that
6748 left off. Be sure to clean up the `struct line_header' object.
6749 (dwarf_decode_line_header, free_line_header, add_include_dir,
6750 add_file_name): New functions.
6751 (dwarf_decode_lines): Move all the code to read the statement
6752 program header into dwarf_decode_line_header. Take the line
6753 header it built as the first argument, instead of the offset to
6754 the compilation unit's line number info. Use the new `struct
6755 line_header' type instead of the old structures. No need to do
6756 cleanups here now, since we don't allocate anything.
6757 (dwarf2_statement_list_fits_in_line_number_section,
6758 dwarf2_line_header_too_long): New complaints.
6760 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6762 * gdbtypes.c (init_vector_type): New function.
6763 (build_builtin_type_vec128): Simplify the representation of SIMD
6765 (build_gdbtypes): Initialize new builtin vector types.
6766 (_initialize_gdbtypes): Register new vector types with gdbarch.
6767 (builtin_type_v4_float, builtin_type_v4_int32,
6768 builtin_type_v8_int16, builtin_type_v16_int8,
6769 builtin_type_v2_int32, builtin_type_v4_int16,
6770 builtin_type_v8_int8): New (renamed) SIMD types.
6772 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6774 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6775 (i387_fill_fxsave): Likewise.
6777 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6779 * alpha-tdep.c (alpha_extract_return_value): Don't use
6780 non-constant array size in prototype.
6782 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6784 From Brian Taylor <briant at model dot com>:
6785 * ui-out.c (ui_out_field_core_addr): Use the function
6786 longest_local_hex_string_custom'to format addresses > 32 bits
6789 * ui-out.c (ui_out_field_core_addr): Update comment.
6791 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6793 * stack.c (select_and_print_frame): Make static. Delete the
6795 (func_command): Update call.
6796 (select_frame_command): Delete code computing the frame level.
6797 * frame.h (select_and_print_frame): Delete declaration.
6799 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6801 * sparc-tdep.c (sparc_get_saved_register): Comment why
6802 get_prev_frame call is safe.
6804 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6806 * frame.h (select_frame): Delete level parameter.
6807 * stack.c (select_frame): Update. Use frame_relative_level to
6808 obtain the frame's level.
6809 (select_and_print_frame): Update call.
6810 (select_frame_command): Ditto.
6811 (up_silently_base): Ditto.
6812 (down_silently_base): Ditto.
6813 * ocd.c (ocd_start_remote): Ditto.
6814 * remote-rdp.c (remote_rdp_open): Ditto.
6815 * remote-mips.c (mips_initialize): Ditto.
6816 (common_open): Ditto.
6817 * remote-e7000.c (e7000_start_remote): Ditto.
6818 * m3-nat.c (select_thread): Ditto.
6819 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6820 (child_get_current_exception_event): Ditto.
6821 * varobj.c (varobj_create): Ditto.
6822 (varobj_update): Ditto.
6823 (c_value_of_root): Ditto.
6824 * tracepoint.c (finish_tfind_command): Ditto.
6825 * corelow.c (core_open): Ditto.
6826 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6827 * thread.c (info_threads_command): Ditto.
6828 (switch_to_thread): Ditto.
6829 * infrun.c (normal_stop): Ditto.
6830 (restore_selected_frame): Ditto.
6831 (restore_inferior_status): Ditto.
6832 * breakpoint.c (insert_breakpoints): Ditto.
6833 (watchpoint_check): Ditto.
6834 (bpstat_stop_status): Ditto.
6835 (do_enable_breakpoint): Ditto.
6836 * blockframe.c (flush_cached_frames): Ditto.
6837 (reinit_frame_cache): Ditto.
6839 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6841 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6844 2002-05-04 Jim Blandy <jimb@redhat.com>
6846 * gdbtypes.c (replace_type): Doc fix.
6848 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6850 * valprint.c (strcat_longest): Delete commented out function.
6853 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6855 * MAINTAINERS: Mark a29k as deleted.
6856 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6857 Move new configurations to the top.
6858 * configure.tgt: Remove a29k.
6859 * config/a29k/tm-vx29k.h: Delete.
6860 * config/a29k/vx29k.mt: Delete.
6861 * config/a29k/tm-a29k.h: Delete.
6862 * config/a29k/a29k-udi.mt: Delete.
6863 * config/a29k/a29k.mt: Delete.
6864 * a29k-tdep.c: Delete.
6865 * remote-udi.c: Delete.
6866 * remote-mm.c: Delete.
6867 * remote-eb.c: Delete.
6868 * remote-adapt.c: Delete.
6869 * Makefile.in: Remove obsolete code.
6870 * config/s390/s390x.mt: Ditto.
6871 * config/s390/s390.mt: Ditto.
6872 * config/sparc/sparclynx.mh: Ditto.
6873 * config/sparc/linux.mh: Ditto.
6874 * config/pa/hppaosf.mh: Ditto.
6875 * config/pa/hppabsd.mh: Ditto.
6876 * config/ns32k/nbsd.mt: Ditto.
6877 * config/mips/vr5000.mt: Ditto.
6878 * config/m68k/sun3os4.mh: Ditto.
6879 * config/m68k/nbsd.mt: Ditto.
6880 * config/m68k/m68klynx.mh: Ditto.
6881 * config/m32r/m32r.mt: Ditto.
6882 * config/i386/x86-64linux.mt: Ditto.
6883 * config/i386/nbsdelf.mt: Ditto.
6884 * config/i386/nbsd.mt: Ditto.
6885 * config/i386/i386lynx.mh: Ditto.
6887 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6889 * target.c (debug_print_register): New function. Handle oversize
6891 (debug_to_fetch_registers): Call.
6892 (debug_to_store_registers): Call.
6894 2002-05-03 Jim Blandy <jimb@redhat.com>
6896 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6897 (read_type): Doc fix.
6898 * gdbtypes.c (replace_type): Doc fix.
6900 * stabsread.c (multiply_defined_struct): New complaint.
6901 (read_struct_type): If the type we were passed isn't empty, or
6902 incomplete, don't read the new struct type into it; complain,
6903 and return the original type unchanged. Take a new `type_code'
6904 argument, which is the type code for the new type.
6905 (read_type): Rather than storing the type's type code here, pass
6906 it as an argument to read_struct_type, and let that take care of
6907 storing it. That way, we don't overwrite the original type code,
6908 so read_struct_type can use it to decide whether we're overwriting
6909 something we shouldn't.
6910 (complain_about_struct_wipeout): New function.
6912 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6914 * gdbarch.sh: Assert that gdbarch is non-NULL.
6915 * gdbarch.c: Regenerate.
6917 2002-05-03 Jason Merrill <jason@redhat.com>
6919 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6922 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6924 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6925 (x86_64_dwarf2gdb_regno_map_length),
6926 (x86_64_dwarf2_reg_to_regnum): Added.
6927 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6928 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6929 (_initialize_x86_64_tdep): Synced with the change above.
6930 (x86_64_skip_prologue): Reformulated message.
6932 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6934 * f-exp.y: Also use new prev_lexptr variable
6935 to improve error reporting. Based on Michael Snyder
6936 2002-04-24 dated patch to c-exp.y.
6937 * jv-exp.y: Likewise.
6938 * m2-exp.y: Likewise.
6940 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6942 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6943 we are dealing with vectors.
6945 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6947 * config/m68k/tm-nbsd.h: Obvious fix,
6948 correct machine name.
6950 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6952 * p-typeprint.c (pascal_type_print_base): Add support
6953 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6955 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6957 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6958 for fondamental pascal 'char' type.
6960 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6962 * p-lang.h (is_pascal_string_type): Declaration changed,
6963 new sixth argument of type char ** added.
6964 * p-lang.c (is_pascal_string_type): Implementation
6965 changed. Args length_pos, length_size, string_pos, char_size
6966 can now be NULL. New argument arrayname set to the field
6967 name of the char array. Return value set to char array
6968 field index plus one.
6969 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6970 is_pascal_string_type function.
6972 2002-05-02 Andrew Cagney <cagney@redhat.com>
6974 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6975 <cagney@redhat.com> change.
6976 * gdbarch.c: Regenerate.
6978 2002-05-02 Andrew Cagney <cagney@redhat.com>
6980 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6981 before probing for a new one. Detect errorenous gdbarch_init
6983 * gdbarch.c: Regenerate.
6985 2002-05-01 Andrew Cagney <cagney@redhat.com>
6987 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6988 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6989 * config/v850/tm-v850.h: Ditto. Update copyright.
6991 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6993 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6996 2002-04-30 Michael Snyder <msnyder@redhat.com>
6998 * arm-tdep.c: Whitespace clean-ups.
6999 (arm_skip_prologue): Fix thinko; two lines
7000 should have been removed as part of 4/24 change.
7002 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7004 * rs6000-tdep.c: Added comment describing how fpscr register
7005 numbers were chosen.
7007 2002-04-30 Michael Snyder <msnyder@redhat.com>
7009 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7011 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7013 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7014 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7015 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7017 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7019 From Louis Hamilton <hamilton@redhat.com>:
7020 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7021 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7022 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7023 not bfd-private xcoff data, to determine wordsize.
7024 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7026 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7028 GDB 5.2 released from 5.2 branch.
7030 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7032 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7033 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7034 (x86_64_register_info_table): Added comments with register numbers.
7036 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7038 * rs6000-tdep.c (rs6000_extract_return_value,
7039 rs6000_store_return_value): Handle returning vectors.
7040 (rs6000_gdbarch_init): Use
7041 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7042 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7044 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7046 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7047 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7049 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7051 * hpread.c (hpread_psymtab_to_symtab_1,
7052 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7053 with fprintf_unfiltered (gdb_stderr,...).
7055 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7057 * remote-array.c (printf_monitor, write_monitor,
7058 array_insert_breakpoint, array_remove_breakpoint ):
7059 Replace fprintf (stderr,...
7060 with fprintf_unfiltered (gdb_stderr,....
7061 * remote-es.c: Likewise.
7062 * remote-os9k.c: Likewise.
7063 * remote-st.c: Likewise.
7065 2002-04-28 Andreas Schwab <schwab@suse.de>
7067 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7068 linux-proc.o and gcore.o.
7070 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7072 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7073 code without frame pointers.
7075 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7077 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7080 2002-04-26 Ben Elliston <bje@redhat.com>
7082 * target.c (do_xfer_memory): Correct reference to the new option
7083 "trust-readonly-sections".
7085 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7087 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7088 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7089 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7091 (read_array_type): Record the fact that this array type is really a
7092 vector (i.e. are passed in by value).
7094 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7096 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7097 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7098 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7099 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7100 * alpha-linux-tdep.c: Include frame.h.
7101 (alpha_linux_sigcontext_addr): New function.
7102 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7103 alpha_linux_sigcontext_addr.
7104 * alpha-osf1-tdep.c: Include gdbcore.h.
7105 (alpha_osf1_sigcontext_addr): New function.
7106 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7107 alpha_osf1_sigcontext_addr.
7108 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7109 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7111 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7113 * stack.c (selected_frame_level):
7114 (select_frame): Do not set selected_frame_level.
7115 * frame.h (selected_frame_level): Delete declaration.
7117 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7119 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7120 convert_from_func_ptr-addr when AIX / PowerOpen.
7122 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7124 * valops.c (hand_function_call): Call
7125 generic_save_call_dummy_addr.
7126 * frame.h (generic_save_call_dummy_addr): Declare.
7127 * blockframe.c (struct dummy_frame): Add fields call_lo and
7129 (generic_find_dummy_frame): Check for PC in range call_lo to
7130 call_hi instead of entry_point_address.
7131 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7132 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7133 (generic_save_call_dummy_addr): New function.
7135 2002-04-24 David S. Miller <davem@redhat.com>
7137 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7138 sparc_skip_prologue.
7139 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7140 information to find prologue when possible.
7141 (sparc_prologue_frameless_p): Call examine_prologue directly.
7142 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7143 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7145 (SKIP_PROLOGUE): Likewise.
7147 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7149 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7150 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7151 indicate that the condition it was testing is always true.
7152 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7153 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7154 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7156 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7158 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7159 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7160 tdep->jb_pc and tdep->jb_elt_size.
7161 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7162 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7163 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7164 * alpha-nat.c (get_longjmp_target): Remove.
7165 (JB_ELEMENT_SIZE): Ditto.
7167 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7168 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7169 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7170 to alpha_get_longjmp_target.
7171 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7172 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7173 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7175 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7177 * README: Update to GDB 5.2.
7179 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7181 * gdbarch.sh (LC_ALL): Set to `c'.
7183 2002-04-25 Theodore A. Roth <troth@verinet.com>
7185 * avr-tdep.c: Ran through gdb_indent.sh.
7187 2002-04-25 Theodore A. Roth <troth@verinet.com>
7189 * MAINTAINERS: Add myself as AVR maintainer.
7190 * NEWS: Note new target avr.
7192 2002-04-25 Theodore A. Roth <troth@verinet.com>
7194 * Makefile.in: Add support for AVR target.
7195 * configure.tgt: Add support for AVR target.
7196 * avr-tdep.c: New file
7197 * config/avr/avr.mt: New file.
7199 2002-04-25 Theodore A. Roth <troth@verinet.com>
7201 * MAINTAINERS: Add myself to write-after-approval.
7203 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7205 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7206 with fprintf_unfiltered (gdb_stderr,....
7208 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7211 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7213 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7215 * p-exp.y: Also use new prev_lexptr variable
7216 to improve error reporting. Based on Michael Snyder
7217 2002-04-24 dated patch to c-exp.y.
7219 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7221 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7222 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7223 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7225 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7227 (FUNCTION_START_OFFSET): Remove.
7228 (BREAKPOINT): Ditto.
7230 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7232 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7235 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7237 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7238 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7239 alpha_linux_pc_in_sigtramp.
7240 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7241 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7242 alpha_osf1_pc_in_sigtramp.
7243 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7244 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7245 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7246 alphafbsd_pc_in_sigtramp.
7247 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7248 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7249 alphanbsd_pc_in_sigtramp.
7250 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7251 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7253 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7255 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7257 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7259 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7261 (alphanbsd-nat.o): New dependency list.
7262 (alphanbsd-tdep.o): Ditto.
7263 * NEWS: Note new native NetBSD/alpha configuration.
7264 * alphanbsd-nat.c: New file.
7265 * alphanbsd-tdep.c: Ditto.
7266 * configure.host (alpha*-*-netbsd*): New host.
7267 * configure.tgt (alpha*-*-netbsd*): New target.
7268 * config/alpha/nbsd.mh: New file.
7269 * config/alpha/nbsd.mt: Ditto.
7270 * config/alpha/nm-nbsd.h: Ditto.
7271 * config/alpha/tm-nbsd.h: Ditto.
7273 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7275 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7276 (alpha-osf1-tdep.o): New dependency list.
7277 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7278 and skip_sigtramp_frame members.
7279 * alpha-linux-tdep.c: Include gdbcore.h.
7280 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7281 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7282 * alpha-osf1-tdep.c: New file.
7283 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7285 (alpha_frame_past_sigtramp_frame): New function.
7286 (alpha_dynamic_sigtramp_offset): Ditto.
7287 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7288 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7289 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7290 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7291 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7292 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7293 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7294 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7295 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7296 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7297 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7298 to find_solib_trampoline_target.
7299 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7300 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7301 (SKIP_TRAMPOLINE_CODE): Remove.
7302 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7303 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7304 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7305 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7306 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7307 (PROC_SIGTRAMP_MAGIC): Ditto.
7308 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7309 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7310 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7311 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7312 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7314 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7316 * NEWS: Note that Alpha targets are now multi-arch.
7318 2002-04-24 Michael Snyder <msnyder@redhat.com>
7320 * parser-defs.h (prev_lexptr): New external variable.
7321 * parse.c (parse_exp_1): Set prev_lexptr to null before
7322 calling the language-specific parser.
7323 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7324 (yyerror): Use prev_lexptr in error reporting.
7326 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7328 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7329 * gregset.h: If FILL_FPXREGSET is defined, provide
7330 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7331 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7332 is defined, call fill_fpxregset.
7334 2002-04-24 Roland McGrath <roland@frob.com>
7336 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7337 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7338 (supply_gregset, supply_fpregset): New functions.
7340 * gnu-nat.c (gnu_find_memory_regions): New function.
7341 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7342 (gnu_xfer_memory): Add a cast.
7344 2002-04-24 Michael Snyder <msnyder@redhat.com>
7346 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7347 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7348 of argument regs ("str r(0123), [r11, #-nn"]).
7349 (arm_skip_prologue): Better handling for frameless functions.
7350 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7351 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7353 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7355 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7356 NUM_PSEUDO_REGS can be used.
7358 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7360 * arch-utils.h: Update copyright.
7362 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7363 * gdbarch.h, gdbarch.c: Re-generate.
7365 * inferior.h (IN_SIGTRAMP): Delete definition.
7366 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7367 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7369 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7370 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7371 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7372 (find_proc_framesize): Ditto.
7373 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7374 (alpha_init_extra_frame_info): Ditto.
7375 * infrun.c (handle_inferior_event): Ditto.
7376 (handle_inferior_event): Ditto.
7377 (check_sigtramp2): Ditto.
7378 * blockframe.c (create_new_frame): Ditto.
7379 (get_prev_frame): Ditto.
7380 * ppc-linux-tdep.c: Update comments.
7381 * i386-linux-tdep.c: Update comments.
7382 * breakpoint.c (bpstat_what): Update comment.
7384 2002-04-24 David S. Miller <davem@redhat.com>
7386 * i960-tdep.c (register_in_window_p): New function.
7387 (i960_find_saved_register): Use it instead of
7388 REGISTER_IN_WINDOW_P.
7389 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7391 * symtab.h (find_stab_function_addr): Kill extern.
7392 * minsyms.c (find_stab_function_addr): Remove from here...
7393 * dbxread.c: ... to here, and mark it static.
7395 2002-04-20 David S. Miller <davem@redhat.com>
7397 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7398 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7400 2002-04-21 David S. Miller <davem@redhat.com>
7402 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7403 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7404 (vx_write_register): Likewise.
7406 2002-04-23 J. Brobecker <brobecker@gnat.com>
7408 * source.c (is_regular_file): New function.
7409 (openp): Check wether file to open is a regular file
7410 to avoid opening directories.
7412 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7414 * findvar.c (extract_signed_integer): Cast printf argument
7415 to suppress format warning.
7416 (extract_unsigned_integer): Likewise.
7417 * infcmd.c (registers_info): Likewise.
7418 * top.c (get_prompt_1): Likewise.
7419 * valops.c (value_assign): Likewise.
7420 * valprint.c (print_decimal): Likewise.
7422 2002-04-22 H.J. Lu (hjl@gnu.org)
7424 * c-exp.y (typebase): Support
7426 [long|long long|short] [signed|unsigned] [int|]
7430 signed [long|long long|short] int
7432 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7434 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7436 * vax-tdep.h: New file.
7437 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7438 Make several routines static.
7439 (vax_get_saved_register): New function.
7440 (vax_gdbarch_init): New function.
7441 (_initialize_vax_tdep): Register vax_gdbarch_init.
7442 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7443 Remove macros now under the control of gdbarch.
7445 2002-04-22 Michael Snyder <msnyder@redhat.com>
7447 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7448 Some whitespace and coding standards tweaks.
7450 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7452 * vax-tdep.c: Include regcache.h.
7453 (vax_call_dummy_words): New.
7454 (sizeof_vax_call_dummy_words): New.
7455 (vax_fix_call_dummy): New function.
7456 (vax_saved_pc_after_call): Ditto.
7457 * config/vax/tm-vax.h: Don't include regcache.h.
7458 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7459 (CALL_DUMMY): Remove.
7460 (CALL_DUMMY_WORDS): Define.
7461 (SIZEOF_CALL_DUMMY_WORDS): Define.
7462 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7464 2002-04-18 Michael Snyder <msnyder@redhat.com>
7466 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7468 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7470 * vax-tdep.c (vax_frame_chain): New function.
7471 (vax_push_dummy_frame): Ditto.
7472 (vax_pop_frame): Ditto.
7473 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7474 (FRAMELESS_FUNCTION_INVOCATION): Use
7475 generic_frameless_function_invocation_not.
7476 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7477 (POP_FRAME): Use vax_pop_frame.
7479 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7481 * vax-tdep.c (vax_store_struct_return): New function.
7482 (vax_extract_return_value): Ditto.
7483 (vax_store_return_value): Ditto.
7484 (vax_extract_struct_value_address): Ditto.
7485 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7486 vax_store_struct_return.
7487 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7488 (STORE_RETURN_VALUE): Use vax_store_return_value.
7489 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7491 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7493 * vax-tdep.c (vax_frame_saved_pc): New function.
7494 (vax_frame_args_address_correct): Ditto.
7495 (vax_frame_args_address): Ditto.
7496 (vax_frame_locals_address): Ditto.
7497 (vax_frame_num_args): Move code to be in proximity to
7498 other frame-related functions.
7499 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7500 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7501 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7502 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7503 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7505 2002-04-22 H.J. Lu (hjl@gnu.org)
7507 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7510 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7512 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7513 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7514 (FRAME_INIT_SAVED_REGS): New macro.
7516 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7518 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7520 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7522 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7524 (fetch_osf_core_registers): Likewise.
7525 (supply_gregset): Likewise.
7527 2002-04-22 J. Brobecker <brobecker@gnat.com>
7529 * symfile.h (get_section_index): Define.
7530 * symfile.c (get_section_index): New function.
7531 * mdebugread.c (SC_IS_SBSS): New macro.
7532 (SC_IS_BSS): Return true for the scBss storage class only, as
7533 the scSBss storage class refers to the .sbss section.
7534 (parse_partial_symbols): Discard the symbols which associated
7535 section does not exist.
7536 Make sure to use the .sbss section index for symbols which
7537 storage class is scBss, rather than using the .bss section index.
7539 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7541 * vax-tdep.c: Update copyright years.
7542 (vax_register_name): New function.
7543 (vax_register_byte): Ditto.
7544 (vax_register_raw_size): Ditto.
7545 (vax_register_virtual_size): Ditto.
7546 (vax_register_virtual_type): Ditto.
7547 * config/vax/tm-vax.h: Update copyright years.
7548 (REGISTER_NAMES): Remove.
7549 (REGISTER_NAME): Define.
7550 (REGISTER_BYTE): Use vax_register_byte.
7551 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7552 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7553 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7555 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7557 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7559 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7561 2002-04-21 David S. Miller <davem@redhat.com>
7563 * arch-utils.c (generic_prologue_frameless_p): Kill
7564 SKIP_PROLOGUE_FRAMELESS_P code.
7565 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7567 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7568 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7569 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7571 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7572 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7573 (sparc_gdbarch_init): Pass it to
7574 set_gdbarch_prologue_frameless_p.
7576 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7578 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7579 (alphabsd-nat.o): New dependency list.
7581 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7583 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7585 (alpha-linux-tdep.o): New dependency list.
7586 (alphafbsd-tdep.o): Likewise.
7588 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7590 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7592 * alpha-tdep.c: ...from here.
7593 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7595 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7597 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7598 prototype from here...
7599 * alpha-tdep.h: ...to here.
7601 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7603 * frame.h (selected_frame_level): Document as deprecated.
7604 (frame_relative_level): Declare.
7605 * stack.c (frame_relative_level): New function.
7606 (selected_frame_level): Document as deprecated.
7607 (select_frame): Do not set the selected_frame_level.
7609 * stack.c (frame_info, record_selected_frame): Update.
7610 (frame_command, current_frame_command): Update.
7611 (up_silently_base, up_command, down_silently_base): Update.
7612 (down_command): Update.
7613 * inflow.c (kill_command): Update.
7614 * tracepoint.c (finish_tfind_command): Update.
7615 * corelow.c (core_open): Update.
7616 * thread.c (info_threads_command): Update.
7617 (do_captured_thread_select): Update.
7618 * infcmd.c (finish_command): Update.
7619 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7621 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7623 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7625 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7627 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7630 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7632 * alphafbsd-tdep.c: Update copyright years. Include
7634 (alphafbsd_use_struct_convention): Make static.
7635 (alphafbsd_init_abi): New function.
7636 (_initialize_alphafbsd_tdep): New function.
7637 * config/alpha/tm-fbsd.h: Update copyright years.
7638 (USE_STRUCT_CONVENTION): Remove.
7640 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7642 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7643 an Alpha ABI variant.
7644 (alpha_abi_handler_list): Declare.
7645 (alpha_gdbarch_register_os_abi): New function.
7646 (alpha_gdbarch_init): Give registered ABI variant handlers a
7647 chance to tweak the gdbarch once we have set up defaults.
7648 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7650 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7652 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7653 to standard_coerce_float_to_double.
7654 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7656 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7658 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7659 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7660 from gdbarch_tdep rather than a constant.
7661 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7662 the default text address for all Alpha Unix ABIs.
7663 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7664 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7666 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7668 * alpha-tdep.h: New file. Includes several Alpha target constants
7670 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7671 let gdbarch deal with.
7672 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7673 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7675 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7676 Alpha target register names.
7677 * alphabsd-nat.c: Likewise.
7678 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7679 Alpha target register names. Make serveral routines static.
7680 (alpha_get_saved_register): New function.
7681 (alpha_abi_names): New.
7682 (process_note_abi_tag_sections): New function.
7683 (get_elfosabi): New function.
7684 (alpha_gdbarch_init): New function.
7685 (alpha_dump_tdep): New function.
7686 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7688 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7690 * frame.c (find_saved_register): Delete #ifdef
7691 HAVE_REGISTER_WINDOWS code.
7692 * config/sparc/tm-sparc.h: Update comments.
7693 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7695 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7697 * i960-tdep.c (i960_find_saved_register): New function.
7698 (i960_get_saved_register): New function.
7699 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7700 (i960_get_saved_register): Declare.
7701 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7703 2002-04-20 David S. Miller <davem@redhat.com>
7705 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7707 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7709 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7710 instead of NUM_PSEUDO_REGS.
7712 2002-04-20 David S. Miller <davem@redhat.com>
7714 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7715 GDB_MULTI_ARCH_PARTIAL
7716 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7717 define, let tm-sp64.h do it.
7719 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7721 * frame.c (find_saved_register): Avoid a NULL pointer
7722 dereference and actually walk the frame list.
7724 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7726 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7727 sorted in most most-recent-used order. Document.
7728 * gdbarch.h, gdbarch.c: Regenerate.
7730 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7732 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7734 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7735 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7736 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7739 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7742 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7743 (build_builtin_type_vec128): Ditto.
7744 (append_composite_type_field): Fix calculation of type length in
7747 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7749 * config/djgpp/README: Update.
7751 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7754 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7756 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7757 (alpha_setup_arbitrary_frame): ...to this.
7758 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7759 for alpha_setup_arbitrary_frame.
7761 2002-04-18 Andrew Cagney <cagney@redhat.com>
7763 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7764 * gdbarch.h, gdbarch.c: Regenerate.
7766 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7767 * target.h (memory_breakpoint_from_pc): Update declaration.
7768 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7770 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7771 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7772 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7773 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7774 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7775 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7776 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7777 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7778 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7779 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7780 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7781 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7783 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7785 * monitor.c (monitor_insert_breakpoint): Ditto.
7786 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7788 * config/mcore/tm-mcore.h: Update copyright.
7789 * mem-break.c: Ditto.
7790 * xstormy16-tdep.c: Ditto.
7792 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7794 * p-exp.y: Add precedence rule for '^' token.
7795 This removes the shift/reduce conflicts.
7796 Remove the comment concerning these shift/reduce conflicts.
7798 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7800 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7801 (registers_powerpc_nofp): New register set for processors
7802 without floating point unit.
7804 2002-04-18 David S. Miller <davem@redhat.com>
7806 * MAINTAINERS: Add myself to write-after-approval.
7808 2002-04-17 Michael Snyder <msnyder@redhat.com>
7810 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7812 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7814 * rs6000-tdep.c (frame_initial_stack_address): Use
7815 frame_register_read to read the alloca_reg.
7817 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7819 * frame.c (find_saved_register): Find saved registers in the next
7823 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7825 * gdbarch.sh (LANG): Set to ``c''.
7827 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7829 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7831 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7833 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7836 * hpread.c (hpread_get_lntt): Add declaration.
7837 Also fix PR gdb/391.
7839 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7841 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7842 * aclocal.m4, configure: Re-generate.
7845 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7847 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7848 instead of tm_print_insn.
7850 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7852 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7854 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7856 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7857 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7858 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7860 2002-04-12 Don Howard <dhoward@redhat.com>
7862 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7863 max_user_call_depth.
7864 (init_cmd_lists): Initialize the new value;
7865 * cli/cli-script.c (execute_user_command): Limit the call depth of
7866 user defined commands. This avoids a core-dump when user commands
7867 are infinitly recursive.
7869 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7871 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7872 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7873 from tdep struct instead of DEFAULT_LR_SAVE.
7874 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7875 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7876 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7878 2002-04-12 Michael Snyder <msnyder@redhat.com>
7880 * Remote.c: Spelling fix.
7881 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7882 If no symbol found for "sbrk", try "_sbrk".
7883 (make_output_phdrs): Use bfd_section_name.
7884 (gcore_copy_callback): Use bfd_section_name.
7885 * eval.c: Indentation fix-ups.
7886 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7887 in case it gets applied to an address that is already
7888 in the instruction space.
7889 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7890 * symfile.c: Fix indentation, long lines.
7891 * source.c: White space fix-up.
7893 2002-04-12 Andrew Cagney <cagney@redhat.com>
7895 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7896 * frame.c (frame_register_read): New function. Return non-zero on
7898 (read_relative_register_raw_bytes_for_frame): Delete.
7899 (read_relative_register_raw_bytes): Delete.
7900 * frame.h (frame_register_read): Declare.
7901 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7903 * infcmd.c (do_registers_info): Ditto.
7904 * hppa-tdep.c: Ditto.
7905 * rs6000-tdep.c: Ditto.
7906 * h8500-tdep.c: Ditto.
7907 * mips-tdep.c: Ditto.
7908 * h8300-tdep.c: Ditto.
7909 * z8k-tdep.c: Ditto.
7911 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7913 From Jimi X <jimix@watson.ibm.com>:
7914 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7917 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7919 From Jimi X <jimix@watson.ibm.com>:
7920 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7923 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7925 From Jimi X <jimix@watson.ibm.com>:
7926 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7927 register sets for these processor variants.
7929 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7931 * regformats/reg-ppc.dat: Support FPSCR.
7933 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7935 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7936 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7937 Add fpscr as an invalid/unfetchable register.
7938 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7939 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7940 (fill_fpregset): Add support for register fpscr.
7941 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7942 (fill_gregset): Account for the fact that register ``mq'' might
7944 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7945 (registers_power): Add fpscr to register set at slot 71.
7946 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7947 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7949 2002-04-11 Michael Snyder <msnyder@redhat.com>
7951 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7952 * configure: Regenerate.
7953 * config.in: Regenerate.
7954 * acconfig.h: Add define for _SYSCALL32.
7955 * core-sol2.c: Remove #define _SYSCALL32.
7956 * solib-legacy.c: Remove #define _SYSCALL32.
7958 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7960 * stack.c (select_frame): Cleanup internal error message, do not
7963 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7965 * stack.c (select_frame): Check that selected_frame and the
7966 specified level are as expected.
7967 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7969 * frame.h (struct frame_info): Add field `level'. Update
7971 Work-in-progress PR gdb/464.
7973 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7975 * maint.c (maint_print_section_info): Rename print_section_info.
7976 (print_bfd_section_info, print_objfile_section_info): Update.
7977 * inferior.h (struct gdbarch): Add opaque declaration.
7978 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7979 * gdbarch.h: Regenerate.
7981 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7983 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7984 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7985 (kernel_u_size): Added.
7986 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7987 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7989 2002-04-04 Jim Ingham <jingham@apple.com>
7991 * valarith.c (find_size_for_pointer_math): New function, either returns
7992 the size for a pointer's target, returns 1 for void *, or errors for
7994 (value_add, value_sub): use find_size_for_pointer_math.
7996 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7998 * linux-low.c (linux_look_up_symbols): New hook.
7999 (linux_target_ops): Add linux_look_up_symbols.
8000 * remote-utils.c (decode_address): New function.
8001 (look_up_one_symbol): New function.
8002 * server.c (handle_query): Call target look_up_symbols hook.
8003 * server.h (look_up_one_symbol): Add prototype.
8004 * target.h (struct target_ops): Add look_up_symbols hook.
8006 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8008 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8009 override FP_REGNUM with frame->fp. Update copyright.
8010 * parse.c (num_std_regs, std_regs): Delete.
8011 (target_map_name_to_register): Do not search std_regs. Update
8012 function description.
8013 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8014 declarations. Update copyright.
8017 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8019 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8020 after the last symbol in a block.
8022 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8024 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8025 is non zero as a found symbol.
8027 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8029 * findvar.c: Include "builtin-regs.h".
8030 (value_of_register): Call value_of_builtin_reg when applicable.
8031 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8032 (target_map_name_to_register): Call
8033 builtin_reg_map_name_to_regnum.
8034 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8035 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8036 (builtin_regs_h): Define.
8037 (builtin-regs.o): New target.
8038 (findvar.o): Add $(builtin_regs_h).
8039 * builtin-regs.c, builtin-regs.h: New files.
8040 * std-regs.c: New file.
8041 Partial fix for PR gdb/251.
8043 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8045 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8046 it's no longer required.
8048 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8050 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8052 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8054 From Jimi X <jimix@watson.ibm.com>:
8055 * rs6000-tdep.c (rs6000_software_single_step): Use
8056 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8057 and size. Use target_insert_breakpoint() and
8058 target_remove_breakpoint() to insert and remove breakpoints
8059 instead of explicit memory reads and writes.
8061 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8063 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8064 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8065 ELF_OBJECT_FORMAT ifdef.
8067 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8069 From Jimi X <jimix@watson.ibm.com>:
8070 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8072 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8074 From Jimi X <jimix@watson.ibm.com>:
8075 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8076 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8078 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8080 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8081 s/asprintf/xasprintf/.
8082 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8084 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8086 I believe Jeff Law denies responsability for this one:
8087 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8088 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8089 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8090 Work-around for PR gdb/366.
8092 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8094 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8095 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8096 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8098 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8100 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8101 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8104 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8106 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8109 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8111 * README (Reporting Bugs in GDB): Document the bug web page as the
8112 prefered way of submitting bugs.
8115 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8117 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8119 * gdbarch.h, gdbarch.c: Re-generate.
8121 2002-04-07 Andreas Schwab <schwab@suse.de>
8123 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8124 buffer to regcache_collect.
8126 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8128 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8129 * gdbarch.c, gdbarch.h: Re-generate.
8131 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8133 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8134 declaration. Fix -Werror.
8136 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8138 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8139 * gdbarch.c: Regenerate.
8141 2002-04-05 Michael Snyder <msnyder@redhat.com>
8143 * breakpoint.c (clear_command): Rewrite middle section to
8144 combine two loops with identical control conditions.
8145 Add a cleanup to eliminate a memory leak.
8146 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8148 2002-04-05 H.J. Lu (hjl@gnu.org)
8150 * solib-svr4.c (bkpt_names): Add "__start".
8152 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8154 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8155 as test for 64 bit target.
8157 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8159 * h8500-tdep.c (h8500_write_fp): Delete function.
8160 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8161 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8162 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8164 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8165 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8167 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8168 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8169 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8170 (d10v_write_fp): Delete function.
8171 * inferior.h (write_fp, generic_target_write_fp): Delete
8173 * regcache.c (generic_target_write_fp): Delete function.
8174 (write_fp): Delete function.
8175 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8176 * gdbarch.h, gdbarch.c: Regenerate.
8177 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8178 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8179 (sparc64_write_fp): Delete declaration.
8180 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8181 (h8500_write_fp): Delete declaration.
8183 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8185 * sparc-tdep.c (sparc64_write_fp): Delete.
8186 (sparc_push_dummy_frame): Replace write_fp call with code to store
8188 (sparc_gdbarch_init): Do not initialize write_fp.
8190 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8192 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8195 2002-03-29 Jim Blandy <jimb@redhat.com>
8197 * stack.c (get_selected_block): Add new argument `addr_in_block',
8198 used to return the exact code address we used to select the block,
8200 * blockframe.c (get_frame_block, get_current_block): Same.
8201 * frame.h (get_frame_block, get_current_block,
8202 get_selected_block): Update declarations.
8203 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8204 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8206 2002-04-05 Michael Snyder <msnyder@redhat.com>
8208 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8211 2002-04-05 J. Brobecker <brobecker@gnat.com>
8213 * utils.c (xfullpath): New function.
8214 * defs.h (xfullpath): Add declaration.
8215 * source.c (openp): Use xfullpath in place of gdb_realpath to
8216 avoid resolving the basename part of filenames when the
8217 associated file is a symbolic link. This fixes a potential
8218 inconsistency between the filenames known to GDB and the
8219 filenames it prints in the annotations.
8220 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8221 to be able to match a filename with either the real filename, or
8222 the name of any symbolic link to this file.
8223 (lookup_partial_symtab): Ditto.
8225 2002-04-04 Michael Snyder <msnyder@redhat.com>
8227 * breakpoint.c: Add support for hardware breakpoints in overlays.
8228 (overlay_events_enabled): New state variable.
8229 (insert_breakpoints): Use overlay_events_enabled to decide
8230 whether to attempt to set a breakpoint at the overlay load addr.
8231 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8232 (remove_breakpoint): Use overlay_events_enabled to decide
8233 whether breakpoints need to be removed from overlay load addr.
8234 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8235 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8236 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8237 disable_overlay_breakpoints): Update overlay_events_enabled.
8239 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8241 * dwarf2read.c (struct function_range): New.
8242 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8243 (check_cu_functions): New.
8244 (read_file_scope): Initialize global function lists.
8245 Call dwarf_decode_line after processing children.
8246 (read_func_scope): Add to global function list.
8247 (dwarf_decode_lines): Call check_cu_functions everywhere
8248 record_line is called. Call record_line with a linenumber
8249 of 0 to mark sequence ends.
8251 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8253 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8254 change sync with glibc.
8256 2002-04-03 Jim Blandy <jimb@redhat.com>
8258 * configure.in: Call AC_C_INLINE.
8259 * configure: Regenerated.
8261 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8263 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8264 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8266 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8268 * NEWS: Mention gcore support on FreeBSD/i386.
8270 * fbsd-proc.c: New file.
8271 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8272 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8274 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8277 2002-03-29 Jim Blandy <jimb@redhat.com>
8279 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8280 unescaped newlines in string literals, but newer ones don't. So
8283 2002-03-26 Michael Snyder <msnyder@redhat.com>
8284 Andrew Cagney <cagney@redhat.com>
8286 * cli/cli-dump.c: New file. Dump memory to file,
8287 restore file to memory.
8288 * cli/cli-dump.h: New file.
8289 * Makefile.in: Add rules, dependencies for cli-dump.o.
8290 * NEWS: Mention new commands.
8292 2002-03-28 Michael Snyder <msnyder@redhat.com>
8294 * symfile.c (symbol_file_add): Move test for null symbols to later.
8296 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8298 From veksler at il.ibm.com:
8299 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8300 the xstrduped original path.
8303 2002-03-27 Michael Snyder <msnyder@redhat.com>
8305 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8306 * infcmd.c (_initialize_infcmd): Ditto.
8307 * language.c (_initialize_language): Ditto.
8308 * symfile.c (_initialize_symfile): Ditto.
8309 * top.c (_init_main): Ditto.
8310 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8312 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8314 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8315 vector registers handling.
8316 (skip_prologue): Handle new AltiVec instructions. Fill in new
8317 fields of frame data.
8318 (frame_get_saved_regs): Fill in information for AltiVec registers.
8320 2002-03-27 Jim Blandy <jimb@redhat.com>
8322 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8323 a function; leave this macro here to invoke that function.
8324 (symbol_init_mangled_name): Declaration for that function.
8325 * symtab.c (symbol_init_mangled_name): New function.
8327 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8329 * valarith.c: Replace strerror with safe_strerror.
8330 * tracepoint.c: Ditto.
8332 * go32-nat.c: Ditto.
8336 2002-03-27 Andreas Schwab <schwab@suse.de>
8338 * event-top.c (command_line_handler): Remove useless if.
8340 2002-03-27 Andreas Jaeger <aj@suse.de>
8342 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8345 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8347 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8348 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8349 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8350 (x86_64_linux_dr_get_status, supply_gregset),
8351 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8352 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8353 (x86_64_register_info_table): Add.
8354 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8355 (x86_64_register_raw_size, x86_64_register_virtual_type),
8356 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8357 general x86_64_register_info_table.
8358 (i386_gdbarch_init): gdbarch_register_bytes is now set
8359 dynamicaly during initialization.
8360 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8361 * gdbserver/linux-x86-64-low.c: Ditto.
8363 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8365 * gdbserver/server.c (main): Call target_signal_to_host_p
8366 and target_signal_to_host on signals received from the remote.
8367 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8368 target_signal_from_host on signals sent to the remote.
8369 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8370 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8372 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8374 * signals/signals.c: Include "server.h" in gdbserver build.
8375 (target_signal_from_name): Don't use STREQ.
8376 (_initialize_signals): Likewise. Don't include function in
8379 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8381 * signals.c: Moved to...
8382 * signals/signals.c: Here.
8383 * Makefile (signals.o): Update.
8385 2002-03-26 Jeff Law (law@redhat.com)
8387 * somread.c (som_symtab_read): Remove some commented out code and
8388 updated related comments. Do not set the minimal symbol table to
8389 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8390 in a dynamic executable.
8391 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8392 where we are unable to find the minimal symbol for the given
8395 2002-03-25 Jeff Law (law@redhat.com)
8397 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8399 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8401 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8403 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8405 * command.h: Update copyright.
8406 (struct cmd_list_element): Replace definition with opaque
8408 (enum cmd_types): Document that it will eventually be moved to
8410 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8411 (MALLOCED_REPLACEMENT): Delete macro.
8412 * Makefile.in (cli_decode_h): Add $(command_h).
8413 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8414 * top.c: Include "cli/cli-decode.h".
8415 * completer.c: Include "cli/cli-decode.h".
8416 * maint.c: Include "cli/cli-decode.h".
8417 * cli/cli-decode.h: Include "command.h".
8418 (enum command_class): Delete.
8419 (enum cmd_types): Comment out.
8420 (enum cmd_auto_boolean): Delete.
8421 (enum var_types): Delete.
8423 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8425 * cli/cli-decode.c: Include "gdb_assert.h".
8426 (add_set_or_show_cmd): New static function.
8427 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8428 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8429 all fields, such as func, from the set command.
8431 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8433 * MAINTAINERS (sh-elf): Change warning flag to -w.
8435 2002-03-23 Andrew Cagney <cagney@redhat.com>
8437 * defs.h (error): Add printf format attribute.
8438 * thread-db.c (thread_from_lwp): Fix error format string.
8439 * stack.c (parse_frame_specification): Ditto.
8440 * cli/cli-decode.c (undef_cmd_error): Ditto.
8441 * scm-lang.c (scm_lookup_name): Ditto.
8442 * tracepoint.c (trace_error): Ditto.
8443 * remote-utils.c (usage): Ditto.
8444 * remote.c (compare_sections_command): Ditto.
8447 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8449 * gdbtypes.c (append_composite_type_field): New function.
8450 (init_composite_type): New function.
8451 * gdbtypes.h (append_composite_type_field): Declare.
8452 (init_composite_type): Ditto.
8454 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8456 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8458 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8459 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8460 structure returning convention for SYSV ABI case, but not
8461 for GNU/Linux, FreeBSD, or NetBSD.
8463 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8465 * symtab.h (lookup_block_symbol): Add mangled_name argument
8468 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8469 with new mangled_name argument.
8470 * linespec.c (decode_line_1): Likewise.
8471 * valops (value_of_this): Likewise.
8472 * symtab.c (lookup_transparent_type): Likewise.
8473 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8474 (lookup_symbol): If we are given a mangled name, pass it down
8475 to lookup_symbol_aux.
8476 (lookup_block_symbol): If we are given a mangled name to check
8477 against, only return symbols which match it.
8479 2002-03-22 Christopher Faylor <cgf@redhat.com>
8481 * win32-nat.c (child_create_inferior): Check for proper shell to use
8482 here, in case the user changes it on the fly.
8483 (_initialize_inftarg): Remove shell path considerations.
8485 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8487 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8488 for gdbarch_max_register_raw_size and max_register_virtual_size.
8489 Adjust copyright year.
8491 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8493 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8494 in a function to cover the entire beginning of the function
8495 as well if it does not already.
8497 2002-03-21 Tom Rix <trix@redhat.com>
8499 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8500 (rs6000_ptrace64): Renamed from ptrace64.
8502 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8504 * gdbserver/remote-utils.c (remote_open): Don't call
8505 getprotobyname, we're all using TCP here so just use
8507 * gdbserver/gdbreplay.c (remote_open): Ditto.
8509 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8511 * regcache.c (_initialize_regcache): No need to call
8512 build_regcache() at this time; it gets called whenever
8513 the gdbarch changes.
8515 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8517 * sparc-nat.c: Include sys/param.h where possible.
8519 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8522 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8523 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8524 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8526 * stabsread.c (rs6000_builtin_type): Likewise.
8527 (read_sun_floating_type): Likewise.
8529 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8531 * stabsread.c (read_member_functions): Remove skip code for duplicate
8532 constructor/destructor methods. Use standard parsing for these
8533 methods and just do not chain them to the list of methods after
8536 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8538 * coffread.c: Remove redundant static declarations. Replace
8539 occurrences of `PTR' with `void *'.
8540 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8541 * top.h (quit_cover): Likewise.
8542 * defs.h (catch_errors): Likewise.
8544 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8546 * defs.h (XMALLOC): Define.
8547 * gdb-events.sh (XMALLOC): Delete macro.
8548 * gdb-events.c, gdb-events.h: Regenerate.
8549 * gdbarch.sh (XMALLOC): Delete macro.
8550 * gdbarch.c: Regenerate.
8551 * serial.c (XMALLOC): Delete macro.
8552 * ui-file.c (XMALLOC): Ditto.
8553 * ser-unix.h (XMALLOC): Ditto.
8554 * sh-tdep.c (XMALLOC): Ditto.
8555 * ui-out.c (XMALLOC): Ditto.
8556 * utils.c (XMALLOC): Ditto.
8557 * i386-tdep.c (XMALLOC): Ditto.
8558 * gdb-events.c (XMALLOC): Ditto.
8559 * d10v-tdep.c (XMALLOC): Ditto.
8560 * cli-out.c (XMALLOC): Ditto.
8562 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8563 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8564 * ui-file.c, ui-out.c: Ditto.
8566 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8568 * command.h (struct cmd_list_element): Add field context.
8569 (set_cmd_context, get_cmd_context): Declare.
8570 * cli/cli-decode.h: Ditto.
8571 * cli/cli-decode.c (get_cmd_context): New function.
8572 (set_cmd_context): New function.
8573 (add_cmd): Initialize context.
8574 Part of fixing PR gdb/145 and PR gdb/146.
8576 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8578 * cli/cli-decode.c (cmd_type): New function.
8579 * command.h (cmd_type): Declare.
8580 * infrun.c (set_schedlock_func): Call function cmd_type.
8581 * kod.c (kod_set_os): Call cmd_type.
8582 * cris-tdep.c (cris_version_update): Use function cmd_type.
8583 (cris_mode_update, cris_abi_update): Ditto.
8585 * command.h: (execute_cmd_post_hook): Declare.
8586 (execute_cmd_pre_hook): Declare.
8587 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8588 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8589 functions. Execute pre/post hook while ensuring that afterwords
8591 * top.c (execute_command): Use execute_cmd_post_hook, and
8592 execute_cmd_pre_hook to execute pre/post commands.
8593 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8595 (hook_stop_stub): Call execute_cmd_pre_hook.
8597 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8599 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8600 set'' and this leads to a core dump. Move xstrdup of
8601 operating_system to after check that it is not NULL.
8603 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8605 * kod.c (kod_set_os): Remove unnecessary check that
8606 ``command->type'' is set_cmd.
8608 * valprint.c (set_input_radix): Use input_radix.
8609 (set_output_radix): Use output_radix.
8610 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8613 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8615 * value.h (struct value): Delete field ``substring_addr''. Change
8616 aligner fields to force_doublest_align, force_longest_align,
8617 force_core_addr_align and force_pointer_aligh.
8619 * value.h (struct value): Fix typo in above change.
8621 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8623 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8624 to fix internal_error from ``maintenance print architecture''.
8626 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8628 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8629 for gcc versions after gcc-2.8.1.
8631 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8633 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8634 for method resolution. Restore adjustment of ``this'' pointer after
8635 calling value_struct_elt, which was accidentally removed during the
8638 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8640 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8642 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8644 * value.h (value_of_register): Update.
8646 2002-03-14 Richard Henderson <rth@redhat.com>
8648 * configure.in: Detect declaration for canonicalize_file_name.
8649 * utils.c (canonicalize_file_name): Declare, if needed.
8650 (gdb_realpath): Prefer realpath if available and usable.
8651 * config.in, configure: Rebuild.
8653 2002-03-14 Richard Henderson <rth@redhat.com>
8655 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8656 a constant array bound.
8658 * MAINTAINERS: Add myself to write-after-approval.
8660 2002-03-14 Michael Snyder <msnyder@redhat.com>
8662 * symfile.c (syms_from_objfile): Return immediately if no syms.
8663 (symbol_file_add): Return immediately if no syms.
8664 (find_sym_fns): Return immediately if no syms.
8666 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8668 * gdbserver/remote-util.c (remote_open): Print remote-side's
8669 IP address when remote debugging over the network.
8671 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8673 * config/sparc/fbsd.mh: Fix copyright.
8674 * config/sparc/fbsd.mt: Likewise.
8676 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8678 * MAINTAINERS: Fix typo in name of gdb warnings option.
8679 (x86-64): Fix formating so that this can be parsed by awk.
8681 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8683 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8684 * defs.h: Include "gdb/signals.h".
8685 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8687 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8689 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8690 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8693 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8694 Don Howard <dhoward@redhat.com>
8696 * mips-tdep.c (ST0_FR): Define.
8697 (mips2_fp_compat): New function, temporarily disabled.
8698 (mips_read_fp_register_single): New function.
8699 (mips_read_fp_register_double): New function.
8700 (mips_print_register): Use them.
8701 (do_fp_register_row): Likewise.
8703 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8705 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8708 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8710 * stabsread.c (read_member_functions): Fix is_stub test for
8711 static member functions, improve comment.
8713 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8715 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8716 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8717 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8718 commands that set boolean values.
8719 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8720 (arm_rdi_resume): Always initialize PC.
8721 (arm_rdi_open): Don't use rslt as a boolean.
8722 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8723 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8724 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8725 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8727 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8729 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8730 * configure: Rebuilt.
8732 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8734 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8735 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8737 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8739 * cli/cli-decode.c (set_cmd_completer): New function.
8740 * command.h (set_cmd_completer): Declare.
8741 * cli/cli-decode.h (set_cmd_completer): Ditto.
8743 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8744 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8745 * win32-nat.c (_initialize_inftarg): Ditto.
8746 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8747 * proc-api.c (_initialize_proc_api): Ditto.
8748 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8749 * source.c (_initialize_source): Ditto.
8750 * exec.c (_initialize_exec): Ditto.
8751 * solib.c (_initialize_solib): Ditto.
8752 * top.c (init_main): Ditto.
8753 * tracepoint.c (_initialize_tracepoint): Ditto.
8754 * symfile.c (_initialize_symfile): Ditto.
8755 * printcmd.c (_initialize_printcmd): Ditto.
8756 * infcmd.c (_initialize_infcmd): Ditto.
8757 * corefile.c (_initialize_core): Ditto.
8759 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8761 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8763 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8765 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8767 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8769 * NEWS: Update headings, 5.2 has branched.
8771 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8773 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8774 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8775 (register_addr, REGISTER_RAW_SIZE): Likewise.
8776 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8777 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8779 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8781 * MAINTAINERS (x86-64): Add myself.
8782 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8783 changed value_ptr -> struct value *
8785 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8787 * configure.host (sparc64-*-freebsd): Add.
8788 * configure.tgt: Likewise.
8789 * config/sparc/fbsd.mh: New file.
8790 * config/sparc/fbsd.mt: Likewise.
8791 * config/sparc/nm-fbsd.h: Likewise.
8792 * config/sparc/tm-fbsd.h: Likewise.
8794 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8796 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8797 regformats/reg-s390x.dat.
8799 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8801 * utils.c: Add FIXME explaining true/false problem.
8803 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8805 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8807 2002-02-28 Michael Chastain <mec@shout.net>
8809 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8811 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8813 * gdbserver/linux-s390-low.c: New file.
8814 * regformats/reg-s390.dat: New file.
8815 * regformats/reg-s390x.dat: New file.
8816 * gdbserver/configure.srv: Add S/390.
8817 * gdbserver/Makefile.in: Add S/390.
8818 * configure.tgt: Enable gdbserver for S/390.
8820 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8822 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8823 first line of the doc string for "info dos", except at the end of
8824 the sentence, since the short help stops at the first period.
8826 2002-02-28 Jason Merrill <jason@redhat.com>
8828 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8830 2002-02-27 Fred Fish <fnf@redhat.com>
8832 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8833 comment (dumy -> dummy).
8835 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8837 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8839 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8841 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8843 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8845 * gdbserver/acconfig.h: New file.
8846 * gdbserver/i387-fp.c: New file.
8847 * gdbserver/i387-fp.h: New file.
8848 * gdbserver/linux-x86-64.c: New file.
8849 * regformats/reg-x86-64.dat: New file.
8850 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8851 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8852 * gdbserver/configure.in: Add support for regsets.
8853 * gdbserver/config.in: Regenerate.
8854 * gdbserver/configure: Regenerate.
8855 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8856 * gdbserver/linux-low.h: New file.
8857 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8859 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8860 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8861 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8862 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8863 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8864 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8865 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8866 "i387-fp.h". Add PTRACE_GETREGS and friends.
8867 * gdbserver/regcache.c (supply_register): New function.
8868 (supply_register_by_name): New function.
8869 (collect_register): New function.
8870 (collect_register_by_name): New function.
8872 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8874 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8875 (config.status): Add configure.srv dependency.
8876 (server_h): Add config.h dependency.
8878 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8880 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8881 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8882 * gdbserver/configure.srv: Change i386-*-linux* to use
8885 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8887 * x86-64-tdep.c: Re-indent. Update copyright date.
8889 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8891 From Michal Ludvig <mludvig@suse.cz>:
8892 * x86-64-tdep.c (value.h): Delete.
8893 (gdb_assert.h): Include.
8894 (x86_64_register_convert_to_virtual,
8895 x86_64_register_convert_to_raw ): Add check which lets only
8896 floating-point values to be converted.
8897 (value_push): Delete.
8898 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8899 (i386_gdbarch_init): Number of register_bytes fixed.
8901 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8903 * MAINTAINERS: Add x86-64 target.
8905 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8907 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8908 * osfsolib.c (solib_map_sections): Ditto.
8909 * irix5-nat.c (solib_map_sections): Ditto.
8910 * corelow.c (gdb_check_format): Ditto.
8911 * symfile.c (symfile_bfd_open): Ditto.
8912 * solib.c (solib_map_sections): Ditto.
8915 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8917 * remote.c (_initialize_remote): By default, disable ``e'' and
8918 ``E'' step out-of-range packets.
8920 2002-02-26 Andreas Schwab <schwab@suse.de>
8922 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8923 m68k_linux_frame_saved_pc.
8924 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8926 (SIGCONTEXT_PC_OFFSET): Remove.
8927 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8928 m68k_linux_sigtramp_saved_pc): New functions.
8929 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8930 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8931 (UCONTEXT_PC_OFFSET): Define.
8932 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8933 non-RT and RT signal trampolines.
8935 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8937 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8938 (TARGET_NBPG, STACK_END_ADDR): Delete
8939 (VARIABLES_INSIDE_BLOCK): Delete.
8941 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8943 * utils.c (perror_with_name): Make string parameter constant.
8944 (print_sys_errmsg): Ditto.
8946 * defs.h (perror_with_name): Update.
8947 (print_sys_errmsg): Update.
8950 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8952 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8953 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8955 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8957 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8958 if it already matches the current architecture from the exec file.
8959 Include arch-utils.h for gdbarch_info_init prototype.
8960 * Makefile.in (rs6000-nat.o): Update dependencies.
8962 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8964 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8965 list of exported variables.
8967 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8969 * gdbserver/configure.srv: New file.
8970 * gdbserver/configure.in: Use configure.srv instead
8971 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8973 * gdbserver/configure: Regenerated.
8974 * gdbserver/terminal.h: New file.
8975 * gdbserver/Makefile.in: Update for configure changes. Remove
8976 more unneeded include paths.
8978 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8980 From wiz at danbala:
8981 * config/sparc/tm-sp64.h: Fix grammar and typos.
8984 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8986 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8987 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8988 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8989 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8990 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8991 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8992 * s390-tdep.c: Ditto.
8993 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8994 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8995 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8996 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8997 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8998 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8999 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9000 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9001 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9002 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9005 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9007 * lin-thread.c: Delete file.
9008 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9009 to gdb_proc_service.h.
9010 * configure: Re-generate.
9012 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9013 * serial.c (serial_open): Delete check for "ocd".
9016 * Makefile.in (linux-thread.o): Delete target.
9017 * linux-thread.c: Delete file.
9019 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9020 renamed SH files to be consistent.
9022 * symtab.c (sort_search_symbols): Use xfree.
9024 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9026 * arm-linux-tdep.c (arm_linux_init_abi): Register
9027 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9028 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9029 definition with undef, since we don't want the sysvr4 definition.
9030 (SKIP_TRAMPOLINE_CODE): Likewise.
9032 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9034 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9036 * configure.in: (AC_CHECK_FUNCS) Added test for
9037 canonicalize_file_name Regenerated.
9038 * config.in, configure: Regenerated.
9039 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9040 defined use canonicalize_file_name.
9042 2002-02-23 Michael Chastain <mec@shout.net>
9044 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9046 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9048 * README: Remove references to cygnus.com.
9049 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9050 dot com'' form. Remove references to cygnus.com and sourceware.
9052 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9054 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9055 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9056 1003.1-2001 no longer allows "head -1".
9057 * gdb/Makefile.in (version.c): Likewise.
9058 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9059 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9060 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9062 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9064 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9065 * command.h (cmd_cfunc_eq): Declare.
9066 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9068 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9069 ``struct cmd_list_element *''.
9070 * cli/cli-cmds.c (is_complete_command): Update. Use
9072 * top.c (execute_command): Pass the command to
9073 is_complete_command.
9074 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9076 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9078 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9079 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9080 architecture defines.
9081 * s390-tdep.c (s390_gdbarch_init): Likewise.
9083 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9085 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9086 (arm_linux_push_arguments): Likewise.
9087 (arm_linux_init_abi): Register them. Also register linux-specific
9089 (find_minsym_and_objfile): Use strcmp, not STREQ.
9090 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9091 (arm_linux_call_dummy_words): Delete declaration.
9092 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9093 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9095 (LOWEST_PC): Delete.
9097 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9099 * maint.c (print_section_info): Do not prepend `0x' to filepos
9100 output, it will be handled by local_hex_string_custom.
9102 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9104 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9105 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9106 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9108 2002-02-22 Jim Blandy <jimb@redhat.com>
9110 Indicate that the bcache functions don't change the strings
9112 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9113 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9115 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9117 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9119 2002-02-21 Christopher Faylor <cgf@redhat.com>
9121 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9122 find the complete path to a loaded DLL.
9124 2002-02-21 Fred Fish <fnf@redhat.com>
9126 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9127 that marks the end of the range of a function, enter a line number
9128 entry that has a line number of zero and a PC offset that matches
9129 the end of the function. This starts a range of PC's for which no
9130 line number information is known.
9131 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9132 PC's for which no line number info is found (line number is zero)
9133 then we didn't find any valid line information.
9134 * symtab.h: Document use of zero line number entry.
9136 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9138 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9139 (have_ptrace_getvrregs): Define for run time checks.
9140 (gdb_vrregset_t): New type for Altivec register handling.
9141 (fetch_register, store_register): Fetch/store altivec register
9143 (fetch_altivec_register, store_altivec_register): New functions.
9144 (supply_vrregset, fill_vrregset): New functions.
9145 (fetch_altivec_registers, store_altivec_registers): New functions.
9146 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9149 2002-02-21 Jiri Smid <smid@suse.cz>
9151 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9153 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9155 * Makefile.in (armnbsd-nat.o): Update dependencies.
9156 * armnbsd-nat.c (supply_gregset): New function. Common code to
9157 supply the integer register set.
9158 (supply_fparegset): New function. Similar for FPA registers.
9159 (fetch_regs, fetch_fp_regs): Use them.
9160 (fetch_core_registers): Likewise.
9161 (fetch_elfcore_registers): New function.
9162 (arm_netbsd_elfcore_fns): New core-file type specification.
9163 (_initialize_arm_netbsd_nat): Register it.
9165 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9167 * armnbsd-nat.c: Include gdbcore.h.
9168 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9169 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9170 'void' to declaration, to shut up ARI.
9171 (fetch_core_registers): Make static. Rewrite using supply_register.
9172 (arm_netbsd_core_fns): New core-file type specification.
9173 (_initialize_arm_netbsd_nat): New function.
9175 2002-02-21 Christopher Faylor <cgf@redhat.com>
9177 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9180 2002-02-20 Christopher Faylor <cgf@redhat.com>
9182 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9185 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9187 * jv-exp.y (parse_number): Change type of implicit longs
9188 to builtin_type_uint64.
9190 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9192 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9193 to be an integer instead of a `union wait'.
9195 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9197 * mips-linux-nat.c: Call the operating system GNU/Linux.
9198 * mips-linux-tdep.c: Likewise.
9199 * mips-tdep.c: Likewise.
9201 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9204 * jv-exp.y (parse_number): Handle 64-bit integers.
9206 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9208 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9209 AC_STDC_HEADERS to AC_HEADER_STDC.
9210 * gdbserver/configure: Regenerated.
9212 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9214 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9216 * sparc-tdep.c (get_longjmp_target): Likewise.
9218 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9220 * News: Add news about ARM and Multi-arch. Mention the new target
9223 2002-02-19 Jim Blandy <jimb@redhat.com>
9225 * stabsread.c (error_type_complaint): Improve error message.
9227 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9229 * gdbserver/README: Update documentation.
9230 * gdbserver/configure.in: Update configury to match documentation.
9231 * gdbserver/Makefile.in: Likewise.
9232 * gdbserver/configure: Regenerated.
9233 * gdbserver/aclocal.m4: New file, generated by aclocal.
9234 * gdbserver/config.in: New file, generated by autoheader.
9236 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9238 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9241 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9243 * arm-tdep.h (enum arm_float_model): New enum.
9244 (struct gdbarch_tdep): Add fp_model.
9245 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9246 up floating-point conversions until we know the floating-point model
9247 in use by the inferior. Don't complain about being unable to
9248 determine the ABI of the inferior when we don't have one.
9249 (arm_extract_return_value): Support different floating-point models.
9250 (arm_store_return_value): Likewise.
9251 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9253 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9255 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9257 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9258 of ``current_gdbarch''.
9260 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9262 * armnbsd-nat.c : ANSIfy all function declarations.
9263 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9264 (fetch_inferior_registers): Re-implement in terms of above.
9265 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9266 (store_inferior_registers): Re-implement in terms of above.
9268 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9270 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9272 * arm-linux-tdep.c: Likewise.
9273 * config/arm/tm-linux.h: Likewise.
9275 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9277 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9278 * config/arm/nbsd.mt (TM_FILE): Delete.
9279 * config/arm/tm-nbsd.h: Delete.
9281 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9283 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9284 Initialize CALL_DUMMY_LENGTH.
9286 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9288 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9290 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9291 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9292 defines one thing and that is incorrect for this port.
9293 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9295 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9297 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9299 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9301 * win32-nat.c (display_selector): New function. Displays information
9302 about the information returned by GetThreadSelectorEntry API function.
9303 (display_selectors): New function. Displays the infomation of
9304 the selector given as argument, or of CS, DS ans FS selectors
9305 if no argument is given.
9306 ( _initialize_inftarg): Add "w32" as info prefix command.
9307 Add "info w32 selector" as command calling display_selectors.
9309 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9311 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9312 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9315 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9317 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9319 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9321 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9322 (arm_fix_call_dummy): Call it.
9323 (arm_call_dummy_breakpoint_offset): Delete.
9324 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9325 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9327 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9329 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9330 Default to func_frame_chain_valid.
9331 * gdbarch.h, gdbarch.c: Re-generate.
9332 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9334 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9336 * ppc-linux-nat.c: Update copyright.
9337 (fetch_register, store_register): Add tid parameter, don't compute
9339 (fetch_ppc_registers, store_ppc_registers): Add tid
9340 parameter. Pass it along to callees.
9341 (fetch_inferior_registers, store_inferior_registers): Compute tid
9342 here, and pass it to calleed functions.
9343 (fill_gregset, supply_fpregset): Clean up formatting.
9345 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9347 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9348 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9350 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9352 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9353 * gdbarch.c gdbarch.h: Regenerate.
9354 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9356 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9357 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9358 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9360 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9361 * arm-tdep.c (arm_get_longjmp_target): New function.
9362 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9363 this to a positive value register arm_get_longjmp_target as the
9365 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9366 (arm_linux_init_abi): Set up longjmp description in tdep.
9367 * armnbsd-nat.c (get_longjmp_target): Delete.
9368 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9369 description in tdep.
9370 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9371 (get_longjmp_target): Delete declaration.
9372 (GET_LONGJMP_TARGET): Delete.
9373 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9374 (GET_LONGJMP_TARGET): Delete.
9376 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9378 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9379 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9380 of ``current_gdbarch''.
9382 2002-02-17 Tom Tromey <tromey@redhat.com>
9384 * cli/cli-cmds.c (compare_strings): New function.
9385 (complete_command): Only print each unique item once.
9386 * completer.h (complete_line): Declare.
9387 * completer.c (complete_line): New function.
9388 (line_completion_function): Use it.
9390 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9392 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9393 * gdbarch.h, gdbarch.c: Re-generate.
9395 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9397 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9399 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9401 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9402 * valops.c (value_arg_coerce): Don't take the address of a reference
9403 to convert an argument to a reference.
9405 2002-02-15 Christopher Faylor <cgf@redhat.com>
9407 * win32-nat.c (get_image_name): New function.
9408 (handle_load_dll): Use get_image_name function.
9409 (get_child_debug_event): Avoid registering debug events until possibly
9410 execed process is started.
9411 (child_create_inferior): Allow invocation via shell so that command
9412 line redirection, etc. works ok.
9413 (_initialize_inftarg): Add new command: "set shell" to control whether
9414 a shell is used to start a process.
9416 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9418 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9419 instead of find_register_by_number.
9420 (cannot_store_register): Likewise.
9422 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9424 * dwarf2read.c: Replace fprintf (stderr, ...) by
9425 fprintf_unfiltered (gdb_stderr, ...).
9427 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9429 * gdbserver/gdbserver.1: Document --attach.
9431 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9433 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9435 * arm-tdep.c (arm_default_arm_le_breakpoint)
9436 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9437 (arm_default_thumb_be_breakpoint): New. Initialize them from
9438 traditional breakpoint defines.
9439 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9440 (arm_gdbarch_init): Initialize new breakpoint variables.
9441 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9442 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9443 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9444 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9446 (arm_netbsd_init_abi_common): ... here; new function.
9447 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9448 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9449 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9450 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9452 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9454 * arm-tdep.h (enum arm_abi): New enum.
9455 (struct gdbarch_tdep): New structure.
9456 (LOWEST_PC): Provide a default.
9457 (arm_gdbarch_register_os_abi): Declare new function.
9458 * arm-tdep.c (arm_abi_names): New array.
9459 (process_note_abi_tag_sections): New function.
9460 (get_elfosabi): New function.
9461 (arm_gdbarch_register_os_abi): New function.
9462 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9463 support for that ABI has been built in, then call the appropriate
9464 configuration routine. Use gdbarch_num_regs() to get the number
9466 (arm_dump_tdep): New function.
9467 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9468 place-holder functions.
9469 (_initialize_arm_tdep): Register them.
9470 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9472 * armnbsd-tdep.c: New file.
9473 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9474 * config/arm/nbsd.mt (TDEPFILES): Add it.
9475 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9477 * armnbsd-nat.c: Include regcache.h.
9478 * Makefile.in (armnbsd-nat.o): Update dependency list.
9480 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9482 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9484 * gdbserver/Makefile.in: Fix typos in target rules.
9486 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9488 Fix part of PR gdb/267.
9489 * linespec.c (find_methods): Handle constructors specially for now.
9491 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9493 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9495 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9496 standard_coerce_float_to_double().
9498 2002-02-14 Christopher Faylor <cgf@redhat.com>
9500 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9503 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9505 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9506 find_variant_by_name, because it confuses the multiarch
9507 framework. Return NULL if there isn't an architecture with the
9508 user supplied name, instead of forcing a different one without
9509 recording the change with the multiarch machinery.
9510 (find_variant_by_name): Delete.
9512 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9514 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9515 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9517 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9519 * stack.c (print_frame_info_base): When calling
9520 print_frame_info_listing_hook, set current_source_symtab.
9522 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9524 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9525 and remove unused $(INCLUDE_DIR).
9526 Add regcache.c to OBS.
9527 Add generated register protocol files to clean target.
9528 Update dependencies for new objects, obsolete old target code.
9530 * gdbserver/linux-low.c: Remove all platform-specific code to
9531 new files. Remove various dead code. Update to use regcache
9533 * gdbserver/remote-utils.c (fromhex): Add return statement
9535 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9537 (input_interrupt): Add integer parameter to match prototype
9538 of a signal handler.
9539 (outreg): Use register_data ().
9540 (prepare_resume_reply): Use gdbserver_expedite_regs.
9541 * gdbserver/server.c (main): Dynamically allocate own_buf because
9542 PBUFSIZ is no longer constant. Use registers_to_string () and
9543 registers_from_string ().
9544 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9545 for error (), fatal (), and warning (). Update definition of
9546 PBUFSIZ to use regcache functionality. Add include guard.
9547 * gdbserver/utils.c (fatal): Add missing ``const''.
9548 (warning): New function.
9550 * regformats/regdat.sh: Include "regcache.h" in generated files.
9551 Provide init_registers () function.
9552 * regformats/regdef.h: Add prototype for set_register_cache ().
9555 * gdbserver/linux-arm-low.c: New file.
9556 * gdbserver/linux-i386-low.c: New file.
9557 * gdbserver/linux-ia64-low.c: New file.
9558 * gdbserver/linux-m68k-low.c: New file.
9559 * gdbserver/linux-mips-low.c: New file.
9560 * gdbserver/linux-ppc-low.c: New file.
9561 * gdbserver/linux-sh-low.c: New file.
9563 * gdbserver/regcache.c: New file.
9564 * gdbserver/regcache.h: New file.
9566 * gdbserver/low-linux.c: Removed obsolete file.
9568 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9570 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9571 * config/i386/linux.mt: Likewise.
9572 * config/ia64/linux.mt: Likewise.
9573 * config/m68k/linux.mh: Likewise.
9574 * config/powerpc/linux.mh: Likewise.
9575 * config/mips/linux.mt: Likewise.
9577 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9579 * config/i386/i386lynx.mh: Mark gdbserver variables
9580 as (currently) obsolete for this target.
9581 * config/i386/nbsd.mt: Likewise.
9582 * config/i386/nbsdelf.mt: Likewise.
9583 * config/m32r/m32r.mt: Likewise.
9584 * config/m68k/m68klynx.mh: Likewise.
9585 * config/m68k/nbsd.mt: Likewise.
9586 * config/m68k/sun3os4.mh: Likewise.
9587 * config/mips/vr5000.mt: Likewise.
9588 * config/ns32k/nbsd.mt: Likewise.
9589 * config/pa/hppabsd.mh: Likewise.
9590 * config/pa/hppaosf.mh: Likewise.
9591 * config/powerpc/nbsd.mt: Likewise.
9592 * config/rs6000/rs6000lynx.mh: Likewise.
9593 * config/s390/s390.mt: Likewise.
9594 * config/s390/s390x.mt: Likewise.
9595 * config/sparc/sparclynx.mh: Likewise.
9596 * config/sparc/sun4os4.mh: Likewise.
9597 * config/i386/x86-64linux.mt: Likewise.
9598 * config/sparc/linux.mh: Likewise.
9600 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9602 * configure.tgt: Configure gdbserver only for known working
9603 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9604 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9605 SUBDIRS if it is configured. Update comment for ${nativefile}.
9606 * configure: Regenerated.
9608 2002-02-13 Michael Snyder <msnyder@redhat.com>
9610 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9612 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9613 (default_gcore_mach): Just return 0, work around a problem in bfd.
9614 (default_gcore_target): OK to return NULL if exec_bfd is null.
9615 (make_mem_sec): Use a cast, avoid a warning.
9617 * procfs.c (find_memory_regions_callback): Use a cast instead of
9618 calling host_pointer_to_address (which complains if
9619 sizeof (host pointer) != sizeof (target pointer)).
9620 (procfs_make_note_section): Avoid overflow in psargs string.
9622 * procfs.c (procfs_make_note_section): Make the default
9623 implementation return an error.
9625 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9627 * procfs.c (procfs_make_note_section): Provide a default definition
9628 (for alpha-dec-osf4.0f). Fix typos.
9630 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9632 * linux-proc.c: Add include of regcache.h.
9633 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9635 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9637 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9638 * memattr.c (create_mem_region): Disallow useless empty region.
9639 Regions are half-open intervals, so allow [A..B) [B..C) as
9642 2002-02-13 Michael Chastain <mec@shout.net>
9644 * defs.h: Kill CONST_PTR.
9645 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9646 * c-lang.c (c_builtin_types): Likewise.
9647 * ch-lang.c (ch_builtin_types): Likewise.
9648 * f-lang.c (f_builtin_types): Likewise.
9649 * language.c (unknown_builtin_types): Likewise.
9650 * m2-lang.c (m2_builtin_types): Likewise.
9651 * p-lang.c (pascal_builtin_types): Likewise.
9652 * scm-lang.c (c_builtin_types): Likewise.
9654 2002-02-13 Keith Seitz <keiths@redhat.com>
9656 * arm-tdep.h (arm_get_next_pc): Add declaration.
9658 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9660 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9661 with other related struct-returning functions.
9662 (arm_extract_struct_value_address): New function.
9663 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9664 initialize float_format, double_format and long_double_format as
9665 appropriate to the endianness of the target.
9666 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9667 (arm_use_struct_convention): Delete declaration.
9668 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9670 2002-02-13 Keith Seitz <keiths@redhat.com>
9672 * defs.h (core_addr_to_string_nz): New function.
9674 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9676 Apply missing bits of 2002-01-15 patch.
9677 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9678 (fill_fpregset): Use i387_fill_fsave.
9680 2002-02-12 Keith Seitz <keiths@redhat.com>
9682 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9683 (core_addr_to_string_nz): New function.
9685 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9687 * arm-linux-nat.c: Really include arm-tdep.h.
9688 * config/arm/tm-linux.h (struct type, struct value): Declare.
9690 2002-02-11 Michael Snyder <msnyder@redhat.com>
9692 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9693 (gcore section): Ifdef for Solaris and Unixware only.
9694 (procfs_do_thread_registers): Unixware needs one lwpstatus
9695 per thread (not one prstatus or pstatus).
9696 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9697 not over all gdb threads. For unixware, call elfcore_write_pstatus
9698 once before iterating over threads.
9700 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9702 * arm-tdep.h: New file.
9703 * arm-tdep.c: Include arm-tdep.h.
9704 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9705 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9706 (arm_print_float_info, arm_register_type, convert_to_extended)
9707 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9708 (arm_extract_return_value, arm_register_name): Make static.
9709 (arm_software_single_step): Similarly. Fix types in declaration.
9710 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9711 (arm_store_return_value, arm_store_struct_return): New functions.
9712 (arm_gdbarch_init): Register the above functions. Also register
9713 call_dummy_start_offset, sizeof_call_dummy_words,
9714 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9715 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9716 max_register_virtual_size, register_size. Set up
9717 prologue_cache.saved_regs here, rather than ...
9718 (_initialize_arm_tdep): ... here.
9719 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9721 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9722 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9723 (arm_print_float_info, arm_register_type, convert_to_extended)
9724 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9725 (arm_extract_return_value, arm_register_name): Delete declarations.
9726 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9727 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9728 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9729 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9730 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9731 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9732 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9733 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9734 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9735 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9736 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9737 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9739 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9740 * remote-rdi.c remote-rdp.c: Likewise.
9741 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9742 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9743 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9746 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9747 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9748 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9749 from non-ARM_ prefixed definitions.
9750 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9752 * remote-rdi.c remote-rdp.c: Likewise.
9753 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9755 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9757 * arm-tdep.c (arm_frameless_function_invocation)
9758 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9759 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9760 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9761 (arm_pop_frame, arm_get_next_pc): Make static.
9762 (arm_gdbarch_init): Register above in gdbarch structure.
9763 (arm_read_fp): Renamed from arm_target_read_fp.
9764 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9765 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9766 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9767 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9768 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9769 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9770 (arm_pc_is_thumb_dummy): Delete declarations.
9771 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9772 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9773 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9774 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9776 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9778 * symtab.c (compare_search_syms): New function.
9779 (sort_search_symbols): New function.
9780 (search_symbols): Sort symbols after searching rather than
9783 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9785 * NEWS: Linux -> GNU/Linux.
9787 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9789 * gdbarch.sh: For for level one methods, disallow a definition
9790 when partially multi-arched. Add comments explaining rationale.
9791 * gdbarch.h: Re-generate.
9793 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9795 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9798 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9800 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9802 * gdbarch.c: Re-generate.
9804 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9806 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9807 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9810 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9812 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9814 (PUSH_ARGUMENTS): Switch to using predefault.
9815 * gdbarch.c: Regenerate.
9817 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9819 * valops.c (PUSH_ARGUMENTS): Delete definition.
9820 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9821 partial. Default to default_push_arguments.
9822 * gdbarch.h, gdbarch.c: Regenerate.
9824 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9826 * defs.h (throw_exception): Rename return_to_top_level. Update
9828 * utils.c (error_stream, internal_verror, quit): Ditto.
9829 * top.c (throw_exception, catcher): Ditto.
9830 * sparclet-rom.c (sparclet_load): Ditto.
9831 * remote.c (interrupt_query, minitelnet): Ditto.
9832 * remote-sds.c (interrupt_query): Ditto.
9833 * remote-mips.c (mips_error, mips_kill): Ditto.
9834 * ocd.c (interrupt_query): Ditto.
9835 * monitor.c (monitor_interrupt_query): Ditto.
9836 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9837 * target.h: Update comment.
9839 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9841 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9843 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9844 default_double_format.
9845 * gdbarch.h, gdbarch.c: Re-generate.
9846 * findvar.c (floatformat_unknown): Delete variable definition.
9847 * doublest.h (floatformat_unknown): Delete variable declaration.
9849 2002-02-09 Jim Blandy <jimb@redhat.com>
9851 * stabsread.c (read_type): Add code to parse Sun's syntax for
9852 prototyped function types.
9854 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9856 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9857 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9859 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9861 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9862 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9863 now _initialize_xcoffsolib gets called again and overrides the
9864 commands from solib.c in a native configuration.
9866 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9868 * doublest.c (store_typed_floating): Don't try to return a value.
9871 2002-02-08 Jim Blandy <jimb@redhat.com>
9873 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9874 is prototyped and has no arguments, print its argument list as
9877 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9879 * MAINTAINERS (write-after-approval): Add myself.
9880 (paper-trail): I've escaped!
9882 2002-02-08 Christopher Faylor <cgf@redhat.com>
9884 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9886 (_initialize_check_for_gdb_ini): Ditto.
9888 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9890 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9891 xaprintf -> xasprintf.
9893 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9895 * win32-nat.c: Remove use of printf and sprintf functions.
9897 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9899 * arm-tdep.c (arm_frame_chain_valid): Make static.
9900 (arm_push_arguments): Likewise.
9901 (arm_gdbarch_init): New function.
9902 (_initialize_arm_tdep): Call it.
9903 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9904 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9905 (FRAME_CHAIN_VALID): Delete.
9906 (arm_frame_chain_valid): Delete declaration.
9907 (PUSH_ARGUMENTS): Delete.
9908 (arm_push_arguments): Delete declaration.
9909 (CALL_DUMMY_P): Delete.
9911 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9912 Corinna Vinschen <vinschen@redhat.com>
9914 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9915 on builtin float types.
9917 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9919 * utils.c: Include <curses.h> before "bfd.h".
9920 * tui/tui-hooks.c: Likewise.
9921 * tui/tui.c: Likewise.
9922 * tui/tuiCommand.c: Likewise.
9923 * tui/tuiData.c: Likewise.
9924 * tui/tuiDataWin.c: Likewise.
9925 * tui/tuiDisassem.c: Likewise.
9926 * tui/tuiGeneralWin.c: Likewise.
9927 * tui/tuiIO.c: Likewise.
9928 * tui/tuiLayout.c: Likewise.
9929 * tui/tuiRegs.c: Likewise.
9930 * tui/tuiSource.c: Likewise.
9931 * tui/tuiSourceWin.c: Likewise.
9932 * tui/tuiStack.c: Likewise.
9933 * tui/tuiWin.c: Likewise.
9935 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9937 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9938 to include space for pseudoregs as well. Update loops accordingly.
9939 (sh_fp_frame_init_saved_regs): Ditto.
9940 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9942 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9944 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9945 Add Richard Earnshaw to Arm maintainers.
9947 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9949 * defs.h (warning_begin): Delete declaration.
9951 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9954 2002-02-07 Michael Snyder <msnyder@redhat.com>
9956 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9957 Logic bug, remove misplaced else.
9959 2002-02-07 Klee Dienes <klee@apple.com>
9961 * fork-inferior.c (fork_inferior): Add '!' to the list of
9962 characters that need to be quoted when building a string for the
9963 shell. Quote '!' specifically with a backslash, since CSH chokes
9964 when trying to evaluate "str!str".
9966 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9968 * rdi-share/host.h: Only provide a typedef for bool if it is not
9971 2002-02-04 Michael Snyder <msnyder@redhat.com>
9973 * breakpoint.h (enum bptype): Add new overlay event bp type.
9974 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9976 * breakpoint.c (create_internal_breakpoint): New function.
9977 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9978 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9979 (create_thread_event_breakpoint): Ditto.
9980 (create_solib_event_breakpoint): Ditto.
9981 (create_overlay_event_breakpoint): New function.
9982 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9983 (update_breakpoints_after_exec): Delete and re-initialize
9984 overlay event breakpoints after an exec. Add FIXME comment
9985 about longjmp breakpoint.
9986 (print_it_typical): Ignore overlay event breakpoints.
9987 (print_one_breakpoint): Ditto.
9989 (bpstat_what): Do not stop for overlay event breakpoints.
9990 (delete_breakpoint): Don't delete overlay event breakpoints.
9991 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9992 (breakpoint_re_set): Re-create overlay event breakpoint.
9994 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9995 (overlay_manual_command): Disable overlay breakpoints.
9996 (overlay_off_command): Disable overlay breakpoints.
9998 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10000 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10001 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10002 to here from config/tm-arm.h.
10003 (coff_sym_is_thumb): Make static.
10004 (arm_elf_make_msymbol_special): New function.
10005 (arm_coff_make_msymbol_special): New function.
10006 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10007 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10008 (coff_sym_is_thumb): Delete declaration.
10009 (arm_elf_make_msymbol_special): Declare.
10010 (arm_coff_make_msymbol_special): Declare.
10011 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10012 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10014 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10016 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10018 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10020 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10021 * gdbarch.c gdbarch.h: Regenerate.
10022 * arch-utils.c (default_print_float_info): New function.
10023 * arch-utils.h (default_print_float_info): Prototype it.
10024 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10025 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10026 (PRINT_FLOAT_INFO): Document it.
10028 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10029 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10030 (PRINT_FLOAT_INFO): Define.
10032 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10034 * win32-nat.c (_initialize_check_for_gdb_ini):
10035 Add typecast to sprintf argument to suppress a warning.
10037 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10039 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10040 to allow easier handling of pass state.
10041 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10042 that gives exception name and address.
10043 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10044 and set last_sig value to ourstatus->value.sig. Some missing
10046 (child_continue): Correctly report continue_status.
10047 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10048 TARGET_SIGNAL_0 (new default value).
10049 (child_resume): consider sig argument passed to decide if
10050 the exception should be passed to debuggee or not.
10052 2002-02-05 Michael Snyder <msnyder@redhat.com>
10054 * regcache.c (fetch_register): Call target_fetch_register
10055 only if we don't call FETCH_PSEUDO_REGISTER.
10056 (store_register): Call target_store_register only if we
10057 don't call STORE_PSEUDO_REGISTER.
10059 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10061 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10062 ELF_MAKE_MSYMBOL_SPECIAL.
10063 * gdbarch.c, gdbarch.h: Regenerate.
10064 * arch-utils.c (default_make_msymbol_special): New function.
10065 * arch-utils.h (default_make_msymbol_special): Export.
10066 * elfread.c (elf_symtab_read): Compile use of
10067 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10069 * coffread.c (coff_symtab_read): Ditto, for
10070 COFF_MAKE_MSYMBOL_SPECIAL.
10072 2002-02-05 Jim Blandy <jimb@redhat.com>
10074 * solib-svr4.c (svr4_truncate_ptr): New function.
10075 (svr4_relocate_section_addresses): Do the address arithmetic with
10076 the appropriate truncation for target addresses, even when
10077 CORE_ADDR is larger than a target address.
10079 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10081 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10084 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10086 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10089 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10091 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10093 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10095 * gdbserver/linux-low.c: Remove unused include files.
10097 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10099 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10100 (read_inferior_memory): Use it.
10101 (write_inferior_memory): Likewise.
10103 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10105 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10106 grubbing through sys_errlist.
10108 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10110 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10112 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10113 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10115 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10117 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10118 (do_sfunc, set_cmd_sfunc): New functions.
10120 * command.h (struct cmd_list_element): Add field func.
10121 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10122 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10123 * cli/cli-decode.h: Ditto.
10125 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10126 (help_all, help_cmd_list): Ditto.
10127 (find_cmd, complete_on_cmdlist): Ditto.
10128 * top.c (execute_command): Ditto.
10130 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10133 * infcmd.c (notice_args_read): Fix function signature.
10135 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10136 * cli/cli-decode.c (add_set_cmd): Ditto.
10137 * utils.c (initialize_utils): Ditto.
10138 * maint.c (_initialize_maint_cmds): Ditto.
10139 * infrun.c (_initialize_infrun): Ditto.
10140 * demangle.c (_initialize_demangler): Ditto.
10141 * remote.c (add_packet_config_cmd): Ditto.
10142 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10143 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10144 * proc-api.c (_initialize_proc_api): Ditto.
10145 * kod.c (_initialize_kod): Ditto.
10146 * valprint.c (_initialize_valprint): Ditto.
10147 * top.c (init_main): Ditto.
10148 * infcmd.c (_initialize_infcmd): Ditto.
10149 * corefile.c (_initialize_core): Ditto.
10150 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10151 * arch-utils.c (initialize_current_architecture): Ditto.
10152 (_initialize_gdbarch_utils): Ditto.
10153 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10155 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10156 * wince.c (_initialize_inftarg): Ditto.
10157 * symfile.c (_initialize_symfile): Ditto.
10158 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10159 * language.c (_initialize_language): Ditto.
10160 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10162 2002-02-04 Michael Snyder <msnyder@redhat.com>
10164 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10166 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10168 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10169 Add rules for building the register data files.
10171 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10173 * regformats/regdat.sh: Add braces to the definition of
10174 expedite_regs_${arch}.
10176 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10178 * regformats/regdef.h (struct reg): Add comment describing the
10179 requirements for offset and size fields.
10181 2002-02-04 Andreas Schwab <schwab@suse.de>
10183 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10184 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10186 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10188 * gdbarch.sh (copyright): Update years in generated header.
10189 (SMASH_TEXT_ADDRESS): Add rule.
10190 * gdbarch.h, gdbarch.c: Re-generate.
10191 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10192 * dbxread.c: Likewise.
10193 * dwarfread.c: Likewise.
10194 * elfread.c: Likewise.
10195 * somread.c: Likewise.
10197 * arm-tdep.c (arm_smash_text_address): New function.
10198 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10200 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10202 Add support for hardware watchpoints on win32 native.
10203 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10204 CONTEXT_DEBUG_REGISTERS.
10205 (dr variable): New variable. Static array containing a local copy
10206 of debug registers.
10207 (debug_registers_changed): New variable. Reflects when debug registers
10208 are changed and need to be written to inferior.
10209 (debug_registers_used): New variable. Reflects when any debug register
10210 was set, used when new threads are created.
10211 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10213 (thread_rec): Set dr array if id is the thread of current_event .
10214 (child_continue, child_resume): Change the debug registers for all
10215 threads if debug_registers_changed.
10216 (child_add_thread): Change the debug registers if debug_registers_used.
10217 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10218 Link nm.h to new nm-cygwin.h file.
10219 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10220 of hardware registers.
10222 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10224 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10225 Restore behavour broken by 2002-01-20 Andrew Cagney
10226 <ac131313@redhat.com> IEEE_FLOAT removal.
10228 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10230 * c-valprint.c (c_val_print): Pass a proper valaddr to
10231 cp_print_class_method.
10232 * valops.c (search_struct_method): If there is only one method
10233 and args is NULL, return that method.
10235 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10237 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10238 accessing tag_name directly.
10240 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10242 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10243 of accessing tag_name directly.
10245 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10248 * gdbtypes.c (replace_type): New function.
10249 * gdbtypes.h (replace_type): Add prototype.
10250 * stabsread.c (read_type): Use replace_type.
10252 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10254 * Makefile.in (memattr.o): Add missing dependencies rule.
10256 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10258 * breakpoint.c (break_at_finish_command): Really export.
10259 (break_at_finish_at_depth_command): Ditto.
10260 (tbreak_at_finish_command): Ditto.
10261 * hppa-tdep.c: Include completer.h.
10262 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10263 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10265 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10267 * utils.c (do_write): New function.
10268 (error_stream): Rewrite combining the code from error_begin and
10270 (verror): Rewrite using error_stream.
10271 (error_begin): Delete function.
10273 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10275 * utils.c (error_begin): Make static.
10276 * defs.h (error_begin): Delete declaration.
10278 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10279 (decode_line_1): Use cplusplus_error instead of error_begin,
10280 cplusplus_hint and return_to_top_level.
10281 * coffread.c (coff_symfile_read): Use error instead of error_begin
10282 and return_to_top_level.
10283 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10285 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10287 * language.h (type_error, range_error): Make string parameter
10289 * language.c (warning_pre_print): Delete extern declaration.
10290 * dwarfread.c (warning_pre_print): Ditto.
10291 * language.c (type_error, range_error): Rewrite to use verror and
10292 vwarning instead of warning_begin.
10294 2002-02-01 Michael Snyder <msnyder@redhat.com>
10296 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10297 (set_ignore_count): Move misplaced comment back where it belongs.
10299 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10301 * command.h (NO_FUNCTION): Delete macro.
10302 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10303 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10304 * tracepoint.c (_initialize_tracepoint): Ditto.
10305 * cli/cli-decode.c (add_set_cmd): Ditto.
10306 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10308 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10310 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10311 Update ``this'' pointer when calling virtual functions.
10313 2002-02-01 Michael Snyder <msnyder@redhat.com>
10315 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10316 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10318 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10320 * regformats/reg-arm.dat: New file.
10321 * regformats/reg-i386.dat: New file.
10322 * regformats/reg-ia64.dat: New file.
10323 * regformats/reg-m68k.dat: New file.
10324 * regformats/reg-mips.dat: New file.
10325 * regformats/reg-ppc.dat: New file.
10326 * regformats/reg-sh.dat: New file.
10327 * regformats/regdef.h: New file.
10328 * regformats/regdat.sh: New file.
10330 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10332 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10333 (arm_frame_args_address, arm_frame_locals_address): New functions.
10334 (arm_frame_num_args): New function.
10335 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10336 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10337 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10339 2002-01-31 Michael Snyder <msnyder@redhat.com>
10341 * breakpoint.c (break_at_finish_command): Export.
10342 (break_at_finish_at_depth_command): Export.
10343 (tbreak_at_finish_command): Export.
10344 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10345 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10346 "tbreak" commands, which are HPPA specific.
10348 * printcmd.c (disassemble_command): Remove an ancient
10349 artifact of an old merge.
10351 * symfile.h (enum overlay_debugging_state):
10352 Define enum constant values for overlay mode.
10353 * symfile.c (overlay_debugging): Use enums instead of literals.
10354 (overlay_is_mapped, overlay_auto_command,
10355 overlay_manual_command): Ditto.
10357 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10358 breakpoint_here_p, breakpoint_inserted_here_p,
10359 breakpoint_thread_match, bpstat_stop_status,
10360 describe_other_breakpoints, check_duplicates, clear_command):
10361 Coding standard fixes.
10363 * target.c (target_xfer_memory): Add spaces, coding standard.
10364 (do_xfer_memory): Add missing line to trust-readonly
10365 code: check bfd SEC_READONLY flag for section.
10367 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10369 * PROBLEMS: Fix typo, 5.1->5.1.1.
10371 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10373 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10374 data symbols, since we search based on textlow and texthigh.
10375 (find_pc_sect_symtab): Likewise.
10377 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10379 * defs.h (vwarning): Declare.
10380 * utils.c (vwarning): New function.
10381 (warning): Call vwarning.
10382 (warning_begin): Delete function.
10384 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10385 the warning message.
10386 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10389 2002-01-30 Michael Snyder <msnyder@redhat.com>
10391 * NEWS: Mention "set trust-readonly-sections" command.
10392 Mention generate-core-file command.
10394 2002-01-15 Michael Snyder <msnyder@redhat.com>
10396 * target.c: New command, "set trust-readonly-sections on".
10397 (do_xfer_memory): Honor the suggestion to trust readonly sections
10398 by reading them from the object file instead of from the target.
10399 (initialize_targets): Register command "set trust-readonly-sections".
10401 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10403 * parse.c (target_map_name_to_register): Simplify, search regs and
10404 pseudo-regs using a single loop.
10406 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10408 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10410 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10412 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10413 * config/i386/i386v42mp.mh: Add i387-nat.o .
10414 * i386v4-nat.c: Include i387-nat.h.
10415 (supply_fpregset): Use i387_supply_fsave.
10416 (fill_fpregset): Use i387_fill_fsave.
10418 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10420 * arm-tdep.c (arm_call_dummy_words): Define.
10421 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10422 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10423 (CALL_DUMMY_WORDS): Define.
10424 (arm_call_dummy_words): Declare.
10425 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10426 (arm_linux_call_dummy_words): Declare.
10428 2002-01-30 Andreas Schwab <schwab@suse.de>
10430 * m68klinux-nat.c: Fix last change to use regcache_collect
10431 instead of referencing registers[] directly.
10433 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10435 * parse.c (target_map_name_to_register): Delete code wrapped in
10436 #ifdef REGISTER_NAME_ALIAS_HOOK.
10438 2002-01-28 Michael Snyder <msnyder@redhat.com>
10440 * regcache.c (legacy_read_register_gen): Need to be able to
10441 read pseudo-register as well as real register.
10442 (legacy_write_register_gen): Ditto.
10444 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10446 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10447 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10448 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10449 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10450 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10451 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10452 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10453 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10454 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10455 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10456 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10457 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10458 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10459 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10460 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10461 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10462 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10463 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10464 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10465 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10467 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10469 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10470 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10471 (initialize_current_architecture): Update target_byte_order using
10472 information from BFD.
10473 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10474 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10476 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10478 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10479 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10481 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10482 #ifdef INVALID_FLOAT.
10483 * infcmd.c (do_registers_info): Ditto.
10484 * values.c (unpack_double): Ditto. Add comment.
10486 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10487 already commented out.
10489 2002-01-26 Andreas Schwab <schwab@suse.de>
10491 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10492 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10493 registers and add support for PTRACE_GETREGS.
10495 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10497 GDB 5.1.1 released from 5.1 branch.
10498 * NEWS: Add 5.1.1 news.
10499 * README: Sync with 5.1 branch.
10501 2002-01-23 Fred Fish <fnf@redhat.com>
10503 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10504 stabstring on initial malloc. Reallocing will copy it for us,
10507 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10509 * Makefile.in (hpread_h): Delete.
10510 (HFILES_NO_SRCDIR): Remove hpread.h.
10511 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10512 (hpread.o): Update dependencies.
10513 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10515 * hp-psymtab-read.c: Remove file.
10516 * hp-symtab-read.c: Remove file.
10517 * hpread.h: Remove file.
10519 * hpread.c: Merge all contents of hp-psymtab-read.c,
10520 hp-symtab-read.c and hpread.h into this file, as it was prior to
10523 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10524 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10525 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10526 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10528 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10530 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10531 fill_gregset): Call gdbarch_tdep() just once, assign result to
10532 variable and use that, instead of calling the function several
10535 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10537 * configure.host: Accept sparcv9 as alias for sparc64.
10538 * configure.tgt: Likewise.
10540 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10542 * solib-aix5.c (build_so_list_from_mapfile)
10543 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10544 arguments is not reversed.
10545 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10546 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10548 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10550 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10551 modified version of obsolete sh_fetch_pseudo_register.
10552 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10553 (sh4_register_read): New function.
10554 (sh_pseudo_register_write): New function. Renamed and modified
10555 version of obsolete sh_store_pseudo_register.
10556 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10557 (sh4_register_write): New function.
10558 (sh_gdbarch_init): Remove setting of gdbarch function
10559 fetch_pseudo_register and store_pseudo_register. Remove setting of
10560 register_convert_to_raw, register_convert_to_virtual,
10561 register_convertible.
10562 (sh_sh4_register_convertible): Delete. No longer needed. All is
10563 taken care by architecture specific functions
10564 register_read/register_write.
10565 (sh_sh4_register_convert_to_virtual): Make static.
10566 (sh_sh4_register_convert_to_raw): Ditto.
10568 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10570 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10571 (floatformat_is_nan, floatformat_mantissa): Ditto.
10573 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10574 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10575 builtin_type_ieee_double_little,
10576 builtin_type_ieee_double_littlebyte_bigword,
10577 builtin_type_m68881_ext, builtin_type_i960_ext,
10578 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10579 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10580 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10581 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10583 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10585 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10586 parameter. Set frameless flag if it exists and depended of
10587 whether the scanned function is frameless or not.
10588 (xstormy16_skip_prologue): If function is frameless, return
10589 result of xstormy16_scan_prologue().
10590 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10593 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10595 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10596 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10597 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10598 sh_sh4_register_byte, sh_sh4_register_raw_size,
10599 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10600 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10601 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10602 sh_store_pseudo_register, sh_do_pseudo_register): Call
10603 gdbarch_tdep() just once, assign result to variable and use that,
10604 instead of calling the function several times.
10606 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10608 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10609 macros instead of LAST_FPU_CTRL_REGNUM.
10610 (store_register): Likewise.
10612 2002-01-21 Jim Blandy <jimb@redhat.com>
10614 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10615 is up-to-date before running the program, not just when a program
10618 2002-01-21 Fred Fish <fnf@redhat.com>
10620 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10621 when we have found all instructions we are looking for.
10623 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10625 * arm-tdep.c (arm_register_name): New function.
10626 (arm_registers_names): Make static.
10627 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10628 (arm_register_name): Declare.
10629 (REGISTER_NAME): Use it.
10631 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10632 Kevin Buettner <kevinb@redhat.com>
10634 Convert arm targets to new FRAME interface.
10635 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10636 (arm_frame_find_save_regs): Delete.
10637 (arm_frame_init_saved_regs): New.
10638 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10639 Allocate extra_info as required. Convert all uses of fsr.regs
10640 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10642 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10643 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10644 (check_prologue_cache, save_prologue_cache): Likewise.
10645 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10646 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10647 (FRAME_FIND_SAVED_REGS): Delete.
10648 (arm_frame_find_saved_regs): Delete prototype.
10649 (arm_frame_init_saved_regs): New prototype.
10650 (FRAME_INIT_SAVED_REGS): Define.
10652 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10654 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10656 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10658 From Jeff Law <law@redhat.com>:
10659 * infttrace.c: Include <sys/pstat.h>.
10660 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10661 exec file if the ttrace equivalent fails.
10663 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10665 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10666 (closeLogFile): Ditto.
10668 2002-01-20 Michael Chastain <mec@shout.net>
10670 * top.c (print_gdb_version): Bump copyright year to 2002.
10672 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10674 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10675 Zannoni and Eli Zaretskii.
10677 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10679 * buildsym.c: Update copyright years.
10680 * c-typeprint.c: Likewise.
10681 * dwarf2read.c: Likewise.
10682 * f-typeprint.c: Likewise.
10683 * gdbtypes.c: Likewise.
10684 * gdbtypes.h: Likewise.
10685 * hp-symtab-read.c: Likewise.
10686 * hpread.c: Likewise.
10687 * mdebugread.c: Likewise.
10688 * p-typeprint.c: Likewise.
10690 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10692 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10693 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10694 byte-order selectable.
10695 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10696 * arch-utils.c: Ditto.
10697 (set_endian): Ditto.
10698 (set_endian_from_file): Ditto.
10699 * gdbserver/low-sim.c (create_inferior): Ditto.
10700 * gdbarch.sh: Ditto.
10701 * gdbarch.h: Re-generate.
10702 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10703 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10704 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10705 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10706 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10707 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10708 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10709 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10711 * config/mips/tm-wince.h: Remove #undef of macro
10712 TARGET_BYTE_ORDER_SELECTABLE.
10713 * config/sh/tm-wince.h: Ditto.
10715 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10717 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10718 member function fields. Add accessor macro
10719 TYPE_FN_FIELD_ARTIFICIAL.
10720 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10721 * c-typeprint.c (c_type_print_base): Skip artificial member
10724 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10726 * f-typeprint.c: Delete unused function f_type_print_args.
10727 * p-typeprint.c: Delete unused function pascal_type_print_args.
10729 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10731 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10732 comment. Add ``artificial'' to ``union field_location''.
10734 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10736 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10737 * mdebugread.c (parse_symbol): Likewise.
10738 * stabsread.c (define_symbol): Likewise.
10739 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10740 initializing TYPE_FIELD_BITPOS to n (obsolete).
10741 (hpread_doc_function_type): Likewise.
10742 * hpread.c (hpread_function_type): Likewise.
10744 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10746 * configure.in (host_makefile_frag): Only require a host makefile
10747 fragment when a native build.
10748 * configure: Re-generate.
10750 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10752 * doublest.h (floatformat_from_type): Declare.
10753 * doublest.c (floatformat_from_type): New function.
10754 (convert_typed_floating): Use.
10756 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10757 call to function floatformat_from_type.
10759 * gdbarch.sh (IEEE_FLOAT): Delete.
10760 * gdbarch.h, gdbarch.c: Re-generate.
10761 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10762 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10763 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10764 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10765 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10766 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10767 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10768 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10769 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10770 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10771 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10772 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10774 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10775 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10776 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10777 * sh-tdep.c (sh_gdbarch_init): Ditto.
10778 * mips-tdep.c (mips_gdbarch_init): Ditto.
10779 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10780 * cris-tdep.c (cris_gdbarch_init): Ditto.
10782 2002-01-20 Jiri Smid <smid@suse.cz>
10784 * configure.host, configure.tgt: Support x86-64.
10785 * NEWS: Note new target x86-64.
10787 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10788 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10789 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10790 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10791 x86-64-linux-nat.o): Fix dependencies.
10793 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10795 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10796 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10797 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10798 * config/sparc/xm-sun4os4.h: Delete file.
10799 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10801 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10803 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10804 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10805 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10806 * config/i386/i386lynx.mh (XM_FILE): Delete.
10807 * config/rs6000/xm-rs6000ly.h: Delete file.
10808 * config/sparc/xm-sparclynx.h: Delete file.
10809 * config/m68k/xm-m68klynx.h: Delete file.
10810 * config/i386/xm-i386lynx.h: Delete file.
10811 * config/xm-lynx.h: Delete file.
10812 * config/djgpp/fnchange.lst: Update.
10814 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10816 * alpha-tdep.c (alpha_register_byte): New function.
10817 (alpha_register_raw_size): Ditto.
10818 (alpha_register_virtual_size): Ditto.
10819 (alpha_skip_prologue_internal): Renamed from
10820 alpha_skip_prologue.
10821 (alpha_skip_prologue): New version that calls
10822 alpha_skip_prologue_internal.
10823 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10824 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10825 second argument from alpha_skip_prologue.
10826 (REGISTER_BYTE): Use alpha_register_byte.
10827 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10828 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10829 (FRAMELESS_FUNCTION_INVOCATION): Use
10830 generic_frameless_function_invocation_not.
10831 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10832 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10834 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10836 * config/mips/xm-news-mips.h: Delete file.
10837 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10839 * config/m88k/xm-m88k.h: Delete file.
10840 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10841 * config/m88k/xm-delta88v4.h: Ditto.
10842 * config/m88k/xm-delta88.h: Ditto.
10844 * config/alpha/xm-fbsd.h: Delete file.
10845 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10847 * config/sparc/xm-sparc.h: Delete file.
10848 * Makefile.in (xm-sun4os4.h): Delete dependency.
10849 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10850 * config/sparc/xm-sun4os4.h: Ditto.
10851 * config/sparc/xm-linux.h: Ditto.
10853 * config/i386/xm-windows.h: Delete file.
10855 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10857 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10858 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10860 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10862 * alpha-tdep.c (alpha_call_dummy_words): New.
10863 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10864 (CALL_DUMMY_P): Define.
10865 (CALL_DUMMY_WORDS): Define.
10866 (SIZEOF_CALL_DUMMY_WORDS): Define.
10868 2002-01-19 Per Bothner <per@bothner.com>
10870 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10871 isn't NULL, which can happen with some gcj-3.x-produced code.
10873 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10875 * alpha-tdep.c (alpha_register_virtual_type): New function.
10876 (alpha_init_frame_pc_first): Ditto.
10877 (alpha_fix_call_dummy): Ditto.
10878 (alpha_store_struct_return): Ditto.
10879 (alpha_extract_struct_value_address): Ditto.
10880 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10881 alpha_register_virtual_type.
10882 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10883 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10884 alpha_extract_struct_value_address.
10885 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10886 (INIT_FRAME_PC): Use init_frame_pc_noop.
10887 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10889 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10891 * i386gnu-nat.c: Include "i386-tdep.h".
10892 (fetch_fpregs): Simplify code dealing with uninitialized floating
10893 point states such that it doesn't require FP7_REGNUM.
10895 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10897 * alpha-tdep.c (frame_extra_info): New.
10898 (alpha_find_saved_regs): Make static. Use
10900 (alpha_frame_init_saved_regs): New function.
10901 (alpha_frame_saved_pc): Use frame->extra_info.
10902 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10903 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10904 (init_extra_frame_info): Rename to...
10905 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10906 (alpha_print_extra_frame_info): New function.
10907 (alpha_frame_locals_address): Ditto.
10908 (alpha_frame_args_address): Ditto.
10909 (alpha_pop_frame): Use frame->extra_info.
10910 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10911 alpha_frame_args_address.
10912 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10913 (alpha_find_saved_regs): Remove prototype.
10914 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10915 (EXTRA_FRAME_INFO): Remove.
10916 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10917 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10919 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10921 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10922 (alpha_cannot_fetch_register): Ditto.
10923 (alpha_cannot_store_register): Ditto.
10924 (alpha_register_convertible): Ditto.
10925 (alpha_use_struct_convention): Ditto.
10926 * config/alpha/tm-alpha.h: Update copyright years.
10927 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10928 (INNER_THAN): Use core_addr_lessthan.
10929 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10930 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10931 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10932 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10933 (FRAME_CHAIN): Remove unnecessary cast.
10935 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10937 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10940 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10942 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10943 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10944 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10945 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10946 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10947 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10948 * x86-64-linux-nat.c: Ditto.
10950 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10952 * alpha-tdep.c (alpha_register_name): New function.
10953 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10954 (REGISTER_NAME): Define.
10956 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10958 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10960 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10962 * alpha-tdep.c: Update copyright years.
10963 (alpha_next_pc): New function.
10964 (alpha_software_single_step): Ditto.
10965 * config/alpha/tm-alpha.h: Add prototype for
10966 alpha_software_single_step.
10968 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10970 * alphabsd-nat.c: Update copyright years.
10971 (fill_gregset): Use regcache_collect.
10972 (fill_fpregset): Likewise.
10973 (fetch_inferior_registers): Only fetch integer registers
10974 if requested to do so.
10975 (store_inferior_registers): Only store integer registers
10976 if requested to do so.
10978 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10980 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10981 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10982 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10983 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10984 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10985 * config/arm/linux.mh (XDEPFILES): Delete.
10986 * config/arm/nbsd.mh (XDEPFILES): Delete.
10987 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10988 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10989 * config/i386/i386m3.mh (XDEPFILES): Delete.
10990 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10991 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10992 * config/i386/fbsd.mh (XDEPFILES): Delete.
10993 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10994 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10995 * config/i386/i386v4.mh (XDEPFILES): Delete.
10996 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10997 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10998 * config/i386/i386aix.mh (XDEPFILES): Delete.
10999 * config/i386/go32.mh (XDEPFILES): Delete.
11000 * config/i386/cygwin.mh (XDEPFILES): Delete.
11001 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11002 * config/i386/i386mach.mh (XDEPFILES): Delete.
11003 * config/i386/i386v32.mh (XDEPFILES): Delete.
11004 * config/i386/linux.mh (XDEPFILES): Delete.
11005 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11006 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11007 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11008 * config/i386/i386sco.mh (XDEPFILES): Delete.
11009 * config/i386/i386v.mh (XDEPFILES): Delete.
11010 * config/i386/nbsd.mh (XDEPFILES): Delete.
11011 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11012 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11013 * config/i386/symmetry.mh (XDEPFILES): Delete.
11014 * config/i386/obsd.mh (XDEPFILES): Delete.
11015 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11016 * config/ia64/linux.mh (XDEPFILES): Delete.
11017 * config/ia64/aix.mh (XDEPFILES): Delete.
11018 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11019 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11020 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11021 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11022 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11023 * config/m68k/linux.mh (XDEPFILES): Delete.
11024 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11025 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11026 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11027 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11028 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11029 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11030 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11031 * config/m88k/delta88.mh (XDEPFILES): Delete.
11032 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11033 * config/m88k/m88k.mh (XDEPFILES): Delete.
11034 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11035 * config/mips/linux.mh (XDEPFILES): Delete.
11036 * config/mips/irix6.mh (XDEPFILES): Delete.
11037 * config/mips/irix5.mh (XDEPFILES): Delete.
11038 * config/mips/irix4.mh (XDEPFILES): Delete.
11039 * config/mips/irix3.mh (XDEPFILES): Delete.
11040 * config/mips/decstation.mh (XDEPFILES): Delete.
11041 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11042 (NATDEPFILES): Move core-aout.o to here.
11043 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11044 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11045 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11046 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11047 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11048 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11049 * config/pa/hpux11.mh (XDEPFILES): Delete.
11050 * config/powerpc/aix.mh (XDEPFILES): Delete.
11051 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11052 * config/powerpc/linux.mh (XDEPFILES): Delete.
11053 * config/romp/rtbsd.mh: Rename XDEPFILES.
11054 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11055 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11056 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11057 * config/s390/s390.mh (XDEPFILES): Delete.
11058 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11059 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11060 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11061 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11062 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11063 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11064 * config/sparc/linux.mh (XDEPFILES): Delete.
11065 * config/vax/vaxult.mh (XDEPFILES): Delete.
11066 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11067 * Makefile.in (DEPFILES): Remove XDEPFILES.
11069 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11071 * utils.c (internal_verror): Fix comments, default is yes not no.
11072 Update queries to match. Default to quit and dump core.
11074 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11076 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11078 * defs.h, event-top.c, gdbcmd.h: Ditto.
11079 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11080 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11081 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11082 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11083 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11084 * mi/mi-main.c:Ditto.
11086 * stack.c, symfile.c: Update copyright.
11088 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11090 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11091 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11092 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11093 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11095 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11097 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11098 * gdbserver/low-lynx.c (myattach): Likewise.
11099 * gdbserver/low-nbsd.c (myattach): Likewise.
11100 * gdbserver/low-sim.c (myattach): Likewise.
11101 * gdbserver/low-sparc.c (myattach): Likewise.
11102 * gdbserver/low-sun3.c (myattach): Likewise.
11104 * gdbserver/low-linux.c (myattach): New function.
11106 * gdbserver/server.c (attach_inferior): New function.
11107 (main): Handle "--attach".
11109 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11111 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11114 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11116 * c-typeprint.c (is_type_conversion_operator): Add additional
11117 check for non-conversion operators.
11119 2002-01-15 Michael Snyder <msnyder@redhat.com>
11121 * linux-proc.c: Add "info proc" command, a la procfs.c.
11122 (read_mapping): New function, abstract and re-use code.
11123 (linux_find_memory_regions): Use new func read_mapping.
11124 (linux_info_proc_cmd): New function, implement "info proc".
11125 (_initialize_linux_proc): Add new command "info proc".
11127 2002-01-15 Michael Snyder <msnyder@redhat.com>
11129 * symfile.c (generic_load): Use bfd_map_over_sections method
11130 instead of manipulating bfd structure members directly.
11131 (add_section_size_callback): New function, bfd sections callback
11132 used by generic_load.
11133 (load_sections_callback): New function, bfd sections callback
11134 used by generic_load.
11136 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11138 [Based on work by Jim Blandy]
11139 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11140 (builtin_type_vec128): Export.
11141 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11143 (builtin_type_vec128): New builtin type for 128 bit vector
11145 (build_gdbtypes): Initialize builtin_type_v16qi and
11146 builtin_type_v8hi. Create the vec128 register builtin type
11148 (build_builtin_type_vec128): New function.
11149 (_initialize_gdbtypes): Register builtin_type_v16qi and
11150 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11151 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11152 AltiVec register to new builtin type.
11154 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11156 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11159 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11161 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11162 CLEAN_UP_REGISTER_VALUE.
11163 * regcache.c (supply_register): Update only call.
11165 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11167 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11168 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11169 a29k-*-vxworks* targets as obsolete.
11171 2002-01-14 Michael Snyder <msnyder@redhat.com>
11173 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11174 until we can resolve portability issues.
11175 * gregset.h: Remove references to fpxregs.
11176 * gcore.c (gcore_command): Initialize note_sec to NULL.
11178 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11180 * signals.c (target_signal_to_name): Rewrite. Only use
11181 signals[].name when in bounds and non-NULL.
11183 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11185 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11186 * signals.c (target_signal_to_name): Verify that SIG is within the
11187 bounds of the signals array.
11189 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11191 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11193 2002-01-13 Keith Seitz <keiths@redhat.com>
11195 * stack.c (print_frame_info_base): Print the frame's pc
11196 only if when print_frame_info_listing_hook is not defined.
11198 2002-01-13 Keith Seitz <keiths@redhat.com>
11200 * varobj.c (varobj_set_value): Make sure that there were no
11201 errors evaluating the object before attempting to set its
11203 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11204 so this offset adjustment is no longer necessary.
11205 (create_child): Don't set the error flag if the child is
11206 a CPLUS_FAKE_CHILD.
11207 (value_of_child): If value_fetch_lazy fails, return NULL
11208 so that callers will be notified that an error occurred.
11209 (c_value_of_variable): Delay check of variable's validity
11210 until later. We actually want all structs and unions to have
11212 Do not return "???" for variables which could not be evaluated.
11213 This error condition must be returned to the caller so that it
11214 can get the error condition from gdb.
11215 (cplus_name_of_child): Adjust index for vptr before figuring
11216 out the name of the child.
11217 (cplus_value_of_child): If a child's (real) parent is not valid,
11218 don't even bother trying to give a value for it. Just return
11219 an error. Change all instances in this function.
11220 (cplus_type_of_child): If our parent is one of the "fake"
11221 parents, we need to get at the type of the real parent, and
11222 derive the child's true type using this information.
11224 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11226 From 2002-01-09 John Marshall <johnm@falch.net>:
11227 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11228 sources.redhat.com, and tweak some related URLs which had
11229 suffered from linkrot.
11231 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11234 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11235 structures passed in registers.
11237 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11239 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11240 white space which prevented compilation. Reported by DSK
11241 <dsk@student.unsw.edu.au>.
11243 2002-01-11 Michael Snyder <msnyder@redhat.com>
11245 * symfile.c (build_section_addr_info_from_section_tab):
11246 Use bfd access method instead of manipulating bfd directly.
11247 (syms_from_objfile): Ditto.
11248 (simple_overlay_update_1): Ditto.
11249 (simple_overlay_update): Ditto.
11250 (generic_load): Ditto.
11251 (overlay_unmapped_address): FIXME comment, bfd access methods.
11252 (sections_overlap): FIXME comment, bfd access methods.
11253 (pc_in_mapped_range): FIXME comment, bfd access methods.
11254 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11255 (section_is_mapped): FIXME comment, bfd access methods.
11256 (section_is_overlay): FIXME comment, bfd access methods.
11258 * symfile.c (generic_load): Whitespace and long line cleanups.
11259 Remove duplicate variable, change several local variables to
11260 more appropriate data types.
11261 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11263 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11265 From Peter Schauer:
11266 * language.c (longest_local_hex_string_custom): Use phex_nz to
11267 convert NUM to a hex string.
11269 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11271 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11273 Update Copyright year.
11275 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11277 * language.c (longest_raw_hex_string): Delete unused function.
11279 2002-01-11 Petr Sorfa <petrs@caldera.com>
11281 * MAINTAINERS (write-after-approval): Add myself.
11282 * dwarf2read.c (read_tag_string_type): Handling of
11284 (read_tag_string_type): FORTRAN fix to prevent propagation of
11286 (set_cu_language): Handling of DW_LANG_Fortran95
11288 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11290 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11291 GETPID(inferior_ptid).
11292 (store_inferior_registers): Likewise.
11294 2002-01-10 Jason Merrill <jason@redhat.com>
11296 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11299 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11301 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11302 and bfd/elf32-sh-nbsd.c.
11304 2002-01-10 Michael Snyder <msnyder@redhat.com>
11306 * NEWS: Mention --pid and corefile/proc-id behavior change.
11308 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11309 * gcore.c: Include cli/cli-decode.h instead of command.h.
11311 * main.c (captured_main): Add new command line option "--pid".
11312 If the second command line argument (following the symbol-file)
11313 begins with a digit, try to attach to it before trying to open
11315 (print_gdb_help): Document the "--pid" argument.
11317 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11319 * completer.c (command_completer): New function.
11321 * completer.h <command_completer>: Add prototype.
11323 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11324 completer for the "help" command.
11326 2002-01-09 Jason Merrill <jason@redhat.com>
11328 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11330 2002-01-09 Michael Snyder <msnyder@redhat.com>
11332 * i386-linux-nat.c (fill_fpxregset): Make global.
11333 (store_fpxregset): Ditto.
11335 * gregset.h (gdb_fpxregset_t): Define.
11336 (supply_fpxregset): Prototype.
11337 (fill_fpxregset): Prototype.
11339 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11341 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11343 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11344 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11345 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11347 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11349 * MAINTAINERS: Update target maintainer rules so that any
11350 Maintainer can approve a tested patch for a maintenance-only
11353 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11355 * MAINTAINERS (write-after-approval): Add myself.
11357 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11360 2002-01-08 Michael Snyder <msnyder@redhat.com>
11362 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11363 real name of the executable, rather than the /proc name.
11365 2002-01-03 Michael Snyder <msnyder@redhat.com>
11367 Implement a "generate-core-file" command in gdb, save target state.
11368 * gcore.c: New file. Implement new command 'generate-core-file'.
11369 Save a corefile image of the current state of the inferior.
11370 * linux-proc.c: Add linux-specific code for saving corefiles.
11371 * target.h (struct target_ops): Add new target vectors for saving
11372 corefiles; to_find_memory_regions and to_make_corefile_notes.
11373 (target_find_memory_regions): New macro.
11374 (target_make_corefile_notes): New macro.
11375 * target.c (update_current_target): Inherit new target methods.
11376 (dummy_find_memory_regions): New place-holder method.
11377 (dummy_make_corefile_notes): New place-holder method.
11378 (init_dummy_target): Initialize new dummy target vectors.
11379 * exec.c (exec_set_find_memory_regions): New function.
11380 Allow the exec_ops vector for memory regions to be taken over.
11381 (exec_make_note_section): New function, target vector method.
11382 * defs.h (exec_set_find_memory_regions): Export prototype.
11383 * procfs.c (proc_find_memory_regions): New function, corefile method.
11384 (procfs_make_note_section): New function, corefile method.
11385 (init_procfs_ops): Set new target vector pointers.
11386 (find_memory_regions_callback): New function.
11387 (procfs_do_thread_registers): New function.
11388 (procfs_corefile_thread_callback): New function.
11389 * sol-thread.c (sol_find_memory_regions): New function.
11390 (sol_make_note_section): New function.
11391 (init_sol_thread_ops): Initialize new target vectors.
11392 * inftarg.c (inftarg_set_find_memory_regions): New function.
11393 Allow to_find_memory_regions vector to be taken over.
11394 (inftarg_set_make_corefile_notes): New function.
11395 Allow to_make_corefile_notes vector to be taken over.
11396 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11397 interface layer if not target_has_execution (may be a corefile).
11398 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11399 * config/sparc/sun4sol2.mh: Ditto.
11400 * config/alpha/alpha-linux.mh: Ditto.
11401 * config/arm/linux.mh: Ditto.
11402 * config/i386/x86-64linux.mh: Ditto.
11403 * config/ia64/linux.mh: Ditto.
11404 * config/m68k/linux.mh: Ditto.
11405 * config/mips/linux.mh: Ditto.
11406 * config/powerpc/linux.mh: Ditto.
11407 * config/sparc/linux.mh: Ditto.
11409 2002-01-07 Michael Snyder <msnyder@redhat.com>
11411 * arm-linux-nat.c: Remove references to regcache.c internal data
11412 (registers[] and register_valid[]).
11414 2002-01-07 Michael Snyder <msnyder@redhat.com>
11416 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11417 so that attaching to a pid will automatically read the process's
11418 symbol file and shlibs.
11419 * Makefile.in: Add rule for linux-proc.o.
11420 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11421 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11422 * config/arm/linux.mh: Ditto.
11423 * config/i386/linux.mh: Ditto.
11424 * config/i386/x86-64linux.mh: Ditto.
11425 * config/ia64/linux.mh: Ditto.
11426 * config/m68k/linux.mh: Ditto.
11427 * config/mips/linux.mh: Ditto.
11428 * config/powerpc/linux.mh: Ditto.
11429 * config/sparc/linux.mh: Ditto.
11431 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11433 * win32-nat.c: Add i386-tdep.h dependency.
11435 2002-01-07 Michael Snyder <msnyder@redhat.com>
11437 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11438 instead of bfd_get_arch_size. Don't bail out just because
11439 there's no exec_bfd.
11441 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11442 * p-valprint.c (pascal_object_print_value): Ditto.
11443 * somread.c (som_symtab_read): Ditto.
11444 * symfile.c (simple_free_overlay_region_table): Ditto.
11445 * valops.c (value_assign): Ditto.
11447 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11448 use tilde_expand and strerror for opening save-tracepoints file.
11450 * thread-db.c (thread_db_new_objfile): Indendation fix.
11452 * infptrace.c (GDB_MAX_ALLOCA): New define.
11453 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11454 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11455 can be overridden with whatever value is appropriate to the host).
11456 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11457 alloca to allocate potentially large buffer.
11458 * rs6000-nat.c (child_xfer_memory): Ditto.
11459 * symm-nat.c (child_xfer_memory): Ditto.
11460 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11462 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11464 From Nick Clifton <nickc@redhat.com>
11465 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11467 2002-01-07 Michael Snyder <msnyder@redhat.com>
11469 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11470 Don't use exec_bfd if it's NULL.
11472 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11474 * valops.c (value_arg_coerce): Fix formatting.
11476 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11478 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11479 * gnu-nat.c: Ditto.
11481 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11483 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11484 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11485 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11486 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11487 z8k-coff have not been multi-arched. Update z8k-coff build
11490 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11492 * MAINTAINERS: Mark a29k target as obsolete.
11493 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11494 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11496 * NEWS: Note that a29k targets are obsolete.
11497 * a29k-tdep.c: Mark as obsolete.
11498 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11499 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11500 a29k-*-vxworks* targets as obsolete.
11501 * remote-adapt.c: Obsolete.
11502 * remote-eb.c: Obsolete.
11503 * remote-mm.c: Obsolete.
11504 * remote-udi.c: Obsolete.
11505 * config/a29k/a29k-udi.mt: Obsolete.
11506 * config/a29k/a29k.mt: Obsolete.
11507 * config/a29k/tm-a29k.h: Obsolete.
11508 * config/a29k/tm-vx29k.h: Obsolete.
11509 * config/a29k/vx29k.mt: Obsolete.
11511 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11513 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11514 with BFD_ENDIAN_BIG.
11516 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11518 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11519 * configure, config.in: Re-generate.
11520 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11521 * defs.h: Do not include <endian.h>.
11523 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11525 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11526 * config.in: Regenerate.
11527 * configure.in: Update copyright years.
11528 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11529 * configure: Regenerate.
11530 * i386bsd-nat.c: Update copyright years.
11531 (fill_gregset): Use regcache_collect.
11532 (fetch_inferior_registers): Only fetch integer registers
11533 if requested to do so. Add support for XMM registers
11534 using PT_GETXMMREGS.
11535 (store_inferior_registers): Only store integer registers
11536 if requested to do so. Add support for XMM registers
11537 using PT_SETXMMREGS.
11538 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11539 (store_inferior_registers): Remove.
11540 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11541 (fetch_elfcore_registers): New function.
11542 (i386nbsd_elfcore_fns): New.
11543 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11544 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11546 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11547 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11548 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11549 * config/i386/tm-nbsd.h: Update copyright years.
11550 (HAVE_SSE_REGS): Define.
11551 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11552 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11553 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11554 (SIGCONTEXT_PC_OFFSET): Remove.
11555 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11557 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11559 * configure.tgt: Remove powerpc-*-macos* target.
11560 * config/m68k/xm-mpw.h: Delete file.
11561 * config/xm-mpw.h: Delete file.
11562 * ser-mac.c: Delete file.
11563 * mpw-make.sed: Delete file.
11564 * mpw-config.in: Delete file.
11565 * mac-xdep.c: Delete file.
11566 * mac-gdb.r: Delete file.
11567 * mac-defs.h: Delete file.
11568 * mac-nat.c: Delete file.
11569 * config/powerpc/macos.mh: Delete file.
11570 * config/powerpc/macos.mt: Delete file.
11571 * config/powerpc/nm-macos.h: Delete file.
11572 * config/powerpc/tm-macos.h: Delete file.
11573 * source.c (openp, open_source_file): Remove obsolete code.
11574 * top.c (gdb_readline): Ditto.
11575 * utils.c (query): Ditto.
11576 * event-top.c (display_gdb_prompt): Ditto.
11577 * Makefile.in (ser-mac.o): Delete obsolete target.
11580 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11582 * defs.h (BIG_ENDIAN): Delete macro definition.
11583 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11584 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11585 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11586 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11587 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11588 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11589 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11590 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11591 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11592 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11593 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11594 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11595 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11596 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11597 * gdbarch.c: Re-generate.
11599 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11601 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11604 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11606 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11608 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11610 * value.h (value_ptr): Delete typedef.
11612 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11614 * i386nbsd-nat.c: Update copyright years.
11615 Include i386-tdep.h.
11617 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11619 * stabsread.c: Update copyright years.
11621 From Debashis Mahata <debashis.mahata@wipro.com>:
11622 (read_struct_fields): Deal with Sun C compiler erroneous stab
11623 output for structs and unions.
11626 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11628 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11631 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11633 * cp-abi.c: Fix whitespace.
11634 (baseclass_offset): New wrapper function.
11635 * cp-abi.h (baseclass_offset): Add prototype.
11636 (struct cp_abi_ops): Add baseclass_offset pointer.
11638 * valops.c (vb_match): Move to...
11639 * gnu-v2-abi.c (vb_match): here.
11640 * valops.c (baseclass_offset): Move to...
11641 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11643 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11645 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11646 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11647 * hpacc-abi.c (init_hpacc_ops): Likewise.
11649 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11651 * valops.c (find_overload_match): Accept obj as a
11652 reference parameter. Update it before returning.
11653 * value.h (find_overload_match): Update prototype.
11654 * eval.c (evaluate_subexp_standard): Pass object to
11655 find_overload_match by reference.
11657 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11659 * valarith.c: Replace value_ptr with struct value pointer. Remove
11660 register attribute from value declarations.
11663 * scm-lang.c (scm_lookup_name): Ditto.
11665 2002-01-03 Michael Snyder <msnyder@redhat.com>
11667 Abstract the functionality of iterating over mapped memory
11668 regions into a general purpose iterator function.
11669 * procfs.c (iterate_over_mappings): New function, general purpose
11670 iterator for memory sections.
11671 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11672 (solib_mappings_callback): New function, callback for above.
11673 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11674 (info_mappings_callback): New function, callback for above.
11676 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11678 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11680 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11681 * i386-tdep.c: Include "elf-bfd.h".
11682 (process_note_abi_tag_sections): New function.
11683 (i386_gdbarch_init): Add code to recognize various OS/ABI
11686 * maint.c (_initialize_maint_cmds): Add missing \ in
11689 For older changes see ChangeLog-2001
11695 version-control: never