OSDN Git Service

2002-10-03 Adam Fedor <fedor@gnu.org>
[pf3gnuchains/pf3gnuchains3x.git] / gdb / ChangeLog
1 2002-10-03  Adam Fedor  <fedor@gnu.org>
2
3         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
4         (objc_demangle): Remove assignment in if statements, Replace
5         free with xfree.
6         (add_msglist): Likewise.
7         (end_msglist): Likewise.
8         (complare_selectors): Likewise.
9         (selectors_info): Likewise.
10         (compare_classes): Likewise.
11         (classes_info): Likewise.
12         (print_object_command): Likewise.
13         (find_objc_msgcall_submethod): Replace PTR with void *.
14         * objc-lang.h: Remove check for __STDC__.
15
16 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
17
18         * ui-out.h (ui_out_field_fmt_int): New prototype.
19         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
20         of field width and alignment.
21         * stack.c (print_frame_info_base): When printing frame level, use
22         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
23         PR gdb/192
24
25 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
26
27         * MAINTAINERS: Add self to Write After Approval list.
28
29 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
30
31         * infcmd.c (interrupt_target_command_wrapper): Delete.
32         (interrupt_target_command): Make non static.
33         (nofp_registers_info): Make static.
34         * stack.c (return_command_wrapper): Delete.
35         (return_command): Make non static.
36
37 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
38
39         * event-top.c (gdb_setup_readline): New function. Code moved from
40         _initialize_event_loop().
41         (_initialize_event_loop): Call gdb_setup_readline().
42
43 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
44
45         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
46         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
47         * gdbarch.h, gdbarch.c: Re-generate.
48
49 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
50
51         Fix PR gdb/778
52         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
53         before recursing.
54         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
55         of fill_in_vptr_fieldno.
56
57 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
58
59         * inferior.h (registers_info, stepi_command, nexti_command,
60         continue_command, interrupt_target_command): Export from infcmd.c.
61         * frame.h (args_info, selected_frame_level_changed_hook,
62         return_command): Export from stack.c.
63         * v850ice.c (stepi_command, nexti_command, continue_command): use
64         prototypes from inferior.h.
65         * tracepoint.c (registers_info, args_info, locals_info): Use
66         prototypes from frame.h and inferior.h.
67         * Makefile.in (mi-main.o): Add dependency on frame.h.
68
69 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
70
71         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
72         value in register 3 adjusted by ppc_gp0_regnum.
73
74         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
75
76 2002-10-02  Marko Mlinar <markom@opencores.org>
77
78         * MAINTAINERS: Add myself to the Write After Approval list.
79
80 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
81
82         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
83         of the section for the N64 ABI, fixed.
84
85         * config/mips/tm-irix6.h: Include solib.h.
86
87 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
88
89         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
90         GNU operators.
91
92 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
93
94         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
95         and that "mi0" syntax has been removed.
96
97 2002-09-30  David Carlton  <carlton@math.stanford.edu>
98
99         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
100         * ppc-sysv-tdep.c: #include "gdb_string.h".
101         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
102         pacify GCC.
103
104 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
105
106         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
107         "vrsave"'s register number.
108
109 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
110
111         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
112         use frame_unwind_signed_register to obtain the PC.
113         (mips_frame_chain): Handle a generic dummy frame.
114         (mips_init_extra_frame_info): When a generic dummy frame, don't
115         re-compute the frame base.
116         (mips_pop_frame): Handle generic dummy frames.
117         (mips_gdbarch_init): When generic dummy frames, set
118         use_generic_dummy_frames, push_dummy_frame to
119         generic_push_dummy_frame, pc_in_call_dummy to
120         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
121         generic_save_dummy_frame_tos.
122
123 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
124
125         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
126         against TOP when TOP was explictly set.
127         (generic_push_dummy_frame): Set TOP to zero.
128
129 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
130
131         * event-loop.c (start_event_loop): Rename variable 'result' to
132         'gdb_result', to avoid conflicts with upcoming intepreters changes.
133
134 2002-09-30  Keith Seitz  <keiths@redhat.com>
135
136         * gdb-events.sh (selected_thread_changed): New event.
137         * gdb-events.c: Regenerated.
138         * gdb-events.h: Regenerated.
139
140 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
141
142         * MAINTAINERS: Add self to Write After Approval list.
143
144 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
145
146         * disasm.c: New file.  
147         * disasm.h: New file.  
148         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
149         (compare_lines): Ditto.
150         (dump_insns): Ditto.
151         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
152         argument.
153         (do_assembly_only): Ditto.
154         (do_disassembly): Renamed to gdb_disassembly and moved to
155         disasm.c.  Sdded uiout argument.
156         * Makefile.in: Add new files.  Reorder SFILES list. Update
157         dependencies.  Include libgdb.a later in the insight executable.
158
159 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
160
161         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
162         bfd/elf64-alpha-fbsd.c.
163
164 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
165
166         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
167         i386gnu-tdep.c.
168
169 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
170
171         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
172         __FUNCTION__.
173         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
174         function name.
175         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
176         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
177         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
178         (S_msg_sig_post_reply): Ditto.
179         
180 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
181
182         * sh-tdep.c (sh_use_struct_convention): Use definition according
183         to ABI.
184         (sh_push_arguments): Store in register with correct endianess.
185         (sh_default_store_return_value): Ditto.
186         (sh_gdbarch_init): Set sizeof long double to 8.
187
188 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
189
190         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
191         Fix some whitespace problems.
192
193 2002-09-27  David Carlton  <carlton@math.stanford.edu>
194
195         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
196         (mcore-tdep.o): Ditto.
197         (ns32k-tdep.o): Ditto.
198         (ns32knbsd-tdep.o): Ditto.
199         (sh3-rom.o): Ditto.
200         (vax-tdep.o): Ditto.
201         * cris-tdep.c: #include "gdb_string.h"
202         * mcore-tdep.c: Ditto.
203         * ns32k-tdep.c: Ditto.
204         * ns32knbsd-tdep.c: Ditto.
205         * sh3-rom.c: Ditto.
206         * vax-tdep.c: Ditto.
207
208 2002-09-27  David Carlton  <carlton@math.stanford.edu>
209
210         * config/djgpp/fnchange.lst: Add entries for
211         gdb/testsuite/gdb.c++/m-static files.
212
213 2002-09-27  Jim Wilson  <wilson@redhat.com>
214
215         * MAINTAINERS: Add myself to the Write After Approval list.
216
217 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
218
219         * mips-tdep.c (find_proc_desc): Initialize startaddr.
220
221
222 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
223
224         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
225         frame.
226
227 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
228
229         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
230         (rs6000_struct_return_address): Delete variable.
231         (rs6000_store_struct_return): Update.
232         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
233         deprecated_extract_struct_value_address.
234         (rs6000_frame_align): New function.
235         (rs6000_gdbarch_init): Set frame_align.
236
237 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
238
239         From Grace Sainsbury <graces@redhat.com>:
240         * Makefile.in (gdbtk-main.o): New target.
241         (gdb.o): New target.
242         (main_h): Define.
243         (main.o): Update dependencies.
244         (gdb$(EXEEXT)): Add gdb.o.
245         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
246         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
247         (SUBDIR_GDBTK_CLEAN): Set.
248         (install-gdbtk): Install the insight binary.
249         (uninstall-gdbtk): New target.
250         (all-gdbtk, clean-gdbtk): New rule.
251         * top.c (use_windows): Default to zero.
252         * main.c: Include "main.h".
253         (main): Delete.
254         (struct captured_main_args): Delete.
255         (gdb_main): New function.
256         * main.h: New file.
257         * gdb.c: New File.
258
259 2002-09-25  Andrew Cagney  <cagney@redhat.com>
260
261         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
262         (frame_map_regnum_to_name): New function.
263         (frame_map_name_to_regnum): New function.
264         * frame.h (frame_map_name_to_regnum): Declare.
265         (frame_map_regnum_to_name): Declare.
266         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
267         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
268         * parse.c: Do not include "builtin-regs.h".
269         (target_map_name_to_register): Delete function.
270         (write_dollar_variable): Use frame_map_name_to_regnum.
271         * parser-defs.h (target_map_name_to_register): Delete declaration.
272         * expprint.c: Include "frame.h".
273         (print_subexp): Use frame_map_regnum_to_name.
274         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
275         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
276
277 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
278
279         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
280         wasn't saved, and the next innermost frame is a dummy, return the
281         dummy frame's link register.
282
283 2002-09-24  Jim Blandy  <jimb@redhat.com>
284
285         Fix from Paul Breed:
286         * main.c (captured_main): Add a `break' after the case for 'b'.
287
288 2002-09-24  Keith Seitz  <keiths@redhat.com>
289
290         * varobj.c (c_type_of_child): Use get_target_type instead
291         of TYPE_TARGET_TYPE.
292
293 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
294
295         * source.c (get_current_or_default_source_symtab_and_line): Remove
296         function.
297         (set_default_source_symtab_and_line): New function. Attempts to
298         determine a source file to list lines from if one is not currently
299         defined.
300         (get_current_source_symtab_and_line): Initialize sal.pc and
301         sal.end fields.
302         (set_current_source_symtab_and_line): Mark argument as const.
303         * source.h: Update declarations and comments.
304         * linespec.c (decode_line_1): Replace call to removed routine above.
305         * stack.c (print_frame_info_base): Ditto.
306         * cli/cli-cmds.c (edit_command): Ditto.
307         (list_command): Ditto.
308
309 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
310
311         * source.c (get_current__or_default_source_symtab_and_line): Initialize
312         sal.pc and sal.end fields.
313         (get_current_or_default_source_symtab_and_line): Ditto.
314         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
315         so we do not cause a new source symtab to be searched for (reverting an
316         unintentional change from the 2002-09-20 patch).
317         * scm-lang.c (scm_unpac): Ditto.
318
319 2002-09-21  Andrew Cagney  <cagney@redhat.com>
320
321         * complaints.c (symfile_explanations): Remove new-line from
322         ``isolated_message''.
323         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
324         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
325
326 2002-09-20  Nick Clifton  <nickc@redhat.com>
327         
328         * NEWS: Announce that V850EA ISA is no longer supported.
329         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
330
331 2002-09-20  David Carlton  <carlton@math.stanford.edu>
332
333         * Makefile.in (c-lang.o): Correct dependencies.
334         (utils.o): Gather dependencies.
335         (charset.o): Move.
336         * c-lang.c: #include "gdb_string.h"
337
338 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
339
340         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
341         * cli/cli-cmds.c (list_command): New function.  Implements the new
342         cli edit command.
343         (_init_cli_cmds): Add new command definition.
344         * gdb.1: Document edit command.
345         * doc/gdb.texinfo: Document edit command.
346
347 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
348
349         * source.c: Make global variables current_source_symtab and
350         current_source_line static.
351         (list_command): Moved to cli/cli-cmds.c.
352         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
353         (get_first_line_listed): New accessor function.
354         (get_lines_to_list): New accessor function.
355         (get_current_source_symtab_and_line): New function. Retrieves the
356         position in the source code that we consider current.
357         (get_current_or_default_source_symtab_and_line): New function.
358         Like the above but attempts to determine a default position if one
359         is not currently defined.
360         (set_current_source_symtab_and_line): New function. Sets the source
361         code position considered current and returns the previously set one.
362         (clear_current_source_symtab_and_line): Reset stored information about
363         a current source line.
364         (_initialize_source): Remove registration for the "list" command and
365         its alias.
366         * source.h: Add declarations for the new functions above.
367         * symtab.h: Remove declarations for the global variables mentioned
368         above.
369         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
370         obtain current source line.
371         * linespec.c (decode_line_1): Ditto.
372         * macroscope.c (default_macro_scope): Ditto.
373         * scm-lang.c (scm_unpac): Ditto.
374         * stack.c (print_frame_info_base): Ditto.
375         * symfile.c (clear_symtab_users): Ditto.
376         * symtab.c (decode_line_spec): Ditto.
377         * cli/cli-cmds.c (list_command): Moved here from source.c.
378         (ambiguous_line_spec): Moved here from source.c.
379         (_init_cli_cmds): Add definition for "list" and its alias.
380         * Makefile.in: Update dependencies.
381
382 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
383
384         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
385         with what gcc thinks is correct.
386
387 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
388
389         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
390         multiple register push instruction.
391
392 2002-09-19  Jim Blandy  <jimb@redhat.com>
393
394         Add support for distinct host and target character sets.
395         * charset.c, charset.h: New files.
396         * c-exp.y: #include "charset.h".
397         (yylex): Convert character and string literals to the target
398         character set, before returning them as the semantic value of the
399         token.
400         * c-lang.c: #include "charset.h".
401         (c_emit_char): Use charset-specific methods to recognize
402         characters with backslash escape forms, to decide which characters
403         to print literally and which to print using numeric escape
404         sequences, and to convert target characters to host characters
405         before printing.
406         * utils.c: #include "charset.h".
407         (no_control_char_error): New function.
408         (parse_escape): Use charset-specific methods to recognize
409         backslash escapes, parse `control character' notation, and convert
410         characters from the host character set to the target character set.
411         * configure.in: Set the default host character set.
412         Check where to find iconv, and what its argument types might be.
413         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
414         * Makefile.in (SFILES): List charset.c.
415         (COMMON_OBS): List charset.o.   
416         (charset.o): New rule.
417         (charset_h): New header dependency variable.
418         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
419         (LIBICONV): New variable, set by configure.
420         (CLIBS): Include $(LIBICONV) here.
421         * aclocal.m4, config.in, configure: Regenerated.
422
423 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
424
425         * ada-exp.y: Add missing semicolons to end rules. Fixes a
426         bison 1.35 warning.
427
428 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
429
430         * gdb_mbuild.sh: New file.
431
432 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
433
434         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
435
436 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
437
438         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
439         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
440         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
441         valops.c, value.h: Revert previous change.
442         
443 2002-09-18  Michael Snyder  <msnyder@redhat.com>
444
445         Preliminary support for Objective-C:
446         * defs.h (language_objc): New enum value.
447         (puts_filtered_tabular): Declaration only, exported from utils.c.
448         (skip_quoted): Delete, declared in completer.h.
449         * c-exp.y: Include completer.h.
450         * p-exp.y: Ditto.
451         * jv-exp.y: Ditto.
452         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
453         New operator enum values.
454         * language.h (CAST_IS_CONVERSION): Test for language_objc.
455         * language.c (binop_result_type): Handle language_objc case.
456         (integral_type, character_type, string_type, boolean_type,
457         structured_type, binop_type_check): Ditto.
458         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
459         (struct objc_specific): Add to general_symbol_info.
460         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
461         (SYMBOL_DEMANGLED_NAME): Handle objc case.
462         * parser-defs.h (struct objc_class_str): New struct type.
463         (start_msglist, end_msglist, add_msglist): Declaration only,
464         exported from objc-lang.c.
465         * value.h (value_of_local, value_nsstring, 
466         call_function_by_hand_expecting_type): Exported from valops.c.
467         * valops.c (find_function_addr): Export.
468         (call_function_by_hand_expecting_type): New function.
469         (value_of_local): New function.
470         * symfile.c (init_filename_language_table): Add ".m" extension
471         for Objective-C.
472         * utils.c (puts_filtered_tabular): New function.
473         (fprintf_symbol_filtered): Add objc demangling support (disabled).
474         (set/show demangle): Extend help-string to refer to ObjC.
475         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
476         * stabsread.c (symbol_reference_defined): Objective-C symbols
477         may contain colons: make allowances when scanning stabs strings
478         for colons.
479         (objc_find_colon): New function.
480         * printcmd.c (address_info): If language == objc then print
481         "self" instead of "this".
482         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
483         OP_NSSTRING, and OP_SELF.
484         (prefixify_subexp): Ditto.
485         * source.c (print_source_lines): Mention objc in comment.
486         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
487         method names.
488
489 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
490
491         * complaints.h: Update copyright.
492         (struct complaints): Declare.
493         (struct complaint): Make `message' constant.
494         (internal_complaint): Declare.
495         (complaint): Declare.
496         (complaint_root): Delete declaration.
497         (symfile_complaints): Delete declaration.
498         (struct complaints): Add opaque declaration.
499         (clear_complaints): Add a complaints parameter.
500         * complaints.c: Update copyright.
501         (enum complaint_series): Define.
502         (complaint_root): Delete.
503         (struct complaints): Define.
504         (complaint_sentinel, symfile_complaint_book): New variables.
505         (symfile_explanations, symfile_complaints): New variables.
506         New variables.
507         (get_complaints): New function.
508         (vcomplaint): New function.
509         (complaint): New function.
510         (internal_complaint): New function.
511         (complain): Call vcomplain with symfile_complaint.
512         (clear_complaints): Rewrite.
513         (_initialize_complaints): Use add_setshow_command.
514         * Makefile.in (complaints.o): Update dependencies.
515         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
516         to call to clear_complaints.
517         (new_symfile_objfile, reread_symbols): Ditto.
518         (oldsyms_complaint): Delete.
519         (empty_symtab_complaint, unknown_option_complaint): Delete.
520         (free_named_symtabs): Use complaint instead of complain.
521
522 2002-09-18  Michael Snyder  <msnyder@redhat.com>
523
524         Contributed by Apple Computer, Inc.  Merged with current sources
525         by Adam Fedor <fedor@doc.com> [cagney].
526         
527         * objc-lang.c: First clean-up round: comments, indentation.
528         * objc-lang.h: Ditto.
529         * objc-lang.y: Ditto.
530
531 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
532
533         * maint.c (maintenance_internal_error): Print the parameter as the
534         error message.
535         (maintenance_internal_warning): New function.
536         (_initialize_maint_cmds): Add command `maint internal-warning'.
537
538         * defs.h (internal_warning, internal_vwarning): Declare.
539         * utils.c (struct internal_problem): Define.
540         (internal_vproblem): New function.
541         (internal_warning): New function.
542         (internal_vwarning): New function.
543         (internal_warning_problem, internal_error_problem): New variables.
544         (internal_verror): Just call internal_vproblem.
545
546 2002-09-18  Michael Snyder  <msnyder@redhat.com>
547
548         * objc-lang.c: New file, support for Objective-C.
549         Preliminary check-in, not yet integrated into gdb.
550         * objc-lang.h: New file.
551         * objc-exp.y:  New file.
552
553 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
554
555         * infrun.c (signal_stop_update): Convert definition to ISO C.
556         (signal_print_update): Ditto.
557         (signal_pass_update): Ditto.
558         * inflow.c (terminal_save_ours): Ditto.
559
560         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
561         comments.
562         
563         * config/djgpp/fnchange.lst: Handle name clashes between
564         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
565         bfd/coff-tic80.c.
566
567         * i386-linux-tdep.h: Fix tipo.
568
569 2002-09-18  Adam Fedor  <fedor@gnu.org>
570
571         * MAINTAINERS: Add myself to the Write After Approval list.
572
573 2002-09-18  Jim Blandy  <jimb@redhat.com>
574
575         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
576         texthigh and textlow to reader-specific structs caused
577         objfile_relocate to miss them.  This is fixable, but the work that
578         the change was supposed to prepare GDB for never got done anyway.
579
580 2002-09-18  David Carlton  <carlton@math.stanford.edu>
581
582         * MAINTAINERS: Alphabetize Write After Approval list.
583
584 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
585
586         Fix PR gdb/709
587         * values.c (value_static_field): Call read_var_value.
588
589 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
590
591         * valops.c (hand_function_call): Align the initial stack pointer
592         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
593         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
594         return value.
595         * mips-tdep.c (mips_frame_align): New function.
596         (mips_gdbarch_init): Set frame_align.
597         * gdbarch.sh (FRAME_ALIGN): New method.
598         * gdbarch.h, gdbarch.c: Re-generate.
599
600 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
601
602         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
603         registers.
604
605 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
606
607         * NEWS: Mention that MIPS $fp behavior changed.
608         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
609         reference to FP_REGNUM.
610         (mipsnbsd_cannot_store_register): Ditto.
611         * mips-linux-nat.c: Update copyright.
612         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
613         (mips_linux_cannot_store_register): Ditto.
614         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
615         * config/mips/tm-mips.h: Update copyright.
616         (FP_REGNUM): Delete macro.
617         (MIPS_REGISTER_NAMES): Replace "fp" with "".
618         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
619         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
620         (mips_r3041_reg_names, mips_r3051_reg_names)
621         (mips_r3081_reg_names): Replace "fp" with "".
622         Fix PR gdb/480.
623
624 2002-09-17  Theodore A. Roth  <troth@verinet.com>
625
626         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
627         generic_read_register_dummy() (PR gdb/703).
628         (avr_push_return_address): #if 0 out unused vars.
629         (avr_gdbarch_init): Enable use of avr_push_return_address().
630
631 2002-09-17  Michael Snyder  <msnyder@redhat.com>
632
633         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
634         RTE will take care of it.
635
636 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
637
638         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
639         invalid, return SP_REGNUM.
640
641 2002-09-17  Michael Snyder  <msnyder@redhat.com>
642
643         * mips-tdep.c (mips_pop_frame): Read saved values of floating
644         point registers without sign extension.
645
646 2002-09-17  Andrew Cagney  <cagney@redhat.com>
647
648         * blockframe.c (deprecated_read_register_dummy): Rename
649         generic_read_register_dummy.
650         * frame.c (frame_unwind_signed_register): New function.
651         (frame_unwind_unsigned_register): New function.
652         * frame.h (frame_unwind_signed_register): Declare.
653         (frame_unwind_unsigned_register): Declare.
654         (deprecated_read_register_dummy): Rename
655         generic_read_register_dummy.
656
657         * h8300-tdep.c (h8300_frame_chain): Update.
658         (h8300_frame_saved_pc): Update.
659         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
660         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
661         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
662         (s390_frame_chain): Update.
663         * v850-tdep.c (v850_find_callers_reg): Update.
664         (v850_frame_saved_pc): Update.
665         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
666         (m32r_find_callers_reg): Update.
667         (m32r_frame_saved_pc): Update.
668         * sh-tdep.c (sh_find_callers_reg): Update.
669         (sh64_get_saved_pr): Update.
670         (sh_init_extra_frame_info): Update.
671         (sh_init_extra_frame_info): Update.
672         (sh64_init_extra_frame_info): Update.
673         (sh64_init_extra_frame_info): Update.
674         * mcore-tdep.c (mcore_find_callers_reg): Update.
675         (mcore_frame_saved_pc): Update.
676         (mcore_init_extra_frame_info): Update.
677         * i386-tdep.c (i386_frame_saved_pc): Update.
678         * ia64-tdep.c (ia64_frame_saved_pc): Update.
679         (ia64_init_extra_frame_info): Update.
680         (ia64_init_extra_frame_info): Update.
681         * d10v-tdep.c (d10v_frame_saved_pc): Update.
682         * cris-tdep.c (cris_init_extra_frame_info): Update.
683         * avr-tdep.c (avr_frame_chain): Update.
684         (avr_init_extra_frame_info): Update.
685         (avr_frame_saved_pc): Update.
686         * arm-tdep.c (arm_find_callers_reg): Update.
687         (arm_init_extra_frame_info): Update.
688         (arm_frame_saved_pc): Update.
689
690 2002-09-17  Tom Tromey  <tromey@redhat.com>
691
692         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
693         is "'".
694
695 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
696
697         * MAINTAINERS: Remove "non multi-arched" text from h8300.
698         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
699         NEXT_PROLOGUE_INSN.
700         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
701         NEXT_PROLOGUE_INSN.
702
703 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
704
705         * osfsolib.c: Remove file, replaced by solib-osf.c.
706         * Makefile.in: Remove compilation rules for osfsolib.c.
707
708 2002-09-16  David Carlton  <carlton@math.stanford.edu>
709
710         * cp-valprint.c (cp_print_class_method): Correct args to
711         check_stub_method_group.
712
713 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
714
715         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
716         `set architecture'.  Unify naming convention of functions.
717         (h8300_skip_prologue): Improve prologue analysis.
718         (h8300_push_arguments): Rewritten to more closely match GCC's
719         bizarre argument-passing behavior, along with the comment describing
720         said behavior.
721         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
722         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
723         sim, remote-e7000.c, remote-hms.c and remote.c
724
725 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
726
727         * i386-tdep.c (gdb_print_insn_i386): Removed.
728         (i386_print_insn): New function.
729         (i386_gdbarch_init): Set print_insn to i386_print_insns.
730         (_initialize_i386_tdep): Don't initialize tm_print_insn and
731         tm_print_insn_info.
732
733 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
734
735         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
736         zero.
737
738 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
739
740         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
741         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
742         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
743
744 2002-09-13  Christopher Faylor  <cgf@redhat.com>
745
746         * win32-nat.c (child_create_inferior): Honor 'tty' command.
747
748 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
749
750         * gdbtypes.c (check_stub_method): Make static.
751         (check_stub_method_group): New function.
752         * gdbtypes.h: Update prototypes.
753         * cp-support.c: New file.
754         * cp-support.h: New file.
755
756         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
757         (update_method_name_from_physname): New function.
758         (read_member_functions): Correct method names for operators
759         and v3 constructors/destructors.  Separate v2 constructors and
760         destructors.
761         * Makefile.in (stabsread.o): Update dependencies.
762         (SFILES): Add cp-support.c.
763         (COMMON_OBS): Add cp-support.o.
764         (cp_support_h, cp-support.o): Add.
765
766         * cp-valprint.c (cp_print_class_method): Call
767         check_stub_method_group instead of check_stub_method.  Remove
768         extraneous QUITs.
769         * p-valprint.c (pascal_object_print_class_method): Likewise.
770         * valops.c (search_struct_method): Likewise.
771         (find_method_list, value_struct_elt_for_reference): Likewise.
772
773 2002-09-13  Andrew Cagney  <cagney@redhat.com>
774
775         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
776         * gdbarch.h, gdbarch.c: Regenerate.
777
778 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
779
780         * frame.c (find_saved_register): Delete function.
781         * frame.h (find_saved_register): Delete declaration.
782         Fix PR gdb/631.
783
784 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
785
786         * mips-tdep.c (read_next_frame_reg): Re-hack using
787         frame_register_unwind.
788
789 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
790
791         * mips-tdep.c (mips_get_saved_register): Re-hack using
792         frame_register_unwind.
793
794 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
795
796         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
797         vector. Will be useful for Interix.  
798         * gdbarch.h, gdbarch.c: Regenerate.
799
800         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
801         name of the malloc function by NAME_OF_MALLOC.
802
803 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
804
805         * value.h (find_function_in_inferior): Add const keyword to
806         one of the parameters. Allows us to invoke this function with
807         a const char *.
808         * valops.c (find_function_in_inferior): Likewise.
809
810 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
811
812         * exec.c (xfer_memory): Fix compilation warning with old versions
813         of GCC.
814         * tracepoint.c (trace_find_tracepoint_command): Likewise.
815
816 2002-09-12  David Carlton  <carlton@math.stanford.edu>
817
818         * symtab.h: Run through gdb_indent.h.
819         Add 2002 to Copyright year list.
820
821 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
822
823         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
824         mach constants.
825         * MAINTAINERS: Add myself to write after approval list.
826
827 2002-09-11  J. Brobecker  <brobecker@gnat.com>
828
829         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
830
831 2002-09-11  J. Brobecker  <brobecker@gnat.com>
832
833         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
834         Interix.
835
836 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
837
838         * procfs.c (do_detach): Clear current signal, not just fault.
839         Corrects problem with breakpoint trap signal leaking to detached
840         process on Tru64.
841
842 2002-09-10  Michael Snyder  <msnyder@redhat.com>
843
844         * buildsym.c (finish_block): Protect against null pointer.
845
846 2002-09-10  Andrew Cagney  <cagney@redhat.com>
847
848         * infcmd.c (default_print_registers_info): Send all output to
849         ``file'' instead of ``gdb_stdout''.
850
851 2002-09-10  Michael Snyder  <msnyder@redhat.com>
852
853         * mips-tdep.c (mips_extract_struct_value_address): Make val a
854         LONGEST, and use signed register read (addresses are sign-
855         extended for mips).
856
857 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
858
859         * event-loop.c (gdb_do_one_event): Make public.
860         * event-loop.h (gdb_do_one_event): Declare.
861
862 2002-09-10  Jeff Law  <law@redhat.com>
863
864         * infttrace.c (child_resume): Simplify and rework to avoid
865         TT_PROC_CONTINUE.
866
867 2002-09-09  Fred Fish  <fnf@intrinsity.com>
868
869         * printcmd.c (print_scalar_formatted): "len" is the number of
870         target bytes, NOT the number of target bits.
871
872 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
873
874         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
875         * top.c (init_main): Set rl_terminal_name.
876
877 2002-09-08  Aidan Skinner <aidan@velvet.net>
878
879         * ada-lang.c (ada_array_bound, ada_type_match,
880         _initialize_ada_language): Fix K&R definitions.
881         * ada-tasks.c (get_current_task): Fix K&R definitions.
882         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
883                         
884 2002-09-07  Christopher Faylor  <cgf@redhat.com>
885
886         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
887         Add XP.
888
889 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
890
891         * i386-tdep.c (i386_register_virtual_type,
892         i386_register_convertible, i386_register_convert_to_virtual,
893         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
894         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
895         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
896         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
897         Don't set push_arguments twice.
898
899         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
900         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
901         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
902         sigtramp_end to NULL.
903         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
904         defines.
905         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
906
907         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
908         whitespace.
909
910         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
911         * gdbarch.h, gdbarch.c: Re-generate.
912         * blockframe.c (find_pc_sect_partial_function): Convert to use
913         SIGTRAMP_START_P predicate.
914
915 2002-09-05  Michael Snyder  <msnyder@redhat.com>
916
917         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
918         generic_dummy_frame method and old method.  Also distinguish
919         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
920         (arm_extract_return_value): Use new regcache method.
921
922         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
923         adjustment that doesn't conform to the ABI.
924         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
925         saved regcache, not from current regcache.
926
927 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
928
929         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
930         * README: Update.
931
932 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
933
934         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
935         if arm_apcs_32 is false.
936
937 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
938
939         GDB 5.3 branch created.
940
941 2002-09-03  Theodore A. Roth  <troth@verinet.com>
942
943         * gdb/avr-tdep.c (avr_gdbarch_init): Use
944         generic_unwind_get_saved_register.
945
946 2002-09-03  David Carlton  <carlton@math.stanford.edu>
947
948         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
949         argument (PR gdb/653).  Update call to smash_to_method_type.
950         (read_structure_scope): Update call to dwarf2_add_member_fn.
951
952 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
953
954         * x86-64-linux-tdep.c: Include gdb_string.h
955         * x86-64-linux-nat.c: Ditto.
956
957 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
958
959         * ada-exp.y (yyname, yyrule): Remap global variables that appear
960         when YYDEBUG is set to 1.  
961         * c-exp.y: Likewise.
962         * f-exp.y: Likewise.
963         * jv-exp.y: Likewise.
964         * m2-exp.y: Likewise.
965         * p-exp.y: Likewise.
966
967 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
968
969         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
970         dependency list.
971         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
972         solib_svr4_fetch_link_map_offsets to
973         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
974         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
975         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
976         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
977         solib-svr4.o, and solib-legacy.o.
978         * config/i386/tm-nbsd.h: Include solib.h.
979
980 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
981
982         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
983         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
984         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
985         comment noting that this needs its own target configuration.
986         * config/i386/nbsd.mt: New file.
987         * config/i386/nbsdaout.mt: Remove.
988         * config/i386/nbsdelf.mt: Ditto.
989         * config/i386/tm-nbsdaout.h: Ditto. 
990
991 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
992
993         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
994         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
995         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
996         tdep->sigtramp_end.
997         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
998         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
999         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1000
1001 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1002
1003         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1004         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1005         * i386-tdep.h (i386bsd_init_abi): New prototype.
1006         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1007         function declaration.
1008         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1009         for NetBSD-a.out or NetBSD-ELF.
1010         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1011         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1012         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1013         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
1014         and nbsd-tdep.h.
1015         (i386nbsd_pc_in_sigtramp): New function.
1016         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1017         i386nbsd_pc_in_sigtramp.
1018         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1019         and i386nbsdelf_init_abi OS ABI handlers.
1020         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1021         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1022
1023 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
1024
1025         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1026         registers if the target really has them.
1027
1028 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
1029
1030         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1031         than nbsd-tdep.h.
1032
1033 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
1034
1035         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1036         list.
1037         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1038         (alphanbsd_skip_sigtramp_frame): New functions. 
1039         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1040         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
1041         to alphanbsd_sigcontext_addr. 
1042
1043 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
1044
1045         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1046         list.
1047         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
1048         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1049         nbsd_pc_in_sigtramp. 
1050         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1051         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1052         * nbsd-tdep.c: Include gdb_string.h.
1053         (nbsd_pc_in_sigtramp): New function. 
1054         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
1055         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1056         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1057         ppcnbsd_pc_in_sigtramp. 
1058         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1059         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1060         shnbsd_pc_in_sigtramp. 
1061         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1062         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
1063         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1064
1065 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
1066
1067         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1068         watchpoints to NULL.
1069         (insert_breakpoints): set val field of watchpoints if NULL.
1070
1071
1072 2002-08-29  Jim Blandy  <jimb@redhat.com>
1073
1074         * symtab.c (lookup_symbol_aux): In the cases where we find a
1075         minimal symbol of an appropriate name and use its address to
1076         select a symtab to read and search, use `name' (as passed to us)
1077         as the demangled name when searching the symtab's global and
1078         static blocks, not the minsym's name.
1079
1080 2002-08-29  Keith Seitz  <keiths@redhat.com>
1081
1082         * stack.c (print_frame_info_base): Always set current_source_symtab
1083         and current_source_line.
1084
1085 2002-08-29  Donn Terry  <donnte@microsoft.com>
1086
1087         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1088
1089 2002-08-28  Keith Seitz  <keiths@redhat.com>
1090
1091         * stack.c (select_frame): Add FIXME concerning selected-frame
1092         events.
1093         (select_frame_command): Send selected-frame-level-changed
1094         event notification, but only if the level actually changed.
1095         (up_silently_base): Add selected-frame-level-changed event
1096         notification.
1097         (down_silently_base): Likewise.
1098
1099 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
1100
1101         * Makefile.in: Update dependencies for all gdb/*.c files.
1102
1103 2002-08-27  Tom Tromey  <tromey@redhat.com>
1104
1105         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1106         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1107         Update dependencies.
1108         * i387-tdep.c: Include gdb_string.h.
1109         * osabi.c: Likewise.
1110         * i386-linux-nat.c: Likewise.
1111         * lin-lwp.c: Likewise.
1112         * ax-gdb.c: Likewise.
1113         * signals/signals.c: Likewise.
1114         * jv-valprint.c: Likewise.
1115         * p-lang.c: Likewise.
1116         * c-valprint.c: Likewise.
1117         * cp-abi.c: Likewise.
1118
1119 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
1120
1121         * cli/cli-script.h (copy_command_lines): Export.
1122         * breakpoint.c: Include cli/cli-script.h.
1123         * Makefile.in (breakpoint.o): Update dependencies.
1124
1125 2002-08-26  Michael Snyder  <msnyder@redhat.com>
1126
1127         * breakpoint.c (insert_breakpoints): Protect all references
1128         to 'process_warning'.  Shorten long lines.
1129
1130 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
1131
1132         * cli/cli-script.c (copy_command_lines): New function.
1133         * defs.h (copy_command_lines): Export.
1134         * testsuite/gdb.base/commands.exp: New tests for commands
1135         attached to a temporary breakpoint, and for commands that
1136         delete the breakpoint they are attached to.
1137         
1138 2002-08-26  Michael Snyder  <msnyder@redhat.com>
1139
1140         * breakpoint.c (bpstat_stop_status): Instead of copying the 
1141         pointer to the breakpoint commands struct, make a new copy
1142         of the struct and point to that.
1143         (bpstat_clear): Free the commands struct.
1144         (bpstat_clear_actions): Free the commands struct.
1145         (bpstat_do_actions): Free the command actions.  Also execute
1146         the local cleanups, instead of deleting them.
1147         (delete_breakpoint): Leave the commands field of the bpstat
1148         chain alone -- it will be freed later.
1149
1150 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
1151
1152         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1153         deleted in 2002-08-20 commit.  This function is still used by
1154         ppc-linux-nat.c.
1155
1156 2002-08-26  Keith Seitz  <keiths@redhat.com>
1157
1158         * gdb-events.sh: Add selected-frame-level-changed event.
1159         * gdb-events.c: Regenerated.
1160         * gdb-events.h: Regenerated.
1161         
1162 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
1163
1164         Fix PR gdb/393:
1165         * inflow.c (terminal_save_ours): New function to save terminal
1166         settings.
1167         * inferior.h (terminal_save_ours): Declare.
1168         * target.c (debug_to_terminal_save_ours): New function.
1169         (cleanup_target): Defaults to_terminal_save_ours.
1170         (update_current_target): Inherit to_terminal_save_ours.
1171         (setup_target_debug): Set to_terminal_save_ours.
1172         * target.h (target_terminal_save_ours): New to save terminal settings.
1173         (target_ops): New member to_terminal_save_ours.
1174         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1175         * hpux-thread.c (init_hpux_thread_ops): Likewise.
1176         * inftarg.c (init_child_ops): Likewise.
1177         * m3-nat.c (init_m3_ops): Likewise.
1178         * procfs.c (init_procfs_ops): Likewise.
1179         * wince.c (init_child_ops): Likewise.
1180         * win32-nat.c (init_child_ops): Likewise.
1181         * sol-thread.c (init_sol_thread_ops): Likewise.
1182
1183 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
1184
1185         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
1186         use regcache_* functions.
1187         (i386_gdbarch_init): Set store_return_value instead of
1188         deprecated_store_return_value.
1189
1190         * regcache.c (regcache_raw_write_signed,
1191         regcache_raw_write_unsigned): New functions.
1192         * regcache.h (regcache_raw_write_signed,
1193         regcache_raw_write_unsigned): New prototypes.
1194
1195 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
1196
1197         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1198         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1199         source file dependencies.  Cleanup corresponding generator rules.
1200
1201 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
1202
1203         * regcache.h (register_offset_hack): Declare.
1204         (regcache_cooked_read_using_offset_hack): Declare.
1205         (regcache_cooked_write_using_offset_hack): Declare.
1206
1207         * regcache.c (register_offset_hack): New function.
1208         (regcache_cooked_read_using_offset_hack): New function.
1209         (regcache_cooked_write_using_offset_hack): New function.
1210         (regcache_dump): Check that the registers, according to their
1211         offset, are packed hard against each other.
1212         (cooked_xfer_using_offset_hack): New function.
1213
1214 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
1215
1216         * regcache.c (struct regcache_descr): Add field register_type.
1217         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1218         in as a parameter
1219         (init_regcache_descr): Initialize register_type.  Pass the descr
1220         to init_legacy_regcache_descr.  Use register_type instead of
1221         REGISTER_VIRTUAL_TYPE.
1222         (register_type): New function.
1223         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1224         * regcache.h (register_type): Declare.
1225
1226 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
1227
1228         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1229         instead of deprecated_store_return_value.  Fix fallout from
1230         2002-08-23 Andrew Cagney <cagney@redhat.com>.
1231
1232 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
1233
1234         * regcache.c (max_register_size): New function.
1235         (init_legacy_regcache_descr): Ensure that max_register_size is
1236         large enough for REGISTER_VIRTUAL_SIZE.
1237         * regcache.h (max_register_size): Declare.
1238
1239 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
1240
1241         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1242         store_return_value.
1243         (e500_extract_return_value): Change type of valbuf pointer to
1244         void.
1245
1246 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
1247
1248         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1249         workaround.
1250
1251         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1252         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1253         long long) to prevent compiler warning on 64-bit systems.
1254
1255 2002-08-23  Andrew Cagney  <cagney@redhat.com>
1256
1257         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1258         (DEPRECATED_STORE_RETURN_VALUE): New method.
1259         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1260         * gdbarch.h, gdbarch.c: Re-generate.
1261
1262         * values.c (set_return_value): Pass current_regcache to
1263         STORE_RETURN_VALUE.
1264         * arch-utils.h (legacy_store_return_value): Declare.
1265         * arch-utils.c (legacy_store_return_value): New function.
1266         (legacy_extract_return_value): Update parameters.
1267
1268         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1269         STORE_RETURN_VALUE.
1270         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1271         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1272         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1273         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1274         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1275         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1276         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1277         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1278         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1279         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1280
1281         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1282         * i386-tdep.c (i386_extract_return_value): Update.
1283         * arch-utils.c (legacy_extract_return_value): Update.
1284         * frv-tdep.c (frv_gdbarch_init): Update.
1285         * cris-tdep.c (cris_gdbarch_init): Update.
1286         * d10v-tdep.c (d10v_gdbarch_init): Update.
1287         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1288         * m68k-tdep.c (m68k_gdbarch_init): Update.
1289         * mcore-tdep.c (mcore_gdbarch_init): Update.
1290         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1291         * s390-tdep.c (s390_gdbarch_init): Update.
1292         * sparc-tdep.c (sparc_gdbarch_init): Update.
1293         * sh-tdep.c (sh_gdbarch_init): Update.
1294         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1295         * v850-tdep.c (v850_gdbarch_init): Update.
1296         * avr-tdep.c (avr_gdbarch_init): Update.
1297         * ia64-tdep.c (ia64_gdbarch_init): Update.
1298         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1299         * vax-tdep.c (vax_gdbarch_init): Update.
1300         * alpha-tdep.c (alpha_gdbarch_init): Update.
1301         * arm-tdep.c (arm_gdbarch_init): Update.
1302         * mips-tdep.c (mips_gdbarch_init): Update.
1303         * i386-tdep.c (i386_gdbarch_init): Update.
1304
1305 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
1306
1307         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1308         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1309
1310 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
1311
1312         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
1313         problems.
1314
1315 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
1316
1317         * infrun.c (handle_inferior_event): Move a comment outside of a
1318         function call, in order to avoid indent reformatting this part
1319         of the code in an unreadable way.
1320
1321 2002-08-23  Grace Sainsbury  <graces@redhat.com>
1322
1323         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1324         when breakpoints fail. Move general breakpoint error messages to
1325         insert_breakpoints.  
1326         * breakpoint.c (insert_breakpoints): Change warnings when
1327         breakpoints are nto inserted to specify the type. Remove call to
1328         memory_error when hardware breakpoints can't be inserted. Remove
1329         multiple calls to warning so all messages are sent to the user at
1330         once.
1331         (delete_breakpoints): Make insert error messsages more explicit.
1332
1333 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
1334
1335         * ChangeLog: Move gdbserver entries after GDB 5.2 to
1336         gdbserver/ChangeLog.
1337
1338 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
1339
1340         * i386-tdep.c: Include "objfiles.h".
1341         (i386_svr4_init_abi): Set in_solib_call_trampoline and
1342         skip_trampoline_code.
1343         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1344         (CPLUS_MARKER): Define to '.'.
1345
1346         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1347         member.
1348         (linux_corefile_thread_callback): Increase args->num_notes.
1349         (linux_make_note_section): Initialize thread_args.num_notes, and
1350         use it to determine whether notes for any threads were created.
1351
1352 2002-08-23  Donn Terry  <donnte@microsoft.com>
1353
1354         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1355         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1356         and PCUNKILL.
1357         (write_with_trace): Conditionalize out the switch branch handling
1358         PCSHOLD if the corresponding macro is not defined. Likewise for
1359         PRSABORT and PRSTOP.
1360         This change will be needed by the Interix port.
1361
1362 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
1363
1364         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1365         write_register wherever possible instead of manipulating the
1366         register bytes directly.
1367         Assign VALUE_CONTENTS to a variable and use that.
1368         The GPR numbers are now dependent on the architecture.
1369         
1370 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
1371
1372         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1373         ev_offset fields.
1374         (skip_prologue): Add support for BookE/e500 instructions.
1375         (e500_extract_return_value): New function.
1376         (frame_get_saved_regs): Add support for saving ev registers and
1377         pseudo gpr's.
1378         (e500_store_return_value): New function.
1379         (rs6000_gdbarch_init): Move up default intializations of
1380         deprecated_extract_return_value and store_return_value.  Overwrite
1381         init of store_return_value with e500 specific version.
1382         Set extract_return_value for e500.
1383         
1384 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
1385
1386         * blockframe.c (generic_call_dummy_register_unwind): Use
1387         regcache_cooked_read to catch cases in which the variable is
1388         stored in a pseudo register.
1389
1390 2002-08-22  Andrew Cagney  <cagney@redhat.com>
1391
1392         * NEWS: Mention that the i960 has been made obsolete.
1393         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1394         i960-tdep.c
1395         (remote-nrom.o): Obsolete target.
1396         (remote-nindy.o, i960-tdep.o): Ditto.
1397         * remote-nrom.c: Make file obsolete.
1398         * remote-nindy.c, remote-vx960.c: Ditto.
1399         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1400         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1401         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1402         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1403         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1404         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1405         i960-*-vxworks* obsolete.
1406         * MAINTAINERS: Note that the i960 is obsolete.
1407
1408 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
1409
1410         * aix-thread.c (aix_thread_detach): Disable thread debugging on
1411         detach to allow reinitialization.
1412
1413 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
1414
1415         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1416         attempt).
1417
1418 2002-08-22  Jim Blandy  <jimb@redhat.com>
1419
1420         * coffread.c (coff_symfile_read): Don't try to read the line
1421         number table from disk if the image file doesn't have a symbol
1422         table; we'll never actually look at the info anyway, and Windows
1423         ships DLL's with bogus file offsets for the line number data.
1424
1425 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
1426
1427         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1428         an e500 executable.
1429
1430 2002-08-21  Michael Snyder  <msnyder@redhat.com>
1431
1432         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1433         (MSYMBOL_SIZE): Replace macro with function.
1434         (DEFAULT_MIPS_TYPE): Delete unused macro.
1435         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1436         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1437
1438 2002-08-21  Jim Blandy  <jimb@redhat.com>
1439
1440         * valops.c (value_cast): Simplify and correct logic for doing a
1441         static cast from a pointer to a base class to a pointer to a
1442         derived class.
1443
1444 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
1445
1446         * infcmd.c (default_print_registers_info): Replace
1447         do_registers_info.
1448         (registers_info): Use gdbarch_print_registers_info instead of
1449         DO_REGISTERS_INFO.
1450         * inferior.h (default_print_registers_info): Replace
1451         do_registers_info.
1452         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1453         (DO_REGISTERS_INFO): Change to a predicate function.
1454         * gdbarch.h, gdbarch.c: Regenerate.
1455         
1456 2002-08-21  Keith Seitz  <keiths@redhat.com>
1457
1458         * gdb-events.sh: Add target-changed event.
1459         * gdb-events.c: Regenerated.
1460         * gdb-events.c: Regenerated.
1461         * valops.c (value_assign): Add target-changed event notification
1462         to inlval_register, lval_memory, and lval_reg_frame_relative.
1463
1464 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
1465
1466         * NEWS: Add an entry regarding the improvement of the next/step
1467         operation on Alpha Tru64 multi-processor machines.
1468
1469 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
1470
1471         * Makefile.in: Update dependencies for mi/ cli/ and tui/
1472         directores.
1473         * Makefile.in: Update all _h macro definitions.
1474         * Makefile.in (install-gdbtk): Move to install section.
1475         (rdi-share/libangsd.a): Move to end of file.
1476
1477 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
1478
1479         * frame.c (frame_register_unwind): When a register, set addrp to
1480         the register's byte.
1481
1482 2002-08-20  Michael Snyder  <msnyder@redhat.com>
1483
1484         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1485         used locally, so move them from the target machine header to here.
1486         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
1487         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
1488         Make static.
1489         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1490
1491 2002-08-20  Andrew Cagney  <cagney@redhat.com>
1492
1493         * NEWS: Mention that the Apollo line was made obsolete.
1494         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1495         m68*-hp-hpux* obsolete.
1496         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1497         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1498         * buildsym.c (make_blockvector): Make static.
1499         * buildsym.h (make_blockvector): Make extern declaration obsolete.
1500         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1501         (ALLDEPFILES): Remove dstread.c.
1502         (dstread.o): Obsolete make rule.
1503         * dstread.c: Makefile obsolete.
1504         * dst.h: Ditto.
1505         * config/m68k/hp300hpux.mt: Ditto.
1506         * config/m68k/hp300hpux.mh: Ditto.
1507         * config/m68k/hp300bsd.mt: Ditto.
1508         * config/m68k/hp300bsd.mh: Ditto.
1509         * config/m68k/apollo68b.mt: Ditto.
1510         * config/m68k/apollo68v.mh: Ditto.
1511         * config/m68k/apollo68b.mh: Ditto.
1512
1513 2002-08-20  Michael Snyder  <msnyder@redhat.com>
1514
1515         * mips-tdep.c (mips_in_return_stub): Make static.
1516         (mips_gdbarch_init): Set in_solib_return_trampoline.
1517         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1518
1519 2002-08-20  Michael Snyder  <msnyder@redhat.com>
1520
1521         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1522         * gdbarch.c, gdbarch.h: Regenerate.
1523         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1524         Add.
1525         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1526
1527 2002-08-20  Michael Snyder  <msnyder@redhat.com>
1528
1529         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1530         (mips_gdbarch_init): Set skip_trampoline_code, 
1531         in_solib_call_trampoline.
1532         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1533         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1534
1535 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
1536
1537         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1538
1539         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1540         vector type for ev registers.
1541         (e500_pseudo_register_read): New function.
1542         (e500_pseudo_register_write): New function.
1543         (e500_dwarf2_reg_to_regnum): New function.
1544         (PPC_UISA_NOFP_SPRS): New macro.
1545         (PPC_EV_REGS): New macro.
1546         (PPC_GPRS_PSEUDO_REGS): New macro.
1547         (registers_e500): New register set for e500.
1548         (variants): Add e500 variant.
1549         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1550         before setting architectural dependent variations.  Initialize ev
1551         registers numbers.  Add case for e500 architecture.  Set the
1552         number of pseudo registers.
1553
1554 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
1555
1556         * rs6000-tdep.c: Clean up comments.
1557
1558 2002-08-20  Andrew Cagney  <cagney@redhat.com>
1559
1560         * h8300-tdep.c: Re-indent file.
1561
1562 2002-08-20  Jim Blandy  <jimb@redhat.com>
1563
1564         * Makefile.in (LDFLAGS): Allow the configure script to establish a
1565         default for this.
1566
1567 2002-08-20  Keith Seitz  <keiths@redhat.com>
1568
1569         * breakpoints.c (watch_command_1): Use internal breakpoint
1570         when setting a watchpoint_scope breakpoint.
1571
1572 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
1573
1574         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1575         (build_builtin_type_vec64i): Ditto.
1576         (build_builtin_type_vec128): Ditto.
1577         (build_builtin_type_vec128i): Ditto.
1578
1579 2002-08-19  Michael Snyder  <msnyder@redhat.com>
1580
1581         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1582         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1583         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1584         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1585         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1586         CALL_DUMMY_ADDRESS): Delete.
1587         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1588         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1589         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
1590         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
1591         push_return_address.
1592         (mips_register_raw_size, mips_eabi_use_struct_convention, 
1593         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1594         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1595         mips_init_extra_frame_info, mips_eabi_push_arguments, 
1596         mips_n32n64_push_arguments, mips_push_return_address,
1597         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1598         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1599
1600 2002-08-19  Michael Snyder  <msnyder@redhat.com>
1601
1602         * mips-tdep.c (mips_frame_num_args): New function.
1603         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1604         frame_saved_pc, frame_args_address, frame_locals_address, 
1605         frame_num_args, and frame_args_skip.
1606         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1607         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
1608         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1609         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1610
1611 2002-08-20  Michael Snyder  <msnyder@redhat.com>
1612
1613         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1614         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1615         * mips-tdep.c (mips_store_struct_return): New function.
1616         (mips_extract_struct_value_address): New function.
1617         (mips_gdbarch_init): Set store_struct_return and
1618         extract_struct_value_address.
1619
1620 2002-08-20  David Carlton  <carlton@math.stanford.edu>
1621
1622         * dwarf2read.c (dwarf2_build_psymtabs): Check that
1623         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1624         (read_file_scope): Check that line_header is nonzero before
1625         decoding macro information.
1626
1627 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
1628
1629         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1630         flag the general-purpose registers as floating-point on targets
1631         that don't support the floating-point registers.
1632
1633 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
1634
1635         * rs6000-tdep.c (altivec_register_p): Delete.
1636         (rs6000_do_altivec_registers): Delete.
1637         (rs6000_altivec_registers_info): Delete.
1638         (rs6000_do_registers_info): Delete.
1639         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1640         (rs6000_gdbarch_init): Remove setting of do_registers_info.
1641
1642 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
1643
1644         * infcmd.c (do_registers_info): Print vector registers in hex
1645         format only.
1646         (print_vector_info): Check that printing registers
1647         makes sense.
1648         (print_float_info): Ditto.
1649
1650 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
1651
1652         * mips-tdep.c (mips_gdbarch_init): Update.
1653         (mips_o32_extract_return_value): Rewrite.
1654         (mips_o32_store_return_value): Rewrite.
1655         (mips_o32_xfer_return_value): New function.
1656         (mips_xfer_register): Tweak debug print message.  Allow for
1657         buf_offset when dumping the value transfered.
1658
1659 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
1660
1661         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1662         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1663         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1664         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1665         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1666
1667 2002-08-14  Michael Snyder  <msnyder@redhat.com>
1668
1669         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1670
1671 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
1672
1673         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1674         register.
1675         (P): New macro to define a register as a pseudo register.
1676         (R, R4, R8, R16, FR32, R64, R0): Updated.
1677         (struct variant): Add new fields for number of pseudo registers
1678         and number of total registers.
1679         (tot_num_registers): New macro replacing....
1680         (num_registers): ...deleted macro.
1681         (num_registers): New function.
1682         (num_pseudo_registers): New function.
1683         (variants): Update all variants to intialize new fields correctly.
1684         Postpone initialization of number of pseudo regs and real regs.
1685         (init_variants): New function.
1686         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
1687         registers offsets.
1688
1689 2002-08-19  David Carlton  <carlton@math.stanford.edu>
1690
1691         * valops.c (search_struct_field): Change error message to treat
1692         return value of 0 from value_static_field as meaning that field is
1693         optimized out.
1694         (value_struct_elt_for_reference): Ditto.
1695         * values.c (value_static_field): Treat an unresolved location the
1696         same as a nonexistent symbol.  Fix PR gdb/635.
1697         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1698         enclosed.  Fix PR gdb/574.
1699         * MAINTAINERS: Add self to Write After Approval list.
1700
1701 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
1702
1703         * mips-tdep.c (mips_xfer_register): New function.
1704         (mips_n32n64_extract_return_value): Rewrite.
1705         (mips_gdbarch_init): For N32 and N64, set extract_return_value
1706         instead of deprecated_extract_return_value.
1707
1708 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
1709
1710         * rs6000-tdep.c (TDEP): Delete macro.
1711         (branch_dest): Replace use of TDEP macro with its body.
1712         (rs6000_pop_frame): Ditto.
1713         (rs6000_push_arguments): Ditto.
1714         (rs6000_skip_trampoline_code): Ditto.
1715         (rs6000_frame_saved_pc): Ditto.
1716         (rs6000_frame_chain): Ditto.
1717         (rs6000_register_name): Ditto.
1718         (rs6000_register_byte): Ditto.
1719         (rs6000_register_raw_size): Ditto.
1720         (rs6000_register_virtual_type): Ditto.
1721         (rs6000_register_convertible): Ditto.
1722         (rs6000_convert_from_func_ptr_addr): Ditto.
1723
1724 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
1725
1726         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1727         conditionally.
1728         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1729         MIPS_LINUX_JB_ELEMENT_SIZE.
1730         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1731         for MAX_REGISTER_RAW_SIZE arrays.
1732         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1733         MIPS_LINUX_JB_ELEMENT_SIZE.
1734
1735 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1736
1737         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1738
1739 2002-08-19  Aidan Skinner <aidan@velvet.net>
1740
1741         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1742         ada-valprint.c ada-tasks.c.
1743         (YYFILES): Add ada-exp.y.
1744         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1745         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1746         (ada-exp.tab.o): New target.
1747                 
1748 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1749
1750         * regcache.c (regcache_xfer_part): New function.
1751         (regcache_raw_read_part): New function.
1752         (regcache_raw_write_part): New function.
1753         (regcache_cooked_read_part): New function.
1754         (regcache_cooked_write_part): New function.
1755         * regcache.h (regcache_raw_read_part): Declare.
1756         (regcache_raw_write_part): Declare.
1757         (regcache_cooked_read_part): Declare.
1758         (regcache_cooked_write_part): Declare.
1759
1760 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
1761
1762         * remote.c (remote_open_1): Add async_p.
1763         (remote_async_open_1): Delete.
1764         (open_remote_target): Delete.
1765         (remote_open, extended_remote_open): Update calls to remote_open_1.
1766         (remote_async_open, extended_remote_async_open): Call
1767         remote_open_1 instead of remote_async_open_1.
1768
1769 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
1770
1771         * blockframe.c: Fix a few coding standard violations.
1772
1773 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
1774
1775         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1776         here from ...
1777         * config/i386/tm-i386sco5.h: ... here.  File removed.
1778         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1779
1780         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1781         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1782         (TM_FILE): Set to tm-i386.h.
1783         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1784         * config/i386/tm-i386v.h: Remove file.
1785         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1786         instead of "i386/tm-i386v.h".
1787         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1788         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1789         "i386/tm-i386v.h".
1790         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1791         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1792         "i386/tm-i386.h".
1793
1794 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
1795
1796         * config/i386/nm-i386v.h: Add protection against
1797         multiple-inclusion.
1798         (i386_register_u_addr): Remove prototype.
1799         (register_u_addr): New prototype.
1800         (REGISTER_U_ADDR): Redefine accordingly.
1801         * i386v-nat.c: Improve several comments.
1802         (i386_register_u_addr): Change signature and rename to
1803         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
1804         ubase variable.
1805
1806 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1807
1808         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1809         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1810         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1811         deprecated_extract_return_value.
1812         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1813         rename mips_o32o64_push_arguments.
1814         (mips_gdbarch_init): Update.
1815         (mips_extract_return_value): Delete.
1816         (mips_o32_extract_return_value): Clone mips_extract_return_value.
1817         (mips_o64_extract_return_value): Clone mips_extract_return_value.
1818         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1819         (mips_n32n64_extract_return_value): Clone
1820         mips_extract_return_value.
1821         (mips_store_return_value): Delete.
1822         (mips_o32_store_return_value): Clone mips_store_return_value.
1823         (mips_o64_store_return_value): Clone mips_store_return_value.
1824         (mips_eabi_store_return_value): Clone mips_store_return_value.
1825         (mips_n32n64_store_return_value): Clone mips_store_return_value.
1826
1827 2002-08-18  Aidan Skinner <aidan@velvet.net>
1828
1829         * ada-lang.c: Use gdb_string.h instead of <string.h>.
1830         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1831                 
1832 2002-08-18  Aidan Skinner <aidan@velvet.net>
1833
1834         * ada-lang.c: Run through gdb_indent.sh.
1835         * ada-lang.h: Run through gdb_indent.sh.
1836         * ada-tasks.c: Run through gdb_indent.sh.
1837         * ada-typeprint.c: Run through gdb_indent.sh.
1838         * ada-valprint.c: Run through gdb_indent.sh.
1839
1840 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1841
1842         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1843         ABI.
1844
1845 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
1846
1847         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1848
1849         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1850         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1851
1852         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1853         write_register_gen instead of write_register_bytes.
1854
1855         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1856         i[3456]-*-osf1mk* configurations have been made obsolete.
1857         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1858         i[3456]86-*-osf1mk* hosts obsolete.
1859         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1860         targets obsolete.
1861         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1862         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1863         config/i386/i386m3.mt, config/i386/nm-m3.h,
1864         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1865         config/i386/i386mk.mh, config/i386/i386mk.mt,
1866         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1867         obsolete.
1868         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1869         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1870         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1871
1872 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1873
1874         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1875         (hppa_value_returned_from_stack): Declare.
1876         (hppa_extract_return_value): Declare.
1877         * config/pa/hppa.mt: New file.
1878         * configure.tgt: Recognize hppa*-*-*.
1879         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
1880
1881 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
1882
1883         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1884         comment.
1885
1886 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
1887
1888         * top.c (gdb_rl_operate_and_get_next): Make sure
1889         operate-and-get-next functions correctly even when the history
1890         list is completely filled.
1891
1892 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1893
1894         * MAINTAINERS (Target Instruction Set Architectures): Rename
1895         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
1896         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
1897         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
1898         already listed under Host/Native.
1899
1900         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1901         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
1902         mips*-*-*.
1903
1904 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
1905
1906         * config/ia64/ia64.mt: New file.
1907         * config/alpha/alpha.mt: New file.
1908         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1909         ia64-linux-gnu.  Mention that ia64-elf is broken.
1910         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1911
1912 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
1913
1914         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1915         generic_func_frame_valid instead of func_frame_valid.
1916
1917 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1918
1919         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1920         procfs appears to be broken when debugging on multi-processor
1921         machines. So enable software single stepping in order to avoid
1922         using the procfs interface to do next/step operations, using
1923         internal breakpoints instead.
1924
1925         * infrun.c (handle_inferior_event): Readjust the stop_pc by
1926         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1927         make this pc address equal to the value it would have if the
1928         system stepping capability was used. Also set a new flag used
1929         to ensure that we don't readjust the PC one more time later.
1930
1931         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1932         address by DECR_PC_AFTER_BREAK when software single step is
1933         in use for this architecture, as this has already been taken
1934         care of in handle_inferior_event().
1935
1936 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1937
1938         * infrun.c (handle_inferior_event): Minor reformatting, to make
1939         a rather long condition expression easier to read.
1940
1941 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1942
1943         * Makefile.in (gdbtk.o): Move to end of file.
1944         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1945         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1946         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1947         (gdbtk-wrapper.o, gdbres.o): Ditto.
1948
1949 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1950
1951         * Makefile.in (copying.o): Separate out compile rule.
1952         (hpux-thread.o, procfs.o, signals.o): Ditto.
1953         (v850ice.o, z8k-tdep.o): Ditto.
1954         (tui-file.o): Move to TUI section.
1955         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1956         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1957
1958 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1959
1960         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1961         skip_trampoline_code, for better namespace-proofing.   
1962
1963         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1964
1965 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1966
1967         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1968
1969 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1970
1971         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1972         signal, check whether we hit a breakpoint before checking for a
1973         single step breakpoint. Otherwise, GDB fails to notice that a
1974         breakpoint has been hit when stepping onto a breakpoint.
1975
1976 2002-08-16  Keith Seitz  <keiths@redhat.com>
1977
1978         * gdb-events.sh (clear_gdb_event_hooks): New function.
1979         * gdb-events.c: Regenerate.
1980         * gdb-events.h: Regenerate.
1981
1982 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1983
1984         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1985         not_a_sw_breakpoint.
1986         * breakpoint.h (bpstat_stop_status): Add parameter names.
1987
1988 2002-08-16  Grace Sainsbury  <graces@redhat.com>
1989
1990         * remote.c (remote_insert_hw_breakpoint)
1991         (remote_remove_hw_breakpoint): Fix calculation of length field
1992         for Z-packet.
1993
1994 2002-08-15  Michael Snyder  <msnyder@redhat.com>
1995
1996         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1997         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1998         (supply_fpregset): Ditto.
1999         
2000         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
2001         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
2002         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2003         (TARGET_READ_SP): Delete.
2004         (DO_REGISTERS_INFO): Delete.
2005         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2006         Delete.
2007         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2008         from macros to functions.
2009
2010         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2011         (mips_register_convertible, mips_register_convert_to_virtual,
2012         mips_register_convert_to_raw): Make static.
2013         (mips_read_sp): New function.
2014         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2015         (mips_do_registers_info): Make static.
2016         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2017         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2018         (mips_register_convert_from_type, mips_register_convert_to_type):
2019         New functions.
2020         (mips_gdbarch_init): Set up function_start_offset, 
2021         register_virtual_size, pc_in_sigtramp.
2022
2023 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
2024
2025         * infcmd.c (vector_info): New function.
2026         (_initialize_infcmd): Add command "info vector".
2027         (print_vector_info): New function.
2028
2029         * gdbarch.sh (PRINT_VECTOR_INFO): New method
2030         * gdbarch.h, gdbarch.c: Regenerate.
2031
2032 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
2033
2034         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2035         ``print_all''.  Only print vector registers when ``print_all''.
2036
2037 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
2038
2039         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2040         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2041
2042         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2043         Add `args' parameter.
2044         * gdbarch.h, gdbarch.c: Regenerate.
2045         
2046         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2047         
2048         * infcmd.c (float_info): Call print_float_info.
2049         (print_float_info): New function.  By default, print the
2050         floating-point registers.
2051
2052         * arch-utils.h (default_print_float_info): Delete declaration.
2053         * arch-utils.c (default_print_float_info): Delete function.
2054         
2055 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
2056
2057         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2058         out define.
2059
2060         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2061         FRAME.
2062
2063         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2064         * configure.host: Make i[3456]86-*-aix host obsolete.
2065         * configure.tgt: Make i[3456]86-*-aix target obsolete.
2066         * config/i386/i386aix.mh, config/i386/i386aix.mt,
2067         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2068         config/i386/xm-i386aix.h: Make files obsolete.
2069         * i386aix-nat.c: Make file obsolete.
2070         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2071         (i386aix-nat.o): Make target obsolete.
2072
2073         * config/i386/nm-gnu.h: Removed.
2074         * config/i386/nm-i386gnu.h: New file.
2075         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2076         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2077         Moved here from ...
2078         * config/i386/tm-i386gnu.h: ... here.  Removed.
2079         * config/i386/xm-i386gnu.h: Removed.
2080         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2081         (NAT_FILE): Set to nm-i386gnu.h.
2082         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2083         * i386-tdep.c: New file.
2084         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2085         (i386gnu-tdep.o): Specify dependencies.
2086
2087 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
2088
2089         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2090         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2091         Adjust a few comments to reflect reality a bit closer.
2092         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2093         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2094         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2095         target_insert_watchpoint, target_remove_watchpoint):
2096         Move defines to ...
2097         * config/i386/nm-i386sco5.h: ... here.
2098         (kernel_u_size): Add prototype.  Improve a few comments and add
2099         protection against multiple inclusion.
2100         
2101         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2102         out define.
2103
2104         * uw-thread.c (SP_ARG0): Define if not already defined.
2105         * config/i386/tm-i386.h (SO_ARG0): Remove define.
2106
2107         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2108
2109         * config/i386/tm-i386.h: Don't include "regcache.h".
2110
2111         * i387-tdep.h (i387_print_float_info): New prototype.
2112         * i387-tdep.c (print_i387_value, print_i387_ext,
2113         print_i387_status_word, print_i387_control_word): Add `struct
2114         ui_file *' argument and use it for output.
2115         (i387_print_float_info): Renamed from i387_float_info.  Add
2116         `struct gdbarch *' and `struct ui_file *' arguments and use the
2117         latter for output.
2118         * i386-tdep.c: Include "i387-tdep.h".
2119         (i386_gdbarch_init): Set print_float_info.
2120         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2121         (FLOAT_INFO): Remove define.
2122
2123 2002-08-13  Michael Snyder  <msnyder@redhat.com>
2124
2125         * mips-tdep.c (mips_push_arguments): Rename to
2126         mips_eabi_push_arguments, and tune for EABI.
2127         (MIPS_REGS_HAVE_HOME_P): Delete.
2128         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2129         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2130         Delete references to mips_regs_have_home_p.
2131
2132 2002-08-14  Keith Seitz  <keiths@redhat.com>
2133
2134         * Makefile.in (install-gdbtk): Create insight plugin directory.
2135         Install plugins.tcl file.
2136
2137 2002-08-14  Keith Seitz  <keiths@redhat.com>
2138
2139         * configure.in: Move SUBDIRS to near top of the file so that
2140         --enable options may add things to it.
2141         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2142         * configure: Regenerate.
2143
2144 2002-08-13  Michael Snyder  <msnyder@redhat.com>
2145
2146         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
2147         cloned from mips_push_arguments, tuned for o32/o64 ABI.
2148         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2149
2150 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
2151
2152         * vax-tdep.c (vax_get_saved_register): Delete function.
2153         (vax_gdbarch_init): Update.
2154         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2155         (ns32k_gdbarch_init): Update.
2156         * alpha-tdep.c (alpha_get_saved_register): Delete function.
2157         (alpha_gdbarch_init): Update.
2158
2159 2002-08-13  Andrew Cagney  <cagney@redhat.com>
2160
2161         * regcache.c (init_regcache_descr): Overallocate the
2162         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2163         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2164         nr_raw_registers.
2165         (set_register_cached): Add range checking assertions.  Use
2166         current_regcache.
2167
2168 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
2169
2170         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2171         numbers for MMX registers.
2172
2173 2002-08-13  Andrew Cagney  <cagney@redhat.com>
2174
2175         * i386-tdep.c (i386_gdbarch_init): Use
2176         generic_unwind_get_saved_register.
2177
2178 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
2179
2180         * procfs.c (procfs_can_use_hw_breakpoint): New function.
2181         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2182         target vector.
2183         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2184         Delete.  Add comment regarding this now-deleted target method.
2185
2186 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2187
2188         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2189         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2190         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2191         real PC and the page number (if it's within the memory bank window).
2192         (m68hc11_pseudo_register_write): Likewise when saving.
2193         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2194         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2195         (m68hc11_register_raw_size): And use 32-bit for it.
2196         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2197         16K memory bank is used by the prog; also use the virtual pc.
2198
2199 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2200
2201         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2202         (m68hc11_gdbarch_init): Install it in gdbarch.
2203         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2204         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2205         (MSYMBOL_SIZE): New for documentation.
2206         (insn_return_kind): Enum to specify how a function returns.
2207         (frame_extra_info): Cleanup and record the return mode.
2208         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
2209         register in address computation.
2210         (m68hc11_get_return_insn): New to obtain the return instruction used
2211         by the function.
2212         (m68hc11_frame_init_saved_regs): Take into account the return
2213         instruction used by the function for far and interrupt functions.
2214         (m68hc11_init_extra_frame_info): Take into account page register.
2215         (m68hc11_frame_args_address): Adjust according to the return mode.
2216         (show_regs): Print page register only when it's used.
2217
2218 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2219
2220         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2221         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2222         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2223         registers.
2224         (m68hc11_register_raw_size): Likewise.
2225
2226 2002-08-13  Andrew Cagney  <cagney@redhat.com>
2227
2228         * i386-tdep.c (i386_register_name): Handle mmx registers.
2229         (mmx_regnum_p): New function.
2230         (i386_mmx_names): New array.
2231         (mmx_num_regs): New variable.
2232         (i386_pseudo_register_read): New function.
2233         (i386_pseudo_register_write): New function.
2234         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2235
2236         * regcache.c (regcache_raw_read_unsigned): New function.
2237         (regcache_raw_read_signed): New function.
2238         * regcache.h (regcache_raw_read_unsigned): Declare.
2239         (regcache_raw_read_signed): Declare.
2240
2241 2002-08-13  Andrew Cagney  <cagney@redhat.com>
2242
2243         * regcache.c (regcache_raw_read_as_address): Delete function.
2244         (regcache_cooked_read_signed): New function.
2245         (regcache_cooked_read_unsigned): New function.
2246         * regcache.h (regcache_cooked_read_signed): Declare.
2247         (regcache_cooked_read_unsigned): Declare.
2248         (regcache_raw_read_as_address): Delete declaration.
2249
2250         * blockframe.c (generic_read_register_dummy): Use
2251         regcache_cooked_read_unsigned.
2252         * i386-tdep.c (i386_extract_struct_value_address): Use
2253         regcache_cooked_read_unsigned.
2254
2255 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2256
2257         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2258         double sizes according to ELF ABI flags.
2259         (gdbarch_tdep): Record elf_flags.
2260
2261 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2262
2263         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2264         (m6812_prolog): They can appear in 68HC12 function prologue.
2265         (m68hc11_frame_chain): Cleanup.
2266
2267 2002-08-12  Andrew Cagney  <cagney@redhat.com>
2268
2269         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2270         declarations.
2271         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2272         (i386_linux_register_raw_size): Delete function.
2273         (i386_linux_init_abi): Update.
2274         * i386-tdep.c (i386_register_raw_size): Delete function.
2275         (i386_register_byte): Delete function.
2276         (i386_gdbarch_init): Update.
2277         (i386_register_size): Delete array.
2278         (i386_register_offset): Delete array.
2279
2280         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2281         (REGISTER_RAW_SIZE): Delete macro.
2282         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2283         (REGISTER_BYTE): Delete macro.
2284
2285 2002-08-11  Aidan Skinner <aidan@velvet.net>
2286
2287         * ada-lang.c (ada_lookup_partial_symbol)
2288         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2289         prototype names so that grep ^func works properly.
2290
2291         * ada-lang.c (ada_array_element_type)
2292         (ada_lookup_partial_symbol): Fix typos in parameter list.
2293
2294         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2295         Fix prototype names so that grep ^func works properly.
2296         
2297 2002-08-10  Andrew Cagney  <cagney@redhat.com>
2298             Elena Zannoni  <ezannoni@redhat.com>
2299             Martin M. Hunt  <hunt@redhat.com>
2300
2301         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2302         (build_builtin_type_vec128i): Set the vector bit.
2303         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2304         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2305         (build_builtin_type_vec64): New function.
2306         (build_builtin_type_vec64i): New function.
2307         (build_gdbtypes): Initialize builtin_type_vec64 and
2308         builtin_type_vec64i.
2309
2310 2002-08-09  Andrew Cagney  <cagney@redhat.com>
2311
2312         * regcache.c (regcache_dump): Compare the register offset
2313         with REGISTER_BYTE.
2314         * arch-utils.c (generic_register_byte): New function.
2315         * arch-utils.h (generic_register_byte): Declare.
2316         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2317         * gdbarch.h, gdbarch.c: Regenerate.
2318
2319 2002-08-09  Andrew Cagney  <cagney@redhat.com>
2320
2321         * regcache.c: Include "gdbcmd.h"
2322         (_initialize_regcache): Add commands "maintenance print
2323         registers", "maintenance print raw-registers" and "maintenance
2324         print cooked-registers".
2325         (enum regcache_dump_what): Define.
2326         (dump_endian_bytes): New function.
2327         (regcache_dump): New function.
2328         (regcache_print): New function.
2329         (maintenance_print_registers): New function.
2330         (maintenance_print_raw_registers): New function.
2331         (maintenance_print_cooked_registers): New function.
2332         * Makefile.in (regcache.o): Update dependencies.
2333
2334 2002-08-09  Michael Snyder  <msnyder@redhat.com>
2335
2336         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2337         (mips_push_arguments): Correct some comments.  Use paddr_nz
2338         for printing addresses in debug output.  Replace static
2339         allocation using MAX_REGISTER_RAW_SIZE with alloca.
2340         (mips_n32n64_push_arguments): New function, cloned from
2341         mips_push_arguments and tuned for the n32/n64 ABI.
2342         (mips_push_register): Buffer needs dynamic allocation.
2343         (mips_print_register): Ditto.
2344         (do_gp_register_row): Ditto.
2345         (mips_store_return_value): Ditto.
2346         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2347
2348 2002-08-09  Don Howard  <dhoward@redhat.com>
2349
2350         * memattr.c (mem_info_command): Print special case of upper bound
2351         as max CORE_ADDR + 1.
2352
2353 2002-08-08  Michael Snyder  <msnyder@redhat.com>
2354
2355         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
2356         returns structs by ref if they're too big to fit in two registers.
2357
2358 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
2359
2360         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2361         saved regs value.
2362         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2363         mips_find_saved_regs().
2364         (mips_pop_frame): Likewise.
2365
2366 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
2367
2368         * blockframe.c (frame_saved_regs_register_unwind): Revise
2369         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2370         frames are in use.
2371
2372 2002-08-09  Grace Sainsbury  <graces@redhat.com>
2373         
2374         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2375         T-packets; the 'a' is not taken as a register number.
2376         (remote_check_watch_resources, remote_stopped_by_watchpoint)
2377         (remote_stopped_data_address): New functions; add to target
2378         vector.
2379         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2380         prototypes to match other implementations of this
2381         function. replace integer argument with pointer -- the length
2382         field in the Z-packet is the length of what is pointed to or 1 if
2383         pointer is null. Add to target vector.
2384         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2385         target vector.
2386
2387         From Mark Salter:
2388         * remote.c (remote_wait): Add support to extract optional
2389         watchpoint information from T-packet. Ignore unrecognized
2390         optional info in T-packet.
2391         (remote_async_wait): Ditto.
2392
2393 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
2394
2395         * cli/cli-dump.c: Change fopen modes to use binary open modes
2396         as defined in include/fopen-bin.h throughout.
2397
2398 2002-08-08  Michael Snyder  <msnyder@redhat.com>
2399
2400         * mips-tdep.c: Minor whitespace and indentation clean-ups.
2401
2402 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
2403
2404         * doublest.c (store_floating): Avoid floatformat_from_doublest()
2405         assertion failure by returning early after a warning.
2406
2407 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
2408
2409         * mips-tdep.c (mips_find_saved_regs): Make static.
2410         (mips_frame_init_saved_regs): New function.
2411         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2412         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2413         (mips_find_saved_regs): Delete declaration.
2414
2415 2002-08-08  Grace Sainsbury  <graces@redhat.com>
2416
2417         * remote.c (remote_wait, remote_async_wait): Change
2418         thread_num from int to ULONGEST.
2419         (unpack_varlen_hex): Change result parameter from
2420         int * to ULONGEST *.
2421
2422 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
2423
2424         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2425         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2426         powerpc*-*-*.
2427         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2428
2429 2002-08-08  Andrew Cagney  <cagney@redhat.com>
2430
2431         * gcore.c (override_derive_stack_segment): Delete variable.
2432         (preempt_derive_stack_segment): Delete function.
2433         (derive_stack_segment): Delete function.
2434         (default_derive_stack_segment): Renamed to derive_stack_segment.
2435         (override_derive_heap_segment): Delete variable.
2436         (preempt_derive_heap_segment): Delete function.
2437         (derive_heap_segment): Delete function.
2438         (default_derive_heap_segment): Rename to derive_heap_segment.
2439
2440 2002-08-06  Michael Snyder  <msnyder@redhat.com>
2441
2442         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2443         * mips-tdep.c (mips_EABI_use_struct_convention, 
2444         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2445         New functions.  (mips_use_struct_convention): Delete.
2446         (mips_gdbarch_init): set use_gdbarch_convention.
2447
2448 2002-08-06  Michael Snyder  <msnyder@redhat.com>
2449
2450         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2451         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
2452         mips_o32_reg_struct_has_addr): New functions.
2453         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2454
2455 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
2456
2457         * regcache.c (pseudo_register): Delete function.
2458         (fetch_register): Delete function.
2459         (store_register): Delete function.
2460         (regcache_raw_read, legacy_read_register_gen): Use
2461         target_fetch_registers instead of fetch_register.
2462         (legacy_write_register_gen, regcache_raw_write): Use
2463         target_store_register instead of store_register.
2464         (write_register_bytes): Ditto.
2465
2466         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2467         (STORE_PSEUDO_REGISTER): Delete.
2468         * gdbarch.h, gdbarch.c: Regenerate.
2469
2470 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
2471
2472         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2473         write dump file binary.
2474
2475 2002-08-05  Michael Snyder  <msnyder@redhat.com>
2476
2477         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
2478         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
2479         (mips_gdbarch_init): Set N32 target to be mips64.
2480
2481 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
2482
2483         * frame.c (find_saved_register): Break out of loop once saved
2484         register address is found.  Don't mention sparc in loop comment
2485         anymore.
2486
2487 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
2488
2489         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2490         mips_default_saved_regsize to 8.
2491
2492 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
2493
2494         * gcore.c: Do not include <sys/procfs.h>.
2495         * Makefile.in (gcore.o): Update dependencies.
2496
2497 2002-08-06  Andrew Cagney  <cagney@redhat.com>
2498
2499         * configure.tgt: Make arc-*-* obsolete.
2500         * NEWS: Mention that arc-*-* has been identifed as obsolete.
2501         * MAINTAINERS: Make arc-elf obsolete.
2502         * arc-tdep.c: Make file obsolete.
2503         * config/arc/arc.mt: Ditto.
2504         * config/arc/tm-arc.h: Ditto.
2505
2506 2002-08-05  Theodore A. Roth  <troth@verinet.com>
2507
2508         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2509
2510 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
2511
2512         * mcore-tdep.c (mcore_gdbarch_init): Use
2513         generic_unwind_get_saved_register instead of
2514         generic_get_saved_register.
2515         * v850-tdep.c (v850_gdbarch_init): Ditto.
2516         * frv-tdep.c (frv_gdbarch_init): Ditto.
2517         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2518         * s390-tdep.c (s390_gdbarch_init): Ditto.
2519         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2520         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2521         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2522
2523 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
2524
2525         * objfiles.h: Add missing #include "symfile.h"
2526
2527         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2528
2529 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
2530
2531         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2532         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2533         of FIELD_BITSIZE.
2534
2535 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
2536
2537         * NEWS: Cleanup and nitpick.
2538
2539 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
2540
2541         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
2542
2543 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
2544
2545         * Makefile.in (gdbtk-bp.o): Update dependencies.
2546         (gdbtk-register.o): Ditto.
2547         (gdbtk-varobj.o): Ditto.
2548
2549 2002-08-03  Andrew Cagney  <cagney@redhat.com>
2550
2551         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2552         m68hc11_fetch_pseudo_register.
2553         (m68hc11_pseudo_register_write): Replace
2554         m68hc11_store_pseudo_register.
2555         (m68hc11_gdbarch_init): Update.
2556
2557 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
2558
2559         * gdbarch.sh: Include "gdb_string.h".
2560         * gdbarch.c: Regenerate.
2561
2562         * regcache.c: Include "gdb_string.h".
2563         * ax-general.c: Ditto.
2564         * varobj.c: Ditto.
2565         * std-regs.c: Ditto.
2566         * fbsd-proc.c: Ditto.
2567         * thread.c: Ditto.
2568
2569         * Makefile.in (regcache.o): Update dependencies.
2570         (thread.o, gdbarch.o): Ditto.
2571         (ax-general.o, gdbarch.o): Ditto.
2572         (varobj.o, std-regs.o): Ditto.
2573         (fbsd-proc.o): Specify dependencies.
2574
2575 2002-08-02  Andrew Cagney  <cagney@redhat.com>
2576
2577         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2578         regnum.
2579         (regcache_cooked_write): Ditto.
2580
2581 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
2582
2583         * regcache.c (regcache_cooked_read): New function.
2584         (regcache_cooked_write): New function.
2585         (read_register_gen): Rewrite using regcache_cooked_read.
2586         (write_register_gen): Rewrite using regcache_cooked_write.
2587
2588         * regcache.h (regcache_cooked_read, regcache_cooked_write):
2589         Declare.
2590
2591 2002-08-02  Andrew Cagney  <cagney@redhat.com>
2592
2593         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2594         Replace the architecture methods register_read and register_write.
2595         * gdbarch.h, gdbarch.c: Regenerate.
2596         * regcache.c (init_regcache_descr): Update.
2597         (read_register_gen): Update.
2598         (write_register_gen): Update.
2599         (supply_register): Update comment.
2600
2601         * sh-tdep.c (sh_gdbarch_init): Update.
2602         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2603         `regcache' and `gdbarch' parameters.  Make `buffer' a void
2604         pointer.  Update code.
2605         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2606         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
2607         void pointer.  Update code.
2608         (sh64_register_write): Delete.
2609         (sh4_register_read): Delete.
2610         (sh64_register_read): Delete.
2611         (sh4_register_write): Delete.
2612         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2613         void pointer, `to' parameter a void pointer.
2614         (sh_sh64_register_convert_to_raw): Ditto.
2615
2616 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
2617
2618         * mips-tdep.c (mips_register_virtual_type): Use architecture
2619         invariant return values.
2620
2621 2002-08-01  Andrew Cagney  <cagney@redhat.com>
2622
2623         * linux-proc.c: Include "gdb_string.h".
2624         * Makefile.in (linux-proc.o): Update dependency list.
2625
2626 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
2627
2628         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
2629         comment.
2630
2631 2002-08-01  Grace Sainsbury  <graces@redhat.com>
2632
2633         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2634         to_insert_watchpoint, to_remove_watchpoint,
2635         to_stopped_by_watchpoint, to_stopped_data_address,
2636         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2637         target vecctor. Define their corresponding macros so they call
2638         them.
2639         
2640         * target.c: Add default and debug versions of for
2641         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2642         to_insert_watchpoint, to_remove_watchpoint,
2643         to_stopped_by_watchpoint, to_stopped_data_address,
2644         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2645
2646 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
2647
2648         * mips-tdep.c (mips_register_virtual_type): New function.
2649         (mips_gdbarch_init): Register mips_register_virtual_type()
2650         with gdbarch machinery.
2651         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2652         this file instead of tm-bigmips.h.
2653         (MIPS_REGSIZE): Delete this macro.
2654         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
2655         multiarch version in mips-tdep.c will be found.
2656
2657 2002-08-01  Andrew Cagney  <cagney@redhat.com>
2658
2659         * NEWS: Menion that CHILL has been made obsolete.
2660
2661         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2662         * stabsread.c (read_range_type): Ditto.
2663         * gdbtypes.h: Ditto.
2664         * language.c (binop_type_check): Ditto.
2665         (binop_result_type): Ditto.
2666         (integral_type): Ditto.
2667         (character_type): Ditto.
2668         (string_type): Ditto.
2669         (boolean_type): Ditto.
2670         (structured_type): Ditto.
2671         (lang_bool_type): Ditto.
2672         (binop_type_check): Ditto.
2673         * language.h (_LANG_chill): Ditto.
2674         * dwarfread.c (set_cu_language): Ditto.
2675         * dwarfread.c (CHILL_PRODUCER): Ditto.
2676         * dwarfread.c (handle_producer): Ditto.
2677         * expression.h (enum exp_opcode): Ditto.
2678         * eval.c: Ditto for comments.
2679         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2680         * expprint.c (print_subexp): Ditto.
2681         (print_subexp): Ditto.
2682         * valops.c (value_cast): Ditto.
2683         (search_struct_field): Ditto.
2684         * value.h (COERCE_VARYING_ARRAY): Ditto.
2685         * symfile.c (init_filename_language_table): Ditto.
2686         (add_psymbol_with_dem_name_to_list): Ditto.
2687         * valarith.c (value_binop): Ditto.
2688         (value_neg): Ditto.
2689         * valops.c (value_slice): Ditto.
2690         * symtab.h (union language_specific): Ditto.
2691         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2692         (SYMBOL_DEMANGLED_NAME): Ditto.
2693         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2694         * defs.h (enum language): Ditto.
2695         * symtab.c (got_symtab): Ditto.
2696         * utils.c (fprintf_symbol_filtered): Ditto.
2697
2698         * ch-typeprint.c: Make file obsolete.
2699         * ch-valprint.c: Make file obsolete.
2700         * ch-lang.h: Make file obsolete.
2701         * ch-exp.c: Make file obsolete.
2702         * ch-lang.c: Make file obsolete.
2703
2704         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2705         CHILL_LIB.
2706         (TARGET_FLAGS_TO_PASS): Ditto.
2707         (CHILLFLAGS): Obsolete.
2708         (CHILL): Obsolete.
2709         (CHILL_FOR_TARGET): Obsolete.
2710         (CHILL_LIB): Obsolete.
2711         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2712         ch-valprint.c.
2713         (HFILES_NO_SRCDIR): Remove ch-lang.h.
2714         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2715         ch-lang.o.
2716         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2717         targets.
2718
2719 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
2720
2721         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2722         This does not change anything at the moment, but will be helpful
2723         later when full Ada support is integrated.
2724
2725 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2726
2727         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2728         help message.
2729
2730 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2731
2732         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2733         and save it in a local variable.  Use variable in later test.
2734
2735 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2736
2737         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2738         test.  (Thanks to Daniel Jacobowitz.)
2739         
2740 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2741
2742         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2743         (mips_abi_strings): Add "n64".
2744         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
2745
2746 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2747
2748         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2749         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2750
2751 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2752
2753         * utils.c (host_pointer_to_address, address_to_host_pointer):
2754         Use gdb_assert() instead of explicit call to internal_error().
2755
2756 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
2757
2758         * Makefile.in (rs6000-nat.o): Update dependencies.
2759
2760         From Nicholas Duffek:
2761         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2762         (aix-thread.o): New rule.
2763         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2764         * config/powerpc/aix432.mh: New file.
2765
2766 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
2767
2768         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2769         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2770         (fetch_core_registers, ppc_linux_supply_gregset)
2771         (ppc_linux_supply_fpregset): New functions.
2772         (ppc_linux_regset_core_fns): New.
2773         (_initialize_ppc_linux_tdep): Call add_core_fns.
2774         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2775         and ppc_linux_supply_gregset.
2776         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2777         (supply_fpregset): Call ppc_linux_supply_fpregset.
2778         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2779         corelow.o.
2780         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2781
2782 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
2783
2784         * symtab.c (lookup_symbol): Demangle before lowercasing.
2785
2786 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
2787
2788         * symtab.h: Replace #include "gdb_obstack.h" with opaque
2789         declaration.
2790         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2791         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2792         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2793         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2794         "gdb_string.h".
2795         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2796         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2797         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2798         (avr-tdep.o, mon960-rom.o): Ditto.
2799         (aout_stabs_gnu_h): Define.
2800         (symtab_h): Remove $(gdb_obstack_h).
2801
2802 2002-07-30  Jim Blandy  <jimb@redhat.com>
2803
2804         Patch from David Carlton <carlton@math.stanford.edu>:
2805         * gdbinit.in: Move the `dir' commands that add GDB's own source
2806         directory to the search path to the end, so that the `gdb' source
2807         directory will be searched first.
2808
2809 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
2810
2811         * gdb_obstack.h: New file.
2812         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2813         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2814         * objfiles.h: Include "gdb_obstack.h".
2815         * Makefile.in (gdb_obstack_h): Define.
2816         (symtab_h): Add $(gdb_obstack_h).
2817         (objfiles_h): Add $(gdb_obstack_h).
2818         
2819         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2820         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2821         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2822         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2823         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2824         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2825         * symfile.c, coffread.c, c-typeprint.c: Ditto.
2826         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2827
2828         * Makefile.in (bcache.o): Update dependencies.
2829         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2830         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2831         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2832         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2833         (stabsread.o, symfile.o, symmisc.o): Ditto.
2834         (symtab.o, typeprint.o, macroexp.o): Ditto.
2835         (macrotab.o, mdebugread.o): Ditto.
2836         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2837         (coff_ecoff_h, aout_aout64_h): Define.
2838         (aout_stabs_gnu_h, libaout_h): Define.
2839
2840 2002-07-29  Andrew Cagney  <cagney@redhat.com>
2841
2842         * regcache.c (struct regcache_descr): Rename nr_registers to
2843         nr_cooked_registers.  Revise comments describing the structure
2844         member fields.
2845         (init_regcache_descr): Update.
2846         (init_legacy_regcache_descr): Update.
2847         (read_register_gen, write_register_gen): When a cooked register in
2848         the raw register range, directly access the value from the raw
2849         register cache.
2850
2851 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
2852
2853         * z8k-tdep.c: Do not include "obstack.h".
2854         * h8300-tdep.c, h8500-tdep.c: Ditto.
2855         * m68hc11-tdep.c, sh-tdep.c: Ditto.
2856         * valprint.c, v850-tdep.c: Ditto.
2857         * d10v-tdep.c, mn10300-tdep.c: Ditto.
2858         * mn10200-tdep.c: Ditto.
2859
2860         * Makefile.in (z8k-tdep.o): Update dependencies.
2861         (m68hc11-tdep.o, valprint.o): Ditto.
2862         (v850-tdep.o, d10v-tdep.o): Ditto.
2863         (mn10300-tdep.o, sparc-tdep.o): Ditto.
2864         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2865         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2866         (sh_opc_h, gdb_sim_sh_h): Define.
2867         (elf_sh_h, elf_bfd_h): Define.
2868         (opcode_m68hc11_h): Define.
2869         (OPCODES_SRC, OPCODES_DIR): define.
2870         (OPCODES): Use $(OPCODES_DIR).
2871         (gdb_sim_d10v_h): Rename sim_d10v_h.
2872         (gdb_sim_arm_h): Rename sim_arm_h.
2873
2874 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2875
2876         * utils.c (host_pointer_to_address, address_to_host_pointer):
2877         Change internal_error() message to indicate function responsible
2878         for the error.
2879
2880 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2881
2882         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2883         calls to local_hex_string_custom().
2884
2885 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2886
2887         * irix5-nat.c: Move IRIX shared library support from here...
2888         * solib-irix.c: ...to here.  Revised substantially to work with
2889         generic solib framework.
2890
2891         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2892         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2893         * mips-irix-tdep.c: New file.
2894
2895         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2896         (mips-irix-tdep.o, solib-irix.o): New rules.
2897         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2898         solib-irix.o.
2899         * config/mips/irix6.mt (TDEPFILES): Likewise.
2900         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2901
2902 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2903
2904         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2905         disabled (via ``#if 0'') includes.
2906
2907 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2908
2909         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2910         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2911         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2912         Add support for the fpscr register.
2913         * rs6000-nat.c (regmap, fetch_inferior_registers)
2914         (store_inferior_registers, fetch_core_registers): Likewise.
2915
2916 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2917
2918         * rs6000-nat.c (language.h): Include.
2919         (special_regs): Delete this array.
2920         (regmap): New function.
2921         (fetch_register, store_register):  Use regmap() to map gdb
2922         register numbers to ptrace register numbers.  Also, use
2923         outputs from regmap() to make decisions regarding type of
2924         ptrace() call to make.  In particular, don't compare against
2925         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2926         (fetch_inferior_registers, store_inferior_registers): Where
2927         possible, obtain register numbers from tdep struct.  Don't
2928         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2929         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2930         (LAST_UISA_SP_REGNUM): Delete.
2931         
2932 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
2933
2934         * rs6000-nat.c (ppc-tdep.h): Include.
2935         (fetch_registers, store_register, fetch_core_registers): Don't
2936         access registers[] directly.  Instead, use supply_register() or
2937         regcache_collect() as appropriate.
2938         (find_toc_address): Format hex address with local_hex_string().
2939
2940 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
2941
2942         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2943         bfd/elf32-frv.c.
2944
2945 2002-07-24  Tom Tromey  <tromey@redhat.com>
2946
2947         * jv-exp.y: Marked all strings with _().
2948         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2949         internal_error.
2950         (MethodInvocation, CastExpression, parse_number, yyerror,
2951         java_type_from_name, push_expression_name, yylex): Typo fixes.
2952
2953 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
2954
2955         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2956         (tee_file_flush, tee_file_write, tee_file_fputs)
2957         (tee_file_isatty): New.
2958         * ui-file.h (tee_file_new): Add prototype.
2959
2960 2002-07-24  Aidan Skinner <aidan@velvet.net>
2961
2962         * ada-lang.c: Change k&r style function definitions to prototyped
2963         form.
2964         * ada-typeprint.c: Change k&r style function definitions to prototyped
2965         form.
2966         * ada-valprint.c: Change k&r style function definitions to prototyped
2967         form.
2968         
2969 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2970
2971         * README: Remove reference to remote-bug.
2972         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2973         remote-bug.c.
2974         (m88k-nat.o): Delete rule.
2975         (m88k-tdep.o): Delete rule.
2976         (remote-bug.o): Delete rule.
2977         * MAINTAINERS: Mark as obsolete.
2978         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2979         * m88k-tdep.c: Make file obsolete.
2980         * config/m88k/m88k.mh: Ditto.
2981         * config/m88k/delta88v4.mh: Ditto.
2982         * config/m88k/delta88v4.mt: Ditto.
2983         * config/m88k/delta88.mt: Ditto.
2984         * config/m88k/delta88.mh: Ditto.
2985         * remote-bug.c: Ditto.
2986         * config/m88k/tm-delta88.h: Ditto.
2987         * config/m88k/nm-delta88v4.h: Ditto.
2988         * config/m88k/xm-delta88.h: Ditto.
2989         * config/m88k/xm-dgux.h: Ditto.
2990         * config/m88k/tm-m88k.h: Ditto.
2991         * config/m88k/nm-m88k.h: Ditto.
2992         * config/m88k/tm-delta88v4.h: Ditto.
2993         * m88k-nat.c: Ditto.
2994         * cxux-nat.c: Ditto.
2995         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2996         and m88*-*-* obsolete.
2997         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2998         m88*-*-* obsolete.
2999
3000 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3001
3002         * findvar.c (extract_unsigned_integer): Make `addr' parameter
3003         constant.  Same for local pointer variables.
3004         (extract_signed_integer): Ditto.
3005         * defs.h (extract_unsigned_integer): Update.
3006         (extract_signed_integer): Update.
3007
3008 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3009
3010         * regcache.c (regcache_raw_write): Change buf parameter to a
3011         constant void pointer.
3012         (regcache_raw_read): Change buf parameter to a void pointer.
3013         (legacy_write_register_gen): Change myaddr parameter a constant
3014         void pointer.
3015         (supply_register): Change val parameter to a const void pointer.
3016         * regcache.h (regcache_raw_write): Update declaration.
3017         (regcache_raw_read): Update declaration.
3018         (supply_register): Update declaration.
3019
3020 2002-07-24  Tom Tromey  <tromey@redhat.com>
3021
3022         * defs.h (gdb_readline_wrapper): Declare.
3023         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3024         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3025         * top.c (gdb_readline_wrapper): New function.
3026         (command_line_input): Use it.
3027
3028 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3029
3030         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3031         regcache_read and regcache_write.
3032         (regcache_raw_read_as_address): Replace regcache_read_as_address.
3033         * regcache.c: Update.
3034         * sh-tdep.c (sh64_push_arguments): Update comment.
3035         (sh_pseudo_register_read): Update.
3036         (sh_pseudo_register_write): Update.
3037         (sh4_register_read): Update.
3038         (sh4_register_write): Update.
3039         (sh64_pseudo_register_read): Update.
3040         (sh64_pseudo_register_write): Update.
3041         (sh64_register_read): Update.
3042         (sh64_register_write): Update.
3043         * i386-tdep.c (i386_extract_return_value): Update.
3044         (i386_extract_struct_value_address): Update.
3045         (i386_extract_return_value): Update.
3046         * blockframe.c (generic_read_register_dummy): Update.
3047         (generic_call_dummy_register_unwind): Update
3048         * infrun.c (write_inferior_status_register): Update.
3049
3050 2002-07-23  Jim Blandy  <jimb@redhat.com>
3051
3052         * parser-defs.h (expression_context_pc): Make this extern.
3053         (Thanks to Michael Snyder.)
3054
3055 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
3056
3057         GDB 5.2.1 released from 5.2 branch.
3058         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3059         * README: Update to mention 5.2.1.
3060
3061 2002-07-23  Mark Salter  <msalter@redhat.com>
3062
3063         * remote.c (remote_read_bytes): Fix check for error.
3064
3065 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
3066
3067         * aix-thread.c (language.h): Include.
3068         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3069         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3070         Print newlines at end of debug messages.
3071         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3072         (pdc_write_data): Use local_hex_string() instead of %llx formats.
3073
3074 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
3075
3076         * aix-thread.c (ppc-tdep.h): Include.
3077         (special_register_p): New function.
3078         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3079         (store_regs_user_thread): Use register number information from
3080         gdbarch_tdep struct instead of hardcoded offsets relative to
3081         FIRST_UISA_SP_REGNUM.
3082         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
3083         special_register_p() instead of using FPLAST_REGNUM and
3084         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3085         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
3086         will be MQ's register number.
3087
3088 2002-07-22  Michael Snyder  <msnyder@redhat.com>
3089
3090         * aix-thread.c (ops): Rename to aix_thread_ops.
3091         (base_ops): Rename to base_target.
3092         (ops_attach): Rename to aix_thread_attach.
3093         (ops_detach): Rename to aix_thread_detach.
3094         (ops_resume): Rename to aix_thread_detach.
3095         (ops_wait):   Rename to aix_thread_wait.
3096         (ops_kill):   Rename to aix_thread_kill.
3097         (init_ops):   Rename to init_aix_thread_ops.
3098         (ops_fetch_register): Rename to aix_thread_fetch_register.
3099         (ops_store_register): Rename to aix_thread_store_register.
3100         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3101         (ops_thread_alive):   Rename to aix_thread_thread_alive.
3102         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3103         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
3104         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3105         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
3106         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3107         (store_regs_lib):  Rename to store_regs_user_thread.
3108         (store_regs_kern): Rename to store_regs_kernel_thread.
3109
3110 2002-07-22  Michael Snyder  <msnyder@redhat.com>
3111
3112         * aix-thread.c (ops_prepare_to_store): Eliminate.
3113         (init_ops): Don't initialize ops.prepare_to_store.
3114         (store_regs_kern): Pre-fetch register buffers from child, 
3115         because some registers may not be in the cache.  Copy
3116         regs from register cache only if they are cached.
3117         (store_regs_lib): Copy regs from register cache only
3118         if they are cached.
3119         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3120         fill_gprs64): Ditto.
3121
3122 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
3123
3124         * aix-thread.c (gdb_assert.h): Include.
3125         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3126         register sizes (from register cache) match size of buffer holding
3127         register data.
3128         (fill_sprs32): Change parameter types to match those in the ptrace()
3129         buffer.
3130         (store_regs_lib): Likewise, but for 32-bit temporary variables.
3131         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3132
3133 2002-07-22  Michael Snyder  <msnyder@redhat.com>
3134
3135         * aix-thread.c (supply_sprs64): Cosmetic change.
3136         (supply_sprs32): Cosmetic change.
3137         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3138         (fill_sprs64): Use regcache_collect instead of read_register.
3139         (store_regs_lib): Use regcache_collect instead of 
3140         read_register.  Use fill_sprs32 instead of fill_sprs64,
3141         if debugging a 32-bit architecture.
3142         (store_regs_kern): Use fill_gprs64 etc. to pull the values
3143         out of the register cache, instead of passing a pointer into
3144         the register cache directly to ptrace.  Use regcache_collect
3145         insteaad of read_register.
3146         (ops_prepare_to_store): Use target_read_registers instead
3147         of read_register_bytes.
3148
3149 2002-07-20  Aidan Skinner <aidan@velvet.net>
3150
3151         * MAINTAINERS: Add self under write after approval. 
3152                 
3153 2002-07-20  Aidan Skinner <aidan@velvet.net>
3154
3155         * ada-tasks.c: Change k&r style function definitions to prototyped
3156         form.
3157                 
3158 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
3159
3160         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3161         * x86-64-tdep.c: Include "objfiles.h".
3162         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3163         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3164
3165 2002-07-17  Michal Ludvig  <michal@suse.cz>
3166
3167         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3168         (update_context): Initialise cfa variable.
3169
3170 2002-07-17  Michael Snyder  <msnyder@redhat.com>
3171
3172         * aix-thread.c: Shorten some long lines.  
3173         Bring comments into line with code spec.
3174
3175 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
3176
3177         * infrun.c: Re-indent using gdb_indent.sh.
3178
3179 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
3180
3181         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3182         Leave the indentation temporarily untouched, to minimize the diffs.
3183
3184 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
3185
3186         * stabsread.c: Make os9k sections of the code obsolete,
3187         for real this time.
3188         * stabsread.h: Make os9k sections of the code obsolete.
3189
3190 2002-07-18  Michal Ludvig <mludvig@suse.cz>
3191
3192         * linux-low.c (regsets_store_inferior_registers): Add free()
3193         at the end of a loop to prevent memory leak.
3194         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3195         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3196         * config/sparc/tm-sp64linux.h: Make the rest of #endif
3197         line a comment.
3198         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3199
3200 2002-07-17  Jim Blandy  <jimb@redhat.com>
3201
3202         * macrocmd.c (info_macro_command): Remove newline from error
3203         message.
3204
3205 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
3206
3207         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3208         (sh_gdbarch_init): Use it for sh-dsp.
3209
3210 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
3211
3212         * dwarf2read.c (read_initial_length): Handle older, non-standard,
3213         64-bit DWARF2 format.
3214
3215 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
3216
3217         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3218         <sys/proc.h> when not available.
3219
3220 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
3221
3222         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3223         * stabsread.c: Make os9k sections of the code obsolete.
3224         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3225         * config/i386/i386os9k.mt: Make file obsolete.
3226         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3227         (COMMON_OBS): Remove os9kread.o
3228         (SFILES): Remove os9kread.c.
3229         (os9kread.o, remote-os9k.o): Make target obsolete.
3230         * remote-os9k.c: Make file obsolete.
3231         * os9kread.c: Make file obsolete.
3232         * Makefile.in
3233
3234 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
3235
3236         * NEWS: Mention that the FR30 has been made obsolete.
3237         * fr30-tdep.c: Make file obsolete.
3238         * config/fr30/tm-fr30.h: Ditto.
3239         * config/fr30/fr30.mt: Ditto.
3240         * configure.tgt: Make fr30-*-elf obsolete.
3241         * MAINTAINERS: Make fr30-elf obsolete.
3242
3243 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
3244
3245         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3246         found is not inside a section.
3247
3248 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
3249
3250         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3251         strerror().
3252         (pdc_realloc): Use xrealloc() instead of realloc().
3253
3254 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
3255
3256         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3257         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3258         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3259         macros.
3260
3261 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
3262
3263         * aix-thread.c (ptrace_check): Eliminate goto.
3264         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
3265         problem.
3266
3267 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
3268
3269         * aix-thread.c (gdbcmd.h): Include.
3270         (DEBUG, DBG, DBG2, dbg): Eliminate.
3271         (debug_aix_thread): New static global.
3272         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3273         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3274         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3275         invocations to DBG and DBG2 macros to test against
3276         ``debug_aix_thread'' and call fprintf_unfiltered().
3277         (_initialize_aix_thread): Add new command "set debug aix-thread".
3278
3279 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
3280
3281         From Gerhard Tonn <TON@de.ibm.com>:
3282         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3283         instead of supply_register.
3284
3285 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
3286
3287         * dwarf2cfi.c: Include "gdb_assert.h".
3288         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3289         non-NULL.
3290         (update_context): Do not use __func__.  Add missing ``break''.
3291         (update_context): Do not use __func__.
3292
3293 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
3294
3295         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3296         and its setting.  Set gdbarch instruction printing functions
3297         directly.  For non-rs6000 case use new function
3298         gdb_print_insn_powerpc.
3299         (gdb_print_insn_powerpc): New function.
3300
3301 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
3302
3303         * NEWS: Mention that the d30v has been marked obsolete.
3304         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3305         * configure.tgt: Mark d30v-*-* as obsolete.
3306         * d30v-tdep.c: Mark file as obsolete.
3307         * config/d30v/d30v.mt: Ditto.
3308         * config/d30v/tm-d30v.h: Ditto.
3309
3310 2002-07-13  Aidan Skinner <aidan@velvet.net>
3311
3312         * ada-tasks.c (add_task_entry): replace calls to
3313         malloc() with xmalloc
3314         * ada-tasks.c (init_task_list): replace calls to free with xfree()
3315         
3316         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3317         ada_finish_decode_line_1, all_sals_for_line
3318         ada_breakpoint_rewrite): replace calls to free() with xfree()
3319                 
3320 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
3321
3322         From Nicholas Duffek (with minor changes by Martin Hunt, 
3323         Louis Hamilton, and Kevin Buettner):
3324         * aix-thread.c: New file.
3325
3326 2002-07-12  Petr Sorfa <petrs@caldera.com>
3327
3328         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
3329         complaint for invalid attribute class or form.
3330         (read_func_scope): DW_AT_frame_base
3331         better handling of DW_AT_block*.
3332         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3333         better handling of DW_AT_block*.
3334         (read_common_block): DW_AT_location
3335         better handling of DW_AT_block*.
3336         (read_partial_die): DW_AT_location better handling
3337         of DW_AT_block*.
3338         (new_symbol): DW_AT_external better handling of
3339         DW_AT_block*. Proper initialization of variable
3340         "addr".
3341         (attr_form_is_block): New function that returns true
3342         if the attribute's form is of DW_FORM_block*.
3343
3344 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3345
3346         * valops.c (find_method_list): Remove comment about
3347         removed STATIC_MEMFUNCP argument.
3348         (value_find_oload_method_list): Likewise.
3349
3350 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
3351
3352         From Nicholas Duffek:
3353         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3354         target_new_objfile_hook.
3355
3356 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
3357
3358         From Nicholas Duffek:
3359         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3360         csect.
3361
3362 2002-07-12  Andrew Cagney  <cagney@redhat.com>
3363
3364         * MAINTAINERS: Mention --enable-sim-build-warnings.
3365         (m68hc11-elf): Disable sim build warnings.
3366         (m32r-elf): Mark as broken obsolete candidate.
3367         (x86_64-linux-gnu): Mark as buildable with -Werror.
3368         (arm-elf): Change -w to ``,'' which enables warnings but not
3369         -Werror.
3370
3371 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
3372
3373         * bcache.h: Update copyright.
3374         (struct bstring, struct bcache): Move definition to "bcache.c".
3375         Replaced by opaque declaration.
3376         (bcache_xfree): Replace free_bcache.
3377         (bcache_xmalloc, bcache_memory_used): Declare.
3378         
3379         * bcache.c: Update copyright.
3380         (struct bstring, struct bcache): Moved to here from "bcache.h".
3381         Update comments.
3382         (bcache_xmalloc, bcache_memory_used): New functions.
3383         (bcache_xfree): Replace function free_bcache.
3384         
3385         * Makefile.in (objfiles.o): Add $(bcache_h).
3386         (objfiles_h): Remove $(bcache_h).
3387         (symfile.o): Add $(bcache_h).
3388
3389         * symmisc.c: Update copyright.
3390         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3391         (print_objfile_statistics): Use bcache_memory_used.
3392
3393         * symfile.c: Include "bcache.h".
3394         (reread_symbols): Use bcache_xfree.
3395         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3396         (add_psymbol_to_list): Pass psymbol_cache by value.
3397         (add_psymbol_with_dem_name_to_list): Ditto.
3398
3399         * objfiles.h: Update copyright.
3400         (struct bcache): Declare opaque.  Do not include "bcache.h".
3401         (struct objfile): Change psymbol_cache and macro_cache to ``struct
3402         bcache'' pointers.
3403         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3404
3405         * objfiles.c: Include "bcache.h".  Update copyright.
3406         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3407         macro_cache.
3408         (free_objfile): Use bcache_xfree.
3409
3410 2002-07-11  Grace Sainsbury  <graces@redhat.com>
3411
3412         * monitor.c (monitor_fetch_register): Make name a constant.
3413         (monitor_store_register): Same.
3414
3415 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
3416
3417         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3418         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3419         (finish_block) For non-function blocks, hash the symbol table.  For
3420         function blocks, mark the symbol table as unhashed.
3421         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3422         (msymbol_hash_iw): Likewise.
3423         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3424         value.
3425         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3426         (lookup_minimal_symbol): Likewise for both.
3427         * symtab.h (struct block): Add `hashtable' flag.  Comment the
3428         hashtable.
3429         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3430         (ALL_BLOCK_SYMBOLS): Update.
3431         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3432         (struct symbol): Add `hash_next' pointer.
3433         * symtab.c (lookup_block_symbol): Search using the hash table when
3434         possible.
3435         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3436         (search_symbols, find_addr_symbol): Likewise.
3437
3438         * dstread.c (process_dst_block): Clear hashtable bit for new block.
3439         (read_dst_symtab): Likewise.
3440         * jv-lang.c (get_java_class_symtab): Likewise.
3441         * mdebugread.c: Include "gdb_assert.h".
3442         (shrink_block): Assert that the block being modified is not hashed.
3443         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3444         * symmisc.c (free_symtab_block): Walk the hash table when freeing
3445         symbols.
3446         (dump_symtab): Recognize hashed blocks.
3447         * printcmd.c (print_frame_args):  Assert that function blocks do not
3448         have hashed symbol tables.
3449         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3450         (fill_in_ada_prototype, debug_print_block): Likewise.
3451         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
3452
3453 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
3454
3455         * stack.c (print_frame): Use result of frame_address_in_block()
3456         instead of fi->pc when evaluating symbols.
3457         (backtrace_command_1): Ditto.
3458
3459 2002-07-11  Andrew Cagney  <cagney@redhat.com>
3460
3461         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3462         Make static.
3463
3464         * arm-tdep.c (arm_register_name): Make return type constant.
3465
3466 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
3467
3468         * win32-nat.c (has_detach_ability): Convert to strict ISO C
3469         prototype.
3470         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3471         * s390-tdep.c (s390_fp_regnum): Ditto.
3472         (s390_read_fp): Ditto.
3473         (s390_pop_frame): Ditto.
3474         (_initialize_s390_tdep): Ditto.
3475         * remote.c (get_remote_state): Ditto.
3476         * procfs.c (mappingflags): Ditto.
3477         * memattr.c (_initialize_mem): Ditto.
3478         * mcore-tdep.c (mcore_pop_frame): Ditto.
3479         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3480         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3481         * language.c (set_case_str): Ditto.
3482         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3483         * frv-tdep.c (new_variant): Ditto.
3484         (frv_stopped_data_address): Ditto.
3485         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3486         (context_alloc): Ditto.
3487         (frame_state_alloc): Ditto.
3488         (unwind_tmp_obstack_init): Ditto.
3489         (unwind_tmp_obstack_free): Ditto.
3490         (cfi_read_fp): Ditto.
3491         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3492         (cris_pop_frame): Ditto.
3493         * c-lang.c (scanning_macro_expansion): Ditto.
3494         (finished_macro_expansion): Ditto.
3495         (c_preprocess_and_parse): Ditto.
3496         * gdbarch.sh: Ditto.
3497         * gdbarch.h, gdbarch.c: Regenerate.
3498         * config/mn10200/tm-mn10200.h: Adjust indentation.
3499         * target.c: Adjust indentation.
3500         * symtab.h: Adjust indentation.
3501         * stabsread.h: Adjust indentation.
3502         * remote-es.c: Adjust indentation.
3503         * os9kread.c: Adjust indentation.
3504
3505 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
3506         
3507         * wince.c (_initialize_wince): Rename _initialize_inftarg.
3508         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3509
3510 2002-07-10  Grace Sainsbury  <graces@redhat.com>
3511         
3512         * NEWS: Mention m68k, mcore multi-arching.  
3513         * MAINTAINERS: Change status of m68k, mcore to reflect
3514         multi-arching.
3515
3516 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
3517
3518         * valops.c (find_overload_match): Free oload_syms.
3519
3520 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
3521
3522         Define HAVE_SYS_PROC_H if sys/proc.h exists
3523         * configure.in: Add check for sys/proc.h
3524         * config.in: Regenerate.
3525         * configure: Regenerate.
3526
3527 2002-07-09  Grace Sainsbury  <graces@redhat.com>
3528
3529         * config/m68k/tm-m68k.h: Remove macros wrapped in 
3530         #if !GDB_MULTI_ARCH. 
3531
3532 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
3533
3534         * config.in, configure: Regenerate.
3535
3536 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
3537
3538         * dwarf2cfi.c: Include "gcore.h".
3539         (execute_stack_op): Fix implementation of the
3540         DW_OP_deref and DW_OP_deref_size operators by letting do their
3541         lookup in the target.
3542
3543 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
3544
3545         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3546         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3547         tdep->sc_sp_offset.
3548
3549 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
3550
3551         Fix PR gdb/595, gdb/602
3552         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3553         Don't call value_cast, just read the vtable pointer; update comments
3554         to match.
3555
3556 2002-07-05  Grace Sainsbury  <graces@redhat.com>
3557
3558         * config/mcore/tm-mcore.h: Remove file.
3559         * config/mcore/mcore.mt: Remove definition of TM_FILE
3560         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3561
3562 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
3563
3564         * i386bsd-tdep.c: Include "gdb_string.h".
3565
3566 2002-07-04  Grace Sainsbury  <graces@redhat.com>
3567
3568         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3569         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3570         mcore-tdep.
3571         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3572         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3573         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3574         (RETVAL_REGNUM): Move macros from tm-mcore.h
3575         (mcore_reg_struct_has_addr): New function.
3576         (mcore_gdbarch_init): Added initializations for the macros removed
3577         from tm-mcore.h.
3578
3579 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
3580
3581         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3582         traditonal string branding within the ELF header.
3583
3584 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
3585
3586         * symtab.c (remove_params): New function.
3587         (make_symbol_overload_list): Use it instead of cplus_demangle.
3588         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
3589
3590 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
3591
3592         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3593
3594         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3595         New variables.
3596         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3597         and tdep->sigtramp_end.
3598         * i386obsd-nat.c: New file.
3599         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3600
3601         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3602         Don't call get_current_frame().
3603
3604 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
3605
3606         * i386-nat.c (child_post_startup_inferior): New function
3607         calling i386_cleanup_dregs if
3608         I386_USE_GENERIC_WATCHPOINTS is defined.
3609         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3610         conditional to acknowledge that i386-nat.c has its
3611         own child_post_startup_inferior function.
3612
3613 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
3614
3615         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3616         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3617         instead of MAX_REGISTER_RAW_SIZE.
3618         (i386_extract_return_value, i386_extract_struct_value_address):
3619         Convert to use regcache.
3620         (i386_gdbarch_init): Set max_register_raw_size and
3621         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3622         Set extract_return_value and extract_struct_value_address instead
3623         of their deprecated variants.
3624
3625         Convert i386 target to generic dummy frames.
3626         * i386-tdep.c: Include "symfile.h".
3627         (i386_frameless_signal_p): Consider a function to be frameless if
3628         the pc points at the first instruction of the function.
3629         (i386_frame_chain): Handle (generic) call dummies.
3630         (i386_frame_saved_pc): Likewise.
3631         (i386_frame_init_saved_regs): Remove code dealing with call
3632         dummies on the stack.
3633         (i386_push_dummy_frame): Removed.
3634         (i386_call_dummy_words): Removed.
3635         (i386_fix_call_dummy): Removed.
3636         (i386_push_return_address): New function.
3637         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
3638         parameter, and don't call get_current_frame.
3639         (i386_pop_frame): New function.
3640         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3641         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3642         entry_point_address, set call_dummy_breakpoint_offset to 0, set
3643         call_dummy_length to 0, set call_dummy_words to NULL, set
3644         sizeof_call_dummy_words to 0, set fix_call_dummy to
3645         generic_fix_call_dummy, set pc_in_call_dummy to
3646         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3647         generic_push_dummy_frame, set push_return_address to
3648         i386_push_return_address and set frame_chain_valid to
3649         generic_file_frame_chain_valid.
3650
3651 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
3652
3653         * gdbarch.sh (struct regcache): Add opaque declaration.
3654         (EXTRACT_RETURN_VALUE): New architecture method.
3655         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3656         * gdbarch.h, gdbarch.c: Regenerate.
3657         * arch-utils.c (legacy_extract_return_value): New function.
3658         * arch-utils.h (legacy_extract_return_value): Declare.
3659         * values.c (value_being_returned): Re-enable code handling
3660         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
3661         deprecated_grub_regcache_for_registers call to block handling
3662         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3663         (EXTRACT_RETURN_VALUE): Do not define.
3664
3665 2002-07-03  Grace Sainsbury  <graces@redhat.com>
3666
3667         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3668         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3669         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3670         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3671         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3672         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3673         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3674         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3675         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3676         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3677         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3678         argument so the function fits the prototype in the architecture
3679         vector.
3680         (mcore_pop_frame): Remove argument so the function fits the
3681         prototype. Use get_current_frame instead of the argument.
3682         (mcore_push_arguments): Change type of struct_return so the
3683         function can be used in the architecture vector.
3684         (mcore_store_struct_return): Add.
3685         (mcore_frame_init_saved_regs): Add.
3686         (mcore_gdbarch_init): Add function calls to replace the macros
3687         removed from tm-mcore.h
3688
3689 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
3690
3691         * infcmd.c (print_return_value): Remove compatibility code calling
3692         deprecated_grub_regcache_for_registers.
3693         
3694         * values.c: Include "regcache.h".
3695         (value_being_returned): Update.  Use
3696         deprecated_grub_regcache_for_registers to extract the register
3697         buffer address.  
3698         * value.h (value_being_returned): Change ``retbuf'' parameter to a
3699         ``struct regcache''.
3700         * Makefile.in (values.o): Add dependency on $(regcache_h).
3701
3702         * inferior.h (run_stack_dummy): Change type of second parameter to
3703         a ``struct regcache''.
3704         * valops.c (hand_function_call): Change type of retbuf to ``struct
3705         regcache''.  Allocate using regcache_xmalloc, clean using
3706         make_cleanup_regcache_xfree.
3707         * infcmd.c (run_stack_dummy): Update.  Use
3708         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3709
3710         * regcache.c (do_regcache_xfree): New function.
3711         (make_cleanup_regcache_xfree): New function.
3712         * regcache.h (make_cleanup_regcache_xfree): Declare.
3713
3714 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
3715
3716         * event-top.c (command_line_handler): Don't read past
3717         beginning of buffer.
3718
3719 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
3720         
3721         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
3722         struct frame_id. 
3723         (varobj_create): Store frame_id for root.
3724         (varobj_gen_name): Use xasprintf.
3725         (varobj_update): Save and restore frame using get_frame_id() and
3726         frame_find_by_id().
3727         (create_child): Use xasprintf.
3728         (new_root_variable): Initialize frame_id.
3729         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3730         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3731         to prevent memory leak.
3732
3733 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
3734
3735         * valops.c (hand_function_call): Move declaration of retbuf to
3736         start of function, allocate using malloc, add a cleanup but before
3737         the inf_status cleanup, cleanup the buffer.  Rename local variable
3738         old_chain to inf_status_cleanup.
3739
3740 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
3741
3742         * top.c (execute_command): Use cmd_func() and cmd_func_p().
3743
3744         * cli/cli-decode.c (cmd_func_p): New function.
3745         (cmd_func): New function.
3746
3747         * command.h: Add cmd_func() and cmd_func_p().   
3748         
3749 2002-07-03  Grace Sainsbury  <graces@redhat.com>
3750
3751         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3752         (REGISTER_SIZE): Remove.
3753         (MAX_REGISTER_RAW_SIZE): Remove.
3754         (REGISTER_VIRTUAL_TYPE): Remove.
3755         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3756         (REGISTER_NAME): Remove.
3757         (USE_GENERIC_DUMMY_FRAMES): Remove.
3758         (CALL_DUMMY): Remove.
3759         (CALL_DUMMY_START_OFFSET): Remove.
3760         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3761         (CALL_DUMMY_LOCATION): Remove.
3762         (FIX_CALL_DUMMY): Remove.
3763         (CALL_DUMMY_ADDRESS): Remove.
3764         (SIZEOF_CALL_DUMMY_WORDS): Remove.
3765         (SAVE_DUMMY_FRAME_TOS): Remove.
3766         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3767         (mcore_register_virtual_type): New function.
3768         (mcore_register_byte): New function.
3769         (mcore_register_size): New function.
3770         (mcore_register_name): New function.
3771         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3772         macros removed from tm-mcore.h.
3773         (mcore_dump_tdep): Add.
3774         (_initialize_mcore_tdep): Add gdbarch_register call.
3775
3776 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
3777
3778         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3779         frameless_look_for_prologue, such that we actually call this
3780         function.
3781
3782 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
3783
3784         * frame.h (frame_address_in_block): New function.
3785
3786         * blockframe.c (frame_address_in_block): New function extracted
3787         from get_frame_block().
3788         (get_frame_block): Use frame_address_in_block().
3789         (block_innermost_frame): Use frame_address_in_block() to match
3790         the frame pc address against the block boundaries rather than
3791         the frame pc directly. This prevents a failure when a frame pc
3792         is actually a return-address pointing immediately after the end
3793         of the given block. 
3794
3795 2002-07-02  Grace Sainsbury  <graces@redhat.com>
3796
3797         * MAINTAINERS: Add self under write after approval. 
3798
3799 2002-07-02  Grace Sainsbury  <graces@redhat.com>
3800
3801         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3802         used in architecture vector. The default is
3803         m68k_local_breakpoint_from_pc.
3804         (m68k_local_breakpoint_from_pc): Add.
3805         (enum): Add register numbers from tm-m68k.h.
3806         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3807         vector.  
3808         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3809         GDB_MULTI_ARCH_PARTIAL.
3810         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3811         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3812         m68k-tdep.c.
3813         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3814         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3815         to enum in m68k-tdep.c
3816
3817 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
3818
3819         * solib-osf.c (open_map): Compute the list of shared libraries
3820         loaded by the inferior, rather than the list of libraries loaded
3821         by GDB itself.  Otherwise, GDB ends up reading the symbols from
3822         the wrong shared libraries...
3823
3824 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
3825
3826         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3827         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3828         macros.
3829         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3830         Remove functions.
3831         (FRAMELESS_SIGNAL): Remove function.
3832         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3833         i386_linux_saved_pc_after_call): Removed.
3834         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3835         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
3836         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3837
3838         * i386-tdep.c (i386_frameless_signal_p): New function.
3839         (i386_frame_chain): Deal with frameless signals.
3840         (i386_sigtramp_saved_sp): New function.
3841         (i386_frame_saved_pc): Deal with frameless signals.
3842         (i386_saved_pc_after_call): Make sure the correct value is
3843         returned just after entry into a sigtramp.
3844         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3845         i386fbsd4_sc_sp_offset): New variables.
3846         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3847         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
3848         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3849         similiar to what we already did for sc_pc_offset.
3850         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3851         tdep->sc_sp_offset.
3852
3853         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3854
3855 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
3856
3857         * config/i386/tm-x86-64linux.h: New.
3858         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3859         definitions.
3860         * config/i386/nm-x86-64.h: Rename to ...
3861         * config/i386/nm-x86-64linux.h: ... this one.
3862         * config/i386/x86-64linux.mh: Reflect the above change.
3863         
3864 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
3865
3866         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3867         with sigcontext_addr.  Add sc_sp_offset.
3868         (i386bsd_sigtramp_saved_pc): Remove prototype.
3869         (i386bsd_sicontext_addr): Add prototype.
3870         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3871         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3872         (i386_svr4_sigtramp_saved_pc): Removed.
3873         (i386_svr4_sigcontext_addr): New function.
3874         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3875         Initialize tdep->sigcontext_addr instead.  Initialize
3876         tdep->sc_pc_offset and tdep->sc_sp_offset.
3877         (i386_gdbarch_init): Likewise.
3878         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3879         any more.
3880         (i386bsd_sigtramp_saved_pc): Remove function.
3881         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3882         Initialize tdep->sigcontext_addr instead.  Initialize
3883         tdep->sc_pc_offset.
3884         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3885         of tdep->sigtramp_saved_pc.
3886         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3887         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
3888         instead.
3889
3890         * i386-tdep.c (i386_frameless_function_invocation,
3891         i386_frame_num_args, i386_frame_init_saved_regs,
3892         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3893         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3894         i386_extract_return_value, i386_store_return_value,
3895         i386_extract_struct_value_address, i386_register_virtual_type,
3896         i386_register_convertible, i386_register_convert_to_virtual,
3897         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3898         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3899         static.
3900
3901 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
3902
3903         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3904
3905         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3906         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3907         this macro.  Include "value.h".
3908
3909 2002-06-30  Aidan Skinner  <aidan@velvet.net>
3910
3911         * ada-exp.tab.c: remove as it's a generated file
3912         * ada-lex.c: remove as it's a generated file
3913                 
3914 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
3915
3916         * config/i386/tm-i386.h (struct frame_info, struct
3917         frame_saved_regs, struct value, struct type): Remove forward
3918         declarations.
3919
3920         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3921         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3922         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3923         (FILL_FPXREGSET): Define.
3924
3925         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3926
3927         * configure.tgt (i[3456]86-*-openbsd*): Fold into
3928         i[3456]86-*-netbsd* case.
3929         * config/i386/tm-obsd.h: Removed.
3930         * config/i386/obsd.mt: Removed.
3931         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3932         core-aout.o.
3933         (MH_CFLAGS): Add -DYYDEBUG=0.
3934
3935         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3936         i386nbsd_sc_pc_offset on OpenBSD too.
3937
3938         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3939         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3940         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3941         define.
3942         * i386bsd-tdep.c: Include "arch-utils.h".
3943         (i386bsd_aout_in_solib_call_trampoline): New function.
3944         (i386bsd_init_abi): Set in_solib_call_trampoline to
3945         i386bsd_aout_in_solib_call_trampoline.
3946         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3947         in_solib_call_trampoline to generic_in_solib_call_trampoline.
3948
3949 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3950
3951         * macrotab.h: Do not include "obstack.h" or "bcache.h".
3952         (struct obstack, struct bcache): Add opaque declarations.
3953         * Makefile.in (macrotab_h): Update
3954
3955 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3956
3957         * blockframe.c (generic_find_dummy_frame): Change return type to
3958         ``struct regcache''.
3959         (struct dummy_frame): Replace field ``registers'' with regcache, a
3960         struct regcache object.
3961         (generic_find_dummy_frame): Update.
3962         (generic_push_dummy_frame): Update.  Use regcache_xfree,
3963         regcache_xmalloc and regcache_cpy.
3964         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
3965         regcache_xfree.
3966         (deprecated_generic_find_dummy_frame): Update.
3967         (generic_read_register_dummy): Update.  Use
3968         regcache_read_as_address.
3969         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
3970         (generic_get_saved_register): Update.  Use regcache_read.
3971
3972 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3973
3974         * Makefile.in (objfiles_h): Add $(bcache_h).
3975         * objfiles.h: Include "bcache.h".
3976
3977         * Makefile.in (symtab_h): Remove $(bcache_h).
3978         * symtab.h: Do not include "bcache.h".
3979
3980 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3981
3982         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3983         generic_func_frame_chain_valid.
3984
3985 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
3986
3987         * config/i386/nm-fbsd.h: Include <sys/param.h>.
3988         * config/i386/tm-fbsd.h: Likewise.
3989
3990 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3991
3992         * rs6000-tdep.c (rs6000_gdbarch_init): Use
3993         generic_unwind_get_saved_register.
3994
3995 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
3996
3997         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3998         * regcache.c (supply_register): Add missing argument to
3999         register_buffer call.
4000
4001 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
4002
4003         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
4004         Solaris /bin/grep does not not like it.  From Peter Schauer.
4005
4006 2002-06-26  Tom Tromey  <tromey@redhat.com>
4007
4008         * command.h (add_setshow_cmd): Declare.
4009         (add_setshow_cmd_full): Declare.
4010         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
4011         returns void.  Use add_setshow_cmd_full.
4012         (add_setshow_cmd_full): New function.
4013         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4014         (add_setshow_boolean_cmd): Likewise.
4015
4016 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
4017
4018         * config/vax/tm-vax.h: Protect from multiple inclusion.
4019         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4020         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4021         * config/vax/tm-vaxbsd.h: ...here.  New file.
4022         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4023
4024 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
4025
4026         * config/vax/tm-vax.h (BREAKPOINT): Remove.
4027         (BELIEVE_PCC_PROMOTION): Remove.
4028         (AP_REGNUM): Move to...
4029         * config/vax/nm-vax.h: ...here.
4030         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4031         (vax_breakpoint_from_pc): New function.
4032         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4033         and gdbarch_believe_pcc_promotion.
4034
4035 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
4036
4037         * Makefile.in (vax_tdep_h): Define.  
4038         (vax-tdep.o): Use $(vax_tdep_h).
4039         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4040         (vax_dump_tdep): New function. 
4041         (_initialize_vax_tdep): Register vax_dump_tdep.
4042         * vax-tdep.h: Include osabi.h.     
4043         (struct gdbarch_tdep): New. 
4044
4045 2002-06-26  Andrew Cagney  <cagney@redhat.com>
4046
4047         * frame.h (deprecated_generic_find_dummy_frame): Rename
4048         generic_find_dummy_frame.
4049         * blockframe.c (generic_find_dummy_frame): Make static.
4050         (deprecated_generic_find_dummy_frame): New function.
4051         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4052         generic_find_dummy_frame with deprecated_find_dummy_frame.
4053         (sh64_nofp_frame_init_saved_regs): Ditto.
4054         (sh_fp_frame_init_saved_regs): Ditto.
4055         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4056         (s390_frame_chain): Ditto.
4057         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4058
4059 2002-06-26  Grace Sainsbury  <graces@redhat.com>
4060
4061         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4062         gdbarch vector are at the top.
4063         (NUM_REGS): Remove.
4064         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4065         (FRAME_ARGS_ADDRESS): Remove.
4066         (FRAME_LOCALS_ADDRESS): Remove.
4067         (FRAME_NUM_ARGS): Remove.
4068         (FRAME_ARGS_SKIP): Remove.  
4069         * m68k-tdep.c (enum): Add eumeration of special register numbers.
4070         (m68k_gdbarch_init): Add gdbarch initializations for macros
4071         undefined in tm-m68k.h
4072
4073 2002-06-26  Grace Sainsbury  <graces@redhat.com>
4074
4075         * monitor.h: Add the function regname to monitor_ops
4076         structure. This way NUM_REGS does not have to be a constant.
4077         * monitor.c (monitor_fetch_register): Added support for regname
4078         function. The function is called if the array regnames is NULL.
4079         (monitor_store_register): Same.
4080         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4081         regnames array.
4082         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4083         cpu32bug_cmds.regname to point to new function.
4084         * abug-rom.c (abug_regname): Same as above.
4085         (init_abug_cmds): Same.
4086         * dbug-rom.c (dbug_regname): Same as above.
4087         (init_dbug_cmds): Same.
4088         * remote-est.c (est_regname): Same. 
4089         (init_est_cmds): Same.
4090         * rom68k-rom.c (rom68k_regname): Same. 
4091         (init_rom68k_cmds): Same.
4092
4093 2002-06-25  Tom Tromey  <tromey@redhat.com>
4094
4095         * breakpoint.c (delete_command): Don't repeat `delete' commands.
4096
4097 2002-06-25  Andrew Cagney  <cagney@redhat.com>
4098
4099         * infrun.c (stop_registers): Change variable's type to ``struct
4100         regcache'''.
4101         (xmalloc_inferior_status): Delete function.
4102         (free_inferior_status): Delete function.
4103         (normal_stop): Use regcache_cpy.
4104         (struct inferior_status): Change type of fields ``stop_registers''
4105         and ``registers'' to ``struct regcache''.
4106         (write_inferior_status_register): Use regcache_write.
4107         (save_inferior_status): Instead of calling
4108         xmalloc_inferior_status, allocate the inf_status buffer directly.
4109         Use regcache_dup_no_passthrough and regcache_dup to save the
4110         buffers.
4111         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4112         Replace the stop_registers regcache instead of overriding it.  Use
4113         regcache_xfree.  Instead of calling free_inferior_status, xfree
4114         the buffer directly.
4115         (discard_inferior_status): Use regcache_xfree.  Instead of calling
4116         free_inferior_status, xfree the buffer directly.
4117         (build_infrun): Use regcache_xmalloc.
4118         (_initialize_infrun): Delete redundant call to build_infrun.
4119
4120         * Makefile.in (infcmd.o): Add $(regcache_h).
4121
4122         * infcmd.c: Include "regcache.h".
4123         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4124         obtain the address of `stop_registers' register buffer.
4125         (print_return_value): Ditto.
4126
4127         * inferior.h (struct regcache): Add opaque declaration.
4128         (stop_registers): Change variable's declared type to ``struct
4129         regcache''.
4130
4131 2002-06-24  Tom Tromey  <tromey@redhat.com>
4132
4133         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4134         * target.c (initialize_targets): Fixed typo in
4135         trust-readonly-sections `show' documentation.
4136
4137         * main.c: Marked all strings with _().
4138
4139 2002-06-24  Don Howard  <dhoward@redhat.com>
4140
4141         * memattr.c (create_mem_region): Treat hi == 0 as a special case
4142         that means max CORE_ADDR+1.
4143         (lookup_mem_region): Ditto.
4144         (mem_info_command): Ditto.
4145
4146 2002-06-24  Grace Sainsbury  <graces@redhat.com>
4147
4148         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4149         (REGISTER_BYTES_OK): Remove.
4150         (REGISTER_BYTES): Remove.
4151         (STORE_STRUCT_RETURN): Remove.
4152         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4153         (STORE_RETURN_VALUE): Remove.
4154         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4155         (FRAME_CHAIN): Remove.
4156         (FRAMELESS_FUNCTION_INVOCATION): Remove.
4157         (FRAME_SAVED_PC): Remove.  
4158         * m68k-tdep.c (m68k_register_bytes_ok):Add.
4159         (m68k_store_struct_return): Add.
4160         (m68k_deprecated_extract_return_value): Add.
4161         (m68k_deprecated_extract_struct_value_address): Add.
4162         (m68k_store_return_value): Add.
4163         (m68k_frame_chain): Add.
4164         (m68k_frameless_function_invocation): Add.
4165         (m68k_frame_saved_pc): Add.
4166         (m68k_gdbarch_init): added set_gdbarch calls for new 
4167         functions and deleted macros.
4168
4169 2002-06-23  Tom Tromey  <tromey@redhat.com>
4170
4171         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4172         (ALLDEPFILES): Likewise.
4173         (udiheaders): Removed.
4174         (udip2soc.o): Likewise.
4175         (udi2go32.o): Likewise.
4176         (udr.o): Likewise.
4177         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4178
4179 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
4180
4181         * infrun.c (_initialize_infrun): Delete unnecessary call to
4182         build_infrun.
4183
4184         * regcache.h: Update comments describing the regcache_cpy family
4185         of functions.
4186         (regcache_save, regcache_restore): Delete declaration.
4187         (regcache_save_no_passthrough): Delete declaration.
4188         (regcache_restore_no_passthrough): Delete declaration.
4189         * regcache.c (regcache_save): Delete function.
4190         (regcache_save_no_passthrough): Delete function.
4191         (regcache_restore): Delete function.
4192         (regcache_restore_no_passthrough): Delete function.
4193
4194 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
4195
4196         * config/m68k/tm-m68k.h: Fix typo.
4197         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4198         (m68k_frame_init_saved_regs): Declare.
4199
4200 2002-06-21  Jim Blandy  <jimb@redhat.com>
4201
4202         Remove some vestiges of Harris 88k support.
4203         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4204         register numbering quirk.
4205         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4206         odd symbols occurring in Harris 88k ELF targets.
4207
4208 2002-06-21  Tom Tromey  <tromey@redhat.com>
4209
4210         * gdb_locale.h: New file.
4211         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4212         (defs_h): Added gdb_locale.h.
4213         * configure, config.in: Rebuilt.
4214         * configure.in (PACKAGE): Define.
4215         * defs.h: Include gdb_locale.h.
4216         * main.c (captured_main): Call setlocale, bindtextdomain,
4217         textdomain.
4218
4219 2002-06-21  Dave Brolley  <brolley@redhat.com>
4220
4221         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4222         * config/frv/frv.mt: New file.
4223         * config/frv/tm-frv.h: New file.
4224         * configure.tgt: Support frv-*-*.
4225         * Makefile.in (frv-tdep.o): New target.
4226         * frv-tdep.c: New file.
4227         * NEWS: Mention frv.
4228
4229 2002-06-21  Dave Brolley  <brolley@redhat.com>
4230
4231         * MAINTAINERS: Add self to "Write After Approval" list.
4232
4233 2002-06-21  Grace Sainsbury  <graces@redhat.com>
4234
4235         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4236         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4237         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4238         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4239         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4240
4241         * m68k-tdep.c: Include arch-utils.h
4242         (m68k_register_raw_size): Add.
4243         (m68k_register_virtual_size): Add.
4244         (m68k_register_virtual_type): Add.
4245         (m68k_register_name): Add.
4246         (m68k_stack_align): Add.
4247         (m68k_register_byte): Add.
4248         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4249         tm-m68k.h.
4250
4251 2002-06-21  Grace Sainsbury  <graces@redhat.com>
4252
4253         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4254         m68k_find_saved_regs.
4255         (m68k_pop_frame): Removed saved_regs structure, and replaced
4256         references to it with frame->saved_regs.
4257         (m68k_gdbarch_init): Added function calls to initialize the
4258         gdbarch structure.
4259         (m68k_fix_call_dummy): Add. 
4260         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4261         (CALL_DUMMY): Remove.
4262         (CALL_DUMMY_LENGTH): Remove.
4263         (CALL_DUMMY_START_OFFSET): Remove.
4264         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4265         (FIX_CALL_DUMMY): Remove.
4266         (PUSH_DUMMY_FRAME): Remove.
4267         (POP_FRAME): Remove.
4268
4269 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4270
4271         * parse.c (parse_fprintf): New function used to avoid calls to
4272         fprintf in bison parser generated debug code.
4273         * parser-defs.h: Declaration of new parse_fprintf function.
4274         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4275         Set YYDEBUG to 1 by default.
4276         Set YYFPRINTF as parse_fprintf.
4277
4278 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
4279
4280         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
4281         encoding anymore.
4282         (pointer_encoding, enum ptr_encoding): New.
4283         (execute_cfa_program): Take care about pointer encoding.        
4284         (dwarf2_build_frame_info): Only call parse_frame_info for 
4285         .debug_frame and .eh_frame.
4286         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4287         fixed augmentation handling, added relative addressing, 
4288         ignore duplicate FDEs. Added comments.
4289         * dwarf2cfi.c: Reindented.
4290         
4291 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
4292
4293         * event-top.c (command_handler): Don't use space_at_cmd_start
4294         unless there is sbrk() on the host. Assign time and space data
4295         to union fields of the appropriate length.
4296
4297 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
4298
4299         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
4300         x86_64_register_name. Return type changed to 'const char *'.
4301         (x86_64_register_name2nr): Rename to x86_64_register_number.
4302         (x86_64_gdbarch_init): Update to reflect the change.
4303         * x86-64-tdep.h: Ditto.
4304         * x86-64-linux-nat.c (x86_64_fxsave_offset)
4305         (supply_fpregset): Ditto.
4306
4307 2002-06-19  Andrew Cagney  <cagney@redhat.com>
4308
4309         * regcache.h: Update copyright.
4310         (struct regcache, struct gdbarch): Add opaque declarations.
4311         (current_regcache): Declare global variable.
4312         (regcache_read, regcache_write): Add gdbarch parameter.
4313         (regcache_save, regcache_save_no_passthrough)
4314         (regcache_restore, regcache_restore_no_passthrough)
4315         (regcache_dup, regcache_dup_no_passthrough)
4316         (regcache_cpy, regcache_cpy_no_passthrough)
4317         (deprecated_grub_regcache_for_registers)
4318         (deprecated_grub_regcache_for_register_valid)
4319         (regcache_valid_p): Add function declarations.
4320         
4321         * regcache.c: Update copyright.
4322         (regcache_descr_handle): New global variable.
4323         (struct regcache_descr): Define.
4324         (init_legacy_regcache_descr, init_regcache_descr): New functions.
4325         (regcache_descr, xfree_regcache_descr): New functions.
4326         (struct regcache): Define.
4327         (regcache_xmalloc, regcache_xfree): New functions.
4328         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4329         (regcache_dup, regcache_dup_no_passthrough): New functions.
4330         (regcache_valid_p, regcache_read_as_address): New functions.
4331         (deprecated_grub_regcache_for_registers): New function.
4332         (deprecated_grub_regcache_for_register_valid): New function.
4333         (current_regcache): New global variable.
4334         (register_buffer): Add regcache parameter.  Update calls.
4335         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
4336         (read_register_gen, write_register_gen): Update register_buffer
4337         call.  Test for legacy_p instead of gdbarch_register_read_p or
4338         gdbarch_register_write_p.
4339         (regcache_collect): Update register_buffer call.
4340         (build_regcache): Rewrite.  Use deprecated grub functions.
4341         (regcache_save, regcache_save_no_passthrough): New functions.
4342         (regcache_restore, regcache_restore_no_passthrough): New
4343         functions.
4344         (_initialize_regcache): Create the regcache_data_handle. Swap
4345         current_regcache global variable.
4346         
4347         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4348         parameter to regcache_read and regcache_write calls.
4349         (sh4_register_read): Ditto.
4350         (sh64_pseudo_register_read): Ditto.
4351         (sh64_register_read): Ditto.
4352         (sh_pseudo_register_write): Ditto.
4353         (sh4_register_write): Ditto.
4354         (sh64_pseudo_register_write): Ditto.
4355         (sh64_register_write): Ditto.
4356
4357         * defs.h (XCALLOC): Define.
4358
4359 2002-06-19  Grace Sainsbury  <graces@redhat.com>
4360
4361         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4362         * m68k-tdep.c (m68k_gdbarch_init): Added.
4363         (m68k_dump_tdep): Added.
4364
4365 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
4366
4367         * ada-lang.c (fill_in_ada_prototype): Update comment.
4368
4369 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
4370
4371         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
4372         MIPS_ABI_LAST.
4373         (mips_abi_string, mips_abi_strings): New.
4374         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4375         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
4376         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
4377         O32 if no ABI is found.
4378         (mips_dump_tdep): Use mips_abi_strings.
4379         (mips_abi_update): New function.
4380         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
4381         ``set mips abi'' and ``show mips abi''.  Check the size of
4382         mips_abi_strings.
4383
4384 2002-06-19  Andrew Cagney  <cagney@redhat.com>
4385
4386         * i386-linux-tdep.c (i386_linux_register_name): Make return type
4387         constant.
4388
4389 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
4390
4391         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
4392         current frame using only the first stack size adjustment. All
4393         subsequent size adjustments are not considered to be part of
4394         the "static" part of the current frame.
4395         Compute the address of the saved registers relative to the
4396         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4397         in use in this frame.
4398
4399 2002-06-18  Don Howard  <dhoward@redhat.com>
4400  
4401         * valops.c (value_ind): Use value_at_lazy() when dereferencing
4402         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
4403         suggesting this solution.
4404
4405 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
4406
4407         * config/romp/xm-rtbsd.h: Delete file.
4408         * config/romp/rtbsd.mh: Delete file.
4409
4410 2002-06-18  Keith Seitz  <keiths@redhat.com>
4411
4412         * breakpoint.c (condition_command): Post breakpoint_modify
4413         when a condition is added to an existing breakpoint.
4414         (commands_command): Likewise for commands.
4415         (set_ignore_count): Likewise for ignore counts.
4416         If no tty, do not simply return, still need to send event
4417         notification.
4418         (ignore_command): Only print a newline if the command came
4419         from a tty.
4420         Don't call breakpoints_changed, since this is now properly
4421         handled by set_ignore_count.
4422
4423 2002-06-18  Andrew Cagney  <cagney@redhat.com>
4424
4425         * MAINTAINERS: Note that cris-elf target can be compiled with
4426         -Werror.
4427         * cris-tdep.c (cris_register_name): Make return type constant.
4428         (cris_breakpoint_from_pc): Ditto.
4429
4430 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
4431
4432         * frame.h (struct frame_info): Change type of context to 
4433         'struct context'.
4434
4435 2002-06-17  Andrew Cagney  <cagney@redhat.com>
4436
4437         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4438         pointer.
4439         * gdbarch.h, gdbarch.c: Regenerate.
4440         * config/mips/tm-mips.h (mips_register_name): Update.
4441         * i386-tdep.h (i386_register_name): Update.
4442         * mips-tdep.c (mips_register_name): Update
4443         * alpha-tdep.c (alpha_register_name): Update.
4444         * arch-utils.c (legacy_register_name): Update.
4445         * arch-utils.h (legacy_register_name): Update.
4446         * avr-tdep.c (avr_register_name): Update.
4447         * ia64-tdep.c (ia64_register_name): Update.
4448         * i386-tdep.c (i386_register_name): Update.
4449         * sparc-tdep.c (sparc32_register_name): Update.
4450         (sparc64_register_name): Update.
4451         (sparclite_register_name): Update.
4452         (sparclet_register_name): Update.
4453         * sh-tdep.c (sh_generic_register_name): Update.
4454         (sh_sh_register_name): Update.
4455         (sh_sh3_register_name): Update.
4456         (sh_sh3e_register_name): Update.
4457         (sh_sh_dsp_register_name): Update.
4458         (sh_sh3_dsp_register_name): Update.
4459         (sh_sh4_register_name): Update.
4460         (sh_sh64_register_name): Update.
4461         * s390-tdep.c (s390_register_name): Update.
4462         * rs6000-tdep.c (rs6000_register_name): Update.
4463         * ns32k-tdep.c (ns32k_register_name_32082): Update.
4464         (ns32k_register_name_32382): Update.
4465         * d10v-tdep.c (d10v_ts2_register_name): Update.
4466         (d10v_ts3_register_name): Update.
4467         * xstormy16-tdep.c (xstormy16_register_name): Update.
4468         * vax-tdep.c (vax_register_name): Update.
4469         * v850-tdep.c (v850_register_name): Update.
4470         * m68hc11-tdep.c (m68hc11_register_name): Update.
4471         * mn10300-tdep.c (mn10300_generic_register_name): Update.
4472         (am33_register_name): Update.
4473
4474 2002-06-17  Grace Sainsbury  <graces@redhat.com>
4475
4476         * m68k-tdep.c: Reindented.
4477
4478 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
4479
4480         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4481         list of predefined types.
4482
4483 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
4484
4485         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4486         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4487         REGISTER_CONVERT_TO_RAW): Remove defines.
4488         (i386_register_virtual_type, i386_register_convertible,
4489         i386_register_convert_to_virtual, i386_register_convert_to_raw):
4490         Remove prototypes.
4491         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4492         macros mentioned above.
4493
4494         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4495         (i386lynx_saved_pc_after_call): Remove prototype.
4496         * i386ly-tdep.c: Include "i386-tdep.h".
4497         (i386lynx_saved_pc_after_call): Make static.  Use
4498         read_memory_nobpt instead of read_memory.  Use
4499         read_memory_unsigned_integer instead of read_memory_integer.
4500         (i386lynx_init_abi): New function.
4501         (i386lynx_coff_osabi_sniffer): New function.
4502         (_initialize_i386bsd_tdep): New function.
4503
4504         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4505         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4506         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4507         (i386_fix_call_dummy): Remove prototype.
4508         * i386-tdep.c (i386_call_dummy_words): New variable.
4509         (i386_gdbarch_init): Adjust for removal of the
4510         macros mentioned above.
4511
4512 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
4513
4514         * command.h (add_setshow_auto_boolean_cmd): Replace
4515         add_set_auto_boolean_cmd.
4516         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4517         add_set_auto_boolean_cmd.
4518         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4519         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4520         mask-address'' command.
4521         (show_mask_address): Add cmd parameter.
4522         * remote.c (add_packet_config_cmd): Update.  Change type of
4523         set_func and show_func to cmd_sfunc_ftype.
4524         (_initialize_remote): Update `set remote Z-packet'
4525         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4526         (show_remote_protocol_e_packet_cmd): Ditto.
4527         (show_remote_protocol_E_packet_cmd): Ditto.
4528         (show_remote_protocol_P_packet_cmd): Ditto.
4529         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4530         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4531         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4532         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4533         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4534         (show_remote_protocol_Z_packet_cmd): Ditto.
4535         (show_remote_protocol_binary_download_cmd): Ditto.
4536         (show_remote_cmd): Pass NULL to all of above.
4537
4538 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4539
4540         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4541         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4542         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4543         POP_FRAME): Remove defines.
4544         (i386_push_arguments, i386_store_struct_return,
4545         i386_extract_return_value, i386_store_return_value,
4546         i386_extract_struct_value_address, i386_push_dummy_frame,
4547         i386_pop_frame): Renove prototypes.
4548         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4549         macros mentioned above.
4550
4551 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
4552
4553         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4554         add_set_boolean_cmd.
4555         (add_setshow_cmd): New function.
4556         * command.h (add_setshow_boolean_cmd): Replace
4557         add_set_boolean_cmd.
4558         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4559         and ``set rdiromatzero''.
4560         * maint.c (_initialize_maint_cmds): Update commented out code.
4561         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4562         * target.c (initialize_targets): Update `set
4563         trust-readonly-sections'.
4564         * remote.c (_initialize_remote): Update `set remotebreak'.
4565
4566 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4567
4568         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4569         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4570         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4571         fit into multi-arch framework.
4572         (i386_breakpoint_from_pc): New function.
4573         (i386_gdbarch_init): Adjust for removal of the macros mentioned
4574         above.
4575
4576         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4577         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4578         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4579         (i386_frameless_function_invocation, i386_frame_num_args,
4580         i386_frame_init_saved_regs): Remove prototypes.
4581         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4582         macros mentioned above.
4583
4584 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
4585
4586         * cli/cli-decode.c (set_cmd_cfunc): Update.
4587         (set_cmd_sfunc): Update.
4588         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4589         (set_cmd_sfunc, set_cmd_cfunc): Update.
4590         * cli/cli-decode.h: Update.
4591
4592 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4593
4594         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4595         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4596
4597 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
4598
4599         * defs.h (auto_boolean): Declare enum.
4600         * command.h (cmd_auto_boolean): Delete enum.
4601         * mips-tdep.c (mask_address_var): Update.
4602         (mips_mask_address_p): Update.
4603         (show_mask_address): Update.
4604         * remote.c (struct packet_config): Update.
4605         (update_packet_config): Update.
4606         (show_packet_config_cmd): Update.
4607         (packet_ok): Update.
4608         (add_packet_config_cmd): Update.
4609         (_initialize_remote): 
4610         * command.h: Update.
4611         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4612         (do_setshow_command): Update.
4613         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4614         * cli/cli-decode.h: Update.
4615
4616 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4617
4618         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4619         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4620         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4621         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4622         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4623         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4624
4625         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4626         list of DJGPP COFF targets.
4627
4628         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4629         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4630         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4631         (FP0_REGNUM): Remove define.
4632         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4633         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4634         (i386_register_virtual_size): Remove protoype.
4635         * i386-tdep.c (i386_register_virtual_size): Removed.
4636         (i386_extract_return_value, i386_store_return_value): Use
4637         FP0_REGNUM instead of NUM_FREGS to determine whether the
4638         floating-point registers are available.
4639         (i386_gdbarch_init): Tweak FIXME about FPU registers.
4640         Adjust for removal of macros mentioned above.
4641
4642 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4643
4644         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
4645         comments.
4646         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4647         Remove prototypes.
4648         (supply_gregset, fill_gregset): Remove use of register keyword and
4649         remove declaration for regmap.  Use I386_NUM_GREGS instead of
4650         NUM_REGS and NUM_FREGS.
4651         (FPREGSET_FSAVE_OFFSET): Remove.
4652         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4653         NUM_FREGS to determine whether the floating-point registers are
4654         available.
4655
4656         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4657         gnu_store_registers): Replace usage of NUM_GREGS with
4658         I386_NUM_GREGS.
4659
4660         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4661         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4662         usage of NUM_GREGS with I386_NUM_GREGS.
4663
4664         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4665
4666         * i386bsd-nat.c: Include "i386-tdep.h".
4667         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4668         I386_NUM_GREGS.
4669
4670         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4671         and associated comment.  They no longer make any sense, since we
4672         don't use this file anymore on Linux.
4673
4674         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4675         * i386-tdep.c (i386_register_offset, i386_register_size): Use
4676         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4677         elements in these arrays.
4678         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4679         MAX_NUM_REGS.
4680
4681 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4682
4683         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4684         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4685
4686 2002-06-14  Andrew Cagney  <cagney@redhat.com>
4687
4688         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4689         EXTRACT_RETURN_VALUE.
4690         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4691         EXTRACT_STRUCT_VALUE_ADDRESS.
4692         * gdbarch.h, gdbarch.c: Regenerate.
4693         
4694         * values.c (value_being_returned): Handle
4695         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4696         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4697
4698         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
4699         * arm-tdep.c (arm_gdbarch_init): Update.
4700         * avr-tdep.c (avr_gdbarch_init): Update.
4701         * cris-tdep.c (cris_gdbarch_init): Update.
4702         * d10v-tdep.c (d10v_gdbarch_init): Update.
4703         * ia64-tdep.c (ia64_gdbarch_init): Update.
4704         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4705         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4706         * s390-tdep.c (s390_gdbarch_init): Update.
4707         * sh-tdep.c (sh_gdbarch_init): Update.
4708         * s390-tdep.c (s390_gdbarch_init): Update.
4709         * sparc-tdep.c (sparc_gdbarch_init): Update.
4710         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4711         * v850-tdep.c (v850_gdbarch_init): Update.
4712         * vax-tdep.c (vax_gdbarch_init): Update.
4713         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4714         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4715
4716         * config/arc/tm-arc.h: Update.
4717         * config/d30v/tm-d30v.h: Update.
4718         * config/fr30/tm-fr30.h: Update.
4719         * config/h8300/tm-h8300.h: Update.
4720         * config/h8500/tm-h8500.h: Update.
4721         * config/i386/tm-i386.h: Update.
4722         * config/i386/tm-ptx.h: Update.
4723         * config/i386/tm-symmetry.h: Update.
4724         * config/i960/tm-i960.h: Update.
4725         * config/m32r/tm-m32r.h: Update.
4726         * config/m68k/tm-delta68.h: Update.
4727         * config/m68k/tm-linux.h: Update.
4728         * config/m68k/tm-m68k.h: Update.
4729         * config/m88k/tm-m88k.h: Update.
4730         * config/mcore/tm-mcore.h: Update.
4731         * config/mips/tm-mips.h: Update.
4732         * config/mn10200/tm-mn10200.h: Update.
4733         * config/pa/tm-hppa.h: Update.
4734         * config/pa/tm-hppa64.h: Update.
4735         * config/sparc/tm-sp64.h: Update.
4736         * config/sparc/tm-sparc.h: Update.
4737         * config/sparc/tm-sparclet.h: Update.
4738         * config/z8k/tm-z8k.h: Update.
4739
4740 2002-06-14  Andrew Cagney  <cagney@redhat.com>
4741
4742         * Makefile.in (i386_linux_tdep_h): Define.
4743         (i386_tdep_h, i387_tdep_h): Define.
4744         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4745         $(i386_tdep_h) and $(i387_tdep_h).
4746         * i386-linux-nat.c: Include "i386-linux-tdep.h".
4747
4748 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
4749
4750         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4751         Already covered by the default.
4752
4753         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4754         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
4755         (i386_gdbarch_init): Initialize long_double_format and long_double
4756         bit.
4757
4758         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4759         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
4760         Move these to ...
4761         * config/i386/i386sol2.mh: ... here.
4762         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4763         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4764         (SIGCONTEXT_PC_OFFSET): Remove define.
4765         (IN_SIGTRAMP): Remove define.
4766         * i386-sol2-tdep.c: New file.
4767         
4768         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4769         * config/i386/tm-i386nw.h: Removed.
4770
4771         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4772         USE_STRUCT_CONVENTION): Remove defines.
4773         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4774         (get_longjmp_target): Remove prototype.
4775         (IN_SIGTRAMP): Remove define.
4776         (i386bsd_in_sigtramp): Remove prototype.
4777         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4778         function.  Update comment accordingly
4779         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4780         (FRAME_SAVED_PC): Remove define.
4781         (i386bsd_frame_saved_pc): Remove prototype.
4782         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4783         GET_LONGJMP_TARGET): Remove defines.
4784         (get_longjmp_target): Remove prototype.
4785         (IN_SIGTRAMP): Remove define.
4786         (i386bsd_in_sigtramp): Remove prototype.
4787         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4788         function.  Update comment accordingly
4789         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4790         (FRAME_SAVED_PC): Remove define.
4791         (i386bsd_frame_saved_pc): Remove prototype.
4792         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4793         Remove prototype.
4794         (USE_STRUCT_CONVENTION): Remove prototype.
4795         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4796         declaration.
4797         (_initialize_i386bsd_nat): Revise logic to determine some
4798         constants at compile time when compiling a native GDB.  Warn if
4799         things don't match up with what we expect.
4800         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4801         Remove variables.
4802         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
4803         to use date stored in `struct gdbarch_tdep'.
4804         (i386bsd_sigcontext_offset): Remove varaible.
4805         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
4806         stored in `struct gdbarch_tdep'.
4807         (i386bsd_frame_saved_pc): Make static.
4808         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4809         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4810         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4811         i386fbsd4_sc_pc_offset): New variables.
4812         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4813         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4814         functions.
4815         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4816         functions.
4817         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4818         Modify the value of i386fbsd_sigtramp_start and
4819         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4820         i386fbsd_sigtramp_end.
4821         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4822         function.
4823
4824         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4825         define to i386-linux-tdep.h.
4826         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4827         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4828         defines.
4829         (i386_linux_register_name, i386_linux_register_byte,
4830         i386_linux_register_raw_size): Remove prototypes.
4831         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4832         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4833         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4834         TARGET_WRITE_PC): Remove defines.
4835         (i386_linux_in_sigtramp, i386_linux_frame_chain,
4836         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4837         i386_linux_write_pc): Remove prototypes.
4838         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4839         (get_longjmp_target): Remove prototype.
4840         * i386-linux-tdep.h: New file.
4841         * i386-linux-nat.c: Include "i386-linux-tdep.h".
4842         * i386-linux-tdep.c: Include "i386-tdep.h" and
4843         "i386-linux-tdep.h".
4844         (i386_linux_register_name, i386_linux_register_byte,
4845         i386_linux_register_raw_size, i386_linux_in_sigtramp,
4846         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4847         Make static.
4848         (i386_linux_init_abi): New function.
4849         (_initialize_i386_linux_tdep): New function.
4850
4851         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4852         (i386_saved_pc_after_call): Remove prototype.
4853         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4854         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4855         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4856         (i386_register_name, i386_stab_reg_to_regnum,
4857         i386_dwarf_reg_to_regnum): Remove prototypes.
4858         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4859         SIZEOF_SSE_REGS): Remove defines.
4860         (REGISTER_BYTES): Remove define.
4861         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4862         (i386_register_byte, i386_register_raw_size): Remove prototypes.
4863         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4864         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4865         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4866         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4867         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4868         (get_longjmp_target): Remove prototype.
4869         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4870         (sigtramp_saved_pc): Remove define.
4871         (i386v4_sigtramp_saved_pc): Remove prototype.
4872         * config/i386/tm-go32.h (FRAME_CHAIN,
4873         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4874         (i386go32_frame_saved_pc): Remove prototype.
4875         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4876         (get_longjmp_target): Remove prototype.
4877         * i386-tdep.h: Include "osabi.h".
4878         (enum i386_abi): Removed.
4879         (enum struct_return): New enum.
4880         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4881         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4882         sc_pc_offset members.
4883         (i386_gdbarch_register_os_abi): Remove prototype.
4884         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4885         I386_SSE_NUM_REGS): New defines.
4886         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4887         I386_SSE_SIZEOF_REGS): New defines.
4888         (i386_register_name, i386_register_byte, i386_register_raw_size):
4889         New prototypes.
4890         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4891         (i386bsd_sigtramp_saved_pc): New prototype.
4892         * i386-tdep.c: Don't include "elf-bfd.h".
4893         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4894         i386_frame_chain, i386_saved_pc_after_call): Make static.
4895         (i386_frame_saved_pc): Rewrite to call architecture dependent
4896         function to deal with signal handlers.  Make static.
4897         (i386go32_frame_saved_pc): Removed.
4898         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4899         Removed.
4900         (i386_get_longjmp_target): New function.
4901         (default_struct_convention, pcc_struct_convention,
4902         reg_struct_convention, valid_conventions, struct_convention): New
4903         variables.
4904         (i386_use_struct_convention): New function.
4905         (i386v4_sigtramp_saved_pc): Renamed to
4906         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
4907         (i386_pc_in_sigtramp): New function.
4908         (i386_abi_names): Removed.
4909         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4910         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4911         Removed.
4912         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4913         i386_gdbarch_register_os_abi): Removed.
4914         (struct i386_abi_handler): Removed.
4915         (i386_abi_handler_list): Removed.
4916         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4917         functions.
4918         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4919         i386_nw_init_abi): New functions.
4920         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4921         Use set_gdbarch_xxx() calls instead of relying on macros for a
4922         number of calls.
4923         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4924         (_initialize_i386_tdep): Add new 'struct-convcention' command.
4925         Register the various architecture variants defined in this file.
4926
4927 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
4928
4929         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4930         (struct main_type): Remove arg_types member.  Update comments for
4931         struct field.
4932         (TYPE_ARG_TYPES): Remove.
4933         (TYPE_FN_FIELD_ARGS): Update.
4934         (smash_to_method_type): Update prototype.
4935
4936         * c-typeprint.c (cp_type_print_method_args): Take method type
4937         instead of argument list.  Use new argument layout.  Simplify.
4938         (c_type_print_args): Use new argument layout.  Simplify.
4939         (c_type_print_base): Update call to cp_type_print_method_args.
4940         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4941         argument; use die->type instead.  Update call to
4942         smash_to_method_type.
4943         (read_structure_scope): Update call to dwarf2_add_member_fn.
4944         * gdbtypes.c (allocate_stub_method): Update comment.
4945         (smash_to_method_type): Take new NARGS and VARARGS arguments.
4946         Use new argument layout.
4947         (check_stub_method): Use new argument layout.  Don't count
4948         void as an argument.
4949         (print_arg_types): Update comments.  Use new argument layout.
4950         (recursive_dump_type): Don't print arg_types member.
4951         * hpread.c (hpread_read_struct_type): Use new argument layout.
4952         (fixup_class_method_type): Likewise.
4953         (hpread_type_lookup): Likewise.
4954         * stabsread.c (read_type): Update calls to read_args and
4955         smash_to_method_type.
4956         (read_args): Use new argument layout.  Simplify.
4957         * valops.c (typecmp): Use new argument layout.  Update parameters
4958         and comments.  Simplify.
4959         (hand_function_call): Use new argument layout.
4960         (search_struct_method): Update call to typecmp.
4961         (find_overload_match): Use new argument layout.
4962
4963 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4964
4965         * NEWS: Mention multithreaded debug support for gdbserver.
4966
4967 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4968
4969         * MAINTAINERS: Mention NEWS.
4970
4971 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4972
4973         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4974         (struct mips_objfile_private, compare_pdr_entries): New.
4975         (non_heuristic_proc_desc): Read the ".pdr" section if it
4976         is present.
4977
4978 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
4979
4980         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4981         (arm_debug): New static variable.
4982         (_initialize_arm_tdep): Add ``set debug arm'' command.
4983
4984 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
4985
4986         * Makefile.in (sim_arm_h): Define.
4987         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4988         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4989         (arm_register_sim_regno): New function, map an internal REGNUM
4990         onto a simulator register number.
4991         (arm_gdbarch_init): Set register_sim_regno.
4992
4993 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
4994
4995         * MAINTAINERS: Add self.
4996
4997 2002-06-11  Jim Blandy  <jimb@redhat.com>
4998
4999         * source.c (source_info): Mention whether the symtab has
5000         information about preprocessor macros.
5001
5002         Call the command `info macro', not `show macro'.
5003         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5004         Fix error message.
5005         (_initialize_macrocmd): Register `info_macro_command' in
5006         `infolist', not `showlist'.
5007
5008 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
5009
5010         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5011         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5012         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5013         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5014         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
5015         unconditionally.
5016         (set_mipsfpu_single_command, set_mipsfpu_double_command)
5017         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5018         (_initialize_mips_tdep): Remove dead code.
5019         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5020         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5021         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5022         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5023         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5024         MIPS_LAST_FP_ARG_REGNUM): Remove.
5025
5026 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
5027
5028         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5029         (unwind_tmp_obstack_free, parse_frame_info)
5030         (update_context, cfi_read_fp, cfi_write_fp)
5031         (cfi_frame_chain, cfi_init_extra_frame_info)
5032         (cfi_virtual_frame_pointer): Use the above function.
5033         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5034
5035 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
5036
5037         * v850-tdep.c (v850_type_is_scalar): New function.
5038         (v850_use_struct_convention): Match current gcc implementation
5039         as close as possible.
5040         (v850_push_arguments): Fix stack_offset handling.  Don't write
5041         struct_addr into register.  This is done by v850_store_struct_return.
5042         (v850_extract_return_value): Care for structs.
5043         (v850_store_return_value): Ditto.
5044         (v850_store_struct_return): Actually write address.
5045
5046 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
5047
5048         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5049         without debug information too.
5050
5051 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
5052
5053         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5054         Make multi-arch pure.
5055         * gdbarch.h, gdbarch.c: Re-generate.
5056         * arm-tdep.c (arm_print_float_info): Update.
5057         * arch-utils.h (default_print_float_info): Update.
5058         * arch-utils.c (default_print_float_info): Update.
5059         * infcmd.c (float_info): Update call.
5060
5061 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
5062
5063         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5064         the front of the initialize list.
5065
5066 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
5067
5068         * infrun.c (struct inferior_status): Replace fields
5069         selected_frame_address and selected_level with field
5070         selected_frame_id.
5071         (save_inferior_status): Update.  Use get_frame_id.
5072         (struct restore_selected_frame_args): Delete.
5073         (restore_selected_frame): Update.  Use frame_find_by_id.
5074         (restore_inferior_status): Update.
5075
5076         * breakpoint.h (struct breakpoint): Change type of
5077         watchpoint_frame to frame_id.
5078         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
5079         call to get_current_frame.
5080         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
5081         get_current_frame.
5082         (watchpoint_check): Use frame_find_by_id.
5083
5084         * frame.h (record_selected_frame): Delete declaration.
5085         * stack.c (record_selected_frame): Delete function.
5086         
5087         * frame.h (struct frame_id): Define.
5088         (get_frame_id): Declare.
5089         (frame_find_by_id): Declare.
5090         * frame.c (frame_find_by_id): New function.
5091         (get_frame_id): New function.
5092
5093 2002-06-10  Andrey Volkov <avolkov@transas.com>
5094
5095         * ser-e7kpc.c: Fix duplicated define and call of 
5096         _initialize_ser_e7000pc
5097             
5098 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
5099
5100         * signals/signals.c (target_signal_from_host): Fix #ifdef
5101         SIGRTMIN case.
5102         (do_target_signal_to_host): Likewise.
5103
5104 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
5105
5106         * mips-tdep.c (mips_find_abi_section): New function.
5107         (mips_gdbarch_init): Call it.
5108
5109 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
5110
5111         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5112         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
5113         after Andrew's 2002-06-08 gdbarch change.
5114
5115 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
5116
5117         * i386-linux-nat.c (suppy_gregset): Don't supply
5118         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5119         register cache.
5120         (fill_gregset): Don't fetch it under the same circumstances.
5121
5122 2002-06-09  Andrew Cagney  <cagney@redhat.com>
5123
5124         * Makefile.in (callback_h): Define.
5125         (remote_sim_h): Update path to remote-sim.h.
5126         (remote-rdp.o): Add $(callback_h).
5127         (remote-sim.o): Use $(callback_h).
5128         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5129         * remote-rdp.c: Include "gdb/callback.h".
5130
5131 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
5132
5133         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5134         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5135
5136 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
5137
5138         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5139         * rdi-share/serpardr.c: Ditto.
5140         * rdi-share/unixcomm.c: Ditto.
5141         * rdi-share/serdrv.c: Ditto.
5142         * rdi-share/hostchan.h: Ditto.
5143         * rdi-share/hostchan.c: Ditto.
5144         * rdi-share/host.h: Ditto.
5145         * rdi-share/devsw.c: Ditto.
5146
5147         * objfiles.h: Change type of obj_private to void pointer.
5148         * pa64solib.c: Update copyright.  Don't include "assert.h", use
5149         strcmp instead of STREQ, use LONGEST, do not use PTR
5150         * somsolib.c: Ditto.
5151
5152         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5153         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5154         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5155
5156 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
5157
5158         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5159         (default_get_saved_register): Delete function.
5160         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5161         generic_unwind_get_saved_register.
5162         * gdbarch.h, gdbarch.c: Re-generate.
5163         
5164 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
5165
5166         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5167         generic_func_frame_chain_valid.
5168         * gdbarch.h, gdbarch.c: Re-generate.
5169         * blockframe.c (generic_func_frame_chain_valid): Only check
5170         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
5171         passing FP to PC_IN_CALL_DUMMY.
5172         Fix PR gdb/360.
5173
5174 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
5175
5176         * gdbarch.sh (struct gdbarch_data): Add field init_p.
5177         (register_gdbarch_data): Initialize init_p.
5178         (gdbarch_data): Initialize data pointer using the init function.
5179         (init_gdbarch_data): Delete function.
5180         (gdbarch_update_p): Update.
5181         (initialize_non_multiarch): Update.
5182         (struct gdbarch): Add field initialized_p.
5183         * gdbarch.h, gdbarch.c: Re-generate.
5184
5185 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
5186
5187         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5188         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5189         better do the things actually here.
5190         * x86-64-tdep.c (x86_64_register_name2nr): New.
5191         (x86_64_register_name): Renamed to x86_64_register_nr2name.
5192         (x86_64_gdbarch_init): Respect the above change.
5193         * x86-64-tdep.h (x86_64_register_name2nr)
5194         (x86_64_register_nr2name): Add prototypes.
5195         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5196
5197 2002-06-06  Michael Snyder  <msnyder@redhat.com>
5198
5199         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5200         Delete extra braces and re-indent.
5201         (d10v_store_return_value): Char return values
5202         must be shifted over by one byte in R0.
5203         (d10v_extract_return_value): Delete extra braces, re-indent.
5204
5205 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
5206
5207         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5208         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5209         (d10v_integer_to_address): Rewrite.
5210         (d10v_frame_init_saved_regs): When reading fp and sp registers use
5211         the d10v specific functions which take care of converting to the
5212         correct space.
5213
5214 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
5215
5216         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5217         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5218
5219 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
5220
5221         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5222         includes.
5223         * config/tm-linux.h: Ditto.
5224         * config/alpha/tm-alphalinux.h: Ditto.
5225         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5226         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5227         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5228         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5229         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5230         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5231         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5232         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5233         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5234         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5235         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5236         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5237         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5238         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5239         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5240         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5241         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5242         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5243         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5244         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5245         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5246         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5247         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5248         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5249         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5250         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5251         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5252         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5253         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5254         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5255         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5256         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5257         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5258         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5259         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5260         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5261         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5262
5263 2002-05-04  Aidan Skinner <aidan@velvet.net>
5264
5265         * ada-exp.tab.c: New file
5266         * ada-exp.y: New file
5267         * ada-lang.c: New file
5268         * ada-lang.h: New file
5269         * ada-lex.c: New file
5270         * ada-lex.l: New file
5271         * ada-tasks.c: New file
5272         * ada-typeprint.c: New file
5273         * ada-valprint.c: New file
5274         
5275 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
5276
5277         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5278         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5279
5280 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
5281
5282         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5283         insetead of ppc-linux-tdep.o.
5284         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5285         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5286
5287 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
5288
5289         2002-05-07 Christian Groessler <chris@groessler.org>
5290         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5291         bit register contents for little endian hosts.
5292
5293 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
5294
5295         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5296         any maintainer.
5297
5298 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
5299
5300         * gdbarch.h: Regenerate.
5301
5302 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
5303
5304         * MAINTAINERS: Add everyone to write-after-approval list.
5305
5306 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
5307
5308         * stack.c (frame_info): Use frame_register_unwind instead of
5309         saved_regs.  Mention when the SP is on the stack or in a register.
5310
5311         * frame.h (frame_register_unwind_ftype): Define.  Document.
5312         (struct frame_info): Add field register_unwind and
5313         register_unwind_cache.
5314         (frame_register_unwind): Declare.
5315         (generic_unwind_get_saved_register): Declare.
5316
5317         * frame.c (frame_register_unwind): New function.
5318         (generic_unwind_get_saved_register): New function.
5319
5320         * blockframe.c (generic_call_dummy_register_unwind): New function.
5321         (frame_saved_regs_register_unwind): New function.
5322         (set_unwind_by_pc): New function.
5323         (create_new_frame): New function.
5324         (get_prev_frame): New function.
5325
5326 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
5327
5328         * a29k-share/: Delete directory.
5329         * remote-vx29k.c: Delete file.
5330
5331 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
5332
5333         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5334         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5335
5336 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
5337
5338         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5339         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5340         (sparc64nbsd-nat.o)
5341         (sparcnbsd-nat.o)
5342         (sparcnbsd-tdep.o): New dependency lists.
5343         * NEWS: Note new UltraSPARC NetBSD native configuration.
5344         * configure.host (sparc64-*-netbsd*): New host.
5345         * configure.tgt (sparc-*-netbsdelf*)
5346         (sparc-*-netbsd*): Set gdb_target to nbsd.
5347         (sparc64-*-netbsd*): New target.
5348         * sparc64nbsd-nat.c: New file.
5349         * sparcnbsd-nat.c: New file.
5350         * sparcnbsd-tdep.c: New file.
5351         * sparcnbsd-tdep.h: New file.
5352         * config/sparc/nbsd.mt: New file.
5353         * config/sparc/nbsd64.mh: New file.
5354         * config/sparc/nbsd64.mt: New file.
5355         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5356         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
5357         (HOST_IPC): Remove.
5358         * config/sparc/nbsdaout.mt: Remove.
5359         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5360         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
5361         (HOST_IPC): Remove.
5362         * config/sparc/nbsdelf.mt: Remove.
5363         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
5364         sparc-nat.c compatiblity defines.
5365         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
5366         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5367         * config/sparc/tm-nbsd64.h: New file.
5368         * config/sparc/tm-nbsdaout.h: Remove.
5369         * config/sparc/xm-nbsd.h: Remove.
5370
5371 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
5372
5373         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5374         * sparc-tdep.c: Include osabi.h.
5375         (gdbarch_tdep): Add osabi member.
5376         (_initialize_sparc_tdep): Use gdbarch_register.
5377         (sparc_gdbarch_init): Use generic OS ABI framework.
5378         (sparc_dump_tdep): New function.
5379
5380 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
5381
5382         * corefile.c (do_captured_read_memory_integer): Return non-zero
5383         result.
5384         (safe_read_memory_integer): Copy result of memory read when
5385         status is non-zero.  Also, add comments.
5386
5387 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
5388
5389         * Makefile.in (ppc_tdep_h): Define.
5390         (ppc-linux-nat.o)
5391         (ppc-linux-tdep.o)
5392         (rs6000-tdep.o): Use $(ppc_tdep_h).
5393         (ppc-sysv-tdep.o)
5394         (ppcnbsd-nat.o)
5395         (ppcnbsd-tdep.o): New dependency lists.
5396         * ppc-tdep.h: Use generic OS ABI framework.
5397         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5398         (ppc_linux_init_abi): New functions.
5399         (ppc_sysv_abi_broken_use_struct_convention)
5400         (ppc_sysv_abi_use_struct_convention)
5401         (ppc_sysv_abi_push_arguments): Move to...
5402         * ppc-sysv-tdep.c: ...here.
5403         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5404         * rs6000-tdep.c (process_note_abi_tag_sections)
5405         (get_elfosabi): Remove.
5406         (rs6000_gdbarch_init): Use generic OS ABI framework.
5407         (rs6000_dump_tdep): New function.
5408         (_initialize_rs6000_tdep): Use gdbarch_register.
5409         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5410         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5411         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5412         of ppc-linux-tdep.o.
5413         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5414         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5415         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5416         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5417         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5418         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5419
5420 2002-05-29  Jim Blandy  <jimb@redhat.com>
5421
5422         * macroscope.c (default_macro_scope): Put `void' in empty argument
5423         list.
5424
5425 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
5426
5427         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5428         * arch-utils.c: Include "sim-regno.h".
5429         * gdbarch.sh: Don't include "sim-regno.h".
5430         * gdbarch.h, gdbarch.c: Regenerate.
5431         * sim-regno.h (legacy_register_sim_regno): Move declaration from
5432         here.
5433         * arch-utils.h (legacy_register_sim_regno): To here.
5434         * remote-sim.c (legacy_register_sim_regno): Move function from
5435         here.
5436         * arch-utils.c (legacy_register_sim_regno): To here.
5437
5438 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
5439
5440         * sim-regno.h: New file.
5441         * Makefile.in (sim_regno_h): Define.
5442         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5443         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5444         (legacy_register_sim_regno): New function.
5445         (one2one_register_sim_regno): New function.
5446         (gdbsim_fetch_register): Rewrite.
5447         (gdbsim_store_register): Only store a register when
5448         REGISTER_SIM_REGNO is valid.
5449         * d10v-tdep.c: Include "sim-regno.h".
5450         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5451         (d10v_ts3_register_sim_regno): Ditto.
5452         * gdbarch.sh: Include "sim-regno.h".
5453         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5454         * gdbarch.h, gdbarch.c: Regenerate.
5455         * arch-utils.h (default_register_sim_regno): Delete declaration.
5456         * arch-utils.c (default_register_sim_regno): Delete function.
5457
5458 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
5459
5460         * ppcnbsd-nat.c: Rewrite.
5461         * ppcnbsd-tdep.c: New file.
5462         * ppcnbsd-tdep.h: New file.
5463         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5464         solib.o, and solib-svr4.o.
5465         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5466         nbsd-tdep.o, and corelow.o.
5467
5468 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
5469
5470         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5471         `tr' and `sed'.  Mention that `broken' targets are not expected to
5472         build.
5473
5474 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
5475
5476         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5477         Let PC point right after the prologue before looking up symbols.
5478         
5479 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
5480
5481         * i386-tdep.c (i386_register_virtual_type): Return 
5482         builtin_type_vec128i for SSE registers.
5483
5484         * gdbtypes.h (builtin_type_vec128i): Declare.
5485
5486         * gdbtypes.c (build_builtin_type_vec128i): New function.
5487         (builtin_type_v2_double, builtin_type_v4_int64): New types.
5488         (builtin_type_vec128i): New type for SSE2 128-bit registers.
5489         (build_gdbtypes): Initialize new builtin vector types.
5490         (_initialize_gdbtypes): Register new vector types with gdbarch.
5491
5492 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5493
5494         * MAINTAINERS: ns32k is not longer an obsolete candidate,
5495         since it has been multi-arch'd.
5496         * NEWS: Note that ns32k-*-* is now partial multi-arch.
5497         Move Alpha and VAX multi-arch news entries to same section
5498         as other multi-arch news.
5499
5500 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5501
5502         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5503         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
5504         static.  Rename some register numbers to put them in ns32k-tdep
5505         private namespace.
5506         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5507         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5508         functions.
5509         (_initialize_ns32k_tdep): Use gdbarch_register.
5510         * ns32k-tdep.h: New file.
5511         * ns32knbsd-tdep.c: New file.
5512         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5513         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5514         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5515         REGISTER_BYTES, REGISTER_BYTE): Remove.
5516         * config/ns32k/tm-ns32k.h: New file.
5517         * config/ns32k/tm-umax.h: Remove.
5518
5519 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5520
5521         * ns32k-tdep.c (ns32k_saved_pc_after_call,
5522         ns32k_store_struct_return, ns32k_extract_return_value,
5523         ns32k_store_return_value, ns32k_extract_struct_value_address): New
5524         functions.
5525         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5526         ns32k_saved_pc_after_call.
5527         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5528         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5529         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5530         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5531         ns32k_extract_struct_value_address.
5532
5533 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5534
5535         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5536         ns32k_fix_call_dummy): New.
5537         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5538         ns32k_call_dummy_words.
5539         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5540         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5541         CALL_DUMMY_NARGS): Remove.
5542         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5543
5544 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5545
5546         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5547         ns32k_frame_saved_pc, ns32k_frame_args_address,
5548         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5549         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5550         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5551         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5552         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5553         (BREAKPOINT): Remove..
5554         (FRAME_CHAIN): Define as ns32k_frame_chain.
5555         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5556         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5557         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5558         (FRAME_FIND_SAVED_REGS): Remove.
5559         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5560         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5561         (POP_FRAME): Define as ns32k_pop_frame.
5562
5563 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5564
5565         * ns32k-tdep.c (ns32k_register_byte_32082,
5566         ns32k_register_byte_32382, ns32k_register_raw_size,
5567         ns32k_register_virtual_size, ns32k_register_virtual_type): New
5568         functions.
5569         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5570         ns32k_register_byte_32382.
5571         * config/ns32k/tm-umax.h: Update copyright years.
5572         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5573         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5574         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5575         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5576         (ns32k_get_enter_addr): Fix prototype.
5577
5578 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5579
5580         * ns32k-tdep.c: Update copyright years.
5581         (ns32k_register_name_32082): New function.
5582         (ns32k_register_name_32382): Ditto.
5583         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5584         (REGISTER_NAME): Define as ns32k_register_name_32382.
5585         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5586         (REGISTER_NAME): Define as ns32k_register_name_32082.
5587
5588 2002-05-24  Jim Blandy  <jimb@redhat.com>
5589
5590         * dwarf2read.c (free_line_header): Use xfree, not free.
5591
5592 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
5593
5594         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5595         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5596
5597 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
5598
5599         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5600
5601 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
5602
5603         From Ross Alexander at NEC Europe:
5604         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5605
5606 2002-05-23  Michael Snyder  <msnyder@redhat.com>
5607
5608         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5609         for input, rather than parse_and_eval_address.  
5610
5611 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
5612
5613         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5614         * Makefile.in (sim_d10v_h): Update definition.
5615
5616 2002-05-24  Andrew Cagney  <cagney@redhat.com>
5617
5618         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5619         change `2002-05-22 Michael Snyder' below.
5620         (d10v_push_arguments): Ditto.
5621         (d10v_extract_return_value): Ditto.
5622
5623 2002-05-23  Jim Blandy  <jimb@redhat.com>
5624
5625         * macrotab.c (check_for_redefinition): Don't complain if the new
5626         definition is the same as the previous one.  Take more arguments
5627         to allow the comparison.
5628         (macro_define_object, macro_define_function): Pass more arguments
5629         to check_for_redefinition.
5630
5631 2002-05-22  Michael Snyder  <msnyder@redhat.com>
5632
5633         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5634         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5635         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5636         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5637         Don't bail if return_pc is PC_IN_CALL_DUMMY.
5638         Add a temp variable to save a call (and a memory read).
5639         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5640         if possible (so that PC_IN_CALL_DUMMY will work).
5641
5642 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
5643
5644         * MAINTAINERS: Remove status `OBSOLETE' from v850.
5645
5646 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
5647
5648         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5649         fde->cie_ptr.
5650         (dwarf2_build_frame_info): Corrected handling of eh_frame.
5651         (dwarf2_build_frame_info): Add offset to fde->initial_location 
5652         so that frames of shared libraries are mapped correctly.
5653         (execute_stack_op): Change type of 'result' from ULONGEST to
5654         CORE_ADDR.
5655         
5656 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
5657
5658         * config/alpha/tm-nbsd.h: Include solib.h.
5659
5660 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
5661
5662         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5663         assumptions about the host's byte order.
5664
5665 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
5666
5667         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5668         to dependency list.
5669         * alphanbsd-tdep.c: Include solib-svr4.h.
5670         * shnbsd-tdep.c: Ditto.
5671
5672 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
5673
5674         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5675         nbsd-tdep.h to dependency list.
5676         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5677         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5678         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5679         nbsdaout.mh and nbsdelf.mh consistently.
5680         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5681         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5682         nbsdaout.mt and nbsdelf.mh consistently.
5683         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
5684         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5685         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5686         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
5687         a.out shared library stuff from here...
5688         * config/nm-nbsdaout.h: ...to here.
5689         * config/tm-nbsd.h: Remove.
5690         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5691         * config/arm/nbsd.mh: Remove.
5692         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5693         nbsd-tdep.o.
5694         * config/arm/nbsdaout.mh: New file. 
5695         * config/arm/nbsdelf.mh: New file.
5696         * config/arm/nm-nbsdaout.h: New file.
5697         * config/i386/nbsd.mh: Remove.
5698         * config/i386/nbsd.mt: Remove.
5699         * config/i386/nbsdaout.mh: New file.
5700         * config/i386/nbsdaout.mt: New file.
5701         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5702         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5703         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
5704         i386_register_u_addr): Remove.
5705         * config/i386/nm-nbsdaout.h: New file.
5706         * config/i386/nm-nbsdelf.h: Remove.
5707         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5708         (USE_STRUCT_CONVENTION): Remove.
5709         * config/i386/tm-nbsdaout.h: New file.
5710         * config/i386/tm-nbsdelf.h: Remove.
5711         * config/m68k/nbsd.mh: Remove.
5712         * config/m68k/nbsd.mt: Remove.
5713         * config/m68k/nbsdaout.mh: New file.
5714         * config/m68k/nbsdaout.mt: New file. 
5715         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5716         * config/m68k/nm-nbsdaout.h: New file.
5717         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5718         (IN_SOLIB_CALL_TRAMPOLINE): Define.
5719         * config/ns32k/nbsd.mh: Remove.
5720         * config/ns32k/nbsd.mt: Remove. 
5721         * config/ns32k/nbsdaout.mh: New file.
5722         * config/ns32k/nbsdaout.mt: New file.
5723         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
5724         * config/ns32k/nm-nbsdaout.h: New file.
5725         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
5726         (IN_SOLIB_CALL_TRAMPOLINE): Define.
5727         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5728         (SVR4_SHARED_LIBS): Remove.
5729         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5730         * config/sparc/nbsd.mh: Remove.
5731         * config/sparc/nbsd.mt: Remove.
5732         * config/sparc/nbsdaout.mh: New file.
5733         * config/sparc/nbsdaout.mt: New file.
5734         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5735         * config/sparc/nbsdelf.mt: New file.
5736         * config/sparc/nm-nbsdaout.h: New file.   
5737         * config/sparc/nm-nbsdelf.h: Remove.
5738         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5739         * config/sparc/tm-nbsdaout.h: New file.
5740
5741 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
5742
5743         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5744         mipsnbsd-tdep.c
5745         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5746
5747 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
5748
5749         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5750         shnbsd-nat.c.
5751         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5752
5753 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
5754
5755         * NEWS: Note new MIPS NetBSD native configuration. 
5756         * configure.host (mips*-*-netbsd*): New host. 
5757         * configure.tgt (mips*-*-netbsd*): New target. 
5758         * mipsnbsd-nat.c: New file.
5759         * mipsnbsd-tdep.c: New file.
5760         * mipsnbsd-tdep.h: New file.
5761         * config/mips/nbsd.mh: New file.
5762         * config/mips/nbsd.mt: New file.
5763         * config/mips/nm-nbsd.h: New file.
5764         * config/mips/tm-nbsd.h: New file.
5765
5766 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
5767
5768         * Makefile.in (SFILES): Add osabi.c.
5769         (COMMON_OBS): Add osabi.o.
5770         (osabi.o): New dependency list.
5771         * osabi.c: New file.
5772         * osabi.h: New file.
5773         * doc/gdbint.texinfo: Document new generic OS ABI framework.
5774
5775         * Makefile.in (alpha_tdep_h): Define and use instead of
5776         alpha-tdep.h.
5777         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5778         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5779         Remove.
5780         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5781         * alpha-tdep.h: Include osabi.h.
5782         (alpha_abi): Remove.
5783         (gdbarch_tdep): Use generic OS ABI framework.
5784         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5785         gdbarch_register_osabi.
5786         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5787         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5788         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5789
5790         * Makefile.in (sh_tdep_h): Add osabi.h.
5791         * sh-tdep.h (sh_osabi): Remove.
5792         (gdbarch_tdep): Use generic OS ABI framework.
5793         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5794         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5795         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5796         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5797
5798         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5799         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5800         gdbarch_register_osabi.
5801         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5802         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5803         (get_elfosabi): Rename to...
5804         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
5805         ABI framework support routines.
5806         (arm_gdbarch_init): Use generic OS ABI framework.
5807         (arm_dump_tdep): Likewise.
5808         (_initialize_arm_tdep): Likewise.
5809         * arm-tdep.h: Include osabi.h.
5810         (arm_abi): Remove.
5811         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
5812         osabi member.
5813         (arm_gdbarch_register_os_abi): Remove prototype.
5814         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5815         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5816
5817         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5818         * mips-tdep.c: Include osabi.h.
5819         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5820         OS ABI framework.
5821
5822 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
5823
5824         * h8300-tdep.c: Fix formatting.
5825
5826 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
5827
5828         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5829         printing vector registers.
5830
5831 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
5832
5833         From Fernando Nasser:
5834         * remote.c (remote_async_open_1): Re-throw the exception when the
5835         connection fails.
5836         (remote_cisco_open): Ditto.
5837         (remote_open_1): Ditto.
5838
5839 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
5840
5841         * remote.c (remote_start_remote_dummy): Add uiout parameter.
5842         (remote_start_remote): Add uiout parameter.  Pass through to
5843         remote_start_remote_dummy.
5844         (remote_open_1): Use catch_exception instead of catch_errors.
5845         (remote_async_open_1): Ditto.
5846         (remote_cisco_open): Ditto.
5847
5848 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
5849
5850         * remote.c (remote_start_remote): Replace PTR with void pointer.
5851         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
5852         static.
5853
5854 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
5855
5856         * gdb_indent.sh: Allow the script to be run in the sim directory.
5857
5858 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
5859
5860         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5861         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5862
5863         * corelow.c (core_open): Only call set_gdbarch_from_file if
5864         exec_bfd is NULL.
5865
5866 2002-05-17  Andrey Volkov <avolkov@transas.com>
5867
5868         * h8300-tdep.c: Add support of EXR register
5869         * config/h8300/tm-h8300.h: Ditto. 
5870         
5871 2002-05-17  Andrey Volkov <avolkov@transas.com>
5872
5873         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
5874         
5875 2002-05-17  Andrey Volkov <avolkov@transas.com>
5876
5877         * h8300-tdep.c: Change literal regnums to REGNO.
5878         
5879 2002-05-17  Jim Blandy  <jimb@redhat.com>
5880
5881         * NEWS: Note addition of macro support.
5882
5883         Expand preprocessor macros in C expressions.
5884         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5885         (scan_macro_expansion, scanning_macro_expansion,
5886         finished_macro_expansion): New function declarations.
5887         (expression_macro_lookup_func, expression_macro_lookup_baton): New
5888         variable declarations.
5889         * parser-defs.h (expression_context_pc): New declaration.
5890         * parse.c (expression_context_pc): New variable.
5891         (parse_exp_1): Set expression_context_pc, as well as
5892         expression_context_block.
5893         * c-exp.y (yylex): If we're not already reading the result of a
5894         macro expansion, try to macro-expand the next token.  When we're
5895         done scanning a macro expansion, switch back to the mainline text.
5896         Commas and `if's in a macro's expansion don't terminate the input.
5897         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5898         (macro_original_text, macro_expanded_text,
5899         expression_macro_lookup_func, expression_macro_lookup_baton): New
5900         variables.
5901         (scan_macro_expansion, scanning_macro_expansion,
5902         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5903         c_preprocess_and_parse): New functions.
5904         (c_language_defn, cplus_language_defn, asm_language_defn): Call
5905         c_preprocess_and_parse, instead of c_parse.
5906         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5907         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5908
5909 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
5910
5911         * sh-tdep.c (gdb_print_insn_sh64): Delete.
5912         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5913         (sh_gdbarch_init): Always use gdb_print_insn_sh.
5914
5915 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
5916
5917         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
5918
5919 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
5920
5921         * Makefile.in (sh_tdep_h): Define and use.
5922         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5923         register enum): Move to...
5924         * * sh-tdep.h: ...here.
5925         * sh-tdep.c: Include sh-tdep.h.
5926         * sh3-rom.c: Likewise.
5927         * shnbsd-tdep.c: Likewise.
5928
5929 2002-05-16  Michael Snyder  <msnyder@redhat.com>
5930
5931         * arm-tdep.c: Spelling fix in comment.
5932
5933 2002-05-16  Jim Blandy  <jimb@redhat.com>
5934
5935         Add commands for manually expanding macros and showing their
5936         definitions.
5937         * macrocmd.c, macroscope.c, macroscope.h: New files.
5938         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5939         (macroscope_h): New variable.
5940         (HFILES_NO_SRCDIR): Add macroscope.h.
5941         (COMMON_OBS): Add macrocmd.o, macroscope.o.
5942         (macroscope.o, macrocmd.o): New rules.
5943
5944         Teach the Dwarf 2 reader to read macro information.
5945         * dwarf2read.c: #include "macrotab.h".
5946         (dwarf_macinfo_buffer): New variable.
5947         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5948         dwarf_macinfo_size.
5949         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5950         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5951         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5952         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5953         dwarf2_macro_spaces_in_definition): New complaints.
5954         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5955         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5956         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5957         the partial symbol table.
5958         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5959         from what's recorded in the partial symbol table.
5960         (read_file_scope): If the compilation unit has a
5961         `DW_AT_macro_info' attribute, read its macro information.
5962         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5963
5964 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
5965
5966         Fix PR gdb/546
5967         * ser-tcp.c: Don't include <netinet/udp.h>.
5968
5969 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
5970
5971         * MAINTAINERS: Update my email address.
5972
5973 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
5974
5975         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5976         include file of the same name.
5977
5978 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5979
5980         * configure.tgt: Mark v850 as multi-arched.
5981         * config/v850/tm-v850.h: Remove file.
5982         * config/v850/v850.mt: Eliminate TM_FILE.
5983
5984 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5985
5986         * v850-tdep.c: Full multi-arch.
5987         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5988         Define GDB_MULTI_ARCH to 2.
5989
5990 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
5991
5992         * p-exp.y (current_type): New static variable.
5993         Carries the type of the expression at the position that is parsed.
5994         (push_current_type, pop_current_type): Two new functions. Used
5995         to store/restore current_type in expression on specific tokens.
5996         (search_field): New static variable. Set to one after parsing a point
5997         as at that point only a FIELDNAME token should be searched.
5998         (FIELDNAME): New token. After a point only a token belonging to 
5999         current_type type definition is allowed.
6000         (all over token rules): reset and change current_type according
6001         to rules.
6002         (exp '[' rule): insert implicit array index field if
6003         exp is a pascal string type.
6004
6005 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6006
6007         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
6008         frame info.  Use frame_info's saved_regs instead of matching member
6009         in extra_frame_info throughout.
6010         (v850_frame_init_saved_regs): New function.
6011         (v850_init_extra_frame_info): Move most functionality into
6012         v850_frame_init_saved_regs().
6013         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6014         (v850_frame_find_saved_regs): Remove declaration.
6015         (FRAME_FIND_SAVED_REGS): Remove definition.
6016         (v850_frame_init_saved_regs): Add declaration.
6017         (FRAME_INIT_SAVED_REGS): Add definition.
6018
6019 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6020
6021         * v850-tdep.c: Begin multi-arch'ing v850.
6022         (v850_target_architecture_hook): Remove function.
6023         (v850_gdbarch_init): New function.  Add code previously in
6024         v850_target_architecture_hook().
6025         (_initialize_v850_tdep): Don't  set target_architecture_hook.
6026         Call register_gdbarch_init() instead.
6027
6028 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
6029
6030         * gdbtypes.h (struct cplus_struct_type): Remove args field.
6031         * hpread.c (hpread_read_struct_type): Remove assignments to args.
6032         (fixup_class_method_type): Likewise.
6033
6034 2002-05-15  Jim Blandy  <jimb@redhat.com>
6035
6036         Add macro structures to GDB's symbol tables.  Nobody puts anything
6037         in them yet.
6038         * symtab.h (struct symtab): New member: `macro_table'.
6039         * buildsym.h (pending_macros): New global variable.
6040         * buildsym.c: #include "macrotab.h".
6041         (buildsym_init): Initialize `pending_macros'.
6042         (end_symtab): If we found macro information while reading a CU's
6043         debugging info, do build a symtab structure for it.  Make the
6044         symtab point to the macro information, and clear the
6045         `pending_macros' pointer which held it while we were reading the
6046         debug info.
6047         (really_free_pendings): Free any pending macro table.
6048         * objfiles.h (struct objfile): New member: `macro_cache'.
6049         * objfiles.c (allocate_objfile): Set allocate and free functions
6050         for the macro cache's objstack.
6051         (free_objfile): Empty the macro cache's obstack.
6052         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6053         set new allocate and free functions for it.
6054         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6055         free functions for the macro cache's objstack.  (Why is this
6056         function building its own objfile?)
6057         * symmisc.c (print_objfile_statistics): Print statistics on the
6058         macro bcache.
6059         * Makefile.in: Note that buildsym.o depends on macrotab.h.
6060
6061 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
6062
6063         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6064         (REGISTER_U_ADDR): Delete definition.
6065         (arm_register_u_addr): Delete declaration.
6066
6067 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
6068
6069         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6070         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6071
6072 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
6073
6074         * regcache.c (register_valid): Revise comments refering to "Not
6075         available" and "unavailable".
6076         * frame.c (frame_register_read): Ditto.
6077         * findvar.c (value_of_register): Ditto.
6078
6079 2002-05-15  Andrew Cagney  <cagney@redhat.com>
6080
6081         * Makefile.in (remote_sim_h): Replace remote-sim_h.
6082         (remote-sim.o): Update dependencies.
6083         (d10v-tdep.o): Specify dependencies.
6084         (sim_d10v_h): Define.
6085
6086 2002-05-14  Jim Blandy  <jimb@redhat.com>
6087
6088         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6089         * macrotab.c (macro_lookup_inclusion, find_definition,
6090         new_macro_table): Same.
6091         
6092         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6093         not `! strcmp ()'.  This is a dubious improvement.
6094         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6095
6096         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6097         although it's not necessary, to avoid a warning.
6098
6099 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
6100
6101         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6102         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6103         TYPE_INSTANCE_FLAGS.
6104         (struct main_type): New.
6105         (struct type): Move most members to struct main_type.  Change
6106         cv_type and as_type to new type_chain member.  Add instance_flags.
6107         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6108         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6109         (finish_cv_type): Remove prototype.
6110         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
6111         Set TYPE_CHAIN.
6112         (alloc_type_instance): New function.
6113         (smash_type): New function.
6114         (make_pointer_type, make_reference_type, make_function_type)
6115         (smash_to_member_type, smash_to_method_type): Call smash_type.
6116         (make_qualified_type): New function.
6117         (make_type_with_address_space): Call make_qualified_type.
6118         (make_cv_type): Likewise.
6119         (finish_cv_type): Remove unnecessary function.
6120         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
6121         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6122         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6123         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6124         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6125         * hpread.c (hpread_read_struct_type): Likewise.
6126         * stabsread.c (read_struct_type): Likewise.
6127
6128 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
6129
6130         * configure.tgt: Add a catch all sh* target, for cases like
6131         sh[2,3,4]-elf and sh-hms.
6132
6133 2002-05-14  Keith Seitz  <keiths@redhat.com>
6134
6135         * event-loop.c (create_file_handler): Don't do anything but
6136         update data when we are given a fd which we are already
6137         monitoring.
6138
6139 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
6140
6141         * dwarf2cfi.c (context_cpy): Copy registers correctly.
6142         (update_context): Use __func__ in warnings.
6143         
6144 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
6145
6146         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
6147         and tcp_close to net_open and net_close.
6148         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
6149         using UDP if requested.  Don't try to disable Nagle on UDP
6150         sockets.
6151         * remote.c (remote_serial_open): New function.  Warn about UDP.
6152         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6153
6154 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
6155
6156         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6157
6158 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
6159
6160         * configure.tgt: Remove sh-hms target.
6161         * MAINTAINERS: Don't list sh-hms as a separate target.
6162
6163 2002-05-13  Jim Blandy  <jimb@redhat.com>
6164
6165         Add first preprocessor macro-expansion files.
6166         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6167         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6168         (splay_tree_h, macroexp_h, macrotab_h): New variable.
6169         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6170         (COMMON_OBS): Add macrotab.o, macroexp.o.
6171         (macroexp.o, macrotab.o): New rules.
6172
6173 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
6174
6175         * config/m88k/tm-m88k.h: Update copyright.
6176         (m88k_target_write_pc): Declare
6177         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6178         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6179         (SHIFT_INST_REGS): Update definition.
6180         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
6181         using old definition of TARGET_WRITE_PC.
6182         * regcache.c (generic_target_write_pc): Delete code handling
6183         NNPC_REGNUM.
6184         * gdbarch.sh (NNPC_REGNUM): Delete.
6185         * gdbarch.h, gdbarch.c: Regenerate.
6186
6187 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
6188
6189         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6190         builtin reg number.
6191
6192 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
6193
6194         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6195         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6196         (gen_address_of, gen_struct_ref, gen_repeat): Use type
6197         access macros.
6198         * c-typeprint.c (cp_type_print_method_args): Likewise.
6199         (c_type_print_args): Likewise.
6200         * d10v-tdep.c (d10v_push_arguments): Likewise.
6201         (d10v_extract_return_value): Likewise.
6202         * expprint.c (print_subexp): Likewise.
6203         * gdbtypes.c (lookup_primitive_typename): Likewise.
6204         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6205         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6206         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6207         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6208         (TYPE_VECTOR): Likewise.
6209         * hpread.c (hpread_read_struct_type)
6210         (fix_static_member_physnames, fixup_class_method_type)
6211         (hpread_type_lookup): Likewise.
6212         * mdebugread.c (parse_symbol, parse_type): Likewise.
6213         * p-lang.c (is_pascal_string_type): Likewise.
6214         * valops.c (hand_function_call): Likewise.
6215         * x86-64-tdep.c (classify_argument): Likewise.
6216
6217         * hpread.c (hpread_read_function_type)
6218         (hpread_read_doc_function_type): Call replace_type.
6219         * dstread.c (create_new_type): Delete.
6220         (decode_dst_structure, process_dst_function): Call alloc_type.
6221         Use type access macros.
6222
6223 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
6224
6225         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6226         the're not supported by the current architecture.
6227         (i387_fill_fxsave): Likewise.
6228
6229 2002-05-12  Fred Fish  <fnf@redhat.com>
6230
6231         * symfile.c (default_symfile_offsets): Arrange for uninitialized
6232         sect_index_xxx members to index the first slot in section_offsets
6233         if all of the section_offsets are zero.
6234
6235 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
6236
6237         * configure.tgt (sparc-*openbsd): Remove entry accidentially
6238         checked in with last change.
6239
6240 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
6241
6242         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6243         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
6244         config.sub.
6245
6246 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
6247
6248         * Makefile.in: Update dependencies.
6249
6250 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
6251
6252         * language.c (local_hex_string_custom): Simplify.  Do not depend
6253         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6254
6255         * memattr.c (mem_info_command): Replace calls to
6256         longest_local_hex_string and longest_local_hex_string_custom.
6257         * buildsym.c (make_blockvector): Ditto.
6258         * solib.c (info_sharedlibrary_command): Ditto.
6259         * tracepoint.c (tracepoints_info): Ditto.
6260         * symtab.c (print_msymbol_info): Ditto.
6261
6262         * language.c (local_hex_string): Delete.
6263         (local_hex_string_custom): Delete.
6264         (longest_local_hex_string): Rename to local_hex_string.
6265         (longest_local_hex_string_custom): Rename to
6266         local_hex_string_custom.
6267         * language.h (local_hex_string): Change parameter type to LONGEST.
6268         (local_hex_string_custom): Ditto.
6269         (longest_local_hex_string): Delete declaration.
6270         (longest_local_hex_string_custom): Ditto.
6271
6272         * solib.c: Update copyright.
6273         * memattr.c: Update copyright.
6274         
6275 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
6276
6277         * arch-utils.h (legacy_register_to_value): Declare.
6278         (legacy_value_to_register): Declare.
6279         (legacy_convert_register_p): Declare.
6280         * arch-utils.c (legacy_register_to_value): New function.
6281         (legacy_value_to_register): New function.
6282         (legacy_convert_register_p): New function.
6283
6284         * gdbarch.sh (REGISTER_TO_VALUE): Define.
6285         (VALUE_TO_REGISTER): Define.
6286         (CONVERT_REGISTER_P): Define.
6287         * gdbarch.h, gdbarch.c: Regenerate.
6288
6289         * valops.c (value_assign): Use CONVERT_REGISTER_P and
6290         VALUE_TO_REGISTER.
6291         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6292         CONVERT_REGISTER_P.
6293
6294 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
6295             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
6296
6297         * Makefile.in: Update dependencies for valops.c.
6298         * valops.c: Include "gdb_assert.h".
6299         (typecmp): Skip THIS parameter to methods.
6300         (find_method_list): Remove static_memfuncp argument,
6301         update callers.  Check for stub methods.
6302         (find_value_oload_method_list): Don't set *static_memfuncp.
6303         (find_overload_match): Don't check for stub methods.  Assert
6304         that methods are not stubbed.  Handle static methods.
6305         (value_find_oload_method_list): Remove static_memfuncp argument.
6306         * gdbtypes.c (check_stub_method): Do not add THIS pointer
6307         to the argument list for static stub methods.
6308         * value.h (value_find_oload_method_list): Update prototype.
6309
6310 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
6311
6312         * arch-utils.h (generic_register_size): Declare.
6313         (generic_register_raw_size, generic_register_virtual_size): Delete
6314         declarations.
6315         * arch-utils.c (generic_register_raw_size): Delete.
6316         (generic_register_size): New function.
6317         (generic_register_virtual_size): Delete.
6318
6319         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6320         default generic_register_size.
6321         * gdbarch.h, gdbarch.c: Re-generate.
6322         
6323         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6324         register_virtual_size.
6325         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6326         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6327
6328 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
6329
6330         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6331         * gdbarch.h, gdbarch.c: Regenerate.
6332         * gnu-v3-abi.c: Update copyright.
6333         (vtable_address_point_offset): Update.
6334         (gnuv3_rtti_type): Update.
6335         (gnuv3_baseclass_offset): Update.
6336         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6337         (init_fetch_link_map_offsets): Update.
6338         * remote.c (get_remote_state): Update.
6339         
6340 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
6341
6342         * TODO: Remove value_headof/value_from_vtable_info comment.
6343         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6344         * values.c (value_headof, value_from_vtable_info): Delete.
6345         * value.h (value_from_vtable_info): Delete prototype.
6346
6347 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
6348
6349         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6350         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6351         $(gdb_regex_h).
6352         (gdb_assert_h): Define.
6353         (gdb_wait_h): Define.
6354         (gdb_regex_h): Define.
6355
6356 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
6357
6358         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6359         * linespec.c (find_methods): Handle GCC 3.x template constructors.
6360
6361 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6362
6363         * nbsd-tdep.c: Fix comment.
6364
6365 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6366
6367         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6368         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6369         (nbsd-tdep.o): New dependency list.
6370         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
6371         nbsd-tdep.h.
6372         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6373         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6374         * nbsd-tdep.c: New file.
6375         * nbsd-tdep.h: New file.
6376         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
6377         nbsd-tdep.h.
6378         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6379         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6380         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6381         * config/sh/nbsd.mt (TDEPFILES): Ditto.
6382
6383 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6384
6385         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6386         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6387         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6388         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6389         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6390         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6391
6392 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6393
6394         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6395         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6396         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6397         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6398         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6399         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6400         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6401
6402 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6403
6404         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
6405         fetch_elfcore_registers to...
6406         * i386nbsd-tdep.c: ...here.
6407         (i386nbsd_use_struct_convention): Rename to...
6408         (i386nbsd_aout_use_struct_convention): ...this.
6409         (i386nbsd_supply_reg): New function.
6410         (i386nbsd_fill_reg): New function.
6411         (fetch_core_registers): Use i386nbsd_supply_reg.
6412         (fetch_elfcore_registers): Likewise.
6413         (_initialize_i386nbsd_tdep): New function.
6414         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6415         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6416         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6417         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6418         (i386nbsd_aout_use_struct_convention): ...this.
6419
6420 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6421
6422         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6423         (store_inferior_registers): Use shnbsd_fill_reg.
6424         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
6425         sh_nbsd_supply_register): Collapse into...
6426         (shnbsd_supply_reg): ...this.
6427         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6428         (shnbsd_fill_reg): ...this.
6429         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6430         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6431         (fetch_core_registers): Use shnbsd_supply_reg.
6432         (fetch_elfcore_registers): Use shnbsd_supply_reg.
6433         (sh_nbsd_core_fns): Rename to...
6434         (shnbsd_core_fns): ...this.
6435         (sh_nbsd_elfcore_fns): Rename to...
6436         (shnbsd_elfcore_fns): ...this.
6437         (sh_nbsd_init_abi): Rename to...
6438         (shnbsd_init_abi): ...this.
6439         (_initialize_sh_nbsd_tdep): Rename to...
6440         (_initialize_shnbsd_tdep): ...this.
6441         * shnbsd-tdep.h (sh_nbsd_supply_registers,
6442         sh_nbsd_supply_register, sh_nbsd_fill_registers,
6443         sh_nbsd_fill_register): Remove prototypes.
6444         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6445
6446 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6447
6448         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6449         (i387-nat.o): Delete dependency list.
6450         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6451         (x86-64-linux-nat.o): Likewise.
6452         * i387-nat.c: Delete file, moving contents to...
6453         * i387-tdep.c: ...here.
6454         * i387-nat.h: Rename...
6455         * i387-tdep.h: ...to this.
6456         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6457         * i386-linux-nat.c: Likewise.
6458         * i386bsd-nat.c: Likewise.
6459         * i386gnu-nat.c: Likewise.
6460         * i386nbsd-nat.c: Likewise.
6461         * i386v4-nat.c: Likewise.
6462         * x86-64-linux-nat.c: Likewise.
6463         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6464         * config/i386/go32.mh (NATDEPFILES): Likewise.
6465         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6466         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6467         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6468         * config/i386/linux.mh (NATDEPFILES): Likewise.
6469         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6470         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6471         * config/i386/obsd.mh (NATDEPFILES): Likewise.
6472         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6473
6474 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6475
6476         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6477         (alphanbsd-nat.o): Remove dependency list.
6478         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6479         * alphanbsd-nat.c: Delete.  Contents moved to...
6480         * alphanbsd-tdep.c: ...here.
6481         (_initialize_alphanbsd_tdep): Register core functions.
6482         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6483
6484 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6485
6486         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6487         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6488         (alphanbsd-nat.o): Likewise.
6489         (alphabsd-tdep.o): New dependency list.
6490         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6491         (fill_gregset): Use alphabsd_fill_reg.
6492         (supply_fpregset): Use alphabsd_supply_fpreg.
6493         (fill_fpregset): Use alphabsd_fill_fpreg.
6494         (fetch_inferior_registers): Use struct reg and struct fpreg
6495         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
6496         and alphabsd_supply_fpreg.
6497         (store_inferior_registers): Use struct reg and struct fpreg
6498         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
6499         and alphabsd_fill_fpreg.
6500         * alphabsd-tdep.c: New file.
6501         * alphabsd-tdep.h: New file.
6502         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6503         (fetch_elfcore_registers): Use alphabsd_supply_reg and
6504         alphabsd_supply_fpreg.
6505         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6506         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6507
6508 2002-05-11  Eric Christopher  <echristo@redhat.com>
6509
6510         * mips-tdep.c (mips_double_register_type): Fix thinko.
6511         (mips_single_register_type): Ditto.
6512         * MAINTAINERS: Add self.
6513
6514 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
6515
6516         * i387-nat.c (i387_supply_register, i387_fill_fsave,
6517         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6518         right thing on architectures with different endianness and/or
6519         integer sizes.
6520
6521 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
6522
6523         From Christian Limpach <chris@Pin.LU>
6524         * configure.in: Change sed expression which comments out
6525         NATDEPFILES to also comment out continuation lines.
6526         * configure: Regenerate.
6527
6528 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
6529
6530         * sh-tdep.c: Clean up code erroneously reintroduced by previous
6531         big patch.
6532
6533 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
6534
6535         * sh-tdep.c: Include correct file.
6536
6537 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
6538
6539         New support for sh64-elf (sh5) target.
6540
6541         * configure.tgt: For sh64-elf target, default to sh-elf.
6542
6543         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6544         (struct gdbarch_tdep): Add new fields for new registers and ABI
6545         info.
6546
6547         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6548         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6549         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6550         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6551         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6552         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6553         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6554         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6555         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6556         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6557         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6558         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6559         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6560         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6561         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6562         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6563         sh64_get_gdb_regnum, sh64_media_reg_base_num,
6564         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6565         sign_extend, sh64_nofp_frame_init_saved_regs,
6566         sh64_init_extra_frame_info, sh64_get_saved_register,
6567         sh64_extract_struct_value_address, sh64_pop_frame,
6568         sh64_push_arguments, sh64_extract_return_value,
6569         sh64_store_return_value, sh64_show_media_regs,
6570         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6571         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6572         sh_sh64_register_virtual_type,
6573         sh_sh64_register_convert_to_virtual,
6574         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6575         sh64_register_read, sh64_pseudo_register_write,
6576         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6577         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6578         sh64_do_pseudo_register, sh_compact_do_registers_info,
6579         sh64_do_registers_info, sh_gdbarch_init): New functions.
6580
6581 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
6582
6583         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6584
6585 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
6586
6587         * linespec.c (decode_line_1): Check for a double quote after
6588         a filename correctly.
6589
6590 2002-05-10  Jim Blandy  <jimb@redhat.com>
6591
6592         Properly track the size of the current objfile's .debug_line section.
6593         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6594         (DWARF_LINE_SIZE): New macro.
6595         (dwarf2_build_psymtabs_hard): Record the line section's size in
6596         the partial symbol table.
6597         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6598         symbol table.
6599
6600 2002-05-10  Petr Sorfa  <petrs@caldera.com>
6601
6602         * ia64-tdep.c: Handle breakpoints on L instruction type
6603         in MLX instruction bundle by moving the breakpoint to
6604         the third slot (X instruction type) as L holds only data.
6605
6606 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
6607
6608         * dbxread.c (discarding_local_symbols_complaint): New complaint.
6609         (process_one_symbol): Complain about discarding local symbols
6610         due to a misplaced N_LBRAC entry.
6611
6612 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
6613
6614         From Daniel Berlin <dan@cgsoftware.com>
6615         * linespec.c (find_toplevel_char): '<' and '>' also increase and
6616         decrease the depth we are at, in the case of templates.
6617
6618 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
6619
6620         * mips-tdep.c (mips_float_register_type): New function.
6621         (mips_double_register_type): New function.
6622         (mips_print_register): Use them.
6623         (do_fp_register_row): Likewise.
6624
6625 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
6626
6627         * signals/signals.c (signals): Remove conditional compilation around
6628         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
6629         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6630
6631 2002-05-09  Michael Snyder  <msnyder@redhat.com>
6632
6633         * remote-rdp.c (remote_rdp_can_run): Remove.
6634
6635 2002-05-09  Tom Tromey  <tromey@redhat.com>
6636
6637         * jv-valprint.c (java_val_print): Handle `char' as a special case
6638         of TYPE_CODE_INT.
6639
6640 2002-05-09  Michael Snyder  <msnyder@redhat.com>
6641
6642         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6643         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6644         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6645         str r(0123),[sp,#nn].
6646         (arm_skip_prologue): Ditto.  Also make disassembly
6647         order-independent by placing it in a loop.
6648
6649 2002-05-06  Michael Snyder  <msnyder@redhat.com>
6650
6651         * stabsread.c (read_type): Add recognition for new attribute:
6652         "@V;" means that an array type is actually a vector.
6653         This is analogous to the vector flag that's been added to dwarf2.
6654
6655 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
6656
6657         * i386-tdep.h (i386_abi): New enum.
6658         (struct gdbarch_tdep): Replace os_ident member with abi.
6659         (i386_gdbarch_register_os_abi): New prototype.
6660         * i386-tdep.c (i386_abi_names): New array.
6661         (process_note_abi_tag_sections): Removed.
6662         (process_note_sections): New function.
6663         (i386_elf_abi_from_note, i386_elf_abi): New functions.
6664         (struct i386_abi_handler): New struct.
6665         (i386_abi_handler_list): New variable.
6666         (i386_gdbarch_register_os_abi): New function.
6667         (i386_gdbarch_init): Adapt for the changes given above.
6668
6669 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
6670
6671         * gregset.h: Say "GNU/Linux".
6672
6673 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
6674
6675         * gdbtypes.c : Add new builtin type for 64 bit vectors.
6676         (build_gdbtypes): Build builtin_type_v2_float.
6677         (_initialize_gdbtypes): Register new builtin type.
6678
6679 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
6680
6681         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6682         (clear_gdbarch_swap): New function.
6683         (initialize_non_multiarch): Call.
6684         (gdbarch_update_p): Before calling init(), swap out and clear the
6685         existing architecture.
6686         * gdbarch.c: Regenerate.
6687
6688 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
6689
6690         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6691         alphanbsd-tdep.c.
6692
6693 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
6694
6695         * sh-nbsd-nat.c: Rename to...
6696         * shnbsd-nat.c: ...this.
6697         * sh-nbsd-tdep.c: Rename to...
6698         * shnbsd-tdep.c: ...this.
6699         * sh-nbsd-tdep.h: Rename to...
6700         * shnbsd-tdep.h: ...this.
6701         * config/sh/nbsd.mh: Use shnbsd-nat.o.
6702         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6703
6704 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
6705
6706         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6707         concatenation for command help messages.
6708
6709 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
6710
6711         * NEWS: Note new sh*-*-netbsdelf* configuration.
6712         * configure.host: Set gdb_host_cpu to sh for all sh*.
6713         (sh*-*-netbsdelf*): New host.
6714         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6715         (sh*-*-netbsdelf*): New target.
6716         * sh-nbsd-nat.c: New file.
6717         * sh-nbsd-tdep.c: New file.
6718         * sh-nbsd-tdep.h: New file.
6719         * config/sh/nbsd.mh: New file.
6720         * config/sh/nbsd.mt: New file.
6721         * config/sh/nm-nbsd.h: New file.
6722         * config/sh/tm-nbsd.h: New file.
6723
6724 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
6725
6726         * sh-tdep.c (sh_osabi_names): Declare.
6727         (process_note_abi_tag_sections): New function.
6728         (get_elfosabi): Ditto.
6729         (sh_gdbarch_register_os_abi): Ditto.
6730         (sh_dump_tdep): Ditto.
6731         _initialize_sh_tdep): Use gdbarch_register to register
6732         sh_gdbarch_init and sh_dump_tdep.
6733         * config/sh/tm-sh.h (sh_osabi): Declare.
6734         (gdbarch_tdep): Add sh_osabi and osabi_name members.
6735
6736 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
6737
6738         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6739         (thumb_scan_prologue): Ditto.
6740         (arm_find_callers_reg): Ditto.
6741         (arm_frame_chain): Ditto.
6742         (arm_init_extra_frame_info): Ditto.
6743         (arm_frame_saved_pc): Ditto.
6744         (arm_pop_frame): Ditto.
6745         (arm_push_return_address): New function.
6746         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6747         call_dummy_location, call_dummy_breakpoint_offset_p,
6748         call_dummy_breakpoint_offset, call_dummy_p,
6749         call_dummy_stack_adjust_p, call_dummy_words,
6750         sizeof_call_dummy_words, call_dummy_start_offset,
6751         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6752         call_dummy_address, push_return_address and push_dummy_frame for
6753         generic dummy frames.
6754
6755 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
6756
6757         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6758         size computation for alloca.
6759         (sh_fp_frame_init_saved_regs): Likewise.
6760
6761 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
6762
6763         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6764         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6765         * arm-tdep.c (arm_store_return_value): Use them.
6766         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6767         * remote-rdp.c (remote_rdp_fetch_register): Use
6768         ARM_MAX_REGISTER_RAW_SIZE.
6769         (remote_rdp_store_register): Likewise.
6770
6771 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
6772
6773         * dwarf2cfi.c: Code cleanup, removed unused variables,
6774         added default labels to switch {} statements.
6775         * x86-64-tdep.c: Ditto.
6776         * x86-64-linux-nat.c: Ditto.
6777
6778 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
6779
6780         * solib.h: Protect against multiple inclusion.
6781
6782 2002-05-06  Jim Blandy  <jimb@redhat.com>
6783
6784         Add first preprocessor macro-expansion files.
6785         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6786         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6787         (splay_tree_h, macroexp_h, macrotab_h): New variable.
6788         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6789         (COMMON_OBS): Add macrotab.o, macroexp.o.
6790         (macroexp.o, macrotab.o): New rules.
6791
6792         Separate the job of reading the line number info statement program
6793         header (...expialidocious) out into its own function.
6794         * dwarf2read.c (struct line_head, struct filenames, struct
6795         directories): Replace with...
6796         (struct line_header): New structure, containing the full
6797         contents of the statement program header, including the
6798         include directory and file name tables.
6799         (read_file_scope): If we have line number info, instead of just
6800         calling dwarf_decode_lines to do all the work, call
6801         dwarf_decode_line_header first to get a `struct line_header'
6802         containing the data in the statement program header, and then
6803         pass that to dwarf_decode_lines, which will pick up where that
6804         left off.  Be sure to clean up the `struct line_header' object.
6805         (dwarf_decode_line_header, free_line_header, add_include_dir,
6806         add_file_name): New functions.
6807         (dwarf_decode_lines): Move all the code to read the statement
6808         program header into dwarf_decode_line_header.  Take the line
6809         header it built as the first argument, instead of the offset to
6810         the compilation unit's line number info.  Use the new `struct
6811         line_header' type instead of the old structures.  No need to do
6812         cleanups here now, since we don't allocate anything.
6813         (dwarf2_statement_list_fits_in_line_number_section,
6814         dwarf2_line_header_too_long): New complaints.
6815
6816 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
6817
6818         * gdbtypes.c (init_vector_type): New function.
6819         (build_builtin_type_vec128): Simplify the representation of SIMD
6820         registers.
6821         (build_gdbtypes): Initialize new builtin vector types.
6822         (_initialize_gdbtypes): Register new vector types with gdbarch.
6823         (builtin_type_v4_float, builtin_type_v4_int32,
6824         builtin_type_v8_int16, builtin_type_v16_int8,
6825         builtin_type_v2_int32, builtin_type_v4_int16,
6826         builtin_type_v8_int8): New (renamed) SIMD types.
6827
6828 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
6829
6830         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6831         (i387_fill_fxsave): Likewise.
6832
6833 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
6834
6835         * alpha-tdep.c (alpha_extract_return_value): Don't use
6836         non-constant array size in prototype.
6837
6838 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6839
6840         From Brian Taylor <briant at model dot com>:
6841         * ui-out.c (ui_out_field_core_addr): Use the function
6842         longest_local_hex_string_custom'to format addresses > 32 bits
6843         wide.
6844
6845         * ui-out.c (ui_out_field_core_addr): Update comment.
6846
6847 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6848
6849         * stack.c (select_and_print_frame): Make static.  Delete the
6850         parameter `level'.
6851         (func_command): Update call.
6852         (select_frame_command): Delete code computing the frame level.
6853         * frame.h (select_and_print_frame): Delete declaration.
6854
6855 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6856
6857         * sparc-tdep.c (sparc_get_saved_register): Comment why
6858         get_prev_frame call is safe.
6859
6860 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6861
6862         * frame.h (select_frame): Delete level parameter.
6863         * stack.c (select_frame): Update.  Use frame_relative_level to
6864         obtain the frame's level.
6865         (select_and_print_frame): Update call.
6866         (select_frame_command): Ditto.
6867         (up_silently_base): Ditto.
6868         (down_silently_base): Ditto.
6869         * ocd.c (ocd_start_remote): Ditto.
6870         * remote-rdp.c (remote_rdp_open): Ditto.
6871         * remote-mips.c (mips_initialize): Ditto.
6872         (common_open): Ditto.
6873         * remote-e7000.c (e7000_start_remote): Ditto.
6874         * m3-nat.c (select_thread): Ditto.
6875         * hppa-tdep.c (child_get_current_exception_event): Ditto.
6876         (child_get_current_exception_event): Ditto.
6877         * varobj.c (varobj_create): Ditto.
6878         (varobj_update): Ditto.
6879         (c_value_of_root): Ditto.
6880         * tracepoint.c (finish_tfind_command): Ditto.
6881         * corelow.c (core_open): Ditto.
6882         * arch-utils.c (generic_prepare_to_proceed): Ditto.
6883         * thread.c (info_threads_command): Ditto.
6884         (switch_to_thread): Ditto.
6885         * infrun.c (normal_stop): Ditto.
6886         (restore_selected_frame): Ditto.
6887         (restore_inferior_status): Ditto.
6888         * breakpoint.c (insert_breakpoints): Ditto.
6889         (watchpoint_check): Ditto.
6890         (bpstat_stop_status): Ditto.
6891         (do_enable_breakpoint): Ditto.
6892         * blockframe.c (flush_cached_frames): Ditto.
6893         (reinit_frame_cache): Ditto.
6894
6895 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6896
6897         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6898         maintainer.
6899
6900 2002-05-04  Jim Blandy  <jimb@redhat.com>
6901
6902         * gdbtypes.c (replace_type): Doc fix.
6903
6904 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6905
6906         * valprint.c (strcat_longest): Delete commented out function.
6907         Update copyright.
6908
6909 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6910
6911         * MAINTAINERS: Mark a29k as deleted.
6912         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
6913         Move new configurations to the top.
6914         * configure.tgt: Remove a29k.
6915         * config/a29k/tm-vx29k.h: Delete.
6916         * config/a29k/vx29k.mt: Delete.
6917         * config/a29k/tm-a29k.h: Delete.
6918         * config/a29k/a29k-udi.mt: Delete.
6919         * config/a29k/a29k.mt: Delete.
6920         * a29k-tdep.c: Delete.
6921         * remote-udi.c: Delete.
6922         * remote-mm.c: Delete.
6923         * remote-eb.c: Delete.
6924         * remote-adapt.c: Delete.
6925         * Makefile.in: Remove obsolete code.
6926         * config/s390/s390x.mt: Ditto.
6927         * config/s390/s390.mt: Ditto.
6928         * config/sparc/sparclynx.mh: Ditto.
6929         * config/sparc/linux.mh: Ditto.
6930         * config/pa/hppaosf.mh: Ditto.
6931         * config/pa/hppabsd.mh: Ditto.
6932         * config/ns32k/nbsd.mt: Ditto.
6933         * config/mips/vr5000.mt: Ditto.
6934         * config/m68k/sun3os4.mh: Ditto.
6935         * config/m68k/nbsd.mt: Ditto.
6936         * config/m68k/m68klynx.mh: Ditto.
6937         * config/m32r/m32r.mt: Ditto.
6938         * config/i386/x86-64linux.mt: Ditto.
6939         * config/i386/nbsdelf.mt: Ditto.
6940         * config/i386/nbsd.mt: Ditto.
6941         * config/i386/i386lynx.mh: Ditto.
6942
6943 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6944
6945         * target.c (debug_print_register): New function.  Handle oversize
6946         registers.
6947         (debug_to_fetch_registers): Call.
6948         (debug_to_store_registers): Call.
6949
6950 2002-05-03  Jim Blandy  <jimb@redhat.com>
6951
6952         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6953         (read_type): Doc fix.
6954         * gdbtypes.c (replace_type): Doc fix.
6955
6956         * stabsread.c (multiply_defined_struct): New complaint.
6957         (read_struct_type): If the type we were passed isn't empty, or
6958         incomplete, don't read the new struct type into it; complain,
6959         and return the original type unchanged.  Take a new `type_code'
6960         argument, which is the type code for the new type.
6961         (read_type): Rather than storing the type's type code here, pass
6962         it as an argument to read_struct_type, and let that take care of
6963         storing it.  That way, we don't overwrite the original type code,
6964         so read_struct_type can use it to decide whether we're overwriting
6965         something we shouldn't.
6966         (complain_about_struct_wipeout): New function.
6967
6968 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
6969
6970         * gdbarch.sh: Assert that gdbarch is non-NULL.
6971         * gdbarch.c: Regenerate.
6972
6973 2002-05-03  Jason Merrill  <jason@redhat.com>
6974
6975         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6976         and return NULL.
6977
6978 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
6979
6980         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6981         (x86_64_dwarf2gdb_regno_map_length),
6982         (x86_64_dwarf2_reg_to_regnum): Added.
6983         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6984         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6985         (_initialize_x86_64_tdep): Synced with the change above.
6986         (x86_64_skip_prologue): Reformulated message.
6987
6988 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6989
6990         * f-exp.y: Also use new prev_lexptr variable
6991         to improve error reporting. Based on Michael Snyder
6992         2002-04-24 dated patch to c-exp.y.
6993         * jv-exp.y: Likewise.
6994         * m2-exp.y: Likewise.
6995
6996 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
6997
6998         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6999         we are dealing with vectors.
7000
7001 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7002
7003         * config/m68k/tm-nbsd.h: Obvious fix,
7004         correct machine name.
7005
7006 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7007
7008         * p-typeprint.c (pascal_type_print_base): Add support
7009         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7010
7011 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7012
7013         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7014         for fondamental pascal 'char' type.
7015
7016 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7017
7018         * p-lang.h (is_pascal_string_type): Declaration changed,
7019         new sixth argument of type char ** added.
7020         * p-lang.c (is_pascal_string_type): Implementation
7021         changed. Args length_pos, length_size, string_pos, char_size
7022         can now be NULL. New argument arrayname set to the field
7023         name of the char array. Return value set to char array
7024         field index plus one.
7025         * p-valprint.c (pascal_val_print): Adapt to new declaration of
7026         is_pascal_string_type function.
7027
7028 2002-05-02  Andrew Cagney  <cagney@redhat.com>
7029
7030         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7031         <cagney@redhat.com> change.
7032         * gdbarch.c: Regenerate.
7033
7034 2002-05-02  Andrew Cagney  <cagney@redhat.com>
7035
7036         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7037         before probing for a new one.  Detect errorenous gdbarch_init
7038         functions.
7039         * gdbarch.c: Regenerate.
7040
7041 2002-05-01  Andrew Cagney  <cagney@redhat.com>
7042
7043         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7044         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
7045         * config/v850/tm-v850.h: Ditto.  Update copyright.
7046
7047 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
7048
7049         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7050         current_gdbarch.
7051
7052 2002-04-30  Michael Snyder  <msnyder@redhat.com>
7053
7054         * arm-tdep.c: Whitespace clean-ups.
7055         (arm_skip_prologue): Fix thinko; two lines
7056         should have been removed as part of 4/24 change.
7057
7058 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
7059
7060         * rs6000-tdep.c: Added comment describing how fpscr register
7061         numbers were chosen.
7062
7063 2002-04-30  Michael Snyder  <msnyder@redhat.com>
7064
7065         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7066
7067 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
7068
7069         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7070         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7071         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7072
7073 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
7074
7075         From Louis Hamilton <hamilton@redhat.com>:
7076         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7077         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7078         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7079         not bfd-private xcoff data, to determine wordsize.
7080         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7081
7082 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
7083
7084         GDB 5.2 released from 5.2 branch.
7085
7086 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
7087
7088         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7089         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7090         (x86_64_register_info_table): Added comments with register numbers.
7091
7092 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
7093
7094         * rs6000-tdep.c (rs6000_extract_return_value,
7095         rs6000_store_return_value): Handle returning vectors.
7096         (rs6000_gdbarch_init): Use
7097         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7098         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7099         New function.
7100         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7101         vectors.
7102         (ppc_sysv_abi_push_arguments): Handle vector parameters.
7103         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7104
7105 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
7106
7107         * hpread.c (hpread_psymtab_to_symtab_1,
7108         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7109         with fprintf_unfiltered (gdb_stderr,...).
7110
7111 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
7112
7113         * remote-array.c (printf_monitor, write_monitor,
7114         array_insert_breakpoint, array_remove_breakpoint ):
7115         Replace fprintf (stderr,...
7116         with fprintf_unfiltered (gdb_stderr,....
7117         * remote-es.c: Likewise.
7118         * remote-os9k.c: Likewise.
7119         * remote-st.c: Likewise.
7120
7121 2002-04-28  Andreas Schwab  <schwab@suse.de>
7122
7123         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7124         linux-proc.o and gcore.o.
7125
7126 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
7127
7128         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7129         code without frame pointers.
7130
7131 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
7132
7133         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7134         ON_STACK is needed.
7135
7136 2002-04-26  Ben Elliston  <bje@redhat.com>
7137
7138         * target.c (do_xfer_memory): Correct reference to the new option
7139         "trust-readonly-sections".
7140
7141 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
7142
7143         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7144         * gdbtypes.c (recursive_dump_type): Output the vector flag.
7145         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7146         vectors.
7147         (read_array_type): Record the fact that this array type is really a
7148         vector (i.e. are passed in by value).
7149
7150 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
7151
7152         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7153         * alpha-tdep.c (alpha_sigcontext_addr): New function.
7154         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7155         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7156         * alpha-linux-tdep.c: Include frame.h.
7157         (alpha_linux_sigcontext_addr): New function.
7158         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7159         alpha_linux_sigcontext_addr.
7160         * alpha-osf1-tdep.c: Include gdbcore.h.
7161         (alpha_osf1_sigcontext_addr): New function.
7162         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7163         alpha_osf1_sigcontext_addr.
7164         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7165         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7166
7167 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
7168
7169         * stack.c (selected_frame_level):
7170         (select_frame): Do not set selected_frame_level.
7171         * frame.h (selected_frame_level): Delete declaration.
7172
7173 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
7174
7175         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7176         convert_from_func_ptr-addr when AIX / PowerOpen.
7177
7178 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
7179
7180         * valops.c (hand_function_call): Call
7181         generic_save_call_dummy_addr.
7182         * frame.h (generic_save_call_dummy_addr): Declare.
7183         * blockframe.c (struct dummy_frame): Add fields call_lo and
7184         call_hi.
7185         (generic_find_dummy_frame): Check for PC in range call_lo to
7186         call_hi instead of entry_point_address.
7187         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7188         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
7189         (generic_save_call_dummy_addr): New function.
7190
7191 2002-04-24  David S. Miller  <davem@redhat.com>
7192
7193         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7194         sparc_skip_prologue.
7195         (sparc_skip_prologue): Kill frameless_p arg, and use line number
7196         information to find prologue when possible.
7197         (sparc_prologue_frameless_p): Call examine_prologue directly.
7198         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7199         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7200         second argument.
7201         (SKIP_PROLOGUE): Likewise.
7202
7203 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
7204
7205         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7206         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7207         indicate that the condition it was testing is always true.
7208         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7209         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7210         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7211
7212 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
7213
7214         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7215         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7216         tdep->jb_pc and tdep->jb_elt_size.
7217         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7218         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7219         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7220         * alpha-nat.c (get_longjmp_target): Remove.
7221         (JB_ELEMENT_SIZE): Ditto.
7222         (JB_PC): Ditto.
7223         * alpha-tdep.c (alpha_get_longjmp_target): New function.
7224         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
7225         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7226         to alpha_get_longjmp_target.
7227         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7228         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7229         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7230
7231 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
7232
7233         * README: Update to GDB 5.2.
7234
7235 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
7236
7237         * gdbarch.sh (LC_ALL): Set to `c'.
7238
7239 2002-04-25  Theodore A. Roth  <troth@verinet.com>
7240
7241         * avr-tdep.c: Ran through gdb_indent.sh.
7242
7243 2002-04-25  Theodore A. Roth  <troth@verinet.com>
7244
7245         * MAINTAINERS: Add myself as AVR maintainer.
7246         * NEWS: Note new target avr.
7247
7248 2002-04-25  Theodore A. Roth  <troth@verinet.com>
7249
7250         * Makefile.in: Add support for AVR target.
7251         * configure.tgt: Add support for AVR target.
7252         * avr-tdep.c: New file
7253         * config/avr/avr.mt: New file.
7254
7255 2002-04-25  Theodore A. Roth  <troth@verinet.com>
7256
7257         * MAINTAINERS: Add myself to write-after-approval.
7258
7259 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
7260
7261         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7262         with fprintf_unfiltered (gdb_stderr,....
7263
7264 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
7265
7266         Fix PR gdb/508.
7267         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7268
7269 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
7270
7271         * p-exp.y: Also use new prev_lexptr variable
7272         to improve error reporting. Based on Michael Snyder
7273         2002-04-24 dated patch to c-exp.y.
7274
7275 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
7276
7277         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7278         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7279         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
7280         to 0.
7281         * config/alpha/tm-alpha.h: Remove forward decls of struct type
7282         and struct value.
7283         (FUNCTION_START_OFFSET): Remove.
7284         (BREAKPOINT): Ditto.
7285
7286 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
7287
7288         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7289         * NEWS: Ditto.
7290
7291 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
7292
7293         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7294         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7295         alpha_linux_pc_in_sigtramp.
7296         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7297         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7298         alpha_osf1_pc_in_sigtramp.
7299         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7300         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7301         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7302         alphafbsd_pc_in_sigtramp.
7303         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7304         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7305         alphanbsd_pc_in_sigtramp.
7306         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7307         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7308
7309 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
7310
7311         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7312
7313 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
7314
7315         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7316         alphanbsd-tdep.c.
7317         (alphanbsd-nat.o): New dependency list.
7318         (alphanbsd-tdep.o): Ditto.
7319         * NEWS: Note new native NetBSD/alpha configuration.
7320         * alphanbsd-nat.c: New file.
7321         * alphanbsd-tdep.c: Ditto.
7322         * configure.host (alpha*-*-netbsd*): New host.
7323         * configure.tgt (alpha*-*-netbsd*): New target.
7324         * config/alpha/nbsd.mh: New file.
7325         * config/alpha/nbsd.mt: Ditto.
7326         * config/alpha/nm-nbsd.h: Ditto.
7327         * config/alpha/tm-nbsd.h: Ditto.
7328
7329 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
7330
7331         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7332         (alpha-osf1-tdep.o): New dependency list.
7333         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7334         and skip_sigtramp_frame members.
7335         * alpha-linux-tdep.c: Include gdbcore.h.
7336         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7337         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7338         * alpha-osf1-tdep.c: New file.
7339         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7340         alpha-osf1-dep.c.
7341         (alpha_frame_past_sigtramp_frame): New function.
7342         (alpha_dynamic_sigtramp_offset): Ditto.
7343         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7344         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7345         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7346         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7347         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7348         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7349         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7350         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7351         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7352         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7353         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
7354         to find_solib_trampoline_target.
7355         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7356         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7357         (SKIP_TRAMPOLINE_CODE): Remove.
7358         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7359         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7360         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7361         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7362         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7363         (PROC_SIGTRAMP_MAGIC): Ditto.
7364         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7365         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7366         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7367         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7368         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7369
7370 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
7371
7372         * NEWS: Note that Alpha targets are now multi-arch.
7373
7374 2002-04-24  Michael Snyder  <msnyder@redhat.com>
7375
7376         * parser-defs.h (prev_lexptr): New external variable.
7377         * parse.c (parse_exp_1): Set prev_lexptr to null before
7378         calling the language-specific parser.
7379         * c-exp.y (yylex): Set prev_lexptr to start of current token.
7380         (yyerror): Use prev_lexptr in error reporting.
7381
7382 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
7383
7384         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7385         * gregset.h: If FILL_FPXREGSET is defined, provide
7386         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7387         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7388         is defined, call fill_fpxregset.
7389
7390 2002-04-24  Roland McGrath  <roland@frob.com>
7391
7392         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7393         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7394         (supply_gregset, supply_fpregset): New functions.
7395
7396         * gnu-nat.c (gnu_find_memory_regions): New function.
7397         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7398         (gnu_xfer_memory): Add a cast.
7399
7400 2002-04-24  Michael Snyder  <msnyder@redhat.com>
7401
7402         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7403         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
7404         of argument regs ("str r(0123), [r11, #-nn"]).
7405         (arm_skip_prologue): Better handling for frameless functions.
7406         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
7407         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7408
7409 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
7410
7411         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7412         NUM_PSEUDO_REGS can be used.
7413
7414 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
7415
7416         * arch-utils.h: Update copyright.
7417
7418         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7419         * gdbarch.h, gdbarch.c: Re-generate.
7420
7421         * inferior.h (IN_SIGTRAMP): Delete definition.
7422         * arch-utils.c (legacy_pc_in_sigtramp): New function.
7423         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7424
7425         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7426         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7427         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
7428         (find_proc_framesize): Ditto.
7429         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7430         (alpha_init_extra_frame_info): Ditto.
7431         * infrun.c (handle_inferior_event): Ditto.
7432         (handle_inferior_event): Ditto.
7433         (check_sigtramp2): Ditto.
7434         * blockframe.c (create_new_frame): Ditto.
7435         (get_prev_frame): Ditto.
7436         * ppc-linux-tdep.c: Update comments.
7437         * i386-linux-tdep.c: Update comments.
7438         * breakpoint.c (bpstat_what): Update comment.
7439
7440 2002-04-24  David S. Miller  <davem@redhat.com>
7441
7442         * i960-tdep.c (register_in_window_p): New function.
7443         (i960_find_saved_register): Use it instead of
7444         REGISTER_IN_WINDOW_P.
7445         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7446
7447         * symtab.h (find_stab_function_addr): Kill extern.
7448         * minsyms.c (find_stab_function_addr): Remove from here...
7449         * dbxread.c: ... to here, and mark it static.
7450
7451 2002-04-20  David S. Miller  <davem@redhat.com>
7452
7453         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7454         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7455
7456 2002-04-21  David S. Miller  <davem@redhat.com>
7457
7458         * remote-vxsparc.c (vx_read_register): Fix typo, we want
7459         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7460         (vx_write_register): Likewise.
7461
7462 2002-04-23  J. Brobecker  <brobecker@gnat.com>
7463
7464         * source.c (is_regular_file): New function.
7465         (openp): Check wether file to open is a regular file
7466         to avoid opening directories.
7467
7468 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7469
7470         * findvar.c (extract_signed_integer): Cast printf argument
7471         to suppress format warning.
7472         (extract_unsigned_integer): Likewise.
7473         * infcmd.c (registers_info): Likewise.
7474         * top.c (get_prompt_1): Likewise.
7475         * valops.c (value_assign): Likewise.
7476         * valprint.c (print_decimal): Likewise.
7477
7478 2002-04-22  H.J. Lu  (hjl@gnu.org)
7479
7480         * c-exp.y (typebase): Support
7481
7482         [long|long long|short] [signed|unsigned] [int|]
7483
7484         and
7485
7486         signed [long|long long|short] int
7487
7488 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7489
7490         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7491         and vax-tdep.h.
7492         * vax-tdep.h: New file.
7493         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7494         Make several routines static.
7495         (vax_get_saved_register): New function.
7496         (vax_gdbarch_init): New function.
7497         (_initialize_vax_tdep): Register vax_gdbarch_init.
7498         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7499         Remove macros now under the control of gdbarch.
7500
7501 2002-04-22  Michael Snyder  <msnyder@redhat.com>
7502
7503         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7504         Some whitespace and coding standards tweaks.
7505
7506 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7507
7508         * vax-tdep.c: Include regcache.h.
7509         (vax_call_dummy_words): New.
7510         (sizeof_vax_call_dummy_words): New.
7511         (vax_fix_call_dummy): New function.
7512         (vax_saved_pc_after_call): Ditto.
7513         * config/vax/tm-vax.h: Don't include regcache.h.
7514         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7515         (CALL_DUMMY): Remove.
7516         (CALL_DUMMY_WORDS): Define.
7517         (SIZEOF_CALL_DUMMY_WORDS): Define.
7518         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7519
7520 2002-04-18  Michael Snyder  <msnyder@redhat.com>
7521
7522         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7523
7524 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7525
7526         * vax-tdep.c (vax_frame_chain): New function.
7527         (vax_push_dummy_frame): Ditto.
7528         (vax_pop_frame): Ditto.
7529         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7530         (FRAMELESS_FUNCTION_INVOCATION): Use
7531         generic_frameless_function_invocation_not.
7532         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7533         (POP_FRAME): Use vax_pop_frame.
7534
7535 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7536
7537         * vax-tdep.c (vax_store_struct_return): New function.
7538         (vax_extract_return_value): Ditto.
7539         (vax_store_return_value): Ditto.
7540         (vax_extract_struct_value_address): Ditto.
7541         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7542         vax_store_struct_return.
7543         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7544         (STORE_RETURN_VALUE): Use vax_store_return_value.
7545         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7546
7547 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7548
7549         * vax-tdep.c (vax_frame_saved_pc): New function.
7550         (vax_frame_args_address_correct): Ditto.
7551         (vax_frame_args_address): Ditto.
7552         (vax_frame_locals_address): Ditto.
7553         (vax_frame_num_args): Move code to be in proximity to
7554         other frame-related functions.
7555         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7556         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7557         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7558         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7559         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7560
7561 2002-04-22  H.J. Lu  (hjl@gnu.org)
7562
7563         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7564         includedir.
7565
7566 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7567
7568         * vax-tdep.c (vax_frame_init_saved_regs): New function.
7569         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7570         (FRAME_INIT_SAVED_REGS): New macro.
7571
7572 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7573
7574         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7575
7576 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7577
7578         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7579         where needed.
7580         (fetch_osf_core_registers): Likewise.
7581         (supply_gregset): Likewise.
7582
7583 2002-04-22  J. Brobecker  <brobecker@gnat.com>
7584
7585         * symfile.h (get_section_index): Define.
7586         * symfile.c (get_section_index): New function.
7587         * mdebugread.c (SC_IS_SBSS): New macro.
7588         (SC_IS_BSS): Return true for the scBss storage class only, as
7589         the scSBss storage class refers to the .sbss section.
7590         (parse_partial_symbols): Discard the symbols which associated
7591         section does not exist.
7592         Make sure to use the .sbss section index for symbols which
7593         storage class is scBss, rather than using the .bss section index.
7594
7595 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7596
7597         * vax-tdep.c: Update copyright years.
7598         (vax_register_name): New function.
7599         (vax_register_byte): Ditto.
7600         (vax_register_raw_size): Ditto.
7601         (vax_register_virtual_size): Ditto.
7602         (vax_register_virtual_type): Ditto.
7603         * config/vax/tm-vax.h: Update copyright years.
7604         (REGISTER_NAMES): Remove.
7605         (REGISTER_NAME): Define.
7606         (REGISTER_BYTE): Use vax_register_byte.
7607         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7608         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7609         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7610
7611 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
7612
7613         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7614         declaration
7615         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7616
7617 2002-04-21  David S. Miller  <davem@redhat.com>
7618
7619         * arch-utils.c (generic_prologue_frameless_p): Kill
7620         SKIP_PROLOGUE_FRAMELESS_P code.
7621         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7622         references.
7623         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7624         * arc-tdep.c (arc_prologue_frameless_p): Implement.
7625         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7626         references.
7627         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7628         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7629         (sparc_gdbarch_init): Pass it to
7630         set_gdbarch_prologue_frameless_p.
7631
7632 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7633
7634         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7635         (alphabsd-nat.o): New dependency list.
7636
7637 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7638
7639         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7640         alphafbsd-tdep.c.
7641         (alpha-linux-tdep.o): New dependency list.
7642         (alphafbsd-tdep.o): Likewise.
7643
7644 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7645
7646         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
7647         to here...
7648         * alpha-tdep.c: ...from here.
7649         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7650
7651 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7652
7653         * config/alpha/tm-alpha.h: Move alpha_software_single_step
7654         prototype from here...
7655         * alpha-tdep.h: ...to here.
7656
7657 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
7658
7659         * frame.h (selected_frame_level): Document as deprecated.
7660         (frame_relative_level): Declare.
7661         * stack.c (frame_relative_level): New function.
7662         (selected_frame_level): Document as deprecated.
7663         (select_frame): Do not set the selected_frame_level.
7664
7665         * stack.c (frame_info, record_selected_frame): Update.
7666         (frame_command, current_frame_command): Update.
7667         (up_silently_base, up_command, down_silently_base): Update.
7668         (down_command): Update.
7669         * inflow.c (kill_command): Update.
7670         * tracepoint.c (finish_tfind_command): Update.
7671         * corelow.c (core_open): Update.
7672         * thread.c (info_threads_command): Update.
7673         (do_captured_thread_select): Update.
7674         * infcmd.c (finish_command): Update.
7675         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7676
7677 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7678
7679         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7680
7681 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
7682
7683         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
7684         type const.
7685
7686 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7687
7688         * alphafbsd-tdep.c: Update copyright years.  Include
7689         alpha-tdep.h.
7690         (alphafbsd_use_struct_convention): Make static.
7691         (alphafbsd_init_abi): New function.
7692         (_initialize_alphafbsd_tdep): New function.
7693         * config/alpha/tm-fbsd.h: Update copyright years.
7694         (USE_STRUCT_CONVENTION): Remove.
7695
7696 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7697
7698         * alpha-tdep.c (alpha_abi_handler): New structure to describe
7699         an Alpha ABI variant.
7700         (alpha_abi_handler_list): Declare.
7701         (alpha_gdbarch_register_os_abi): New function.
7702         (alpha_gdbarch_init): Give registered ABI variant handlers a
7703         chance to tweak the gdbarch once we have set up defaults.
7704         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7705
7706 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7707
7708         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7709         to standard_coerce_float_to_double.
7710         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7711
7712 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7713
7714         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7715         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7716         from gdbarch_tdep rather than a constant.
7717         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7718         the default text address for all Alpha Unix ABIs.
7719         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7720         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7721
7722 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7723
7724         * alpha-tdep.h: New file.  Includes several Alpha target constants
7725         taken from...
7726         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
7727         let gdbarch deal with.
7728         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7729         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7730         to dependency list.
7731         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
7732         Alpha target register names.
7733         * alphabsd-nat.c: Likewise.
7734         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
7735         Alpha target register names.  Make serveral routines static.
7736         (alpha_get_saved_register): New function.
7737         (alpha_abi_names): New.
7738         (process_note_abi_tag_sections): New function.
7739         (get_elfosabi): New function.
7740         (alpha_gdbarch_init): New function.
7741         (alpha_dump_tdep): New function.
7742         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7743
7744 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
7745
7746         * frame.c (find_saved_register): Delete #ifdef
7747         HAVE_REGISTER_WINDOWS code.
7748         * config/sparc/tm-sparc.h: Update comments.
7749         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7750
7751 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
7752
7753         * i960-tdep.c (i960_find_saved_register): New function.
7754         (i960_get_saved_register): New function.
7755         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7756         (i960_get_saved_register): Declare.
7757         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7758
7759 2002-04-20  David S. Miller  <davem@redhat.com>
7760
7761         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7762
7763 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
7764
7765         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7766         instead of NUM_PSEUDO_REGS.
7767
7768 2002-04-20  David S. Miller  <davem@redhat.com>
7769
7770         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7771         GDB_MULTI_ARCH_PARTIAL
7772         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7773         define, let tm-sp64.h do it.
7774
7775 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
7776
7777         * frame.c (find_saved_register): Avoid a NULL pointer
7778         dereference and actually walk the frame list.
7779
7780 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
7781
7782         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7783         sorted in most most-recent-used order.  Document.
7784         * gdbarch.h, gdbarch.c: Regenerate.
7785
7786 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
7787
7788         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7789         instead of ->prev.
7790         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7791         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7792         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7793         instead of ->prev.
7794
7795 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
7796
7797         Fix PR gdb/471.
7798         * gdbtypes.c (init_simd_type): Rewrite using new functions.
7799         (build_builtin_type_vec128): Ditto.
7800         (append_composite_type_field): Fix calculation of type length in
7801         union case.
7802
7803 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
7804
7805         * config/djgpp/README: Update.
7806
7807         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7808         compiler warnings.
7809
7810 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
7811
7812         * alpha-tdep.c (setup_arbitrary_frame): Rename...
7813         (alpha_setup_arbitrary_frame): ...to this.
7814         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7815         for alpha_setup_arbitrary_frame.
7816
7817 2002-04-18  Andrew Cagney  <cagney@redhat.com>
7818
7819         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7820         * gdbarch.h, gdbarch.c: Regenerate.
7821
7822         * defs.h (breakpoint_from_pc_fn): Delete type definition.
7823         * target.h (memory_breakpoint_from_pc): Update declaration.
7824         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7825
7826         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7827         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7828         * mem-break.c (memory_breakpoint_from_pc): Ditto.
7829         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7830         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7831         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7832         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7833         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7834         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7835         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7836         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7837         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7838
7839         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7840         const pointer.
7841         * monitor.c (monitor_insert_breakpoint): Ditto.
7842         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7843
7844         * config/mcore/tm-mcore.h: Update copyright.
7845         * mem-break.c: Ditto.
7846         * xstormy16-tdep.c: Ditto.
7847
7848 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7849
7850         * p-exp.y: Add precedence rule for '^' token.
7851         This removes the shift/reduce conflicts.
7852         Remove the comment concerning these shift/reduce conflicts.
7853
7854 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
7855
7856         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7857         (registers_powerpc_nofp): New register set for processors
7858         without floating point unit.
7859
7860 2002-04-18  David S. Miller  <davem@redhat.com>
7861
7862         * MAINTAINERS: Add myself to write-after-approval.
7863
7864 2002-04-17  Michael Snyder  <msnyder@redhat.com>
7865
7866         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7867
7868 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
7869
7870         * rs6000-tdep.c (frame_initial_stack_address): Use
7871         frame_register_read to read the alloca_reg.
7872
7873 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
7874
7875         * frame.c (find_saved_register): Find saved registers in the next
7876         not prev frame.
7877         Fix PR gdb/365.
7878
7879 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
7880
7881         * gdbarch.sh (LANG): Set to ``c''.
7882
7883 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
7884
7885         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7886
7887 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
7888
7889         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7890         Update copyright.
7891
7892         * hpread.c (hpread_get_lntt): Add declaration.
7893         Also fix PR gdb/391.
7894
7895 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
7896
7897         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7898         * aclocal.m4, configure: Re-generate.
7899         Fix PR gdb/391.
7900
7901 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
7902
7903         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7904         instead of tm_print_insn.
7905
7906 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
7907
7908         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7909
7910 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
7911
7912         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7913         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7914         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7915
7916 2002-04-12  Don Howard  <dhoward@redhat.com>
7917
7918         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7919         max_user_call_depth.
7920         (init_cmd_lists): Initialize the new value;
7921         * cli/cli-script.c (execute_user_command): Limit the call depth of
7922         user defined commands.  This avoids a core-dump when user commands
7923         are infinitly recursive.
7924
7925 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7926
7927         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7928         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7929         from tdep struct instead of DEFAULT_LR_SAVE.
7930         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7931         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7932         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7933
7934 2002-04-12  Michael Snyder  <msnyder@redhat.com>
7935
7936         * Remote.c: Spelling fix.
7937         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7938         If no symbol found for "sbrk", try "_sbrk".
7939         (make_output_phdrs): Use bfd_section_name.
7940         (gcore_copy_callback): Use bfd_section_name.
7941         * eval.c: Indentation fix-ups.
7942         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7943         in case it gets applied to an address that is already
7944         in the instruction space.
7945         * cli/cli-decode.c (help_list): Allow long lines to wrap.
7946         * symfile.c: Fix indentation, long lines.
7947         * source.c: White space fix-up.
7948
7949 2002-04-12  Andrew Cagney  <cagney@redhat.com>
7950
7951         * defs.h (read_relative_register_raw_bytes): Delete declaration.
7952         * frame.c (frame_register_read): New function.  Return non-zero on
7953         success.
7954         (read_relative_register_raw_bytes_for_frame): Delete.
7955         (read_relative_register_raw_bytes): Delete.
7956         * frame.h (frame_register_read): Declare.
7957         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
7958         * sh-tdep.c: Ditto.
7959         * infcmd.c (do_registers_info): Ditto.
7960         * hppa-tdep.c: Ditto.
7961         * rs6000-tdep.c: Ditto.
7962         * h8500-tdep.c: Ditto.
7963         * mips-tdep.c: Ditto.
7964         * h8300-tdep.c: Ditto.
7965         * z8k-tdep.c: Ditto.
7966
7967 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7968
7969         From Jimi X <jimix@watson.ibm.com>:
7970         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7971         64-bit SysV ABI.
7972
7973 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7974
7975         From Jimi X <jimix@watson.ibm.com>:
7976         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7977         bfd info.
7978
7979 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7980
7981         From Jimi X <jimix@watson.ibm.com>:
7982         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7983         register sets for these processor variants.
7984
7985 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
7986
7987         * regformats/reg-ppc.dat: Support FPSCR.
7988
7989 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
7990
7991         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7992         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7993         Add fpscr as an invalid/unfetchable register.
7994         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7995         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7996         (fill_fpregset): Add support for register fpscr.
7997         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7998         (fill_gregset): Account for the fact that register ``mq'' might
7999         not exist.
8000         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8001         (registers_power): Add fpscr to register set at slot 71.
8002         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8003         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
8004
8005 2002-04-11  Michael Snyder  <msnyder@redhat.com>
8006
8007         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8008         * configure: Regenerate.
8009         * config.in: Regenerate.
8010         * acconfig.h: Add define for _SYSCALL32.
8011         * core-sol2.c: Remove #define _SYSCALL32.
8012         * solib-legacy.c: Remove #define _SYSCALL32.
8013
8014 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
8015
8016         * stack.c (select_frame): Cleanup internal error message, do not
8017         use %p.
8018
8019 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
8020
8021         * stack.c (select_frame): Check that selected_frame and the
8022         specified level are as expected.
8023         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8024         Update copyright.
8025         * frame.h (struct frame_info): Add field `level'.  Update
8026         copyright.
8027         Work-in-progress PR gdb/464.
8028
8029 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
8030
8031         * maint.c (maint_print_section_info): Rename print_section_info.
8032         (print_bfd_section_info, print_objfile_section_info): Update.
8033         * inferior.h (struct gdbarch): Add opaque declaration.
8034         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8035         * gdbarch.h: Regenerate.
8036
8037 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
8038
8039         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8040         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8041         (kernel_u_size): Added.
8042         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8043         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8044
8045 2002-04-04  Jim Ingham  <jingham@apple.com>
8046
8047        * valarith.c (find_size_for_pointer_math): New function, either returns
8048        the size for a pointer's target, returns 1 for void *, or errors for
8049        incomplete types.
8050        (value_add, value_sub): use find_size_for_pointer_math.
8051
8052 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
8053
8054         * linux-low.c (linux_look_up_symbols): New hook.
8055         (linux_target_ops): Add linux_look_up_symbols.
8056         * remote-utils.c (decode_address): New function.
8057         (look_up_one_symbol): New function.
8058         * server.c (handle_query): Call target look_up_symbols hook.
8059         * server.h (look_up_one_symbol): Add prototype.
8060         * target.h (struct target_ops): Add look_up_symbols hook.
8061
8062 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
8063
8064         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8065         override FP_REGNUM with frame->fp.  Update copyright.
8066         * parse.c (num_std_regs, std_regs): Delete.
8067         (target_map_name_to_register): Do not search std_regs.  Update
8068         function description.
8069         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8070         declarations.  Update copyright.
8071         Fix PR gdb/251.
8072
8073 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
8074
8075         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8076         after the last symbol in a block.
8077
8078 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
8079
8080         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8081         is non zero as a found symbol.
8082
8083 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
8084
8085         * findvar.c: Include "builtin-regs.h".
8086         (value_of_register): Call value_of_builtin_reg when applicable.
8087         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8088         (target_map_name_to_register): Call
8089         builtin_reg_map_name_to_regnum.
8090         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8091         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8092         (builtin_regs_h): Define.
8093         (builtin-regs.o): New target.
8094         (findvar.o): Add $(builtin_regs_h).
8095         * builtin-regs.c, builtin-regs.h: New files.
8096         * std-regs.c: New file.
8097         Partial fix for PR gdb/251.
8098
8099 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
8100
8101         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8102         it's no longer required.
8103
8104 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
8105
8106         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8107
8108 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
8109
8110         From Jimi X <jimix@watson.ibm.com>:
8111         * rs6000-tdep.c (rs6000_software_single_step): Use
8112         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8113         and size.  Use target_insert_breakpoint() and
8114         target_remove_breakpoint() to insert and remove breakpoints
8115         instead of explicit memory reads and writes.
8116
8117 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
8118
8119         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8120         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8121         ELF_OBJECT_FORMAT ifdef.
8122
8123 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
8124
8125         From Jimi X <jimix@watson.ibm.com>:
8126         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8127
8128 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
8129
8130         From Jimi X <jimix@watson.ibm.com>:
8131         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8132         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8133
8134 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
8135
8136         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8137         s/asprintf/xasprintf/.
8138         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8139
8140 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
8141
8142         I believe Jeff Law denies responsability for this one:
8143         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8144         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8145         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8146         Work-around for PR gdb/366.
8147
8148 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
8149
8150         * remote-e7000.c (write_small, e7000_read_inferior_memory,
8151         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8152         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8153
8154 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
8155
8156         * sh-tdep.c (sh_fp_frame_init_saved_regs,
8157         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8158         information.
8159
8160 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
8161
8162         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8163         maintainer.
8164
8165 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
8166
8167         * README (Reporting Bugs in GDB): Document the bug web page as the
8168         prefered way of submitting bugs.
8169         Fix PR gdb/402.
8170
8171 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
8172
8173         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8174         -1.  Update comment.
8175         * gdbarch.h, gdbarch.c: Re-generate.
8176
8177 2002-04-07  Andreas Schwab  <schwab@suse.de>
8178
8179         * m68klinux-nat.c (fill_fpregset): Properly pass address of
8180         buffer to regcache_collect.
8181
8182 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
8183
8184         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
8185         * gdbarch.c, gdbarch.h: Re-generate.
8186
8187 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
8188
8189         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8190         declaration.  Fix -Werror.
8191
8192 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
8193
8194         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8195         * gdbarch.c: Regenerate.
8196
8197 2002-04-05  Michael Snyder  <msnyder@redhat.com>
8198
8199         * breakpoint.c (clear_command): Rewrite middle section to
8200         combine two loops with identical control conditions.
8201         Add a cleanup to eliminate a memory leak.
8202         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8203
8204 2002-04-05  H.J. Lu  (hjl@gnu.org)
8205
8206         * solib-svr4.c (bkpt_names): Add "__start".
8207
8208 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
8209
8210         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8211         as test for 64 bit target.
8212
8213 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
8214
8215         * h8500-tdep.c (h8500_write_fp): Delete function.
8216         * dwarf2cfi.c (cfi_write_fp): Document as not used.
8217         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8218         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8219         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8220         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8221         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8222         (s390_write_fp):
8223         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8224         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8225         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8226         (d10v_write_fp): Delete function.
8227         * inferior.h (write_fp, generic_target_write_fp): Delete
8228         declarations.
8229         * regcache.c (generic_target_write_fp): Delete function.
8230         (write_fp): Delete function.
8231         * gdbarch.sh (TARGET_WRITE_FP): Delete.
8232         * gdbarch.h, gdbarch.c: Regenerate.
8233         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8234         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8235         (sparc64_write_fp): Delete declaration.
8236         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8237         (h8500_write_fp): Delete declaration.
8238
8239 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
8240
8241         * sparc-tdep.c (sparc64_write_fp): Delete.
8242         (sparc_push_dummy_frame): Replace write_fp call with code to store
8243         the FP directly.
8244         (sparc_gdbarch_init): Do not initialize write_fp.
8245
8246 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
8247
8248         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8249         clause.
8250
8251 2002-03-29  Jim Blandy  <jimb@redhat.com>
8252
8253         * stack.c (get_selected_block): Add new argument `addr_in_block',
8254         used to return the exact code address we used to select the block,
8255         not just the block.
8256         * blockframe.c (get_frame_block, get_current_block): Same.
8257         * frame.h (get_frame_block, get_current_block,
8258         get_selected_block): Update declarations.
8259         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8260         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8261
8262 2002-04-05  Michael Snyder  <msnyder@redhat.com>
8263
8264         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8265         warning message.
8266
8267 2002-04-05  J. Brobecker  <brobecker@gnat.com>
8268
8269         * utils.c (xfullpath): New function.
8270         * defs.h (xfullpath): Add declaration.
8271         * source.c (openp): Use xfullpath in place of gdb_realpath to
8272         avoid resolving the basename part of filenames when the
8273         associated file is a symbolic link. This fixes a potential
8274         inconsistency between the filenames known to GDB and the
8275         filenames it prints in the annotations.
8276         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8277         to be able to match a filename with either the real filename, or
8278         the name of any symbolic link to this file.
8279         (lookup_partial_symtab): Ditto.
8280
8281 2002-04-04  Michael Snyder  <msnyder@redhat.com>
8282
8283         * breakpoint.c: Add support for hardware breakpoints in overlays.
8284         (overlay_events_enabled): New state variable.
8285         (insert_breakpoints): Use overlay_events_enabled to decide
8286         whether to attempt to set a breakpoint at the overlay load addr.
8287         Handle bp_hardware_breakpoint as well as bp_breakpoint.
8288         (remove_breakpoint): Use overlay_events_enabled to decide
8289         whether breakpoints need to be removed from overlay load addr.
8290         Handle bp_hardware_breakpoint as well as bp_breakpoint.
8291         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8292         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8293         disable_overlay_breakpoints): Update overlay_events_enabled.
8294
8295 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
8296
8297         * dwarf2read.c (struct function_range): New.
8298         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8299         (check_cu_functions): New.
8300         (read_file_scope): Initialize global function lists.
8301         Call dwarf_decode_line after processing children.
8302         (read_func_scope): Add to global function list.
8303         (dwarf_decode_lines): Call check_cu_functions everywhere
8304         record_line is called.  Call record_line with a linenumber
8305         of 0 to mark sequence ends.
8306
8307 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
8308
8309         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8310         change sync with glibc.
8311
8312 2002-04-03  Jim Blandy  <jimb@redhat.com>
8313
8314         * configure.in: Call AC_C_INLINE.
8315         * configure: Regenerated.
8316
8317 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
8318
8319         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8320         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8321
8322 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
8323
8324         * NEWS: Mention gcore support on FreeBSD/i386.
8325
8326         * fbsd-proc.c: New file.
8327         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8328         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8329
8330         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8331         while statement.
8332
8333 2002-03-29  Jim Blandy  <jimb@redhat.com>
8334
8335         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8336         unescaped newlines in string literals, but newer ones don't.  So
8337         escape them.
8338
8339 2002-03-26  Michael Snyder  <msnyder@redhat.com>
8340             Andrew Cagney <cagney@redhat.com>
8341
8342         * cli/cli-dump.c: New file.  Dump memory to file,
8343         restore file to memory.
8344         * cli/cli-dump.h: New file.
8345         * Makefile.in: Add rules, dependencies for cli-dump.o.
8346         * NEWS: Mention new commands.
8347
8348 2002-03-28  Michael Snyder  <msnyder@redhat.com>
8349
8350         * symfile.c (symbol_file_add): Move test for null symbols to later.
8351
8352 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
8353
8354         From veksler at il.ibm.com:
8355         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8356         the xstrduped original path.
8357         Fix PR gdb/417.
8358
8359 2002-03-27  Michael Snyder  <msnyder@redhat.com>
8360
8361         * breakpoint.c (_initialize_breakpoint): Clean up help string.
8362         * infcmd.c (_initialize_infcmd): Ditto.
8363         * language.c (_initialize_language): Ditto.
8364         * symfile.c (_initialize_symfile): Ditto.
8365         * top.c (_init_main): Ditto.
8366         * cli/cli-cmds.c (init_cli_cmds): Ditto.
8367
8368 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
8369
8370         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8371         vector registers handling.
8372         (skip_prologue): Handle new AltiVec instructions.  Fill in new
8373         fields of frame data.
8374         (frame_get_saved_regs): Fill in information for AltiVec registers.
8375
8376 2002-03-27  Jim Blandy  <jimb@redhat.com>
8377
8378         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8379         a function; leave this macro here to invoke that function.
8380         (symbol_init_mangled_name): Declaration for that function.
8381         * symtab.c (symbol_init_mangled_name): New function.
8382
8383 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
8384
8385         * valarith.c: Replace strerror with safe_strerror.
8386         * tracepoint.c: Ditto.
8387         * lin-lwp.c: Ditto.
8388         * go32-nat.c: Ditto.
8389         * inflow.c: Ditto.
8390         * gnu-nat.c: Ditto.
8391
8392 2002-03-27  Andreas Schwab  <schwab@suse.de>
8393
8394         * event-top.c (command_line_handler): Remove useless if.
8395
8396 2002-03-27  Andreas Jaeger  <aj@suse.de>
8397
8398         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8399         comment.
8400
8401 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
8402
8403         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8404         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8405         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8406         (x86_64_linux_dr_get_status, supply_gregset),
8407         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8408         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8409         (x86_64_register_info_table): Add.
8410         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8411         (x86_64_register_raw_size, x86_64_register_virtual_type),
8412         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8413         general x86_64_register_info_table.
8414         (i386_gdbarch_init): gdbarch_register_bytes is now set
8415         dynamicaly during initialization.
8416         * regformats/reg-x86-64.dat: Synced with changes to registers above.
8417         * gdbserver/linux-x86-64-low.c: Ditto.
8418
8419 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
8420
8421         * gdbserver/server.c (main): Call target_signal_to_host_p
8422         and target_signal_to_host on signals received from the remote.
8423         * gdbserver/remote-utils.c (prepare_resume_reply): Call
8424         target_signal_from_host on signals sent to the remote.
8425         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
8426         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
8427
8428 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
8429
8430         * signals/signals.c: Include "server.h" in gdbserver build.
8431         (target_signal_from_name): Don't use STREQ.
8432         (_initialize_signals): Likewise.  Don't include function in
8433         gdbserver build.
8434
8435 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
8436
8437         * signals.c: Moved to...
8438         * signals/signals.c: Here.
8439         * Makefile (signals.o): Update.
8440
8441 2002-03-26  Jeff Law (law@redhat.com)
8442
8443         * somread.c (som_symtab_read): Remove some commented out code and
8444         updated related comments.  Do not set the minimal symbol table to
8445         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8446         in a dynamic executable.
8447         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8448         where we are unable to find the minimal symbol for the given
8449         PC value.
8450
8451 2002-03-25  Jeff Law (law@redhat.com)
8452
8453         * linux-proc.c (read_mapping): Scan up to end of line for filename.
8454
8455 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
8456
8457         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8458
8459 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8460
8461         * command.h: Update copyright.
8462         (struct cmd_list_element): Replace definition with opaque
8463         declaration.
8464         (enum cmd_types): Document that it will eventually be moved to
8465         cli/cli-decode.h
8466         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8467         (MALLOCED_REPLACEMENT): Delete macro.
8468         * Makefile.in (cli_decode_h): Add $(command_h).
8469         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8470         * top.c: Include "cli/cli-decode.h".
8471         * completer.c: Include "cli/cli-decode.h".
8472         * maint.c: Include "cli/cli-decode.h".
8473         * cli/cli-decode.h: Include "command.h".
8474         (enum command_class): Delete.
8475         (enum cmd_types): Comment out.
8476         (enum cmd_auto_boolean): Delete.
8477         (enum var_types): Delete.
8478
8479 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8480
8481         * cli/cli-decode.c: Include "gdb_assert.h".
8482         (add_set_or_show_cmd): New static function.
8483         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
8484         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
8485         all fields, such as func, from the set command.
8486
8487 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8488
8489         * MAINTAINERS (sh-elf): Change warning flag to -w.
8490
8491 2002-03-23  Andrew Cagney  <cagney@redhat.com>
8492
8493         * defs.h (error): Add printf format attribute.
8494         * thread-db.c (thread_from_lwp): Fix error format string.
8495         * stack.c (parse_frame_specification): Ditto.
8496         * cli/cli-decode.c (undef_cmd_error): Ditto.
8497         * scm-lang.c (scm_lookup_name): Ditto.
8498         * tracepoint.c (trace_error): Ditto.
8499         * remote-utils.c (usage): Ditto.
8500         * remote.c (compare_sections_command): Ditto.
8501         Fix PR gdb/328.
8502
8503 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
8504
8505         * gdbtypes.c (append_composite_type_field): New function.
8506         (init_composite_type): New function.
8507         * gdbtypes.h (append_composite_type_field): Declare.
8508         (init_composite_type): Ditto.
8509
8510 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
8511
8512         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8513         function.
8514         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8515         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8516         structure returning convention for SYSV ABI case, but not
8517         for GNU/Linux, FreeBSD, or NetBSD.
8518
8519 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
8520
8521         * symtab.h (lookup_block_symbol): Add mangled_name argument
8522         to prototype.
8523
8524         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8525         with new mangled_name argument.
8526         * linespec.c (decode_line_1): Likewise.
8527         * valops (value_of_this): Likewise.
8528         * symtab.c (lookup_transparent_type): Likewise.
8529         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
8530         (lookup_symbol): If we are given a mangled name, pass it down
8531         to lookup_symbol_aux.
8532         (lookup_block_symbol): If we are given a mangled name to check
8533         against, only return symbols which match it.
8534
8535 2002-03-22  Christopher Faylor  <cgf@redhat.com>
8536
8537         * win32-nat.c (child_create_inferior): Check for proper shell to use
8538         here, in case the user changes it on the fly.
8539         (_initialize_inftarg): Remove shell path considerations.
8540
8541 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
8542
8543         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8544         for gdbarch_max_register_raw_size and max_register_virtual_size.
8545         Adjust copyright year.
8546
8547 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
8548
8549          * dbxread.c (process_one_symbol): Extend the first N_SLINE
8550          in a function to cover the entire beginning of the function
8551          as well if it does not already.
8552
8553 2002-03-21  Tom Rix  <trix@redhat.com>
8554
8555         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8556         (rs6000_ptrace64): Renamed from ptrace64.
8557
8558 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
8559
8560         * gdbserver/remote-utils.c (remote_open): Don't call
8561         getprotobyname, we're all using TCP here so just use
8562         IPPROTO_TCP.
8563         * gdbserver/gdbreplay.c (remote_open): Ditto.
8564
8565 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
8566
8567         * regcache.c (_initialize_regcache): No need to call
8568         build_regcache() at this time; it gets called whenever
8569         the gdbarch changes.
8570
8571 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
8572
8573         * sparc-nat.c:  Include sys/param.h where possible.
8574
8575 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
8576
8577         Fix PR gdb/422.
8578         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8579         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8580         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8581         complex types.
8582         * stabsread.c (rs6000_builtin_type): Likewise.
8583         (read_sun_floating_type): Likewise.
8584
8585 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8586
8587         * stabsread.c (read_member_functions): Remove skip code for duplicate
8588         constructor/destructor methods.  Use standard parsing for these
8589         methods and just do not chain them to the list of methods after
8590         parsing.
8591
8592 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
8593
8594         * coffread.c: Remove redundant static declarations.  Replace
8595         occurrences of `PTR' with `void *'.
8596         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8597         * top.h (quit_cover): Likewise.
8598         * defs.h (catch_errors): Likewise.
8599
8600 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
8601
8602         * defs.h (XMALLOC): Define.
8603         * gdb-events.sh (XMALLOC): Delete macro.
8604         * gdb-events.c, gdb-events.h: Regenerate.
8605         * gdbarch.sh (XMALLOC): Delete macro.
8606         * gdbarch.c: Regenerate.
8607         * serial.c (XMALLOC): Delete macro.
8608         * ui-file.c (XMALLOC): Ditto.
8609         * ser-unix.h (XMALLOC): Ditto.
8610         * sh-tdep.c (XMALLOC): Ditto.
8611         * ui-out.c (XMALLOC): Ditto.
8612         * utils.c (XMALLOC): Ditto.
8613         * i386-tdep.c (XMALLOC): Ditto.
8614         * gdb-events.c (XMALLOC): Ditto.
8615         * d10v-tdep.c (XMALLOC): Ditto.
8616         * cli-out.c (XMALLOC): Ditto.
8617
8618         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8619         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8620         * ui-file.c, ui-out.c: Ditto.
8621
8622 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
8623
8624         * command.h (struct cmd_list_element): Add field context.
8625         (set_cmd_context, get_cmd_context): Declare.
8626         * cli/cli-decode.h: Ditto.
8627         * cli/cli-decode.c (get_cmd_context): New function.
8628         (set_cmd_context): New function.
8629         (add_cmd): Initialize context.
8630         Part of fixing PR gdb/145 and PR gdb/146.
8631
8632 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
8633
8634         * cli/cli-decode.c (cmd_type): New function.
8635         * command.h (cmd_type): Declare.
8636         * infrun.c (set_schedlock_func): Call function cmd_type.
8637         * kod.c (kod_set_os): Call cmd_type.
8638         * cris-tdep.c (cris_version_update): Use function cmd_type.
8639         (cris_mode_update, cris_abi_update): Ditto.
8640
8641         * command.h: (execute_cmd_post_hook): Declare.
8642         (execute_cmd_pre_hook): Declare.
8643         * cli/cli-script.c (clear_hook_in_cleanup): New function.
8644         (execute_cmd_post_hook, execute_cmd_pre_hook): New
8645         functions. Execute pre/post hook while ensuring that afterwords
8646         hook_in is cleared.
8647         * top.c (execute_command): Use execute_cmd_post_hook, and
8648         execute_cmd_pre_hook to execute pre/post commands.
8649         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8650         hook_stop_stub.
8651         (hook_stop_stub): Call execute_cmd_pre_hook.
8652
8653 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
8654
8655         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
8656         set'' and this leads to a core dump.  Move xstrdup of
8657         operating_system to after check that it is not NULL.
8658
8659 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
8660
8661         * kod.c (kod_set_os): Remove unnecessary check that
8662         ``command->type'' is set_cmd.
8663
8664         * valprint.c (set_input_radix): Use input_radix.
8665         (set_output_radix): Use output_radix.
8666         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8667         isn't reverted.
8668
8669 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
8670
8671         * value.h (struct value): Delete field ``substring_addr''.  Change
8672         aligner fields to force_doublest_align, force_longest_align,
8673         force_core_addr_align and force_pointer_aligh.
8674
8675         * value.h (struct value): Fix typo in above change.
8676
8677 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8678
8679         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8680         to fix internal_error from ``maintenance print architecture''.
8681
8682 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8683
8684         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8685         for gcc versions after gcc-2.8.1.
8686
8687 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8688
8689         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8690         for method resolution.  Restore adjustment of ``this'' pointer after
8691         calling value_struct_elt, which was accidentally removed during the
8692         HP merge.
8693
8694 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
8695
8696         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8697         value_of_register.
8698         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
8699         get_saved_register.
8700         * value.h (value_of_register): Update.
8701
8702 2002-03-14  Richard Henderson  <rth@redhat.com>
8703
8704         * configure.in: Detect declaration for canonicalize_file_name.
8705         * utils.c (canonicalize_file_name): Declare, if needed.
8706         (gdb_realpath): Prefer realpath if available and usable.
8707         * config.in, configure: Rebuild.
8708
8709 2002-03-14  Richard Henderson  <rth@redhat.com>
8710
8711         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8712         a constant array bound.
8713
8714         * MAINTAINERS: Add myself to write-after-approval.
8715
8716 2002-03-14  Michael Snyder  <msnyder@redhat.com>
8717
8718         * symfile.c (syms_from_objfile): Return immediately if no syms.
8719         (symbol_file_add): Return immediately if no syms.
8720         (find_sym_fns): Return immediately if no syms.
8721
8722 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
8723
8724         * gdbserver/remote-util.c (remote_open): Print remote-side's
8725         IP address when remote debugging over the network.
8726
8727 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
8728
8729         * config/sparc/fbsd.mh: Fix copyright.
8730         * config/sparc/fbsd.mt: Likewise.
8731
8732 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
8733
8734         * MAINTAINERS: Fix typo in name of gdb warnings option.
8735         (x86-64): Fix formating so that this can be parsed by awk.
8736
8737 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
8738
8739         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8740         * defs.h: Include "gdb/signals.h".
8741         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8742
8743 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
8744
8745         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8746         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8747         from x86-64-tdep.h
8748
8749 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
8750             Don Howard <dhoward@redhat.com>
8751
8752         * mips-tdep.c (ST0_FR): Define.
8753         (mips2_fp_compat): New function, temporarily disabled.
8754         (mips_read_fp_register_single): New function.
8755         (mips_read_fp_register_double): New function.
8756         (mips_print_register): Use them.
8757         (do_fp_register_row): Likewise.
8758
8759 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
8760
8761         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8762         approval''.
8763
8764 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8765
8766         * stabsread.c (read_member_functions): Fix is_stub test for
8767         static member functions, improve comment.
8768
8769 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
8770
8771         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8772         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8773         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8774         commands that set boolean values.
8775         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8776         (arm_rdi_resume): Always initialize PC.
8777         (arm_rdi_open): Don't use rslt as a boolean.
8778         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8779         (arm_rdi_fetch_registers, arm_rdi_store_registers)
8780         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8781         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8782
8783 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
8784
8785         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8786         * configure: Rebuilt.
8787
8788 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8789
8790         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8791         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8792
8793 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
8794
8795         * cli/cli-decode.c (set_cmd_completer): New function.
8796         * command.h (set_cmd_completer): Declare.
8797         * cli/cli-decode.h (set_cmd_completer): Ditto.
8798
8799         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8800         * cli/cli-cmds.c (init_cli_cmds): Ditto.
8801         * win32-nat.c (_initialize_inftarg): Ditto.
8802         * remote-rdi.c (_initialize_remote_rdi): Ditto.
8803         * proc-api.c (_initialize_proc_api): Ditto.
8804         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8805         * source.c (_initialize_source): Ditto.
8806         * exec.c (_initialize_exec): Ditto.
8807         * solib.c (_initialize_solib): Ditto.
8808         * top.c (init_main): Ditto.
8809         * tracepoint.c (_initialize_tracepoint): Ditto.
8810         * symfile.c (_initialize_symfile): Ditto.
8811         * printcmd.c (_initialize_printcmd): Ditto.
8812         * infcmd.c (_initialize_infcmd): Ditto.
8813         * corefile.c (_initialize_core): Ditto.
8814
8815 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
8816
8817         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8818
8819 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
8820
8821         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8822
8823 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
8824
8825         * NEWS: Update headings, 5.2 has branched.
8826
8827 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
8828
8829         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8830         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8831         (register_addr, REGISTER_RAW_SIZE): Likewise.
8832         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8833         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8834
8835 2002-03-03  Michal Ludvig <mludvig@suse.cz>
8836
8837         * MAINTAINERS (x86-64): Add myself.
8838         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8839         changed value_ptr -> struct value *
8840
8841 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
8842
8843         * configure.host (sparc64-*-freebsd): Add.
8844         * configure.tgt: Likewise.
8845         * config/sparc/fbsd.mh: New file.
8846         * config/sparc/fbsd.mt: Likewise.
8847         * config/sparc/nm-fbsd.h: Likewise.
8848         * config/sparc/tm-fbsd.h: Likewise.
8849
8850 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
8851
8852         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8853         regformats/reg-s390x.dat.
8854
8855 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
8856
8857         * utils.c: Add FIXME explaining true/false problem.
8858
8859 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
8860
8861         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8862
8863 2002-02-28  Michael Chastain  <mec@shout.net>
8864
8865         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8866
8867 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
8868
8869         * gdbserver/linux-s390-low.c: New file.
8870         * regformats/reg-s390.dat: New file.
8871         * regformats/reg-s390x.dat: New file.
8872         * gdbserver/configure.srv: Add S/390.
8873         * gdbserver/Makefile.in: Add S/390.
8874         * configure.tgt: Enable gdbserver for S/390.
8875
8876 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
8877
8878         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8879         first line of the doc string for "info dos", except at the end of
8880         the sentence, since the short help stops at the first period.
8881
8882 2002-02-28  Jason Merrill  <jason@redhat.com>
8883
8884         * dwarf2read.c (dwarf_cfi_name): Add new codes.
8885
8886 2002-02-27  Fred Fish  <fnf@redhat.com>
8887
8888         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8889         comment (dumy -> dummy).
8890
8891 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8892
8893         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8894
8895 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
8896
8897       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8898
8899 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8900
8901         * gdbserver/acconfig.h: New file.
8902         * gdbserver/i387-fp.c: New file.
8903         * gdbserver/i387-fp.h: New file.
8904         * gdbserver/linux-x86-64.c: New file.
8905         * regformats/reg-x86-64.dat: New file.
8906         * configure.tgt: Add x86_64-*-linux* gdbserver support.
8907         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8908         * gdbserver/configure.in: Add support for regsets.
8909         * gdbserver/config.in: Regenerate.
8910         * gdbserver/configure: Regenerate.
8911         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
8912         * gdbserver/linux-low.h: New file.
8913         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
8914         for regsets.
8915         * gdbserver/linux-arm-low.c: Include "linux-low.h".
8916         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8917         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8918         * gdbserver/linux-mips-low.c: Include "linux-low.h".
8919         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8920         * gdbserver/linux-sh-low.c: Include "linux-low.h".
8921         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
8922         "i387-fp.h".  Add PTRACE_GETREGS and friends.
8923         * gdbserver/regcache.c (supply_register): New function.
8924         (supply_register_by_name): New function.
8925         (collect_register): New function.
8926         (collect_register_by_name): New function.
8927
8928 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8929
8930         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8931         (config.status): Add configure.srv dependency.
8932         (server_h): Add config.h dependency.
8933
8934 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8935
8936         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8937         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8938         * gdbserver/configure.srv: Change i386-*-linux* to use
8939         reg-i386-linux.o.
8940
8941 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8942
8943         * x86-64-tdep.c: Re-indent.  Update copyright date.
8944
8945 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8946
8947         From Michal Ludvig <mludvig@suse.cz>:
8948         * x86-64-tdep.c (value.h): Delete.
8949         (gdb_assert.h): Include.
8950         (x86_64_register_convert_to_virtual,
8951         x86_64_register_convert_to_raw ): Add check which lets only
8952         floating-point values to be converted.
8953         (value_push): Delete.
8954         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8955         (i386_gdbarch_init): Number of register_bytes fixed.
8956
8957 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8958
8959         * MAINTAINERS: Add x86-64 target.
8960
8961 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8962
8963         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8964         * osfsolib.c (solib_map_sections): Ditto.
8965         * irix5-nat.c (solib_map_sections): Ditto.
8966         * corelow.c (gdb_check_format): Ditto.
8967         * symfile.c (symfile_bfd_open): Ditto.
8968         * solib.c (solib_map_sections): Ditto.
8969         Fix PR gdb/354.
8970
8971 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8972
8973         * remote.c (_initialize_remote): By default, disable ``e'' and
8974         ``E'' step out-of-range packets.
8975
8976 2002-02-26  Andreas Schwab  <schwab@suse.de>
8977
8978         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8979         m68k_linux_frame_saved_pc.
8980         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8981         in_sigtramp.
8982         (SIGCONTEXT_PC_OFFSET): Remove.
8983         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8984         m68k_linux_sigtramp_saved_pc): New functions.
8985         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8986         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8987         (UCONTEXT_PC_OFFSET): Define.
8988         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8989         non-RT and RT signal trampolines.
8990
8991 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
8992
8993         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8994         (TARGET_NBPG, STACK_END_ADDR): Delete
8995         (VARIABLES_INSIDE_BLOCK): Delete.
8996
8997 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
8998
8999         * utils.c (perror_with_name): Make string parameter constant.
9000         (print_sys_errmsg): Ditto.
9001         (query): Ditto.
9002         * defs.h (perror_with_name): Update.
9003         (print_sys_errmsg): Update.
9004         (query): Update.
9005
9006 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
9007
9008         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9009         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9010
9011 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9012
9013         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9014         if it already matches the current architecture from the exec file.
9015         Include arch-utils.h for gdbarch_info_init prototype.
9016         * Makefile.in (rs6000-nat.o): Update dependencies.
9017
9018 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
9019
9020         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9021          list of exported variables.
9022
9023 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
9024
9025         * gdbserver/configure.srv: New file.
9026         * gdbserver/configure.in: Use configure.srv instead
9027         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
9028         from it.
9029         * gdbserver/configure: Regenerated.
9030         * gdbserver/terminal.h: New file.
9031         * gdbserver/Makefile.in: Update for configure changes.  Remove
9032         more unneeded include paths.
9033
9034 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
9035
9036         From wiz at danbala:
9037         * config/sparc/tm-sp64.h: Fix grammar and typos.
9038         Fix PR gdb/287.
9039
9040 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
9041
9042         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9043         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
9044         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9045         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9046         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9047         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9048         * s390-tdep.c: Ditto.
9049         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9050         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9051         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9052         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9053         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9054         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9055         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9056         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9057         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9058         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9059         Fix PR gdb/378.
9060
9061 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9062
9063         * lin-thread.c: Delete file.
9064         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9065         to gdb_proc_service.h.
9066         * configure: Re-generate.
9067
9068         * ocd.c (ocd_open): Do not try to open the "ocd" device.
9069         * serial.c (serial_open): Delete check for "ocd".
9070         Fix PR gdb/349.
9071
9072         * Makefile.in (linux-thread.o): Delete target.
9073         * linux-thread.c: Delete file.
9074
9075         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
9076         renamed SH files to be consistent.
9077
9078         * symtab.c (sort_search_symbols): Use xfree.
9079
9080 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
9081
9082         * arm-linux-tdep.c (arm_linux_init_abi): Register
9083         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9084         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9085         definition with undef, since we don't want the sysvr4 definition.
9086         (SKIP_TRAMPOLINE_CODE): Likewise.
9087
9088 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9089
9090         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9091
9092         * configure.in: (AC_CHECK_FUNCS) Added test for
9093         canonicalize_file_name Regenerated.
9094         * config.in, configure: Regenerated.
9095         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9096         defined use canonicalize_file_name.
9097
9098 2002-02-23  Michael Chastain  <mec@shout.net>
9099
9100         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9101
9102 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9103
9104         * README: Remove references to cygnus.com.
9105         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9106         dot com'' form.  Remove references to cygnus.com and sourceware.
9107
9108 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9109
9110         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9111         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9112         1003.1-2001 no longer allows "head -1".
9113         * gdb/Makefile.in (version.c): Likewise.
9114         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9115         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9116         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
9117
9118 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9119
9120         * cli/cli-decode.c (cmd_cfunc_eq): New function.
9121         * command.h (cmd_cfunc_eq): Declare.
9122         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9123
9124         * cli/cli-cmds.h (is_complete_command): Change parameter to a
9125         ``struct cmd_list_element *''.
9126         * cli/cli-cmds.c (is_complete_command): Update.  Use
9127         cmd_cfunc_eq.
9128         * top.c (execute_command): Pass the command to
9129         is_complete_command.
9130         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9131
9132 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9133
9134         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9135         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9136         architecture defines.
9137         * s390-tdep.c (s390_gdbarch_init): Likewise.
9138
9139 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
9140
9141         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9142         (arm_linux_push_arguments): Likewise.
9143         (arm_linux_init_abi): Register them.  Also register linux-specific
9144         call_dummy_words.
9145         (find_minsym_and_objfile): Use strcmp, not STREQ.
9146         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9147         (arm_linux_call_dummy_words): Delete declaration.
9148         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9149         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9150         declarations.
9151         (LOWEST_PC): Delete.
9152
9153 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9154
9155         * maint.c (print_section_info): Do not prepend `0x' to filepos
9156         output, it will be handled by local_hex_string_custom.
9157
9158 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
9159
9160         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9161         (store_newfpe_double, store_newfpe_extended, store_fpregister)
9162         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9163
9164 2002-02-22  Jim Blandy  <jimb@redhat.com>
9165
9166         Indicate that the bcache functions don't change the strings
9167         they're passed.
9168         * bcache.h (bcache, hash): Add `const' keywords to declarations.
9169         * bcache.c (bcache, hash): Add `const' keywords to definitions.
9170
9171 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
9172
9173         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9174
9175 2002-02-21  Christopher Faylor  <cgf@redhat.com>
9176
9177         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9178         find the complete path to a loaded DLL.
9179
9180 2002-02-21  Fred Fish  <fnf@redhat.com>
9181
9182         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9183         that marks the end of the range of a function, enter a line number
9184         entry that has a line number of zero and a PC offset that matches
9185         the end of the function.  This starts a range of PC's for which no
9186         line number information is known.
9187         * symtab.c (find_pc_sect_line): If our best fit is in a range of
9188         PC's for which no line number info is found (line number is zero)
9189         then we didn't find any valid line information.
9190         * symtab.h: Document use of zero line number entry.
9191
9192 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
9193
9194         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9195         (have_ptrace_getvrregs): Define for run time checks.
9196         (gdb_vrregset_t): New type for Altivec register handling.
9197         (fetch_register, store_register): Fetch/store altivec register
9198         when needed.
9199         (fetch_altivec_register, store_altivec_register): New functions.
9200         (supply_vrregset, fill_vrregset): New functions.
9201         (fetch_altivec_registers, store_altivec_registers): New functions.
9202         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9203         registers as well.
9204
9205 2002-02-21  Jiri Smid  <smid@suse.cz>
9206
9207         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9208
9209 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
9210
9211         * Makefile.in (armnbsd-nat.o): Update dependencies.
9212         * armnbsd-nat.c (supply_gregset): New function.  Common code to
9213         supply the integer register set.
9214         (supply_fparegset): New function.  Similar for FPA registers.
9215         (fetch_regs, fetch_fp_regs): Use them.
9216         (fetch_core_registers): Likewise.
9217         (fetch_elfcore_registers): New function.
9218         (arm_netbsd_elfcore_fns): New core-file type specification.
9219         (_initialize_arm_netbsd_nat): Register it.
9220
9221 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
9222
9223         * armnbsd-nat.c: Include gdbcore.h.
9224         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9225         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9226         'void' to declaration, to shut up ARI.
9227         (fetch_core_registers): Make static.  Rewrite using supply_register.
9228         (arm_netbsd_core_fns): New core-file type specification.
9229         (_initialize_arm_netbsd_nat): New function.
9230
9231 2002-02-21  Christopher Faylor  <cgf@redhat.com>
9232
9233         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9234         value.
9235
9236 2002-02-20  Christopher Faylor  <cgf@redhat.com>
9237
9238         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9239         fails.
9240
9241 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9242
9243         * jv-exp.y (parse_number): Change type of implicit longs
9244         to builtin_type_uint64.
9245
9246 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9247
9248         * gdbserver/linux-low.c (mywait): Change argument to waitpid
9249         to be an integer instead of a `union wait'.
9250
9251 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9252
9253         * mips-linux-nat.c: Call the operating system GNU/Linux.
9254         * mips-linux-tdep.c: Likewise.
9255         * mips-tdep.c: Likewise.
9256
9257 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9258
9259         Fix PR gdb/265.
9260         * jv-exp.y (parse_number): Handle 64-bit integers.
9261
9262 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9263
9264         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
9265         AC_STDC_HEADERS to AC_HEADER_STDC.
9266         * gdbserver/configure: Regenerated.
9267
9268 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
9269
9270         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9271         is defined.
9272         * sparc-tdep.c (get_longjmp_target): Likewise.
9273
9274 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
9275
9276         * News: Add news about ARM and Multi-arch.  Mention the new target
9277         arm*-*-netbsd*.
9278
9279 2002-02-19  Jim Blandy  <jimb@redhat.com>
9280
9281         * stabsread.c (error_type_complaint): Improve error message.
9282
9283 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
9284
9285         * gdbserver/README: Update documentation.
9286         * gdbserver/configure.in: Update configury to match documentation.
9287         * gdbserver/Makefile.in: Likewise.
9288         * gdbserver/configure: Regenerated.
9289         * gdbserver/aclocal.m4: New file, generated by aclocal.
9290         * gdbserver/config.in: New file, generated by autoheader.
9291
9292 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9293
9294         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9295         armnbsd-nat.c.
9296
9297 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9298
9299         * arm-tdep.h (enum arm_float_model): New enum.
9300         (struct gdbarch_tdep): Add fp_model.
9301         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
9302         up floating-point conversions until we know the floating-point model
9303         in use by the inferior.  Don't complain about being unable to
9304         determine the ABI of the inferior when we don't have one.
9305         (arm_extract_return_value): Support different floating-point models.
9306         (arm_store_return_value): Likewise.
9307         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9308         ARM_FLOAT_SOFT.
9309         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9310
9311 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9312
9313         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9314         of ``current_gdbarch''.
9315
9316 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9317
9318         * armnbsd-nat.c : ANSIfy all function declarations.
9319         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9320         (fetch_inferior_registers): Re-implement in terms of above.
9321         (store_register, store_regs, store_fp_register, store_fp_regs): New.
9322         (store_inferior_registers): Re-implement in terms of above.
9323
9324 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9325
9326         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9327         kernel.
9328         * arm-linux-tdep.c: Likewise.
9329         * config/arm/tm-linux.h: Likewise.
9330
9331 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9332
9333         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9334         * config/arm/nbsd.mt (TM_FILE): Delete.
9335         * config/arm/tm-nbsd.h: Delete.
9336
9337 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9338
9339         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9340         Initialize CALL_DUMMY_LENGTH.
9341
9342 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9343
9344         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9345         function.
9346         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9347         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9348         defines one thing and that is incorrect for this port.
9349         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9350
9351 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9352
9353         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9354
9355 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9356
9357         * win32-nat.c (display_selector): New function. Displays information
9358         about the information returned by GetThreadSelectorEntry API function.
9359         (display_selectors): New function. Displays the infomation of
9360         the selector given as argument, or of CS, DS ans FS selectors
9361         if no argument is given.
9362         ( _initialize_inftarg): Add "w32" as info prefix command.
9363         Add "info w32 selector" as command calling display_selectors.
9364
9365 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
9366
9367         * i386-tdep.c (get_longjmp_target): Fix compilation failure
9368         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9369         if not defined.
9370
9371 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
9372
9373         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9374
9375 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
9376
9377         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9378         (arm_fix_call_dummy): Call it.
9379         (arm_call_dummy_breakpoint_offset): Delete.
9380         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9381         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9382
9383 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
9384
9385         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9386         Default to func_frame_chain_valid.
9387         * gdbarch.h, gdbarch.c: Re-generate.
9388         * frame.h (FRAME_CHAIN_VALID): Delete definition.
9389
9390 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
9391
9392         * ppc-linux-nat.c: Update copyright.
9393         (fetch_register, store_register): Add tid parameter, don't compute
9394         tid here.
9395         (fetch_ppc_registers, store_ppc_registers): Add tid
9396         parameter. Pass it along to callees.
9397         (fetch_inferior_registers, store_inferior_registers): Compute tid
9398         here, and pass it to calleed functions.
9399         (fill_gregset, supply_fpregset): Clean up formatting.
9400
9401 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
9402
9403         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9404         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9405
9406 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
9407
9408         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9409         * gdbarch.c gdbarch.h: Regenerate.
9410         * breakpoint.c (create_longjmp_breakpoint): Always compile this
9411         function.
9412         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9413         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9414         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9415
9416         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9417         * arm-tdep.c (arm_get_longjmp_target): New function.
9418         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
9419         this to a positive value register arm_get_longjmp_target as the
9420         longjmp handler.
9421         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9422         (arm_linux_init_abi): Set up longjmp description in tdep.
9423         * armnbsd-nat.c (get_longjmp_target): Delete.
9424         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9425         description in tdep.
9426         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9427         (get_longjmp_target): Delete declaration.
9428         (GET_LONGJMP_TARGET): Delete.
9429         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9430         (GET_LONGJMP_TARGET): Delete.
9431
9432 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
9433
9434         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
9435         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9436         of ``current_gdbarch''.
9437
9438 2002-02-17  Tom Tromey  <tromey@redhat.com>
9439
9440         * cli/cli-cmds.c (compare_strings): New function.
9441         (complete_command): Only print each unique item once.
9442         * completer.h (complete_line): Declare.
9443         * completer.c (complete_line): New function.
9444         (line_completion_function): Use it.
9445
9446 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
9447
9448         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9449         * gdbarch.h, gdbarch.c: Re-generate.
9450
9451 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
9452
9453         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9454
9455 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
9456
9457         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9458         * valops.c (value_arg_coerce): Don't take the address of a reference
9459         to convert an argument to a reference.
9460
9461 2002-02-15  Christopher Faylor  <cgf@redhat.com>
9462
9463         * win32-nat.c (get_image_name): New function.
9464         (handle_load_dll): Use get_image_name function.
9465         (get_child_debug_event): Avoid registering debug events until possibly
9466         execed process is started.
9467         (child_create_inferior): Allow invocation via shell so that command
9468         line redirection, etc.  works ok.
9469         (_initialize_inftarg): Add new command: "set shell" to control whether
9470         a shell is used to start a process.
9471
9472 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
9473
9474         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9475         instead of find_register_by_number.
9476         (cannot_store_register): Likewise.
9477
9478 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
9479
9480         * dwarf2read.c: Replace fprintf (stderr, ...) by
9481         fprintf_unfiltered (gdb_stderr, ...).
9482
9483 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
9484
9485         * gdbserver/gdbserver.1: Document --attach.
9486
9487 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
9488
9489         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9490         descriptions.
9491         * arm-tdep.c (arm_default_arm_le_breakpoint)
9492         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9493         (arm_default_thumb_be_breakpoint): New.  Initialize them from
9494         traditional breakpoint defines.
9495         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9496         (arm_gdbarch_init): Initialize new breakpoint variables.
9497         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9498         (arm_linux_init_abi): Initialize linux-specific breakpoint.
9499         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9500         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9501         code out to ...
9502         (arm_netbsd_init_abi_common): ... here; new function.
9503         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9504         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9505         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9506         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9507
9508 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
9509
9510         * arm-tdep.h (enum arm_abi): New enum.
9511         (struct gdbarch_tdep): New structure.
9512         (LOWEST_PC): Provide a default.
9513         (arm_gdbarch_register_os_abi): Declare new function.
9514         * arm-tdep.c (arm_abi_names): New array.
9515         (process_note_abi_tag_sections): New function.
9516         (get_elfosabi): New function.
9517         (arm_gdbarch_register_os_abi): New function.
9518         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
9519         support for that ABI has been built in, then call the appropriate
9520         configuration routine.  Use gdbarch_num_regs() to get the number
9521         of registers.
9522         (arm_dump_tdep): New function.
9523         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9524         place-holder functions.
9525         (_initialize_arm_tdep): Register them.
9526         * config/arm/tm-arm.h (LOWEST_PC): Delete.
9527
9528         * armnbsd-tdep.c: New file.
9529         * Makefile.in (armnbsd-tdep.o): Add dependencies.
9530         * config/arm/nbsd.mt (TDEPFILES): Add it.
9531         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9532
9533         * armnbsd-nat.c: Include regcache.h.
9534         * Makefile.in (armnbsd-nat.o): Update dependency list.
9535
9536         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9537
9538 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
9539
9540         * gdbserver/Makefile.in: Fix typos in target rules.
9541
9542 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
9543
9544         Fix part of PR gdb/267.
9545         * linespec.c (find_methods): Handle constructors specially for now.
9546
9547 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
9548
9549         * arm-tdep.c (arm_push_arguments): Eliminate special float type
9550         handling.
9551         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9552         standard_coerce_float_to_double().
9553
9554 2002-02-14  Christopher Faylor  <cgf@redhat.com>
9555
9556         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9557         GDBINIT_FILENAME.
9558
9559 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
9560
9561         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9562         find_variant_by_name, because it confuses the multiarch
9563         framework. Return NULL if there isn't an architecture with the
9564         user supplied name, instead of forcing a different one without
9565         recording the change with the multiarch machinery.
9566         (find_variant_by_name): Delete.
9567
9568 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9569
9570         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9571         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9572
9573 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
9574
9575         * stack.c (print_frame_info_base): When calling
9576         print_frame_info_listing_hook, set current_source_symtab.
9577
9578 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
9579
9580         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9581         and remove unused $(INCLUDE_DIR).
9582         Add regcache.c to OBS.
9583         Add generated register protocol files to clean target.
9584         Update dependencies for new objects, obsolete old target code.
9585
9586         * gdbserver/linux-low.c: Remove all platform-specific code to
9587         new files.  Remove various dead code.  Update to use regcache
9588         functionality.
9589         * gdbserver/remote-utils.c (fromhex): Add return statement
9590         to quiet warning.
9591         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9592         constant.
9593         (input_interrupt): Add integer parameter to match prototype
9594         of a signal handler.
9595         (outreg): Use register_data ().
9596         (prepare_resume_reply): Use gdbserver_expedite_regs.
9597         * gdbserver/server.c (main): Dynamically allocate own_buf because
9598         PBUFSIZ is no longer constant.  Use registers_to_string () and
9599         registers_from_string ().
9600         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
9601         for error (), fatal (), and warning ().  Update definition of
9602         PBUFSIZ to use regcache functionality.  Add include guard.
9603         * gdbserver/utils.c (fatal): Add missing ``const''.
9604         (warning): New function.
9605
9606         * regformats/regdat.sh: Include "regcache.h" in generated files.
9607         Provide init_registers () function.
9608         * regformats/regdef.h: Add prototype for set_register_cache ().
9609         Add include guard.
9610
9611         * gdbserver/linux-arm-low.c: New file.
9612         * gdbserver/linux-i386-low.c: New file.
9613         * gdbserver/linux-ia64-low.c: New file.
9614         * gdbserver/linux-m68k-low.c: New file.
9615         * gdbserver/linux-mips-low.c: New file.
9616         * gdbserver/linux-ppc-low.c: New file.
9617         * gdbserver/linux-sh-low.c: New file.
9618
9619         * gdbserver/regcache.c: New file.
9620         * gdbserver/regcache.h: New file.
9621
9622         * gdbserver/low-linux.c: Removed obsolete file.
9623
9624 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
9625
9626         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9627         * config/i386/linux.mt: Likewise.
9628         * config/ia64/linux.mt: Likewise.
9629         * config/m68k/linux.mh: Likewise.
9630         * config/powerpc/linux.mh: Likewise.
9631         * config/mips/linux.mt: Likewise.
9632
9633         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9634
9635         * config/i386/i386lynx.mh: Mark gdbserver variables
9636         as (currently) obsolete for this target.
9637         * config/i386/nbsd.mt: Likewise.
9638         * config/i386/nbsdelf.mt: Likewise.
9639         * config/m32r/m32r.mt: Likewise.
9640         * config/m68k/m68klynx.mh: Likewise.
9641         * config/m68k/nbsd.mt: Likewise.
9642         * config/m68k/sun3os4.mh: Likewise.
9643         * config/mips/vr5000.mt: Likewise.
9644         * config/ns32k/nbsd.mt: Likewise.
9645         * config/pa/hppabsd.mh: Likewise.
9646         * config/pa/hppaosf.mh: Likewise.
9647         * config/powerpc/nbsd.mt: Likewise.
9648         * config/rs6000/rs6000lynx.mh: Likewise.
9649         * config/s390/s390.mt: Likewise.
9650         * config/s390/s390x.mt: Likewise.
9651         * config/sparc/sparclynx.mh: Likewise.
9652         * config/sparc/sun4os4.mh: Likewise.
9653         * config/i386/x86-64linux.mt: Likewise.
9654         * config/sparc/linux.mh: Likewise.
9655
9656 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
9657
9658         * configure.tgt: Configure gdbserver only for known working
9659         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
9660         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
9661         SUBDIRS if it is configured.  Update comment for ${nativefile}.
9662         * configure: Regenerated.
9663
9664 2002-02-13  Michael Snyder  <msnyder@redhat.com>
9665
9666         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9667
9668         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9669         (default_gcore_mach): Just return 0, work around a problem in bfd.
9670         (default_gcore_target): OK to return NULL if exec_bfd is null.
9671         (make_mem_sec): Use a cast, avoid a warning.
9672
9673         * procfs.c (find_memory_regions_callback): Use a cast instead of
9674         calling host_pointer_to_address (which complains if
9675         sizeof (host pointer) != sizeof (target pointer)).
9676         (procfs_make_note_section): Avoid overflow in psargs string.
9677
9678         * procfs.c (procfs_make_note_section): Make the default
9679         implementation return an error.
9680
9681 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
9682
9683         * procfs.c (procfs_make_note_section): Provide a default definition
9684         (for alpha-dec-osf4.0f). Fix typos.
9685
9686 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
9687
9688         * linux-proc.c: Add include of regcache.h.
9689         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9690
9691 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
9692
9693         From 2002-01-18 Greg McGary <greg@mcgary.org>:
9694         * memattr.c (create_mem_region): Disallow useless empty region.
9695         Regions are half-open intervals, so allow [A..B) [B..C) as
9696         non-overlapping.
9697
9698 2002-02-13  Michael Chastain <mec@shout.net>
9699
9700         * defs.h: Kill CONST_PTR.
9701         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9702         * c-lang.c (c_builtin_types): Likewise.
9703         * ch-lang.c (ch_builtin_types): Likewise.
9704         * f-lang.c (f_builtin_types): Likewise.
9705         * language.c (unknown_builtin_types): Likewise.
9706         * m2-lang.c (m2_builtin_types): Likewise.
9707         * p-lang.c (pascal_builtin_types): Likewise.
9708         * scm-lang.c (c_builtin_types): Likewise.
9709
9710 2002-02-13  Keith Seitz  <keiths@redhat.com>
9711
9712         * arm-tdep.h (arm_get_next_pc): Add declaration.
9713
9714 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
9715
9716         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
9717         with other related struct-returning functions.
9718         (arm_extract_struct_value_address): New function.
9719         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
9720         initialize float_format, double_format and long_double_format as
9721         appropriate to the endianness of the target.
9722         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9723         (arm_use_struct_convention): Delete declaration.
9724         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9725
9726 2002-02-13  Keith Seitz  <keiths@redhat.com>
9727
9728         * defs.h (core_addr_to_string_nz): New function.
9729
9730 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
9731
9732         Apply missing bits of 2002-01-15 patch.
9733         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9734         (fill_fpregset): Use i387_fill_fsave.
9735
9736 2002-02-12  Keith Seitz  <keiths@redhat.com>
9737
9738         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9739         (core_addr_to_string_nz): New function.
9740
9741 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
9742
9743         * arm-linux-nat.c: Really include arm-tdep.h.
9744         * config/arm/tm-linux.h (struct type, struct value): Declare.
9745
9746 2002-02-11  Michael Snyder  <msnyder@redhat.com>
9747
9748         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9749         (gcore section): Ifdef for Solaris and Unixware only.
9750         (procfs_do_thread_registers): Unixware needs one lwpstatus
9751         per thread (not one prstatus or pstatus).
9752         (procfs_make_note_section): Iterate only over kernel threads (lwps),
9753         not over all gdb threads.  For unixware, call elfcore_write_pstatus
9754         once before iterating over threads.
9755
9756 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
9757
9758         * arm-tdep.h: New file.
9759         * arm-tdep.c: Include arm-tdep.h.
9760         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9761         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9762         (arm_print_float_info, arm_register_type, convert_to_extended)
9763         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9764         (arm_extract_return_value, arm_register_name): Make static.
9765         (arm_software_single_step): Similarly.  Fix types in declaration.
9766         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9767         (arm_store_return_value, arm_store_struct_return): New functions.
9768         (arm_gdbarch_init): Register the above functions.  Also register
9769         call_dummy_start_offset, sizeof_call_dummy_words,
9770         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9771         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9772         max_register_virtual_size, register_size.  Set up
9773         prologue_cache.saved_regs here, rather than ...
9774         (_initialize_arm_tdep): ... here.
9775         * config/arm/tm-arm.h (struct type, struct value): Delete forward
9776         declarations.
9777         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9778         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9779         (arm_print_float_info, arm_register_type, convert_to_extended)
9780         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9781         (arm_extract_return_value, arm_register_name): Delete declarations.
9782         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9783         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9784         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9785         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9786         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9787         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9788         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9789         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9790         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9791         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9792         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9793         (arm_get_next_pc): No-longer static -- these are needed by the RDI
9794         interface.
9795         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9796         * remote-rdi.c remote-rdp.c: Likewise.
9797         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9798         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9799         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9800         definition.
9801
9802         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9803         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9804         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9805         from non-ARM_ prefixed definitions.
9806         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9807         all uses of above.
9808         * remote-rdi.c remote-rdp.c: Likewise.
9809         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9810
9811 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
9812
9813         * arm-tdep.c (arm_frameless_function_invocation)
9814         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9815         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9816         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9817         (arm_pop_frame, arm_get_next_pc): Make static.
9818         (arm_gdbarch_init): Register above in gdbarch structure.
9819         (arm_read_fp): Renamed from arm_target_read_fp.
9820         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9821         * config/arm/tm-arm.h (arm_frameless_function_invocation)
9822         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9823         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9824         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9825         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9826         (arm_pc_is_thumb_dummy): Delete declarations.
9827         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9828         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9829         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9830         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9831
9832 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
9833
9834         * symtab.c (compare_search_syms): New function.
9835         (sort_search_symbols): New function.
9836         (search_symbols): Sort symbols after searching rather than
9837         before.
9838
9839 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9840
9841         * NEWS: Linux -> GNU/Linux.
9842
9843 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9844
9845         * gdbarch.sh: For for level one methods, disallow a definition
9846         when partially multi-arched.  Add comments explaining rationale.
9847         * gdbarch.h: Re-generate.
9848
9849 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9850
9851         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9852         multi-arch partial.
9853
9854 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9855
9856         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
9857         field.  Use diff -u.
9858         * gdbarch.c: Re-generate.
9859
9860 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9861
9862         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9863         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9864         partial.
9865
9866 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9867
9868         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9869         multi-arch partial.
9870         (PUSH_ARGUMENTS): Switch to using predefault.
9871         * gdbarch.c: Regenerate.
9872
9873 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9874
9875         * valops.c (PUSH_ARGUMENTS): Delete definition.
9876         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9877         partial.  Default to default_push_arguments.
9878         * gdbarch.h, gdbarch.c: Regenerate.
9879
9880 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9881
9882         * defs.h (throw_exception): Rename return_to_top_level.  Update
9883         comments.
9884         * utils.c (error_stream, internal_verror, quit): Ditto.
9885         * top.c (throw_exception, catcher): Ditto.
9886         * sparclet-rom.c (sparclet_load): Ditto.
9887         * remote.c (interrupt_query, minitelnet): Ditto.
9888         * remote-sds.c (interrupt_query): Ditto.
9889         * remote-mips.c (mips_error, mips_kill): Ditto.
9890         * ocd.c (interrupt_query): Ditto.
9891         * monitor.c (monitor_interrupt_query): Ditto.
9892         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9893         * target.h: Update comment.
9894
9895         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9896
9897 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9898
9899         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9900         default_double_format.
9901         * gdbarch.h, gdbarch.c: Re-generate.
9902         * findvar.c (floatformat_unknown): Delete variable definition.
9903         * doublest.h (floatformat_unknown): Delete variable declaration.
9904
9905 2002-02-09  Jim Blandy  <jimb@redhat.com>
9906
9907         * stabsread.c (read_type): Add code to parse Sun's syntax for
9908         prototyped function types.
9909
9910 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9911
9912         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9913         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9914
9915 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9916
9917         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9918         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
9919         now _initialize_xcoffsolib gets called again and overrides the
9920         commands from solib.c in a native configuration.
9921
9922 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
9923
9924         * doublest.c (store_typed_floating): Don't try to return a value.
9925         Fixes PR gdb/290.
9926
9927 2002-02-08  Jim Blandy  <jimb@redhat.com>
9928
9929         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9930         is prototyped and has no arguments, print its argument list as
9931         `(void)'.
9932
9933 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9934
9935         * MAINTAINERS (write-after-approval): Add myself.
9936         (paper-trail): I've escaped!
9937
9938 2002-02-08  Christopher Faylor  <cgf@redhat.com>
9939
9940         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9941         changes.
9942         (_initialize_check_for_gdb_ini): Ditto.
9943
9944 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
9945
9946         * win32-nat.c (cygwin_pid_to_str): Fix typo.
9947         xaprintf -> xasprintf.
9948
9949 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
9950
9951         * win32-nat.c: Remove use of printf and sprintf functions.
9952
9953 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
9954
9955         * arm-tdep.c (arm_frame_chain_valid): Make static.
9956         (arm_push_arguments): Likewise.
9957         (arm_gdbarch_init): New function.
9958         (_initialize_arm_tdep): Call it.
9959         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9960         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9961         (FRAME_CHAIN_VALID): Delete.
9962         (arm_frame_chain_valid): Delete declaration.
9963         (PUSH_ARGUMENTS): Delete.
9964         (arm_push_arguments): Delete declaration.
9965         (CALL_DUMMY_P): Delete.
9966
9967 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
9968             Corinna Vinschen  <vinschen@redhat.com>
9969
9970         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9971         on builtin float types.
9972
9973 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9974
9975         * utils.c: Include <curses.h> before "bfd.h".
9976         * tui/tui-hooks.c: Likewise.
9977         * tui/tui.c: Likewise.
9978         * tui/tuiCommand.c: Likewise.
9979         * tui/tuiData.c: Likewise.
9980         * tui/tuiDataWin.c: Likewise.
9981         * tui/tuiDisassem.c: Likewise.
9982         * tui/tuiGeneralWin.c: Likewise.
9983         * tui/tuiIO.c: Likewise.
9984         * tui/tuiLayout.c: Likewise.
9985         * tui/tuiRegs.c: Likewise.
9986         * tui/tuiSource.c: Likewise.
9987         * tui/tuiSourceWin.c: Likewise.
9988         * tui/tuiStack.c: Likewise.
9989         * tui/tuiWin.c: Likewise.
9990
9991 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
9992
9993         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9994         to include space for pseudoregs as well. Update loops accordingly.
9995         (sh_fp_frame_init_saved_regs): Ditto.
9996         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9997
9998 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
9999
10000         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10001         Add Richard Earnshaw to Arm maintainers.
10002
10003 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
10004
10005         * defs.h (warning_begin): Delete declaration.
10006
10007         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10008         Delete macro.
10009
10010 2002-02-07  Michael Snyder  <msnyder@redhat.com>
10011
10012         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10013         Logic bug, remove misplaced else.
10014
10015 2002-02-07  Klee Dienes  <klee@apple.com>
10016
10017         * fork-inferior.c (fork_inferior): Add '!' to the list of
10018         characters that need to be quoted when building a string for the
10019         shell.  Quote '!' specifically with a backslash, since CSH chokes
10020         when trying to evaluate "str!str".
10021
10022 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
10023
10024         * rdi-share/host.h: Only provide a typedef for bool if it is not
10025         defined.
10026
10027 2002-02-04  Michael Snyder  <msnyder@redhat.com>
10028
10029         * breakpoint.h (enum bptype): Add new overlay event bp type.
10030         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10031
10032         * breakpoint.c (create_internal_breakpoint): New function.
10033         (internal_breakpoint_number): Moved into create_internal_breakpoint.
10034         (create_longjmp_breakpoint): Use create_internal_breakpoint.
10035         (create_thread_event_breakpoint): Ditto.
10036         (create_solib_event_breakpoint): Ditto.
10037         (create_overlay_event_breakpoint): New function.
10038         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10039         (update_breakpoints_after_exec): Delete and re-initialize
10040         overlay event breakpoints after an exec.  Add FIXME comment
10041         about longjmp breakpoint.
10042         (print_it_typical): Ignore overlay event breakpoints.
10043         (print_one_breakpoint): Ditto.
10044         (mention): Ditto.
10045         (bpstat_what): Do not stop for overlay event breakpoints.
10046         (delete_breakpoint): Don't delete overlay event breakpoints.
10047         (breakpoint_re_set_one): Delete the overlay event breakpoint.
10048         (breakpoint_re_set): Re-create overlay event breakpoint.
10049
10050         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10051         (overlay_manual_command): Disable overlay breakpoints.
10052         (overlay_off_command): Disable overlay breakpoints.
10053
10054 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
10055
10056         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10057         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10058         to here from config/tm-arm.h.
10059         (coff_sym_is_thumb): Make static.
10060         (arm_elf_make_msymbol_special): New function.
10061         (arm_coff_make_msymbol_special): New function.
10062         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10063         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10064         (coff_sym_is_thumb): Delete declaration.
10065         (arm_elf_make_msymbol_special): Declare.
10066         (arm_coff_make_msymbol_special): Declare.
10067         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10068         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10069
10070 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
10071
10072         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10073
10074 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
10075
10076         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10077         * gdbarch.c gdbarch.h: Regenerate.
10078         * arch-utils.c (default_print_float_info): New function.
10079         * arch-utils.h (default_print_float_info): Prototype it.
10080         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10081         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10082         (PRINT_FLOAT_INFO): Document it.
10083
10084         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10085         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10086         (PRINT_FLOAT_INFO): Define.
10087
10088 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
10089
10090         * win32-nat.c (_initialize_check_for_gdb_ini):
10091         Add typecast to sprintf argument to suppress a warning.
10092
10093 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
10094
10095         * win32-nat.c (last_sig): Changed type of variable to target_signal,
10096         to allow easier handling of pass state.
10097         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10098         that gives exception name and address.
10099         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10100         and set last_sig value to ourstatus->value.sig. Some missing
10101         exceptions added.
10102         (child_continue): Correctly report continue_status.
10103         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10104         TARGET_SIGNAL_0 (new default value).
10105         (child_resume): consider sig argument passed to decide if
10106         the exception should be passed to debuggee or not.
10107
10108 2002-02-05  Michael Snyder  <msnyder@redhat.com>
10109
10110         * regcache.c (fetch_register): Call target_fetch_register
10111         only if we don't call FETCH_PSEUDO_REGISTER.
10112         (store_register): Call target_store_register only if we
10113         don't call STORE_PSEUDO_REGISTER.
10114
10115 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
10116
10117         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10118         ELF_MAKE_MSYMBOL_SPECIAL.
10119         * gdbarch.c, gdbarch.h: Regenerate.
10120         * arch-utils.c (default_make_msymbol_special): New function.
10121         * arch-utils.h (default_make_msymbol_special): Export.
10122         * elfread.c (elf_symtab_read): Compile use of
10123         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10124         multiarched.
10125         * coffread.c (coff_symtab_read): Ditto, for
10126         COFF_MAKE_MSYMBOL_SPECIAL.
10127
10128 2002-02-05  Jim Blandy  <jimb@redhat.com>
10129
10130         * solib-svr4.c (svr4_truncate_ptr): New function.
10131         (svr4_relocate_section_addresses): Do the address arithmetic with
10132         the appropriate truncation for target addresses, even when
10133         CORE_ADDR is larger than a target address.
10134
10135 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10136
10137         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10138         to (int *).
10139
10140 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10141
10142         * gdbserver/linux-low.c (kill_inferior): Remove commented out
10143         code.
10144
10145 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10146
10147         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10148
10149 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10150
10151         * gdbserver/linux-low.c: Remove unused include files.
10152
10153 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10154
10155         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10156         (read_inferior_memory): Use it.
10157         (write_inferior_memory): Likewise.
10158
10159 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10160
10161         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10162         grubbing through sys_errlist.
10163
10164 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10165
10166         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10167
10168 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
10169         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10170
10171 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
10172
10173         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10174         (do_sfunc, set_cmd_sfunc): New functions.
10175
10176         * command.h (struct cmd_list_element): Add field func.
10177         * cli/cli-decode.h (struct cmd_list_element): Ditto.
10178         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10179         * cli/cli-decode.h: Ditto.
10180
10181         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10182         (help_all, help_cmd_list): Ditto.
10183         (find_cmd, complete_on_cmdlist): Ditto.
10184         * top.c (execute_command): Ditto.
10185
10186         * cli/cli-setshow.c (do_setshow_command): Call func instead of
10187         function.sfunc.
10188
10189         * infcmd.c (notice_args_read): Fix function signature.
10190
10191         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10192         * cli/cli-decode.c (add_set_cmd): Ditto.
10193         * utils.c (initialize_utils): Ditto.
10194         * maint.c (_initialize_maint_cmds): Ditto.
10195         * infrun.c (_initialize_infrun): Ditto.
10196         * demangle.c (_initialize_demangler): Ditto.
10197         * remote.c (add_packet_config_cmd): Ditto.
10198         * mips-tdep.c (_initialize_mips_tdep): Ditto.
10199         * cris-tdep.c (_initialize_cris_tdep): Ditto.
10200         * proc-api.c (_initialize_proc_api): Ditto.
10201         * kod.c (_initialize_kod): Ditto.
10202         * valprint.c (_initialize_valprint): Ditto.
10203         * top.c (init_main): Ditto.
10204         * infcmd.c (_initialize_infcmd): Ditto.
10205         * corefile.c (_initialize_core): Ditto.
10206         * arm-tdep.c (_initialize_arm_tdep): Ditto.
10207         * arch-utils.c (initialize_current_architecture): Ditto.
10208         (_initialize_gdbarch_utils): Ditto.
10209         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10210
10211         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10212         * wince.c (_initialize_inftarg): Ditto.
10213         * symfile.c (_initialize_symfile): Ditto.
10214         * mips-tdep.c (_initialize_mips_tdep): Ditto.
10215         * language.c (_initialize_language): Ditto.
10216         * arc-tdep.c (_initialize_arc_tdep): Ditto.
10217
10218 2002-02-04  Michael Snyder  <msnyder@redhat.com>
10219
10220         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10221
10222 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
10223
10224         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10225         Add rules for building the register data files.
10226
10227 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
10228
10229         * regformats/regdat.sh: Add braces to the definition of
10230         expedite_regs_${arch}.
10231
10232 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
10233
10234         * regformats/regdef.h (struct reg): Add comment describing the
10235         requirements for offset and size fields.
10236
10237 2002-02-04  Andreas Schwab  <schwab@suse.de>
10238
10239         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10240         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10241
10242 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
10243
10244         * gdbarch.sh (copyright): Update years in generated header.
10245         (SMASH_TEXT_ADDRESS): Add rule.
10246         * gdbarch.h, gdbarch.c: Re-generate.
10247         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10248         * dbxread.c: Likewise.
10249         * dwarfread.c: Likewise.
10250         * elfread.c: Likewise.
10251         * somread.c: Likewise.
10252
10253         * arm-tdep.c (arm_smash_text_address): New function.
10254         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10255
10256 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
10257
10258         Add support for hardware watchpoints on win32 native.
10259         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10260         CONTEXT_DEBUG_REGISTERS.
10261         (dr variable): New variable. Static array containing a local copy
10262         of debug registers.
10263         (debug_registers_changed): New variable.  Reflects when debug registers
10264         are changed and need to be written to inferior.
10265         (debug_registers_used): New variable. Reflects when any debug register
10266         was set, used when new threads are created.
10267         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10268         i386-nat code.
10269         (thread_rec): Set dr array if id is the thread of current_event .
10270         (child_continue, child_resume): Change the debug registers for all
10271         threads if debug_registers_changed.
10272         (child_add_thread): Change the debug registers if debug_registers_used.
10273         * config/i386/cygwin.mh: Add use of i386-nat.o file.
10274         Link nm.h to new nm-cygwin.h file.
10275         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10276         of hardware registers.
10277
10278 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
10279
10280         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10281         Restore behavour broken by 2002-01-20 Andrew Cagney
10282         <ac131313@redhat.com> IEEE_FLOAT removal.
10283
10284 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
10285
10286         * c-valprint.c (c_val_print): Pass a proper valaddr to
10287         cp_print_class_method.
10288         * valops.c (search_struct_method): If there is only one method
10289         and args is NULL, return that method.
10290
10291 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
10292
10293         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10294         accessing tag_name directly.
10295
10296 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
10297
10298         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10299         of accessing tag_name directly.
10300
10301 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
10302
10303         PR gdb/280
10304         * gdbtypes.c (replace_type): New function.
10305         * gdbtypes.h (replace_type): Add prototype.
10306         * stabsread.c (read_type): Use replace_type.
10307
10308 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
10309
10310         * Makefile.in (memattr.o): Add missing dependencies rule.
10311
10312 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10313
10314         * breakpoint.c (break_at_finish_command): Really export.
10315         (break_at_finish_at_depth_command): Ditto.
10316         (tbreak_at_finish_command): Ditto.
10317         * hppa-tdep.c: Include completer.h.
10318         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10319         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10320
10321 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
10322
10323         * utils.c (do_write): New function.
10324         (error_stream): Rewrite combining the code from error_begin and
10325         verror.
10326         (verror): Rewrite using error_stream.
10327         (error_begin): Delete function.
10328
10329 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
10330
10331         * utils.c (error_begin): Make static.
10332         * defs.h (error_begin): Delete declaration.
10333
10334         * linespec.c (cplusplus_error): Replace cplusplus_hint.
10335         (decode_line_1): Use cplusplus_error instead of error_begin,
10336         cplusplus_hint and return_to_top_level.
10337         * coffread.c (coff_symfile_read): Use error instead of error_begin
10338         and return_to_top_level.
10339         * infrun.c (default_skip_permanent_breakpoint): Ditto.
10340
10341 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
10342
10343         * language.h (type_error, range_error): Make string parameter
10344         constant.
10345         * language.c (warning_pre_print): Delete extern declaration.
10346         * dwarfread.c (warning_pre_print): Ditto.
10347         * language.c (type_error, range_error): Rewrite to use verror and
10348         vwarning instead of warning_begin.
10349
10350 2002-02-01  Michael Snyder  <msnyder@redhat.com>
10351
10352         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10353         (set_ignore_count): Move misplaced comment back where it belongs.
10354
10355 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
10356
10357         * command.h (NO_FUNCTION): Delete macro.
10358         * cli/cli-decode.h (NO_FUNCTION): Ditto.
10359         * top.c (execute_command): Replace NO_FUNCTION with NULL.
10360         * tracepoint.c (_initialize_tracepoint): Ditto.
10361         * cli/cli-decode.c (add_set_cmd): Ditto.
10362         * cli/cli-cmds.c (init_cli_cmds): Ditto.
10363
10364 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
10365
10366         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10367         Update ``this'' pointer when calling virtual functions.
10368
10369 2002-02-01  Michael Snyder  <msnyder@redhat.com>
10370
10371         * breakpoint.c (create_temp_exception_breakpoint): Delete.
10372         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10373
10374 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
10375
10376         * regformats/reg-arm.dat: New file.
10377         * regformats/reg-i386.dat: New file.
10378         * regformats/reg-ia64.dat: New file.
10379         * regformats/reg-m68k.dat: New file.
10380         * regformats/reg-mips.dat: New file.
10381         * regformats/reg-ppc.dat: New file.
10382         * regformats/reg-sh.dat: New file.
10383         * regformats/regdef.h: New file.
10384         * regformats/regdat.sh: New file.
10385
10386 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
10387
10388         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10389         (arm_frame_args_address, arm_frame_locals_address): New functions.
10390         (arm_frame_num_args): New function.
10391         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10392         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10393         (FRMA_NUM_ARGS): Call arm_frame_num_args.
10394
10395 2002-01-31  Michael Snyder  <msnyder@redhat.com>
10396
10397         * breakpoint.c (break_at_finish_command): Export.
10398         (break_at_finish_at_depth_command): Export.
10399         (tbreak_at_finish_command): Export.
10400         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10401         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10402         "tbreak" commands, which are HPPA specific.
10403
10404         * printcmd.c (disassemble_command): Remove an ancient
10405         artifact of an old merge.
10406
10407         * symfile.h (enum overlay_debugging_state):
10408         Define enum constant values for overlay mode.
10409         * symfile.c (overlay_debugging): Use enums instead of literals.
10410         (overlay_is_mapped, overlay_auto_command,
10411         overlay_manual_command): Ditto.
10412
10413         * breakpoint.c (insert_breakpoints, remove_breakpoint,
10414         breakpoint_here_p, breakpoint_inserted_here_p,
10415         breakpoint_thread_match, bpstat_stop_status,
10416         describe_other_breakpoints, check_duplicates, clear_command):
10417         Coding standard fixes.
10418
10419         * target.c (target_xfer_memory): Add spaces, coding standard.
10420         (do_xfer_memory): Add missing line to trust-readonly
10421         code: check bfd SEC_READONLY flag for section.
10422
10423 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
10424
10425         * PROBLEMS: Fix typo, 5.1->5.1.1.
10426
10427 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
10428
10429         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10430         data symbols, since we search based on textlow and texthigh.
10431         (find_pc_sect_symtab): Likewise.
10432
10433 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
10434
10435         * defs.h (vwarning): Declare.
10436         * utils.c (vwarning): New function.
10437         (warning): Call vwarning.
10438         (warning_begin): Delete function.
10439
10440         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10441         the warning message.
10442         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10443         warning_begin.
10444
10445 2002-01-30  Michael Snyder  <msnyder@redhat.com>
10446
10447         * NEWS: Mention "set trust-readonly-sections" command.
10448         Mention generate-core-file command.
10449
10450 2002-01-15  Michael Snyder  <msnyder@redhat.com>
10451
10452         * target.c: New command, "set trust-readonly-sections on".
10453         (do_xfer_memory): Honor the suggestion to trust readonly sections
10454         by reading them from the object file instead of from the target.
10455         (initialize_targets): Register command "set trust-readonly-sections".
10456
10457 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
10458
10459         * parse.c (target_map_name_to_register): Simplify, search regs and
10460         pseudo-regs using a single loop.
10461
10462 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
10463
10464         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10465
10466 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
10467
10468         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10469         * config/i386/i386v42mp.mh: Add i387-nat.o .
10470         * i386v4-nat.c: Include i387-nat.h.
10471         (supply_fpregset): Use i387_supply_fsave.
10472         (fill_fpregset): Use i387_fill_fsave.
10473
10474 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
10475
10476         * arm-tdep.c (arm_call_dummy_words): Define.
10477         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10478         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10479         (CALL_DUMMY_WORDS): Define.
10480         (arm_call_dummy_words): Declare.
10481         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10482         (arm_linux_call_dummy_words): Declare.
10483
10484 2002-01-30  Andreas Schwab  <schwab@suse.de>
10485
10486         * m68klinux-nat.c: Fix last change to use regcache_collect
10487         instead of referencing registers[] directly.
10488
10489 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
10490
10491         * parse.c (target_map_name_to_register): Delete code wrapped in
10492         #ifdef REGISTER_NAME_ALIAS_HOOK.
10493
10494 2002-01-28  Michael Snyder  <msnyder@redhat.com>
10495
10496         * regcache.c (legacy_read_register_gen): Need to be able to
10497         read pseudo-register as well as real register.
10498         (legacy_write_register_gen): Ditto.
10499
10500 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
10501
10502         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10503         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10504         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10505         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10506         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10507         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10508         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10509         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10510         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10511         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10512         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10513         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10514         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10515         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10516         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10517         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10518         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10519         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10520         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10521         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10522
10523 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
10524
10525         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10526         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10527         (initialize_current_architecture): Update target_byte_order using
10528         information from BFD.
10529         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10530         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10531
10532 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
10533
10534         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10535         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
10536
10537         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10538         #ifdef INVALID_FLOAT.
10539         * infcmd.c (do_registers_info): Ditto.
10540         * values.c (unpack_double): Ditto.  Add comment.
10541
10542         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10543         already commented out.
10544
10545 2002-01-26  Andreas Schwab  <schwab@suse.de>
10546
10547         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10548         * m68klinux-nat.c: Update ptrace interface for fetching/storing
10549         registers and add support for PTRACE_GETREGS.
10550
10551 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
10552
10553         GDB 5.1.1 released from 5.1 branch.
10554         * NEWS: Add 5.1.1 news.
10555         * README: Sync with 5.1 branch.
10556
10557 2002-01-23  Fred Fish  <fnf@redhat.com>
10558
10559         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10560         stabstring on initial malloc.  Reallocing will copy it for us,
10561         if necessary.
10562
10563 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
10564
10565         * Makefile.in (hpread_h): Delete.
10566         (HFILES_NO_SRCDIR): Remove hpread.h.
10567         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10568         (hpread.o): Update dependencies.
10569         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10570
10571         * hp-psymtab-read.c: Remove file.
10572         * hp-symtab-read.c: Remove file.
10573         * hpread.h: Remove file.
10574
10575         * hpread.c: Merge all contents of hp-psymtab-read.c,
10576         hp-symtab-read.c and hpread.h into this file, as it was prior to
10577         January 1999.
10578
10579         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10580         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10581         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10582         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10583
10584 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
10585
10586         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10587         fill_gregset): Call gdbarch_tdep() just once, assign result to
10588         variable and use that, instead of calling the function several
10589         times.
10590
10591 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10592
10593         * configure.host: Accept sparcv9 as alias for sparc64.
10594         * configure.tgt: Likewise.
10595
10596 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
10597
10598         * solib-aix5.c (build_so_list_from_mapfile)
10599         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10600         arguments is not reversed.
10601         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10602         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10603
10604 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
10605
10606         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10607         modified version of obsolete sh_fetch_pseudo_register.
10608         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10609         (sh4_register_read): New function.
10610         (sh_pseudo_register_write): New function. Renamed and modified
10611         version of obsolete sh_store_pseudo_register.
10612         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10613         (sh4_register_write): New function.
10614         (sh_gdbarch_init): Remove setting of gdbarch function
10615         fetch_pseudo_register and store_pseudo_register. Remove setting of
10616         register_convert_to_raw, register_convert_to_virtual,
10617         register_convertible.
10618         (sh_sh4_register_convertible): Delete. No longer needed. All is
10619         taken care by architecture specific functions
10620         register_read/register_write.
10621         (sh_sh4_register_convert_to_virtual): Make static.
10622         (sh_sh4_register_convert_to_raw): Ditto.
10623
10624 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
10625
10626         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10627         (floatformat_is_nan, floatformat_mantissa): Ditto.
10628
10629         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10630         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10631         builtin_type_ieee_double_little,
10632         builtin_type_ieee_double_littlebyte_bigword,
10633         builtin_type_m68881_ext, builtin_type_i960_ext,
10634         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10635         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10636         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10637         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10638
10639 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
10640
10641         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10642         parameter.  Set frameless flag if it exists and depended of
10643         whether the scanned function is frameless or not.
10644         (xstormy16_skip_prologue): If function is frameless, return
10645         result of xstormy16_scan_prologue().
10646         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10647         call.
10648
10649 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
10650
10651         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10652         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10653         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10654         sh_sh4_register_byte, sh_sh4_register_raw_size,
10655         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10656         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10657         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10658         sh_store_pseudo_register, sh_do_pseudo_register): Call
10659         gdbarch_tdep() just once, assign result to variable and use that,
10660         instead of calling the function several times.
10661
10662 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
10663
10664         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10665         macros instead of LAST_FPU_CTRL_REGNUM.
10666         (store_register): Likewise.
10667
10668 2002-01-21  Jim Blandy  <jimb@redhat.com>
10669
10670         * infcmd.c (run_command): Check that the `exec' target layer's BFD
10671         is up-to-date before running the program, not just when a program
10672         exits.
10673
10674 2002-01-21  Fred Fish  <fnf@redhat.com>
10675
10676         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10677         when we have found all instructions we are looking for.
10678
10679 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
10680
10681         * arm-tdep.c (arm_register_name): New function.
10682         (arm_registers_names): Make static.
10683         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10684         (arm_register_name): Declare.
10685         (REGISTER_NAME): Use it.
10686
10687 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
10688             Kevin Buettner  <kevinb@redhat.com>
10689
10690         Convert arm targets to new FRAME interface.
10691         * arm-tdep.c (struct frame_extra_info): Remove fsr.
10692         (arm_frame_find_save_regs): Delete.
10693         (arm_frame_init_saved_regs): New.
10694         (arm_init_extra_frame_info): Alloacte saved_regs as required.
10695         Allocate extra_info as required.  Convert all uses of fsr.regs
10696         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10697         to use extra_info.
10698         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10699         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10700         (check_prologue_cache, save_prologue_cache): Likewise.
10701         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10702         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10703         (FRAME_FIND_SAVED_REGS): Delete.
10704         (arm_frame_find_saved_regs): Delete prototype.
10705         (arm_frame_init_saved_regs): New prototype.
10706         (FRAME_INIT_SAVED_REGS): Define.
10707
10708 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10709
10710         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10711
10712 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10713
10714         From Jeff Law <law@redhat.com>:
10715         * infttrace.c: Include <sys/pstat.h>.
10716         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
10717         exec file if the ttrace equivalent fails.
10718
10719 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10720
10721         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10722         (closeLogFile): Ditto.
10723
10724 2002-01-20  Michael Chastain  <mec@shout.net>
10725
10726         * top.c (print_gdb_version): Bump copyright year to 2002.
10727
10728 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10729
10730         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10731         Zannoni and Eli Zaretskii.
10732
10733 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
10734
10735         * buildsym.c: Update copyright years.
10736         * c-typeprint.c: Likewise.
10737         * dwarf2read.c: Likewise.
10738         * f-typeprint.c: Likewise.
10739         * gdbtypes.c: Likewise.
10740         * gdbtypes.h: Likewise.
10741         * hp-symtab-read.c: Likewise.
10742         * hpread.c: Likewise.
10743         * mdebugread.c: Likewise.
10744         * p-typeprint.c: Likewise.
10745
10746 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10747
10748         * remote-sim.c (gdbsim_open): Simplify code testing the macro
10749         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
10750         byte-order selectable.
10751         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10752         * arch-utils.c: Ditto.
10753         (set_endian): Ditto.
10754         (set_endian_from_file): Ditto.
10755         * gdbserver/low-sim.c (create_inferior): Ditto.
10756         * gdbarch.sh: Ditto.
10757         * gdbarch.h: Re-generate.
10758         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10759         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10760         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10761         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10762         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10763         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10764         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10765         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10766         macro definition.
10767         * config/mips/tm-wince.h: Remove #undef of macro
10768         TARGET_BYTE_ORDER_SELECTABLE.
10769         * config/sh/tm-wince.h: Ditto.
10770
10771 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
10772
10773         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10774         member function fields.  Add accessor macro
10775         TYPE_FN_FIELD_ARTIFICIAL.
10776         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10777         * c-typeprint.c (c_type_print_base): Skip artificial member
10778         functions.
10779
10780 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
10781
10782         * f-typeprint.c: Delete unused function f_type_print_args.
10783         * p-typeprint.c: Delete unused function pascal_type_print_args.
10784
10785 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
10786
10787         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
10788         comment.  Add ``artificial'' to ``union field_location''.
10789
10790         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10791
10792         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10793         * mdebugread.c (parse_symbol): Likewise.
10794         * stabsread.c (define_symbol): Likewise.
10795         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10796         initializing TYPE_FIELD_BITPOS to n (obsolete).
10797         (hpread_doc_function_type): Likewise.
10798         * hpread.c (hpread_function_type): Likewise.
10799
10800 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10801
10802         * configure.in (host_makefile_frag): Only require a host makefile
10803         fragment when a native build.
10804         * configure: Re-generate.
10805
10806 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10807
10808         * doublest.h (floatformat_from_type): Declare.
10809         * doublest.c (floatformat_from_type): New function.
10810         (convert_typed_floating): Use.
10811
10812         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10813         call to function floatformat_from_type.
10814
10815         * gdbarch.sh (IEEE_FLOAT): Delete.
10816         * gdbarch.h, gdbarch.c: Re-generate.
10817         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10818         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10819         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10820         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10821         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10822         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10823         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10824         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10825         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10826         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10827         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10828         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10829
10830         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10831         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10832         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10833         * sh-tdep.c (sh_gdbarch_init): Ditto.
10834         * mips-tdep.c (mips_gdbarch_init): Ditto.
10835         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10836         * cris-tdep.c (cris_gdbarch_init): Ditto.
10837
10838 2002-01-20  Jiri Smid  <smid@suse.cz>
10839
10840         * configure.host, configure.tgt: Support x86-64.
10841         * NEWS: Note new target x86-64.
10842
10843         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10844         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10845         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10846         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10847         x86-64-linux-nat.o): Fix dependencies.
10848
10849 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10850
10851         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10852         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10853         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10854         * config/sparc/xm-sun4os4.h: Delete file.
10855         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10856
10857 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10858
10859         * config/sparc/sparclynx.mh (XM_FILE): Delete.
10860         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10861         * config/m68k/m68klynx.mh (XM_FILE): Delete.
10862         * config/i386/i386lynx.mh (XM_FILE): Delete.
10863         * config/rs6000/xm-rs6000ly.h: Delete file.
10864         * config/sparc/xm-sparclynx.h: Delete file.
10865         * config/m68k/xm-m68klynx.h: Delete file.
10866         * config/i386/xm-i386lynx.h: Delete file.
10867         * config/xm-lynx.h: Delete file.
10868         * config/djgpp/fnchange.lst: Update.
10869
10870 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10871
10872         * alpha-tdep.c (alpha_register_byte): New function.
10873         (alpha_register_raw_size): Ditto.
10874         (alpha_register_virtual_size): Ditto.
10875         (alpha_skip_prologue_internal): Renamed from
10876         alpha_skip_prologue.
10877         (alpha_skip_prologue): New version that calls
10878         alpha_skip_prologue_internal.
10879         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10880         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10881         second argument from alpha_skip_prologue.
10882         (REGISTER_BYTE): Use alpha_register_byte.
10883         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10884         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10885         (FRAMELESS_FUNCTION_INVOCATION): Use
10886         generic_frameless_function_invocation_not.
10887         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10888         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10889
10890 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10891
10892         * config/mips/xm-news-mips.h: Delete file.
10893         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10894
10895         * config/m88k/xm-m88k.h: Delete file.
10896         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10897         * config/m88k/xm-delta88v4.h: Ditto.
10898         * config/m88k/xm-delta88.h: Ditto.
10899
10900         * config/alpha/xm-fbsd.h: Delete file.
10901         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10902
10903         * config/sparc/xm-sparc.h: Delete file.
10904         * Makefile.in (xm-sun4os4.h): Delete dependency.
10905         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10906         * config/sparc/xm-sun4os4.h: Ditto.
10907         * config/sparc/xm-linux.h: Ditto.
10908
10909         * config/i386/xm-windows.h: Delete file.
10910
10911 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10912
10913         * utils.c: Include <sys/param.h> for MAXPATHLEN.
10914         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10915
10916 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10917
10918         * alpha-tdep.c (alpha_call_dummy_words): New.
10919         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10920         (CALL_DUMMY_P): Define.
10921         (CALL_DUMMY_WORDS): Define.
10922         (SIZEOF_CALL_DUMMY_WORDS): Define.
10923
10924 2002-01-19  Per Bothner  <per@bothner.com>
10925
10926         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
10927         isn't NULL, which can happen with some gcj-3.x-produced code.
10928
10929 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10930
10931         * alpha-tdep.c (alpha_register_virtual_type): New function.
10932         (alpha_init_frame_pc_first): Ditto.
10933         (alpha_fix_call_dummy): Ditto.
10934         (alpha_store_struct_return): Ditto.
10935         (alpha_extract_struct_value_address): Ditto.
10936         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10937         alpha_register_virtual_type.
10938         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10939         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10940         alpha_extract_struct_value_address.
10941         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10942         (INIT_FRAME_PC): Use init_frame_pc_noop.
10943         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10944
10945 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
10946
10947         * i386gnu-nat.c: Include "i386-tdep.h".
10948         (fetch_fpregs): Simplify code dealing with uninitialized floating
10949         point states such that it doesn't require FP7_REGNUM.
10950
10951 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10952
10953         * alpha-tdep.c (frame_extra_info): New.
10954         (alpha_find_saved_regs): Make static.  Use
10955         frame->extra_info.
10956         (alpha_frame_init_saved_regs): New function.
10957         (alpha_frame_saved_pc): Use frame->extra_info.
10958         (temp_saved_regs): Don't declare as struct frame_saved_regs.
10959         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10960         (init_extra_frame_info): Rename to...
10961         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
10962         (alpha_print_extra_frame_info): New function.
10963         (alpha_frame_locals_address): Ditto.
10964         (alpha_frame_args_address): Ditto.
10965         (alpha_pop_frame): Use frame->extra_info.
10966         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10967         alpha_frame_args_address.
10968         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10969         (alpha_find_saved_regs): Remove prototype.
10970         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10971         (EXTRA_FRAME_INFO): Remove.
10972         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10973         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10974
10975 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10976
10977         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10978         (alpha_cannot_fetch_register): Ditto.
10979         (alpha_cannot_store_register): Ditto.
10980         (alpha_register_convertible): Ditto.
10981         (alpha_use_struct_convention): Ditto.
10982         * config/alpha/tm-alpha.h: Update copyright years.
10983         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10984         (INNER_THAN): Use core_addr_lessthan.
10985         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10986         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10987         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10988         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10989         (FRAME_CHAIN): Remove unnecessary cast.
10990
10991 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
10992
10993         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10994         obsolete.
10995
10996 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
10997
10998         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
10999         * monitor.c, remote-array.c, remote-bug.c: Ditto.
11000         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11001         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11002         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11003         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11004         * x86-64-linux-nat.c: Ditto.
11005
11006 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11007
11008         * alpha-tdep.c (alpha_register_name): New function.
11009         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11010         (REGISTER_NAME): Define.
11011
11012 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11013
11014         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11015
11016 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11017
11018         * alpha-tdep.c: Update copyright years.
11019         (alpha_next_pc): New function.
11020         (alpha_software_single_step): Ditto.
11021         * config/alpha/tm-alpha.h: Add prototype for
11022         alpha_software_single_step.
11023
11024 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11025
11026         * alphabsd-nat.c: Update copyright years.
11027         (fill_gregset): Use regcache_collect.
11028         (fill_fpregset): Likewise.
11029         (fetch_inferior_registers): Only fetch integer registers
11030         if requested to do so.
11031         (store_inferior_registers): Only store integer registers
11032         if requested to do so.
11033
11034 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
11035
11036         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11037         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11038         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11039         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11040         * config/alpha/fbsd.mh (XDEPFILES): Delete.
11041         * config/arm/linux.mh (XDEPFILES): Delete.
11042         * config/arm/nbsd.mh (XDEPFILES): Delete.
11043         * config/i386/i386dgux.mh (XDEPFILES): Delete.
11044         * config/i386/i386sol2.mh (XDEPFILES): Delete.
11045         * config/i386/i386m3.mh (XDEPFILES): Delete.
11046         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11047         * config/i386/i386gnu.mh (XDEPFILES): Delete.
11048         * config/i386/fbsd.mh (XDEPFILES): Delete.
11049         * config/i386/i386bsd.mh (XDEPFILES): Delete.
11050         * config/i386/i386sco5.mh (XDEPFILES): Delete.
11051         * config/i386/i386v4.mh (XDEPFILES): Delete.
11052         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11053         * config/i386/i386sco4.mh (XDEPFILES): Delete.
11054         * config/i386/i386aix.mh (XDEPFILES): Delete.
11055         * config/i386/go32.mh (XDEPFILES): Delete.
11056         * config/i386/cygwin.mh (XDEPFILES): Delete.
11057         * config/i386/i386lynx.mh (XDEPFILES): Delete.
11058         * config/i386/i386mach.mh (XDEPFILES): Delete.
11059         * config/i386/i386v32.mh (XDEPFILES): Delete.
11060         * config/i386/linux.mh (XDEPFILES): Delete.
11061         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11062         * config/i386/ncr3000.mh (XDEPFILES): Delete.
11063         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11064         * config/i386/i386sco.mh (XDEPFILES): Delete.
11065         * config/i386/i386v.mh (XDEPFILES): Delete.
11066         * config/i386/nbsd.mh (XDEPFILES): Delete.
11067         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11068         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11069         * config/i386/symmetry.mh (XDEPFILES): Delete.
11070         * config/i386/obsd.mh (XDEPFILES): Delete.
11071         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11072         * config/ia64/linux.mh (XDEPFILES): Delete.
11073         * config/ia64/aix.mh (XDEPFILES): Delete.
11074         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11075         * config/m68k/dpx2.mh (XDEPFILES): Delete.
11076         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11077         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11078         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11079         * config/m68k/linux.mh (XDEPFILES): Delete.
11080         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11081         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11082         * config/m68k/nbsd.mh (XDEPFILES): Delete.
11083         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11084         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11085         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11086         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11087         * config/m88k/delta88.mh (XDEPFILES): Delete.
11088         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11089         * config/m88k/m88k.mh (XDEPFILES): Delete.
11090         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11091         * config/mips/linux.mh (XDEPFILES): Delete.
11092         * config/mips/irix6.mh (XDEPFILES): Delete.
11093         * config/mips/irix5.mh (XDEPFILES): Delete.
11094         * config/mips/irix4.mh (XDEPFILES): Delete.
11095         * config/mips/irix3.mh (XDEPFILES): Delete.
11096         * config/mips/decstation.mh (XDEPFILES): Delete.
11097         * config/mips/mipsm3.mh (XDEPFILES): Delete.
11098         (NATDEPFILES): Move core-aout.o to here.
11099         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11100         * config/pa/hpux1020.mh (XDEPFILES): Delete.
11101         * config/pa/hppabsd.mh (XDEPFILES): Delete.
11102         * config/pa/hppahpux.mh (XDEPFILES): Delete.
11103         * config/pa/hpux11w.mh (XDEPFILES): Delete.
11104         * config/pa/hppaosf.mh (XDEPFILES): Delete.
11105         * config/pa/hpux11.mh (XDEPFILES): Delete.
11106         * config/powerpc/aix.mh (XDEPFILES): Delete.
11107         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11108         * config/powerpc/linux.mh (XDEPFILES): Delete.
11109         * config/romp/rtbsd.mh: Rename XDEPFILES.
11110         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11111         * config/rs6000/aix4.mh (XDEPFILES): Delete.
11112         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11113         * config/s390/s390.mh (XDEPFILES): Delete.
11114         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11115         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11116         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11117         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11118         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11119         * config/sparc/nbsd.mh (XDEPFILES): Delete.
11120         * config/sparc/linux.mh (XDEPFILES): Delete.
11121         * config/vax/vaxult.mh (XDEPFILES): Delete.
11122         * config/vax/vaxult2.mh (XDEPFILES): Delete.
11123         * Makefile.in (DEPFILES): Remove XDEPFILES.
11124
11125 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
11126
11127         * utils.c (internal_verror): Fix comments, default is yes not no.
11128         Update queries to match.  Default to quit and dump core.
11129
11130 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
11131
11132         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
11133         copyright.
11134         * defs.h, event-top.c, gdbcmd.h: Ditto.
11135         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11136         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11137         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11138         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11139         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11140         * mi/mi-main.c:Ditto.
11141
11142         * stack.c, symfile.c: Update copyright.
11143
11144 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
11145
11146         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11147         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11148         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11149         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11150
11151 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
11152
11153         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11154         * gdbserver/low-lynx.c (myattach): Likewise.
11155         * gdbserver/low-nbsd.c (myattach): Likewise.
11156         * gdbserver/low-sim.c (myattach): Likewise.
11157         * gdbserver/low-sparc.c (myattach): Likewise.
11158         * gdbserver/low-sun3.c (myattach): Likewise.
11159
11160         * gdbserver/low-linux.c (myattach): New function.
11161
11162         * gdbserver/server.c (attach_inferior): New function.
11163         (main): Handle "--attach".
11164
11165 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
11166
11167         * MAINTAINERS (language support): Daniel Jacobwitz is C++
11168         maintainer.
11169
11170 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
11171
11172         * c-typeprint.c (is_type_conversion_operator): Add additional
11173         check for non-conversion operators.
11174
11175 2002-01-15  Michael Snyder  <msnyder@redhat.com>
11176
11177         * linux-proc.c: Add "info proc" command, a la procfs.c.
11178         (read_mapping): New function, abstract and re-use code.
11179         (linux_find_memory_regions): Use new func read_mapping.
11180         (linux_info_proc_cmd): New function, implement "info proc".
11181         (_initialize_linux_proc): Add new command "info proc".
11182
11183 2002-01-15  Michael Snyder  <msnyder@redhat.com>
11184
11185         * symfile.c (generic_load): Use bfd_map_over_sections method
11186         instead of manipulating bfd structure members directly.
11187         (add_section_size_callback): New function, bfd sections callback
11188         used by generic_load.
11189         (load_sections_callback): New function, bfd sections callback
11190         used by generic_load.
11191
11192 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
11193
11194         [Based on work by Jim Blandy]
11195         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11196         (builtin_type_vec128): Export.
11197         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11198         types.
11199         (builtin_type_vec128): New builtin type for 128 bit vector
11200         registers.
11201         (build_gdbtypes): Initialize builtin_type_v16qi and
11202         builtin_type_v8hi. Create the vec128 register builtin type
11203         structure.
11204         (build_builtin_type_vec128): New function.
11205         (_initialize_gdbtypes): Register builtin_type_v16qi and
11206         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11207         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11208         AltiVec register to new builtin type.
11209
11210 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
11211
11212         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11213         to make_cv_type.
11214
11215 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
11216
11217         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11218         CLEAN_UP_REGISTER_VALUE.
11219         * regcache.c (supply_register): Update only call.
11220
11221 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
11222
11223         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11224         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11225         a29k-*-vxworks* targets as obsolete.
11226
11227 2002-01-14  Michael Snyder  <msnyder@redhat.com>
11228
11229         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11230         until we can resolve portability issues.
11231         * gregset.h: Remove references to fpxregs.
11232         * gcore.c (gcore_command): Initialize note_sec to NULL.
11233
11234 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
11235
11236         * signals.c (target_signal_to_name): Rewrite.  Only use
11237         signals[].name when in bounds and non-NULL.
11238
11239 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
11240
11241         From Petr Ledvina <ledvinap@kae.zcu.cz>:
11242         * signals.c (target_signal_to_name): Verify that SIG is within the
11243         bounds of the signals array.
11244
11245 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
11246
11247         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11248
11249 2002-01-13  Keith Seitz  <keiths@redhat.com>
11250
11251         * stack.c (print_frame_info_base): Print the frame's pc
11252         only if when print_frame_info_listing_hook is not defined.
11253
11254 2002-01-13  Keith Seitz  <keiths@redhat.com>
11255
11256         * varobj.c (varobj_set_value): Make sure that there were no
11257         errors evaluating the object before attempting to set its
11258         value.
11259         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11260         so this offset adjustment is no longer necessary.
11261         (create_child): Don't set the error flag if the child is
11262         a CPLUS_FAKE_CHILD.
11263         (value_of_child): If value_fetch_lazy fails, return NULL
11264         so that callers will be notified that an error occurred.
11265         (c_value_of_variable): Delay check of variable's validity
11266         until later. We actually want all structs and unions to have
11267         the value "{...}".
11268         Do not return "???" for variables which could not be evaluated.
11269         This error condition must be returned to the caller so that it
11270         can get the error condition from gdb.
11271         (cplus_name_of_child): Adjust index for vptr before figuring
11272         out the name of the child.
11273         (cplus_value_of_child): If a child's (real) parent is not valid,
11274         don't even bother trying to give a value for it. Just return
11275         an error. Change all instances in this function.
11276         (cplus_type_of_child): If our parent is one of the "fake"
11277         parents, we need to get at the type of the real parent, and
11278         derive the child's true type using this information.
11279
11280 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
11281
11282         From 2002-01-09 John Marshall <johnm@falch.net>:
11283         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11284         sources.redhat.com, and tweak some related URLs which had
11285         suffered from linkrot.
11286
11287 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
11288
11289         From Jeff law:
11290         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11291         structures passed in registers.
11292
11293 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
11294
11295         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11296         white space which prevented compilation.  Reported by DSK
11297         <dsk@student.unsw.edu.au>.
11298
11299 2002-01-11  Michael Snyder  <msnyder@redhat.com>
11300
11301         * symfile.c (build_section_addr_info_from_section_tab):
11302         Use bfd access method instead of manipulating bfd directly.
11303         (syms_from_objfile): Ditto.
11304         (simple_overlay_update_1): Ditto.
11305         (simple_overlay_update): Ditto.
11306         (generic_load): Ditto.
11307         (overlay_unmapped_address): FIXME comment, bfd access methods.
11308         (sections_overlap): FIXME comment, bfd access methods.
11309         (pc_in_mapped_range): FIXME comment, bfd access methods.
11310         (pc_in_unmapped_range): FIXME comment, bfd access methods.
11311         (section_is_mapped): FIXME comment, bfd access methods.
11312         (section_is_overlay): FIXME comment, bfd access methods.
11313
11314         * symfile.c (generic_load): Whitespace and long line cleanups.
11315         Remove duplicate variable, change several local variables to
11316         more appropriate data types.
11317         (print_transfer_performance): Use %lu instead of %ld for ulongs.
11318
11319 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
11320
11321         From Peter Schauer:
11322         * language.c (longest_local_hex_string_custom): Use phex_nz to
11323         convert NUM to a hex string.
11324
11325 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
11326
11327         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11328         the function.
11329         Update Copyright year.
11330
11331 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
11332
11333         * language.c (longest_raw_hex_string): Delete unused function.
11334
11335 2002-01-11  Petr Sorfa  <petrs@caldera.com>
11336
11337         * MAINTAINERS (write-after-approval): Add myself.
11338         * dwarf2read.c (read_tag_string_type): Handling of
11339         DW_AT_byte_size.
11340         (read_tag_string_type): FORTRAN fix to prevent propagation of
11341         first string size.
11342         (set_cu_language): Handling of DW_LANG_Fortran95
11343
11344 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
11345
11346         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11347         GETPID(inferior_ptid).
11348         (store_inferior_registers): Likewise.
11349
11350 2002-01-10  Jason Merrill  <jason@redhat.com>
11351
11352         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11353         Fix DW_OP_minus.
11354
11355 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
11356
11357         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11358         and bfd/elf32-sh-nbsd.c.
11359
11360 2002-01-10  Michael Snyder  <msnyder@redhat.com>
11361
11362         * NEWS: Mention --pid and corefile/proc-id behavior change.
11363
11364         * Makefile.in: Add rules for gcore.o and linux-proc.o.
11365         * gcore.c: Include cli/cli-decode.h instead of command.h.
11366
11367         * main.c (captured_main): Add new command line option "--pid".
11368         If the second command line argument (following the symbol-file)
11369         begins with a digit, try to attach to it before trying to open
11370         it as a corefile.
11371         (print_gdb_help): Document the "--pid" argument.
11372
11373 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
11374
11375         * completer.c (command_completer): New function.
11376
11377         * completer.h <command_completer>: Add prototype.
11378
11379         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11380         completer for the "help" command.
11381
11382 2002-01-09  Jason Merrill  <jason@redhat.com>
11383
11384         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11385
11386 2002-01-09  Michael Snyder  <msnyder@redhat.com>
11387
11388         * i386-linux-nat.c (fill_fpxregset): Make global.
11389         (store_fpxregset): Ditto.
11390
11391         * gregset.h (gdb_fpxregset_t): Define.
11392         (supply_fpxregset): Prototype.
11393         (fill_fpxregset): Prototype.
11394
11395         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11396
11397 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
11398
11399         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11400         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11401         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11402
11403 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
11404
11405         * MAINTAINERS: Update target maintainer rules so that any
11406         Maintainer can approve a tested patch for a maintenance-only
11407         target.
11408
11409 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
11410
11411         * MAINTAINERS (write-after-approval): Add myself.
11412
11413         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11414         IN_SIGTRAMP.
11415
11416 2002-01-08  Michael Snyder  <msnyder@redhat.com>
11417
11418         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11419         real name of the executable, rather than the /proc name.
11420
11421 2002-01-03  Michael Snyder  <msnyder@redhat.com>
11422
11423         Implement a "generate-core-file" command in gdb, save target state.
11424         * gcore.c: New file.  Implement new command 'generate-core-file'.
11425         Save a corefile image of the current state of the inferior.
11426         * linux-proc.c: Add linux-specific code for saving corefiles.
11427         * target.h (struct target_ops): Add new target vectors for saving
11428         corefiles; to_find_memory_regions and to_make_corefile_notes.
11429         (target_find_memory_regions): New macro.
11430         (target_make_corefile_notes): New macro.
11431         * target.c (update_current_target): Inherit new target methods.
11432         (dummy_find_memory_regions): New place-holder method.
11433         (dummy_make_corefile_notes): New place-holder method.
11434         (init_dummy_target): Initialize new dummy target vectors.
11435         * exec.c (exec_set_find_memory_regions): New function.
11436         Allow the exec_ops vector for memory regions to be taken over.
11437         (exec_make_note_section): New function, target vector method.
11438         * defs.h (exec_set_find_memory_regions): Export prototype.
11439         * procfs.c (proc_find_memory_regions): New function, corefile method.
11440         (procfs_make_note_section): New function, corefile method.
11441         (init_procfs_ops): Set new target vector pointers.
11442         (find_memory_regions_callback): New function.
11443         (procfs_do_thread_registers): New function.
11444         (procfs_corefile_thread_callback): New function.
11445         * sol-thread.c (sol_find_memory_regions): New function.
11446         (sol_make_note_section): New function.
11447         (init_sol_thread_ops): Initialize new target vectors.
11448         * inftarg.c (inftarg_set_find_memory_regions): New function.
11449         Allow to_find_memory_regions vector to be taken over.
11450         (inftarg_set_make_corefile_notes): New function.
11451         Allow to_make_corefile_notes vector to be taken over.
11452         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11453         interface layer if not target_has_execution (may be a corefile).
11454         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11455         * config/sparc/sun4sol2.mh: Ditto.
11456         * config/alpha/alpha-linux.mh: Ditto.
11457         * config/arm/linux.mh: Ditto.
11458         * config/i386/x86-64linux.mh: Ditto.
11459         * config/ia64/linux.mh: Ditto.
11460         * config/m68k/linux.mh: Ditto.
11461         * config/mips/linux.mh: Ditto.
11462         * config/powerpc/linux.mh: Ditto.
11463         * config/sparc/linux.mh: Ditto.
11464
11465 2002-01-07  Michael Snyder  <msnyder@redhat.com>
11466
11467         * arm-linux-nat.c: Remove references to regcache.c internal data
11468         (registers[] and register_valid[]).
11469
11470 2002-01-07  Michael Snyder  <msnyder@redhat.com>
11471
11472         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
11473         so that attaching to a pid will automatically read the process's
11474         symbol file and shlibs.
11475         * Makefile.in: Add rule for linux-proc.o.
11476         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11477         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11478         * config/arm/linux.mh: Ditto.
11479         * config/i386/linux.mh: Ditto.
11480         * config/i386/x86-64linux.mh: Ditto.
11481         * config/ia64/linux.mh: Ditto.
11482         * config/m68k/linux.mh: Ditto.
11483         * config/mips/linux.mh: Ditto.
11484         * config/powerpc/linux.mh: Ditto.
11485         * config/sparc/linux.mh: Ditto.
11486
11487 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
11488
11489         * win32-nat.c: Add i386-tdep.h dependency.
11490
11491 2002-01-07  Michael Snyder  <msnyder@redhat.com>
11492
11493         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11494         instead of bfd_get_arch_size.  Don't bail out just because
11495         there's no exec_bfd.
11496
11497         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11498         * p-valprint.c (pascal_object_print_value): Ditto.
11499         * somread.c (som_symtab_read): Ditto.
11500         * symfile.c (simple_free_overlay_region_table): Ditto.
11501         * valops.c (value_assign): Ditto.
11502
11503         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11504         use tilde_expand and strerror for opening save-tracepoints file.
11505
11506         * thread-db.c (thread_db_new_objfile): Indendation fix.
11507
11508         * infptrace.c (GDB_MAX_ALLOCA): New define.
11509         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11510         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11511         can be overridden with whatever value is appropriate to the host).
11512         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11513         alloca to allocate potentially large buffer.
11514         * rs6000-nat.c (child_xfer_memory): Ditto.
11515         * symm-nat.c (child_xfer_memory): Ditto.
11516         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11517
11518 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
11519
11520         From Nick Clifton  <nickc@redhat.com>
11521         * d10v-tdep.c: Set STACK_START to 0x200bffe.
11522
11523 2002-01-07  Michael Snyder  <msnyder@redhat.com>
11524
11525         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11526         Don't use exec_bfd if it's NULL.
11527
11528 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
11529
11530         * valops.c (value_arg_coerce): Fix formatting.
11531
11532 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
11533
11534         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11535         * gnu-nat.c: Ditto.
11536
11537 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
11538
11539         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11540         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11541         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11542         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11543         z8k-coff have not been multi-arched.  Update z8k-coff build
11544         status.
11545
11546 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
11547
11548         * MAINTAINERS: Mark a29k target as obsolete.
11549         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11550         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
11551         comments.
11552         * NEWS: Note that a29k targets are obsolete.
11553         * a29k-tdep.c: Mark as obsolete.
11554         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11555         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11556         a29k-*-vxworks* targets as obsolete.
11557         * remote-adapt.c: Obsolete.
11558         * remote-eb.c: Obsolete.
11559         * remote-mm.c: Obsolete.
11560         * remote-udi.c: Obsolete.
11561         * config/a29k/a29k-udi.mt: Obsolete.
11562         * config/a29k/a29k.mt: Obsolete.
11563         * config/a29k/tm-a29k.h: Obsolete.
11564         * config/a29k/tm-vx29k.h: Obsolete.
11565         * config/a29k/vx29k.mt: Obsolete.
11566
11567 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
11568
11569         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11570         with BFD_ENDIAN_BIG.
11571
11572 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
11573
11574         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11575         * configure, config.in: Re-generate.
11576         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11577         * defs.h: Do not include <endian.h>.
11578
11579 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
11580
11581         * acconfig.h (HAVE_PT_GETXMMREGS): New.
11582         * config.in: Regenerate.
11583         * configure.in: Update copyright years.
11584         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11585         * configure: Regenerate.
11586         * i386bsd-nat.c: Update copyright years.
11587         (fill_gregset): Use regcache_collect.
11588         (fetch_inferior_registers): Only fetch integer registers
11589         if requested to do so.  Add support for XMM registers
11590         using PT_GETXMMREGS.
11591         (store_inferior_registers): Only store integer registers
11592         if requested to do so.  Add support for XMM registers
11593         using PT_SETXMMREGS.
11594         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11595         (store_inferior_registers): Remove.
11596         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11597         (fetch_elfcore_registers): New function.
11598         (i386nbsd_elfcore_fns): New.
11599         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11600         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11601         i386bsd-nat.o.
11602         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11603         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11604         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11605         * config/i386/tm-nbsd.h: Update copyright years.
11606         (HAVE_SSE_REGS): Define.
11607         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11608         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11609         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11610         (SIGCONTEXT_PC_OFFSET): Remove.
11611         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11612
11613 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
11614
11615         * configure.tgt: Remove powerpc-*-macos* target.
11616         * config/m68k/xm-mpw.h: Delete file.
11617         * config/xm-mpw.h: Delete file.
11618         * ser-mac.c: Delete file.
11619         * mpw-make.sed: Delete file.
11620         * mpw-config.in: Delete file.
11621         * mac-xdep.c: Delete file.
11622         * mac-gdb.r: Delete file.
11623         * mac-defs.h: Delete file.
11624         * mac-nat.c: Delete file.
11625         * config/powerpc/macos.mh: Delete file.
11626         * config/powerpc/macos.mt: Delete file.
11627         * config/powerpc/nm-macos.h: Delete file.
11628         * config/powerpc/tm-macos.h: Delete file.
11629         * source.c (openp, open_source_file): Remove obsolete code.
11630         * top.c (gdb_readline): Ditto.
11631         * utils.c (query): Ditto.
11632         * event-top.c (display_gdb_prompt): Ditto.
11633         * Makefile.in (ser-mac.o): Delete obsolete target.
11634         * NEWS: Update.
11635
11636 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
11637
11638         * defs.h (BIG_ENDIAN): Delete macro definition.
11639         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11640         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11641         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11642         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11643         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11644         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11645         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11646         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11647         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11648         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11649         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11650         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11651         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11652         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11653         * gdbarch.c: Re-generate.
11654
11655 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11656
11657         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11658         for core files.
11659
11660 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
11661
11662         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11663
11664 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
11665
11666         * value.h (value_ptr): Delete typedef.
11667
11668 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
11669
11670         * i386nbsd-nat.c: Update copyright years.
11671         Include i386-tdep.h.
11672
11673 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
11674
11675         * stabsread.c: Update copyright years.
11676
11677         From Debashis Mahata <debashis.mahata@wipro.com>:
11678         (read_struct_fields): Deal with Sun C compiler erroneous stab
11679         output for structs and unions.
11680         Fix PR gdb/269.
11681
11682 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11683
11684         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11685         prototype.
11686
11687 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11688
11689         * cp-abi.c: Fix whitespace.
11690         (baseclass_offset): New wrapper function.
11691         * cp-abi.h (baseclass_offset): Add prototype.
11692         (struct cp_abi_ops): Add baseclass_offset pointer.
11693
11694         * valops.c (vb_match): Move to...
11695         * gnu-v2-abi.c (vb_match): here.
11696         * valops.c (baseclass_offset): Move to...
11697         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11698
11699         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11700
11701         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11702         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11703         * hpacc-abi.c (init_hpacc_ops): Likewise.
11704
11705 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11706
11707         * valops.c (find_overload_match): Accept obj as a
11708         reference parameter.  Update it before returning.
11709         * value.h (find_overload_match): Update prototype.
11710         * eval.c (evaluate_subexp_standard): Pass object to
11711         find_overload_match by reference.
11712
11713 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
11714
11715         * valarith.c: Replace value_ptr with struct value pointer.  Remove
11716         register attribute from value declarations.
11717         * valops.c: Ditto.
11718         * value.h: Ditto.
11719         * scm-lang.c (scm_lookup_name): Ditto.
11720
11721 2002-01-03  Michael Snyder  <msnyder@redhat.com>
11722
11723         Abstract the functionality of iterating over mapped memory
11724         regions into a general purpose iterator function.
11725         * procfs.c (iterate_over_mappings): New function, general purpose
11726         iterator for memory sections.
11727         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11728         (solib_mappings_callback): New function, callback for above.
11729         (info_proc_mappings): Reimpliment using iterate_over_mappings.
11730         (info_mappings_callback): New function, callback for above.
11731
11732         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11733
11734 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
11735
11736         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11737         * i386-tdep.c: Include "elf-bfd.h".
11738         (process_note_abi_tag_sections): New function.
11739         (i386_gdbarch_init): Add code to recognize various OS/ABI
11740         combinations.
11741
11742         * maint.c (_initialize_maint_cmds): Add missing \ in
11743         string-literal.
11744
11745 For older changes see ChangeLog-2001
11746 \f
11747 Local Variables:
11748 mode: change-log
11749 left-margin: 8
11750 fill-column: 74
11751 version-control: never
11752 End: