Credit Apple and AdamF for their part in the objective C patches.
[external/binutils.git] / gdb / ChangeLog
1 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
2
3         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4
5 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
6
7         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
8         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
9         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
10         valops.c, value.h: Revert previous change.
11         
12 2002-09-18  Michael Snyder  <msnyder@redhat.com>
13
14         Preliminary support for Objective-C:
15         * defs.h (language_objc): New enum value.
16         (puts_filtered_tabular): Declaration only, exported from utils.c.
17         (skip_quoted): Delete, declared in completer.h.
18         * c-exp.y: Include completer.h.
19         * p-exp.y: Ditto.
20         * jv-exp.y: Ditto.
21         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
22         New operator enum values.
23         * language.h (CAST_IS_CONVERSION): Test for language_objc.
24         * language.c (binop_result_type): Handle language_objc case.
25         (integral_type, character_type, string_type, boolean_type,
26         structured_type, binop_type_check): Ditto.
27         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
28         (struct objc_specific): Add to general_symbol_info.
29         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
30         (SYMBOL_DEMANGLED_NAME): Handle objc case.
31         * parser-defs.h (struct objc_class_str): New struct type.
32         (start_msglist, end_msglist, add_msglist): Declaration only,
33         exported from objc-lang.c.
34         * value.h (value_of_local, value_nsstring, 
35         call_function_by_hand_expecting_type): Exported from valops.c.
36         * valops.c (find_function_addr): Export.
37         (call_function_by_hand_expecting_type): New function.
38         (value_of_local): New function.
39         * symfile.c (init_filename_language_table): Add ".m" extension
40         for Objective-C.
41         * utils.c (puts_filtered_tabular): New function.
42         (fprintf_symbol_filtered): Add objc demangling support (disabled).
43         (set/show demangle): Extend help-string to refer to ObjC.
44         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
45         * stabsread.c (symbol_reference_defined): Objective-C symbols
46         may contain colons: make allowances when scanning stabs strings
47         for colons.
48         (objc_find_colon): New function.
49         * printcmd.c (address_info): If language == objc then print
50         "self" instead of "this".
51         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
52         OP_NSSTRING, and OP_SELF.
53         (prefixify_subexp): Ditto.
54         * source.c (print_source_lines): Mention objc in comment.
55         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
56         method names.
57
58 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
59
60         * complaints.h: Update copyright.
61         (struct complaints): Declare.
62         (struct complaint): Make `message' constant.
63         (internal_complaint): Declare.
64         (complaint): Declare.
65         (complaint_root): Delete declaration.
66         (symfile_complaints): Delete declaration.
67         (struct complaints): Add opaque declaration.
68         (clear_complaints): Add a complaints parameter.
69         * complaints.c: Update copyright.
70         (enum complaint_series): Define.
71         (complaint_root): Delete.
72         (struct complaints): Define.
73         (complaint_sentinel, symfile_complaint_book): New variables.
74         (symfile_explanations, symfile_complaints): New variables.
75         New variables.
76         (get_complaints): New function.
77         (vcomplaint): New function.
78         (complaint): New function.
79         (internal_complaint): New function.
80         (complain): Call vcomplain with symfile_complaint.
81         (clear_complaints): Rewrite.
82         (_initialize_complaints): Use add_setshow_command.
83         * Makefile.in (complaints.o): Update dependencies.
84         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
85         to call to clear_complaints.
86         (new_symfile_objfile, reread_symbols): Ditto.
87         (oldsyms_complaint): Delete.
88         (empty_symtab_complaint, unknown_option_complaint): Delete.
89         (free_named_symtabs): Use complaint instead of complain.
90
91 2002-09-18  Michael Snyder  <msnyder@redhat.com>
92
93         Contributed by Apple Computer, Inc.  Merged with current sources
94         by Adam Fedor <fedor@doc.com> [cagney].
95         
96         * objc-lang.c: First clean-up round: comments, indentation.
97         * objc-lang.h: Ditto.
98         * objc-lang.y: Ditto.
99
100 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
101
102         * maint.c (maintenance_internal_error): Print the parameter as the
103         error message.
104         (maintenance_internal_warning): New function.
105         (_initialize_maint_cmds): Add command `maint internal-warning'.
106
107         * defs.h (internal_warning, internal_vwarning): Declare.
108         * utils.c (struct internal_problem): Define.
109         (internal_vproblem): New function.
110         (internal_warning): New function.
111         (internal_vwarning): New function.
112         (internal_warning_problem, internal_error_problem): New variables.
113         (internal_verror): Just call internal_vproblem.
114
115 2002-09-18  Michael Snyder  <msnyder@redhat.com>
116
117         * objc-lang.c: New file, support for Objective-C.
118         Preliminary check-in, not yet integrated into gdb.
119         * objc-lang.h: New file.
120         * objc-exp.y:  New file.
121
122 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
123
124         * infrun.c (signal_stop_update): Convert definition to ISO C.
125         (signal_print_update): Ditto.
126         (signal_pass_update): Ditto.
127         * inflow.c (terminal_save_ours): Ditto.
128
129         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
130         comments.
131         
132         * config/djgpp/fnchange.lst: Handle name clashes between
133         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
134         bfd/coff-tic80.c.
135
136         * i386-linux-tdep.h: Fix tipo.
137
138 2002-09-18  Adam Fedor  <fedor@gnu.org>
139
140         * MAINTAINERS: Add myself to the Write After Approval list.
141
142 2002-09-18  Jim Blandy  <jimb@redhat.com>
143
144         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
145         texthigh and textlow to reader-specific structs caused
146         objfile_relocate to miss them.  This is fixable, but the work that
147         the change was supposed to prepare GDB for never got done anyway.
148
149 2002-09-18  David Carlton  <carlton@math.stanford.edu>
150
151         * MAINTAINERS: Alphabetize Write After Approval list.
152
153 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
154
155         Fix PR gdb/709
156         * values.c (value_static_field): Call read_var_value.
157
158 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
159
160         * valops.c (hand_function_call): Align the initial stack pointer
161         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
162         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
163         return value.
164         * mips-tdep.c (mips_frame_align): New function.
165         (mips_gdbarch_init): Set frame_align.
166         * gdbarch.sh (FRAME_ALIGN): New method.
167         * gdbarch.h, gdbarch.c: Re-generate.
168
169 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
170
171         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
172         registers.
173
174 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
175
176         * NEWS: Mention that MIPS $fp behavior changed.
177         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
178         reference to FP_REGNUM.
179         (mipsnbsd_cannot_store_register): Ditto.
180         * mips-linux-nat.c: Update copyright.
181         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
182         (mips_linux_cannot_store_register): Ditto.
183         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
184         * config/mips/tm-mips.h: Update copyright.
185         (FP_REGNUM): Delete macro.
186         (MIPS_REGISTER_NAMES): Replace "fp" with "".
187         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
188         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
189         (mips_r3041_reg_names, mips_r3051_reg_names)
190         (mips_r3081_reg_names): Replace "fp" with "".
191         Fix PR gdb/480.
192
193 2002-09-17  Theodore A. Roth  <troth@verinet.com>
194
195         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
196         generic_read_register_dummy() (PR gdb/703).
197         (avr_push_return_address): #if 0 out unused vars.
198         (avr_gdbarch_init): Enable use of avr_push_return_address().
199
200 2002-09-17  Michael Snyder  <msnyder@redhat.com>
201
202         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
203         RTE will take care of it.
204
205 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
206
207         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
208         invalid, return SP_REGNUM.
209
210 2002-09-17  Michael Snyder  <msnyder@redhat.com>
211
212         * mips-tdep.c (mips_pop_frame): Read saved values of floating
213         point registers without sign extension.
214
215 2002-09-17  Andrew Cagney  <cagney@redhat.com>
216
217         * blockframe.c (deprecated_read_register_dummy): Rename
218         generic_read_register_dummy.
219         * frame.c (frame_unwind_signed_register): New function.
220         (frame_unwind_unsigned_register): New function.
221         * frame.h (frame_unwind_signed_register): Declare.
222         (frame_unwind_unsigned_register): Declare.
223         (deprecated_read_register_dummy): Rename
224         generic_read_register_dummy.
225
226         * h8300-tdep.c (h8300_frame_chain): Update.
227         (h8300_frame_saved_pc): Update.
228         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
229         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
230         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
231         (s390_frame_chain): Update.
232         * v850-tdep.c (v850_find_callers_reg): Update.
233         (v850_frame_saved_pc): Update.
234         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
235         (m32r_find_callers_reg): Update.
236         (m32r_frame_saved_pc): Update.
237         * sh-tdep.c (sh_find_callers_reg): Update.
238         (sh64_get_saved_pr): Update.
239         (sh_init_extra_frame_info): Update.
240         (sh_init_extra_frame_info): Update.
241         (sh64_init_extra_frame_info): Update.
242         (sh64_init_extra_frame_info): Update.
243         * mcore-tdep.c (mcore_find_callers_reg): Update.
244         (mcore_frame_saved_pc): Update.
245         (mcore_init_extra_frame_info): Update.
246         * i386-tdep.c (i386_frame_saved_pc): Update.
247         * ia64-tdep.c (ia64_frame_saved_pc): Update.
248         (ia64_init_extra_frame_info): Update.
249         (ia64_init_extra_frame_info): Update.
250         * d10v-tdep.c (d10v_frame_saved_pc): Update.
251         * cris-tdep.c (cris_init_extra_frame_info): Update.
252         * avr-tdep.c (avr_frame_chain): Update.
253         (avr_init_extra_frame_info): Update.
254         (avr_frame_saved_pc): Update.
255         * arm-tdep.c (arm_find_callers_reg): Update.
256         (arm_init_extra_frame_info): Update.
257         (arm_frame_saved_pc): Update.
258
259 2002-09-17  Tom Tromey  <tromey@redhat.com>
260
261         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
262         is "'".
263
264 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
265
266         * MAINTAINERS: Remove "non multi-arched" text from h8300.
267         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
268         NEXT_PROLOGUE_INSN.
269         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
270         NEXT_PROLOGUE_INSN.
271
272 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
273
274         * osfsolib.c: Remove file, replaced by solib-osf.c.
275         * Makefile.in: Remove compilation rules for osfsolib.c.
276
277 2002-09-16  David Carlton  <carlton@math.stanford.edu>
278
279         * cp-valprint.c (cp_print_class_method): Correct args to
280         check_stub_method_group.
281
282 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
283
284         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
285         `set architecture'.  Unify naming convention of functions.
286         (h8300_skip_prologue): Improve prologue analysis.
287         (h8300_push_arguments): Rewritten to more closely match GCC's
288         bizarre argument-passing behavior, along with the comment describing
289         said behavior.
290         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
291         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
292         sim, remote-e7000.c, remote-hms.c and remote.c
293
294 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
295
296         * i386-tdep.c (gdb_print_insn_i386): Removed.
297         (i386_print_insn): New function.
298         (i386_gdbarch_init): Set print_insn to i386_print_insns.
299         (_initialize_i386_tdep): Don't initialize tm_print_insn and
300         tm_print_insn_info.
301
302 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
303
304         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
305         zero.
306
307 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
308
309         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
310         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
311         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
312
313 2002-09-13  Christopher Faylor  <cgf@redhat.com>
314
315         * win32-nat.c (child_create_inferior): Honor 'tty' command.
316
317 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
318
319         * gdbtypes.c (check_stub_method): Make static.
320         (check_stub_method_group): New function.
321         * gdbtypes.h: Update prototypes.
322         * cp-support.c: New file.
323         * cp-support.h: New file.
324
325         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
326         (update_method_name_from_physname): New function.
327         (read_member_functions): Correct method names for operators
328         and v3 constructors/destructors.  Separate v2 constructors and
329         destructors.
330         * Makefile.in (stabsread.o): Update dependencies.
331         (SFILES): Add cp-support.c.
332         (COMMON_OBS): Add cp-support.o.
333         (cp_support_h, cp-support.o): Add.
334
335         * cp-valprint.c (cp_print_class_method): Call
336         check_stub_method_group instead of check_stub_method.  Remove
337         extraneous QUITs.
338         * p-valprint.c (pascal_object_print_class_method): Likewise.
339         * valops.c (search_struct_method): Likewise.
340         (find_method_list, value_struct_elt_for_reference): Likewise.
341
342 2002-09-13  Andrew Cagney  <cagney@redhat.com>
343
344         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
345         * gdbarch.h, gdbarch.c: Regenerate.
346
347 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
348
349         * frame.c (find_saved_register): Delete function.
350         * frame.h (find_saved_register): Delete declaration.
351         Fix PR gdb/631.
352
353 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
354
355         * mips-tdep.c (read_next_frame_reg): Re-hack using
356         frame_register_unwind.
357
358 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
359
360         * mips-tdep.c (mips_get_saved_register): Re-hack using
361         frame_register_unwind.
362
363 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
364
365         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
366         vector. Will be useful for Interix.  
367         * gdbarch.h, gdbarch.c: Regenerate.
368
369         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
370         name of the malloc function by NAME_OF_MALLOC.
371
372 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
373
374         * value.h (find_function_in_inferior): Add const keyword to
375         one of the parameters. Allows us to invoke this function with
376         a const char *.
377         * valops.c (find_function_in_inferior): Likewise.
378
379 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
380
381         * exec.c (xfer_memory): Fix compilation warning with old versions
382         of GCC.
383         * tracepoint.c (trace_find_tracepoint_command): Likewise.
384
385 2002-09-12  David Carlton  <carlton@math.stanford.edu>
386
387         * symtab.h: Run through gdb_indent.h.
388         Add 2002 to Copyright year list.
389
390 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
391
392         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
393         mach constants.
394         * MAINTAINERS: Add myself to write after approval list.
395
396 2002-09-11  J. Brobecker  <brobecker@gnat.com>
397
398         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
399
400 2002-09-11  J. Brobecker  <brobecker@gnat.com>
401
402         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
403         Interix.
404
405 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
406
407         * procfs.c (do_detach): Clear current signal, not just fault.
408         Corrects problem with breakpoint trap signal leaking to detached
409         process on Tru64.
410
411 2002-09-10  Michael Snyder  <msnyder@redhat.com>
412
413         * buildsym.c (finish_block): Protect against null pointer.
414
415 2002-09-10  Andrew Cagney  <cagney@redhat.com>
416
417         * infcmd.c (default_print_registers_info): Send all output to
418         ``file'' instead of ``gdb_stdout''.
419
420 2002-09-10  Michael Snyder  <msnyder@redhat.com>
421
422         * mips-tdep.c (mips_extract_struct_value_address): Make val a
423         LONGEST, and use signed register read (addresses are sign-
424         extended for mips).
425
426 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
427
428         * event-loop.c (gdb_do_one_event): Make public.
429         * event-loop.h (gdb_do_one_event): Declare.
430
431 2002-09-10  Jeff Law  <law@redhat.com>
432
433         * infttrace.c (child_resume): Simplify and rework to avoid
434         TT_PROC_CONTINUE.
435
436 2002-09-09  Fred Fish  <fnf@intrinsity.com>
437
438         * printcmd.c (print_scalar_formatted): "len" is the number of
439         target bytes, NOT the number of target bits.
440
441 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
442
443         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
444         * top.c (init_main): Set rl_terminal_name.
445
446 2002-09-08  Aidan Skinner <aidan@velvet.net>
447
448         * ada-lang.c (ada_array_bound, ada_type_match,
449         _initialize_ada_language): Fix K&R definitions.
450         * ada-tasks.c (get_current_task): Fix K&R definitions.
451         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
452                         
453 2002-09-07  Christopher Faylor  <cgf@redhat.com>
454
455         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
456         Add XP.
457
458 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
459
460         * i386-tdep.c (i386_register_virtual_type,
461         i386_register_convertible, i386_register_convert_to_virtual,
462         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
463         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
464         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
465         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
466         Don't set push_arguments twice.
467
468         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
469         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
470         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
471         sigtramp_end to NULL.
472         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
473         defines.
474         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
475
476         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
477         whitespace.
478
479         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
480         * gdbarch.h, gdbarch.c: Re-generate.
481         * blockframe.c (find_pc_sect_partial_function): Convert to use
482         SIGTRAMP_START_P predicate.
483
484 2002-09-05  Michael Snyder  <msnyder@redhat.com>
485
486         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
487         generic_dummy_frame method and old method.  Also distinguish
488         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
489         (arm_extract_return_value): Use new regcache method.
490
491         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
492         adjustment that doesn't conform to the ABI.
493         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
494         saved regcache, not from current regcache.
495
496 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
497
498         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
499         * README: Update.
500
501 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
502
503         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
504         if arm_apcs_32 is false.
505
506 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
507
508         GDB 5.3 branch created.
509
510 2002-09-03  Theodore A. Roth  <troth@verinet.com>
511
512         * gdb/avr-tdep.c (avr_gdbarch_init): Use
513         generic_unwind_get_saved_register.
514
515 2002-09-03  David Carlton  <carlton@math.stanford.edu>
516
517         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
518         argument (PR gdb/653).  Update call to smash_to_method_type.
519         (read_structure_scope): Update call to dwarf2_add_member_fn.
520
521 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
522
523         * x86-64-linux-tdep.c: Include gdb_string.h
524         * x86-64-linux-nat.c: Ditto.
525
526 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
527
528         * ada-exp.y (yyname, yyrule): Remap global variables that appear
529         when YYDEBUG is set to 1.  
530         * c-exp.y: Likewise.
531         * f-exp.y: Likewise.
532         * jv-exp.y: Likewise.
533         * m2-exp.y: Likewise.
534         * p-exp.y: Likewise.
535
536 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
537
538         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
539         dependency list.
540         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
541         solib_svr4_fetch_link_map_offsets to
542         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
543         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
544         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
545         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
546         solib-svr4.o, and solib-legacy.o.
547         * config/i386/tm-nbsd.h: Include solib.h.
548
549 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
550
551         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
552         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
553         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
554         comment noting that this needs its own target configuration.
555         * config/i386/nbsd.mt: New file.
556         * config/i386/nbsdaout.mt: Remove.
557         * config/i386/nbsdelf.mt: Ditto.
558         * config/i386/tm-nbsdaout.h: Ditto. 
559
560 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
561
562         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
563         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
564         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
565         tdep->sigtramp_end.
566         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
567         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
568         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
569
570 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
571
572         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
573         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
574         * i386-tdep.h (i386bsd_init_abi): New prototype.
575         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
576         function declaration.
577         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
578         for NetBSD-a.out or NetBSD-ELF.
579         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
580         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
581         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
582         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
583         and nbsd-tdep.h.
584         (i386nbsd_pc_in_sigtramp): New function.
585         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
586         i386nbsd_pc_in_sigtramp.
587         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
588         and i386nbsdelf_init_abi OS ABI handlers.
589         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
590         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
591
592 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
593
594         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
595         registers if the target really has them.
596
597 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
598
599         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
600         than nbsd-tdep.h.
601
602 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
603
604         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
605         list.
606         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
607         (alphanbsd_skip_sigtramp_frame): New functions. 
608         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
609         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
610         to alphanbsd_sigcontext_addr. 
611
612 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
613
614         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
615         list.
616         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
617         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
618         nbsd_pc_in_sigtramp. 
619         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
620         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
621         * nbsd-tdep.c: Include gdb_string.h.
622         (nbsd_pc_in_sigtramp): New function. 
623         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
624         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
625         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
626         ppcnbsd_pc_in_sigtramp. 
627         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
628         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
629         shnbsd_pc_in_sigtramp. 
630         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
631         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
632         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
633
634 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
635
636         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
637         watchpoints to NULL.
638         (insert_breakpoints): set val field of watchpoints if NULL.
639
640
641 2002-08-29  Jim Blandy  <jimb@redhat.com>
642
643         * symtab.c (lookup_symbol_aux): In the cases where we find a
644         minimal symbol of an appropriate name and use its address to
645         select a symtab to read and search, use `name' (as passed to us)
646         as the demangled name when searching the symtab's global and
647         static blocks, not the minsym's name.
648
649 2002-08-29  Keith Seitz  <keiths@redhat.com>
650
651         * stack.c (print_frame_info_base): Always set current_source_symtab
652         and current_source_line.
653
654 2002-08-29  Donn Terry  <donnte@microsoft.com>
655
656         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
657
658 2002-08-28  Keith Seitz  <keiths@redhat.com>
659
660         * stack.c (select_frame): Add FIXME concerning selected-frame
661         events.
662         (select_frame_command): Send selected-frame-level-changed
663         event notification, but only if the level actually changed.
664         (up_silently_base): Add selected-frame-level-changed event
665         notification.
666         (down_silently_base): Likewise.
667
668 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
669
670         * Makefile.in: Update dependencies for all gdb/*.c files.
671
672 2002-08-27  Tom Tromey  <tromey@redhat.com>
673
674         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
675         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
676         Update dependencies.
677         * i387-tdep.c: Include gdb_string.h.
678         * osabi.c: Likewise.
679         * i386-linux-nat.c: Likewise.
680         * lin-lwp.c: Likewise.
681         * ax-gdb.c: Likewise.
682         * signals/signals.c: Likewise.
683         * jv-valprint.c: Likewise.
684         * p-lang.c: Likewise.
685         * c-valprint.c: Likewise.
686         * cp-abi.c: Likewise.
687
688 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
689
690         * cli/cli-script.h (copy_command_lines): Export.
691         * breakpoint.c: Include cli/cli-script.h.
692         * Makefile.in (breakpoint.o): Update dependencies.
693
694 2002-08-26  Michael Snyder  <msnyder@redhat.com>
695
696         * breakpoint.c (insert_breakpoints): Protect all references
697         to 'process_warning'.  Shorten long lines.
698
699 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
700
701         * cli/cli-script.c (copy_command_lines): New function.
702         * defs.h (copy_command_lines): Export.
703         * testsuite/gdb.base/commands.exp: New tests for commands
704         attached to a temporary breakpoint, and for commands that
705         delete the breakpoint they are attached to.
706         
707 2002-08-26  Michael Snyder  <msnyder@redhat.com>
708
709         * breakpoint.c (bpstat_stop_status): Instead of copying the 
710         pointer to the breakpoint commands struct, make a new copy
711         of the struct and point to that.
712         (bpstat_clear): Free the commands struct.
713         (bpstat_clear_actions): Free the commands struct.
714         (bpstat_do_actions): Free the command actions.  Also execute
715         the local cleanups, instead of deleting them.
716         (delete_breakpoint): Leave the commands field of the bpstat
717         chain alone -- it will be freed later.
718
719 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
720
721         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
722         deleted in 2002-08-20 commit.  This function is still used by
723         ppc-linux-nat.c.
724
725 2002-08-26  Keith Seitz  <keiths@redhat.com>
726
727         * gdb-events.sh: Add selected-frame-level-changed event.
728         * gdb-events.c: Regenerated.
729         * gdb-events.h: Regenerated.
730         
731 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
732
733         Fix PR gdb/393:
734         * inflow.c (terminal_save_ours): New function to save terminal
735         settings.
736         * inferior.h (terminal_save_ours): Declare.
737         * target.c (debug_to_terminal_save_ours): New function.
738         (cleanup_target): Defaults to_terminal_save_ours.
739         (update_current_target): Inherit to_terminal_save_ours.
740         (setup_target_debug): Set to_terminal_save_ours.
741         * target.h (target_terminal_save_ours): New to save terminal settings.
742         (target_ops): New member to_terminal_save_ours.
743         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
744         * hpux-thread.c (init_hpux_thread_ops): Likewise.
745         * inftarg.c (init_child_ops): Likewise.
746         * m3-nat.c (init_m3_ops): Likewise.
747         * procfs.c (init_procfs_ops): Likewise.
748         * wince.c (init_child_ops): Likewise.
749         * win32-nat.c (init_child_ops): Likewise.
750         * sol-thread.c (init_sol_thread_ops): Likewise.
751
752 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
753
754         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
755         use regcache_* functions.
756         (i386_gdbarch_init): Set store_return_value instead of
757         deprecated_store_return_value.
758
759         * regcache.c (regcache_raw_write_signed,
760         regcache_raw_write_unsigned): New functions.
761         * regcache.h (regcache_raw_write_signed,
762         regcache_raw_write_unsigned): New prototypes.
763
764 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
765
766         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
767         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
768         source file dependencies.  Cleanup corresponding generator rules.
769
770 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
771
772         * regcache.h (register_offset_hack): Declare.
773         (regcache_cooked_read_using_offset_hack): Declare.
774         (regcache_cooked_write_using_offset_hack): Declare.
775
776         * regcache.c (register_offset_hack): New function.
777         (regcache_cooked_read_using_offset_hack): New function.
778         (regcache_cooked_write_using_offset_hack): New function.
779         (regcache_dump): Check that the registers, according to their
780         offset, are packed hard against each other.
781         (cooked_xfer_using_offset_hack): New function.
782
783 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
784
785         * regcache.c (struct regcache_descr): Add field register_type.
786         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
787         in as a parameter
788         (init_regcache_descr): Initialize register_type.  Pass the descr
789         to init_legacy_regcache_descr.  Use register_type instead of
790         REGISTER_VIRTUAL_TYPE.
791         (register_type): New function.
792         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
793         * regcache.h (register_type): Declare.
794
795 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
796
797         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
798         instead of deprecated_store_return_value.  Fix fallout from
799         2002-08-23 Andrew Cagney <cagney@redhat.com>.
800
801 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
802
803         * regcache.c (max_register_size): New function.
804         (init_legacy_regcache_descr): Ensure that max_register_size is
805         large enough for REGISTER_VIRTUAL_SIZE.
806         * regcache.h (max_register_size): Declare.
807
808 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
809
810         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
811         store_return_value.
812         (e500_extract_return_value): Change type of valbuf pointer to
813         void.
814
815 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
816
817         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
818         workaround.
819
820         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
821         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
822         long long) to prevent compiler warning on 64-bit systems.
823
824 2002-08-23  Andrew Cagney  <cagney@redhat.com>
825
826         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
827         (DEPRECATED_STORE_RETURN_VALUE): New method.
828         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
829         * gdbarch.h, gdbarch.c: Re-generate.
830
831         * values.c (set_return_value): Pass current_regcache to
832         STORE_RETURN_VALUE.
833         * arch-utils.h (legacy_store_return_value): Declare.
834         * arch-utils.c (legacy_store_return_value): New function.
835         (legacy_extract_return_value): Update parameters.
836
837         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
838         STORE_RETURN_VALUE.
839         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
840         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
841         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
842         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
843         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
844         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
845         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
846         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
847         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
848         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
849
850         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
851         * i386-tdep.c (i386_extract_return_value): Update.
852         * arch-utils.c (legacy_extract_return_value): Update.
853         * frv-tdep.c (frv_gdbarch_init): Update.
854         * cris-tdep.c (cris_gdbarch_init): Update.
855         * d10v-tdep.c (d10v_gdbarch_init): Update.
856         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
857         * m68k-tdep.c (m68k_gdbarch_init): Update.
858         * mcore-tdep.c (mcore_gdbarch_init): Update.
859         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
860         * s390-tdep.c (s390_gdbarch_init): Update.
861         * sparc-tdep.c (sparc_gdbarch_init): Update.
862         * sh-tdep.c (sh_gdbarch_init): Update.
863         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
864         * v850-tdep.c (v850_gdbarch_init): Update.
865         * avr-tdep.c (avr_gdbarch_init): Update.
866         * ia64-tdep.c (ia64_gdbarch_init): Update.
867         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
868         * vax-tdep.c (vax_gdbarch_init): Update.
869         * alpha-tdep.c (alpha_gdbarch_init): Update.
870         * arm-tdep.c (arm_gdbarch_init): Update.
871         * mips-tdep.c (mips_gdbarch_init): Update.
872         * i386-tdep.c (i386_gdbarch_init): Update.
873
874 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
875
876         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
877         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
878
879 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
880
881         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
882         problems.
883
884 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
885
886         * infrun.c (handle_inferior_event): Move a comment outside of a
887         function call, in order to avoid indent reformatting this part
888         of the code in an unreadable way.
889
890 2002-08-23  Grace Sainsbury  <graces@redhat.com>
891
892         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
893         when breakpoints fail. Move general breakpoint error messages to
894         insert_breakpoints.  
895         * breakpoint.c (insert_breakpoints): Change warnings when
896         breakpoints are nto inserted to specify the type. Remove call to
897         memory_error when hardware breakpoints can't be inserted. Remove
898         multiple calls to warning so all messages are sent to the user at
899         once.
900         (delete_breakpoints): Make insert error messsages more explicit.
901
902 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
903
904         * ChangeLog: Move gdbserver entries after GDB 5.2 to
905         gdbserver/ChangeLog.
906
907 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
908
909         * i386-tdep.c: Include "objfiles.h".
910         (i386_svr4_init_abi): Set in_solib_call_trampoline and
911         skip_trampoline_code.
912         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
913         (CPLUS_MARKER): Define to '.'.
914
915         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
916         member.
917         (linux_corefile_thread_callback): Increase args->num_notes.
918         (linux_make_note_section): Initialize thread_args.num_notes, and
919         use it to determine whether notes for any threads were created.
920
921 2002-08-23  Donn Terry  <donnte@microsoft.com>
922
923         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
924         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
925         and PCUNKILL.
926         (write_with_trace): Conditionalize out the switch branch handling
927         PCSHOLD if the corresponding macro is not defined. Likewise for
928         PRSABORT and PRSTOP.
929         This change will be needed by the Interix port.
930
931 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
932
933         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
934         write_register wherever possible instead of manipulating the
935         register bytes directly.
936         Assign VALUE_CONTENTS to a variable and use that.
937         The GPR numbers are now dependent on the architecture.
938         
939 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
940
941         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
942         ev_offset fields.
943         (skip_prologue): Add support for BookE/e500 instructions.
944         (e500_extract_return_value): New function.
945         (frame_get_saved_regs): Add support for saving ev registers and
946         pseudo gpr's.
947         (e500_store_return_value): New function.
948         (rs6000_gdbarch_init): Move up default intializations of
949         deprecated_extract_return_value and store_return_value.  Overwrite
950         init of store_return_value with e500 specific version.
951         Set extract_return_value for e500.
952         
953 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
954
955         * blockframe.c (generic_call_dummy_register_unwind): Use
956         regcache_cooked_read to catch cases in which the variable is
957         stored in a pseudo register.
958
959 2002-08-22  Andrew Cagney  <cagney@redhat.com>
960
961         * NEWS: Mention that the i960 has been made obsolete.
962         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
963         i960-tdep.c
964         (remote-nrom.o): Obsolete target.
965         (remote-nindy.o, i960-tdep.o): Ditto.
966         * remote-nrom.c: Make file obsolete.
967         * remote-nindy.c, remote-vx960.c: Ditto.
968         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
969         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
970         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
971         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
972         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
973         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
974         i960-*-vxworks* obsolete.
975         * MAINTAINERS: Note that the i960 is obsolete.
976
977 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
978
979         * aix-thread.c (aix_thread_detach): Disable thread debugging on
980         detach to allow reinitialization.
981
982 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
983
984         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
985         attempt).
986
987 2002-08-22  Jim Blandy  <jimb@redhat.com>
988
989         * coffread.c (coff_symfile_read): Don't try to read the line
990         number table from disk if the image file doesn't have a symbol
991         table; we'll never actually look at the info anyway, and Windows
992         ships DLL's with bogus file offsets for the line number data.
993
994 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
995
996         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
997         an e500 executable.
998
999 2002-08-21  Michael Snyder  <msnyder@redhat.com>
1000
1001         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1002         (MSYMBOL_SIZE): Replace macro with function.
1003         (DEFAULT_MIPS_TYPE): Delete unused macro.
1004         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1005         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1006
1007 2002-08-21  Jim Blandy  <jimb@redhat.com>
1008
1009         * valops.c (value_cast): Simplify and correct logic for doing a
1010         static cast from a pointer to a base class to a pointer to a
1011         derived class.
1012
1013 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
1014
1015         * infcmd.c (default_print_registers_info): Replace
1016         do_registers_info.
1017         (registers_info): Use gdbarch_print_registers_info instead of
1018         DO_REGISTERS_INFO.
1019         * inferior.h (default_print_registers_info): Replace
1020         do_registers_info.
1021         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1022         (DO_REGISTERS_INFO): Change to a predicate function.
1023         * gdbarch.h, gdbarch.c: Regenerate.
1024         
1025 2002-08-21  Keith Seitz  <keiths@redhat.com>
1026
1027         * gdb-events.sh: Add target-changed event.
1028         * gdb-events.c: Regenerated.
1029         * gdb-events.c: Regenerated.
1030         * valops.c (value_assign): Add target-changed event notification
1031         to inlval_register, lval_memory, and lval_reg_frame_relative.
1032
1033 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
1034
1035         * NEWS: Add an entry regarding the improvement of the next/step
1036         operation on Alpha Tru64 multi-processor machines.
1037
1038 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
1039
1040         * Makefile.in: Update dependencies for mi/ cli/ and tui/
1041         directores.
1042         * Makefile.in: Update all _h macro definitions.
1043         * Makefile.in (install-gdbtk): Move to install section.
1044         (rdi-share/libangsd.a): Move to end of file.
1045
1046 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
1047
1048         * frame.c (frame_register_unwind): When a register, set addrp to
1049         the register's byte.
1050
1051 2002-08-20  Michael Snyder  <msnyder@redhat.com>
1052
1053         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1054         used locally, so move them from the target machine header to here.
1055         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
1056         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
1057         Make static.
1058         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1059
1060 2002-08-20  Andrew Cagney  <cagney@redhat.com>
1061
1062         * NEWS: Mention that the Apollo line was made obsolete.
1063         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1064         m68*-hp-hpux* obsolete.
1065         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1066         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1067         * buildsym.c (make_blockvector): Make static.
1068         * buildsym.h (make_blockvector): Make extern declaration obsolete.
1069         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1070         (ALLDEPFILES): Remove dstread.c.
1071         (dstread.o): Obsolete make rule.
1072         * dstread.c: Makefile obsolete.
1073         * dst.h: Ditto.
1074         * config/m68k/hp300hpux.mt: Ditto.
1075         * config/m68k/hp300hpux.mh: Ditto.
1076         * config/m68k/hp300bsd.mt: Ditto.
1077         * config/m68k/hp300bsd.mh: Ditto.
1078         * config/m68k/apollo68b.mt: Ditto.
1079         * config/m68k/apollo68v.mh: Ditto.
1080         * config/m68k/apollo68b.mh: Ditto.
1081
1082 2002-08-20  Michael Snyder  <msnyder@redhat.com>
1083
1084         * mips-tdep.c (mips_in_return_stub): Make static.
1085         (mips_gdbarch_init): Set in_solib_return_trampoline.
1086         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1087
1088 2002-08-20  Michael Snyder  <msnyder@redhat.com>
1089
1090         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1091         * gdbarch.c, gdbarch.h: Regenerate.
1092         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1093         Add.
1094         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1095
1096 2002-08-20  Michael Snyder  <msnyder@redhat.com>
1097
1098         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1099         (mips_gdbarch_init): Set skip_trampoline_code, 
1100         in_solib_call_trampoline.
1101         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1102         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1103
1104 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
1105
1106         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1107
1108         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1109         vector type for ev registers.
1110         (e500_pseudo_register_read): New function.
1111         (e500_pseudo_register_write): New function.
1112         (e500_dwarf2_reg_to_regnum): New function.
1113         (PPC_UISA_NOFP_SPRS): New macro.
1114         (PPC_EV_REGS): New macro.
1115         (PPC_GPRS_PSEUDO_REGS): New macro.
1116         (registers_e500): New register set for e500.
1117         (variants): Add e500 variant.
1118         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1119         before setting architectural dependent variations.  Initialize ev
1120         registers numbers.  Add case for e500 architecture.  Set the
1121         number of pseudo registers.
1122
1123 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
1124
1125         * rs6000-tdep.c: Clean up comments.
1126
1127 2002-08-20  Andrew Cagney  <cagney@redhat.com>
1128
1129         * h8300-tdep.c: Re-indent file.
1130
1131 2002-08-20  Jim Blandy  <jimb@redhat.com>
1132
1133         * Makefile.in (LDFLAGS): Allow the configure script to establish a
1134         default for this.
1135
1136 2002-08-20  Keith Seitz  <keiths@redhat.com>
1137
1138         * breakpoints.c (watch_command_1): Use internal breakpoint
1139         when setting a watchpoint_scope breakpoint.
1140
1141 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
1142
1143         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1144         (build_builtin_type_vec64i): Ditto.
1145         (build_builtin_type_vec128): Ditto.
1146         (build_builtin_type_vec128i): Ditto.
1147
1148 2002-08-19  Michael Snyder  <msnyder@redhat.com>
1149
1150         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1151         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1152         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1153         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1154         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1155         CALL_DUMMY_ADDRESS): Delete.
1156         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1157         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1158         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
1159         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
1160         push_return_address.
1161         (mips_register_raw_size, mips_eabi_use_struct_convention, 
1162         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1163         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1164         mips_init_extra_frame_info, mips_eabi_push_arguments, 
1165         mips_n32n64_push_arguments, mips_push_return_address,
1166         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1167         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1168
1169 2002-08-19  Michael Snyder  <msnyder@redhat.com>
1170
1171         * mips-tdep.c (mips_frame_num_args): New function.
1172         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1173         frame_saved_pc, frame_args_address, frame_locals_address, 
1174         frame_num_args, and frame_args_skip.
1175         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1176         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
1177         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1178         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1179
1180 2002-08-20  Michael Snyder  <msnyder@redhat.com>
1181
1182         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1183         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1184         * mips-tdep.c (mips_store_struct_return): New function.
1185         (mips_extract_struct_value_address): New function.
1186         (mips_gdbarch_init): Set store_struct_return and
1187         extract_struct_value_address.
1188
1189 2002-08-20  David Carlton  <carlton@math.stanford.edu>
1190
1191         * dwarf2read.c (dwarf2_build_psymtabs): Check that
1192         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1193         (read_file_scope): Check that line_header is nonzero before
1194         decoding macro information.
1195
1196 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
1197
1198         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1199         flag the general-purpose registers as floating-point on targets
1200         that don't support the floating-point registers.
1201
1202 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
1203
1204         * rs6000-tdep.c (altivec_register_p): Delete.
1205         (rs6000_do_altivec_registers): Delete.
1206         (rs6000_altivec_registers_info): Delete.
1207         (rs6000_do_registers_info): Delete.
1208         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1209         (rs6000_gdbarch_init): Remove setting of do_registers_info.
1210
1211 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
1212
1213         * infcmd.c (do_registers_info): Print vector registers in hex
1214         format only.
1215         (print_vector_info): Check that printing registers
1216         makes sense.
1217         (print_float_info): Ditto.
1218
1219 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
1220
1221         * mips-tdep.c (mips_gdbarch_init): Update.
1222         (mips_o32_extract_return_value): Rewrite.
1223         (mips_o32_store_return_value): Rewrite.
1224         (mips_o32_xfer_return_value): New function.
1225         (mips_xfer_register): Tweak debug print message.  Allow for
1226         buf_offset when dumping the value transfered.
1227
1228 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
1229
1230         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1231         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1232         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1233         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1234         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1235
1236 2002-08-14  Michael Snyder  <msnyder@redhat.com>
1237
1238         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1239
1240 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
1241
1242         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1243         register.
1244         (P): New macro to define a register as a pseudo register.
1245         (R, R4, R8, R16, FR32, R64, R0): Updated.
1246         (struct variant): Add new fields for number of pseudo registers
1247         and number of total registers.
1248         (tot_num_registers): New macro replacing....
1249         (num_registers): ...deleted macro.
1250         (num_registers): New function.
1251         (num_pseudo_registers): New function.
1252         (variants): Update all variants to intialize new fields correctly.
1253         Postpone initialization of number of pseudo regs and real regs.
1254         (init_variants): New function.
1255         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
1256         registers offsets.
1257
1258 2002-08-19  David Carlton  <carlton@math.stanford.edu>
1259
1260         * valops.c (search_struct_field): Change error message to treat
1261         return value of 0 from value_static_field as meaning that field is
1262         optimized out.
1263         (value_struct_elt_for_reference): Ditto.
1264         * values.c (value_static_field): Treat an unresolved location the
1265         same as a nonexistent symbol.  Fix PR gdb/635.
1266         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1267         enclosed.  Fix PR gdb/574.
1268         * MAINTAINERS: Add self to Write After Approval list.
1269
1270 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
1271
1272         * mips-tdep.c (mips_xfer_register): New function.
1273         (mips_n32n64_extract_return_value): Rewrite.
1274         (mips_gdbarch_init): For N32 and N64, set extract_return_value
1275         instead of deprecated_extract_return_value.
1276
1277 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
1278
1279         * rs6000-tdep.c (TDEP): Delete macro.
1280         (branch_dest): Replace use of TDEP macro with its body.
1281         (rs6000_pop_frame): Ditto.
1282         (rs6000_push_arguments): Ditto.
1283         (rs6000_skip_trampoline_code): Ditto.
1284         (rs6000_frame_saved_pc): Ditto.
1285         (rs6000_frame_chain): Ditto.
1286         (rs6000_register_name): Ditto.
1287         (rs6000_register_byte): Ditto.
1288         (rs6000_register_raw_size): Ditto.
1289         (rs6000_register_virtual_type): Ditto.
1290         (rs6000_register_convertible): Ditto.
1291         (rs6000_convert_from_func_ptr_addr): Ditto.
1292
1293 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
1294
1295         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1296         conditionally.
1297         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1298         MIPS_LINUX_JB_ELEMENT_SIZE.
1299         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1300         for MAX_REGISTER_RAW_SIZE arrays.
1301         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1302         MIPS_LINUX_JB_ELEMENT_SIZE.
1303
1304 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1305
1306         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1307
1308 2002-08-19  Aidan Skinner <aidan@velvet.net>
1309
1310         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1311         ada-valprint.c ada-tasks.c.
1312         (YYFILES): Add ada-exp.y.
1313         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1314         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1315         (ada-exp.tab.o): New target.
1316                 
1317 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1318
1319         * regcache.c (regcache_xfer_part): New function.
1320         (regcache_raw_read_part): New function.
1321         (regcache_raw_write_part): New function.
1322         (regcache_cooked_read_part): New function.
1323         (regcache_cooked_write_part): New function.
1324         * regcache.h (regcache_raw_read_part): Declare.
1325         (regcache_raw_write_part): Declare.
1326         (regcache_cooked_read_part): Declare.
1327         (regcache_cooked_write_part): Declare.
1328
1329 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
1330
1331         * remote.c (remote_open_1): Add async_p.
1332         (remote_async_open_1): Delete.
1333         (open_remote_target): Delete.
1334         (remote_open, extended_remote_open): Update calls to remote_open_1.
1335         (remote_async_open, extended_remote_async_open): Call
1336         remote_open_1 instead of remote_async_open_1.
1337
1338 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
1339
1340         * blockframe.c: Fix a few coding standard violations.
1341
1342 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
1343
1344         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1345         here from ...
1346         * config/i386/tm-i386sco5.h: ... here.  File removed.
1347         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1348
1349         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1350         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1351         (TM_FILE): Set to tm-i386.h.
1352         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1353         * config/i386/tm-i386v.h: Remove file.
1354         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1355         instead of "i386/tm-i386v.h".
1356         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1357         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1358         "i386/tm-i386v.h".
1359         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1360         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1361         "i386/tm-i386.h".
1362
1363 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
1364
1365         * config/i386/nm-i386v.h: Add protection against
1366         multiple-inclusion.
1367         (i386_register_u_addr): Remove prototype.
1368         (register_u_addr): New prototype.
1369         (REGISTER_U_ADDR): Redefine accordingly.
1370         * i386v-nat.c: Improve several comments.
1371         (i386_register_u_addr): Change signature and rename to
1372         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
1373         ubase variable.
1374
1375 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1376
1377         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1378         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1379         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1380         deprecated_extract_return_value.
1381         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1382         rename mips_o32o64_push_arguments.
1383         (mips_gdbarch_init): Update.
1384         (mips_extract_return_value): Delete.
1385         (mips_o32_extract_return_value): Clone mips_extract_return_value.
1386         (mips_o64_extract_return_value): Clone mips_extract_return_value.
1387         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1388         (mips_n32n64_extract_return_value): Clone
1389         mips_extract_return_value.
1390         (mips_store_return_value): Delete.
1391         (mips_o32_store_return_value): Clone mips_store_return_value.
1392         (mips_o64_store_return_value): Clone mips_store_return_value.
1393         (mips_eabi_store_return_value): Clone mips_store_return_value.
1394         (mips_n32n64_store_return_value): Clone mips_store_return_value.
1395
1396 2002-08-18  Aidan Skinner <aidan@velvet.net>
1397
1398         * ada-lang.c: Use gdb_string.h instead of <string.h>.
1399         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1400                 
1401 2002-08-18  Aidan Skinner <aidan@velvet.net>
1402
1403         * ada-lang.c: Run through gdb_indent.sh.
1404         * ada-lang.h: Run through gdb_indent.sh.
1405         * ada-tasks.c: Run through gdb_indent.sh.
1406         * ada-typeprint.c: Run through gdb_indent.sh.
1407         * ada-valprint.c: Run through gdb_indent.sh.
1408
1409 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1410
1411         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1412         ABI.
1413
1414 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
1415
1416         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1417
1418         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1419         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1420
1421         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1422         write_register_gen instead of write_register_bytes.
1423
1424         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1425         i[3456]-*-osf1mk* configurations have been made obsolete.
1426         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1427         i[3456]86-*-osf1mk* hosts obsolete.
1428         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1429         targets obsolete.
1430         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1431         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1432         config/i386/i386m3.mt, config/i386/nm-m3.h,
1433         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1434         config/i386/i386mk.mh, config/i386/i386mk.mt,
1435         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1436         obsolete.
1437         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1438         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1439         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1440
1441 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1442
1443         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1444         (hppa_value_returned_from_stack): Declare.
1445         (hppa_extract_return_value): Declare.
1446         * config/pa/hppa.mt: New file.
1447         * configure.tgt: Recognize hppa*-*-*.
1448         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
1449
1450 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
1451
1452         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1453         comment.
1454
1455 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
1456
1457         * top.c (gdb_rl_operate_and_get_next): Make sure
1458         operate-and-get-next functions correctly even when the history
1459         list is completely filled.
1460
1461 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
1462
1463         * MAINTAINERS (Target Instruction Set Architectures): Rename
1464         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
1465         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
1466         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
1467         already listed under Host/Native.
1468
1469         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1470         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
1471         mips*-*-*.
1472
1473 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
1474
1475         * config/ia64/ia64.mt: New file.
1476         * config/alpha/alpha.mt: New file.
1477         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1478         ia64-linux-gnu.  Mention that ia64-elf is broken.
1479         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1480
1481 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
1482
1483         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1484         generic_func_frame_valid instead of func_frame_valid.
1485
1486 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1487
1488         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1489         procfs appears to be broken when debugging on multi-processor
1490         machines. So enable software single stepping in order to avoid
1491         using the procfs interface to do next/step operations, using
1492         internal breakpoints instead.
1493
1494         * infrun.c (handle_inferior_event): Readjust the stop_pc by
1495         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1496         make this pc address equal to the value it would have if the
1497         system stepping capability was used. Also set a new flag used
1498         to ensure that we don't readjust the PC one more time later.
1499
1500         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1501         address by DECR_PC_AFTER_BREAK when software single step is
1502         in use for this architecture, as this has already been taken
1503         care of in handle_inferior_event().
1504
1505 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1506
1507         * infrun.c (handle_inferior_event): Minor reformatting, to make
1508         a rather long condition expression easier to read.
1509
1510 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1511
1512         * Makefile.in (gdbtk.o): Move to end of file.
1513         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1514         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1515         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1516         (gdbtk-wrapper.o, gdbres.o): Ditto.
1517
1518 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1519
1520         * Makefile.in (copying.o): Separate out compile rule.
1521         (hpux-thread.o, procfs.o, signals.o): Ditto.
1522         (v850ice.o, z8k-tdep.o): Ditto.
1523         (tui-file.o): Move to TUI section.
1524         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1525         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1526
1527 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1528
1529         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1530         skip_trampoline_code, for better namespace-proofing.   
1531
1532         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1533
1534 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1535
1536         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1537
1538 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
1539
1540         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1541         signal, check whether we hit a breakpoint before checking for a
1542         single step breakpoint. Otherwise, GDB fails to notice that a
1543         breakpoint has been hit when stepping onto a breakpoint.
1544
1545 2002-08-16  Keith Seitz  <keiths@redhat.com>
1546
1547         * gdb-events.sh (clear_gdb_event_hooks): New function.
1548         * gdb-events.c: Regenerate.
1549         * gdb-events.h: Regenerate.
1550
1551 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
1552
1553         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1554         not_a_sw_breakpoint.
1555         * breakpoint.h (bpstat_stop_status): Add parameter names.
1556
1557 2002-08-16  Grace Sainsbury  <graces@redhat.com>
1558
1559         * remote.c (remote_insert_hw_breakpoint)
1560         (remote_remove_hw_breakpoint): Fix calculation of length field
1561         for Z-packet.
1562
1563 2002-08-15  Michael Snyder  <msnyder@redhat.com>
1564
1565         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1566         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1567         (supply_fpregset): Ditto.
1568         
1569         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
1570         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
1571         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1572         (TARGET_READ_SP): Delete.
1573         (DO_REGISTERS_INFO): Delete.
1574         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1575         Delete.
1576         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1577         from macros to functions.
1578
1579         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1580         (mips_register_convertible, mips_register_convert_to_virtual,
1581         mips_register_convert_to_raw): Make static.
1582         (mips_read_sp): New function.
1583         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1584         (mips_do_registers_info): Make static.
1585         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1586         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1587         (mips_register_convert_from_type, mips_register_convert_to_type):
1588         New functions.
1589         (mips_gdbarch_init): Set up function_start_offset, 
1590         register_virtual_size, pc_in_sigtramp.
1591
1592 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
1593
1594         * infcmd.c (vector_info): New function.
1595         (_initialize_infcmd): Add command "info vector".
1596         (print_vector_info): New function.
1597
1598         * gdbarch.sh (PRINT_VECTOR_INFO): New method
1599         * gdbarch.h, gdbarch.c: Regenerate.
1600
1601 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
1602
1603         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1604         ``print_all''.  Only print vector registers when ``print_all''.
1605
1606 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
1607
1608         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1609         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1610
1611         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1612         Add `args' parameter.
1613         * gdbarch.h, gdbarch.c: Regenerate.
1614         
1615         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1616         
1617         * infcmd.c (float_info): Call print_float_info.
1618         (print_float_info): New function.  By default, print the
1619         floating-point registers.
1620
1621         * arch-utils.h (default_print_float_info): Delete declaration.
1622         * arch-utils.c (default_print_float_info): Delete function.
1623         
1624 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
1625
1626         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1627         out define.
1628
1629         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1630         FRAME.
1631
1632         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1633         * configure.host: Make i[3456]86-*-aix host obsolete.
1634         * configure.tgt: Make i[3456]86-*-aix target obsolete.
1635         * config/i386/i386aix.mh, config/i386/i386aix.mt,
1636         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1637         config/i386/xm-i386aix.h: Make files obsolete.
1638         * i386aix-nat.c: Make file obsolete.
1639         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1640         (i386aix-nat.o): Make target obsolete.
1641
1642         * config/i386/nm-gnu.h: Removed.
1643         * config/i386/nm-i386gnu.h: New file.
1644         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1645         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1646         Moved here from ...
1647         * config/i386/tm-i386gnu.h: ... here.  Removed.
1648         * config/i386/xm-i386gnu.h: Removed.
1649         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1650         (NAT_FILE): Set to nm-i386gnu.h.
1651         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1652         * i386-tdep.c: New file.
1653         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1654         (i386gnu-tdep.o): Specify dependencies.
1655
1656 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
1657
1658         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1659         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1660         Adjust a few comments to reflect reality a bit closer.
1661         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1662         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1663         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1664         target_insert_watchpoint, target_remove_watchpoint):
1665         Move defines to ...
1666         * config/i386/nm-i386sco5.h: ... here.
1667         (kernel_u_size): Add prototype.  Improve a few comments and add
1668         protection against multiple inclusion.
1669         
1670         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1671         out define.
1672
1673         * uw-thread.c (SP_ARG0): Define if not already defined.
1674         * config/i386/tm-i386.h (SO_ARG0): Remove define.
1675
1676         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1677
1678         * config/i386/tm-i386.h: Don't include "regcache.h".
1679
1680         * i387-tdep.h (i387_print_float_info): New prototype.
1681         * i387-tdep.c (print_i387_value, print_i387_ext,
1682         print_i387_status_word, print_i387_control_word): Add `struct
1683         ui_file *' argument and use it for output.
1684         (i387_print_float_info): Renamed from i387_float_info.  Add
1685         `struct gdbarch *' and `struct ui_file *' arguments and use the
1686         latter for output.
1687         * i386-tdep.c: Include "i387-tdep.h".
1688         (i386_gdbarch_init): Set print_float_info.
1689         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1690         (FLOAT_INFO): Remove define.
1691
1692 2002-08-13  Michael Snyder  <msnyder@redhat.com>
1693
1694         * mips-tdep.c (mips_push_arguments): Rename to
1695         mips_eabi_push_arguments, and tune for EABI.
1696         (MIPS_REGS_HAVE_HOME_P): Delete.
1697         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1698         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1699         Delete references to mips_regs_have_home_p.
1700
1701 2002-08-14  Keith Seitz  <keiths@redhat.com>
1702
1703         * Makefile.in (install-gdbtk): Create insight plugin directory.
1704         Install plugins.tcl file.
1705
1706 2002-08-14  Keith Seitz  <keiths@redhat.com>
1707
1708         * configure.in: Move SUBDIRS to near top of the file so that
1709         --enable options may add things to it.
1710         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1711         * configure: Regenerate.
1712
1713 2002-08-13  Michael Snyder  <msnyder@redhat.com>
1714
1715         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
1716         cloned from mips_push_arguments, tuned for o32/o64 ABI.
1717         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1718
1719 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
1720
1721         * vax-tdep.c (vax_get_saved_register): Delete function.
1722         (vax_gdbarch_init): Update.
1723         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1724         (ns32k_gdbarch_init): Update.
1725         * alpha-tdep.c (alpha_get_saved_register): Delete function.
1726         (alpha_gdbarch_init): Update.
1727
1728 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1729
1730         * regcache.c (init_regcache_descr): Overallocate the
1731         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1732         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1733         nr_raw_registers.
1734         (set_register_cached): Add range checking assertions.  Use
1735         current_regcache.
1736
1737 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
1738
1739         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1740         numbers for MMX registers.
1741
1742 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1743
1744         * i386-tdep.c (i386_gdbarch_init): Use
1745         generic_unwind_get_saved_register.
1746
1747 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
1748
1749         * procfs.c (procfs_can_use_hw_breakpoint): New function.
1750         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1751         target vector.
1752         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1753         Delete.  Add comment regarding this now-deleted target method.
1754
1755 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1756
1757         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1758         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1759         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1760         real PC and the page number (if it's within the memory bank window).
1761         (m68hc11_pseudo_register_write): Likewise when saving.
1762         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1763         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1764         (m68hc11_register_raw_size): And use 32-bit for it.
1765         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1766         16K memory bank is used by the prog; also use the virtual pc.
1767
1768 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1769
1770         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1771         (m68hc11_gdbarch_init): Install it in gdbarch.
1772         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1773         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1774         (MSYMBOL_SIZE): New for documentation.
1775         (insn_return_kind): Enum to specify how a function returns.
1776         (frame_extra_info): Cleanup and record the return mode.
1777         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
1778         register in address computation.
1779         (m68hc11_get_return_insn): New to obtain the return instruction used
1780         by the function.
1781         (m68hc11_frame_init_saved_regs): Take into account the return
1782         instruction used by the function for far and interrupt functions.
1783         (m68hc11_init_extra_frame_info): Take into account page register.
1784         (m68hc11_frame_args_address): Adjust according to the return mode.
1785         (show_regs): Print page register only when it's used.
1786
1787 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1788
1789         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1790         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1791         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1792         registers.
1793         (m68hc11_register_raw_size): Likewise.
1794
1795 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1796
1797         * i386-tdep.c (i386_register_name): Handle mmx registers.
1798         (mmx_regnum_p): New function.
1799         (i386_mmx_names): New array.
1800         (mmx_num_regs): New variable.
1801         (i386_pseudo_register_read): New function.
1802         (i386_pseudo_register_write): New function.
1803         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1804
1805         * regcache.c (regcache_raw_read_unsigned): New function.
1806         (regcache_raw_read_signed): New function.
1807         * regcache.h (regcache_raw_read_unsigned): Declare.
1808         (regcache_raw_read_signed): Declare.
1809
1810 2002-08-13  Andrew Cagney  <cagney@redhat.com>
1811
1812         * regcache.c (regcache_raw_read_as_address): Delete function.
1813         (regcache_cooked_read_signed): New function.
1814         (regcache_cooked_read_unsigned): New function.
1815         * regcache.h (regcache_cooked_read_signed): Declare.
1816         (regcache_cooked_read_unsigned): Declare.
1817         (regcache_raw_read_as_address): Delete declaration.
1818
1819         * blockframe.c (generic_read_register_dummy): Use
1820         regcache_cooked_read_unsigned.
1821         * i386-tdep.c (i386_extract_struct_value_address): Use
1822         regcache_cooked_read_unsigned.
1823
1824 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1825
1826         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1827         double sizes according to ELF ABI flags.
1828         (gdbarch_tdep): Record elf_flags.
1829
1830 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1831
1832         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1833         (m6812_prolog): They can appear in 68HC12 function prologue.
1834         (m68hc11_frame_chain): Cleanup.
1835
1836 2002-08-12  Andrew Cagney  <cagney@redhat.com>
1837
1838         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1839         declarations.
1840         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1841         (i386_linux_register_raw_size): Delete function.
1842         (i386_linux_init_abi): Update.
1843         * i386-tdep.c (i386_register_raw_size): Delete function.
1844         (i386_register_byte): Delete function.
1845         (i386_gdbarch_init): Update.
1846         (i386_register_size): Delete array.
1847         (i386_register_offset): Delete array.
1848
1849         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1850         (REGISTER_RAW_SIZE): Delete macro.
1851         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1852         (REGISTER_BYTE): Delete macro.
1853
1854 2002-08-11  Aidan Skinner <aidan@velvet.net>
1855
1856         * ada-lang.c (ada_lookup_partial_symbol)
1857         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1858         prototype names so that grep ^func works properly.
1859
1860         * ada-lang.c (ada_array_element_type)
1861         (ada_lookup_partial_symbol): Fix typos in parameter list.
1862
1863         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1864         Fix prototype names so that grep ^func works properly.
1865         
1866 2002-08-10  Andrew Cagney  <cagney@redhat.com>
1867             Elena Zannoni  <ezannoni@redhat.com>
1868             Martin M. Hunt  <hunt@redhat.com>
1869
1870         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1871         (build_builtin_type_vec128i): Set the vector bit.
1872         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1873         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1874         (build_builtin_type_vec64): New function.
1875         (build_builtin_type_vec64i): New function.
1876         (build_gdbtypes): Initialize builtin_type_vec64 and
1877         builtin_type_vec64i.
1878
1879 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1880
1881         * regcache.c (regcache_dump): Compare the register offset
1882         with REGISTER_BYTE.
1883         * arch-utils.c (generic_register_byte): New function.
1884         * arch-utils.h (generic_register_byte): Declare.
1885         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1886         * gdbarch.h, gdbarch.c: Regenerate.
1887
1888 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1889
1890         * regcache.c: Include "gdbcmd.h"
1891         (_initialize_regcache): Add commands "maintenance print
1892         registers", "maintenance print raw-registers" and "maintenance
1893         print cooked-registers".
1894         (enum regcache_dump_what): Define.
1895         (dump_endian_bytes): New function.
1896         (regcache_dump): New function.
1897         (regcache_print): New function.
1898         (maintenance_print_registers): New function.
1899         (maintenance_print_raw_registers): New function.
1900         (maintenance_print_cooked_registers): New function.
1901         * Makefile.in (regcache.o): Update dependencies.
1902
1903 2002-08-09  Michael Snyder  <msnyder@redhat.com>
1904
1905         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1906         (mips_push_arguments): Correct some comments.  Use paddr_nz
1907         for printing addresses in debug output.  Replace static
1908         allocation using MAX_REGISTER_RAW_SIZE with alloca.
1909         (mips_n32n64_push_arguments): New function, cloned from
1910         mips_push_arguments and tuned for the n32/n64 ABI.
1911         (mips_push_register): Buffer needs dynamic allocation.
1912         (mips_print_register): Ditto.
1913         (do_gp_register_row): Ditto.
1914         (mips_store_return_value): Ditto.
1915         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1916
1917 2002-08-09  Don Howard  <dhoward@redhat.com>
1918
1919         * memattr.c (mem_info_command): Print special case of upper bound
1920         as max CORE_ADDR + 1.
1921
1922 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1923
1924         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
1925         returns structs by ref if they're too big to fit in two registers.
1926
1927 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1928
1929         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1930         saved regs value.
1931         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1932         mips_find_saved_regs().
1933         (mips_pop_frame): Likewise.
1934
1935 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1936
1937         * blockframe.c (frame_saved_regs_register_unwind): Revise
1938         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1939         frames are in use.
1940
1941 2002-08-09  Grace Sainsbury  <graces@redhat.com>
1942         
1943         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1944         T-packets; the 'a' is not taken as a register number.
1945         (remote_check_watch_resources, remote_stopped_by_watchpoint)
1946         (remote_stopped_data_address): New functions; add to target
1947         vector.
1948         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1949         prototypes to match other implementations of this
1950         function. replace integer argument with pointer -- the length
1951         field in the Z-packet is the length of what is pointed to or 1 if
1952         pointer is null. Add to target vector.
1953         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1954         target vector.
1955
1956         From Mark Salter:
1957         * remote.c (remote_wait): Add support to extract optional
1958         watchpoint information from T-packet. Ignore unrecognized
1959         optional info in T-packet.
1960         (remote_async_wait): Ditto.
1961
1962 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
1963
1964         * cli/cli-dump.c: Change fopen modes to use binary open modes
1965         as defined in include/fopen-bin.h throughout.
1966
1967 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1968
1969         * mips-tdep.c: Minor whitespace and indentation clean-ups.
1970
1971 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1972
1973         * doublest.c (store_floating): Avoid floatformat_from_doublest()
1974         assertion failure by returning early after a warning.
1975
1976 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1977
1978         * mips-tdep.c (mips_find_saved_regs): Make static.
1979         (mips_frame_init_saved_regs): New function.
1980         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1981         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1982         (mips_find_saved_regs): Delete declaration.
1983
1984 2002-08-08  Grace Sainsbury  <graces@redhat.com>
1985
1986         * remote.c (remote_wait, remote_async_wait): Change
1987         thread_num from int to ULONGEST.
1988         (unpack_varlen_hex): Change result parameter from
1989         int * to ULONGEST *.
1990
1991 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
1992
1993         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1994         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1995         powerpc*-*-*.
1996         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1997
1998 2002-08-08  Andrew Cagney  <cagney@redhat.com>
1999
2000         * gcore.c (override_derive_stack_segment): Delete variable.
2001         (preempt_derive_stack_segment): Delete function.
2002         (derive_stack_segment): Delete function.
2003         (default_derive_stack_segment): Renamed to derive_stack_segment.
2004         (override_derive_heap_segment): Delete variable.
2005         (preempt_derive_heap_segment): Delete function.
2006         (derive_heap_segment): Delete function.
2007         (default_derive_heap_segment): Rename to derive_heap_segment.
2008
2009 2002-08-06  Michael Snyder  <msnyder@redhat.com>
2010
2011         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2012         * mips-tdep.c (mips_EABI_use_struct_convention, 
2013         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2014         New functions.  (mips_use_struct_convention): Delete.
2015         (mips_gdbarch_init): set use_gdbarch_convention.
2016
2017 2002-08-06  Michael Snyder  <msnyder@redhat.com>
2018
2019         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2020         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
2021         mips_o32_reg_struct_has_addr): New functions.
2022         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2023
2024 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
2025
2026         * regcache.c (pseudo_register): Delete function.
2027         (fetch_register): Delete function.
2028         (store_register): Delete function.
2029         (regcache_raw_read, legacy_read_register_gen): Use
2030         target_fetch_registers instead of fetch_register.
2031         (legacy_write_register_gen, regcache_raw_write): Use
2032         target_store_register instead of store_register.
2033         (write_register_bytes): Ditto.
2034
2035         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2036         (STORE_PSEUDO_REGISTER): Delete.
2037         * gdbarch.h, gdbarch.c: Regenerate.
2038
2039 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
2040
2041         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2042         write dump file binary.
2043
2044 2002-08-05  Michael Snyder  <msnyder@redhat.com>
2045
2046         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
2047         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
2048         (mips_gdbarch_init): Set N32 target to be mips64.
2049
2050 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
2051
2052         * frame.c (find_saved_register): Break out of loop once saved
2053         register address is found.  Don't mention sparc in loop comment
2054         anymore.
2055
2056 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
2057
2058         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2059         mips_default_saved_regsize to 8.
2060
2061 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
2062
2063         * gcore.c: Do not include <sys/procfs.h>.
2064         * Makefile.in (gcore.o): Update dependencies.
2065
2066 2002-08-06  Andrew Cagney  <cagney@redhat.com>
2067
2068         * configure.tgt: Make arc-*-* obsolete.
2069         * NEWS: Mention that arc-*-* has been identifed as obsolete.
2070         * MAINTAINERS: Make arc-elf obsolete.
2071         * arc-tdep.c: Make file obsolete.
2072         * config/arc/arc.mt: Ditto.
2073         * config/arc/tm-arc.h: Ditto.
2074
2075 2002-08-05  Theodore A. Roth  <troth@verinet.com>
2076
2077         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2078
2079 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
2080
2081         * mcore-tdep.c (mcore_gdbarch_init): Use
2082         generic_unwind_get_saved_register instead of
2083         generic_get_saved_register.
2084         * v850-tdep.c (v850_gdbarch_init): Ditto.
2085         * frv-tdep.c (frv_gdbarch_init): Ditto.
2086         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2087         * s390-tdep.c (s390_gdbarch_init): Ditto.
2088         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2089         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2090         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2091
2092 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
2093
2094         * objfiles.h: Add missing #include "symfile.h"
2095
2096         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2097
2098 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
2099
2100         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2101         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2102         of FIELD_BITSIZE.
2103
2104 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
2105
2106         * NEWS: Cleanup and nitpick.
2107
2108 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
2109
2110         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
2111
2112 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
2113
2114         * Makefile.in (gdbtk-bp.o): Update dependencies.
2115         (gdbtk-register.o): Ditto.
2116         (gdbtk-varobj.o): Ditto.
2117
2118 2002-08-03  Andrew Cagney  <cagney@redhat.com>
2119
2120         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2121         m68hc11_fetch_pseudo_register.
2122         (m68hc11_pseudo_register_write): Replace
2123         m68hc11_store_pseudo_register.
2124         (m68hc11_gdbarch_init): Update.
2125
2126 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
2127
2128         * gdbarch.sh: Include "gdb_string.h".
2129         * gdbarch.c: Regenerate.
2130
2131         * regcache.c: Include "gdb_string.h".
2132         * ax-general.c: Ditto.
2133         * varobj.c: Ditto.
2134         * std-regs.c: Ditto.
2135         * fbsd-proc.c: Ditto.
2136         * thread.c: Ditto.
2137
2138         * Makefile.in (regcache.o): Update dependencies.
2139         (thread.o, gdbarch.o): Ditto.
2140         (ax-general.o, gdbarch.o): Ditto.
2141         (varobj.o, std-regs.o): Ditto.
2142         (fbsd-proc.o): Specify dependencies.
2143
2144 2002-08-02  Andrew Cagney  <cagney@redhat.com>
2145
2146         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2147         regnum.
2148         (regcache_cooked_write): Ditto.
2149
2150 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
2151
2152         * regcache.c (regcache_cooked_read): New function.
2153         (regcache_cooked_write): New function.
2154         (read_register_gen): Rewrite using regcache_cooked_read.
2155         (write_register_gen): Rewrite using regcache_cooked_write.
2156
2157         * regcache.h (regcache_cooked_read, regcache_cooked_write):
2158         Declare.
2159
2160 2002-08-02  Andrew Cagney  <cagney@redhat.com>
2161
2162         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2163         Replace the architecture methods register_read and register_write.
2164         * gdbarch.h, gdbarch.c: Regenerate.
2165         * regcache.c (init_regcache_descr): Update.
2166         (read_register_gen): Update.
2167         (write_register_gen): Update.
2168         (supply_register): Update comment.
2169
2170         * sh-tdep.c (sh_gdbarch_init): Update.
2171         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2172         `regcache' and `gdbarch' parameters.  Make `buffer' a void
2173         pointer.  Update code.
2174         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2175         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
2176         void pointer.  Update code.
2177         (sh64_register_write): Delete.
2178         (sh4_register_read): Delete.
2179         (sh64_register_read): Delete.
2180         (sh4_register_write): Delete.
2181         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2182         void pointer, `to' parameter a void pointer.
2183         (sh_sh64_register_convert_to_raw): Ditto.
2184
2185 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
2186
2187         * mips-tdep.c (mips_register_virtual_type): Use architecture
2188         invariant return values.
2189
2190 2002-08-01  Andrew Cagney  <cagney@redhat.com>
2191
2192         * linux-proc.c: Include "gdb_string.h".
2193         * Makefile.in (linux-proc.o): Update dependency list.
2194
2195 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
2196
2197         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
2198         comment.
2199
2200 2002-08-01  Grace Sainsbury  <graces@redhat.com>
2201
2202         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2203         to_insert_watchpoint, to_remove_watchpoint,
2204         to_stopped_by_watchpoint, to_stopped_data_address,
2205         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2206         target vecctor. Define their corresponding macros so they call
2207         them.
2208         
2209         * target.c: Add default and debug versions of for
2210         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2211         to_insert_watchpoint, to_remove_watchpoint,
2212         to_stopped_by_watchpoint, to_stopped_data_address,
2213         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2214
2215 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
2216
2217         * mips-tdep.c (mips_register_virtual_type): New function.
2218         (mips_gdbarch_init): Register mips_register_virtual_type()
2219         with gdbarch machinery.
2220         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2221         this file instead of tm-bigmips.h.
2222         (MIPS_REGSIZE): Delete this macro.
2223         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
2224         multiarch version in mips-tdep.c will be found.
2225
2226 2002-08-01  Andrew Cagney  <cagney@redhat.com>
2227
2228         * NEWS: Menion that CHILL has been made obsolete.
2229
2230         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2231         * stabsread.c (read_range_type): Ditto.
2232         * gdbtypes.h: Ditto.
2233         * language.c (binop_type_check): Ditto.
2234         (binop_result_type): Ditto.
2235         (integral_type): Ditto.
2236         (character_type): Ditto.
2237         (string_type): Ditto.
2238         (boolean_type): Ditto.
2239         (structured_type): Ditto.
2240         (lang_bool_type): Ditto.
2241         (binop_type_check): Ditto.
2242         * language.h (_LANG_chill): Ditto.
2243         * dwarfread.c (set_cu_language): Ditto.
2244         * dwarfread.c (CHILL_PRODUCER): Ditto.
2245         * dwarfread.c (handle_producer): Ditto.
2246         * expression.h (enum exp_opcode): Ditto.
2247         * eval.c: Ditto for comments.
2248         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2249         * expprint.c (print_subexp): Ditto.
2250         (print_subexp): Ditto.
2251         * valops.c (value_cast): Ditto.
2252         (search_struct_field): Ditto.
2253         * value.h (COERCE_VARYING_ARRAY): Ditto.
2254         * symfile.c (init_filename_language_table): Ditto.
2255         (add_psymbol_with_dem_name_to_list): Ditto.
2256         * valarith.c (value_binop): Ditto.
2257         (value_neg): Ditto.
2258         * valops.c (value_slice): Ditto.
2259         * symtab.h (union language_specific): Ditto.
2260         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2261         (SYMBOL_DEMANGLED_NAME): Ditto.
2262         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2263         * defs.h (enum language): Ditto.
2264         * symtab.c (got_symtab): Ditto.
2265         * utils.c (fprintf_symbol_filtered): Ditto.
2266
2267         * ch-typeprint.c: Make file obsolete.
2268         * ch-valprint.c: Make file obsolete.
2269         * ch-lang.h: Make file obsolete.
2270         * ch-exp.c: Make file obsolete.
2271         * ch-lang.c: Make file obsolete.
2272
2273         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2274         CHILL_LIB.
2275         (TARGET_FLAGS_TO_PASS): Ditto.
2276         (CHILLFLAGS): Obsolete.
2277         (CHILL): Obsolete.
2278         (CHILL_FOR_TARGET): Obsolete.
2279         (CHILL_LIB): Obsolete.
2280         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2281         ch-valprint.c.
2282         (HFILES_NO_SRCDIR): Remove ch-lang.h.
2283         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2284         ch-lang.o.
2285         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2286         targets.
2287
2288 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
2289
2290         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2291         This does not change anything at the moment, but will be helpful
2292         later when full Ada support is integrated.
2293
2294 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2295
2296         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2297         help message.
2298
2299 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2300
2301         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2302         and save it in a local variable.  Use variable in later test.
2303
2304 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2305
2306         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2307         test.  (Thanks to Daniel Jacobowitz.)
2308         
2309 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2310
2311         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2312         (mips_abi_strings): Add "n64".
2313         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
2314
2315 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2316
2317         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2318         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2319
2320 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
2321
2322         * utils.c (host_pointer_to_address, address_to_host_pointer):
2323         Use gdb_assert() instead of explicit call to internal_error().
2324
2325 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
2326
2327         * Makefile.in (rs6000-nat.o): Update dependencies.
2328
2329         From Nicholas Duffek:
2330         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2331         (aix-thread.o): New rule.
2332         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2333         * config/powerpc/aix432.mh: New file.
2334
2335 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
2336
2337         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2338         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2339         (fetch_core_registers, ppc_linux_supply_gregset)
2340         (ppc_linux_supply_fpregset): New functions.
2341         (ppc_linux_regset_core_fns): New.
2342         (_initialize_ppc_linux_tdep): Call add_core_fns.
2343         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2344         and ppc_linux_supply_gregset.
2345         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2346         (supply_fpregset): Call ppc_linux_supply_fpregset.
2347         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2348         corelow.o.
2349         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2350
2351 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
2352
2353         * symtab.c (lookup_symbol): Demangle before lowercasing.
2354
2355 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
2356
2357         * symtab.h: Replace #include "gdb_obstack.h" with opaque
2358         declaration.
2359         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2360         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2361         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2362         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2363         "gdb_string.h".
2364         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2365         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2366         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2367         (avr-tdep.o, mon960-rom.o): Ditto.
2368         (aout_stabs_gnu_h): Define.
2369         (symtab_h): Remove $(gdb_obstack_h).
2370
2371 2002-07-30  Jim Blandy  <jimb@redhat.com>
2372
2373         Patch from David Carlton <carlton@math.stanford.edu>:
2374         * gdbinit.in: Move the `dir' commands that add GDB's own source
2375         directory to the search path to the end, so that the `gdb' source
2376         directory will be searched first.
2377
2378 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
2379
2380         * gdb_obstack.h: New file.
2381         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2382         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2383         * objfiles.h: Include "gdb_obstack.h".
2384         * Makefile.in (gdb_obstack_h): Define.
2385         (symtab_h): Add $(gdb_obstack_h).
2386         (objfiles_h): Add $(gdb_obstack_h).
2387         
2388         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2389         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2390         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2391         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2392         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2393         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2394         * symfile.c, coffread.c, c-typeprint.c: Ditto.
2395         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2396
2397         * Makefile.in (bcache.o): Update dependencies.
2398         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2399         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2400         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2401         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2402         (stabsread.o, symfile.o, symmisc.o): Ditto.
2403         (symtab.o, typeprint.o, macroexp.o): Ditto.
2404         (macrotab.o, mdebugread.o): Ditto.
2405         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2406         (coff_ecoff_h, aout_aout64_h): Define.
2407         (aout_stabs_gnu_h, libaout_h): Define.
2408
2409 2002-07-29  Andrew Cagney  <cagney@redhat.com>
2410
2411         * regcache.c (struct regcache_descr): Rename nr_registers to
2412         nr_cooked_registers.  Revise comments describing the structure
2413         member fields.
2414         (init_regcache_descr): Update.
2415         (init_legacy_regcache_descr): Update.
2416         (read_register_gen, write_register_gen): When a cooked register in
2417         the raw register range, directly access the value from the raw
2418         register cache.
2419
2420 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
2421
2422         * z8k-tdep.c: Do not include "obstack.h".
2423         * h8300-tdep.c, h8500-tdep.c: Ditto.
2424         * m68hc11-tdep.c, sh-tdep.c: Ditto.
2425         * valprint.c, v850-tdep.c: Ditto.
2426         * d10v-tdep.c, mn10300-tdep.c: Ditto.
2427         * mn10200-tdep.c: Ditto.
2428
2429         * Makefile.in (z8k-tdep.o): Update dependencies.
2430         (m68hc11-tdep.o, valprint.o): Ditto.
2431         (v850-tdep.o, d10v-tdep.o): Ditto.
2432         (mn10300-tdep.o, sparc-tdep.o): Ditto.
2433         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2434         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2435         (sh_opc_h, gdb_sim_sh_h): Define.
2436         (elf_sh_h, elf_bfd_h): Define.
2437         (opcode_m68hc11_h): Define.
2438         (OPCODES_SRC, OPCODES_DIR): define.
2439         (OPCODES): Use $(OPCODES_DIR).
2440         (gdb_sim_d10v_h): Rename sim_d10v_h.
2441         (gdb_sim_arm_h): Rename sim_arm_h.
2442
2443 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2444
2445         * utils.c (host_pointer_to_address, address_to_host_pointer):
2446         Change internal_error() message to indicate function responsible
2447         for the error.
2448
2449 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2450
2451         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2452         calls to local_hex_string_custom().
2453
2454 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2455
2456         * irix5-nat.c: Move IRIX shared library support from here...
2457         * solib-irix.c: ...to here.  Revised substantially to work with
2458         generic solib framework.
2459
2460         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2461         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2462         * mips-irix-tdep.c: New file.
2463
2464         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2465         (mips-irix-tdep.o, solib-irix.o): New rules.
2466         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2467         solib-irix.o.
2468         * config/mips/irix6.mt (TDEPFILES): Likewise.
2469         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2470
2471 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2472
2473         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2474         disabled (via ``#if 0'') includes.
2475
2476 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2477
2478         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2479         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2480         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2481         Add support for the fpscr register.
2482         * rs6000-nat.c (regmap, fetch_inferior_registers)
2483         (store_inferior_registers, fetch_core_registers): Likewise.
2484
2485 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
2486
2487         * rs6000-nat.c (language.h): Include.
2488         (special_regs): Delete this array.
2489         (regmap): New function.
2490         (fetch_register, store_register):  Use regmap() to map gdb
2491         register numbers to ptrace register numbers.  Also, use
2492         outputs from regmap() to make decisions regarding type of
2493         ptrace() call to make.  In particular, don't compare against
2494         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2495         (fetch_inferior_registers, store_inferior_registers): Where
2496         possible, obtain register numbers from tdep struct.  Don't
2497         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2498         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2499         (LAST_UISA_SP_REGNUM): Delete.
2500         
2501 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
2502
2503         * rs6000-nat.c (ppc-tdep.h): Include.
2504         (fetch_registers, store_register, fetch_core_registers): Don't
2505         access registers[] directly.  Instead, use supply_register() or
2506         regcache_collect() as appropriate.
2507         (find_toc_address): Format hex address with local_hex_string().
2508
2509 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
2510
2511         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2512         bfd/elf32-frv.c.
2513
2514 2002-07-24  Tom Tromey  <tromey@redhat.com>
2515
2516         * jv-exp.y: Marked all strings with _().
2517         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2518         internal_error.
2519         (MethodInvocation, CastExpression, parse_number, yyerror,
2520         java_type_from_name, push_expression_name, yylex): Typo fixes.
2521
2522 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
2523
2524         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2525         (tee_file_flush, tee_file_write, tee_file_fputs)
2526         (tee_file_isatty): New.
2527         * ui-file.h (tee_file_new): Add prototype.
2528
2529 2002-07-24  Aidan Skinner <aidan@velvet.net>
2530
2531         * ada-lang.c: Change k&r style function definitions to prototyped
2532         form.
2533         * ada-typeprint.c: Change k&r style function definitions to prototyped
2534         form.
2535         * ada-valprint.c: Change k&r style function definitions to prototyped
2536         form.
2537         
2538 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2539
2540         * README: Remove reference to remote-bug.
2541         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2542         remote-bug.c.
2543         (m88k-nat.o): Delete rule.
2544         (m88k-tdep.o): Delete rule.
2545         (remote-bug.o): Delete rule.
2546         * MAINTAINERS: Mark as obsolete.
2547         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2548         * m88k-tdep.c: Make file obsolete.
2549         * config/m88k/m88k.mh: Ditto.
2550         * config/m88k/delta88v4.mh: Ditto.
2551         * config/m88k/delta88v4.mt: Ditto.
2552         * config/m88k/delta88.mt: Ditto.
2553         * config/m88k/delta88.mh: Ditto.
2554         * remote-bug.c: Ditto.
2555         * config/m88k/tm-delta88.h: Ditto.
2556         * config/m88k/nm-delta88v4.h: Ditto.
2557         * config/m88k/xm-delta88.h: Ditto.
2558         * config/m88k/xm-dgux.h: Ditto.
2559         * config/m88k/tm-m88k.h: Ditto.
2560         * config/m88k/nm-m88k.h: Ditto.
2561         * config/m88k/tm-delta88v4.h: Ditto.
2562         * m88k-nat.c: Ditto.
2563         * cxux-nat.c: Ditto.
2564         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2565         and m88*-*-* obsolete.
2566         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2567         m88*-*-* obsolete.
2568
2569 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2570
2571         * findvar.c (extract_unsigned_integer): Make `addr' parameter
2572         constant.  Same for local pointer variables.
2573         (extract_signed_integer): Ditto.
2574         * defs.h (extract_unsigned_integer): Update.
2575         (extract_signed_integer): Update.
2576
2577 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2578
2579         * regcache.c (regcache_raw_write): Change buf parameter to a
2580         constant void pointer.
2581         (regcache_raw_read): Change buf parameter to a void pointer.
2582         (legacy_write_register_gen): Change myaddr parameter a constant
2583         void pointer.
2584         (supply_register): Change val parameter to a const void pointer.
2585         * regcache.h (regcache_raw_write): Update declaration.
2586         (regcache_raw_read): Update declaration.
2587         (supply_register): Update declaration.
2588
2589 2002-07-24  Tom Tromey  <tromey@redhat.com>
2590
2591         * defs.h (gdb_readline_wrapper): Declare.
2592         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2593         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2594         * top.c (gdb_readline_wrapper): New function.
2595         (command_line_input): Use it.
2596
2597 2002-07-24  Andrew Cagney  <cagney@redhat.com>
2598
2599         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2600         regcache_read and regcache_write.
2601         (regcache_raw_read_as_address): Replace regcache_read_as_address.
2602         * regcache.c: Update.
2603         * sh-tdep.c (sh64_push_arguments): Update comment.
2604         (sh_pseudo_register_read): Update.
2605         (sh_pseudo_register_write): Update.
2606         (sh4_register_read): Update.
2607         (sh4_register_write): Update.
2608         (sh64_pseudo_register_read): Update.
2609         (sh64_pseudo_register_write): Update.
2610         (sh64_register_read): Update.
2611         (sh64_register_write): Update.
2612         * i386-tdep.c (i386_extract_return_value): Update.
2613         (i386_extract_struct_value_address): Update.
2614         (i386_extract_return_value): Update.
2615         * blockframe.c (generic_read_register_dummy): Update.
2616         (generic_call_dummy_register_unwind): Update
2617         * infrun.c (write_inferior_status_register): Update.
2618
2619 2002-07-23  Jim Blandy  <jimb@redhat.com>
2620
2621         * parser-defs.h (expression_context_pc): Make this extern.
2622         (Thanks to Michael Snyder.)
2623
2624 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
2625
2626         GDB 5.2.1 released from 5.2 branch.
2627         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2628         * README: Update to mention 5.2.1.
2629
2630 2002-07-23  Mark Salter  <msalter@redhat.com>
2631
2632         * remote.c (remote_read_bytes): Fix check for error.
2633
2634 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
2635
2636         * aix-thread.c (language.h): Include.
2637         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2638         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2639         Print newlines at end of debug messages.
2640         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2641         (pdc_write_data): Use local_hex_string() instead of %llx formats.
2642
2643 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
2644
2645         * aix-thread.c (ppc-tdep.h): Include.
2646         (special_register_p): New function.
2647         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2648         (store_regs_user_thread): Use register number information from
2649         gdbarch_tdep struct instead of hardcoded offsets relative to
2650         FIRST_UISA_SP_REGNUM.
2651         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
2652         special_register_p() instead of using FPLAST_REGNUM and
2653         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2654         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
2655         will be MQ's register number.
2656
2657 2002-07-22  Michael Snyder  <msnyder@redhat.com>
2658
2659         * aix-thread.c (ops): Rename to aix_thread_ops.
2660         (base_ops): Rename to base_target.
2661         (ops_attach): Rename to aix_thread_attach.
2662         (ops_detach): Rename to aix_thread_detach.
2663         (ops_resume): Rename to aix_thread_detach.
2664         (ops_wait):   Rename to aix_thread_wait.
2665         (ops_kill):   Rename to aix_thread_kill.
2666         (init_ops):   Rename to init_aix_thread_ops.
2667         (ops_fetch_register): Rename to aix_thread_fetch_register.
2668         (ops_store_register): Rename to aix_thread_store_register.
2669         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2670         (ops_thread_alive):   Rename to aix_thread_thread_alive.
2671         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2672         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
2673         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2674         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
2675         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2676         (store_regs_lib):  Rename to store_regs_user_thread.
2677         (store_regs_kern): Rename to store_regs_kernel_thread.
2678
2679 2002-07-22  Michael Snyder  <msnyder@redhat.com>
2680
2681         * aix-thread.c (ops_prepare_to_store): Eliminate.
2682         (init_ops): Don't initialize ops.prepare_to_store.
2683         (store_regs_kern): Pre-fetch register buffers from child, 
2684         because some registers may not be in the cache.  Copy
2685         regs from register cache only if they are cached.
2686         (store_regs_lib): Copy regs from register cache only
2687         if they are cached.
2688         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2689         fill_gprs64): Ditto.
2690
2691 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
2692
2693         * aix-thread.c (gdb_assert.h): Include.
2694         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2695         register sizes (from register cache) match size of buffer holding
2696         register data.
2697         (fill_sprs32): Change parameter types to match those in the ptrace()
2698         buffer.
2699         (store_regs_lib): Likewise, but for 32-bit temporary variables.
2700         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2701
2702 2002-07-22  Michael Snyder  <msnyder@redhat.com>
2703
2704         * aix-thread.c (supply_sprs64): Cosmetic change.
2705         (supply_sprs32): Cosmetic change.
2706         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2707         (fill_sprs64): Use regcache_collect instead of read_register.
2708         (store_regs_lib): Use regcache_collect instead of 
2709         read_register.  Use fill_sprs32 instead of fill_sprs64,
2710         if debugging a 32-bit architecture.
2711         (store_regs_kern): Use fill_gprs64 etc. to pull the values
2712         out of the register cache, instead of passing a pointer into
2713         the register cache directly to ptrace.  Use regcache_collect
2714         insteaad of read_register.
2715         (ops_prepare_to_store): Use target_read_registers instead
2716         of read_register_bytes.
2717
2718 2002-07-20  Aidan Skinner <aidan@velvet.net>
2719
2720         * MAINTAINERS: Add self under write after approval. 
2721                 
2722 2002-07-20  Aidan Skinner <aidan@velvet.net>
2723
2724         * ada-tasks.c: Change k&r style function definitions to prototyped
2725         form.
2726                 
2727 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
2728
2729         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2730         * x86-64-tdep.c: Include "objfiles.h".
2731         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2732         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2733
2734 2002-07-17  Michal Ludvig  <michal@suse.cz>
2735
2736         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2737         (update_context): Initialise cfa variable.
2738
2739 2002-07-17  Michael Snyder  <msnyder@redhat.com>
2740
2741         * aix-thread.c: Shorten some long lines.  
2742         Bring comments into line with code spec.
2743
2744 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
2745
2746         * infrun.c: Re-indent using gdb_indent.sh.
2747
2748 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
2749
2750         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2751         Leave the indentation temporarily untouched, to minimize the diffs.
2752
2753 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
2754
2755         * stabsread.c: Make os9k sections of the code obsolete,
2756         for real this time.
2757         * stabsread.h: Make os9k sections of the code obsolete.
2758
2759 2002-07-18  Michal Ludvig <mludvig@suse.cz>
2760
2761         * linux-low.c (regsets_store_inferior_registers): Add free()
2762         at the end of a loop to prevent memory leak.
2763         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2764         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2765         * config/sparc/tm-sp64linux.h: Make the rest of #endif
2766         line a comment.
2767         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2768
2769 2002-07-17  Jim Blandy  <jimb@redhat.com>
2770
2771         * macrocmd.c (info_macro_command): Remove newline from error
2772         message.
2773
2774 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
2775
2776         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2777         (sh_gdbarch_init): Use it for sh-dsp.
2778
2779 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
2780
2781         * dwarf2read.c (read_initial_length): Handle older, non-standard,
2782         64-bit DWARF2 format.
2783
2784 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
2785
2786         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2787         <sys/proc.h> when not available.
2788
2789 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
2790
2791         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2792         * stabsread.c: Make os9k sections of the code obsolete.
2793         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2794         * config/i386/i386os9k.mt: Make file obsolete.
2795         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2796         (COMMON_OBS): Remove os9kread.o
2797         (SFILES): Remove os9kread.c.
2798         (os9kread.o, remote-os9k.o): Make target obsolete.
2799         * remote-os9k.c: Make file obsolete.
2800         * os9kread.c: Make file obsolete.
2801         * Makefile.in
2802
2803 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
2804
2805         * NEWS: Mention that the FR30 has been made obsolete.
2806         * fr30-tdep.c: Make file obsolete.
2807         * config/fr30/tm-fr30.h: Ditto.
2808         * config/fr30/fr30.mt: Ditto.
2809         * configure.tgt: Make fr30-*-elf obsolete.
2810         * MAINTAINERS: Make fr30-elf obsolete.
2811
2812 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2813
2814         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2815         found is not inside a section.
2816
2817 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2818
2819         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2820         strerror().
2821         (pdc_realloc): Use xrealloc() instead of realloc().
2822
2823 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2824
2825         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2826         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2827         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2828         macros.
2829
2830 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2831
2832         * aix-thread.c (ptrace_check): Eliminate goto.
2833         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
2834         problem.
2835
2836 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2837
2838         * aix-thread.c (gdbcmd.h): Include.
2839         (DEBUG, DBG, DBG2, dbg): Eliminate.
2840         (debug_aix_thread): New static global.
2841         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2842         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2843         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2844         invocations to DBG and DBG2 macros to test against
2845         ``debug_aix_thread'' and call fprintf_unfiltered().
2846         (_initialize_aix_thread): Add new command "set debug aix-thread".
2847
2848 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
2849
2850         From Gerhard Tonn <TON@de.ibm.com>:
2851         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2852         instead of supply_register.
2853
2854 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
2855
2856         * dwarf2cfi.c: Include "gdb_assert.h".
2857         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2858         non-NULL.
2859         (update_context): Do not use __func__.  Add missing ``break''.
2860         (update_context): Do not use __func__.
2861
2862 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
2863
2864         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2865         and its setting.  Set gdbarch instruction printing functions
2866         directly.  For non-rs6000 case use new function
2867         gdb_print_insn_powerpc.
2868         (gdb_print_insn_powerpc): New function.
2869
2870 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
2871
2872         * NEWS: Mention that the d30v has been marked obsolete.
2873         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2874         * configure.tgt: Mark d30v-*-* as obsolete.
2875         * d30v-tdep.c: Mark file as obsolete.
2876         * config/d30v/d30v.mt: Ditto.
2877         * config/d30v/tm-d30v.h: Ditto.
2878
2879 2002-07-13  Aidan Skinner <aidan@velvet.net>
2880
2881         * ada-tasks.c (add_task_entry): replace calls to
2882         malloc() with xmalloc
2883         * ada-tasks.c (init_task_list): replace calls to free with xfree()
2884         
2885         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2886         ada_finish_decode_line_1, all_sals_for_line
2887         ada_breakpoint_rewrite): replace calls to free() with xfree()
2888                 
2889 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2890
2891         From Nicholas Duffek (with minor changes by Martin Hunt, 
2892         Louis Hamilton, and Kevin Buettner):
2893         * aix-thread.c: New file.
2894
2895 2002-07-12  Petr Sorfa <petrs@caldera.com>
2896
2897         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
2898         complaint for invalid attribute class or form.
2899         (read_func_scope): DW_AT_frame_base
2900         better handling of DW_AT_block*.
2901         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2902         better handling of DW_AT_block*.
2903         (read_common_block): DW_AT_location
2904         better handling of DW_AT_block*.
2905         (read_partial_die): DW_AT_location better handling
2906         of DW_AT_block*.
2907         (new_symbol): DW_AT_external better handling of
2908         DW_AT_block*. Proper initialization of variable
2909         "addr".
2910         (attr_form_is_block): New function that returns true
2911         if the attribute's form is of DW_FORM_block*.
2912
2913 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2914
2915         * valops.c (find_method_list): Remove comment about
2916         removed STATIC_MEMFUNCP argument.
2917         (value_find_oload_method_list): Likewise.
2918
2919 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2920
2921         From Nicholas Duffek:
2922         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2923         target_new_objfile_hook.
2924
2925 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2926
2927         From Nicholas Duffek:
2928         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2929         csect.
2930
2931 2002-07-12  Andrew Cagney  <cagney@redhat.com>
2932
2933         * MAINTAINERS: Mention --enable-sim-build-warnings.
2934         (m68hc11-elf): Disable sim build warnings.
2935         (m32r-elf): Mark as broken obsolete candidate.
2936         (x86_64-linux-gnu): Mark as buildable with -Werror.
2937         (arm-elf): Change -w to ``,'' which enables warnings but not
2938         -Werror.
2939
2940 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
2941
2942         * bcache.h: Update copyright.
2943         (struct bstring, struct bcache): Move definition to "bcache.c".
2944         Replaced by opaque declaration.
2945         (bcache_xfree): Replace free_bcache.
2946         (bcache_xmalloc, bcache_memory_used): Declare.
2947         
2948         * bcache.c: Update copyright.
2949         (struct bstring, struct bcache): Moved to here from "bcache.h".
2950         Update comments.
2951         (bcache_xmalloc, bcache_memory_used): New functions.
2952         (bcache_xfree): Replace function free_bcache.
2953         
2954         * Makefile.in (objfiles.o): Add $(bcache_h).
2955         (objfiles_h): Remove $(bcache_h).
2956         (symfile.o): Add $(bcache_h).
2957
2958         * symmisc.c: Update copyright.
2959         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2960         (print_objfile_statistics): Use bcache_memory_used.
2961
2962         * symfile.c: Include "bcache.h".
2963         (reread_symbols): Use bcache_xfree.
2964         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2965         (add_psymbol_to_list): Pass psymbol_cache by value.
2966         (add_psymbol_with_dem_name_to_list): Ditto.
2967
2968         * objfiles.h: Update copyright.
2969         (struct bcache): Declare opaque.  Do not include "bcache.h".
2970         (struct objfile): Change psymbol_cache and macro_cache to ``struct
2971         bcache'' pointers.
2972         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2973
2974         * objfiles.c: Include "bcache.h".  Update copyright.
2975         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2976         macro_cache.
2977         (free_objfile): Use bcache_xfree.
2978
2979 2002-07-11  Grace Sainsbury  <graces@redhat.com>
2980
2981         * monitor.c (monitor_fetch_register): Make name a constant.
2982         (monitor_store_register): Same.
2983
2984 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
2985
2986         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2987         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2988         (finish_block) For non-function blocks, hash the symbol table.  For
2989         function blocks, mark the symbol table as unhashed.
2990         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2991         (msymbol_hash_iw): Likewise.
2992         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2993         value.
2994         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2995         (lookup_minimal_symbol): Likewise for both.
2996         * symtab.h (struct block): Add `hashtable' flag.  Comment the
2997         hashtable.
2998         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2999         (ALL_BLOCK_SYMBOLS): Update.
3000         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3001         (struct symbol): Add `hash_next' pointer.
3002         * symtab.c (lookup_block_symbol): Search using the hash table when
3003         possible.
3004         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3005         (search_symbols, find_addr_symbol): Likewise.
3006
3007         * dstread.c (process_dst_block): Clear hashtable bit for new block.
3008         (read_dst_symtab): Likewise.
3009         * jv-lang.c (get_java_class_symtab): Likewise.
3010         * mdebugread.c: Include "gdb_assert.h".
3011         (shrink_block): Assert that the block being modified is not hashed.
3012         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3013         * symmisc.c (free_symtab_block): Walk the hash table when freeing
3014         symbols.
3015         (dump_symtab): Recognize hashed blocks.
3016         * printcmd.c (print_frame_args):  Assert that function blocks do not
3017         have hashed symbol tables.
3018         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3019         (fill_in_ada_prototype, debug_print_block): Likewise.
3020         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
3021
3022 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
3023
3024         * stack.c (print_frame): Use result of frame_address_in_block()
3025         instead of fi->pc when evaluating symbols.
3026         (backtrace_command_1): Ditto.
3027
3028 2002-07-11  Andrew Cagney  <cagney@redhat.com>
3029
3030         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3031         Make static.
3032
3033         * arm-tdep.c (arm_register_name): Make return type constant.
3034
3035 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
3036
3037         * win32-nat.c (has_detach_ability): Convert to strict ISO C
3038         prototype.
3039         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3040         * s390-tdep.c (s390_fp_regnum): Ditto.
3041         (s390_read_fp): Ditto.
3042         (s390_pop_frame): Ditto.
3043         (_initialize_s390_tdep): Ditto.
3044         * remote.c (get_remote_state): Ditto.
3045         * procfs.c (mappingflags): Ditto.
3046         * memattr.c (_initialize_mem): Ditto.
3047         * mcore-tdep.c (mcore_pop_frame): Ditto.
3048         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3049         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3050         * language.c (set_case_str): Ditto.
3051         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3052         * frv-tdep.c (new_variant): Ditto.
3053         (frv_stopped_data_address): Ditto.
3054         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3055         (context_alloc): Ditto.
3056         (frame_state_alloc): Ditto.
3057         (unwind_tmp_obstack_init): Ditto.
3058         (unwind_tmp_obstack_free): Ditto.
3059         (cfi_read_fp): Ditto.
3060         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3061         (cris_pop_frame): Ditto.
3062         * c-lang.c (scanning_macro_expansion): Ditto.
3063         (finished_macro_expansion): Ditto.
3064         (c_preprocess_and_parse): Ditto.
3065         * gdbarch.sh: Ditto.
3066         * gdbarch.h, gdbarch.c: Regenerate.
3067         * config/mn10200/tm-mn10200.h: Adjust indentation.
3068         * target.c: Adjust indentation.
3069         * symtab.h: Adjust indentation.
3070         * stabsread.h: Adjust indentation.
3071         * remote-es.c: Adjust indentation.
3072         * os9kread.c: Adjust indentation.
3073
3074 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
3075         
3076         * wince.c (_initialize_wince): Rename _initialize_inftarg.
3077         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3078
3079 2002-07-10  Grace Sainsbury  <graces@redhat.com>
3080         
3081         * NEWS: Mention m68k, mcore multi-arching.  
3082         * MAINTAINERS: Change status of m68k, mcore to reflect
3083         multi-arching.
3084
3085 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
3086
3087         * valops.c (find_overload_match): Free oload_syms.
3088
3089 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
3090
3091         Define HAVE_SYS_PROC_H if sys/proc.h exists
3092         * configure.in: Add check for sys/proc.h
3093         * config.in: Regenerate.
3094         * configure: Regenerate.
3095
3096 2002-07-09  Grace Sainsbury  <graces@redhat.com>
3097
3098         * config/m68k/tm-m68k.h: Remove macros wrapped in 
3099         #if !GDB_MULTI_ARCH. 
3100
3101 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
3102
3103         * config.in, configure: Regenerate.
3104
3105 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
3106
3107         * dwarf2cfi.c: Include "gcore.h".
3108         (execute_stack_op): Fix implementation of the
3109         DW_OP_deref and DW_OP_deref_size operators by letting do their
3110         lookup in the target.
3111
3112 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
3113
3114         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3115         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3116         tdep->sc_sp_offset.
3117
3118 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
3119
3120         Fix PR gdb/595, gdb/602
3121         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3122         Don't call value_cast, just read the vtable pointer; update comments
3123         to match.
3124
3125 2002-07-05  Grace Sainsbury  <graces@redhat.com>
3126
3127         * config/mcore/tm-mcore.h: Remove file.
3128         * config/mcore/mcore.mt: Remove definition of TM_FILE
3129         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3130
3131 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
3132
3133         * i386bsd-tdep.c: Include "gdb_string.h".
3134
3135 2002-07-04  Grace Sainsbury  <graces@redhat.com>
3136
3137         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3138         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3139         mcore-tdep.
3140         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3141         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3142         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3143         (RETVAL_REGNUM): Move macros from tm-mcore.h
3144         (mcore_reg_struct_has_addr): New function.
3145         (mcore_gdbarch_init): Added initializations for the macros removed
3146         from tm-mcore.h.
3147
3148 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
3149
3150         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3151         traditonal string branding within the ELF header.
3152
3153 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
3154
3155         * symtab.c (remove_params): New function.
3156         (make_symbol_overload_list): Use it instead of cplus_demangle.
3157         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
3158
3159 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
3160
3161         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3162
3163         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3164         New variables.
3165         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3166         and tdep->sigtramp_end.
3167         * i386obsd-nat.c: New file.
3168         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3169
3170         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3171         Don't call get_current_frame().
3172
3173 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
3174
3175         * i386-nat.c (child_post_startup_inferior): New function
3176         calling i386_cleanup_dregs if
3177         I386_USE_GENERIC_WATCHPOINTS is defined.
3178         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3179         conditional to acknowledge that i386-nat.c has its
3180         own child_post_startup_inferior function.
3181
3182 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
3183
3184         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3185         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3186         instead of MAX_REGISTER_RAW_SIZE.
3187         (i386_extract_return_value, i386_extract_struct_value_address):
3188         Convert to use regcache.
3189         (i386_gdbarch_init): Set max_register_raw_size and
3190         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3191         Set extract_return_value and extract_struct_value_address instead
3192         of their deprecated variants.
3193
3194         Convert i386 target to generic dummy frames.
3195         * i386-tdep.c: Include "symfile.h".
3196         (i386_frameless_signal_p): Consider a function to be frameless if
3197         the pc points at the first instruction of the function.
3198         (i386_frame_chain): Handle (generic) call dummies.
3199         (i386_frame_saved_pc): Likewise.
3200         (i386_frame_init_saved_regs): Remove code dealing with call
3201         dummies on the stack.
3202         (i386_push_dummy_frame): Removed.
3203         (i386_call_dummy_words): Removed.
3204         (i386_fix_call_dummy): Removed.
3205         (i386_push_return_address): New function.
3206         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
3207         parameter, and don't call get_current_frame.
3208         (i386_pop_frame): New function.
3209         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3210         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3211         entry_point_address, set call_dummy_breakpoint_offset to 0, set
3212         call_dummy_length to 0, set call_dummy_words to NULL, set
3213         sizeof_call_dummy_words to 0, set fix_call_dummy to
3214         generic_fix_call_dummy, set pc_in_call_dummy to
3215         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3216         generic_push_dummy_frame, set push_return_address to
3217         i386_push_return_address and set frame_chain_valid to
3218         generic_file_frame_chain_valid.
3219
3220 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
3221
3222         * gdbarch.sh (struct regcache): Add opaque declaration.
3223         (EXTRACT_RETURN_VALUE): New architecture method.
3224         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3225         * gdbarch.h, gdbarch.c: Regenerate.
3226         * arch-utils.c (legacy_extract_return_value): New function.
3227         * arch-utils.h (legacy_extract_return_value): Declare.
3228         * values.c (value_being_returned): Re-enable code handling
3229         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
3230         deprecated_grub_regcache_for_registers call to block handling
3231         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3232         (EXTRACT_RETURN_VALUE): Do not define.
3233
3234 2002-07-03  Grace Sainsbury  <graces@redhat.com>
3235
3236         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3237         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3238         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3239         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3240         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3241         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3242         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3243         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3244         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3245         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3246         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3247         argument so the function fits the prototype in the architecture
3248         vector.
3249         (mcore_pop_frame): Remove argument so the function fits the
3250         prototype. Use get_current_frame instead of the argument.
3251         (mcore_push_arguments): Change type of struct_return so the
3252         function can be used in the architecture vector.
3253         (mcore_store_struct_return): Add.
3254         (mcore_frame_init_saved_regs): Add.
3255         (mcore_gdbarch_init): Add function calls to replace the macros
3256         removed from tm-mcore.h
3257
3258 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
3259
3260         * infcmd.c (print_return_value): Remove compatibility code calling
3261         deprecated_grub_regcache_for_registers.
3262         
3263         * values.c: Include "regcache.h".
3264         (value_being_returned): Update.  Use
3265         deprecated_grub_regcache_for_registers to extract the register
3266         buffer address.  
3267         * value.h (value_being_returned): Change ``retbuf'' parameter to a
3268         ``struct regcache''.
3269         * Makefile.in (values.o): Add dependency on $(regcache_h).
3270
3271         * inferior.h (run_stack_dummy): Change type of second parameter to
3272         a ``struct regcache''.
3273         * valops.c (hand_function_call): Change type of retbuf to ``struct
3274         regcache''.  Allocate using regcache_xmalloc, clean using
3275         make_cleanup_regcache_xfree.
3276         * infcmd.c (run_stack_dummy): Update.  Use
3277         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3278
3279         * regcache.c (do_regcache_xfree): New function.
3280         (make_cleanup_regcache_xfree): New function.
3281         * regcache.h (make_cleanup_regcache_xfree): Declare.
3282
3283 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
3284
3285         * event-top.c (command_line_handler): Don't read past
3286         beginning of buffer.
3287
3288 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
3289         
3290         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
3291         struct frame_id. 
3292         (varobj_create): Store frame_id for root.
3293         (varobj_gen_name): Use xasprintf.
3294         (varobj_update): Save and restore frame using get_frame_id() and
3295         frame_find_by_id().
3296         (create_child): Use xasprintf.
3297         (new_root_variable): Initialize frame_id.
3298         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3299         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3300         to prevent memory leak.
3301
3302 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
3303
3304         * valops.c (hand_function_call): Move declaration of retbuf to
3305         start of function, allocate using malloc, add a cleanup but before
3306         the inf_status cleanup, cleanup the buffer.  Rename local variable
3307         old_chain to inf_status_cleanup.
3308
3309 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
3310
3311         * top.c (execute_command): Use cmd_func() and cmd_func_p().
3312
3313         * cli/cli-decode.c (cmd_func_p): New function.
3314         (cmd_func): New function.
3315
3316         * command.h: Add cmd_func() and cmd_func_p().   
3317         
3318 2002-07-03  Grace Sainsbury  <graces@redhat.com>
3319
3320         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3321         (REGISTER_SIZE): Remove.
3322         (MAX_REGISTER_RAW_SIZE): Remove.
3323         (REGISTER_VIRTUAL_TYPE): Remove.
3324         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3325         (REGISTER_NAME): Remove.
3326         (USE_GENERIC_DUMMY_FRAMES): Remove.
3327         (CALL_DUMMY): Remove.
3328         (CALL_DUMMY_START_OFFSET): Remove.
3329         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3330         (CALL_DUMMY_LOCATION): Remove.
3331         (FIX_CALL_DUMMY): Remove.
3332         (CALL_DUMMY_ADDRESS): Remove.
3333         (SIZEOF_CALL_DUMMY_WORDS): Remove.
3334         (SAVE_DUMMY_FRAME_TOS): Remove.
3335         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3336         (mcore_register_virtual_type): New function.
3337         (mcore_register_byte): New function.
3338         (mcore_register_size): New function.
3339         (mcore_register_name): New function.
3340         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3341         macros removed from tm-mcore.h.
3342         (mcore_dump_tdep): Add.
3343         (_initialize_mcore_tdep): Add gdbarch_register call.
3344
3345 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
3346
3347         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3348         frameless_look_for_prologue, such that we actually call this
3349         function.
3350
3351 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
3352
3353         * frame.h (frame_address_in_block): New function.
3354
3355         * blockframe.c (frame_address_in_block): New function extracted
3356         from get_frame_block().
3357         (get_frame_block): Use frame_address_in_block().
3358         (block_innermost_frame): Use frame_address_in_block() to match
3359         the frame pc address against the block boundaries rather than
3360         the frame pc directly. This prevents a failure when a frame pc
3361         is actually a return-address pointing immediately after the end
3362         of the given block. 
3363
3364 2002-07-02  Grace Sainsbury  <graces@redhat.com>
3365
3366         * MAINTAINERS: Add self under write after approval. 
3367
3368 2002-07-02  Grace Sainsbury  <graces@redhat.com>
3369
3370         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3371         used in architecture vector. The default is
3372         m68k_local_breakpoint_from_pc.
3373         (m68k_local_breakpoint_from_pc): Add.
3374         (enum): Add register numbers from tm-m68k.h.
3375         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3376         vector.  
3377         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3378         GDB_MULTI_ARCH_PARTIAL.
3379         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3380         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3381         m68k-tdep.c.
3382         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3383         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3384         to enum in m68k-tdep.c
3385
3386 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
3387
3388         * solib-osf.c (open_map): Compute the list of shared libraries
3389         loaded by the inferior, rather than the list of libraries loaded
3390         by GDB itself.  Otherwise, GDB ends up reading the symbols from
3391         the wrong shared libraries...
3392
3393 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
3394
3395         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3396         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3397         macros.
3398         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3399         Remove functions.
3400         (FRAMELESS_SIGNAL): Remove function.
3401         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3402         i386_linux_saved_pc_after_call): Removed.
3403         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3404         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
3405         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3406
3407         * i386-tdep.c (i386_frameless_signal_p): New function.
3408         (i386_frame_chain): Deal with frameless signals.
3409         (i386_sigtramp_saved_sp): New function.
3410         (i386_frame_saved_pc): Deal with frameless signals.
3411         (i386_saved_pc_after_call): Make sure the correct value is
3412         returned just after entry into a sigtramp.
3413         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3414         i386fbsd4_sc_sp_offset): New variables.
3415         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3416         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
3417         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3418         similiar to what we already did for sc_pc_offset.
3419         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3420         tdep->sc_sp_offset.
3421
3422         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3423
3424 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
3425
3426         * config/i386/tm-x86-64linux.h: New.
3427         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3428         definitions.
3429         * config/i386/nm-x86-64.h: Rename to ...
3430         * config/i386/nm-x86-64linux.h: ... this one.
3431         * config/i386/x86-64linux.mh: Reflect the above change.
3432         
3433 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
3434
3435         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3436         with sigcontext_addr.  Add sc_sp_offset.
3437         (i386bsd_sigtramp_saved_pc): Remove prototype.
3438         (i386bsd_sicontext_addr): Add prototype.
3439         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3440         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3441         (i386_svr4_sigtramp_saved_pc): Removed.
3442         (i386_svr4_sigcontext_addr): New function.
3443         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3444         Initialize tdep->sigcontext_addr instead.  Initialize
3445         tdep->sc_pc_offset and tdep->sc_sp_offset.
3446         (i386_gdbarch_init): Likewise.
3447         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3448         any more.
3449         (i386bsd_sigtramp_saved_pc): Remove function.
3450         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3451         Initialize tdep->sigcontext_addr instead.  Initialize
3452         tdep->sc_pc_offset.
3453         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3454         of tdep->sigtramp_saved_pc.
3455         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3456         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
3457         instead.
3458
3459         * i386-tdep.c (i386_frameless_function_invocation,
3460         i386_frame_num_args, i386_frame_init_saved_regs,
3461         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3462         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3463         i386_extract_return_value, i386_store_return_value,
3464         i386_extract_struct_value_address, i386_register_virtual_type,
3465         i386_register_convertible, i386_register_convert_to_virtual,
3466         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3467         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3468         static.
3469
3470 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
3471
3472         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3473
3474         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3475         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3476         this macro.  Include "value.h".
3477
3478 2002-06-30  Aidan Skinner  <aidan@velvet.net>
3479
3480         * ada-exp.tab.c: remove as it's a generated file
3481         * ada-lex.c: remove as it's a generated file
3482                 
3483 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
3484
3485         * config/i386/tm-i386.h (struct frame_info, struct
3486         frame_saved_regs, struct value, struct type): Remove forward
3487         declarations.
3488
3489         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3490         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3491         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3492         (FILL_FPXREGSET): Define.
3493
3494         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3495
3496         * configure.tgt (i[3456]86-*-openbsd*): Fold into
3497         i[3456]86-*-netbsd* case.
3498         * config/i386/tm-obsd.h: Removed.
3499         * config/i386/obsd.mt: Removed.
3500         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3501         core-aout.o.
3502         (MH_CFLAGS): Add -DYYDEBUG=0.
3503
3504         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3505         i386nbsd_sc_pc_offset on OpenBSD too.
3506
3507         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3508         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3509         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3510         define.
3511         * i386bsd-tdep.c: Include "arch-utils.h".
3512         (i386bsd_aout_in_solib_call_trampoline): New function.
3513         (i386bsd_init_abi): Set in_solib_call_trampoline to
3514         i386bsd_aout_in_solib_call_trampoline.
3515         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3516         in_solib_call_trampoline to generic_in_solib_call_trampoline.
3517
3518 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3519
3520         * macrotab.h: Do not include "obstack.h" or "bcache.h".
3521         (struct obstack, struct bcache): Add opaque declarations.
3522         * Makefile.in (macrotab_h): Update
3523
3524 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3525
3526         * blockframe.c (generic_find_dummy_frame): Change return type to
3527         ``struct regcache''.
3528         (struct dummy_frame): Replace field ``registers'' with regcache, a
3529         struct regcache object.
3530         (generic_find_dummy_frame): Update.
3531         (generic_push_dummy_frame): Update.  Use regcache_xfree,
3532         regcache_xmalloc and regcache_cpy.
3533         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
3534         regcache_xfree.
3535         (deprecated_generic_find_dummy_frame): Update.
3536         (generic_read_register_dummy): Update.  Use
3537         regcache_read_as_address.
3538         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
3539         (generic_get_saved_register): Update.  Use regcache_read.
3540
3541 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3542
3543         * Makefile.in (objfiles_h): Add $(bcache_h).
3544         * objfiles.h: Include "bcache.h".
3545
3546         * Makefile.in (symtab_h): Remove $(bcache_h).
3547         * symtab.h: Do not include "bcache.h".
3548
3549 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3550
3551         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3552         generic_func_frame_chain_valid.
3553
3554 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
3555
3556         * config/i386/nm-fbsd.h: Include <sys/param.h>.
3557         * config/i386/tm-fbsd.h: Likewise.
3558
3559 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
3560
3561         * rs6000-tdep.c (rs6000_gdbarch_init): Use
3562         generic_unwind_get_saved_register.
3563
3564 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
3565
3566         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3567         * regcache.c (supply_register): Add missing argument to
3568         register_buffer call.
3569
3570 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
3571
3572         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
3573         Solaris /bin/grep does not not like it.  From Peter Schauer.
3574
3575 2002-06-26  Tom Tromey  <tromey@redhat.com>
3576
3577         * command.h (add_setshow_cmd): Declare.
3578         (add_setshow_cmd_full): Declare.
3579         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
3580         returns void.  Use add_setshow_cmd_full.
3581         (add_setshow_cmd_full): New function.
3582         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3583         (add_setshow_boolean_cmd): Likewise.
3584
3585 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
3586
3587         * config/vax/tm-vax.h: Protect from multiple inclusion.
3588         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3589         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3590         * config/vax/tm-vaxbsd.h: ...here.  New file.
3591         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3592
3593 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
3594
3595         * config/vax/tm-vax.h (BREAKPOINT): Remove.
3596         (BELIEVE_PCC_PROMOTION): Remove.
3597         (AP_REGNUM): Move to...
3598         * config/vax/nm-vax.h: ...here.
3599         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3600         (vax_breakpoint_from_pc): New function.
3601         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3602         and gdbarch_believe_pcc_promotion.
3603
3604 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
3605
3606         * Makefile.in (vax_tdep_h): Define.  
3607         (vax-tdep.o): Use $(vax_tdep_h).
3608         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3609         (vax_dump_tdep): New function. 
3610         (_initialize_vax_tdep): Register vax_dump_tdep.
3611         * vax-tdep.h: Include osabi.h.     
3612         (struct gdbarch_tdep): New. 
3613
3614 2002-06-26  Andrew Cagney  <cagney@redhat.com>
3615
3616         * frame.h (deprecated_generic_find_dummy_frame): Rename
3617         generic_find_dummy_frame.
3618         * blockframe.c (generic_find_dummy_frame): Make static.
3619         (deprecated_generic_find_dummy_frame): New function.
3620         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3621         generic_find_dummy_frame with deprecated_find_dummy_frame.
3622         (sh64_nofp_frame_init_saved_regs): Ditto.
3623         (sh_fp_frame_init_saved_regs): Ditto.
3624         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3625         (s390_frame_chain): Ditto.
3626         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3627
3628 2002-06-26  Grace Sainsbury  <graces@redhat.com>
3629
3630         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3631         gdbarch vector are at the top.
3632         (NUM_REGS): Remove.
3633         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3634         (FRAME_ARGS_ADDRESS): Remove.
3635         (FRAME_LOCALS_ADDRESS): Remove.
3636         (FRAME_NUM_ARGS): Remove.
3637         (FRAME_ARGS_SKIP): Remove.  
3638         * m68k-tdep.c (enum): Add eumeration of special register numbers.
3639         (m68k_gdbarch_init): Add gdbarch initializations for macros
3640         undefined in tm-m68k.h
3641
3642 2002-06-26  Grace Sainsbury  <graces@redhat.com>
3643
3644         * monitor.h: Add the function regname to monitor_ops
3645         structure. This way NUM_REGS does not have to be a constant.
3646         * monitor.c (monitor_fetch_register): Added support for regname
3647         function. The function is called if the array regnames is NULL.
3648         (monitor_store_register): Same.
3649         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3650         regnames array.
3651         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3652         cpu32bug_cmds.regname to point to new function.
3653         * abug-rom.c (abug_regname): Same as above.
3654         (init_abug_cmds): Same.
3655         * dbug-rom.c (dbug_regname): Same as above.
3656         (init_dbug_cmds): Same.
3657         * remote-est.c (est_regname): Same. 
3658         (init_est_cmds): Same.
3659         * rom68k-rom.c (rom68k_regname): Same. 
3660         (init_rom68k_cmds): Same.
3661
3662 2002-06-25  Tom Tromey  <tromey@redhat.com>
3663
3664         * breakpoint.c (delete_command): Don't repeat `delete' commands.
3665
3666 2002-06-25  Andrew Cagney  <cagney@redhat.com>
3667
3668         * infrun.c (stop_registers): Change variable's type to ``struct
3669         regcache'''.
3670         (xmalloc_inferior_status): Delete function.
3671         (free_inferior_status): Delete function.
3672         (normal_stop): Use regcache_cpy.
3673         (struct inferior_status): Change type of fields ``stop_registers''
3674         and ``registers'' to ``struct regcache''.
3675         (write_inferior_status_register): Use regcache_write.
3676         (save_inferior_status): Instead of calling
3677         xmalloc_inferior_status, allocate the inf_status buffer directly.
3678         Use regcache_dup_no_passthrough and regcache_dup to save the
3679         buffers.
3680         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3681         Replace the stop_registers regcache instead of overriding it.  Use
3682         regcache_xfree.  Instead of calling free_inferior_status, xfree
3683         the buffer directly.
3684         (discard_inferior_status): Use regcache_xfree.  Instead of calling
3685         free_inferior_status, xfree the buffer directly.
3686         (build_infrun): Use regcache_xmalloc.
3687         (_initialize_infrun): Delete redundant call to build_infrun.
3688
3689         * Makefile.in (infcmd.o): Add $(regcache_h).
3690
3691         * infcmd.c: Include "regcache.h".
3692         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3693         obtain the address of `stop_registers' register buffer.
3694         (print_return_value): Ditto.
3695
3696         * inferior.h (struct regcache): Add opaque declaration.
3697         (stop_registers): Change variable's declared type to ``struct
3698         regcache''.
3699
3700 2002-06-24  Tom Tromey  <tromey@redhat.com>
3701
3702         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3703         * target.c (initialize_targets): Fixed typo in
3704         trust-readonly-sections `show' documentation.
3705
3706         * main.c: Marked all strings with _().
3707
3708 2002-06-24  Don Howard  <dhoward@redhat.com>
3709
3710         * memattr.c (create_mem_region): Treat hi == 0 as a special case
3711         that means max CORE_ADDR+1.
3712         (lookup_mem_region): Ditto.
3713         (mem_info_command): Ditto.
3714
3715 2002-06-24  Grace Sainsbury  <graces@redhat.com>
3716
3717         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3718         (REGISTER_BYTES_OK): Remove.
3719         (REGISTER_BYTES): Remove.
3720         (STORE_STRUCT_RETURN): Remove.
3721         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3722         (STORE_RETURN_VALUE): Remove.
3723         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3724         (FRAME_CHAIN): Remove.
3725         (FRAMELESS_FUNCTION_INVOCATION): Remove.
3726         (FRAME_SAVED_PC): Remove.  
3727         * m68k-tdep.c (m68k_register_bytes_ok):Add.
3728         (m68k_store_struct_return): Add.
3729         (m68k_deprecated_extract_return_value): Add.
3730         (m68k_deprecated_extract_struct_value_address): Add.
3731         (m68k_store_return_value): Add.
3732         (m68k_frame_chain): Add.
3733         (m68k_frameless_function_invocation): Add.
3734         (m68k_frame_saved_pc): Add.
3735         (m68k_gdbarch_init): added set_gdbarch calls for new 
3736         functions and deleted macros.
3737
3738 2002-06-23  Tom Tromey  <tromey@redhat.com>
3739
3740         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3741         (ALLDEPFILES): Likewise.
3742         (udiheaders): Removed.
3743         (udip2soc.o): Likewise.
3744         (udi2go32.o): Likewise.
3745         (udr.o): Likewise.
3746         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3747
3748 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
3749
3750         * infrun.c (_initialize_infrun): Delete unnecessary call to
3751         build_infrun.
3752
3753         * regcache.h: Update comments describing the regcache_cpy family
3754         of functions.
3755         (regcache_save, regcache_restore): Delete declaration.
3756         (regcache_save_no_passthrough): Delete declaration.
3757         (regcache_restore_no_passthrough): Delete declaration.
3758         * regcache.c (regcache_save): Delete function.
3759         (regcache_save_no_passthrough): Delete function.
3760         (regcache_restore): Delete function.
3761         (regcache_restore_no_passthrough): Delete function.
3762
3763 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
3764
3765         * config/m68k/tm-m68k.h: Fix typo.
3766         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3767         (m68k_frame_init_saved_regs): Declare.
3768
3769 2002-06-21  Jim Blandy  <jimb@redhat.com>
3770
3771         Remove some vestiges of Harris 88k support.
3772         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3773         register numbering quirk.
3774         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3775         odd symbols occurring in Harris 88k ELF targets.
3776
3777 2002-06-21  Tom Tromey  <tromey@redhat.com>
3778
3779         * gdb_locale.h: New file.
3780         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3781         (defs_h): Added gdb_locale.h.
3782         * configure, config.in: Rebuilt.
3783         * configure.in (PACKAGE): Define.
3784         * defs.h: Include gdb_locale.h.
3785         * main.c (captured_main): Call setlocale, bindtextdomain,
3786         textdomain.
3787
3788 2002-06-21  Dave Brolley  <brolley@redhat.com>
3789
3790         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3791         * config/frv/frv.mt: New file.
3792         * config/frv/tm-frv.h: New file.
3793         * configure.tgt: Support frv-*-*.
3794         * Makefile.in (frv-tdep.o): New target.
3795         * frv-tdep.c: New file.
3796         * NEWS: Mention frv.
3797
3798 2002-06-21  Dave Brolley  <brolley@redhat.com>
3799
3800         * MAINTAINERS: Add self to "Write After Approval" list.
3801
3802 2002-06-21  Grace Sainsbury  <graces@redhat.com>
3803
3804         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3805         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3806         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3807         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3808         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3809
3810         * m68k-tdep.c: Include arch-utils.h
3811         (m68k_register_raw_size): Add.
3812         (m68k_register_virtual_size): Add.
3813         (m68k_register_virtual_type): Add.
3814         (m68k_register_name): Add.
3815         (m68k_stack_align): Add.
3816         (m68k_register_byte): Add.
3817         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3818         tm-m68k.h.
3819
3820 2002-06-21  Grace Sainsbury  <graces@redhat.com>
3821
3822         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3823         m68k_find_saved_regs.
3824         (m68k_pop_frame): Removed saved_regs structure, and replaced
3825         references to it with frame->saved_regs.
3826         (m68k_gdbarch_init): Added function calls to initialize the
3827         gdbarch structure.
3828         (m68k_fix_call_dummy): Add. 
3829         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3830         (CALL_DUMMY): Remove.
3831         (CALL_DUMMY_LENGTH): Remove.
3832         (CALL_DUMMY_START_OFFSET): Remove.
3833         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3834         (FIX_CALL_DUMMY): Remove.
3835         (PUSH_DUMMY_FRAME): Remove.
3836         (POP_FRAME): Remove.
3837
3838 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
3839
3840         * parse.c (parse_fprintf): New function used to avoid calls to
3841         fprintf in bison parser generated debug code.
3842         * parser-defs.h: Declaration of new parse_fprintf function.
3843         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3844         Set YYDEBUG to 1 by default.
3845         Set YYFPRINTF as parse_fprintf.
3846
3847 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
3848
3849         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
3850         encoding anymore.
3851         (pointer_encoding, enum ptr_encoding): New.
3852         (execute_cfa_program): Take care about pointer encoding.        
3853         (dwarf2_build_frame_info): Only call parse_frame_info for 
3854         .debug_frame and .eh_frame.
3855         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3856         fixed augmentation handling, added relative addressing, 
3857         ignore duplicate FDEs. Added comments.
3858         * dwarf2cfi.c: Reindented.
3859         
3860 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
3861
3862         * event-top.c (command_handler): Don't use space_at_cmd_start
3863         unless there is sbrk() on the host. Assign time and space data
3864         to union fields of the appropriate length.
3865
3866 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
3867
3868         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
3869         x86_64_register_name. Return type changed to 'const char *'.
3870         (x86_64_register_name2nr): Rename to x86_64_register_number.
3871         (x86_64_gdbarch_init): Update to reflect the change.
3872         * x86-64-tdep.h: Ditto.
3873         * x86-64-linux-nat.c (x86_64_fxsave_offset)
3874         (supply_fpregset): Ditto.
3875
3876 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3877
3878         * regcache.h: Update copyright.
3879         (struct regcache, struct gdbarch): Add opaque declarations.
3880         (current_regcache): Declare global variable.
3881         (regcache_read, regcache_write): Add gdbarch parameter.
3882         (regcache_save, regcache_save_no_passthrough)
3883         (regcache_restore, regcache_restore_no_passthrough)
3884         (regcache_dup, regcache_dup_no_passthrough)
3885         (regcache_cpy, regcache_cpy_no_passthrough)
3886         (deprecated_grub_regcache_for_registers)
3887         (deprecated_grub_regcache_for_register_valid)
3888         (regcache_valid_p): Add function declarations.
3889         
3890         * regcache.c: Update copyright.
3891         (regcache_descr_handle): New global variable.
3892         (struct regcache_descr): Define.
3893         (init_legacy_regcache_descr, init_regcache_descr): New functions.
3894         (regcache_descr, xfree_regcache_descr): New functions.
3895         (struct regcache): Define.
3896         (regcache_xmalloc, regcache_xfree): New functions.
3897         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3898         (regcache_dup, regcache_dup_no_passthrough): New functions.
3899         (regcache_valid_p, regcache_read_as_address): New functions.
3900         (deprecated_grub_regcache_for_registers): New function.
3901         (deprecated_grub_regcache_for_register_valid): New function.
3902         (current_regcache): New global variable.
3903         (register_buffer): Add regcache parameter.  Update calls.
3904         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
3905         (read_register_gen, write_register_gen): Update register_buffer
3906         call.  Test for legacy_p instead of gdbarch_register_read_p or
3907         gdbarch_register_write_p.
3908         (regcache_collect): Update register_buffer call.
3909         (build_regcache): Rewrite.  Use deprecated grub functions.
3910         (regcache_save, regcache_save_no_passthrough): New functions.
3911         (regcache_restore, regcache_restore_no_passthrough): New
3912         functions.
3913         (_initialize_regcache): Create the regcache_data_handle. Swap
3914         current_regcache global variable.
3915         
3916         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3917         parameter to regcache_read and regcache_write calls.
3918         (sh4_register_read): Ditto.
3919         (sh64_pseudo_register_read): Ditto.
3920         (sh64_register_read): Ditto.
3921         (sh_pseudo_register_write): Ditto.
3922         (sh4_register_write): Ditto.
3923         (sh64_pseudo_register_write): Ditto.
3924         (sh64_register_write): Ditto.
3925
3926         * defs.h (XCALLOC): Define.
3927
3928 2002-06-19  Grace Sainsbury  <graces@redhat.com>
3929
3930         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3931         * m68k-tdep.c (m68k_gdbarch_init): Added.
3932         (m68k_dump_tdep): Added.
3933
3934 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3935
3936         * ada-lang.c (fill_in_ada_prototype): Update comment.
3937
3938 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3939
3940         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
3941         MIPS_ABI_LAST.
3942         (mips_abi_string, mips_abi_strings): New.
3943         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3944         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
3945         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
3946         O32 if no ABI is found.
3947         (mips_dump_tdep): Use mips_abi_strings.
3948         (mips_abi_update): New function.
3949         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
3950         ``set mips abi'' and ``show mips abi''.  Check the size of
3951         mips_abi_strings.
3952
3953 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3954
3955         * i386-linux-tdep.c (i386_linux_register_name): Make return type
3956         constant.
3957
3958 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
3959
3960         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
3961         current frame using only the first stack size adjustment. All
3962         subsequent size adjustments are not considered to be part of
3963         the "static" part of the current frame.
3964         Compute the address of the saved registers relative to the
3965         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3966         in use in this frame.
3967
3968 2002-06-18  Don Howard  <dhoward@redhat.com>
3969  
3970         * valops.c (value_ind): Use value_at_lazy() when dereferencing
3971         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
3972         suggesting this solution.
3973
3974 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
3975
3976         * config/romp/xm-rtbsd.h: Delete file.
3977         * config/romp/rtbsd.mh: Delete file.
3978
3979 2002-06-18  Keith Seitz  <keiths@redhat.com>
3980
3981         * breakpoint.c (condition_command): Post breakpoint_modify
3982         when a condition is added to an existing breakpoint.
3983         (commands_command): Likewise for commands.
3984         (set_ignore_count): Likewise for ignore counts.
3985         If no tty, do not simply return, still need to send event
3986         notification.
3987         (ignore_command): Only print a newline if the command came
3988         from a tty.
3989         Don't call breakpoints_changed, since this is now properly
3990         handled by set_ignore_count.
3991
3992 2002-06-18  Andrew Cagney  <cagney@redhat.com>
3993
3994         * MAINTAINERS: Note that cris-elf target can be compiled with
3995         -Werror.
3996         * cris-tdep.c (cris_register_name): Make return type constant.
3997         (cris_breakpoint_from_pc): Ditto.
3998
3999 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
4000
4001         * frame.h (struct frame_info): Change type of context to 
4002         'struct context'.
4003
4004 2002-06-17  Andrew Cagney  <cagney@redhat.com>
4005
4006         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4007         pointer.
4008         * gdbarch.h, gdbarch.c: Regenerate.
4009         * config/mips/tm-mips.h (mips_register_name): Update.
4010         * i386-tdep.h (i386_register_name): Update.
4011         * mips-tdep.c (mips_register_name): Update
4012         * alpha-tdep.c (alpha_register_name): Update.
4013         * arch-utils.c (legacy_register_name): Update.
4014         * arch-utils.h (legacy_register_name): Update.
4015         * avr-tdep.c (avr_register_name): Update.
4016         * ia64-tdep.c (ia64_register_name): Update.
4017         * i386-tdep.c (i386_register_name): Update.
4018         * sparc-tdep.c (sparc32_register_name): Update.
4019         (sparc64_register_name): Update.
4020         (sparclite_register_name): Update.
4021         (sparclet_register_name): Update.
4022         * sh-tdep.c (sh_generic_register_name): Update.
4023         (sh_sh_register_name): Update.
4024         (sh_sh3_register_name): Update.
4025         (sh_sh3e_register_name): Update.
4026         (sh_sh_dsp_register_name): Update.
4027         (sh_sh3_dsp_register_name): Update.
4028         (sh_sh4_register_name): Update.
4029         (sh_sh64_register_name): Update.
4030         * s390-tdep.c (s390_register_name): Update.
4031         * rs6000-tdep.c (rs6000_register_name): Update.
4032         * ns32k-tdep.c (ns32k_register_name_32082): Update.
4033         (ns32k_register_name_32382): Update.
4034         * d10v-tdep.c (d10v_ts2_register_name): Update.
4035         (d10v_ts3_register_name): Update.
4036         * xstormy16-tdep.c (xstormy16_register_name): Update.
4037         * vax-tdep.c (vax_register_name): Update.
4038         * v850-tdep.c (v850_register_name): Update.
4039         * m68hc11-tdep.c (m68hc11_register_name): Update.
4040         * mn10300-tdep.c (mn10300_generic_register_name): Update.
4041         (am33_register_name): Update.
4042
4043 2002-06-17  Grace Sainsbury  <graces@redhat.com>
4044
4045         * m68k-tdep.c: Reindented.
4046
4047 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
4048
4049         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4050         list of predefined types.
4051
4052 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
4053
4054         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4055         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4056         REGISTER_CONVERT_TO_RAW): Remove defines.
4057         (i386_register_virtual_type, i386_register_convertible,
4058         i386_register_convert_to_virtual, i386_register_convert_to_raw):
4059         Remove prototypes.
4060         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4061         macros mentioned above.
4062
4063         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4064         (i386lynx_saved_pc_after_call): Remove prototype.
4065         * i386ly-tdep.c: Include "i386-tdep.h".
4066         (i386lynx_saved_pc_after_call): Make static.  Use
4067         read_memory_nobpt instead of read_memory.  Use
4068         read_memory_unsigned_integer instead of read_memory_integer.
4069         (i386lynx_init_abi): New function.
4070         (i386lynx_coff_osabi_sniffer): New function.
4071         (_initialize_i386bsd_tdep): New function.
4072
4073         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4074         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4075         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4076         (i386_fix_call_dummy): Remove prototype.
4077         * i386-tdep.c (i386_call_dummy_words): New variable.
4078         (i386_gdbarch_init): Adjust for removal of the
4079         macros mentioned above.
4080
4081 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
4082
4083         * command.h (add_setshow_auto_boolean_cmd): Replace
4084         add_set_auto_boolean_cmd.
4085         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4086         add_set_auto_boolean_cmd.
4087         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4088         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4089         mask-address'' command.
4090         (show_mask_address): Add cmd parameter.
4091         * remote.c (add_packet_config_cmd): Update.  Change type of
4092         set_func and show_func to cmd_sfunc_ftype.
4093         (_initialize_remote): Update `set remote Z-packet'
4094         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4095         (show_remote_protocol_e_packet_cmd): Ditto.
4096         (show_remote_protocol_E_packet_cmd): Ditto.
4097         (show_remote_protocol_P_packet_cmd): Ditto.
4098         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4099         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4100         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4101         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4102         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4103         (show_remote_protocol_Z_packet_cmd): Ditto.
4104         (show_remote_protocol_binary_download_cmd): Ditto.
4105         (show_remote_cmd): Pass NULL to all of above.
4106
4107 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4108
4109         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4110         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4111         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4112         POP_FRAME): Remove defines.
4113         (i386_push_arguments, i386_store_struct_return,
4114         i386_extract_return_value, i386_store_return_value,
4115         i386_extract_struct_value_address, i386_push_dummy_frame,
4116         i386_pop_frame): Renove prototypes.
4117         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4118         macros mentioned above.
4119
4120 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
4121
4122         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4123         add_set_boolean_cmd.
4124         (add_setshow_cmd): New function.
4125         * command.h (add_setshow_boolean_cmd): Replace
4126         add_set_boolean_cmd.
4127         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4128         and ``set rdiromatzero''.
4129         * maint.c (_initialize_maint_cmds): Update commented out code.
4130         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4131         * target.c (initialize_targets): Update `set
4132         trust-readonly-sections'.
4133         * remote.c (_initialize_remote): Update `set remotebreak'.
4134
4135 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4136
4137         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4138         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4139         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4140         fit into multi-arch framework.
4141         (i386_breakpoint_from_pc): New function.
4142         (i386_gdbarch_init): Adjust for removal of the macros mentioned
4143         above.
4144
4145         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4146         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4147         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4148         (i386_frameless_function_invocation, i386_frame_num_args,
4149         i386_frame_init_saved_regs): Remove prototypes.
4150         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4151         macros mentioned above.
4152
4153 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
4154
4155         * cli/cli-decode.c (set_cmd_cfunc): Update.
4156         (set_cmd_sfunc): Update.
4157         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4158         (set_cmd_sfunc, set_cmd_cfunc): Update.
4159         * cli/cli-decode.h: Update.
4160
4161 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4162
4163         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4164         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4165
4166 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
4167
4168         * defs.h (auto_boolean): Declare enum.
4169         * command.h (cmd_auto_boolean): Delete enum.
4170         * mips-tdep.c (mask_address_var): Update.
4171         (mips_mask_address_p): Update.
4172         (show_mask_address): Update.
4173         * remote.c (struct packet_config): Update.
4174         (update_packet_config): Update.
4175         (show_packet_config_cmd): Update.
4176         (packet_ok): Update.
4177         (add_packet_config_cmd): Update.
4178         (_initialize_remote): 
4179         * command.h: Update.
4180         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4181         (do_setshow_command): Update.
4182         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4183         * cli/cli-decode.h: Update.
4184
4185 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4186
4187         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4188         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4189         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4190         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4191         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4192         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4193
4194         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4195         list of DJGPP COFF targets.
4196
4197         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4198         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4199         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4200         (FP0_REGNUM): Remove define.
4201         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4202         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4203         (i386_register_virtual_size): Remove protoype.
4204         * i386-tdep.c (i386_register_virtual_size): Removed.
4205         (i386_extract_return_value, i386_store_return_value): Use
4206         FP0_REGNUM instead of NUM_FREGS to determine whether the
4207         floating-point registers are available.
4208         (i386_gdbarch_init): Tweak FIXME about FPU registers.
4209         Adjust for removal of macros mentioned above.
4210
4211 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4212
4213         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
4214         comments.
4215         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4216         Remove prototypes.
4217         (supply_gregset, fill_gregset): Remove use of register keyword and
4218         remove declaration for regmap.  Use I386_NUM_GREGS instead of
4219         NUM_REGS and NUM_FREGS.
4220         (FPREGSET_FSAVE_OFFSET): Remove.
4221         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4222         NUM_FREGS to determine whether the floating-point registers are
4223         available.
4224
4225         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4226         gnu_store_registers): Replace usage of NUM_GREGS with
4227         I386_NUM_GREGS.
4228
4229         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4230         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4231         usage of NUM_GREGS with I386_NUM_GREGS.
4232
4233         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4234
4235         * i386bsd-nat.c: Include "i386-tdep.h".
4236         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4237         I386_NUM_GREGS.
4238
4239         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4240         and associated comment.  They no longer make any sense, since we
4241         don't use this file anymore on Linux.
4242
4243         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4244         * i386-tdep.c (i386_register_offset, i386_register_size): Use
4245         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4246         elements in these arrays.
4247         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4248         MAX_NUM_REGS.
4249
4250 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
4251
4252         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4253         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4254
4255 2002-06-14  Andrew Cagney  <cagney@redhat.com>
4256
4257         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4258         EXTRACT_RETURN_VALUE.
4259         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4260         EXTRACT_STRUCT_VALUE_ADDRESS.
4261         * gdbarch.h, gdbarch.c: Regenerate.
4262         
4263         * values.c (value_being_returned): Handle
4264         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4265         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4266
4267         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
4268         * arm-tdep.c (arm_gdbarch_init): Update.
4269         * avr-tdep.c (avr_gdbarch_init): Update.
4270         * cris-tdep.c (cris_gdbarch_init): Update.
4271         * d10v-tdep.c (d10v_gdbarch_init): Update.
4272         * ia64-tdep.c (ia64_gdbarch_init): Update.
4273         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4274         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4275         * s390-tdep.c (s390_gdbarch_init): Update.
4276         * sh-tdep.c (sh_gdbarch_init): Update.
4277         * s390-tdep.c (s390_gdbarch_init): Update.
4278         * sparc-tdep.c (sparc_gdbarch_init): Update.
4279         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4280         * v850-tdep.c (v850_gdbarch_init): Update.
4281         * vax-tdep.c (vax_gdbarch_init): Update.
4282         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4283         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4284
4285         * config/arc/tm-arc.h: Update.
4286         * config/d30v/tm-d30v.h: Update.
4287         * config/fr30/tm-fr30.h: Update.
4288         * config/h8300/tm-h8300.h: Update.
4289         * config/h8500/tm-h8500.h: Update.
4290         * config/i386/tm-i386.h: Update.
4291         * config/i386/tm-ptx.h: Update.
4292         * config/i386/tm-symmetry.h: Update.
4293         * config/i960/tm-i960.h: Update.
4294         * config/m32r/tm-m32r.h: Update.
4295         * config/m68k/tm-delta68.h: Update.
4296         * config/m68k/tm-linux.h: Update.
4297         * config/m68k/tm-m68k.h: Update.
4298         * config/m88k/tm-m88k.h: Update.
4299         * config/mcore/tm-mcore.h: Update.
4300         * config/mips/tm-mips.h: Update.
4301         * config/mn10200/tm-mn10200.h: Update.
4302         * config/pa/tm-hppa.h: Update.
4303         * config/pa/tm-hppa64.h: Update.
4304         * config/sparc/tm-sp64.h: Update.
4305         * config/sparc/tm-sparc.h: Update.
4306         * config/sparc/tm-sparclet.h: Update.
4307         * config/z8k/tm-z8k.h: Update.
4308
4309 2002-06-14  Andrew Cagney  <cagney@redhat.com>
4310
4311         * Makefile.in (i386_linux_tdep_h): Define.
4312         (i386_tdep_h, i387_tdep_h): Define.
4313         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4314         $(i386_tdep_h) and $(i387_tdep_h).
4315         * i386-linux-nat.c: Include "i386-linux-tdep.h".
4316
4317 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
4318
4319         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4320         Already covered by the default.
4321
4322         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4323         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
4324         (i386_gdbarch_init): Initialize long_double_format and long_double
4325         bit.
4326
4327         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4328         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
4329         Move these to ...
4330         * config/i386/i386sol2.mh: ... here.
4331         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4332         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4333         (SIGCONTEXT_PC_OFFSET): Remove define.
4334         (IN_SIGTRAMP): Remove define.
4335         * i386-sol2-tdep.c: New file.
4336         
4337         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4338         * config/i386/tm-i386nw.h: Removed.
4339
4340         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4341         USE_STRUCT_CONVENTION): Remove defines.
4342         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4343         (get_longjmp_target): Remove prototype.
4344         (IN_SIGTRAMP): Remove define.
4345         (i386bsd_in_sigtramp): Remove prototype.
4346         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4347         function.  Update comment accordingly
4348         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4349         (FRAME_SAVED_PC): Remove define.
4350         (i386bsd_frame_saved_pc): Remove prototype.
4351         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4352         GET_LONGJMP_TARGET): Remove defines.
4353         (get_longjmp_target): Remove prototype.
4354         (IN_SIGTRAMP): Remove define.
4355         (i386bsd_in_sigtramp): Remove prototype.
4356         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4357         function.  Update comment accordingly
4358         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4359         (FRAME_SAVED_PC): Remove define.
4360         (i386bsd_frame_saved_pc): Remove prototype.
4361         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4362         Remove prototype.
4363         (USE_STRUCT_CONVENTION): Remove prototype.
4364         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4365         declaration.
4366         (_initialize_i386bsd_nat): Revise logic to determine some
4367         constants at compile time when compiling a native GDB.  Warn if
4368         things don't match up with what we expect.
4369         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4370         Remove variables.
4371         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
4372         to use date stored in `struct gdbarch_tdep'.
4373         (i386bsd_sigcontext_offset): Remove varaible.
4374         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
4375         stored in `struct gdbarch_tdep'.
4376         (i386bsd_frame_saved_pc): Make static.
4377         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4378         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4379         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4380         i386fbsd4_sc_pc_offset): New variables.
4381         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4382         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4383         functions.
4384         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4385         functions.
4386         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4387         Modify the value of i386fbsd_sigtramp_start and
4388         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4389         i386fbsd_sigtramp_end.
4390         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4391         function.
4392
4393         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4394         define to i386-linux-tdep.h.
4395         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4396         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4397         defines.
4398         (i386_linux_register_name, i386_linux_register_byte,
4399         i386_linux_register_raw_size): Remove prototypes.
4400         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4401         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4402         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4403         TARGET_WRITE_PC): Remove defines.
4404         (i386_linux_in_sigtramp, i386_linux_frame_chain,
4405         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4406         i386_linux_write_pc): Remove prototypes.
4407         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4408         (get_longjmp_target): Remove prototype.
4409         * i386-linux-tdep.h: New file.
4410         * i386-linux-nat.c: Include "i386-linux-tdep.h".
4411         * i386-linux-tdep.c: Include "i386-tdep.h" and
4412         "i386-linux-tdep.h".
4413         (i386_linux_register_name, i386_linux_register_byte,
4414         i386_linux_register_raw_size, i386_linux_in_sigtramp,
4415         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4416         Make static.
4417         (i386_linux_init_abi): New function.
4418         (_initialize_i386_linux_tdep): New function.
4419
4420         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4421         (i386_saved_pc_after_call): Remove prototype.
4422         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4423         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4424         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4425         (i386_register_name, i386_stab_reg_to_regnum,
4426         i386_dwarf_reg_to_regnum): Remove prototypes.
4427         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4428         SIZEOF_SSE_REGS): Remove defines.
4429         (REGISTER_BYTES): Remove define.
4430         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4431         (i386_register_byte, i386_register_raw_size): Remove prototypes.
4432         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4433         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4434         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4435         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4436         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4437         (get_longjmp_target): Remove prototype.
4438         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4439         (sigtramp_saved_pc): Remove define.
4440         (i386v4_sigtramp_saved_pc): Remove prototype.
4441         * config/i386/tm-go32.h (FRAME_CHAIN,
4442         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4443         (i386go32_frame_saved_pc): Remove prototype.
4444         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4445         (get_longjmp_target): Remove prototype.
4446         * i386-tdep.h: Include "osabi.h".
4447         (enum i386_abi): Removed.
4448         (enum struct_return): New enum.
4449         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4450         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4451         sc_pc_offset members.
4452         (i386_gdbarch_register_os_abi): Remove prototype.
4453         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4454         I386_SSE_NUM_REGS): New defines.
4455         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4456         I386_SSE_SIZEOF_REGS): New defines.
4457         (i386_register_name, i386_register_byte, i386_register_raw_size):
4458         New prototypes.
4459         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4460         (i386bsd_sigtramp_saved_pc): New prototype.
4461         * i386-tdep.c: Don't include "elf-bfd.h".
4462         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4463         i386_frame_chain, i386_saved_pc_after_call): Make static.
4464         (i386_frame_saved_pc): Rewrite to call architecture dependent
4465         function to deal with signal handlers.  Make static.
4466         (i386go32_frame_saved_pc): Removed.
4467         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4468         Removed.
4469         (i386_get_longjmp_target): New function.
4470         (default_struct_convention, pcc_struct_convention,
4471         reg_struct_convention, valid_conventions, struct_convention): New
4472         variables.
4473         (i386_use_struct_convention): New function.
4474         (i386v4_sigtramp_saved_pc): Renamed to
4475         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
4476         (i386_pc_in_sigtramp): New function.
4477         (i386_abi_names): Removed.
4478         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4479         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4480         Removed.
4481         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4482         i386_gdbarch_register_os_abi): Removed.
4483         (struct i386_abi_handler): Removed.
4484         (i386_abi_handler_list): Removed.
4485         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4486         functions.
4487         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4488         i386_nw_init_abi): New functions.
4489         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4490         Use set_gdbarch_xxx() calls instead of relying on macros for a
4491         number of calls.
4492         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4493         (_initialize_i386_tdep): Add new 'struct-convcention' command.
4494         Register the various architecture variants defined in this file.
4495
4496 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
4497
4498         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4499         (struct main_type): Remove arg_types member.  Update comments for
4500         struct field.
4501         (TYPE_ARG_TYPES): Remove.
4502         (TYPE_FN_FIELD_ARGS): Update.
4503         (smash_to_method_type): Update prototype.
4504
4505         * c-typeprint.c (cp_type_print_method_args): Take method type
4506         instead of argument list.  Use new argument layout.  Simplify.
4507         (c_type_print_args): Use new argument layout.  Simplify.
4508         (c_type_print_base): Update call to cp_type_print_method_args.
4509         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4510         argument; use die->type instead.  Update call to
4511         smash_to_method_type.
4512         (read_structure_scope): Update call to dwarf2_add_member_fn.
4513         * gdbtypes.c (allocate_stub_method): Update comment.
4514         (smash_to_method_type): Take new NARGS and VARARGS arguments.
4515         Use new argument layout.
4516         (check_stub_method): Use new argument layout.  Don't count
4517         void as an argument.
4518         (print_arg_types): Update comments.  Use new argument layout.
4519         (recursive_dump_type): Don't print arg_types member.
4520         * hpread.c (hpread_read_struct_type): Use new argument layout.
4521         (fixup_class_method_type): Likewise.
4522         (hpread_type_lookup): Likewise.
4523         * stabsread.c (read_type): Update calls to read_args and
4524         smash_to_method_type.
4525         (read_args): Use new argument layout.  Simplify.
4526         * valops.c (typecmp): Use new argument layout.  Update parameters
4527         and comments.  Simplify.
4528         (hand_function_call): Use new argument layout.
4529         (search_struct_method): Update call to typecmp.
4530         (find_overload_match): Use new argument layout.
4531
4532 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4533
4534         * NEWS: Mention multithreaded debug support for gdbserver.
4535
4536 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4537
4538         * MAINTAINERS: Mention NEWS.
4539
4540 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
4541
4542         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4543         (struct mips_objfile_private, compare_pdr_entries): New.
4544         (non_heuristic_proc_desc): Read the ".pdr" section if it
4545         is present.
4546
4547 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
4548
4549         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4550         (arm_debug): New static variable.
4551         (_initialize_arm_tdep): Add ``set debug arm'' command.
4552
4553 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
4554
4555         * Makefile.in (sim_arm_h): Define.
4556         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4557         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4558         (arm_register_sim_regno): New function, map an internal REGNUM
4559         onto a simulator register number.
4560         (arm_gdbarch_init): Set register_sim_regno.
4561
4562 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
4563
4564         * MAINTAINERS: Add self.
4565
4566 2002-06-11  Jim Blandy  <jimb@redhat.com>
4567
4568         * source.c (source_info): Mention whether the symtab has
4569         information about preprocessor macros.
4570
4571         Call the command `info macro', not `show macro'.
4572         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4573         Fix error message.
4574         (_initialize_macrocmd): Register `info_macro_command' in
4575         `infolist', not `showlist'.
4576
4577 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
4578
4579         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4580         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4581         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4582         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4583         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
4584         unconditionally.
4585         (set_mipsfpu_single_command, set_mipsfpu_double_command)
4586         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4587         (_initialize_mips_tdep): Remove dead code.
4588         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4589         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4590         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4591         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4592         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4593         MIPS_LAST_FP_ARG_REGNUM): Remove.
4594
4595 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
4596
4597         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4598         (unwind_tmp_obstack_free, parse_frame_info)
4599         (update_context, cfi_read_fp, cfi_write_fp)
4600         (cfi_frame_chain, cfi_init_extra_frame_info)
4601         (cfi_virtual_frame_pointer): Use the above function.
4602         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4603
4604 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
4605
4606         * v850-tdep.c (v850_type_is_scalar): New function.
4607         (v850_use_struct_convention): Match current gcc implementation
4608         as close as possible.
4609         (v850_push_arguments): Fix stack_offset handling.  Don't write
4610         struct_addr into register.  This is done by v850_store_struct_return.
4611         (v850_extract_return_value): Care for structs.
4612         (v850_store_return_value): Ditto.
4613         (v850_store_struct_return): Actually write address.
4614
4615 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
4616
4617         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4618         without debug information too.
4619
4620 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
4621
4622         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4623         Make multi-arch pure.
4624         * gdbarch.h, gdbarch.c: Re-generate.
4625         * arm-tdep.c (arm_print_float_info): Update.
4626         * arch-utils.h (default_print_float_info): Update.
4627         * arch-utils.c (default_print_float_info): Update.
4628         * infcmd.c (float_info): Update call.
4629
4630 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
4631
4632         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4633         the front of the initialize list.
4634
4635 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
4636
4637         * infrun.c (struct inferior_status): Replace fields
4638         selected_frame_address and selected_level with field
4639         selected_frame_id.
4640         (save_inferior_status): Update.  Use get_frame_id.
4641         (struct restore_selected_frame_args): Delete.
4642         (restore_selected_frame): Update.  Use frame_find_by_id.
4643         (restore_inferior_status): Update.
4644
4645         * breakpoint.h (struct breakpoint): Change type of
4646         watchpoint_frame to frame_id.
4647         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
4648         call to get_current_frame.
4649         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
4650         get_current_frame.
4651         (watchpoint_check): Use frame_find_by_id.
4652
4653         * frame.h (record_selected_frame): Delete declaration.
4654         * stack.c (record_selected_frame): Delete function.
4655         
4656         * frame.h (struct frame_id): Define.
4657         (get_frame_id): Declare.
4658         (frame_find_by_id): Declare.
4659         * frame.c (frame_find_by_id): New function.
4660         (get_frame_id): New function.
4661
4662 2002-06-10  Andrey Volkov <avolkov@transas.com>
4663
4664         * ser-e7kpc.c: Fix duplicated define and call of 
4665         _initialize_ser_e7000pc
4666             
4667 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
4668
4669         * signals/signals.c (target_signal_from_host): Fix #ifdef
4670         SIGRTMIN case.
4671         (do_target_signal_to_host): Likewise.
4672
4673 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
4674
4675         * mips-tdep.c (mips_find_abi_section): New function.
4676         (mips_gdbarch_init): Call it.
4677
4678 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
4679
4680         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4681         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
4682         after Andrew's 2002-06-08 gdbarch change.
4683
4684 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
4685
4686         * i386-linux-nat.c (suppy_gregset): Don't supply
4687         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4688         register cache.
4689         (fill_gregset): Don't fetch it under the same circumstances.
4690
4691 2002-06-09  Andrew Cagney  <cagney@redhat.com>
4692
4693         * Makefile.in (callback_h): Define.
4694         (remote_sim_h): Update path to remote-sim.h.
4695         (remote-rdp.o): Add $(callback_h).
4696         (remote-sim.o): Use $(callback_h).
4697         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4698         * remote-rdp.c: Include "gdb/callback.h".
4699
4700 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
4701
4702         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4703         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4704
4705 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4706
4707         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4708         * rdi-share/serpardr.c: Ditto.
4709         * rdi-share/unixcomm.c: Ditto.
4710         * rdi-share/serdrv.c: Ditto.
4711         * rdi-share/hostchan.h: Ditto.
4712         * rdi-share/hostchan.c: Ditto.
4713         * rdi-share/host.h: Ditto.
4714         * rdi-share/devsw.c: Ditto.
4715
4716         * objfiles.h: Change type of obj_private to void pointer.
4717         * pa64solib.c: Update copyright.  Don't include "assert.h", use
4718         strcmp instead of STREQ, use LONGEST, do not use PTR
4719         * somsolib.c: Ditto.
4720
4721         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4722         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4723         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4724
4725 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4726
4727         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4728         (default_get_saved_register): Delete function.
4729         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4730         generic_unwind_get_saved_register.
4731         * gdbarch.h, gdbarch.c: Re-generate.
4732         
4733 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4734
4735         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4736         generic_func_frame_chain_valid.
4737         * gdbarch.h, gdbarch.c: Re-generate.
4738         * blockframe.c (generic_func_frame_chain_valid): Only check
4739         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
4740         passing FP to PC_IN_CALL_DUMMY.
4741         Fix PR gdb/360.
4742
4743 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
4744
4745         * gdbarch.sh (struct gdbarch_data): Add field init_p.
4746         (register_gdbarch_data): Initialize init_p.
4747         (gdbarch_data): Initialize data pointer using the init function.
4748         (init_gdbarch_data): Delete function.
4749         (gdbarch_update_p): Update.
4750         (initialize_non_multiarch): Update.
4751         (struct gdbarch): Add field initialized_p.
4752         * gdbarch.h, gdbarch.c: Re-generate.
4753
4754 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
4755
4756         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4757         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4758         better do the things actually here.
4759         * x86-64-tdep.c (x86_64_register_name2nr): New.
4760         (x86_64_register_name): Renamed to x86_64_register_nr2name.
4761         (x86_64_gdbarch_init): Respect the above change.
4762         * x86-64-tdep.h (x86_64_register_name2nr)
4763         (x86_64_register_nr2name): Add prototypes.
4764         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4765
4766 2002-06-06  Michael Snyder  <msnyder@redhat.com>
4767
4768         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4769         Delete extra braces and re-indent.
4770         (d10v_store_return_value): Char return values
4771         must be shifted over by one byte in R0.
4772         (d10v_extract_return_value): Delete extra braces, re-indent.
4773
4774 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
4775
4776         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4777         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4778         (d10v_integer_to_address): Rewrite.
4779         (d10v_frame_init_saved_regs): When reading fp and sp registers use
4780         the d10v specific functions which take care of converting to the
4781         correct space.
4782
4783 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
4784
4785         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4786         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4787
4788 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
4789
4790         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4791         includes.
4792         * config/tm-linux.h: Ditto.
4793         * config/alpha/tm-alphalinux.h: Ditto.
4794         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4795         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4796         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4797         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4798         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4799         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4800         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4801         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4802         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4803         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4804         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4805         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4806         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4807         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4808         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4809         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4810         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4811         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4812         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4813         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4814         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4815         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4816         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4817         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4818         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4819         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4820         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4821         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4822         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4823         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4824         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4825         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4826         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4827         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4828         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4829         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4830         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4831
4832 2002-05-04  Aidan Skinner <aidan@velvet.net>
4833
4834         * ada-exp.tab.c: New file
4835         * ada-exp.y: New file
4836         * ada-lang.c: New file
4837         * ada-lang.h: New file
4838         * ada-lex.c: New file
4839         * ada-lex.l: New file
4840         * ada-tasks.c: New file
4841         * ada-typeprint.c: New file
4842         * ada-valprint.c: New file
4843         
4844 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
4845
4846         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4847         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4848
4849 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
4850
4851         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4852         insetead of ppc-linux-tdep.o.
4853         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4854         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4855
4856 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
4857
4858         2002-05-07 Christian Groessler <chris@groessler.org>
4859         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4860         bit register contents for little endian hosts.
4861
4862 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4863
4864         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4865         any maintainer.
4866
4867 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4868
4869         * gdbarch.h: Regenerate.
4870
4871 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4872
4873         * MAINTAINERS: Add everyone to write-after-approval list.
4874
4875 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4876
4877         * stack.c (frame_info): Use frame_register_unwind instead of
4878         saved_regs.  Mention when the SP is on the stack or in a register.
4879
4880         * frame.h (frame_register_unwind_ftype): Define.  Document.
4881         (struct frame_info): Add field register_unwind and
4882         register_unwind_cache.
4883         (frame_register_unwind): Declare.
4884         (generic_unwind_get_saved_register): Declare.
4885
4886         * frame.c (frame_register_unwind): New function.
4887         (generic_unwind_get_saved_register): New function.
4888
4889         * blockframe.c (generic_call_dummy_register_unwind): New function.
4890         (frame_saved_regs_register_unwind): New function.
4891         (set_unwind_by_pc): New function.
4892         (create_new_frame): New function.
4893         (get_prev_frame): New function.
4894
4895 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
4896
4897         * a29k-share/: Delete directory.
4898         * remote-vx29k.c: Delete file.
4899
4900 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4901
4902         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4903         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4904
4905 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4906
4907         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4908         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4909         (sparc64nbsd-nat.o)
4910         (sparcnbsd-nat.o)
4911         (sparcnbsd-tdep.o): New dependency lists.
4912         * NEWS: Note new UltraSPARC NetBSD native configuration.
4913         * configure.host (sparc64-*-netbsd*): New host.
4914         * configure.tgt (sparc-*-netbsdelf*)
4915         (sparc-*-netbsd*): Set gdb_target to nbsd.
4916         (sparc64-*-netbsd*): New target.
4917         * sparc64nbsd-nat.c: New file.
4918         * sparcnbsd-nat.c: New file.
4919         * sparcnbsd-tdep.c: New file.
4920         * sparcnbsd-tdep.h: New file.
4921         * config/sparc/nbsd.mt: New file.
4922         * config/sparc/nbsd64.mh: New file.
4923         * config/sparc/nbsd64.mt: New file.
4924         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4925         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4926         (HOST_IPC): Remove.
4927         * config/sparc/nbsdaout.mt: Remove.
4928         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4929         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4930         (HOST_IPC): Remove.
4931         * config/sparc/nbsdelf.mt: Remove.
4932         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
4933         sparc-nat.c compatiblity defines.
4934         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
4935         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4936         * config/sparc/tm-nbsd64.h: New file.
4937         * config/sparc/tm-nbsdaout.h: Remove.
4938         * config/sparc/xm-nbsd.h: Remove.
4939
4940 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4941
4942         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4943         * sparc-tdep.c: Include osabi.h.
4944         (gdbarch_tdep): Add osabi member.
4945         (_initialize_sparc_tdep): Use gdbarch_register.
4946         (sparc_gdbarch_init): Use generic OS ABI framework.
4947         (sparc_dump_tdep): New function.
4948
4949 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
4950
4951         * corefile.c (do_captured_read_memory_integer): Return non-zero
4952         result.
4953         (safe_read_memory_integer): Copy result of memory read when
4954         status is non-zero.  Also, add comments.
4955
4956 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
4957
4958         * Makefile.in (ppc_tdep_h): Define.
4959         (ppc-linux-nat.o)
4960         (ppc-linux-tdep.o)
4961         (rs6000-tdep.o): Use $(ppc_tdep_h).
4962         (ppc-sysv-tdep.o)
4963         (ppcnbsd-nat.o)
4964         (ppcnbsd-tdep.o): New dependency lists.
4965         * ppc-tdep.h: Use generic OS ABI framework.
4966         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4967         (ppc_linux_init_abi): New functions.
4968         (ppc_sysv_abi_broken_use_struct_convention)
4969         (ppc_sysv_abi_use_struct_convention)
4970         (ppc_sysv_abi_push_arguments): Move to...
4971         * ppc-sysv-tdep.c: ...here.
4972         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4973         * rs6000-tdep.c (process_note_abi_tag_sections)
4974         (get_elfosabi): Remove.
4975         (rs6000_gdbarch_init): Use generic OS ABI framework.
4976         (rs6000_dump_tdep): New function.
4977         (_initialize_rs6000_tdep): Use gdbarch_register.
4978         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4979         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4980         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4981         of ppc-linux-tdep.o.
4982         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4983         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4984         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4985         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4986         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4987         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4988
4989 2002-05-29  Jim Blandy  <jimb@redhat.com>
4990
4991         * macroscope.c (default_macro_scope): Put `void' in empty argument
4992         list.
4993
4994 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
4995
4996         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4997         * arch-utils.c: Include "sim-regno.h".
4998         * gdbarch.sh: Don't include "sim-regno.h".
4999         * gdbarch.h, gdbarch.c: Regenerate.
5000         * sim-regno.h (legacy_register_sim_regno): Move declaration from
5001         here.
5002         * arch-utils.h (legacy_register_sim_regno): To here.
5003         * remote-sim.c (legacy_register_sim_regno): Move function from
5004         here.
5005         * arch-utils.c (legacy_register_sim_regno): To here.
5006
5007 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
5008
5009         * sim-regno.h: New file.
5010         * Makefile.in (sim_regno_h): Define.
5011         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5012         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5013         (legacy_register_sim_regno): New function.
5014         (one2one_register_sim_regno): New function.
5015         (gdbsim_fetch_register): Rewrite.
5016         (gdbsim_store_register): Only store a register when
5017         REGISTER_SIM_REGNO is valid.
5018         * d10v-tdep.c: Include "sim-regno.h".
5019         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5020         (d10v_ts3_register_sim_regno): Ditto.
5021         * gdbarch.sh: Include "sim-regno.h".
5022         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5023         * gdbarch.h, gdbarch.c: Regenerate.
5024         * arch-utils.h (default_register_sim_regno): Delete declaration.
5025         * arch-utils.c (default_register_sim_regno): Delete function.
5026
5027 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
5028
5029         * ppcnbsd-nat.c: Rewrite.
5030         * ppcnbsd-tdep.c: New file.
5031         * ppcnbsd-tdep.h: New file.
5032         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5033         solib.o, and solib-svr4.o.
5034         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5035         nbsd-tdep.o, and corelow.o.
5036
5037 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
5038
5039         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5040         `tr' and `sed'.  Mention that `broken' targets are not expected to
5041         build.
5042
5043 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
5044
5045         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5046         Let PC point right after the prologue before looking up symbols.
5047         
5048 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
5049
5050         * i386-tdep.c (i386_register_virtual_type): Return 
5051         builtin_type_vec128i for SSE registers.
5052
5053         * gdbtypes.h (builtin_type_vec128i): Declare.
5054
5055         * gdbtypes.c (build_builtin_type_vec128i): New function.
5056         (builtin_type_v2_double, builtin_type_v4_int64): New types.
5057         (builtin_type_vec128i): New type for SSE2 128-bit registers.
5058         (build_gdbtypes): Initialize new builtin vector types.
5059         (_initialize_gdbtypes): Register new vector types with gdbarch.
5060
5061 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5062
5063         * MAINTAINERS: ns32k is not longer an obsolete candidate,
5064         since it has been multi-arch'd.
5065         * NEWS: Note that ns32k-*-* is now partial multi-arch.
5066         Move Alpha and VAX multi-arch news entries to same section
5067         as other multi-arch news.
5068
5069 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5070
5071         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5072         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
5073         static.  Rename some register numbers to put them in ns32k-tdep
5074         private namespace.
5075         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5076         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5077         functions.
5078         (_initialize_ns32k_tdep): Use gdbarch_register.
5079         * ns32k-tdep.h: New file.
5080         * ns32knbsd-tdep.c: New file.
5081         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5082         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5083         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5084         REGISTER_BYTES, REGISTER_BYTE): Remove.
5085         * config/ns32k/tm-ns32k.h: New file.
5086         * config/ns32k/tm-umax.h: Remove.
5087
5088 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5089
5090         * ns32k-tdep.c (ns32k_saved_pc_after_call,
5091         ns32k_store_struct_return, ns32k_extract_return_value,
5092         ns32k_store_return_value, ns32k_extract_struct_value_address): New
5093         functions.
5094         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5095         ns32k_saved_pc_after_call.
5096         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5097         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5098         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5099         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5100         ns32k_extract_struct_value_address.
5101
5102 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5103
5104         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5105         ns32k_fix_call_dummy): New.
5106         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5107         ns32k_call_dummy_words.
5108         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5109         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5110         CALL_DUMMY_NARGS): Remove.
5111         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5112
5113 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5114
5115         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5116         ns32k_frame_saved_pc, ns32k_frame_args_address,
5117         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5118         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5119         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5120         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5121         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5122         (BREAKPOINT): Remove..
5123         (FRAME_CHAIN): Define as ns32k_frame_chain.
5124         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5125         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5126         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5127         (FRAME_FIND_SAVED_REGS): Remove.
5128         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5129         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5130         (POP_FRAME): Define as ns32k_pop_frame.
5131
5132 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5133
5134         * ns32k-tdep.c (ns32k_register_byte_32082,
5135         ns32k_register_byte_32382, ns32k_register_raw_size,
5136         ns32k_register_virtual_size, ns32k_register_virtual_type): New
5137         functions.
5138         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5139         ns32k_register_byte_32382.
5140         * config/ns32k/tm-umax.h: Update copyright years.
5141         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5142         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5143         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5144         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5145         (ns32k_get_enter_addr): Fix prototype.
5146
5147 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
5148
5149         * ns32k-tdep.c: Update copyright years.
5150         (ns32k_register_name_32082): New function.
5151         (ns32k_register_name_32382): Ditto.
5152         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5153         (REGISTER_NAME): Define as ns32k_register_name_32382.
5154         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5155         (REGISTER_NAME): Define as ns32k_register_name_32082.
5156
5157 2002-05-24  Jim Blandy  <jimb@redhat.com>
5158
5159         * dwarf2read.c (free_line_header): Use xfree, not free.
5160
5161 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
5162
5163         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5164         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5165
5166 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
5167
5168         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5169
5170 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
5171
5172         From Ross Alexander at NEC Europe:
5173         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5174
5175 2002-05-23  Michael Snyder  <msnyder@redhat.com>
5176
5177         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5178         for input, rather than parse_and_eval_address.  
5179
5180 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
5181
5182         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5183         * Makefile.in (sim_d10v_h): Update definition.
5184
5185 2002-05-24  Andrew Cagney  <cagney@redhat.com>
5186
5187         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5188         change `2002-05-22 Michael Snyder' below.
5189         (d10v_push_arguments): Ditto.
5190         (d10v_extract_return_value): Ditto.
5191
5192 2002-05-23  Jim Blandy  <jimb@redhat.com>
5193
5194         * macrotab.c (check_for_redefinition): Don't complain if the new
5195         definition is the same as the previous one.  Take more arguments
5196         to allow the comparison.
5197         (macro_define_object, macro_define_function): Pass more arguments
5198         to check_for_redefinition.
5199
5200 2002-05-22  Michael Snyder  <msnyder@redhat.com>
5201
5202         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5203         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5204         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5205         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5206         Don't bail if return_pc is PC_IN_CALL_DUMMY.
5207         Add a temp variable to save a call (and a memory read).
5208         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5209         if possible (so that PC_IN_CALL_DUMMY will work).
5210
5211 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
5212
5213         * MAINTAINERS: Remove status `OBSOLETE' from v850.
5214
5215 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
5216
5217         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5218         fde->cie_ptr.
5219         (dwarf2_build_frame_info): Corrected handling of eh_frame.
5220         (dwarf2_build_frame_info): Add offset to fde->initial_location 
5221         so that frames of shared libraries are mapped correctly.
5222         (execute_stack_op): Change type of 'result' from ULONGEST to
5223         CORE_ADDR.
5224         
5225 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
5226
5227         * config/alpha/tm-nbsd.h: Include solib.h.
5228
5229 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
5230
5231         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5232         assumptions about the host's byte order.
5233
5234 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
5235
5236         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5237         to dependency list.
5238         * alphanbsd-tdep.c: Include solib-svr4.h.
5239         * shnbsd-tdep.c: Ditto.
5240
5241 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
5242
5243         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5244         nbsd-tdep.h to dependency list.
5245         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5246         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5247         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5248         nbsdaout.mh and nbsdelf.mh consistently.
5249         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5250         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5251         nbsdaout.mt and nbsdelf.mh consistently.
5252         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
5253         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5254         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5255         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
5256         a.out shared library stuff from here...
5257         * config/nm-nbsdaout.h: ...to here.
5258         * config/tm-nbsd.h: Remove.
5259         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5260         * config/arm/nbsd.mh: Remove.
5261         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5262         nbsd-tdep.o.
5263         * config/arm/nbsdaout.mh: New file. 
5264         * config/arm/nbsdelf.mh: New file.
5265         * config/arm/nm-nbsdaout.h: New file.
5266         * config/i386/nbsd.mh: Remove.
5267         * config/i386/nbsd.mt: Remove.
5268         * config/i386/nbsdaout.mh: New file.
5269         * config/i386/nbsdaout.mt: New file.
5270         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5271         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5272         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
5273         i386_register_u_addr): Remove.
5274         * config/i386/nm-nbsdaout.h: New file.
5275         * config/i386/nm-nbsdelf.h: Remove.
5276         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5277         (USE_STRUCT_CONVENTION): Remove.
5278         * config/i386/tm-nbsdaout.h: New file.
5279         * config/i386/tm-nbsdelf.h: Remove.
5280         * config/m68k/nbsd.mh: Remove.
5281         * config/m68k/nbsd.mt: Remove.
5282         * config/m68k/nbsdaout.mh: New file.
5283         * config/m68k/nbsdaout.mt: New file. 
5284         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5285         * config/m68k/nm-nbsdaout.h: New file.
5286         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5287         (IN_SOLIB_CALL_TRAMPOLINE): Define.
5288         * config/ns32k/nbsd.mh: Remove.
5289         * config/ns32k/nbsd.mt: Remove. 
5290         * config/ns32k/nbsdaout.mh: New file.
5291         * config/ns32k/nbsdaout.mt: New file.
5292         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
5293         * config/ns32k/nm-nbsdaout.h: New file.
5294         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
5295         (IN_SOLIB_CALL_TRAMPOLINE): Define.
5296         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5297         (SVR4_SHARED_LIBS): Remove.
5298         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5299         * config/sparc/nbsd.mh: Remove.
5300         * config/sparc/nbsd.mt: Remove.
5301         * config/sparc/nbsdaout.mh: New file.
5302         * config/sparc/nbsdaout.mt: New file.
5303         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5304         * config/sparc/nbsdelf.mt: New file.
5305         * config/sparc/nm-nbsdaout.h: New file.   
5306         * config/sparc/nm-nbsdelf.h: Remove.
5307         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5308         * config/sparc/tm-nbsdaout.h: New file.
5309
5310 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
5311
5312         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5313         mipsnbsd-tdep.c
5314         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5315
5316 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
5317
5318         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5319         shnbsd-nat.c.
5320         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5321
5322 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
5323
5324         * NEWS: Note new MIPS NetBSD native configuration. 
5325         * configure.host (mips*-*-netbsd*): New host. 
5326         * configure.tgt (mips*-*-netbsd*): New target. 
5327         * mipsnbsd-nat.c: New file.
5328         * mipsnbsd-tdep.c: New file.
5329         * mipsnbsd-tdep.h: New file.
5330         * config/mips/nbsd.mh: New file.
5331         * config/mips/nbsd.mt: New file.
5332         * config/mips/nm-nbsd.h: New file.
5333         * config/mips/tm-nbsd.h: New file.
5334
5335 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
5336
5337         * Makefile.in (SFILES): Add osabi.c.
5338         (COMMON_OBS): Add osabi.o.
5339         (osabi.o): New dependency list.
5340         * osabi.c: New file.
5341         * osabi.h: New file.
5342         * doc/gdbint.texinfo: Document new generic OS ABI framework.
5343
5344         * Makefile.in (alpha_tdep_h): Define and use instead of
5345         alpha-tdep.h.
5346         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5347         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5348         Remove.
5349         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5350         * alpha-tdep.h: Include osabi.h.
5351         (alpha_abi): Remove.
5352         (gdbarch_tdep): Use generic OS ABI framework.
5353         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5354         gdbarch_register_osabi.
5355         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5356         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5357         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5358
5359         * Makefile.in (sh_tdep_h): Add osabi.h.
5360         * sh-tdep.h (sh_osabi): Remove.
5361         (gdbarch_tdep): Use generic OS ABI framework.
5362         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5363         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5364         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5365         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5366
5367         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5368         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5369         gdbarch_register_osabi.
5370         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5371         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5372         (get_elfosabi): Rename to...
5373         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
5374         ABI framework support routines.
5375         (arm_gdbarch_init): Use generic OS ABI framework.
5376         (arm_dump_tdep): Likewise.
5377         (_initialize_arm_tdep): Likewise.
5378         * arm-tdep.h: Include osabi.h.
5379         (arm_abi): Remove.
5380         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
5381         osabi member.
5382         (arm_gdbarch_register_os_abi): Remove prototype.
5383         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5384         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5385
5386         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5387         * mips-tdep.c: Include osabi.h.
5388         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5389         OS ABI framework.
5390
5391 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
5392
5393         * h8300-tdep.c: Fix formatting.
5394
5395 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
5396
5397         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5398         printing vector registers.
5399
5400 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
5401
5402         From Fernando Nasser:
5403         * remote.c (remote_async_open_1): Re-throw the exception when the
5404         connection fails.
5405         (remote_cisco_open): Ditto.
5406         (remote_open_1): Ditto.
5407
5408 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
5409
5410         * remote.c (remote_start_remote_dummy): Add uiout parameter.
5411         (remote_start_remote): Add uiout parameter.  Pass through to
5412         remote_start_remote_dummy.
5413         (remote_open_1): Use catch_exception instead of catch_errors.
5414         (remote_async_open_1): Ditto.
5415         (remote_cisco_open): Ditto.
5416
5417 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
5418
5419         * remote.c (remote_start_remote): Replace PTR with void pointer.
5420         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
5421         static.
5422
5423 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
5424
5425         * gdb_indent.sh: Allow the script to be run in the sim directory.
5426
5427 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
5428
5429         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5430         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5431
5432         * corelow.c (core_open): Only call set_gdbarch_from_file if
5433         exec_bfd is NULL.
5434
5435 2002-05-17  Andrey Volkov <avolkov@transas.com>
5436
5437         * h8300-tdep.c: Add support of EXR register
5438         * config/h8300/tm-h8300.h: Ditto. 
5439         
5440 2002-05-17  Andrey Volkov <avolkov@transas.com>
5441
5442         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
5443         
5444 2002-05-17  Andrey Volkov <avolkov@transas.com>
5445
5446         * h8300-tdep.c: Change literal regnums to REGNO.
5447         
5448 2002-05-17  Jim Blandy  <jimb@redhat.com>
5449
5450         * NEWS: Note addition of macro support.
5451
5452         Expand preprocessor macros in C expressions.
5453         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5454         (scan_macro_expansion, scanning_macro_expansion,
5455         finished_macro_expansion): New function declarations.
5456         (expression_macro_lookup_func, expression_macro_lookup_baton): New
5457         variable declarations.
5458         * parser-defs.h (expression_context_pc): New declaration.
5459         * parse.c (expression_context_pc): New variable.
5460         (parse_exp_1): Set expression_context_pc, as well as
5461         expression_context_block.
5462         * c-exp.y (yylex): If we're not already reading the result of a
5463         macro expansion, try to macro-expand the next token.  When we're
5464         done scanning a macro expansion, switch back to the mainline text.
5465         Commas and `if's in a macro's expansion don't terminate the input.
5466         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5467         (macro_original_text, macro_expanded_text,
5468         expression_macro_lookup_func, expression_macro_lookup_baton): New
5469         variables.
5470         (scan_macro_expansion, scanning_macro_expansion,
5471         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5472         c_preprocess_and_parse): New functions.
5473         (c_language_defn, cplus_language_defn, asm_language_defn): Call
5474         c_preprocess_and_parse, instead of c_parse.
5475         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5476         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5477
5478 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
5479
5480         * sh-tdep.c (gdb_print_insn_sh64): Delete.
5481         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5482         (sh_gdbarch_init): Always use gdb_print_insn_sh.
5483
5484 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
5485
5486         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
5487
5488 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
5489
5490         * Makefile.in (sh_tdep_h): Define and use.
5491         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5492         register enum): Move to...
5493         * * sh-tdep.h: ...here.
5494         * sh-tdep.c: Include sh-tdep.h.
5495         * sh3-rom.c: Likewise.
5496         * shnbsd-tdep.c: Likewise.
5497
5498 2002-05-16  Michael Snyder  <msnyder@redhat.com>
5499
5500         * arm-tdep.c: Spelling fix in comment.
5501
5502 2002-05-16  Jim Blandy  <jimb@redhat.com>
5503
5504         Add commands for manually expanding macros and showing their
5505         definitions.
5506         * macrocmd.c, macroscope.c, macroscope.h: New files.
5507         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5508         (macroscope_h): New variable.
5509         (HFILES_NO_SRCDIR): Add macroscope.h.
5510         (COMMON_OBS): Add macrocmd.o, macroscope.o.
5511         (macroscope.o, macrocmd.o): New rules.
5512
5513         Teach the Dwarf 2 reader to read macro information.
5514         * dwarf2read.c: #include "macrotab.h".
5515         (dwarf_macinfo_buffer): New variable.
5516         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5517         dwarf_macinfo_size.
5518         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5519         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5520         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5521         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5522         dwarf2_macro_spaces_in_definition): New complaints.
5523         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5524         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5525         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5526         the partial symbol table.
5527         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5528         from what's recorded in the partial symbol table.
5529         (read_file_scope): If the compilation unit has a
5530         `DW_AT_macro_info' attribute, read its macro information.
5531         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5532
5533 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
5534
5535         Fix PR gdb/546
5536         * ser-tcp.c: Don't include <netinet/udp.h>.
5537
5538 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
5539
5540         * MAINTAINERS: Update my email address.
5541
5542 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
5543
5544         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5545         include file of the same name.
5546
5547 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5548
5549         * configure.tgt: Mark v850 as multi-arched.
5550         * config/v850/tm-v850.h: Remove file.
5551         * config/v850/v850.mt: Eliminate TM_FILE.
5552
5553 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5554
5555         * v850-tdep.c: Full multi-arch.
5556         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5557         Define GDB_MULTI_ARCH to 2.
5558
5559 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
5560
5561         * p-exp.y (current_type): New static variable.
5562         Carries the type of the expression at the position that is parsed.
5563         (push_current_type, pop_current_type): Two new functions. Used
5564         to store/restore current_type in expression on specific tokens.
5565         (search_field): New static variable. Set to one after parsing a point
5566         as at that point only a FIELDNAME token should be searched.
5567         (FIELDNAME): New token. After a point only a token belonging to 
5568         current_type type definition is allowed.
5569         (all over token rules): reset and change current_type according
5570         to rules.
5571         (exp '[' rule): insert implicit array index field if
5572         exp is a pascal string type.
5573
5574 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5575
5576         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
5577         frame info.  Use frame_info's saved_regs instead of matching member
5578         in extra_frame_info throughout.
5579         (v850_frame_init_saved_regs): New function.
5580         (v850_init_extra_frame_info): Move most functionality into
5581         v850_frame_init_saved_regs().
5582         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5583         (v850_frame_find_saved_regs): Remove declaration.
5584         (FRAME_FIND_SAVED_REGS): Remove definition.
5585         (v850_frame_init_saved_regs): Add declaration.
5586         (FRAME_INIT_SAVED_REGS): Add definition.
5587
5588 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
5589
5590         * v850-tdep.c: Begin multi-arch'ing v850.
5591         (v850_target_architecture_hook): Remove function.
5592         (v850_gdbarch_init): New function.  Add code previously in
5593         v850_target_architecture_hook().
5594         (_initialize_v850_tdep): Don't  set target_architecture_hook.
5595         Call register_gdbarch_init() instead.
5596
5597 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
5598
5599         * gdbtypes.h (struct cplus_struct_type): Remove args field.
5600         * hpread.c (hpread_read_struct_type): Remove assignments to args.
5601         (fixup_class_method_type): Likewise.
5602
5603 2002-05-15  Jim Blandy  <jimb@redhat.com>
5604
5605         Add macro structures to GDB's symbol tables.  Nobody puts anything
5606         in them yet.
5607         * symtab.h (struct symtab): New member: `macro_table'.
5608         * buildsym.h (pending_macros): New global variable.
5609         * buildsym.c: #include "macrotab.h".
5610         (buildsym_init): Initialize `pending_macros'.
5611         (end_symtab): If we found macro information while reading a CU's
5612         debugging info, do build a symtab structure for it.  Make the
5613         symtab point to the macro information, and clear the
5614         `pending_macros' pointer which held it while we were reading the
5615         debug info.
5616         (really_free_pendings): Free any pending macro table.
5617         * objfiles.h (struct objfile): New member: `macro_cache'.
5618         * objfiles.c (allocate_objfile): Set allocate and free functions
5619         for the macro cache's objstack.
5620         (free_objfile): Empty the macro cache's obstack.
5621         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5622         set new allocate and free functions for it.
5623         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5624         free functions for the macro cache's objstack.  (Why is this
5625         function building its own objfile?)
5626         * symmisc.c (print_objfile_statistics): Print statistics on the
5627         macro bcache.
5628         * Makefile.in: Note that buildsym.o depends on macrotab.h.
5629
5630 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
5631
5632         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5633         (REGISTER_U_ADDR): Delete definition.
5634         (arm_register_u_addr): Delete declaration.
5635
5636 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
5637
5638         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5639         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5640
5641 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
5642
5643         * regcache.c (register_valid): Revise comments refering to "Not
5644         available" and "unavailable".
5645         * frame.c (frame_register_read): Ditto.
5646         * findvar.c (value_of_register): Ditto.
5647
5648 2002-05-15  Andrew Cagney  <cagney@redhat.com>
5649
5650         * Makefile.in (remote_sim_h): Replace remote-sim_h.
5651         (remote-sim.o): Update dependencies.
5652         (d10v-tdep.o): Specify dependencies.
5653         (sim_d10v_h): Define.
5654
5655 2002-05-14  Jim Blandy  <jimb@redhat.com>
5656
5657         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5658         * macrotab.c (macro_lookup_inclusion, find_definition,
5659         new_macro_table): Same.
5660         
5661         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5662         not `! strcmp ()'.  This is a dubious improvement.
5663         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5664
5665         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5666         although it's not necessary, to avoid a warning.
5667
5668 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
5669
5670         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5671         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5672         TYPE_INSTANCE_FLAGS.
5673         (struct main_type): New.
5674         (struct type): Move most members to struct main_type.  Change
5675         cv_type and as_type to new type_chain member.  Add instance_flags.
5676         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5677         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5678         (finish_cv_type): Remove prototype.
5679         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
5680         Set TYPE_CHAIN.
5681         (alloc_type_instance): New function.
5682         (smash_type): New function.
5683         (make_pointer_type, make_reference_type, make_function_type)
5684         (smash_to_member_type, smash_to_method_type): Call smash_type.
5685         (make_qualified_type): New function.
5686         (make_type_with_address_space): Call make_qualified_type.
5687         (make_cv_type): Likewise.
5688         (finish_cv_type): Remove unnecessary function.
5689         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
5690         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5691         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5692         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5693         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5694         * hpread.c (hpread_read_struct_type): Likewise.
5695         * stabsread.c (read_struct_type): Likewise.
5696
5697 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
5698
5699         * configure.tgt: Add a catch all sh* target, for cases like
5700         sh[2,3,4]-elf and sh-hms.
5701
5702 2002-05-14  Keith Seitz  <keiths@redhat.com>
5703
5704         * event-loop.c (create_file_handler): Don't do anything but
5705         update data when we are given a fd which we are already
5706         monitoring.
5707
5708 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
5709
5710         * dwarf2cfi.c (context_cpy): Copy registers correctly.
5711         (update_context): Use __func__ in warnings.
5712         
5713 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
5714
5715         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
5716         and tcp_close to net_open and net_close.
5717         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
5718         using UDP if requested.  Don't try to disable Nagle on UDP
5719         sockets.
5720         * remote.c (remote_serial_open): New function.  Warn about UDP.
5721         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5722
5723 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
5724
5725         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5726
5727 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
5728
5729         * configure.tgt: Remove sh-hms target.
5730         * MAINTAINERS: Don't list sh-hms as a separate target.
5731
5732 2002-05-13  Jim Blandy  <jimb@redhat.com>
5733
5734         Add first preprocessor macro-expansion files.
5735         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5736         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5737         (splay_tree_h, macroexp_h, macrotab_h): New variable.
5738         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5739         (COMMON_OBS): Add macrotab.o, macroexp.o.
5740         (macroexp.o, macrotab.o): New rules.
5741
5742 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
5743
5744         * config/m88k/tm-m88k.h: Update copyright.
5745         (m88k_target_write_pc): Declare
5746         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5747         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5748         (SHIFT_INST_REGS): Update definition.
5749         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
5750         using old definition of TARGET_WRITE_PC.
5751         * regcache.c (generic_target_write_pc): Delete code handling
5752         NNPC_REGNUM.
5753         * gdbarch.sh (NNPC_REGNUM): Delete.
5754         * gdbarch.h, gdbarch.c: Regenerate.
5755
5756 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
5757
5758         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5759         builtin reg number.
5760
5761 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
5762
5763         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5764         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5765         (gen_address_of, gen_struct_ref, gen_repeat): Use type
5766         access macros.
5767         * c-typeprint.c (cp_type_print_method_args): Likewise.
5768         (c_type_print_args): Likewise.
5769         * d10v-tdep.c (d10v_push_arguments): Likewise.
5770         (d10v_extract_return_value): Likewise.
5771         * expprint.c (print_subexp): Likewise.
5772         * gdbtypes.c (lookup_primitive_typename): Likewise.
5773         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5774         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5775         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5776         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5777         (TYPE_VECTOR): Likewise.
5778         * hpread.c (hpread_read_struct_type)
5779         (fix_static_member_physnames, fixup_class_method_type)
5780         (hpread_type_lookup): Likewise.
5781         * mdebugread.c (parse_symbol, parse_type): Likewise.
5782         * p-lang.c (is_pascal_string_type): Likewise.
5783         * valops.c (hand_function_call): Likewise.
5784         * x86-64-tdep.c (classify_argument): Likewise.
5785
5786         * hpread.c (hpread_read_function_type)
5787         (hpread_read_doc_function_type): Call replace_type.
5788         * dstread.c (create_new_type): Delete.
5789         (decode_dst_structure, process_dst_function): Call alloc_type.
5790         Use type access macros.
5791
5792 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5793
5794         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5795         the're not supported by the current architecture.
5796         (i387_fill_fxsave): Likewise.
5797
5798 2002-05-12  Fred Fish  <fnf@redhat.com>
5799
5800         * symfile.c (default_symfile_offsets): Arrange for uninitialized
5801         sect_index_xxx members to index the first slot in section_offsets
5802         if all of the section_offsets are zero.
5803
5804 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5805
5806         * configure.tgt (sparc-*openbsd): Remove entry accidentially
5807         checked in with last change.
5808
5809 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
5810
5811         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5812         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
5813         config.sub.
5814
5815 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
5816
5817         * Makefile.in: Update dependencies.
5818
5819 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5820
5821         * language.c (local_hex_string_custom): Simplify.  Do not depend
5822         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5823
5824         * memattr.c (mem_info_command): Replace calls to
5825         longest_local_hex_string and longest_local_hex_string_custom.
5826         * buildsym.c (make_blockvector): Ditto.
5827         * solib.c (info_sharedlibrary_command): Ditto.
5828         * tracepoint.c (tracepoints_info): Ditto.
5829         * symtab.c (print_msymbol_info): Ditto.
5830
5831         * language.c (local_hex_string): Delete.
5832         (local_hex_string_custom): Delete.
5833         (longest_local_hex_string): Rename to local_hex_string.
5834         (longest_local_hex_string_custom): Rename to
5835         local_hex_string_custom.
5836         * language.h (local_hex_string): Change parameter type to LONGEST.
5837         (local_hex_string_custom): Ditto.
5838         (longest_local_hex_string): Delete declaration.
5839         (longest_local_hex_string_custom): Ditto.
5840
5841         * solib.c: Update copyright.
5842         * memattr.c: Update copyright.
5843         
5844 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5845
5846         * arch-utils.h (legacy_register_to_value): Declare.
5847         (legacy_value_to_register): Declare.
5848         (legacy_convert_register_p): Declare.
5849         * arch-utils.c (legacy_register_to_value): New function.
5850         (legacy_value_to_register): New function.
5851         (legacy_convert_register_p): New function.
5852
5853         * gdbarch.sh (REGISTER_TO_VALUE): Define.
5854         (VALUE_TO_REGISTER): Define.
5855         (CONVERT_REGISTER_P): Define.
5856         * gdbarch.h, gdbarch.c: Regenerate.
5857
5858         * valops.c (value_assign): Use CONVERT_REGISTER_P and
5859         VALUE_TO_REGISTER.
5860         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5861         CONVERT_REGISTER_P.
5862
5863 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
5864             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5865
5866         * Makefile.in: Update dependencies for valops.c.
5867         * valops.c: Include "gdb_assert.h".
5868         (typecmp): Skip THIS parameter to methods.
5869         (find_method_list): Remove static_memfuncp argument,
5870         update callers.  Check for stub methods.
5871         (find_value_oload_method_list): Don't set *static_memfuncp.
5872         (find_overload_match): Don't check for stub methods.  Assert
5873         that methods are not stubbed.  Handle static methods.
5874         (value_find_oload_method_list): Remove static_memfuncp argument.
5875         * gdbtypes.c (check_stub_method): Do not add THIS pointer
5876         to the argument list for static stub methods.
5877         * value.h (value_find_oload_method_list): Update prototype.
5878
5879 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5880
5881         * arch-utils.h (generic_register_size): Declare.
5882         (generic_register_raw_size, generic_register_virtual_size): Delete
5883         declarations.
5884         * arch-utils.c (generic_register_raw_size): Delete.
5885         (generic_register_size): New function.
5886         (generic_register_virtual_size): Delete.
5887
5888         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5889         default generic_register_size.
5890         * gdbarch.h, gdbarch.c: Re-generate.
5891         
5892         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5893         register_virtual_size.
5894         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5895         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5896
5897 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5898
5899         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5900         * gdbarch.h, gdbarch.c: Regenerate.
5901         * gnu-v3-abi.c: Update copyright.
5902         (vtable_address_point_offset): Update.
5903         (gnuv3_rtti_type): Update.
5904         (gnuv3_baseclass_offset): Update.
5905         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5906         (init_fetch_link_map_offsets): Update.
5907         * remote.c (get_remote_state): Update.
5908         
5909 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
5910
5911         * TODO: Remove value_headof/value_from_vtable_info comment.
5912         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5913         * values.c (value_headof, value_from_vtable_info): Delete.
5914         * value.h (value_from_vtable_info): Delete prototype.
5915
5916 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5917
5918         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5919         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5920         $(gdb_regex_h).
5921         (gdb_assert_h): Define.
5922         (gdb_wait_h): Define.
5923         (gdb_regex_h): Define.
5924
5925 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
5926
5927         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5928         * linespec.c (find_methods): Handle GCC 3.x template constructors.
5929
5930 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5931
5932         * nbsd-tdep.c: Fix comment.
5933
5934 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5935
5936         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5937         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5938         (nbsd-tdep.o): New dependency list.
5939         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
5940         nbsd-tdep.h.
5941         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5942         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5943         * nbsd-tdep.c: New file.
5944         * nbsd-tdep.h: New file.
5945         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
5946         nbsd-tdep.h.
5947         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5948         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5949         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5950         * config/sh/nbsd.mt (TDEPFILES): Ditto.
5951
5952 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5953
5954         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5955         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5956         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5957         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5958         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5959         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5960
5961 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5962
5963         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5964         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5965         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5966         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5967         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5968         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5969         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5970
5971 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5972
5973         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
5974         fetch_elfcore_registers to...
5975         * i386nbsd-tdep.c: ...here.
5976         (i386nbsd_use_struct_convention): Rename to...
5977         (i386nbsd_aout_use_struct_convention): ...this.
5978         (i386nbsd_supply_reg): New function.
5979         (i386nbsd_fill_reg): New function.
5980         (fetch_core_registers): Use i386nbsd_supply_reg.
5981         (fetch_elfcore_registers): Likewise.
5982         (_initialize_i386nbsd_tdep): New function.
5983         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5984         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5985         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5986         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5987         (i386nbsd_aout_use_struct_convention): ...this.
5988
5989 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5990
5991         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5992         (store_inferior_registers): Use shnbsd_fill_reg.
5993         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
5994         sh_nbsd_supply_register): Collapse into...
5995         (shnbsd_supply_reg): ...this.
5996         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5997         (shnbsd_fill_reg): ...this.
5998         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5999         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6000         (fetch_core_registers): Use shnbsd_supply_reg.
6001         (fetch_elfcore_registers): Use shnbsd_supply_reg.
6002         (sh_nbsd_core_fns): Rename to...
6003         (shnbsd_core_fns): ...this.
6004         (sh_nbsd_elfcore_fns): Rename to...
6005         (shnbsd_elfcore_fns): ...this.
6006         (sh_nbsd_init_abi): Rename to...
6007         (shnbsd_init_abi): ...this.
6008         (_initialize_sh_nbsd_tdep): Rename to...
6009         (_initialize_shnbsd_tdep): ...this.
6010         * shnbsd-tdep.h (sh_nbsd_supply_registers,
6011         sh_nbsd_supply_register, sh_nbsd_fill_registers,
6012         sh_nbsd_fill_register): Remove prototypes.
6013         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6014
6015 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6016
6017         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6018         (i387-nat.o): Delete dependency list.
6019         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6020         (x86-64-linux-nat.o): Likewise.
6021         * i387-nat.c: Delete file, moving contents to...
6022         * i387-tdep.c: ...here.
6023         * i387-nat.h: Rename...
6024         * i387-tdep.h: ...to this.
6025         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6026         * i386-linux-nat.c: Likewise.
6027         * i386bsd-nat.c: Likewise.
6028         * i386gnu-nat.c: Likewise.
6029         * i386nbsd-nat.c: Likewise.
6030         * i386v4-nat.c: Likewise.
6031         * x86-64-linux-nat.c: Likewise.
6032         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6033         * config/i386/go32.mh (NATDEPFILES): Likewise.
6034         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6035         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6036         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6037         * config/i386/linux.mh (NATDEPFILES): Likewise.
6038         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6039         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6040         * config/i386/obsd.mh (NATDEPFILES): Likewise.
6041         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6042
6043 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6044
6045         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6046         (alphanbsd-nat.o): Remove dependency list.
6047         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6048         * alphanbsd-nat.c: Delete.  Contents moved to...
6049         * alphanbsd-tdep.c: ...here.
6050         (_initialize_alphanbsd_tdep): Register core functions.
6051         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6052
6053 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6054
6055         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6056         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6057         (alphanbsd-nat.o): Likewise.
6058         (alphabsd-tdep.o): New dependency list.
6059         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6060         (fill_gregset): Use alphabsd_fill_reg.
6061         (supply_fpregset): Use alphabsd_supply_fpreg.
6062         (fill_fpregset): Use alphabsd_fill_fpreg.
6063         (fetch_inferior_registers): Use struct reg and struct fpreg
6064         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
6065         and alphabsd_supply_fpreg.
6066         (store_inferior_registers): Use struct reg and struct fpreg
6067         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
6068         and alphabsd_fill_fpreg.
6069         * alphabsd-tdep.c: New file.
6070         * alphabsd-tdep.h: New file.
6071         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6072         (fetch_elfcore_registers): Use alphabsd_supply_reg and
6073         alphabsd_supply_fpreg.
6074         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6075         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6076
6077 2002-05-11  Eric Christopher  <echristo@redhat.com>
6078
6079         * mips-tdep.c (mips_double_register_type): Fix thinko.
6080         (mips_single_register_type): Ditto.
6081         * MAINTAINERS: Add self.
6082
6083 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
6084
6085         * i387-nat.c (i387_supply_register, i387_fill_fsave,
6086         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6087         right thing on architectures with different endianness and/or
6088         integer sizes.
6089
6090 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
6091
6092         From Christian Limpach <chris@Pin.LU>
6093         * configure.in: Change sed expression which comments out
6094         NATDEPFILES to also comment out continuation lines.
6095         * configure: Regenerate.
6096
6097 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
6098
6099         * sh-tdep.c: Clean up code erroneously reintroduced by previous
6100         big patch.
6101
6102 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
6103
6104         * sh-tdep.c: Include correct file.
6105
6106 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
6107
6108         New support for sh64-elf (sh5) target.
6109
6110         * configure.tgt: For sh64-elf target, default to sh-elf.
6111
6112         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6113         (struct gdbarch_tdep): Add new fields for new registers and ABI
6114         info.
6115
6116         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6117         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6118         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6119         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6120         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6121         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6122         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6123         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6124         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6125         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6126         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6127         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6128         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6129         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6130         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6131         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6132         sh64_get_gdb_regnum, sh64_media_reg_base_num,
6133         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6134         sign_extend, sh64_nofp_frame_init_saved_regs,
6135         sh64_init_extra_frame_info, sh64_get_saved_register,
6136         sh64_extract_struct_value_address, sh64_pop_frame,
6137         sh64_push_arguments, sh64_extract_return_value,
6138         sh64_store_return_value, sh64_show_media_regs,
6139         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6140         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6141         sh_sh64_register_virtual_type,
6142         sh_sh64_register_convert_to_virtual,
6143         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6144         sh64_register_read, sh64_pseudo_register_write,
6145         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6146         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6147         sh64_do_pseudo_register, sh_compact_do_registers_info,
6148         sh64_do_registers_info, sh_gdbarch_init): New functions.
6149
6150 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
6151
6152         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6153
6154 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
6155
6156         * linespec.c (decode_line_1): Check for a double quote after
6157         a filename correctly.
6158
6159 2002-05-10  Jim Blandy  <jimb@redhat.com>
6160
6161         Properly track the size of the current objfile's .debug_line section.
6162         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6163         (DWARF_LINE_SIZE): New macro.
6164         (dwarf2_build_psymtabs_hard): Record the line section's size in
6165         the partial symbol table.
6166         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6167         symbol table.
6168
6169 2002-05-10  Petr Sorfa  <petrs@caldera.com>
6170
6171         * ia64-tdep.c: Handle breakpoints on L instruction type
6172         in MLX instruction bundle by moving the breakpoint to
6173         the third slot (X instruction type) as L holds only data.
6174
6175 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
6176
6177         * dbxread.c (discarding_local_symbols_complaint): New complaint.
6178         (process_one_symbol): Complain about discarding local symbols
6179         due to a misplaced N_LBRAC entry.
6180
6181 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
6182
6183         From Daniel Berlin <dan@cgsoftware.com>
6184         * linespec.c (find_toplevel_char): '<' and '>' also increase and
6185         decrease the depth we are at, in the case of templates.
6186
6187 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
6188
6189         * mips-tdep.c (mips_float_register_type): New function.
6190         (mips_double_register_type): New function.
6191         (mips_print_register): Use them.
6192         (do_fp_register_row): Likewise.
6193
6194 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
6195
6196         * signals/signals.c (signals): Remove conditional compilation around
6197         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
6198         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6199
6200 2002-05-09  Michael Snyder  <msnyder@redhat.com>
6201
6202         * remote-rdp.c (remote_rdp_can_run): Remove.
6203
6204 2002-05-09  Tom Tromey  <tromey@redhat.com>
6205
6206         * jv-valprint.c (java_val_print): Handle `char' as a special case
6207         of TYPE_CODE_INT.
6208
6209 2002-05-09  Michael Snyder  <msnyder@redhat.com>
6210
6211         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6212         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6213         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6214         str r(0123),[sp,#nn].
6215         (arm_skip_prologue): Ditto.  Also make disassembly
6216         order-independent by placing it in a loop.
6217
6218 2002-05-06  Michael Snyder  <msnyder@redhat.com>
6219
6220         * stabsread.c (read_type): Add recognition for new attribute:
6221         "@V;" means that an array type is actually a vector.
6222         This is analogous to the vector flag that's been added to dwarf2.
6223
6224 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
6225
6226         * i386-tdep.h (i386_abi): New enum.
6227         (struct gdbarch_tdep): Replace os_ident member with abi.
6228         (i386_gdbarch_register_os_abi): New prototype.
6229         * i386-tdep.c (i386_abi_names): New array.
6230         (process_note_abi_tag_sections): Removed.
6231         (process_note_sections): New function.
6232         (i386_elf_abi_from_note, i386_elf_abi): New functions.
6233         (struct i386_abi_handler): New struct.
6234         (i386_abi_handler_list): New variable.
6235         (i386_gdbarch_register_os_abi): New function.
6236         (i386_gdbarch_init): Adapt for the changes given above.
6237
6238 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
6239
6240         * gregset.h: Say "GNU/Linux".
6241
6242 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
6243
6244         * gdbtypes.c : Add new builtin type for 64 bit vectors.
6245         (build_gdbtypes): Build builtin_type_v2_float.
6246         (_initialize_gdbtypes): Register new builtin type.
6247
6248 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
6249
6250         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6251         (clear_gdbarch_swap): New function.
6252         (initialize_non_multiarch): Call.
6253         (gdbarch_update_p): Before calling init(), swap out and clear the
6254         existing architecture.
6255         * gdbarch.c: Regenerate.
6256
6257 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
6258
6259         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6260         alphanbsd-tdep.c.
6261
6262 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
6263
6264         * sh-nbsd-nat.c: Rename to...
6265         * shnbsd-nat.c: ...this.
6266         * sh-nbsd-tdep.c: Rename to...
6267         * shnbsd-tdep.c: ...this.
6268         * sh-nbsd-tdep.h: Rename to...
6269         * shnbsd-tdep.h: ...this.
6270         * config/sh/nbsd.mh: Use shnbsd-nat.o.
6271         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6272
6273 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
6274
6275         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6276         concatenation for command help messages.
6277
6278 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
6279
6280         * NEWS: Note new sh*-*-netbsdelf* configuration.
6281         * configure.host: Set gdb_host_cpu to sh for all sh*.
6282         (sh*-*-netbsdelf*): New host.
6283         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6284         (sh*-*-netbsdelf*): New target.
6285         * sh-nbsd-nat.c: New file.
6286         * sh-nbsd-tdep.c: New file.
6287         * sh-nbsd-tdep.h: New file.
6288         * config/sh/nbsd.mh: New file.
6289         * config/sh/nbsd.mt: New file.
6290         * config/sh/nm-nbsd.h: New file.
6291         * config/sh/tm-nbsd.h: New file.
6292
6293 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
6294
6295         * sh-tdep.c (sh_osabi_names): Declare.
6296         (process_note_abi_tag_sections): New function.
6297         (get_elfosabi): Ditto.
6298         (sh_gdbarch_register_os_abi): Ditto.
6299         (sh_dump_tdep): Ditto.
6300         _initialize_sh_tdep): Use gdbarch_register to register
6301         sh_gdbarch_init and sh_dump_tdep.
6302         * config/sh/tm-sh.h (sh_osabi): Declare.
6303         (gdbarch_tdep): Add sh_osabi and osabi_name members.
6304
6305 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
6306
6307         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6308         (thumb_scan_prologue): Ditto.
6309         (arm_find_callers_reg): Ditto.
6310         (arm_frame_chain): Ditto.
6311         (arm_init_extra_frame_info): Ditto.
6312         (arm_frame_saved_pc): Ditto.
6313         (arm_pop_frame): Ditto.
6314         (arm_push_return_address): New function.
6315         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6316         call_dummy_location, call_dummy_breakpoint_offset_p,
6317         call_dummy_breakpoint_offset, call_dummy_p,
6318         call_dummy_stack_adjust_p, call_dummy_words,
6319         sizeof_call_dummy_words, call_dummy_start_offset,
6320         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6321         call_dummy_address, push_return_address and push_dummy_frame for
6322         generic dummy frames.
6323
6324 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
6325
6326         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6327         size computation for alloca.
6328         (sh_fp_frame_init_saved_regs): Likewise.
6329
6330 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
6331
6332         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6333         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6334         * arm-tdep.c (arm_store_return_value): Use them.
6335         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6336         * remote-rdp.c (remote_rdp_fetch_register): Use
6337         ARM_MAX_REGISTER_RAW_SIZE.
6338         (remote_rdp_store_register): Likewise.
6339
6340 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
6341
6342         * dwarf2cfi.c: Code cleanup, removed unused variables,
6343         added default labels to switch {} statements.
6344         * x86-64-tdep.c: Ditto.
6345         * x86-64-linux-nat.c: Ditto.
6346
6347 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
6348
6349         * solib.h: Protect against multiple inclusion.
6350
6351 2002-05-06  Jim Blandy  <jimb@redhat.com>
6352
6353         Add first preprocessor macro-expansion files.
6354         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6355         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6356         (splay_tree_h, macroexp_h, macrotab_h): New variable.
6357         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6358         (COMMON_OBS): Add macrotab.o, macroexp.o.
6359         (macroexp.o, macrotab.o): New rules.
6360
6361         Separate the job of reading the line number info statement program
6362         header (...expialidocious) out into its own function.
6363         * dwarf2read.c (struct line_head, struct filenames, struct
6364         directories): Replace with...
6365         (struct line_header): New structure, containing the full
6366         contents of the statement program header, including the
6367         include directory and file name tables.
6368         (read_file_scope): If we have line number info, instead of just
6369         calling dwarf_decode_lines to do all the work, call
6370         dwarf_decode_line_header first to get a `struct line_header'
6371         containing the data in the statement program header, and then
6372         pass that to dwarf_decode_lines, which will pick up where that
6373         left off.  Be sure to clean up the `struct line_header' object.
6374         (dwarf_decode_line_header, free_line_header, add_include_dir,
6375         add_file_name): New functions.
6376         (dwarf_decode_lines): Move all the code to read the statement
6377         program header into dwarf_decode_line_header.  Take the line
6378         header it built as the first argument, instead of the offset to
6379         the compilation unit's line number info.  Use the new `struct
6380         line_header' type instead of the old structures.  No need to do
6381         cleanups here now, since we don't allocate anything.
6382         (dwarf2_statement_list_fits_in_line_number_section,
6383         dwarf2_line_header_too_long): New complaints.
6384
6385 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
6386
6387         * gdbtypes.c (init_vector_type): New function.
6388         (build_builtin_type_vec128): Simplify the representation of SIMD
6389         registers.
6390         (build_gdbtypes): Initialize new builtin vector types.
6391         (_initialize_gdbtypes): Register new vector types with gdbarch.
6392         (builtin_type_v4_float, builtin_type_v4_int32,
6393         builtin_type_v8_int16, builtin_type_v16_int8,
6394         builtin_type_v2_int32, builtin_type_v4_int16,
6395         builtin_type_v8_int8): New (renamed) SIMD types.
6396
6397 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
6398
6399         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6400         (i387_fill_fxsave): Likewise.
6401
6402 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
6403
6404         * alpha-tdep.c (alpha_extract_return_value): Don't use
6405         non-constant array size in prototype.
6406
6407 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6408
6409         From Brian Taylor <briant at model dot com>:
6410         * ui-out.c (ui_out_field_core_addr): Use the function
6411         longest_local_hex_string_custom'to format addresses > 32 bits
6412         wide.
6413
6414         * ui-out.c (ui_out_field_core_addr): Update comment.
6415
6416 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6417
6418         * stack.c (select_and_print_frame): Make static.  Delete the
6419         parameter `level'.
6420         (func_command): Update call.
6421         (select_frame_command): Delete code computing the frame level.
6422         * frame.h (select_and_print_frame): Delete declaration.
6423
6424 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6425
6426         * sparc-tdep.c (sparc_get_saved_register): Comment why
6427         get_prev_frame call is safe.
6428
6429 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6430
6431         * frame.h (select_frame): Delete level parameter.
6432         * stack.c (select_frame): Update.  Use frame_relative_level to
6433         obtain the frame's level.
6434         (select_and_print_frame): Update call.
6435         (select_frame_command): Ditto.
6436         (up_silently_base): Ditto.
6437         (down_silently_base): Ditto.
6438         * ocd.c (ocd_start_remote): Ditto.
6439         * remote-rdp.c (remote_rdp_open): Ditto.
6440         * remote-mips.c (mips_initialize): Ditto.
6441         (common_open): Ditto.
6442         * remote-e7000.c (e7000_start_remote): Ditto.
6443         * m3-nat.c (select_thread): Ditto.
6444         * hppa-tdep.c (child_get_current_exception_event): Ditto.
6445         (child_get_current_exception_event): Ditto.
6446         * varobj.c (varobj_create): Ditto.
6447         (varobj_update): Ditto.
6448         (c_value_of_root): Ditto.
6449         * tracepoint.c (finish_tfind_command): Ditto.
6450         * corelow.c (core_open): Ditto.
6451         * arch-utils.c (generic_prepare_to_proceed): Ditto.
6452         * thread.c (info_threads_command): Ditto.
6453         (switch_to_thread): Ditto.
6454         * infrun.c (normal_stop): Ditto.
6455         (restore_selected_frame): Ditto.
6456         (restore_inferior_status): Ditto.
6457         * breakpoint.c (insert_breakpoints): Ditto.
6458         (watchpoint_check): Ditto.
6459         (bpstat_stop_status): Ditto.
6460         (do_enable_breakpoint): Ditto.
6461         * blockframe.c (flush_cached_frames): Ditto.
6462         (reinit_frame_cache): Ditto.
6463
6464 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6465
6466         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6467         maintainer.
6468
6469 2002-05-04  Jim Blandy  <jimb@redhat.com>
6470
6471         * gdbtypes.c (replace_type): Doc fix.
6472
6473 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6474
6475         * valprint.c (strcat_longest): Delete commented out function.
6476         Update copyright.
6477
6478 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6479
6480         * MAINTAINERS: Mark a29k as deleted.
6481         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
6482         Move new configurations to the top.
6483         * configure.tgt: Remove a29k.
6484         * config/a29k/tm-vx29k.h: Delete.
6485         * config/a29k/vx29k.mt: Delete.
6486         * config/a29k/tm-a29k.h: Delete.
6487         * config/a29k/a29k-udi.mt: Delete.
6488         * config/a29k/a29k.mt: Delete.
6489         * a29k-tdep.c: Delete.
6490         * remote-udi.c: Delete.
6491         * remote-mm.c: Delete.
6492         * remote-eb.c: Delete.
6493         * remote-adapt.c: Delete.
6494         * Makefile.in: Remove obsolete code.
6495         * config/s390/s390x.mt: Ditto.
6496         * config/s390/s390.mt: Ditto.
6497         * config/sparc/sparclynx.mh: Ditto.
6498         * config/sparc/linux.mh: Ditto.
6499         * config/pa/hppaosf.mh: Ditto.
6500         * config/pa/hppabsd.mh: Ditto.
6501         * config/ns32k/nbsd.mt: Ditto.
6502         * config/mips/vr5000.mt: Ditto.
6503         * config/m68k/sun3os4.mh: Ditto.
6504         * config/m68k/nbsd.mt: Ditto.
6505         * config/m68k/m68klynx.mh: Ditto.
6506         * config/m32r/m32r.mt: Ditto.
6507         * config/i386/x86-64linux.mt: Ditto.
6508         * config/i386/nbsdelf.mt: Ditto.
6509         * config/i386/nbsd.mt: Ditto.
6510         * config/i386/i386lynx.mh: Ditto.
6511
6512 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
6513
6514         * target.c (debug_print_register): New function.  Handle oversize
6515         registers.
6516         (debug_to_fetch_registers): Call.
6517         (debug_to_store_registers): Call.
6518
6519 2002-05-03  Jim Blandy  <jimb@redhat.com>
6520
6521         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6522         (read_type): Doc fix.
6523         * gdbtypes.c (replace_type): Doc fix.
6524
6525         * stabsread.c (multiply_defined_struct): New complaint.
6526         (read_struct_type): If the type we were passed isn't empty, or
6527         incomplete, don't read the new struct type into it; complain,
6528         and return the original type unchanged.  Take a new `type_code'
6529         argument, which is the type code for the new type.
6530         (read_type): Rather than storing the type's type code here, pass
6531         it as an argument to read_struct_type, and let that take care of
6532         storing it.  That way, we don't overwrite the original type code,
6533         so read_struct_type can use it to decide whether we're overwriting
6534         something we shouldn't.
6535         (complain_about_struct_wipeout): New function.
6536
6537 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
6538
6539         * gdbarch.sh: Assert that gdbarch is non-NULL.
6540         * gdbarch.c: Regenerate.
6541
6542 2002-05-03  Jason Merrill  <jason@redhat.com>
6543
6544         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6545         and return NULL.
6546
6547 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
6548
6549         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6550         (x86_64_dwarf2gdb_regno_map_length),
6551         (x86_64_dwarf2_reg_to_regnum): Added.
6552         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6553         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6554         (_initialize_x86_64_tdep): Synced with the change above.
6555         (x86_64_skip_prologue): Reformulated message.
6556
6557 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
6558
6559         * f-exp.y: Also use new prev_lexptr variable
6560         to improve error reporting. Based on Michael Snyder
6561         2002-04-24 dated patch to c-exp.y.
6562         * jv-exp.y: Likewise.
6563         * m2-exp.y: Likewise.
6564
6565 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
6566
6567         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6568         we are dealing with vectors.
6569
6570 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6571
6572         * config/m68k/tm-nbsd.h: Obvious fix,
6573         correct machine name.
6574
6575 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6576
6577         * p-typeprint.c (pascal_type_print_base): Add support
6578         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6579
6580 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6581
6582         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6583         for fondamental pascal 'char' type.
6584
6585 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
6586
6587         * p-lang.h (is_pascal_string_type): Declaration changed,
6588         new sixth argument of type char ** added.
6589         * p-lang.c (is_pascal_string_type): Implementation
6590         changed. Args length_pos, length_size, string_pos, char_size
6591         can now be NULL. New argument arrayname set to the field
6592         name of the char array. Return value set to char array
6593         field index plus one.
6594         * p-valprint.c (pascal_val_print): Adapt to new declaration of
6595         is_pascal_string_type function.
6596
6597 2002-05-02  Andrew Cagney  <cagney@redhat.com>
6598
6599         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6600         <cagney@redhat.com> change.
6601         * gdbarch.c: Regenerate.
6602
6603 2002-05-02  Andrew Cagney  <cagney@redhat.com>
6604
6605         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6606         before probing for a new one.  Detect errorenous gdbarch_init
6607         functions.
6608         * gdbarch.c: Regenerate.
6609
6610 2002-05-01  Andrew Cagney  <cagney@redhat.com>
6611
6612         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6613         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
6614         * config/v850/tm-v850.h: Ditto.  Update copyright.
6615
6616 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
6617
6618         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6619         current_gdbarch.
6620
6621 2002-04-30  Michael Snyder  <msnyder@redhat.com>
6622
6623         * arm-tdep.c: Whitespace clean-ups.
6624         (arm_skip_prologue): Fix thinko; two lines
6625         should have been removed as part of 4/24 change.
6626
6627 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
6628
6629         * rs6000-tdep.c: Added comment describing how fpscr register
6630         numbers were chosen.
6631
6632 2002-04-30  Michael Snyder  <msnyder@redhat.com>
6633
6634         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6635
6636 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
6637
6638         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6639         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6640         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6641
6642 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
6643
6644         From Louis Hamilton <hamilton@redhat.com>:
6645         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6646         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6647         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6648         not bfd-private xcoff data, to determine wordsize.
6649         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6650
6651 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
6652
6653         GDB 5.2 released from 5.2 branch.
6654
6655 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
6656
6657         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6658         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6659         (x86_64_register_info_table): Added comments with register numbers.
6660
6661 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
6662
6663         * rs6000-tdep.c (rs6000_extract_return_value,
6664         rs6000_store_return_value): Handle returning vectors.
6665         (rs6000_gdbarch_init): Use
6666         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6667         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6668         New function.
6669         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6670         vectors.
6671         (ppc_sysv_abi_push_arguments): Handle vector parameters.
6672         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6673
6674 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6675
6676         * hpread.c (hpread_psymtab_to_symtab_1,
6677         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6678         with fprintf_unfiltered (gdb_stderr,...).
6679
6680 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6681
6682         * remote-array.c (printf_monitor, write_monitor,
6683         array_insert_breakpoint, array_remove_breakpoint ):
6684         Replace fprintf (stderr,...
6685         with fprintf_unfiltered (gdb_stderr,....
6686         * remote-es.c: Likewise.
6687         * remote-os9k.c: Likewise.
6688         * remote-st.c: Likewise.
6689
6690 2002-04-28  Andreas Schwab  <schwab@suse.de>
6691
6692         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6693         linux-proc.o and gcore.o.
6694
6695 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
6696
6697         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6698         code without frame pointers.
6699
6700 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6701
6702         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6703         ON_STACK is needed.
6704
6705 2002-04-26  Ben Elliston  <bje@redhat.com>
6706
6707         * target.c (do_xfer_memory): Correct reference to the new option
6708         "trust-readonly-sections".
6709
6710 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
6711
6712         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6713         * gdbtypes.c (recursive_dump_type): Output the vector flag.
6714         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6715         vectors.
6716         (read_array_type): Record the fact that this array type is really a
6717         vector (i.e. are passed in by value).
6718
6719 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
6720
6721         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6722         * alpha-tdep.c (alpha_sigcontext_addr): New function.
6723         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6724         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6725         * alpha-linux-tdep.c: Include frame.h.
6726         (alpha_linux_sigcontext_addr): New function.
6727         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6728         alpha_linux_sigcontext_addr.
6729         * alpha-osf1-tdep.c: Include gdbcore.h.
6730         (alpha_osf1_sigcontext_addr): New function.
6731         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6732         alpha_osf1_sigcontext_addr.
6733         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6734         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6735
6736 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6737
6738         * stack.c (selected_frame_level):
6739         (select_frame): Do not set selected_frame_level.
6740         * frame.h (selected_frame_level): Delete declaration.
6741
6742 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
6743
6744         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6745         convert_from_func_ptr-addr when AIX / PowerOpen.
6746
6747 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6748
6749         * valops.c (hand_function_call): Call
6750         generic_save_call_dummy_addr.
6751         * frame.h (generic_save_call_dummy_addr): Declare.
6752         * blockframe.c (struct dummy_frame): Add fields call_lo and
6753         call_hi.
6754         (generic_find_dummy_frame): Check for PC in range call_lo to
6755         call_hi instead of entry_point_address.
6756         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6757         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
6758         (generic_save_call_dummy_addr): New function.
6759
6760 2002-04-24  David S. Miller  <davem@redhat.com>
6761
6762         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6763         sparc_skip_prologue.
6764         (sparc_skip_prologue): Kill frameless_p arg, and use line number
6765         information to find prologue when possible.
6766         (sparc_prologue_frameless_p): Call examine_prologue directly.
6767         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6768         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6769         second argument.
6770         (SKIP_PROLOGUE): Likewise.
6771
6772 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6773
6774         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6775         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6776         indicate that the condition it was testing is always true.
6777         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6778         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6779         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6780
6781 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6782
6783         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6784         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6785         tdep->jb_pc and tdep->jb_elt_size.
6786         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6787         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6788         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6789         * alpha-nat.c (get_longjmp_target): Remove.
6790         (JB_ELEMENT_SIZE): Ditto.
6791         (JB_PC): Ditto.
6792         * alpha-tdep.c (alpha_get_longjmp_target): New function.
6793         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
6794         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6795         to alpha_get_longjmp_target.
6796         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6797         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6798         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6799
6800 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6801
6802         * README: Update to GDB 5.2.
6803
6804 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
6805
6806         * gdbarch.sh (LC_ALL): Set to `c'.
6807
6808 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6809
6810         * avr-tdep.c: Ran through gdb_indent.sh.
6811
6812 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6813
6814         * MAINTAINERS: Add myself as AVR maintainer.
6815         * NEWS: Note new target avr.
6816
6817 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6818
6819         * Makefile.in: Add support for AVR target.
6820         * configure.tgt: Add support for AVR target.
6821         * avr-tdep.c: New file
6822         * config/avr/avr.mt: New file.
6823
6824 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6825
6826         * MAINTAINERS: Add myself to write-after-approval.
6827
6828 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6829
6830         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6831         with fprintf_unfiltered (gdb_stderr,....
6832
6833 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6834
6835         Fix PR gdb/508.
6836         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6837
6838 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6839
6840         * p-exp.y: Also use new prev_lexptr variable
6841         to improve error reporting. Based on Michael Snyder
6842         2002-04-24 dated patch to c-exp.y.
6843
6844 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6845
6846         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6847         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6848         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
6849         to 0.
6850         * config/alpha/tm-alpha.h: Remove forward decls of struct type
6851         and struct value.
6852         (FUNCTION_START_OFFSET): Remove.
6853         (BREAKPOINT): Ditto.
6854
6855 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6856
6857         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6858         * NEWS: Ditto.
6859
6860 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6861
6862         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6863         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6864         alpha_linux_pc_in_sigtramp.
6865         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6866         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6867         alpha_osf1_pc_in_sigtramp.
6868         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6869         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6870         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6871         alphafbsd_pc_in_sigtramp.
6872         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6873         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6874         alphanbsd_pc_in_sigtramp.
6875         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6876         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6877
6878 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6879
6880         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6881
6882 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6883
6884         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6885         alphanbsd-tdep.c.
6886         (alphanbsd-nat.o): New dependency list.
6887         (alphanbsd-tdep.o): Ditto.
6888         * NEWS: Note new native NetBSD/alpha configuration.
6889         * alphanbsd-nat.c: New file.
6890         * alphanbsd-tdep.c: Ditto.
6891         * configure.host (alpha*-*-netbsd*): New host.
6892         * configure.tgt (alpha*-*-netbsd*): New target.
6893         * config/alpha/nbsd.mh: New file.
6894         * config/alpha/nbsd.mt: Ditto.
6895         * config/alpha/nm-nbsd.h: Ditto.
6896         * config/alpha/tm-nbsd.h: Ditto.
6897
6898 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6899
6900         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6901         (alpha-osf1-tdep.o): New dependency list.
6902         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6903         and skip_sigtramp_frame members.
6904         * alpha-linux-tdep.c: Include gdbcore.h.
6905         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6906         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6907         * alpha-osf1-tdep.c: New file.
6908         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6909         alpha-osf1-dep.c.
6910         (alpha_frame_past_sigtramp_frame): New function.
6911         (alpha_dynamic_sigtramp_offset): Ditto.
6912         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6913         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6914         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6915         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6916         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6917         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6918         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6919         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6920         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6921         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6922         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
6923         to find_solib_trampoline_target.
6924         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6925         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6926         (SKIP_TRAMPOLINE_CODE): Remove.
6927         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6928         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6929         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6930         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6931         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6932         (PROC_SIGTRAMP_MAGIC): Ditto.
6933         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6934         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6935         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6936         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6937         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6938
6939 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6940
6941         * NEWS: Note that Alpha targets are now multi-arch.
6942
6943 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6944
6945         * parser-defs.h (prev_lexptr): New external variable.
6946         * parse.c (parse_exp_1): Set prev_lexptr to null before
6947         calling the language-specific parser.
6948         * c-exp.y (yylex): Set prev_lexptr to start of current token.
6949         (yyerror): Use prev_lexptr in error reporting.
6950
6951 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
6952
6953         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6954         * gregset.h: If FILL_FPXREGSET is defined, provide
6955         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6956         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6957         is defined, call fill_fpxregset.
6958
6959 2002-04-24  Roland McGrath  <roland@frob.com>
6960
6961         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6962         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6963         (supply_gregset, supply_fpregset): New functions.
6964
6965         * gnu-nat.c (gnu_find_memory_regions): New function.
6966         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6967         (gnu_xfer_memory): Add a cast.
6968
6969 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6970
6971         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6972         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
6973         of argument regs ("str r(0123), [r11, #-nn"]).
6974         (arm_skip_prologue): Better handling for frameless functions.
6975         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
6976         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6977
6978 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
6979
6980         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6981         NUM_PSEUDO_REGS can be used.
6982
6983 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
6984
6985         * arch-utils.h: Update copyright.
6986
6987         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6988         * gdbarch.h, gdbarch.c: Re-generate.
6989
6990         * inferior.h (IN_SIGTRAMP): Delete definition.
6991         * arch-utils.c (legacy_pc_in_sigtramp): New function.
6992         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6993
6994         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6995         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6996         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
6997         (find_proc_framesize): Ditto.
6998         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6999         (alpha_init_extra_frame_info): Ditto.
7000         * infrun.c (handle_inferior_event): Ditto.
7001         (handle_inferior_event): Ditto.
7002         (check_sigtramp2): Ditto.
7003         * blockframe.c (create_new_frame): Ditto.
7004         (get_prev_frame): Ditto.
7005         * ppc-linux-tdep.c: Update comments.
7006         * i386-linux-tdep.c: Update comments.
7007         * breakpoint.c (bpstat_what): Update comment.
7008
7009 2002-04-24  David S. Miller  <davem@redhat.com>
7010
7011         * i960-tdep.c (register_in_window_p): New function.
7012         (i960_find_saved_register): Use it instead of
7013         REGISTER_IN_WINDOW_P.
7014         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7015
7016         * symtab.h (find_stab_function_addr): Kill extern.
7017         * minsyms.c (find_stab_function_addr): Remove from here...
7018         * dbxread.c: ... to here, and mark it static.
7019
7020 2002-04-20  David S. Miller  <davem@redhat.com>
7021
7022         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7023         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7024
7025 2002-04-21  David S. Miller  <davem@redhat.com>
7026
7027         * remote-vxsparc.c (vx_read_register): Fix typo, we want
7028         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7029         (vx_write_register): Likewise.
7030
7031 2002-04-23  J. Brobecker  <brobecker@gnat.com>
7032
7033         * source.c (is_regular_file): New function.
7034         (openp): Check wether file to open is a regular file
7035         to avoid opening directories.
7036
7037 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7038
7039         * findvar.c (extract_signed_integer): Cast printf argument
7040         to suppress format warning.
7041         (extract_unsigned_integer): Likewise.
7042         * infcmd.c (registers_info): Likewise.
7043         * top.c (get_prompt_1): Likewise.
7044         * valops.c (value_assign): Likewise.
7045         * valprint.c (print_decimal): Likewise.
7046
7047 2002-04-22  H.J. Lu  (hjl@gnu.org)
7048
7049         * c-exp.y (typebase): Support
7050
7051         [long|long long|short] [signed|unsigned] [int|]
7052
7053         and
7054
7055         signed [long|long long|short] int
7056
7057 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7058
7059         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7060         and vax-tdep.h.
7061         * vax-tdep.h: New file.
7062         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7063         Make several routines static.
7064         (vax_get_saved_register): New function.
7065         (vax_gdbarch_init): New function.
7066         (_initialize_vax_tdep): Register vax_gdbarch_init.
7067         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7068         Remove macros now under the control of gdbarch.
7069
7070 2002-04-22  Michael Snyder  <msnyder@redhat.com>
7071
7072         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7073         Some whitespace and coding standards tweaks.
7074
7075 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7076
7077         * vax-tdep.c: Include regcache.h.
7078         (vax_call_dummy_words): New.
7079         (sizeof_vax_call_dummy_words): New.
7080         (vax_fix_call_dummy): New function.
7081         (vax_saved_pc_after_call): Ditto.
7082         * config/vax/tm-vax.h: Don't include regcache.h.
7083         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7084         (CALL_DUMMY): Remove.
7085         (CALL_DUMMY_WORDS): Define.
7086         (SIZEOF_CALL_DUMMY_WORDS): Define.
7087         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7088
7089 2002-04-18  Michael Snyder  <msnyder@redhat.com>
7090
7091         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7092
7093 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7094
7095         * vax-tdep.c (vax_frame_chain): New function.
7096         (vax_push_dummy_frame): Ditto.
7097         (vax_pop_frame): Ditto.
7098         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7099         (FRAMELESS_FUNCTION_INVOCATION): Use
7100         generic_frameless_function_invocation_not.
7101         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7102         (POP_FRAME): Use vax_pop_frame.
7103
7104 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7105
7106         * vax-tdep.c (vax_store_struct_return): New function.
7107         (vax_extract_return_value): Ditto.
7108         (vax_store_return_value): Ditto.
7109         (vax_extract_struct_value_address): Ditto.
7110         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7111         vax_store_struct_return.
7112         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7113         (STORE_RETURN_VALUE): Use vax_store_return_value.
7114         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7115
7116 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7117
7118         * vax-tdep.c (vax_frame_saved_pc): New function.
7119         (vax_frame_args_address_correct): Ditto.
7120         (vax_frame_args_address): Ditto.
7121         (vax_frame_locals_address): Ditto.
7122         (vax_frame_num_args): Move code to be in proximity to
7123         other frame-related functions.
7124         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7125         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7126         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7127         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7128         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7129
7130 2002-04-22  H.J. Lu  (hjl@gnu.org)
7131
7132         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7133         includedir.
7134
7135 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7136
7137         * vax-tdep.c (vax_frame_init_saved_regs): New function.
7138         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7139         (FRAME_INIT_SAVED_REGS): New macro.
7140
7141 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7142
7143         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7144
7145 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7146
7147         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7148         where needed.
7149         (fetch_osf_core_registers): Likewise.
7150         (supply_gregset): Likewise.
7151
7152 2002-04-22  J. Brobecker  <brobecker@gnat.com>
7153
7154         * symfile.h (get_section_index): Define.
7155         * symfile.c (get_section_index): New function.
7156         * mdebugread.c (SC_IS_SBSS): New macro.
7157         (SC_IS_BSS): Return true for the scBss storage class only, as
7158         the scSBss storage class refers to the .sbss section.
7159         (parse_partial_symbols): Discard the symbols which associated
7160         section does not exist.
7161         Make sure to use the .sbss section index for symbols which
7162         storage class is scBss, rather than using the .bss section index.
7163
7164 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
7165
7166         * vax-tdep.c: Update copyright years.
7167         (vax_register_name): New function.
7168         (vax_register_byte): Ditto.
7169         (vax_register_raw_size): Ditto.
7170         (vax_register_virtual_size): Ditto.
7171         (vax_register_virtual_type): Ditto.
7172         * config/vax/tm-vax.h: Update copyright years.
7173         (REGISTER_NAMES): Remove.
7174         (REGISTER_NAME): Define.
7175         (REGISTER_BYTE): Use vax_register_byte.
7176         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7177         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7178         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7179
7180 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
7181
7182         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7183         declaration
7184         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7185
7186 2002-04-21  David S. Miller  <davem@redhat.com>
7187
7188         * arch-utils.c (generic_prologue_frameless_p): Kill
7189         SKIP_PROLOGUE_FRAMELESS_P code.
7190         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7191         references.
7192         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7193         * arc-tdep.c (arc_prologue_frameless_p): Implement.
7194         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7195         references.
7196         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7197         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7198         (sparc_gdbarch_init): Pass it to
7199         set_gdbarch_prologue_frameless_p.
7200
7201 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7202
7203         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7204         (alphabsd-nat.o): New dependency list.
7205
7206 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7207
7208         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7209         alphafbsd-tdep.c.
7210         (alpha-linux-tdep.o): New dependency list.
7211         (alphafbsd-tdep.o): Likewise.
7212
7213 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7214
7215         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
7216         to here...
7217         * alpha-tdep.c: ...from here.
7218         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7219
7220 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7221
7222         * config/alpha/tm-alpha.h: Move alpha_software_single_step
7223         prototype from here...
7224         * alpha-tdep.h: ...to here.
7225
7226 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
7227
7228         * frame.h (selected_frame_level): Document as deprecated.
7229         (frame_relative_level): Declare.
7230         * stack.c (frame_relative_level): New function.
7231         (selected_frame_level): Document as deprecated.
7232         (select_frame): Do not set the selected_frame_level.
7233
7234         * stack.c (frame_info, record_selected_frame): Update.
7235         (frame_command, current_frame_command): Update.
7236         (up_silently_base, up_command, down_silently_base): Update.
7237         (down_command): Update.
7238         * inflow.c (kill_command): Update.
7239         * tracepoint.c (finish_tfind_command): Update.
7240         * corelow.c (core_open): Update.
7241         * thread.c (info_threads_command): Update.
7242         (do_captured_thread_select): Update.
7243         * infcmd.c (finish_command): Update.
7244         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7245
7246 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7247
7248         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7249
7250 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
7251
7252         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
7253         type const.
7254
7255 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7256
7257         * alphafbsd-tdep.c: Update copyright years.  Include
7258         alpha-tdep.h.
7259         (alphafbsd_use_struct_convention): Make static.
7260         (alphafbsd_init_abi): New function.
7261         (_initialize_alphafbsd_tdep): New function.
7262         * config/alpha/tm-fbsd.h: Update copyright years.
7263         (USE_STRUCT_CONVENTION): Remove.
7264
7265 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7266
7267         * alpha-tdep.c (alpha_abi_handler): New structure to describe
7268         an Alpha ABI variant.
7269         (alpha_abi_handler_list): Declare.
7270         (alpha_gdbarch_register_os_abi): New function.
7271         (alpha_gdbarch_init): Give registered ABI variant handlers a
7272         chance to tweak the gdbarch once we have set up defaults.
7273         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7274
7275 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7276
7277         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7278         to standard_coerce_float_to_double.
7279         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7280
7281 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7282
7283         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7284         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7285         from gdbarch_tdep rather than a constant.
7286         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7287         the default text address for all Alpha Unix ABIs.
7288         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7289         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7290
7291 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
7292
7293         * alpha-tdep.h: New file.  Includes several Alpha target constants
7294         taken from...
7295         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
7296         let gdbarch deal with.
7297         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7298         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7299         to dependency list.
7300         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
7301         Alpha target register names.
7302         * alphabsd-nat.c: Likewise.
7303         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
7304         Alpha target register names.  Make serveral routines static.
7305         (alpha_get_saved_register): New function.
7306         (alpha_abi_names): New.
7307         (process_note_abi_tag_sections): New function.
7308         (get_elfosabi): New function.
7309         (alpha_gdbarch_init): New function.
7310         (alpha_dump_tdep): New function.
7311         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7312
7313 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
7314
7315         * frame.c (find_saved_register): Delete #ifdef
7316         HAVE_REGISTER_WINDOWS code.
7317         * config/sparc/tm-sparc.h: Update comments.
7318         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7319
7320 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
7321
7322         * i960-tdep.c (i960_find_saved_register): New function.
7323         (i960_get_saved_register): New function.
7324         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7325         (i960_get_saved_register): Declare.
7326         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7327
7328 2002-04-20  David S. Miller  <davem@redhat.com>
7329
7330         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7331
7332 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
7333
7334         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7335         instead of NUM_PSEUDO_REGS.
7336
7337 2002-04-20  David S. Miller  <davem@redhat.com>
7338
7339         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7340         GDB_MULTI_ARCH_PARTIAL
7341         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7342         define, let tm-sp64.h do it.
7343
7344 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
7345
7346         * frame.c (find_saved_register): Avoid a NULL pointer
7347         dereference and actually walk the frame list.
7348
7349 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
7350
7351         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7352         sorted in most most-recent-used order.  Document.
7353         * gdbarch.h, gdbarch.c: Regenerate.
7354
7355 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
7356
7357         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7358         instead of ->prev.
7359         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7360         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7361         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7362         instead of ->prev.
7363
7364 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
7365
7366         Fix PR gdb/471.
7367         * gdbtypes.c (init_simd_type): Rewrite using new functions.
7368         (build_builtin_type_vec128): Ditto.
7369         (append_composite_type_field): Fix calculation of type length in
7370         union case.
7371
7372 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
7373
7374         * config/djgpp/README: Update.
7375
7376         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7377         compiler warnings.
7378
7379 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
7380
7381         * alpha-tdep.c (setup_arbitrary_frame): Rename...
7382         (alpha_setup_arbitrary_frame): ...to this.
7383         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7384         for alpha_setup_arbitrary_frame.
7385
7386 2002-04-18  Andrew Cagney  <cagney@redhat.com>
7387
7388         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7389         * gdbarch.h, gdbarch.c: Regenerate.
7390
7391         * defs.h (breakpoint_from_pc_fn): Delete type definition.
7392         * target.h (memory_breakpoint_from_pc): Update declaration.
7393         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7394
7395         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7396         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7397         * mem-break.c (memory_breakpoint_from_pc): Ditto.
7398         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7399         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7400         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7401         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7402         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7403         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7404         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7405         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7406         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7407
7408         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7409         const pointer.
7410         * monitor.c (monitor_insert_breakpoint): Ditto.
7411         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7412
7413         * config/mcore/tm-mcore.h: Update copyright.
7414         * mem-break.c: Ditto.
7415         * xstormy16-tdep.c: Ditto.
7416
7417 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7418
7419         * p-exp.y: Add precedence rule for '^' token.
7420         This removes the shift/reduce conflicts.
7421         Remove the comment concerning these shift/reduce conflicts.
7422
7423 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
7424
7425         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7426         (registers_powerpc_nofp): New register set for processors
7427         without floating point unit.
7428
7429 2002-04-18  David S. Miller  <davem@redhat.com>
7430
7431         * MAINTAINERS: Add myself to write-after-approval.
7432
7433 2002-04-17  Michael Snyder  <msnyder@redhat.com>
7434
7435         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7436
7437 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
7438
7439         * rs6000-tdep.c (frame_initial_stack_address): Use
7440         frame_register_read to read the alloca_reg.
7441
7442 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
7443
7444         * frame.c (find_saved_register): Find saved registers in the next
7445         not prev frame.
7446         Fix PR gdb/365.
7447
7448 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
7449
7450         * gdbarch.sh (LANG): Set to ``c''.
7451
7452 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
7453
7454         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7455
7456 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
7457
7458         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7459         Update copyright.
7460
7461         * hpread.c (hpread_get_lntt): Add declaration.
7462         Also fix PR gdb/391.
7463
7464 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
7465
7466         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7467         * aclocal.m4, configure: Re-generate.
7468         Fix PR gdb/391.
7469
7470 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
7471
7472         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7473         instead of tm_print_insn.
7474
7475 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
7476
7477         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7478
7479 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
7480
7481         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7482         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7483         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7484
7485 2002-04-12  Don Howard  <dhoward@redhat.com>
7486
7487         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7488         max_user_call_depth.
7489         (init_cmd_lists): Initialize the new value;
7490         * cli/cli-script.c (execute_user_command): Limit the call depth of
7491         user defined commands.  This avoids a core-dump when user commands
7492         are infinitly recursive.
7493
7494 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7495
7496         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7497         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7498         from tdep struct instead of DEFAULT_LR_SAVE.
7499         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7500         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7501         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7502
7503 2002-04-12  Michael Snyder  <msnyder@redhat.com>
7504
7505         * Remote.c: Spelling fix.
7506         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7507         If no symbol found for "sbrk", try "_sbrk".
7508         (make_output_phdrs): Use bfd_section_name.
7509         (gcore_copy_callback): Use bfd_section_name.
7510         * eval.c: Indentation fix-ups.
7511         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7512         in case it gets applied to an address that is already
7513         in the instruction space.
7514         * cli/cli-decode.c (help_list): Allow long lines to wrap.
7515         * symfile.c: Fix indentation, long lines.
7516         * source.c: White space fix-up.
7517
7518 2002-04-12  Andrew Cagney  <cagney@redhat.com>
7519
7520         * defs.h (read_relative_register_raw_bytes): Delete declaration.
7521         * frame.c (frame_register_read): New function.  Return non-zero on
7522         success.
7523         (read_relative_register_raw_bytes_for_frame): Delete.
7524         (read_relative_register_raw_bytes): Delete.
7525         * frame.h (frame_register_read): Declare.
7526         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
7527         * sh-tdep.c: Ditto.
7528         * infcmd.c (do_registers_info): Ditto.
7529         * hppa-tdep.c: Ditto.
7530         * rs6000-tdep.c: Ditto.
7531         * h8500-tdep.c: Ditto.
7532         * mips-tdep.c: Ditto.
7533         * h8300-tdep.c: Ditto.
7534         * z8k-tdep.c: Ditto.
7535
7536 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7537
7538         From Jimi X <jimix@watson.ibm.com>:
7539         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7540         64-bit SysV ABI.
7541
7542 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7543
7544         From Jimi X <jimix@watson.ibm.com>:
7545         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7546         bfd info.
7547
7548 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
7549
7550         From Jimi X <jimix@watson.ibm.com>:
7551         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7552         register sets for these processor variants.
7553
7554 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
7555
7556         * regformats/reg-ppc.dat: Support FPSCR.
7557
7558 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
7559
7560         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7561         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7562         Add fpscr as an invalid/unfetchable register.
7563         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7564         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7565         (fill_fpregset): Add support for register fpscr.
7566         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7567         (fill_gregset): Account for the fact that register ``mq'' might
7568         not exist.
7569         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7570         (registers_power): Add fpscr to register set at slot 71.
7571         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7572         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
7573
7574 2002-04-11  Michael Snyder  <msnyder@redhat.com>
7575
7576         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7577         * configure: Regenerate.
7578         * config.in: Regenerate.
7579         * acconfig.h: Add define for _SYSCALL32.
7580         * core-sol2.c: Remove #define _SYSCALL32.
7581         * solib-legacy.c: Remove #define _SYSCALL32.
7582
7583 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
7584
7585         * stack.c (select_frame): Cleanup internal error message, do not
7586         use %p.
7587
7588 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
7589
7590         * stack.c (select_frame): Check that selected_frame and the
7591         specified level are as expected.
7592         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7593         Update copyright.
7594         * frame.h (struct frame_info): Add field `level'.  Update
7595         copyright.
7596         Work-in-progress PR gdb/464.
7597
7598 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
7599
7600         * maint.c (maint_print_section_info): Rename print_section_info.
7601         (print_bfd_section_info, print_objfile_section_info): Update.
7602         * inferior.h (struct gdbarch): Add opaque declaration.
7603         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7604         * gdbarch.h: Regenerate.
7605
7606 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
7607
7608         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7609         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7610         (kernel_u_size): Added.
7611         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7612         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7613
7614 2002-04-04  Jim Ingham  <jingham@apple.com>
7615
7616        * valarith.c (find_size_for_pointer_math): New function, either returns
7617        the size for a pointer's target, returns 1 for void *, or errors for
7618        incomplete types.
7619        (value_add, value_sub): use find_size_for_pointer_math.
7620
7621 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
7622
7623         * linux-low.c (linux_look_up_symbols): New hook.
7624         (linux_target_ops): Add linux_look_up_symbols.
7625         * remote-utils.c (decode_address): New function.
7626         (look_up_one_symbol): New function.
7627         * server.c (handle_query): Call target look_up_symbols hook.
7628         * server.h (look_up_one_symbol): Add prototype.
7629         * target.h (struct target_ops): Add look_up_symbols hook.
7630
7631 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
7632
7633         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7634         override FP_REGNUM with frame->fp.  Update copyright.
7635         * parse.c (num_std_regs, std_regs): Delete.
7636         (target_map_name_to_register): Do not search std_regs.  Update
7637         function description.
7638         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7639         declarations.  Update copyright.
7640         Fix PR gdb/251.
7641
7642 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
7643
7644         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7645         after the last symbol in a block.
7646
7647 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
7648
7649         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7650         is non zero as a found symbol.
7651
7652 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
7653
7654         * findvar.c: Include "builtin-regs.h".
7655         (value_of_register): Call value_of_builtin_reg when applicable.
7656         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7657         (target_map_name_to_register): Call
7658         builtin_reg_map_name_to_regnum.
7659         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7660         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7661         (builtin_regs_h): Define.
7662         (builtin-regs.o): New target.
7663         (findvar.o): Add $(builtin_regs_h).
7664         * builtin-regs.c, builtin-regs.h: New files.
7665         * std-regs.c: New file.
7666         Partial fix for PR gdb/251.
7667
7668 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7669
7670         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7671         it's no longer required.
7672
7673 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
7674
7675         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7676
7677 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7678
7679         From Jimi X <jimix@watson.ibm.com>:
7680         * rs6000-tdep.c (rs6000_software_single_step): Use
7681         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7682         and size.  Use target_insert_breakpoint() and
7683         target_remove_breakpoint() to insert and remove breakpoints
7684         instead of explicit memory reads and writes.
7685
7686 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7687
7688         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7689         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7690         ELF_OBJECT_FORMAT ifdef.
7691
7692 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7693
7694         From Jimi X <jimix@watson.ibm.com>:
7695         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7696
7697 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
7698
7699         From Jimi X <jimix@watson.ibm.com>:
7700         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7701         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7702
7703 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
7704
7705         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7706         s/asprintf/xasprintf/.
7707         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7708
7709 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7710
7711         I believe Jeff Law denies responsability for this one:
7712         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7713         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7714         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7715         Work-around for PR gdb/366.
7716
7717 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
7718
7719         * remote-e7000.c (write_small, e7000_read_inferior_memory,
7720         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7721         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7722
7723 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
7724
7725         * sh-tdep.c (sh_fp_frame_init_saved_regs,
7726         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7727         information.
7728
7729 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7730
7731         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7732         maintainer.
7733
7734 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
7735
7736         * README (Reporting Bugs in GDB): Document the bug web page as the
7737         prefered way of submitting bugs.
7738         Fix PR gdb/402.
7739
7740 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7741
7742         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7743         -1.  Update comment.
7744         * gdbarch.h, gdbarch.c: Re-generate.
7745
7746 2002-04-07  Andreas Schwab  <schwab@suse.de>
7747
7748         * m68klinux-nat.c (fill_fpregset): Properly pass address of
7749         buffer to regcache_collect.
7750
7751 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7752
7753         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
7754         * gdbarch.c, gdbarch.h: Re-generate.
7755
7756 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
7757
7758         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7759         declaration.  Fix -Werror.
7760
7761 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
7762
7763         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7764         * gdbarch.c: Regenerate.
7765
7766 2002-04-05  Michael Snyder  <msnyder@redhat.com>
7767
7768         * breakpoint.c (clear_command): Rewrite middle section to
7769         combine two loops with identical control conditions.
7770         Add a cleanup to eliminate a memory leak.
7771         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7772
7773 2002-04-05  H.J. Lu  (hjl@gnu.org)
7774
7775         * solib-svr4.c (bkpt_names): Add "__start".
7776
7777 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
7778
7779         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7780         as test for 64 bit target.
7781
7782 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
7783
7784         * h8500-tdep.c (h8500_write_fp): Delete function.
7785         * dwarf2cfi.c (cfi_write_fp): Document as not used.
7786         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7787         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7788         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7789         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7790         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7791         (s390_write_fp):
7792         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7793         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7794         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7795         (d10v_write_fp): Delete function.
7796         * inferior.h (write_fp, generic_target_write_fp): Delete
7797         declarations.
7798         * regcache.c (generic_target_write_fp): Delete function.
7799         (write_fp): Delete function.
7800         * gdbarch.sh (TARGET_WRITE_FP): Delete.
7801         * gdbarch.h, gdbarch.c: Regenerate.
7802         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7803         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7804         (sparc64_write_fp): Delete declaration.
7805         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7806         (h8500_write_fp): Delete declaration.
7807
7808 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
7809
7810         * sparc-tdep.c (sparc64_write_fp): Delete.
7811         (sparc_push_dummy_frame): Replace write_fp call with code to store
7812         the FP directly.
7813         (sparc_gdbarch_init): Do not initialize write_fp.
7814
7815 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
7816
7817         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7818         clause.
7819
7820 2002-03-29  Jim Blandy  <jimb@redhat.com>
7821
7822         * stack.c (get_selected_block): Add new argument `addr_in_block',
7823         used to return the exact code address we used to select the block,
7824         not just the block.
7825         * blockframe.c (get_frame_block, get_current_block): Same.
7826         * frame.h (get_frame_block, get_current_block,
7827         get_selected_block): Update declarations.
7828         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7829         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7830
7831 2002-04-05  Michael Snyder  <msnyder@redhat.com>
7832
7833         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7834         warning message.
7835
7836 2002-04-05  J. Brobecker  <brobecker@gnat.com>
7837
7838         * utils.c (xfullpath): New function.
7839         * defs.h (xfullpath): Add declaration.
7840         * source.c (openp): Use xfullpath in place of gdb_realpath to
7841         avoid resolving the basename part of filenames when the
7842         associated file is a symbolic link. This fixes a potential
7843         inconsistency between the filenames known to GDB and the
7844         filenames it prints in the annotations.
7845         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7846         to be able to match a filename with either the real filename, or
7847         the name of any symbolic link to this file.
7848         (lookup_partial_symtab): Ditto.
7849
7850 2002-04-04  Michael Snyder  <msnyder@redhat.com>
7851
7852         * breakpoint.c: Add support for hardware breakpoints in overlays.
7853         (overlay_events_enabled): New state variable.
7854         (insert_breakpoints): Use overlay_events_enabled to decide
7855         whether to attempt to set a breakpoint at the overlay load addr.
7856         Handle bp_hardware_breakpoint as well as bp_breakpoint.
7857         (remove_breakpoint): Use overlay_events_enabled to decide
7858         whether breakpoints need to be removed from overlay load addr.
7859         Handle bp_hardware_breakpoint as well as bp_breakpoint.
7860         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7861         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7862         disable_overlay_breakpoints): Update overlay_events_enabled.
7863
7864 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
7865
7866         * dwarf2read.c (struct function_range): New.
7867         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7868         (check_cu_functions): New.
7869         (read_file_scope): Initialize global function lists.
7870         Call dwarf_decode_line after processing children.
7871         (read_func_scope): Add to global function list.
7872         (dwarf_decode_lines): Call check_cu_functions everywhere
7873         record_line is called.  Call record_line with a linenumber
7874         of 0 to mark sequence ends.
7875
7876 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
7877
7878         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7879         change sync with glibc.
7880
7881 2002-04-03  Jim Blandy  <jimb@redhat.com>
7882
7883         * configure.in: Call AC_C_INLINE.
7884         * configure: Regenerated.
7885
7886 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
7887
7888         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7889         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7890
7891 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
7892
7893         * NEWS: Mention gcore support on FreeBSD/i386.
7894
7895         * fbsd-proc.c: New file.
7896         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7897         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7898
7899         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7900         while statement.
7901
7902 2002-03-29  Jim Blandy  <jimb@redhat.com>
7903
7904         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7905         unescaped newlines in string literals, but newer ones don't.  So
7906         escape them.
7907
7908 2002-03-26  Michael Snyder  <msnyder@redhat.com>
7909             Andrew Cagney <cagney@redhat.com>
7910
7911         * cli/cli-dump.c: New file.  Dump memory to file,
7912         restore file to memory.
7913         * cli/cli-dump.h: New file.
7914         * Makefile.in: Add rules, dependencies for cli-dump.o.
7915         * NEWS: Mention new commands.
7916
7917 2002-03-28  Michael Snyder  <msnyder@redhat.com>
7918
7919         * symfile.c (symbol_file_add): Move test for null symbols to later.
7920
7921 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7922
7923         From veksler at il.ibm.com:
7924         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7925         the xstrduped original path.
7926         Fix PR gdb/417.
7927
7928 2002-03-27  Michael Snyder  <msnyder@redhat.com>
7929
7930         * breakpoint.c (_initialize_breakpoint): Clean up help string.
7931         * infcmd.c (_initialize_infcmd): Ditto.
7932         * language.c (_initialize_language): Ditto.
7933         * symfile.c (_initialize_symfile): Ditto.
7934         * top.c (_init_main): Ditto.
7935         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7936
7937 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
7938
7939         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7940         vector registers handling.
7941         (skip_prologue): Handle new AltiVec instructions.  Fill in new
7942         fields of frame data.
7943         (frame_get_saved_regs): Fill in information for AltiVec registers.
7944
7945 2002-03-27  Jim Blandy  <jimb@redhat.com>
7946
7947         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7948         a function; leave this macro here to invoke that function.
7949         (symbol_init_mangled_name): Declaration for that function.
7950         * symtab.c (symbol_init_mangled_name): New function.
7951
7952 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7953
7954         * valarith.c: Replace strerror with safe_strerror.
7955         * tracepoint.c: Ditto.
7956         * lin-lwp.c: Ditto.
7957         * go32-nat.c: Ditto.
7958         * inflow.c: Ditto.
7959         * gnu-nat.c: Ditto.
7960
7961 2002-03-27  Andreas Schwab  <schwab@suse.de>
7962
7963         * event-top.c (command_line_handler): Remove useless if.
7964
7965 2002-03-27  Andreas Jaeger  <aj@suse.de>
7966
7967         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7968         comment.
7969
7970 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
7971
7972         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7973         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7974         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7975         (x86_64_linux_dr_get_status, supply_gregset),
7976         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7977         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7978         (x86_64_register_info_table): Add.
7979         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7980         (x86_64_register_raw_size, x86_64_register_virtual_type),
7981         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7982         general x86_64_register_info_table.
7983         (i386_gdbarch_init): gdbarch_register_bytes is now set
7984         dynamicaly during initialization.
7985         * regformats/reg-x86-64.dat: Synced with changes to registers above.
7986         * gdbserver/linux-x86-64-low.c: Ditto.
7987
7988 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7989
7990         * gdbserver/server.c (main): Call target_signal_to_host_p
7991         and target_signal_to_host on signals received from the remote.
7992         * gdbserver/remote-utils.c (prepare_resume_reply): Call
7993         target_signal_from_host on signals sent to the remote.
7994         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
7995         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
7996
7997 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7998
7999         * signals/signals.c: Include "server.h" in gdbserver build.
8000         (target_signal_from_name): Don't use STREQ.
8001         (_initialize_signals): Likewise.  Don't include function in
8002         gdbserver build.
8003
8004 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
8005
8006         * signals.c: Moved to...
8007         * signals/signals.c: Here.
8008         * Makefile (signals.o): Update.
8009
8010 2002-03-26  Jeff Law (law@redhat.com)
8011
8012         * somread.c (som_symtab_read): Remove some commented out code and
8013         updated related comments.  Do not set the minimal symbol table to
8014         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8015         in a dynamic executable.
8016         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8017         where we are unable to find the minimal symbol for the given
8018         PC value.
8019
8020 2002-03-25  Jeff Law (law@redhat.com)
8021
8022         * linux-proc.c (read_mapping): Scan up to end of line for filename.
8023
8024 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
8025
8026         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8027
8028 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8029
8030         * command.h: Update copyright.
8031         (struct cmd_list_element): Replace definition with opaque
8032         declaration.
8033         (enum cmd_types): Document that it will eventually be moved to
8034         cli/cli-decode.h
8035         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8036         (MALLOCED_REPLACEMENT): Delete macro.
8037         * Makefile.in (cli_decode_h): Add $(command_h).
8038         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8039         * top.c: Include "cli/cli-decode.h".
8040         * completer.c: Include "cli/cli-decode.h".
8041         * maint.c: Include "cli/cli-decode.h".
8042         * cli/cli-decode.h: Include "command.h".
8043         (enum command_class): Delete.
8044         (enum cmd_types): Comment out.
8045         (enum cmd_auto_boolean): Delete.
8046         (enum var_types): Delete.
8047
8048 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8049
8050         * cli/cli-decode.c: Include "gdb_assert.h".
8051         (add_set_or_show_cmd): New static function.
8052         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
8053         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
8054         all fields, such as func, from the set command.
8055
8056 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8057
8058         * MAINTAINERS (sh-elf): Change warning flag to -w.
8059
8060 2002-03-23  Andrew Cagney  <cagney@redhat.com>
8061
8062         * defs.h (error): Add printf format attribute.
8063         * thread-db.c (thread_from_lwp): Fix error format string.
8064         * stack.c (parse_frame_specification): Ditto.
8065         * cli/cli-decode.c (undef_cmd_error): Ditto.
8066         * scm-lang.c (scm_lookup_name): Ditto.
8067         * tracepoint.c (trace_error): Ditto.
8068         * remote-utils.c (usage): Ditto.
8069         * remote.c (compare_sections_command): Ditto.
8070         Fix PR gdb/328.
8071
8072 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
8073
8074         * gdbtypes.c (append_composite_type_field): New function.
8075         (init_composite_type): New function.
8076         * gdbtypes.h (append_composite_type_field): Declare.
8077         (init_composite_type): Ditto.
8078
8079 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
8080
8081         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8082         function.
8083         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8084         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8085         structure returning convention for SYSV ABI case, but not
8086         for GNU/Linux, FreeBSD, or NetBSD.
8087
8088 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
8089
8090         * symtab.h (lookup_block_symbol): Add mangled_name argument
8091         to prototype.
8092
8093         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8094         with new mangled_name argument.
8095         * linespec.c (decode_line_1): Likewise.
8096         * valops (value_of_this): Likewise.
8097         * symtab.c (lookup_transparent_type): Likewise.
8098         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
8099         (lookup_symbol): If we are given a mangled name, pass it down
8100         to lookup_symbol_aux.
8101         (lookup_block_symbol): If we are given a mangled name to check
8102         against, only return symbols which match it.
8103
8104 2002-03-22  Christopher Faylor  <cgf@redhat.com>
8105
8106         * win32-nat.c (child_create_inferior): Check for proper shell to use
8107         here, in case the user changes it on the fly.
8108         (_initialize_inftarg): Remove shell path considerations.
8109
8110 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
8111
8112         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8113         for gdbarch_max_register_raw_size and max_register_virtual_size.
8114         Adjust copyright year.
8115
8116 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
8117
8118          * dbxread.c (process_one_symbol): Extend the first N_SLINE
8119          in a function to cover the entire beginning of the function
8120          as well if it does not already.
8121
8122 2002-03-21  Tom Rix  <trix@redhat.com>
8123
8124         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8125         (rs6000_ptrace64): Renamed from ptrace64.
8126
8127 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
8128
8129         * gdbserver/remote-utils.c (remote_open): Don't call
8130         getprotobyname, we're all using TCP here so just use
8131         IPPROTO_TCP.
8132         * gdbserver/gdbreplay.c (remote_open): Ditto.
8133
8134 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
8135
8136         * regcache.c (_initialize_regcache): No need to call
8137         build_regcache() at this time; it gets called whenever
8138         the gdbarch changes.
8139
8140 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
8141
8142         * sparc-nat.c:  Include sys/param.h where possible.
8143
8144 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
8145
8146         Fix PR gdb/422.
8147         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8148         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8149         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8150         complex types.
8151         * stabsread.c (rs6000_builtin_type): Likewise.
8152         (read_sun_floating_type): Likewise.
8153
8154 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8155
8156         * stabsread.c (read_member_functions): Remove skip code for duplicate
8157         constructor/destructor methods.  Use standard parsing for these
8158         methods and just do not chain them to the list of methods after
8159         parsing.
8160
8161 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
8162
8163         * coffread.c: Remove redundant static declarations.  Replace
8164         occurrences of `PTR' with `void *'.
8165         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8166         * top.h (quit_cover): Likewise.
8167         * defs.h (catch_errors): Likewise.
8168
8169 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
8170
8171         * defs.h (XMALLOC): Define.
8172         * gdb-events.sh (XMALLOC): Delete macro.
8173         * gdb-events.c, gdb-events.h: Regenerate.
8174         * gdbarch.sh (XMALLOC): Delete macro.
8175         * gdbarch.c: Regenerate.
8176         * serial.c (XMALLOC): Delete macro.
8177         * ui-file.c (XMALLOC): Ditto.
8178         * ser-unix.h (XMALLOC): Ditto.
8179         * sh-tdep.c (XMALLOC): Ditto.
8180         * ui-out.c (XMALLOC): Ditto.
8181         * utils.c (XMALLOC): Ditto.
8182         * i386-tdep.c (XMALLOC): Ditto.
8183         * gdb-events.c (XMALLOC): Ditto.
8184         * d10v-tdep.c (XMALLOC): Ditto.
8185         * cli-out.c (XMALLOC): Ditto.
8186
8187         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8188         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8189         * ui-file.c, ui-out.c: Ditto.
8190
8191 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
8192
8193         * command.h (struct cmd_list_element): Add field context.
8194         (set_cmd_context, get_cmd_context): Declare.
8195         * cli/cli-decode.h: Ditto.
8196         * cli/cli-decode.c (get_cmd_context): New function.
8197         (set_cmd_context): New function.
8198         (add_cmd): Initialize context.
8199         Part of fixing PR gdb/145 and PR gdb/146.
8200
8201 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
8202
8203         * cli/cli-decode.c (cmd_type): New function.
8204         * command.h (cmd_type): Declare.
8205         * infrun.c (set_schedlock_func): Call function cmd_type.
8206         * kod.c (kod_set_os): Call cmd_type.
8207         * cris-tdep.c (cris_version_update): Use function cmd_type.
8208         (cris_mode_update, cris_abi_update): Ditto.
8209
8210         * command.h: (execute_cmd_post_hook): Declare.
8211         (execute_cmd_pre_hook): Declare.
8212         * cli/cli-script.c (clear_hook_in_cleanup): New function.
8213         (execute_cmd_post_hook, execute_cmd_pre_hook): New
8214         functions. Execute pre/post hook while ensuring that afterwords
8215         hook_in is cleared.
8216         * top.c (execute_command): Use execute_cmd_post_hook, and
8217         execute_cmd_pre_hook to execute pre/post commands.
8218         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8219         hook_stop_stub.
8220         (hook_stop_stub): Call execute_cmd_pre_hook.
8221
8222 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
8223
8224         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
8225         set'' and this leads to a core dump.  Move xstrdup of
8226         operating_system to after check that it is not NULL.
8227
8228 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
8229
8230         * kod.c (kod_set_os): Remove unnecessary check that
8231         ``command->type'' is set_cmd.
8232
8233         * valprint.c (set_input_radix): Use input_radix.
8234         (set_output_radix): Use output_radix.
8235         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8236         isn't reverted.
8237
8238 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
8239
8240         * value.h (struct value): Delete field ``substring_addr''.  Change
8241         aligner fields to force_doublest_align, force_longest_align,
8242         force_core_addr_align and force_pointer_aligh.
8243
8244         * value.h (struct value): Fix typo in above change.
8245
8246 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8247
8248         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8249         to fix internal_error from ``maintenance print architecture''.
8250
8251 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8252
8253         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8254         for gcc versions after gcc-2.8.1.
8255
8256 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8257
8258         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8259         for method resolution.  Restore adjustment of ``this'' pointer after
8260         calling value_struct_elt, which was accidentally removed during the
8261         HP merge.
8262
8263 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
8264
8265         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8266         value_of_register.
8267         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
8268         get_saved_register.
8269         * value.h (value_of_register): Update.
8270
8271 2002-03-14  Richard Henderson  <rth@redhat.com>
8272
8273         * configure.in: Detect declaration for canonicalize_file_name.
8274         * utils.c (canonicalize_file_name): Declare, if needed.
8275         (gdb_realpath): Prefer realpath if available and usable.
8276         * config.in, configure: Rebuild.
8277
8278 2002-03-14  Richard Henderson  <rth@redhat.com>
8279
8280         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8281         a constant array bound.
8282
8283         * MAINTAINERS: Add myself to write-after-approval.
8284
8285 2002-03-14  Michael Snyder  <msnyder@redhat.com>
8286
8287         * symfile.c (syms_from_objfile): Return immediately if no syms.
8288         (symbol_file_add): Return immediately if no syms.
8289         (find_sym_fns): Return immediately if no syms.
8290
8291 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
8292
8293         * gdbserver/remote-util.c (remote_open): Print remote-side's
8294         IP address when remote debugging over the network.
8295
8296 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
8297
8298         * config/sparc/fbsd.mh: Fix copyright.
8299         * config/sparc/fbsd.mt: Likewise.
8300
8301 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
8302
8303         * MAINTAINERS: Fix typo in name of gdb warnings option.
8304         (x86-64): Fix formating so that this can be parsed by awk.
8305
8306 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
8307
8308         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8309         * defs.h: Include "gdb/signals.h".
8310         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8311
8312 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
8313
8314         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8315         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8316         from x86-64-tdep.h
8317
8318 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
8319             Don Howard <dhoward@redhat.com>
8320
8321         * mips-tdep.c (ST0_FR): Define.
8322         (mips2_fp_compat): New function, temporarily disabled.
8323         (mips_read_fp_register_single): New function.
8324         (mips_read_fp_register_double): New function.
8325         (mips_print_register): Use them.
8326         (do_fp_register_row): Likewise.
8327
8328 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
8329
8330         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8331         approval''.
8332
8333 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8334
8335         * stabsread.c (read_member_functions): Fix is_stub test for
8336         static member functions, improve comment.
8337
8338 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
8339
8340         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8341         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8342         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8343         commands that set boolean values.
8344         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8345         (arm_rdi_resume): Always initialize PC.
8346         (arm_rdi_open): Don't use rslt as a boolean.
8347         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8348         (arm_rdi_fetch_registers, arm_rdi_store_registers)
8349         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8350         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8351
8352 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
8353
8354         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8355         * configure: Rebuilt.
8356
8357 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8358
8359         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8360         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8361
8362 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
8363
8364         * cli/cli-decode.c (set_cmd_completer): New function.
8365         * command.h (set_cmd_completer): Declare.
8366         * cli/cli-decode.h (set_cmd_completer): Ditto.
8367
8368         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8369         * cli/cli-cmds.c (init_cli_cmds): Ditto.
8370         * win32-nat.c (_initialize_inftarg): Ditto.
8371         * remote-rdi.c (_initialize_remote_rdi): Ditto.
8372         * proc-api.c (_initialize_proc_api): Ditto.
8373         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8374         * source.c (_initialize_source): Ditto.
8375         * exec.c (_initialize_exec): Ditto.
8376         * solib.c (_initialize_solib): Ditto.
8377         * top.c (init_main): Ditto.
8378         * tracepoint.c (_initialize_tracepoint): Ditto.
8379         * symfile.c (_initialize_symfile): Ditto.
8380         * printcmd.c (_initialize_printcmd): Ditto.
8381         * infcmd.c (_initialize_infcmd): Ditto.
8382         * corefile.c (_initialize_core): Ditto.
8383
8384 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
8385
8386         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8387
8388 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
8389
8390         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8391
8392 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
8393
8394         * NEWS: Update headings, 5.2 has branched.
8395
8396 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
8397
8398         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8399         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8400         (register_addr, REGISTER_RAW_SIZE): Likewise.
8401         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8402         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8403
8404 2002-03-03  Michal Ludvig <mludvig@suse.cz>
8405
8406         * MAINTAINERS (x86-64): Add myself.
8407         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8408         changed value_ptr -> struct value *
8409
8410 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
8411
8412         * configure.host (sparc64-*-freebsd): Add.
8413         * configure.tgt: Likewise.
8414         * config/sparc/fbsd.mh: New file.
8415         * config/sparc/fbsd.mt: Likewise.
8416         * config/sparc/nm-fbsd.h: Likewise.
8417         * config/sparc/tm-fbsd.h: Likewise.
8418
8419 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
8420
8421         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8422         regformats/reg-s390x.dat.
8423
8424 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
8425
8426         * utils.c: Add FIXME explaining true/false problem.
8427
8428 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
8429
8430         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8431
8432 2002-02-28  Michael Chastain  <mec@shout.net>
8433
8434         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8435
8436 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
8437
8438         * gdbserver/linux-s390-low.c: New file.
8439         * regformats/reg-s390.dat: New file.
8440         * regformats/reg-s390x.dat: New file.
8441         * gdbserver/configure.srv: Add S/390.
8442         * gdbserver/Makefile.in: Add S/390.
8443         * configure.tgt: Enable gdbserver for S/390.
8444
8445 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
8446
8447         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8448         first line of the doc string for "info dos", except at the end of
8449         the sentence, since the short help stops at the first period.
8450
8451 2002-02-28  Jason Merrill  <jason@redhat.com>
8452
8453         * dwarf2read.c (dwarf_cfi_name): Add new codes.
8454
8455 2002-02-27  Fred Fish  <fnf@redhat.com>
8456
8457         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8458         comment (dumy -> dummy).
8459
8460 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8461
8462         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8463
8464 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
8465
8466       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8467
8468 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8469
8470         * gdbserver/acconfig.h: New file.
8471         * gdbserver/i387-fp.c: New file.
8472         * gdbserver/i387-fp.h: New file.
8473         * gdbserver/linux-x86-64.c: New file.
8474         * regformats/reg-x86-64.dat: New file.
8475         * configure.tgt: Add x86_64-*-linux* gdbserver support.
8476         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8477         * gdbserver/configure.in: Add support for regsets.
8478         * gdbserver/config.in: Regenerate.
8479         * gdbserver/configure: Regenerate.
8480         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
8481         * gdbserver/linux-low.h: New file.
8482         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
8483         for regsets.
8484         * gdbserver/linux-arm-low.c: Include "linux-low.h".
8485         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8486         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8487         * gdbserver/linux-mips-low.c: Include "linux-low.h".
8488         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8489         * gdbserver/linux-sh-low.c: Include "linux-low.h".
8490         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
8491         "i387-fp.h".  Add PTRACE_GETREGS and friends.
8492         * gdbserver/regcache.c (supply_register): New function.
8493         (supply_register_by_name): New function.
8494         (collect_register): New function.
8495         (collect_register_by_name): New function.
8496
8497 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8498
8499         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8500         (config.status): Add configure.srv dependency.
8501         (server_h): Add config.h dependency.
8502
8503 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
8504
8505         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8506         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8507         * gdbserver/configure.srv: Change i386-*-linux* to use
8508         reg-i386-linux.o.
8509
8510 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8511
8512         * x86-64-tdep.c: Re-indent.  Update copyright date.
8513
8514 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8515
8516         From Michal Ludvig <mludvig@suse.cz>:
8517         * x86-64-tdep.c (value.h): Delete.
8518         (gdb_assert.h): Include.
8519         (x86_64_register_convert_to_virtual,
8520         x86_64_register_convert_to_raw ): Add check which lets only
8521         floating-point values to be converted.
8522         (value_push): Delete.
8523         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8524         (i386_gdbarch_init): Number of register_bytes fixed.
8525
8526 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8527
8528         * MAINTAINERS: Add x86-64 target.
8529
8530 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8531
8532         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8533         * osfsolib.c (solib_map_sections): Ditto.
8534         * irix5-nat.c (solib_map_sections): Ditto.
8535         * corelow.c (gdb_check_format): Ditto.
8536         * symfile.c (symfile_bfd_open): Ditto.
8537         * solib.c (solib_map_sections): Ditto.
8538         Fix PR gdb/354.
8539
8540 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
8541
8542         * remote.c (_initialize_remote): By default, disable ``e'' and
8543         ``E'' step out-of-range packets.
8544
8545 2002-02-26  Andreas Schwab  <schwab@suse.de>
8546
8547         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8548         m68k_linux_frame_saved_pc.
8549         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8550         in_sigtramp.
8551         (SIGCONTEXT_PC_OFFSET): Remove.
8552         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8553         m68k_linux_sigtramp_saved_pc): New functions.
8554         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8555         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8556         (UCONTEXT_PC_OFFSET): Define.
8557         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8558         non-RT and RT signal trampolines.
8559
8560 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
8561
8562         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8563         (TARGET_NBPG, STACK_END_ADDR): Delete
8564         (VARIABLES_INSIDE_BLOCK): Delete.
8565
8566 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
8567
8568         * utils.c (perror_with_name): Make string parameter constant.
8569         (print_sys_errmsg): Ditto.
8570         (query): Ditto.
8571         * defs.h (perror_with_name): Update.
8572         (print_sys_errmsg): Update.
8573         (query): Update.
8574
8575 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
8576
8577         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8578         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8579
8580 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8581
8582         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8583         if it already matches the current architecture from the exec file.
8584         Include arch-utils.h for gdbarch_info_init prototype.
8585         * Makefile.in (rs6000-nat.o): Update dependencies.
8586
8587 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
8588
8589         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8590          list of exported variables.
8591
8592 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
8593
8594         * gdbserver/configure.srv: New file.
8595         * gdbserver/configure.in: Use configure.srv instead
8596         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
8597         from it.
8598         * gdbserver/configure: Regenerated.
8599         * gdbserver/terminal.h: New file.
8600         * gdbserver/Makefile.in: Update for configure changes.  Remove
8601         more unneeded include paths.
8602
8603 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
8604
8605         From wiz at danbala:
8606         * config/sparc/tm-sp64.h: Fix grammar and typos.
8607         Fix PR gdb/287.
8608
8609 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
8610
8611         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8612         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
8613         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8614         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8615         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8616         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8617         * s390-tdep.c: Ditto.
8618         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8619         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8620         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8621         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8622         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8623         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8624         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8625         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8626         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8627         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8628         Fix PR gdb/378.
8629
8630 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8631
8632         * lin-thread.c: Delete file.
8633         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8634         to gdb_proc_service.h.
8635         * configure: Re-generate.
8636
8637         * ocd.c (ocd_open): Do not try to open the "ocd" device.
8638         * serial.c (serial_open): Delete check for "ocd".
8639         Fix PR gdb/349.
8640
8641         * Makefile.in (linux-thread.o): Delete target.
8642         * linux-thread.c: Delete file.
8643
8644         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
8645         renamed SH files to be consistent.
8646
8647         * symtab.c (sort_search_symbols): Use xfree.
8648
8649 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8650
8651         * arm-linux-tdep.c (arm_linux_init_abi): Register
8652         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8653         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8654         definition with undef, since we don't want the sysvr4 definition.
8655         (SKIP_TRAMPOLINE_CODE): Likewise.
8656
8657 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8658
8659         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8660
8661         * configure.in: (AC_CHECK_FUNCS) Added test for
8662         canonicalize_file_name Regenerated.
8663         * config.in, configure: Regenerated.
8664         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8665         defined use canonicalize_file_name.
8666
8667 2002-02-23  Michael Chastain  <mec@shout.net>
8668
8669         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8670
8671 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8672
8673         * README: Remove references to cygnus.com.
8674         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8675         dot com'' form.  Remove references to cygnus.com and sourceware.
8676
8677 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8678
8679         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8680         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8681         1003.1-2001 no longer allows "head -1".
8682         * gdb/Makefile.in (version.c): Likewise.
8683         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8684         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8685         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
8686
8687 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8688
8689         * cli/cli-decode.c (cmd_cfunc_eq): New function.
8690         * command.h (cmd_cfunc_eq): Declare.
8691         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8692
8693         * cli/cli-cmds.h (is_complete_command): Change parameter to a
8694         ``struct cmd_list_element *''.
8695         * cli/cli-cmds.c (is_complete_command): Update.  Use
8696         cmd_cfunc_eq.
8697         * top.c (execute_command): Pass the command to
8698         is_complete_command.
8699         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8700
8701 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
8702
8703         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8704         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8705         architecture defines.
8706         * s390-tdep.c (s390_gdbarch_init): Likewise.
8707
8708 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8709
8710         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8711         (arm_linux_push_arguments): Likewise.
8712         (arm_linux_init_abi): Register them.  Also register linux-specific
8713         call_dummy_words.
8714         (find_minsym_and_objfile): Use strcmp, not STREQ.
8715         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8716         (arm_linux_call_dummy_words): Delete declaration.
8717         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8718         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8719         declarations.
8720         (LOWEST_PC): Delete.
8721
8722 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8723
8724         * maint.c (print_section_info): Do not prepend `0x' to filepos
8725         output, it will be handled by local_hex_string_custom.
8726
8727 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
8728
8729         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8730         (store_newfpe_double, store_newfpe_extended, store_fpregister)
8731         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8732
8733 2002-02-22  Jim Blandy  <jimb@redhat.com>
8734
8735         Indicate that the bcache functions don't change the strings
8736         they're passed.
8737         * bcache.h (bcache, hash): Add `const' keywords to declarations.
8738         * bcache.c (bcache, hash): Add `const' keywords to definitions.
8739
8740 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
8741
8742         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8743
8744 2002-02-21  Christopher Faylor  <cgf@redhat.com>
8745
8746         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8747         find the complete path to a loaded DLL.
8748
8749 2002-02-21  Fred Fish  <fnf@redhat.com>
8750
8751         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8752         that marks the end of the range of a function, enter a line number
8753         entry that has a line number of zero and a PC offset that matches
8754         the end of the function.  This starts a range of PC's for which no
8755         line number information is known.
8756         * symtab.c (find_pc_sect_line): If our best fit is in a range of
8757         PC's for which no line number info is found (line number is zero)
8758         then we didn't find any valid line information.
8759         * symtab.h: Document use of zero line number entry.
8760
8761 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
8762
8763         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8764         (have_ptrace_getvrregs): Define for run time checks.
8765         (gdb_vrregset_t): New type for Altivec register handling.
8766         (fetch_register, store_register): Fetch/store altivec register
8767         when needed.
8768         (fetch_altivec_register, store_altivec_register): New functions.
8769         (supply_vrregset, fill_vrregset): New functions.
8770         (fetch_altivec_registers, store_altivec_registers): New functions.
8771         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8772         registers as well.
8773
8774 2002-02-21  Jiri Smid  <smid@suse.cz>
8775
8776         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8777
8778 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
8779
8780         * Makefile.in (armnbsd-nat.o): Update dependencies.
8781         * armnbsd-nat.c (supply_gregset): New function.  Common code to
8782         supply the integer register set.
8783         (supply_fparegset): New function.  Similar for FPA registers.
8784         (fetch_regs, fetch_fp_regs): Use them.
8785         (fetch_core_registers): Likewise.
8786         (fetch_elfcore_registers): New function.
8787         (arm_netbsd_elfcore_fns): New core-file type specification.
8788         (_initialize_arm_netbsd_nat): Register it.
8789
8790 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
8791
8792         * armnbsd-nat.c: Include gdbcore.h.
8793         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8794         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8795         'void' to declaration, to shut up ARI.
8796         (fetch_core_registers): Make static.  Rewrite using supply_register.
8797         (arm_netbsd_core_fns): New core-file type specification.
8798         (_initialize_arm_netbsd_nat): New function.
8799
8800 2002-02-21  Christopher Faylor  <cgf@redhat.com>
8801
8802         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8803         value.
8804
8805 2002-02-20  Christopher Faylor  <cgf@redhat.com>
8806
8807         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8808         fails.
8809
8810 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8811
8812         * jv-exp.y (parse_number): Change type of implicit longs
8813         to builtin_type_uint64.
8814
8815 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8816
8817         * gdbserver/linux-low.c (mywait): Change argument to waitpid
8818         to be an integer instead of a `union wait'.
8819
8820 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8821
8822         * mips-linux-nat.c: Call the operating system GNU/Linux.
8823         * mips-linux-tdep.c: Likewise.
8824         * mips-tdep.c: Likewise.
8825
8826 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8827
8828         Fix PR gdb/265.
8829         * jv-exp.y (parse_number): Handle 64-bit integers.
8830
8831 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8832
8833         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
8834         AC_STDC_HEADERS to AC_HEADER_STDC.
8835         * gdbserver/configure: Regenerated.
8836
8837 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
8838
8839         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8840         is defined.
8841         * sparc-tdep.c (get_longjmp_target): Likewise.
8842
8843 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
8844
8845         * News: Add news about ARM and Multi-arch.  Mention the new target
8846         arm*-*-netbsd*.
8847
8848 2002-02-19  Jim Blandy  <jimb@redhat.com>
8849
8850         * stabsread.c (error_type_complaint): Improve error message.
8851
8852 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
8853
8854         * gdbserver/README: Update documentation.
8855         * gdbserver/configure.in: Update configury to match documentation.
8856         * gdbserver/Makefile.in: Likewise.
8857         * gdbserver/configure: Regenerated.
8858         * gdbserver/aclocal.m4: New file, generated by aclocal.
8859         * gdbserver/config.in: New file, generated by autoheader.
8860
8861 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8862
8863         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8864         armnbsd-nat.c.
8865
8866 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8867
8868         * arm-tdep.h (enum arm_float_model): New enum.
8869         (struct gdbarch_tdep): Add fp_model.
8870         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
8871         up floating-point conversions until we know the floating-point model
8872         in use by the inferior.  Don't complain about being unable to
8873         determine the ABI of the inferior when we don't have one.
8874         (arm_extract_return_value): Support different floating-point models.
8875         (arm_store_return_value): Likewise.
8876         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8877         ARM_FLOAT_SOFT.
8878         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8879
8880 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8881
8882         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8883         of ``current_gdbarch''.
8884
8885 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8886
8887         * armnbsd-nat.c : ANSIfy all function declarations.
8888         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8889         (fetch_inferior_registers): Re-implement in terms of above.
8890         (store_register, store_regs, store_fp_register, store_fp_regs): New.
8891         (store_inferior_registers): Re-implement in terms of above.
8892
8893 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8894
8895         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8896         kernel.
8897         * arm-linux-tdep.c: Likewise.
8898         * config/arm/tm-linux.h: Likewise.
8899
8900 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8901
8902         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8903         * config/arm/nbsd.mt (TM_FILE): Delete.
8904         * config/arm/tm-nbsd.h: Delete.
8905
8906 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8907
8908         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8909         Initialize CALL_DUMMY_LENGTH.
8910
8911 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8912
8913         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8914         function.
8915         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8916         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8917         defines one thing and that is incorrect for this port.
8918         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8919
8920 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8921
8922         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8923
8924 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8925
8926         * win32-nat.c (display_selector): New function. Displays information
8927         about the information returned by GetThreadSelectorEntry API function.
8928         (display_selectors): New function. Displays the infomation of
8929         the selector given as argument, or of CS, DS ans FS selectors
8930         if no argument is given.
8931         ( _initialize_inftarg): Add "w32" as info prefix command.
8932         Add "info w32 selector" as command calling display_selectors.
8933
8934 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8935
8936         * i386-tdep.c (get_longjmp_target): Fix compilation failure
8937         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8938         if not defined.
8939
8940 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8941
8942         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8943
8944 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8945
8946         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8947         (arm_fix_call_dummy): Call it.
8948         (arm_call_dummy_breakpoint_offset): Delete.
8949         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8950         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8951
8952 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
8953
8954         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8955         Default to func_frame_chain_valid.
8956         * gdbarch.h, gdbarch.c: Re-generate.
8957         * frame.h (FRAME_CHAIN_VALID): Delete definition.
8958
8959 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
8960
8961         * ppc-linux-nat.c: Update copyright.
8962         (fetch_register, store_register): Add tid parameter, don't compute
8963         tid here.
8964         (fetch_ppc_registers, store_ppc_registers): Add tid
8965         parameter. Pass it along to callees.
8966         (fetch_inferior_registers, store_inferior_registers): Compute tid
8967         here, and pass it to calleed functions.
8968         (fill_gregset, supply_fpregset): Clean up formatting.
8969
8970 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8971
8972         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8973         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8974
8975 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8976
8977         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8978         * gdbarch.c gdbarch.h: Regenerate.
8979         * breakpoint.c (create_longjmp_breakpoint): Always compile this
8980         function.
8981         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8982         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8983         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8984
8985         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8986         * arm-tdep.c (arm_get_longjmp_target): New function.
8987         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
8988         this to a positive value register arm_get_longjmp_target as the
8989         longjmp handler.
8990         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8991         (arm_linux_init_abi): Set up longjmp description in tdep.
8992         * armnbsd-nat.c (get_longjmp_target): Delete.
8993         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8994         description in tdep.
8995         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8996         (get_longjmp_target): Delete declaration.
8997         (GET_LONGJMP_TARGET): Delete.
8998         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8999         (GET_LONGJMP_TARGET): Delete.
9000
9001 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
9002
9003         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
9004         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9005         of ``current_gdbarch''.
9006
9007 2002-02-17  Tom Tromey  <tromey@redhat.com>
9008
9009         * cli/cli-cmds.c (compare_strings): New function.
9010         (complete_command): Only print each unique item once.
9011         * completer.h (complete_line): Declare.
9012         * completer.c (complete_line): New function.
9013         (line_completion_function): Use it.
9014
9015 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
9016
9017         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9018         * gdbarch.h, gdbarch.c: Re-generate.
9019
9020 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
9021
9022         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9023
9024 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
9025
9026         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9027         * valops.c (value_arg_coerce): Don't take the address of a reference
9028         to convert an argument to a reference.
9029
9030 2002-02-15  Christopher Faylor  <cgf@redhat.com>
9031
9032         * win32-nat.c (get_image_name): New function.
9033         (handle_load_dll): Use get_image_name function.
9034         (get_child_debug_event): Avoid registering debug events until possibly
9035         execed process is started.
9036         (child_create_inferior): Allow invocation via shell so that command
9037         line redirection, etc.  works ok.
9038         (_initialize_inftarg): Add new command: "set shell" to control whether
9039         a shell is used to start a process.
9040
9041 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
9042
9043         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9044         instead of find_register_by_number.
9045         (cannot_store_register): Likewise.
9046
9047 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
9048
9049         * dwarf2read.c: Replace fprintf (stderr, ...) by
9050         fprintf_unfiltered (gdb_stderr, ...).
9051
9052 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
9053
9054         * gdbserver/gdbserver.1: Document --attach.
9055
9056 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
9057
9058         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9059         descriptions.
9060         * arm-tdep.c (arm_default_arm_le_breakpoint)
9061         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9062         (arm_default_thumb_be_breakpoint): New.  Initialize them from
9063         traditional breakpoint defines.
9064         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9065         (arm_gdbarch_init): Initialize new breakpoint variables.
9066         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9067         (arm_linux_init_abi): Initialize linux-specific breakpoint.
9068         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9069         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9070         code out to ...
9071         (arm_netbsd_init_abi_common): ... here; new function.
9072         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9073         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9074         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9075         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9076
9077 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
9078
9079         * arm-tdep.h (enum arm_abi): New enum.
9080         (struct gdbarch_tdep): New structure.
9081         (LOWEST_PC): Provide a default.
9082         (arm_gdbarch_register_os_abi): Declare new function.
9083         * arm-tdep.c (arm_abi_names): New array.
9084         (process_note_abi_tag_sections): New function.
9085         (get_elfosabi): New function.
9086         (arm_gdbarch_register_os_abi): New function.
9087         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
9088         support for that ABI has been built in, then call the appropriate
9089         configuration routine.  Use gdbarch_num_regs() to get the number
9090         of registers.
9091         (arm_dump_tdep): New function.
9092         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9093         place-holder functions.
9094         (_initialize_arm_tdep): Register them.
9095         * config/arm/tm-arm.h (LOWEST_PC): Delete.
9096
9097         * armnbsd-tdep.c: New file.
9098         * Makefile.in (armnbsd-tdep.o): Add dependencies.
9099         * config/arm/nbsd.mt (TDEPFILES): Add it.
9100         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9101
9102         * armnbsd-nat.c: Include regcache.h.
9103         * Makefile.in (armnbsd-nat.o): Update dependency list.
9104
9105         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9106
9107 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
9108
9109         * gdbserver/Makefile.in: Fix typos in target rules.
9110
9111 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
9112
9113         Fix part of PR gdb/267.
9114         * linespec.c (find_methods): Handle constructors specially for now.
9115
9116 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
9117
9118         * arm-tdep.c (arm_push_arguments): Eliminate special float type
9119         handling.
9120         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9121         standard_coerce_float_to_double().
9122
9123 2002-02-14  Christopher Faylor  <cgf@redhat.com>
9124
9125         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9126         GDBINIT_FILENAME.
9127
9128 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
9129
9130         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9131         find_variant_by_name, because it confuses the multiarch
9132         framework. Return NULL if there isn't an architecture with the
9133         user supplied name, instead of forcing a different one without
9134         recording the change with the multiarch machinery.
9135         (find_variant_by_name): Delete.
9136
9137 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9138
9139         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9140         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9141
9142 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
9143
9144         * stack.c (print_frame_info_base): When calling
9145         print_frame_info_listing_hook, set current_source_symtab.
9146
9147 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
9148
9149         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9150         and remove unused $(INCLUDE_DIR).
9151         Add regcache.c to OBS.
9152         Add generated register protocol files to clean target.
9153         Update dependencies for new objects, obsolete old target code.
9154
9155         * gdbserver/linux-low.c: Remove all platform-specific code to
9156         new files.  Remove various dead code.  Update to use regcache
9157         functionality.
9158         * gdbserver/remote-utils.c (fromhex): Add return statement
9159         to quiet warning.
9160         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9161         constant.
9162         (input_interrupt): Add integer parameter to match prototype
9163         of a signal handler.
9164         (outreg): Use register_data ().
9165         (prepare_resume_reply): Use gdbserver_expedite_regs.
9166         * gdbserver/server.c (main): Dynamically allocate own_buf because
9167         PBUFSIZ is no longer constant.  Use registers_to_string () and
9168         registers_from_string ().
9169         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
9170         for error (), fatal (), and warning ().  Update definition of
9171         PBUFSIZ to use regcache functionality.  Add include guard.
9172         * gdbserver/utils.c (fatal): Add missing ``const''.
9173         (warning): New function.
9174
9175         * regformats/regdat.sh: Include "regcache.h" in generated files.
9176         Provide init_registers () function.
9177         * regformats/regdef.h: Add prototype for set_register_cache ().
9178         Add include guard.
9179
9180         * gdbserver/linux-arm-low.c: New file.
9181         * gdbserver/linux-i386-low.c: New file.
9182         * gdbserver/linux-ia64-low.c: New file.
9183         * gdbserver/linux-m68k-low.c: New file.
9184         * gdbserver/linux-mips-low.c: New file.
9185         * gdbserver/linux-ppc-low.c: New file.
9186         * gdbserver/linux-sh-low.c: New file.
9187
9188         * gdbserver/regcache.c: New file.
9189         * gdbserver/regcache.h: New file.
9190
9191         * gdbserver/low-linux.c: Removed obsolete file.
9192
9193 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
9194
9195         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9196         * config/i386/linux.mt: Likewise.
9197         * config/ia64/linux.mt: Likewise.
9198         * config/m68k/linux.mh: Likewise.
9199         * config/powerpc/linux.mh: Likewise.
9200         * config/mips/linux.mt: Likewise.
9201
9202         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9203
9204         * config/i386/i386lynx.mh: Mark gdbserver variables
9205         as (currently) obsolete for this target.
9206         * config/i386/nbsd.mt: Likewise.
9207         * config/i386/nbsdelf.mt: Likewise.
9208         * config/m32r/m32r.mt: Likewise.
9209         * config/m68k/m68klynx.mh: Likewise.
9210         * config/m68k/nbsd.mt: Likewise.
9211         * config/m68k/sun3os4.mh: Likewise.
9212         * config/mips/vr5000.mt: Likewise.
9213         * config/ns32k/nbsd.mt: Likewise.
9214         * config/pa/hppabsd.mh: Likewise.
9215         * config/pa/hppaosf.mh: Likewise.
9216         * config/powerpc/nbsd.mt: Likewise.
9217         * config/rs6000/rs6000lynx.mh: Likewise.
9218         * config/s390/s390.mt: Likewise.
9219         * config/s390/s390x.mt: Likewise.
9220         * config/sparc/sparclynx.mh: Likewise.
9221         * config/sparc/sun4os4.mh: Likewise.
9222         * config/i386/x86-64linux.mt: Likewise.
9223         * config/sparc/linux.mh: Likewise.
9224
9225 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
9226
9227         * configure.tgt: Configure gdbserver only for known working
9228         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
9229         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
9230         SUBDIRS if it is configured.  Update comment for ${nativefile}.
9231         * configure: Regenerated.
9232
9233 2002-02-13  Michael Snyder  <msnyder@redhat.com>
9234
9235         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9236
9237         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9238         (default_gcore_mach): Just return 0, work around a problem in bfd.
9239         (default_gcore_target): OK to return NULL if exec_bfd is null.
9240         (make_mem_sec): Use a cast, avoid a warning.
9241
9242         * procfs.c (find_memory_regions_callback): Use a cast instead of
9243         calling host_pointer_to_address (which complains if
9244         sizeof (host pointer) != sizeof (target pointer)).
9245         (procfs_make_note_section): Avoid overflow in psargs string.
9246
9247         * procfs.c (procfs_make_note_section): Make the default
9248         implementation return an error.
9249
9250 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
9251
9252         * procfs.c (procfs_make_note_section): Provide a default definition
9253         (for alpha-dec-osf4.0f). Fix typos.
9254
9255 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
9256
9257         * linux-proc.c: Add include of regcache.h.
9258         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9259
9260 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
9261
9262         From 2002-01-18 Greg McGary <greg@mcgary.org>:
9263         * memattr.c (create_mem_region): Disallow useless empty region.
9264         Regions are half-open intervals, so allow [A..B) [B..C) as
9265         non-overlapping.
9266
9267 2002-02-13  Michael Chastain <mec@shout.net>
9268
9269         * defs.h: Kill CONST_PTR.
9270         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9271         * c-lang.c (c_builtin_types): Likewise.
9272         * ch-lang.c (ch_builtin_types): Likewise.
9273         * f-lang.c (f_builtin_types): Likewise.
9274         * language.c (unknown_builtin_types): Likewise.
9275         * m2-lang.c (m2_builtin_types): Likewise.
9276         * p-lang.c (pascal_builtin_types): Likewise.
9277         * scm-lang.c (c_builtin_types): Likewise.
9278
9279 2002-02-13  Keith Seitz  <keiths@redhat.com>
9280
9281         * arm-tdep.h (arm_get_next_pc): Add declaration.
9282
9283 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
9284
9285         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
9286         with other related struct-returning functions.
9287         (arm_extract_struct_value_address): New function.
9288         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
9289         initialize float_format, double_format and long_double_format as
9290         appropriate to the endianness of the target.
9291         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9292         (arm_use_struct_convention): Delete declaration.
9293         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9294
9295 2002-02-13  Keith Seitz  <keiths@redhat.com>
9296
9297         * defs.h (core_addr_to_string_nz): New function.
9298
9299 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
9300
9301         Apply missing bits of 2002-01-15 patch.
9302         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9303         (fill_fpregset): Use i387_fill_fsave.
9304
9305 2002-02-12  Keith Seitz  <keiths@redhat.com>
9306
9307         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9308         (core_addr_to_string_nz): New function.
9309
9310 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
9311
9312         * arm-linux-nat.c: Really include arm-tdep.h.
9313         * config/arm/tm-linux.h (struct type, struct value): Declare.
9314
9315 2002-02-11  Michael Snyder  <msnyder@redhat.com>
9316
9317         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9318         (gcore section): Ifdef for Solaris and Unixware only.
9319         (procfs_do_thread_registers): Unixware needs one lwpstatus
9320         per thread (not one prstatus or pstatus).
9321         (procfs_make_note_section): Iterate only over kernel threads (lwps),
9322         not over all gdb threads.  For unixware, call elfcore_write_pstatus
9323         once before iterating over threads.
9324
9325 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
9326
9327         * arm-tdep.h: New file.
9328         * arm-tdep.c: Include arm-tdep.h.
9329         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9330         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9331         (arm_print_float_info, arm_register_type, convert_to_extended)
9332         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9333         (arm_extract_return_value, arm_register_name): Make static.
9334         (arm_software_single_step): Similarly.  Fix types in declaration.
9335         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9336         (arm_store_return_value, arm_store_struct_return): New functions.
9337         (arm_gdbarch_init): Register the above functions.  Also register
9338         call_dummy_start_offset, sizeof_call_dummy_words,
9339         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9340         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9341         max_register_virtual_size, register_size.  Set up
9342         prologue_cache.saved_regs here, rather than ...
9343         (_initialize_arm_tdep): ... here.
9344         * config/arm/tm-arm.h (struct type, struct value): Delete forward
9345         declarations.
9346         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9347         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9348         (arm_print_float_info, arm_register_type, convert_to_extended)
9349         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9350         (arm_extract_return_value, arm_register_name): Delete declarations.
9351         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9352         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9353         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9354         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9355         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9356         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9357         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9358         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9359         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9360         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9361         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9362         (arm_get_next_pc): No-longer static -- these are needed by the RDI
9363         interface.
9364         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9365         * remote-rdi.c remote-rdp.c: Likewise.
9366         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9367         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9368         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9369         definition.
9370
9371         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9372         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9373         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9374         from non-ARM_ prefixed definitions.
9375         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9376         all uses of above.
9377         * remote-rdi.c remote-rdp.c: Likewise.
9378         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9379
9380 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
9381
9382         * arm-tdep.c (arm_frameless_function_invocation)
9383         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9384         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9385         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9386         (arm_pop_frame, arm_get_next_pc): Make static.
9387         (arm_gdbarch_init): Register above in gdbarch structure.
9388         (arm_read_fp): Renamed from arm_target_read_fp.
9389         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9390         * config/arm/tm-arm.h (arm_frameless_function_invocation)
9391         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9392         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9393         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9394         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9395         (arm_pc_is_thumb_dummy): Delete declarations.
9396         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9397         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9398         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9399         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9400
9401 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
9402
9403         * symtab.c (compare_search_syms): New function.
9404         (sort_search_symbols): New function.
9405         (search_symbols): Sort symbols after searching rather than
9406         before.
9407
9408 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9409
9410         * NEWS: Linux -> GNU/Linux.
9411
9412 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9413
9414         * gdbarch.sh: For for level one methods, disallow a definition
9415         when partially multi-arched.  Add comments explaining rationale.
9416         * gdbarch.h: Re-generate.
9417
9418 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9419
9420         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9421         multi-arch partial.
9422
9423 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9424
9425         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
9426         field.  Use diff -u.
9427         * gdbarch.c: Re-generate.
9428
9429 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9430
9431         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9432         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9433         partial.
9434
9435 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9436
9437         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9438         multi-arch partial.
9439         (PUSH_ARGUMENTS): Switch to using predefault.
9440         * gdbarch.c: Regenerate.
9441
9442 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
9443
9444         * valops.c (PUSH_ARGUMENTS): Delete definition.
9445         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9446         partial.  Default to default_push_arguments.
9447         * gdbarch.h, gdbarch.c: Regenerate.
9448
9449 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9450
9451         * defs.h (throw_exception): Rename return_to_top_level.  Update
9452         comments.
9453         * utils.c (error_stream, internal_verror, quit): Ditto.
9454         * top.c (throw_exception, catcher): Ditto.
9455         * sparclet-rom.c (sparclet_load): Ditto.
9456         * remote.c (interrupt_query, minitelnet): Ditto.
9457         * remote-sds.c (interrupt_query): Ditto.
9458         * remote-mips.c (mips_error, mips_kill): Ditto.
9459         * ocd.c (interrupt_query): Ditto.
9460         * monitor.c (monitor_interrupt_query): Ditto.
9461         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9462         * target.h: Update comment.
9463
9464         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9465
9466 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9467
9468         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9469         default_double_format.
9470         * gdbarch.h, gdbarch.c: Re-generate.
9471         * findvar.c (floatformat_unknown): Delete variable definition.
9472         * doublest.h (floatformat_unknown): Delete variable declaration.
9473
9474 2002-02-09  Jim Blandy  <jimb@redhat.com>
9475
9476         * stabsread.c (read_type): Add code to parse Sun's syntax for
9477         prototyped function types.
9478
9479 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
9480
9481         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9482         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9483
9484 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9485
9486         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9487         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
9488         now _initialize_xcoffsolib gets called again and overrides the
9489         commands from solib.c in a native configuration.
9490
9491 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
9492
9493         * doublest.c (store_typed_floating): Don't try to return a value.
9494         Fixes PR gdb/290.
9495
9496 2002-02-08  Jim Blandy  <jimb@redhat.com>
9497
9498         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9499         is prototyped and has no arguments, print its argument list as
9500         `(void)'.
9501
9502 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9503
9504         * MAINTAINERS (write-after-approval): Add myself.
9505         (paper-trail): I've escaped!
9506
9507 2002-02-08  Christopher Faylor  <cgf@redhat.com>
9508
9509         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9510         changes.
9511         (_initialize_check_for_gdb_ini): Ditto.
9512
9513 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
9514
9515         * win32-nat.c (cygwin_pid_to_str): Fix typo.
9516         xaprintf -> xasprintf.
9517
9518 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
9519
9520         * win32-nat.c: Remove use of printf and sprintf functions.
9521
9522 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
9523
9524         * arm-tdep.c (arm_frame_chain_valid): Make static.
9525         (arm_push_arguments): Likewise.
9526         (arm_gdbarch_init): New function.
9527         (_initialize_arm_tdep): Call it.
9528         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9529         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9530         (FRAME_CHAIN_VALID): Delete.
9531         (arm_frame_chain_valid): Delete declaration.
9532         (PUSH_ARGUMENTS): Delete.
9533         (arm_push_arguments): Delete declaration.
9534         (CALL_DUMMY_P): Delete.
9535
9536 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
9537             Corinna Vinschen  <vinschen@redhat.com>
9538
9539         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9540         on builtin float types.
9541
9542 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
9543
9544         * utils.c: Include <curses.h> before "bfd.h".
9545         * tui/tui-hooks.c: Likewise.
9546         * tui/tui.c: Likewise.
9547         * tui/tuiCommand.c: Likewise.
9548         * tui/tuiData.c: Likewise.
9549         * tui/tuiDataWin.c: Likewise.
9550         * tui/tuiDisassem.c: Likewise.
9551         * tui/tuiGeneralWin.c: Likewise.
9552         * tui/tuiIO.c: Likewise.
9553         * tui/tuiLayout.c: Likewise.
9554         * tui/tuiRegs.c: Likewise.
9555         * tui/tuiSource.c: Likewise.
9556         * tui/tuiSourceWin.c: Likewise.
9557         * tui/tuiStack.c: Likewise.
9558         * tui/tuiWin.c: Likewise.
9559
9560 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
9561
9562         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9563         to include space for pseudoregs as well. Update loops accordingly.
9564         (sh_fp_frame_init_saved_regs): Ditto.
9565         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9566
9567 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
9568
9569         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9570         Add Richard Earnshaw to Arm maintainers.
9571
9572 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
9573
9574         * defs.h (warning_begin): Delete declaration.
9575
9576         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9577         Delete macro.
9578
9579 2002-02-07  Michael Snyder  <msnyder@redhat.com>
9580
9581         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9582         Logic bug, remove misplaced else.
9583
9584 2002-02-07  Klee Dienes  <klee@apple.com>
9585
9586         * fork-inferior.c (fork_inferior): Add '!' to the list of
9587         characters that need to be quoted when building a string for the
9588         shell.  Quote '!' specifically with a backslash, since CSH chokes
9589         when trying to evaluate "str!str".
9590
9591 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
9592
9593         * rdi-share/host.h: Only provide a typedef for bool if it is not
9594         defined.
9595
9596 2002-02-04  Michael Snyder  <msnyder@redhat.com>
9597
9598         * breakpoint.h (enum bptype): Add new overlay event bp type.
9599         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9600
9601         * breakpoint.c (create_internal_breakpoint): New function.
9602         (internal_breakpoint_number): Moved into create_internal_breakpoint.
9603         (create_longjmp_breakpoint): Use create_internal_breakpoint.
9604         (create_thread_event_breakpoint): Ditto.
9605         (create_solib_event_breakpoint): Ditto.
9606         (create_overlay_event_breakpoint): New function.
9607         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9608         (update_breakpoints_after_exec): Delete and re-initialize
9609         overlay event breakpoints after an exec.  Add FIXME comment
9610         about longjmp breakpoint.
9611         (print_it_typical): Ignore overlay event breakpoints.
9612         (print_one_breakpoint): Ditto.
9613         (mention): Ditto.
9614         (bpstat_what): Do not stop for overlay event breakpoints.
9615         (delete_breakpoint): Don't delete overlay event breakpoints.
9616         (breakpoint_re_set_one): Delete the overlay event breakpoint.
9617         (breakpoint_re_set): Re-create overlay event breakpoint.
9618
9619         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9620         (overlay_manual_command): Disable overlay breakpoints.
9621         (overlay_off_command): Disable overlay breakpoints.
9622
9623 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
9624
9625         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9626         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9627         to here from config/tm-arm.h.
9628         (coff_sym_is_thumb): Make static.
9629         (arm_elf_make_msymbol_special): New function.
9630         (arm_coff_make_msymbol_special): New function.
9631         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9632         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9633         (coff_sym_is_thumb): Delete declaration.
9634         (arm_elf_make_msymbol_special): Declare.
9635         (arm_coff_make_msymbol_special): Declare.
9636         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9637         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9638
9639 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
9640
9641         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9642
9643 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
9644
9645         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9646         * gdbarch.c gdbarch.h: Regenerate.
9647         * arch-utils.c (default_print_float_info): New function.
9648         * arch-utils.h (default_print_float_info): Prototype it.
9649         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9650         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9651         (PRINT_FLOAT_INFO): Document it.
9652
9653         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9654         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9655         (PRINT_FLOAT_INFO): Define.
9656
9657 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
9658
9659         * win32-nat.c (_initialize_check_for_gdb_ini):
9660         Add typecast to sprintf argument to suppress a warning.
9661
9662 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
9663
9664         * win32-nat.c (last_sig): Changed type of variable to target_signal,
9665         to allow easier handling of pass state.
9666         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9667         that gives exception name and address.
9668         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9669         and set last_sig value to ourstatus->value.sig. Some missing
9670         exceptions added.
9671         (child_continue): Correctly report continue_status.
9672         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9673         TARGET_SIGNAL_0 (new default value).
9674         (child_resume): consider sig argument passed to decide if
9675         the exception should be passed to debuggee or not.
9676
9677 2002-02-05  Michael Snyder  <msnyder@redhat.com>
9678
9679         * regcache.c (fetch_register): Call target_fetch_register
9680         only if we don't call FETCH_PSEUDO_REGISTER.
9681         (store_register): Call target_store_register only if we
9682         don't call STORE_PSEUDO_REGISTER.
9683
9684 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
9685
9686         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9687         ELF_MAKE_MSYMBOL_SPECIAL.
9688         * gdbarch.c, gdbarch.h: Regenerate.
9689         * arch-utils.c (default_make_msymbol_special): New function.
9690         * arch-utils.h (default_make_msymbol_special): Export.
9691         * elfread.c (elf_symtab_read): Compile use of
9692         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9693         multiarched.
9694         * coffread.c (coff_symtab_read): Ditto, for
9695         COFF_MAKE_MSYMBOL_SPECIAL.
9696
9697 2002-02-05  Jim Blandy  <jimb@redhat.com>
9698
9699         * solib-svr4.c (svr4_truncate_ptr): New function.
9700         (svr4_relocate_section_addresses): Do the address arithmetic with
9701         the appropriate truncation for target addresses, even when
9702         CORE_ADDR is larger than a target address.
9703
9704 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9705
9706         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9707         to (int *).
9708
9709 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9710
9711         * gdbserver/linux-low.c (kill_inferior): Remove commented out
9712         code.
9713
9714 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9715
9716         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9717
9718 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9719
9720         * gdbserver/linux-low.c: Remove unused include files.
9721
9722 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9723
9724         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9725         (read_inferior_memory): Use it.
9726         (write_inferior_memory): Likewise.
9727
9728 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9729
9730         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9731         grubbing through sys_errlist.
9732
9733 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
9734
9735         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9736
9737 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
9738         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9739
9740 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
9741
9742         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9743         (do_sfunc, set_cmd_sfunc): New functions.
9744
9745         * command.h (struct cmd_list_element): Add field func.
9746         * cli/cli-decode.h (struct cmd_list_element): Ditto.
9747         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9748         * cli/cli-decode.h: Ditto.
9749
9750         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9751         (help_all, help_cmd_list): Ditto.
9752         (find_cmd, complete_on_cmdlist): Ditto.
9753         * top.c (execute_command): Ditto.
9754
9755         * cli/cli-setshow.c (do_setshow_command): Call func instead of
9756         function.sfunc.
9757
9758         * infcmd.c (notice_args_read): Fix function signature.
9759
9760         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9761         * cli/cli-decode.c (add_set_cmd): Ditto.
9762         * utils.c (initialize_utils): Ditto.
9763         * maint.c (_initialize_maint_cmds): Ditto.
9764         * infrun.c (_initialize_infrun): Ditto.
9765         * demangle.c (_initialize_demangler): Ditto.
9766         * remote.c (add_packet_config_cmd): Ditto.
9767         * mips-tdep.c (_initialize_mips_tdep): Ditto.
9768         * cris-tdep.c (_initialize_cris_tdep): Ditto.
9769         * proc-api.c (_initialize_proc_api): Ditto.
9770         * kod.c (_initialize_kod): Ditto.
9771         * valprint.c (_initialize_valprint): Ditto.
9772         * top.c (init_main): Ditto.
9773         * infcmd.c (_initialize_infcmd): Ditto.
9774         * corefile.c (_initialize_core): Ditto.
9775         * arm-tdep.c (_initialize_arm_tdep): Ditto.
9776         * arch-utils.c (initialize_current_architecture): Ditto.
9777         (_initialize_gdbarch_utils): Ditto.
9778         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9779
9780         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9781         * wince.c (_initialize_inftarg): Ditto.
9782         * symfile.c (_initialize_symfile): Ditto.
9783         * mips-tdep.c (_initialize_mips_tdep): Ditto.
9784         * language.c (_initialize_language): Ditto.
9785         * arc-tdep.c (_initialize_arc_tdep): Ditto.
9786
9787 2002-02-04  Michael Snyder  <msnyder@redhat.com>
9788
9789         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9790
9791 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9792
9793         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9794         Add rules for building the register data files.
9795
9796 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9797
9798         * regformats/regdat.sh: Add braces to the definition of
9799         expedite_regs_${arch}.
9800
9801 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
9802
9803         * regformats/regdef.h (struct reg): Add comment describing the
9804         requirements for offset and size fields.
9805
9806 2002-02-04  Andreas Schwab  <schwab@suse.de>
9807
9808         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9809         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9810
9811 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
9812
9813         * gdbarch.sh (copyright): Update years in generated header.
9814         (SMASH_TEXT_ADDRESS): Add rule.
9815         * gdbarch.h, gdbarch.c: Re-generate.
9816         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9817         * dbxread.c: Likewise.
9818         * dwarfread.c: Likewise.
9819         * elfread.c: Likewise.
9820         * somread.c: Likewise.
9821
9822         * arm-tdep.c (arm_smash_text_address): New function.
9823         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9824
9825 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
9826
9827         Add support for hardware watchpoints on win32 native.
9828         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9829         CONTEXT_DEBUG_REGISTERS.
9830         (dr variable): New variable. Static array containing a local copy
9831         of debug registers.
9832         (debug_registers_changed): New variable.  Reflects when debug registers
9833         are changed and need to be written to inferior.
9834         (debug_registers_used): New variable. Reflects when any debug register
9835         was set, used when new threads are created.
9836         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9837         i386-nat code.
9838         (thread_rec): Set dr array if id is the thread of current_event .
9839         (child_continue, child_resume): Change the debug registers for all
9840         threads if debug_registers_changed.
9841         (child_add_thread): Change the debug registers if debug_registers_used.
9842         * config/i386/cygwin.mh: Add use of i386-nat.o file.
9843         Link nm.h to new nm-cygwin.h file.
9844         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9845         of hardware registers.
9846
9847 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
9848
9849         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9850         Restore behavour broken by 2002-01-20 Andrew Cagney
9851         <ac131313@redhat.com> IEEE_FLOAT removal.
9852
9853 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9854
9855         * c-valprint.c (c_val_print): Pass a proper valaddr to
9856         cp_print_class_method.
9857         * valops.c (search_struct_method): If there is only one method
9858         and args is NULL, return that method.
9859
9860 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9861
9862         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9863         accessing tag_name directly.
9864
9865 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9866
9867         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9868         of accessing tag_name directly.
9869
9870 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9871
9872         PR gdb/280
9873         * gdbtypes.c (replace_type): New function.
9874         * gdbtypes.h (replace_type): Add prototype.
9875         * stabsread.c (read_type): Use replace_type.
9876
9877 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
9878
9879         * Makefile.in (memattr.o): Add missing dependencies rule.
9880
9881 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9882
9883         * breakpoint.c (break_at_finish_command): Really export.
9884         (break_at_finish_at_depth_command): Ditto.
9885         (tbreak_at_finish_command): Ditto.
9886         * hppa-tdep.c: Include completer.h.
9887         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9888         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9889
9890 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9891
9892         * utils.c (do_write): New function.
9893         (error_stream): Rewrite combining the code from error_begin and
9894         verror.
9895         (verror): Rewrite using error_stream.
9896         (error_begin): Delete function.
9897
9898 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9899
9900         * utils.c (error_begin): Make static.
9901         * defs.h (error_begin): Delete declaration.
9902
9903         * linespec.c (cplusplus_error): Replace cplusplus_hint.
9904         (decode_line_1): Use cplusplus_error instead of error_begin,
9905         cplusplus_hint and return_to_top_level.
9906         * coffread.c (coff_symfile_read): Use error instead of error_begin
9907         and return_to_top_level.
9908         * infrun.c (default_skip_permanent_breakpoint): Ditto.
9909
9910 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9911
9912         * language.h (type_error, range_error): Make string parameter
9913         constant.
9914         * language.c (warning_pre_print): Delete extern declaration.
9915         * dwarfread.c (warning_pre_print): Ditto.
9916         * language.c (type_error, range_error): Rewrite to use verror and
9917         vwarning instead of warning_begin.
9918
9919 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9920
9921         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9922         (set_ignore_count): Move misplaced comment back where it belongs.
9923
9924 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9925
9926         * command.h (NO_FUNCTION): Delete macro.
9927         * cli/cli-decode.h (NO_FUNCTION): Ditto.
9928         * top.c (execute_command): Replace NO_FUNCTION with NULL.
9929         * tracepoint.c (_initialize_tracepoint): Ditto.
9930         * cli/cli-decode.c (add_set_cmd): Ditto.
9931         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9932
9933 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9934
9935         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9936         Update ``this'' pointer when calling virtual functions.
9937
9938 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9939
9940         * breakpoint.c (create_temp_exception_breakpoint): Delete.
9941         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9942
9943 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9944
9945         * regformats/reg-arm.dat: New file.
9946         * regformats/reg-i386.dat: New file.
9947         * regformats/reg-ia64.dat: New file.
9948         * regformats/reg-m68k.dat: New file.
9949         * regformats/reg-mips.dat: New file.
9950         * regformats/reg-ppc.dat: New file.
9951         * regformats/reg-sh.dat: New file.
9952         * regformats/regdef.h: New file.
9953         * regformats/regdat.sh: New file.
9954
9955 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
9956
9957         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9958         (arm_frame_args_address, arm_frame_locals_address): New functions.
9959         (arm_frame_num_args): New function.
9960         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9961         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9962         (FRMA_NUM_ARGS): Call arm_frame_num_args.
9963
9964 2002-01-31  Michael Snyder  <msnyder@redhat.com>
9965
9966         * breakpoint.c (break_at_finish_command): Export.
9967         (break_at_finish_at_depth_command): Export.
9968         (tbreak_at_finish_command): Export.
9969         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9970         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9971         "tbreak" commands, which are HPPA specific.
9972
9973         * printcmd.c (disassemble_command): Remove an ancient
9974         artifact of an old merge.
9975
9976         * symfile.h (enum overlay_debugging_state):
9977         Define enum constant values for overlay mode.
9978         * symfile.c (overlay_debugging): Use enums instead of literals.
9979         (overlay_is_mapped, overlay_auto_command,
9980         overlay_manual_command): Ditto.
9981
9982         * breakpoint.c (insert_breakpoints, remove_breakpoint,
9983         breakpoint_here_p, breakpoint_inserted_here_p,
9984         breakpoint_thread_match, bpstat_stop_status,
9985         describe_other_breakpoints, check_duplicates, clear_command):
9986         Coding standard fixes.
9987
9988         * target.c (target_xfer_memory): Add spaces, coding standard.
9989         (do_xfer_memory): Add missing line to trust-readonly
9990         code: check bfd SEC_READONLY flag for section.
9991
9992 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
9993
9994         * PROBLEMS: Fix typo, 5.1->5.1.1.
9995
9996 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
9997
9998         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9999         data symbols, since we search based on textlow and texthigh.
10000         (find_pc_sect_symtab): Likewise.
10001
10002 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
10003
10004         * defs.h (vwarning): Declare.
10005         * utils.c (vwarning): New function.
10006         (warning): Call vwarning.
10007         (warning_begin): Delete function.
10008
10009         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10010         the warning message.
10011         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10012         warning_begin.
10013
10014 2002-01-30  Michael Snyder  <msnyder@redhat.com>
10015
10016         * NEWS: Mention "set trust-readonly-sections" command.
10017         Mention generate-core-file command.
10018
10019 2002-01-15  Michael Snyder  <msnyder@redhat.com>
10020
10021         * target.c: New command, "set trust-readonly-sections on".
10022         (do_xfer_memory): Honor the suggestion to trust readonly sections
10023         by reading them from the object file instead of from the target.
10024         (initialize_targets): Register command "set trust-readonly-sections".
10025
10026 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
10027
10028         * parse.c (target_map_name_to_register): Simplify, search regs and
10029         pseudo-regs using a single loop.
10030
10031 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
10032
10033         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10034
10035 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
10036
10037         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10038         * config/i386/i386v42mp.mh: Add i387-nat.o .
10039         * i386v4-nat.c: Include i387-nat.h.
10040         (supply_fpregset): Use i387_supply_fsave.
10041         (fill_fpregset): Use i387_fill_fsave.
10042
10043 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
10044
10045         * arm-tdep.c (arm_call_dummy_words): Define.
10046         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10047         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10048         (CALL_DUMMY_WORDS): Define.
10049         (arm_call_dummy_words): Declare.
10050         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10051         (arm_linux_call_dummy_words): Declare.
10052
10053 2002-01-30  Andreas Schwab  <schwab@suse.de>
10054
10055         * m68klinux-nat.c: Fix last change to use regcache_collect
10056         instead of referencing registers[] directly.
10057
10058 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
10059
10060         * parse.c (target_map_name_to_register): Delete code wrapped in
10061         #ifdef REGISTER_NAME_ALIAS_HOOK.
10062
10063 2002-01-28  Michael Snyder  <msnyder@redhat.com>
10064
10065         * regcache.c (legacy_read_register_gen): Need to be able to
10066         read pseudo-register as well as real register.
10067         (legacy_write_register_gen): Ditto.
10068
10069 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
10070
10071         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10072         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10073         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10074         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10075         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10076         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10077         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10078         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10079         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10080         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10081         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10082         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10083         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10084         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10085         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10086         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10087         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10088         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10089         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10090         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10091
10092 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
10093
10094         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10095         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10096         (initialize_current_architecture): Update target_byte_order using
10097         information from BFD.
10098         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10099         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10100
10101 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
10102
10103         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10104         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
10105
10106         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10107         #ifdef INVALID_FLOAT.
10108         * infcmd.c (do_registers_info): Ditto.
10109         * values.c (unpack_double): Ditto.  Add comment.
10110
10111         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10112         already commented out.
10113
10114 2002-01-26  Andreas Schwab  <schwab@suse.de>
10115
10116         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10117         * m68klinux-nat.c: Update ptrace interface for fetching/storing
10118         registers and add support for PTRACE_GETREGS.
10119
10120 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
10121
10122         GDB 5.1.1 released from 5.1 branch.
10123         * NEWS: Add 5.1.1 news.
10124         * README: Sync with 5.1 branch.
10125
10126 2002-01-23  Fred Fish  <fnf@redhat.com>
10127
10128         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10129         stabstring on initial malloc.  Reallocing will copy it for us,
10130         if necessary.
10131
10132 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
10133
10134         * Makefile.in (hpread_h): Delete.
10135         (HFILES_NO_SRCDIR): Remove hpread.h.
10136         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10137         (hpread.o): Update dependencies.
10138         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10139
10140         * hp-psymtab-read.c: Remove file.
10141         * hp-symtab-read.c: Remove file.
10142         * hpread.h: Remove file.
10143
10144         * hpread.c: Merge all contents of hp-psymtab-read.c,
10145         hp-symtab-read.c and hpread.h into this file, as it was prior to
10146         January 1999.
10147
10148         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10149         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10150         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10151         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10152
10153 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
10154
10155         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10156         fill_gregset): Call gdbarch_tdep() just once, assign result to
10157         variable and use that, instead of calling the function several
10158         times.
10159
10160 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10161
10162         * configure.host: Accept sparcv9 as alias for sparc64.
10163         * configure.tgt: Likewise.
10164
10165 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
10166
10167         * solib-aix5.c (build_so_list_from_mapfile)
10168         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10169         arguments is not reversed.
10170         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10171         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10172
10173 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
10174
10175         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10176         modified version of obsolete sh_fetch_pseudo_register.
10177         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10178         (sh4_register_read): New function.
10179         (sh_pseudo_register_write): New function. Renamed and modified
10180         version of obsolete sh_store_pseudo_register.
10181         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10182         (sh4_register_write): New function.
10183         (sh_gdbarch_init): Remove setting of gdbarch function
10184         fetch_pseudo_register and store_pseudo_register. Remove setting of
10185         register_convert_to_raw, register_convert_to_virtual,
10186         register_convertible.
10187         (sh_sh4_register_convertible): Delete. No longer needed. All is
10188         taken care by architecture specific functions
10189         register_read/register_write.
10190         (sh_sh4_register_convert_to_virtual): Make static.
10191         (sh_sh4_register_convert_to_raw): Ditto.
10192
10193 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
10194
10195         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10196         (floatformat_is_nan, floatformat_mantissa): Ditto.
10197
10198         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10199         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10200         builtin_type_ieee_double_little,
10201         builtin_type_ieee_double_littlebyte_bigword,
10202         builtin_type_m68881_ext, builtin_type_i960_ext,
10203         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10204         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10205         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10206         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10207
10208 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
10209
10210         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10211         parameter.  Set frameless flag if it exists and depended of
10212         whether the scanned function is frameless or not.
10213         (xstormy16_skip_prologue): If function is frameless, return
10214         result of xstormy16_scan_prologue().
10215         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10216         call.
10217
10218 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
10219
10220         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10221         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10222         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10223         sh_sh4_register_byte, sh_sh4_register_raw_size,
10224         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10225         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10226         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10227         sh_store_pseudo_register, sh_do_pseudo_register): Call
10228         gdbarch_tdep() just once, assign result to variable and use that,
10229         instead of calling the function several times.
10230
10231 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
10232
10233         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10234         macros instead of LAST_FPU_CTRL_REGNUM.
10235         (store_register): Likewise.
10236
10237 2002-01-21  Jim Blandy  <jimb@redhat.com>
10238
10239         * infcmd.c (run_command): Check that the `exec' target layer's BFD
10240         is up-to-date before running the program, not just when a program
10241         exits.
10242
10243 2002-01-21  Fred Fish  <fnf@redhat.com>
10244
10245         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10246         when we have found all instructions we are looking for.
10247
10248 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
10249
10250         * arm-tdep.c (arm_register_name): New function.
10251         (arm_registers_names): Make static.
10252         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10253         (arm_register_name): Declare.
10254         (REGISTER_NAME): Use it.
10255
10256 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
10257             Kevin Buettner  <kevinb@redhat.com>
10258
10259         Convert arm targets to new FRAME interface.
10260         * arm-tdep.c (struct frame_extra_info): Remove fsr.
10261         (arm_frame_find_save_regs): Delete.
10262         (arm_frame_init_saved_regs): New.
10263         (arm_init_extra_frame_info): Alloacte saved_regs as required.
10264         Allocate extra_info as required.  Convert all uses of fsr.regs
10265         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10266         to use extra_info.
10267         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10268         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10269         (check_prologue_cache, save_prologue_cache): Likewise.
10270         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10271         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10272         (FRAME_FIND_SAVED_REGS): Delete.
10273         (arm_frame_find_saved_regs): Delete prototype.
10274         (arm_frame_init_saved_regs): New prototype.
10275         (FRAME_INIT_SAVED_REGS): Define.
10276
10277 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10278
10279         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10280
10281 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10282
10283         From Jeff Law <law@redhat.com>:
10284         * infttrace.c: Include <sys/pstat.h>.
10285         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
10286         exec file if the ttrace equivalent fails.
10287
10288 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10289
10290         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10291         (closeLogFile): Ditto.
10292
10293 2002-01-20  Michael Chastain  <mec@shout.net>
10294
10295         * top.c (print_gdb_version): Bump copyright year to 2002.
10296
10297 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10298
10299         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10300         Zannoni and Eli Zaretskii.
10301
10302 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
10303
10304         * buildsym.c: Update copyright years.
10305         * c-typeprint.c: Likewise.
10306         * dwarf2read.c: Likewise.
10307         * f-typeprint.c: Likewise.
10308         * gdbtypes.c: Likewise.
10309         * gdbtypes.h: Likewise.
10310         * hp-symtab-read.c: Likewise.
10311         * hpread.c: Likewise.
10312         * mdebugread.c: Likewise.
10313         * p-typeprint.c: Likewise.
10314
10315 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10316
10317         * remote-sim.c (gdbsim_open): Simplify code testing the macro
10318         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
10319         byte-order selectable.
10320         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10321         * arch-utils.c: Ditto.
10322         (set_endian): Ditto.
10323         (set_endian_from_file): Ditto.
10324         * gdbserver/low-sim.c (create_inferior): Ditto.
10325         * gdbarch.sh: Ditto.
10326         * gdbarch.h: Re-generate.
10327         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10328         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10329         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10330         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10331         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10332         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10333         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10334         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10335         macro definition.
10336         * config/mips/tm-wince.h: Remove #undef of macro
10337         TARGET_BYTE_ORDER_SELECTABLE.
10338         * config/sh/tm-wince.h: Ditto.
10339
10340 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
10341
10342         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10343         member function fields.  Add accessor macro
10344         TYPE_FN_FIELD_ARTIFICIAL.
10345         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10346         * c-typeprint.c (c_type_print_base): Skip artificial member
10347         functions.
10348
10349 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
10350
10351         * f-typeprint.c: Delete unused function f_type_print_args.
10352         * p-typeprint.c: Delete unused function pascal_type_print_args.
10353
10354 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
10355
10356         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
10357         comment.  Add ``artificial'' to ``union field_location''.
10358
10359         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10360
10361         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10362         * mdebugread.c (parse_symbol): Likewise.
10363         * stabsread.c (define_symbol): Likewise.
10364         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10365         initializing TYPE_FIELD_BITPOS to n (obsolete).
10366         (hpread_doc_function_type): Likewise.
10367         * hpread.c (hpread_function_type): Likewise.
10368
10369 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10370
10371         * configure.in (host_makefile_frag): Only require a host makefile
10372         fragment when a native build.
10373         * configure: Re-generate.
10374
10375 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
10376
10377         * doublest.h (floatformat_from_type): Declare.
10378         * doublest.c (floatformat_from_type): New function.
10379         (convert_typed_floating): Use.
10380
10381         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10382         call to function floatformat_from_type.
10383
10384         * gdbarch.sh (IEEE_FLOAT): Delete.
10385         * gdbarch.h, gdbarch.c: Re-generate.
10386         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10387         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10388         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10389         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10390         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10391         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10392         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10393         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10394         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10395         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10396         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10397         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10398
10399         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10400         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10401         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10402         * sh-tdep.c (sh_gdbarch_init): Ditto.
10403         * mips-tdep.c (mips_gdbarch_init): Ditto.
10404         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10405         * cris-tdep.c (cris_gdbarch_init): Ditto.
10406
10407 2002-01-20  Jiri Smid  <smid@suse.cz>
10408
10409         * configure.host, configure.tgt: Support x86-64.
10410         * NEWS: Note new target x86-64.
10411
10412         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10413         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10414         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10415         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10416         x86-64-linux-nat.o): Fix dependencies.
10417
10418 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10419
10420         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10421         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10422         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10423         * config/sparc/xm-sun4os4.h: Delete file.
10424         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10425
10426 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10427
10428         * config/sparc/sparclynx.mh (XM_FILE): Delete.
10429         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10430         * config/m68k/m68klynx.mh (XM_FILE): Delete.
10431         * config/i386/i386lynx.mh (XM_FILE): Delete.
10432         * config/rs6000/xm-rs6000ly.h: Delete file.
10433         * config/sparc/xm-sparclynx.h: Delete file.
10434         * config/m68k/xm-m68klynx.h: Delete file.
10435         * config/i386/xm-i386lynx.h: Delete file.
10436         * config/xm-lynx.h: Delete file.
10437         * config/djgpp/fnchange.lst: Update.
10438
10439 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10440
10441         * alpha-tdep.c (alpha_register_byte): New function.
10442         (alpha_register_raw_size): Ditto.
10443         (alpha_register_virtual_size): Ditto.
10444         (alpha_skip_prologue_internal): Renamed from
10445         alpha_skip_prologue.
10446         (alpha_skip_prologue): New version that calls
10447         alpha_skip_prologue_internal.
10448         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10449         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10450         second argument from alpha_skip_prologue.
10451         (REGISTER_BYTE): Use alpha_register_byte.
10452         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10453         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10454         (FRAMELESS_FUNCTION_INVOCATION): Use
10455         generic_frameless_function_invocation_not.
10456         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10457         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10458
10459 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10460
10461         * config/mips/xm-news-mips.h: Delete file.
10462         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10463
10464         * config/m88k/xm-m88k.h: Delete file.
10465         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10466         * config/m88k/xm-delta88v4.h: Ditto.
10467         * config/m88k/xm-delta88.h: Ditto.
10468
10469         * config/alpha/xm-fbsd.h: Delete file.
10470         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10471
10472         * config/sparc/xm-sparc.h: Delete file.
10473         * Makefile.in (xm-sun4os4.h): Delete dependency.
10474         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10475         * config/sparc/xm-sun4os4.h: Ditto.
10476         * config/sparc/xm-linux.h: Ditto.
10477
10478         * config/i386/xm-windows.h: Delete file.
10479
10480 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
10481
10482         * utils.c: Include <sys/param.h> for MAXPATHLEN.
10483         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10484
10485 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10486
10487         * alpha-tdep.c (alpha_call_dummy_words): New.
10488         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10489         (CALL_DUMMY_P): Define.
10490         (CALL_DUMMY_WORDS): Define.
10491         (SIZEOF_CALL_DUMMY_WORDS): Define.
10492
10493 2002-01-19  Per Bothner  <per@bothner.com>
10494
10495         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
10496         isn't NULL, which can happen with some gcj-3.x-produced code.
10497
10498 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
10499
10500         * alpha-tdep.c (alpha_register_virtual_type): New function.
10501         (alpha_init_frame_pc_first): Ditto.
10502         (alpha_fix_call_dummy): Ditto.
10503         (alpha_store_struct_return): Ditto.
10504         (alpha_extract_struct_value_address): Ditto.
10505         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10506         alpha_register_virtual_type.
10507         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10508         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10509         alpha_extract_struct_value_address.
10510         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10511         (INIT_FRAME_PC): Use init_frame_pc_noop.
10512         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10513
10514 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
10515
10516         * i386gnu-nat.c: Include "i386-tdep.h".
10517         (fetch_fpregs): Simplify code dealing with uninitialized floating
10518         point states such that it doesn't require FP7_REGNUM.
10519
10520 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10521
10522         * alpha-tdep.c (frame_extra_info): New.
10523         (alpha_find_saved_regs): Make static.  Use
10524         frame->extra_info.
10525         (alpha_frame_init_saved_regs): New function.
10526         (alpha_frame_saved_pc): Use frame->extra_info.
10527         (temp_saved_regs): Don't declare as struct frame_saved_regs.
10528         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10529         (init_extra_frame_info): Rename to...
10530         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
10531         (alpha_print_extra_frame_info): New function.
10532         (alpha_frame_locals_address): Ditto.
10533         (alpha_frame_args_address): Ditto.
10534         (alpha_pop_frame): Use frame->extra_info.
10535         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10536         alpha_frame_args_address.
10537         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10538         (alpha_find_saved_regs): Remove prototype.
10539         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10540         (EXTRA_FRAME_INFO): Remove.
10541         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10542         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10543
10544 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10545
10546         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10547         (alpha_cannot_fetch_register): Ditto.
10548         (alpha_cannot_store_register): Ditto.
10549         (alpha_register_convertible): Ditto.
10550         (alpha_use_struct_convention): Ditto.
10551         * config/alpha/tm-alpha.h: Update copyright years.
10552         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10553         (INNER_THAN): Use core_addr_lessthan.
10554         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10555         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10556         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10557         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10558         (FRAME_CHAIN): Remove unnecessary cast.
10559
10560 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
10561
10562         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10563         obsolete.
10564
10565 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
10566
10567         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
10568         * monitor.c, remote-array.c, remote-bug.c: Ditto.
10569         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10570         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10571         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10572         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10573         * x86-64-linux-nat.c: Ditto.
10574
10575 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10576
10577         * alpha-tdep.c (alpha_register_name): New function.
10578         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10579         (REGISTER_NAME): Define.
10580
10581 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10582
10583         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10584
10585 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10586
10587         * alpha-tdep.c: Update copyright years.
10588         (alpha_next_pc): New function.
10589         (alpha_software_single_step): Ditto.
10590         * config/alpha/tm-alpha.h: Add prototype for
10591         alpha_software_single_step.
10592
10593 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
10594
10595         * alphabsd-nat.c: Update copyright years.
10596         (fill_gregset): Use regcache_collect.
10597         (fill_fpregset): Likewise.
10598         (fetch_inferior_registers): Only fetch integer registers
10599         if requested to do so.
10600         (store_inferior_registers): Only store integer registers
10601         if requested to do so.
10602
10603 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
10604
10605         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10606         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10607         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10608         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10609         * config/alpha/fbsd.mh (XDEPFILES): Delete.
10610         * config/arm/linux.mh (XDEPFILES): Delete.
10611         * config/arm/nbsd.mh (XDEPFILES): Delete.
10612         * config/i386/i386dgux.mh (XDEPFILES): Delete.
10613         * config/i386/i386sol2.mh (XDEPFILES): Delete.
10614         * config/i386/i386m3.mh (XDEPFILES): Delete.
10615         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10616         * config/i386/i386gnu.mh (XDEPFILES): Delete.
10617         * config/i386/fbsd.mh (XDEPFILES): Delete.
10618         * config/i386/i386bsd.mh (XDEPFILES): Delete.
10619         * config/i386/i386sco5.mh (XDEPFILES): Delete.
10620         * config/i386/i386v4.mh (XDEPFILES): Delete.
10621         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10622         * config/i386/i386sco4.mh (XDEPFILES): Delete.
10623         * config/i386/i386aix.mh (XDEPFILES): Delete.
10624         * config/i386/go32.mh (XDEPFILES): Delete.
10625         * config/i386/cygwin.mh (XDEPFILES): Delete.
10626         * config/i386/i386lynx.mh (XDEPFILES): Delete.
10627         * config/i386/i386mach.mh (XDEPFILES): Delete.
10628         * config/i386/i386v32.mh (XDEPFILES): Delete.
10629         * config/i386/linux.mh (XDEPFILES): Delete.
10630         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10631         * config/i386/ncr3000.mh (XDEPFILES): Delete.
10632         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10633         * config/i386/i386sco.mh (XDEPFILES): Delete.
10634         * config/i386/i386v.mh (XDEPFILES): Delete.
10635         * config/i386/nbsd.mh (XDEPFILES): Delete.
10636         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10637         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10638         * config/i386/symmetry.mh (XDEPFILES): Delete.
10639         * config/i386/obsd.mh (XDEPFILES): Delete.
10640         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10641         * config/ia64/linux.mh (XDEPFILES): Delete.
10642         * config/ia64/aix.mh (XDEPFILES): Delete.
10643         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10644         * config/m68k/dpx2.mh (XDEPFILES): Delete.
10645         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10646         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10647         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10648         * config/m68k/linux.mh (XDEPFILES): Delete.
10649         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10650         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10651         * config/m68k/nbsd.mh (XDEPFILES): Delete.
10652         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10653         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10654         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10655         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10656         * config/m88k/delta88.mh (XDEPFILES): Delete.
10657         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10658         * config/m88k/m88k.mh (XDEPFILES): Delete.
10659         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10660         * config/mips/linux.mh (XDEPFILES): Delete.
10661         * config/mips/irix6.mh (XDEPFILES): Delete.
10662         * config/mips/irix5.mh (XDEPFILES): Delete.
10663         * config/mips/irix4.mh (XDEPFILES): Delete.
10664         * config/mips/irix3.mh (XDEPFILES): Delete.
10665         * config/mips/decstation.mh (XDEPFILES): Delete.
10666         * config/mips/mipsm3.mh (XDEPFILES): Delete.
10667         (NATDEPFILES): Move core-aout.o to here.
10668         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10669         * config/pa/hpux1020.mh (XDEPFILES): Delete.
10670         * config/pa/hppabsd.mh (XDEPFILES): Delete.
10671         * config/pa/hppahpux.mh (XDEPFILES): Delete.
10672         * config/pa/hpux11w.mh (XDEPFILES): Delete.
10673         * config/pa/hppaosf.mh (XDEPFILES): Delete.
10674         * config/pa/hpux11.mh (XDEPFILES): Delete.
10675         * config/powerpc/aix.mh (XDEPFILES): Delete.
10676         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10677         * config/powerpc/linux.mh (XDEPFILES): Delete.
10678         * config/romp/rtbsd.mh: Rename XDEPFILES.
10679         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10680         * config/rs6000/aix4.mh (XDEPFILES): Delete.
10681         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10682         * config/s390/s390.mh (XDEPFILES): Delete.
10683         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10684         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10685         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10686         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10687         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10688         * config/sparc/nbsd.mh (XDEPFILES): Delete.
10689         * config/sparc/linux.mh (XDEPFILES): Delete.
10690         * config/vax/vaxult.mh (XDEPFILES): Delete.
10691         * config/vax/vaxult2.mh (XDEPFILES): Delete.
10692         * Makefile.in (DEPFILES): Remove XDEPFILES.
10693
10694 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
10695
10696         * utils.c (internal_verror): Fix comments, default is yes not no.
10697         Update queries to match.  Default to quit and dump core.
10698
10699 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
10700
10701         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
10702         copyright.
10703         * defs.h, event-top.c, gdbcmd.h: Ditto.
10704         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10705         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10706         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10707         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10708         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10709         * mi/mi-main.c:Ditto.
10710
10711         * stack.c, symfile.c: Update copyright.
10712
10713 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
10714
10715         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10716         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10717         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10718         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10719
10720 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
10721
10722         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10723         * gdbserver/low-lynx.c (myattach): Likewise.
10724         * gdbserver/low-nbsd.c (myattach): Likewise.
10725         * gdbserver/low-sim.c (myattach): Likewise.
10726         * gdbserver/low-sparc.c (myattach): Likewise.
10727         * gdbserver/low-sun3.c (myattach): Likewise.
10728
10729         * gdbserver/low-linux.c (myattach): New function.
10730
10731         * gdbserver/server.c (attach_inferior): New function.
10732         (main): Handle "--attach".
10733
10734 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
10735
10736         * MAINTAINERS (language support): Daniel Jacobwitz is C++
10737         maintainer.
10738
10739 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
10740
10741         * c-typeprint.c (is_type_conversion_operator): Add additional
10742         check for non-conversion operators.
10743
10744 2002-01-15  Michael Snyder  <msnyder@redhat.com>
10745
10746         * linux-proc.c: Add "info proc" command, a la procfs.c.
10747         (read_mapping): New function, abstract and re-use code.
10748         (linux_find_memory_regions): Use new func read_mapping.
10749         (linux_info_proc_cmd): New function, implement "info proc".
10750         (_initialize_linux_proc): Add new command "info proc".
10751
10752 2002-01-15  Michael Snyder  <msnyder@redhat.com>
10753
10754         * symfile.c (generic_load): Use bfd_map_over_sections method
10755         instead of manipulating bfd structure members directly.
10756         (add_section_size_callback): New function, bfd sections callback
10757         used by generic_load.
10758         (load_sections_callback): New function, bfd sections callback
10759         used by generic_load.
10760
10761 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
10762
10763         [Based on work by Jim Blandy]
10764         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10765         (builtin_type_vec128): Export.
10766         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10767         types.
10768         (builtin_type_vec128): New builtin type for 128 bit vector
10769         registers.
10770         (build_gdbtypes): Initialize builtin_type_v16qi and
10771         builtin_type_v8hi. Create the vec128 register builtin type
10772         structure.
10773         (build_builtin_type_vec128): New function.
10774         (_initialize_gdbtypes): Register builtin_type_v16qi and
10775         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10776         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10777         AltiVec register to new builtin type.
10778
10779 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
10780
10781         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10782         to make_cv_type.
10783
10784 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
10785
10786         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10787         CLEAN_UP_REGISTER_VALUE.
10788         * regcache.c (supply_register): Update only call.
10789
10790 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
10791
10792         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10793         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10794         a29k-*-vxworks* targets as obsolete.
10795
10796 2002-01-14  Michael Snyder  <msnyder@redhat.com>
10797
10798         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10799         until we can resolve portability issues.
10800         * gregset.h: Remove references to fpxregs.
10801         * gcore.c (gcore_command): Initialize note_sec to NULL.
10802
10803 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10804
10805         * signals.c (target_signal_to_name): Rewrite.  Only use
10806         signals[].name when in bounds and non-NULL.
10807
10808 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10809
10810         From Petr Ledvina <ledvinap@kae.zcu.cz>:
10811         * signals.c (target_signal_to_name): Verify that SIG is within the
10812         bounds of the signals array.
10813
10814 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10815
10816         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10817
10818 2002-01-13  Keith Seitz  <keiths@redhat.com>
10819
10820         * stack.c (print_frame_info_base): Print the frame's pc
10821         only if when print_frame_info_listing_hook is not defined.
10822
10823 2002-01-13  Keith Seitz  <keiths@redhat.com>
10824
10825         * varobj.c (varobj_set_value): Make sure that there were no
10826         errors evaluating the object before attempting to set its
10827         value.
10828         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10829         so this offset adjustment is no longer necessary.
10830         (create_child): Don't set the error flag if the child is
10831         a CPLUS_FAKE_CHILD.
10832         (value_of_child): If value_fetch_lazy fails, return NULL
10833         so that callers will be notified that an error occurred.
10834         (c_value_of_variable): Delay check of variable's validity
10835         until later. We actually want all structs and unions to have
10836         the value "{...}".
10837         Do not return "???" for variables which could not be evaluated.
10838         This error condition must be returned to the caller so that it
10839         can get the error condition from gdb.
10840         (cplus_name_of_child): Adjust index for vptr before figuring
10841         out the name of the child.
10842         (cplus_value_of_child): If a child's (real) parent is not valid,
10843         don't even bother trying to give a value for it. Just return
10844         an error. Change all instances in this function.
10845         (cplus_type_of_child): If our parent is one of the "fake"
10846         parents, we need to get at the type of the real parent, and
10847         derive the child's true type using this information.
10848
10849 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10850
10851         From 2002-01-09 John Marshall <johnm@falch.net>:
10852         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10853         sources.redhat.com, and tweak some related URLs which had
10854         suffered from linkrot.
10855
10856 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10857
10858         From Jeff law:
10859         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10860         structures passed in registers.
10861
10862 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
10863
10864         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10865         white space which prevented compilation.  Reported by DSK
10866         <dsk@student.unsw.edu.au>.
10867
10868 2002-01-11  Michael Snyder  <msnyder@redhat.com>
10869
10870         * symfile.c (build_section_addr_info_from_section_tab):
10871         Use bfd access method instead of manipulating bfd directly.
10872         (syms_from_objfile): Ditto.
10873         (simple_overlay_update_1): Ditto.
10874         (simple_overlay_update): Ditto.
10875         (generic_load): Ditto.
10876         (overlay_unmapped_address): FIXME comment, bfd access methods.
10877         (sections_overlap): FIXME comment, bfd access methods.
10878         (pc_in_mapped_range): FIXME comment, bfd access methods.
10879         (pc_in_unmapped_range): FIXME comment, bfd access methods.
10880         (section_is_mapped): FIXME comment, bfd access methods.
10881         (section_is_overlay): FIXME comment, bfd access methods.
10882
10883         * symfile.c (generic_load): Whitespace and long line cleanups.
10884         Remove duplicate variable, change several local variables to
10885         more appropriate data types.
10886         (print_transfer_performance): Use %lu instead of %ld for ulongs.
10887
10888 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10889
10890         From Peter Schauer:
10891         * language.c (longest_local_hex_string_custom): Use phex_nz to
10892         convert NUM to a hex string.
10893
10894 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
10895
10896         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10897         the function.
10898         Update Copyright year.
10899
10900 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10901
10902         * language.c (longest_raw_hex_string): Delete unused function.
10903
10904 2002-01-11  Petr Sorfa  <petrs@caldera.com>
10905
10906         * MAINTAINERS (write-after-approval): Add myself.
10907         * dwarf2read.c (read_tag_string_type): Handling of
10908         DW_AT_byte_size.
10909         (read_tag_string_type): FORTRAN fix to prevent propagation of
10910         first string size.
10911         (set_cu_language): Handling of DW_LANG_Fortran95
10912
10913 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
10914
10915         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10916         GETPID(inferior_ptid).
10917         (store_inferior_registers): Likewise.
10918
10919 2002-01-10  Jason Merrill  <jason@redhat.com>
10920
10921         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10922         Fix DW_OP_minus.
10923
10924 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
10925
10926         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10927         and bfd/elf32-sh-nbsd.c.
10928
10929 2002-01-10  Michael Snyder  <msnyder@redhat.com>
10930
10931         * NEWS: Mention --pid and corefile/proc-id behavior change.
10932
10933         * Makefile.in: Add rules for gcore.o and linux-proc.o.
10934         * gcore.c: Include cli/cli-decode.h instead of command.h.
10935
10936         * main.c (captured_main): Add new command line option "--pid".
10937         If the second command line argument (following the symbol-file)
10938         begins with a digit, try to attach to it before trying to open
10939         it as a corefile.
10940         (print_gdb_help): Document the "--pid" argument.
10941
10942 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
10943
10944         * completer.c (command_completer): New function.
10945
10946         * completer.h <command_completer>: Add prototype.
10947
10948         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10949         completer for the "help" command.
10950
10951 2002-01-09  Jason Merrill  <jason@redhat.com>
10952
10953         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10954
10955 2002-01-09  Michael Snyder  <msnyder@redhat.com>
10956
10957         * i386-linux-nat.c (fill_fpxregset): Make global.
10958         (store_fpxregset): Ditto.
10959
10960         * gregset.h (gdb_fpxregset_t): Define.
10961         (supply_fpxregset): Prototype.
10962         (fill_fpxregset): Prototype.
10963
10964         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10965
10966 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10967
10968         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10969         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10970         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10971
10972 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
10973
10974         * MAINTAINERS: Update target maintainer rules so that any
10975         Maintainer can approve a tested patch for a maintenance-only
10976         target.
10977
10978 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10979
10980         * MAINTAINERS (write-after-approval): Add myself.
10981
10982         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10983         IN_SIGTRAMP.
10984
10985 2002-01-08  Michael Snyder  <msnyder@redhat.com>
10986
10987         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10988         real name of the executable, rather than the /proc name.
10989
10990 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10991
10992         Implement a "generate-core-file" command in gdb, save target state.
10993         * gcore.c: New file.  Implement new command 'generate-core-file'.
10994         Save a corefile image of the current state of the inferior.
10995         * linux-proc.c: Add linux-specific code for saving corefiles.
10996         * target.h (struct target_ops): Add new target vectors for saving
10997         corefiles; to_find_memory_regions and to_make_corefile_notes.
10998         (target_find_memory_regions): New macro.
10999         (target_make_corefile_notes): New macro.
11000         * target.c (update_current_target): Inherit new target methods.
11001         (dummy_find_memory_regions): New place-holder method.
11002         (dummy_make_corefile_notes): New place-holder method.
11003         (init_dummy_target): Initialize new dummy target vectors.
11004         * exec.c (exec_set_find_memory_regions): New function.
11005         Allow the exec_ops vector for memory regions to be taken over.
11006         (exec_make_note_section): New function, target vector method.
11007         * defs.h (exec_set_find_memory_regions): Export prototype.
11008         * procfs.c (proc_find_memory_regions): New function, corefile method.
11009         (procfs_make_note_section): New function, corefile method.
11010         (init_procfs_ops): Set new target vector pointers.
11011         (find_memory_regions_callback): New function.
11012         (procfs_do_thread_registers): New function.
11013         (procfs_corefile_thread_callback): New function.
11014         * sol-thread.c (sol_find_memory_regions): New function.
11015         (sol_make_note_section): New function.
11016         (init_sol_thread_ops): Initialize new target vectors.
11017         * inftarg.c (inftarg_set_find_memory_regions): New function.
11018         Allow to_find_memory_regions vector to be taken over.
11019         (inftarg_set_make_corefile_notes): New function.
11020         Allow to_make_corefile_notes vector to be taken over.
11021         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11022         interface layer if not target_has_execution (may be a corefile).
11023         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11024         * config/sparc/sun4sol2.mh: Ditto.
11025         * config/alpha/alpha-linux.mh: Ditto.
11026         * config/arm/linux.mh: Ditto.
11027         * config/i386/x86-64linux.mh: Ditto.
11028         * config/ia64/linux.mh: Ditto.
11029         * config/m68k/linux.mh: Ditto.
11030         * config/mips/linux.mh: Ditto.
11031         * config/powerpc/linux.mh: Ditto.
11032         * config/sparc/linux.mh: Ditto.
11033
11034 2002-01-07  Michael Snyder  <msnyder@redhat.com>
11035
11036         * arm-linux-nat.c: Remove references to regcache.c internal data
11037         (registers[] and register_valid[]).
11038
11039 2002-01-07  Michael Snyder  <msnyder@redhat.com>
11040
11041         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
11042         so that attaching to a pid will automatically read the process's
11043         symbol file and shlibs.
11044         * Makefile.in: Add rule for linux-proc.o.
11045         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11046         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11047         * config/arm/linux.mh: Ditto.
11048         * config/i386/linux.mh: Ditto.
11049         * config/i386/x86-64linux.mh: Ditto.
11050         * config/ia64/linux.mh: Ditto.
11051         * config/m68k/linux.mh: Ditto.
11052         * config/mips/linux.mh: Ditto.
11053         * config/powerpc/linux.mh: Ditto.
11054         * config/sparc/linux.mh: Ditto.
11055
11056 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
11057
11058         * win32-nat.c: Add i386-tdep.h dependency.
11059
11060 2002-01-07  Michael Snyder  <msnyder@redhat.com>
11061
11062         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11063         instead of bfd_get_arch_size.  Don't bail out just because
11064         there's no exec_bfd.
11065
11066         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11067         * p-valprint.c (pascal_object_print_value): Ditto.
11068         * somread.c (som_symtab_read): Ditto.
11069         * symfile.c (simple_free_overlay_region_table): Ditto.
11070         * valops.c (value_assign): Ditto.
11071
11072         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11073         use tilde_expand and strerror for opening save-tracepoints file.
11074
11075         * thread-db.c (thread_db_new_objfile): Indendation fix.
11076
11077         * infptrace.c (GDB_MAX_ALLOCA): New define.
11078         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11079         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11080         can be overridden with whatever value is appropriate to the host).
11081         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11082         alloca to allocate potentially large buffer.
11083         * rs6000-nat.c (child_xfer_memory): Ditto.
11084         * symm-nat.c (child_xfer_memory): Ditto.
11085         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11086
11087 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
11088
11089         From Nick Clifton  <nickc@redhat.com>
11090         * d10v-tdep.c: Set STACK_START to 0x200bffe.
11091
11092 2002-01-07  Michael Snyder  <msnyder@redhat.com>
11093
11094         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11095         Don't use exec_bfd if it's NULL.
11096
11097 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
11098
11099         * valops.c (value_arg_coerce): Fix formatting.
11100
11101 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
11102
11103         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11104         * gnu-nat.c: Ditto.
11105
11106 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
11107
11108         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11109         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11110         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11111         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11112         z8k-coff have not been multi-arched.  Update z8k-coff build
11113         status.
11114
11115 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
11116
11117         * MAINTAINERS: Mark a29k target as obsolete.
11118         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11119         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
11120         comments.
11121         * NEWS: Note that a29k targets are obsolete.
11122         * a29k-tdep.c: Mark as obsolete.
11123         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11124         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11125         a29k-*-vxworks* targets as obsolete.
11126         * remote-adapt.c: Obsolete.
11127         * remote-eb.c: Obsolete.
11128         * remote-mm.c: Obsolete.
11129         * remote-udi.c: Obsolete.
11130         * config/a29k/a29k-udi.mt: Obsolete.
11131         * config/a29k/a29k.mt: Obsolete.
11132         * config/a29k/tm-a29k.h: Obsolete.
11133         * config/a29k/tm-vx29k.h: Obsolete.
11134         * config/a29k/vx29k.mt: Obsolete.
11135
11136 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
11137
11138         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11139         with BFD_ENDIAN_BIG.
11140
11141 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
11142
11143         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11144         * configure, config.in: Re-generate.
11145         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11146         * defs.h: Do not include <endian.h>.
11147
11148 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
11149
11150         * acconfig.h (HAVE_PT_GETXMMREGS): New.
11151         * config.in: Regenerate.
11152         * configure.in: Update copyright years.
11153         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11154         * configure: Regenerate.
11155         * i386bsd-nat.c: Update copyright years.
11156         (fill_gregset): Use regcache_collect.
11157         (fetch_inferior_registers): Only fetch integer registers
11158         if requested to do so.  Add support for XMM registers
11159         using PT_GETXMMREGS.
11160         (store_inferior_registers): Only store integer registers
11161         if requested to do so.  Add support for XMM registers
11162         using PT_SETXMMREGS.
11163         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11164         (store_inferior_registers): Remove.
11165         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11166         (fetch_elfcore_registers): New function.
11167         (i386nbsd_elfcore_fns): New.
11168         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11169         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11170         i386bsd-nat.o.
11171         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11172         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11173         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11174         * config/i386/tm-nbsd.h: Update copyright years.
11175         (HAVE_SSE_REGS): Define.
11176         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11177         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11178         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11179         (SIGCONTEXT_PC_OFFSET): Remove.
11180         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11181
11182 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
11183
11184         * configure.tgt: Remove powerpc-*-macos* target.
11185         * config/m68k/xm-mpw.h: Delete file.
11186         * config/xm-mpw.h: Delete file.
11187         * ser-mac.c: Delete file.
11188         * mpw-make.sed: Delete file.
11189         * mpw-config.in: Delete file.
11190         * mac-xdep.c: Delete file.
11191         * mac-gdb.r: Delete file.
11192         * mac-defs.h: Delete file.
11193         * mac-nat.c: Delete file.
11194         * config/powerpc/macos.mh: Delete file.
11195         * config/powerpc/macos.mt: Delete file.
11196         * config/powerpc/nm-macos.h: Delete file.
11197         * config/powerpc/tm-macos.h: Delete file.
11198         * source.c (openp, open_source_file): Remove obsolete code.
11199         * top.c (gdb_readline): Ditto.
11200         * utils.c (query): Ditto.
11201         * event-top.c (display_gdb_prompt): Ditto.
11202         * Makefile.in (ser-mac.o): Delete obsolete target.
11203         * NEWS: Update.
11204
11205 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
11206
11207         * defs.h (BIG_ENDIAN): Delete macro definition.
11208         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11209         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11210         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11211         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11212         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11213         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11214         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11215         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11216         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11217         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11218         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11219         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11220         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11221         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11222         * gdbarch.c: Re-generate.
11223
11224 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11225
11226         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11227         for core files.
11228
11229 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
11230
11231         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11232
11233 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
11234
11235         * value.h (value_ptr): Delete typedef.
11236
11237 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
11238
11239         * i386nbsd-nat.c: Update copyright years.
11240         Include i386-tdep.h.
11241
11242 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
11243
11244         * stabsread.c: Update copyright years.
11245
11246         From Debashis Mahata <debashis.mahata@wipro.com>:
11247         (read_struct_fields): Deal with Sun C compiler erroneous stab
11248         output for structs and unions.
11249         Fix PR gdb/269.
11250
11251 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11252
11253         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11254         prototype.
11255
11256 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11257
11258         * cp-abi.c: Fix whitespace.
11259         (baseclass_offset): New wrapper function.
11260         * cp-abi.h (baseclass_offset): Add prototype.
11261         (struct cp_abi_ops): Add baseclass_offset pointer.
11262
11263         * valops.c (vb_match): Move to...
11264         * gnu-v2-abi.c (vb_match): here.
11265         * valops.c (baseclass_offset): Move to...
11266         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11267
11268         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11269
11270         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11271         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11272         * hpacc-abi.c (init_hpacc_ops): Likewise.
11273
11274 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11275
11276         * valops.c (find_overload_match): Accept obj as a
11277         reference parameter.  Update it before returning.
11278         * value.h (find_overload_match): Update prototype.
11279         * eval.c (evaluate_subexp_standard): Pass object to
11280         find_overload_match by reference.
11281
11282 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
11283
11284         * valarith.c: Replace value_ptr with struct value pointer.  Remove
11285         register attribute from value declarations.
11286         * valops.c: Ditto.
11287         * value.h: Ditto.
11288         * scm-lang.c (scm_lookup_name): Ditto.
11289
11290 2002-01-03  Michael Snyder  <msnyder@redhat.com>
11291
11292         Abstract the functionality of iterating over mapped memory
11293         regions into a general purpose iterator function.
11294         * procfs.c (iterate_over_mappings): New function, general purpose
11295         iterator for memory sections.
11296         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11297         (solib_mappings_callback): New function, callback for above.
11298         (info_proc_mappings): Reimpliment using iterate_over_mappings.
11299         (info_mappings_callback): New function, callback for above.
11300
11301         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11302
11303 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
11304
11305         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11306         * i386-tdep.c: Include "elf-bfd.h".
11307         (process_note_abi_tag_sections): New function.
11308         (i386_gdbarch_init): Add code to recognize various OS/ABI
11309         combinations.
11310
11311         * maint.c (_initialize_maint_cmds): Add missing \ in
11312         string-literal.
11313
11314 For older changes see ChangeLog-2001
11315 \f
11316 Local Variables:
11317 mode: change-log
11318 left-margin: 8
11319 fill-column: 74
11320 version-control: never
11321 End: