1ed848f4e89bd8671f117f81476466099b6bf461
[external/binutils.git] / gdb / ChangeLog
1 2002-11-28  Andrew Cagney  <ac131313@redhat.com>
2
3         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
4         USE_GENERIC_DUMMY_FRAMES.
5         * gdbarch.h, gdbarch.c: Regenerate.
6         * valops.c, frame.c: Update.
7         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
8         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
9         * config/pa/tm-hppa.h, blockframe.c: Update.
10         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
11         * m68k-tdep.c, alpha-tdep.c: Ditto.
12
13         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
14         * mips-tdep.c: Ditto.
15
16 2002-11-27  Andrew Cagney  <ac131313@redhat.com>
17
18         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
19         (USE_GENERIC_DUMMY_FRAMES): Default to true.
20         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
21         * gdbarch.c, gdbarch.h: Re-generate.
22         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
23         (CALL_DUMMY_LOCATION): Delete macro definition.
24         (PC_IN_CALL_DUMMY): Delete macro definitions.
25         
26         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
27         default is already generic_pc_in_call_dummy.
28         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
29         * v850-tdep.c (v850_gdbarch_init): Ditto.
30         * sh-tdep.c (sh_gdbarch_init): Ditto.
31         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
32         * mips-tdep.c (mips_gdbarch_init): Ditto.
33         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
34         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
35         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
36         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
37         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
38         * avr-tdep.c (avr_gdbarch_init): Ditto.
39         
40         * arm-tdep.c (arm_gdbarch_init): Do not set
41         use_generic_dummy_frames, default is already 1.
42         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
43         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
44         * v850-tdep.c (v850_gdbarch_init): Ditto.
45         * sh-tdep.c (sh_gdbarch_init): Ditto.
46         * s390-tdep.c (s390_gdbarch_init): Ditto.
47         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
48         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
49         * mips-tdep.c (mips_gdbarch_init): Ditto.
50         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
51         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
52         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
53         * i386-tdep.c (i386_gdbarch_init): Ditto.
54         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
55         * frv-tdep.c (frv_gdbarch_init): Ditto.
56         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
57         * cris-tdep.c (cris_gdbarch_init): Ditto.
58         * avr-tdep.c (avr_gdbarch_init): Ditto.
59
60         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
61         call_dummy_location, default is already AT_ENTRY_POINT.
62         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
63         * v850-tdep.c (v850_gdbarch_init): Ditto.
64         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
65         * sh-tdep.c (sh_gdbarch_init): Ditto.
66         * s390-tdep.c (s390_gdbarch_init): Ditto.
67         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
68         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
69         * mips-tdep.c (mips_gdbarch_init): Ditto.
70         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
71         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
72         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
73         * i386-tdep.c (i386_gdbarch_init): Ditto.
74         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
75         * frv-tdep.c (frv_gdbarch_init): Ditto.
76         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
77         * cris-tdep.c (cris_gdbarch_init): Ditto.
78         * avr-tdep.c (avr_gdbarch_init): Ditto.
79         * arm-tdep.c (arm_gdbarch_init): Ditto.
80         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
81
82 2002-11-28  Andrew Cagney  <cagney@redhat.com>
83
84         * frame.h: Update comments on set_current_frame, create_new_frame,
85         flush_cached_frames, reinit_frame_cache, select_frame and
86         selected_frame.
87         
88 2002-11-27  Andrew Cagney  <cagney@redhat.com>
89
90         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
91         deprecated pc_in_call_dummy function.
92         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
93         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
94         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
95         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
96         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
97
98 2002-11-26  Martin M. Hunt  <hunt@redhat.com>
99
100         * Makefile.in: Remove Tix dependencies.
101         * acinclude.m4: Ditto.
102         * aclocal.m4: Ditto.
103         * configure.in: Ditto.
104         * configure: Regenerated.
105         
106 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
107
108         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
109         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
110         * gdbarch.c: Re-generate.
111         
112 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
113
114         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
115         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
116         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
117         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
118         pc_in_call_dummy_at_entry_point.
119         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
120         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
121         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
122         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
123         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
124         pc_in_call_dummy_on_stack.
125         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
126         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
127         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
128         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
129         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
130         
131 2002-11-26  Andrew Cagney  <ac131313@redhat.com>
132
133         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
134         pc_in_call_dummy_before_text_end
135         (deprecated_pc_in_call_dummy_after_text_end): Rename
136         pc_in_call_dummy_after_text_end.
137         (deprecated_pc_in_call_dummy_on_stack): Rename
138         pc_in_call_dummy_on_stack.
139         (deprecated_pc_in_call_dummy_at_entry_point): Rename
140         pc_in_call_dummy_at_entry_point.
141         * m68k-tdep.c (m68k_gdbarch_init): Update.
142         * s390-tdep.c (s390_gdbarch_init): Update.
143         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
144         * vax-tdep.c (vax_gdbarch_init): Update.
145         * sparc-tdep.c (sparc_gdbarch_init): Update.
146         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
147         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
148         * i386-tdep.c (i386_gdbarch_init): Update.
149         * frv-tdep.c (frv_gdbarch_init): Update.
150         * cris-tdep.c (cris_gdbarch_init): Update.
151         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
152         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
153         (deprecated_pc_in_call_dummy_after_text_end)
154         (deprecated_pc_in_call_dummy_on_stack)
155         (deprecated_pc_in_call_dummy_at_entry_point): Update.
156         * alpha-tdep.c (alpha_gdbarch_init): Update.
157
158 2002-11-25  Daniel Jacobowitz  <drow@mvista.com>
159
160         * acconfig.h (HAVE_PREAD64): Add.
161         * configure.in: Check for pread64.
162         * config.in: Regenerated.
163         * configure: Regenerated.
164         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
165         * linux-proc.c (linux_proc_xfer_memory): New function.
166         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
167
168 2002-11-25  David Carlton  <carlton@math.stanford.edu>
169
170         * dwarf2read.c (scan_partial_symbols): Descend into namespace
171         pdi's with no name.
172
173 2002-11-25  Andrew Cagney  <ac131313@redhat.com>
174
175         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
176         16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
177
178 2002-11-25  Jim Blandy  <jimb@redhat.com>
179
180         * symfile.c (init_objfile_sect_indices): New function.
181         (default_symfile_offsets): Move the section-index-initializing
182         stuff into init_objfile_sect_indices, and call that.
183
184         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
185         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
186
187         * symfile.c (syms_from_objfile): Adjust indentation.
188
189         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
190         || info_verbose isn't true.
191
192 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
193
194         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
195         default to get_frame_base.
196         * gdbarch.h, gdbarch.c: Regenerate.
197         * arch-utils.c (default_frame_address): Delete function.
198         * arch-utils.h (default_frame_address): Delete declaration
199
200 2002-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
201
202         * varobj.c (find_frame_addr_in_frame_chain):
203         Use get_frame_base instead of FRAME_FP,
204         obvious fix.
205
206 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
207
208         * frame.h (FRAME_FP): Delete macro.
209         (get_frame_base): New function declaration.
210         * frame.c (get_frame_base): New function.
211         (get_frame_id): Use ->frame.
212         (frame_find_by_id): Rewrite to use get_frame_id.
213         * blockframe.c: Use get_frame_base instead of FRAME_FP.
214         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
215         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
216         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
217         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
218         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
219         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
220
221 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
222
223         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
224
225 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
226
227         * frame.c (set_unwind_by_pc): Revert change below, use
228         PC_IN_CALL_DUMMY.
229         (get_prev_frame): Ditto.
230
231 2002-11-24  Andrew Cagney  <ac131313@redhat.com>
232
233         * dummy-frame.c (pc_in_dummy_frame): New function.
234         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
235         (find_dummy_frame): Update comment.
236         (generic_pop_current_frame): Use get_frame_type.
237         * dummy-frame.h (pc_in_dummy_frame): Declare.
238         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
239         (create_new_frame): Use pc_in_dummy_frame.
240         (get_prev_frame): Use pc_in_dummy_frame.
241         (frame_saved_regs_register_unwind): Use get_prev_frame.
242         (deprecated_generic_get_saved_register): Use get_prev_frame.
243
244 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
245
246         * blockframe.c (find_frame_addr_in_frame_chain): Move function
247         from here ...
248         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
249         (varobj_create): Note that frame ID should be used.
250         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
251
252 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
253
254         * breakpoint.c: Include "gdb_assert.h".
255         (deprecated_frame_in_dummy): Assert that generic dummy frames are
256         not being used.
257         * Makefile.in (breakpoint.o): Update dependencies.
258         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
259         deprecated_frame_in_dummy.
260         * stack.c (print_frame_info_base): Ditto.
261         (frame_info): Ditto.
262         (print_frame_info_base): Ditto.  Delete dead code.
263         
264 2002-11-23  Andreas Schwab  <schwab@suse.de>
265
266         * Makefile.in (m68k_tdep_h): Define.
267         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
268         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
269         * m68k-tdep.c: Move register number enum ...
270         * m68k-tdep.h: ... to this new file and rename the constants from
271         E_* to M68K_*.  All uses changed.
272         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
273         * abug-rom.c: Include "m68k-tdep.h".  Use
274         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
275         * cpu32bug-rom.c: Likewise.
276         * dbug-rom.c: Likewise.
277         * m68k-tdep.c: Likewise.
278         * m68klinux-nat.c: Likewise.
279         * remote-est.c: Likewise.
280         * rom68k-rom.c: Likewise.
281         * config/m68k/tm-linux.h: Likewise.
282
283 2002-11-23  Andrew Cagney  <ac131313@redhat.com>
284
285         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
286         dummy frame initialization code.
287         * mips-tdep.c (mips_gdbarch_init): Ditto.
288
289 2002-11-22  Christopher Faylor  <cgf@redhat.com>
290
291         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
292         attach will hang.
293
294 2002-11-22  Andrew Cagney  <ac131313@redhat.com>
295
296         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
297         to default_frame_address.
298         * gdbarch.h, gdbarch.c: Re-generate.
299
300         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
301         or frame_locals_address to default_frame_address.
302         * m68k-tdep.c (m68k_gdbarch_init): Update.
303         * i386-tdep.c (i386_gdbarch_init): Update.
304         * frv-tdep.c (frv_gdbarch_init): Update.
305         * sh-tdep.c (sh_gdbarch_init): Update.
306         * v850-tdep.c (v850_gdbarch_init): Update.
307         * sparc-tdep.c (sparc_gdbarch_init): Update.
308         * mips-tdep.c (mips_gdbarch_init): Update.
309         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
310         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
311         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
312
313         * cris-tdep.c (cris_frame_args_address): Delete function.
314         (cris_frame_locals_address): Delete function.
315         (cris_gdbarch_init): Do not set frame_args_address or
316         frame_locals_address.
317
318 2002-11-22  Michael Snyder  <msnyder@redhat.com>
319
320         * thread-db.c (thread_db_load): Tell the user what's going on
321         if dlopen fails on libthread_db.
322
323 2002-11-23  Andreas Schwab  <schwab@suse.de>
324
325         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
326         invariant return values.
327
328 2002-11-22  Andreas Schwab  <schwab@suse.de>
329
330         * valops.c (value_slice): Move declaration of `offset' to avoid
331         warning.
332
333 2002-11-22  Christopher Faylor  <cgf@redhat.com>
334
335         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
336         (struct so_stuff): Add end_addr field.
337         (register_loaded_dll): Calculate and store end address of loaded dll.
338         (solib_address): New function.
339         (child_solib_loaded_library_pathname): Pass carefully constructed
340         section info to safe_symbol_file_add rather than ignoring it.
341         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
342         DLL is loaded.
343         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
344         (child_create_inferior): Fix a compiler warning.
345         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
346         (solib_address): Declare new function.
347
348 2002-11-22  Andreas Schwab  <schwab@suse.de>
349
350         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
351         and FPS registers.
352
353 2002-11-21  Daniel Jacobowitz  <drow@mvista.com>
354
355         * maint.c (_initialize_maint_cmds): Fix typo.  From
356         Francesco Potorti` <pot@gnu.org>.
357
358 2002-11-21  Andrew Cagney  <cagney@redhat.com>
359
360         * mips-tdep.c (mips_dump_tdep): Delete references to
361         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
362         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
363         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
364         * printcmd.c (build_address_symbolic): Delete calls to
365         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
366         (address_info): Ditto.
367         Fix PR gdb/773.
368         
369 2002-11-19  Klee Dienes  <kdienes@apple.com>
370             Adam Fedor  <fedor@gnu.org>
371
372         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
373         the ability to explicitly specify the quote characters and word
374         break characters; if NULL is specified for either, use the old
375         behavior of using the characters used by the completer.
376         (skip_chars): New function.  Convenience wrapper around
377         skip_quoted_chars to provide the original skip_chars behavior.
378         * completer.h (skip_quoted_chars): Add prototype.
379
380 2002-11-19  Andrew Cagney  <ac131313@redhat.com>
381
382         Problems reported by Paul Eggert.
383         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
384
385 2002-11-19  Andreas Schwab  <schwab@suse.de>
386
387         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
388         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
389         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
390         (m68k_linux_frame_saved_pc): Move to ...
391         * m68klinux-tdep.c: ... here.  New file.
392         * Makefile.in (m68klinux-tdep.o): Add dependencies.
393         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
394
395 2002-11-19  Adam Fedor  <fedor@gnu.org>
396
397         * objc-exp.y: Revert to old skip_quoted usage.
398
399 2002-11-19  Adam Fedor  <fedor@gnu.org>
400
401         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
402         (objc_lang_h): Define.
403         (YYFILES): Add objc-exp.tab.c.
404         (local-maintainer-clean): Remove objc-exp.tab.c.
405         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
406         
407 2002-11-19  Pierre Muller  <muller@ics.u-strasbg.fr>
408
409         * p-exp.y (typecast rule): Add automatic dereference of
410         pascal classes if needed.
411         (THIS): Set current_type.
412         Automatically dereference pascal classes. 
413         (typebase rule): Add ^typebase recognition.
414
415 2002-11-18  Adam Fedor  <fedor@gnu.org>
416
417         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
418         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
419         (op_name): Handle OP_OBJC_SELF.
420         * Makefile.in (expprint.o): Add additional depends.
421
422 2002-11-18  Adam Fedor  <fedor@gnu.org>
423
424         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
425         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
426         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
427         * objc-exp.y: Likewise. 
428
429 2002-11-18  Adam Fedor  <fedor@gnu.org>
430
431         * gdb/parser-defs.h: (struct objc_class_str): New structure
432         for parsing ObjC classes.
433
434 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
435
436         * stack.c (frame_relative_level): Copy function from here ...
437         * frame.c (frame_relative_level): ...to here.
438
439 2002-11-18  Andrew Cagney  <ac131313@redhat.com>
440
441         * frame.h (enum frame_type): Define.
442         (get_frame_type): Declare.
443         (struct frame_info): Add field `type'.  Delete field
444         signal_handler_caller.
445         (deprecated_set_frame_signal_handler_caller): Declare.
446         * frame.c (get_frame_type): New function.
447         (deprecated_set_frame_type): New function.
448         (create_new_frame): Set the frame's type.
449         (get_prev_frame): Similar.
450         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
451         * s390-tdep.c: Ditto.
452         * m68klinux-nat.c: Ditto.
453         * ns32k-tdep.c: Ditto.
454         * x86-64-linux-tdep.c: Ditto.
455         * vax-tdep.c: Ditto.
456         * rs6000-tdep.c: Ditto.
457         * ppc-linux-tdep.c: Ditto.
458         * i386-interix-tdep.c: Ditto.
459         * mips-tdep.c: Ditto.
460         * m68k-tdep.c: Ditto.
461         * hppa-tdep.c: Ditto.
462         * ia64-tdep.c: Ditto.
463         * cris-tdep.c: Ditto.
464         * arm-tdep.c: Ditto.
465         * alpha-tdep.c: Ditto.
466         * i386-tdep.c: Ditto.
467         * stack.c: Ditto.
468         * ada-lang.c: Ditto.
469         * blockframe.c: Update.
470         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
471         deprecated_set_frame_type instead of signal_handler_caller.
472         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
473         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
474         * breakpoint.h: Delete FIXME suggesting get_frame_type.
475
476 2002-11-18   Klee Dienes  <kdienes@apple.com>
477
478         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
479
480 2002-11-18  Klee Dienes  <kdienes@apple.com>
481
482         * buildsym.c (pop_context): Add comment.
483         
484 2002-11-18  Klee Dienes  <kdienes@apple.com>
485
486         * buildsym.h (pop_context): Convert to function, defined in
487         buildsym.c.
488         * buildsym.c: Include gdb_assert.h.
489         (pop_context): Implement as C function.  Add check for stack
490         underflow.
491         * dbxread.c (process_one_symbol): Complain and stop processing
492         that symbol if we are already at the top of the context stack for
493         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
494         when processing N_RBRAC.
495
496 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
497
498         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
499         define.
500         (struct target_waitstatus): Add opaque definition.
501         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
502         * exec.c (init_exec_ops): Likewise.
503         * fork-child.c (clone_and_follow_inferior): Remove.
504         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
505         * inferior.h (clone_and_follow_inferior): Remove prototype.
506         * infrun.c (follow_fork_mode_both): Remove.
507         (follow_fork_mode_kind_names): Remove commented out "both".
508         (follow_inferior_fork): Remove follow_fork_mode_both support.
509         * inftarg.c (child_clone_and_follow_inferior): Remove.
510         (child_post_follow_inferior_by_clone): Remove.
511         (init_child_ops): Don't set to_clone_and_follow_inferior
512         or to_post_follow_inferior_by_clone.
513         * target.c (default_clone_and_follow_inferior): Remove.
514         (cleanup_target): Don't set to_clone_and_follow_inferior
515         or to_post_follow_inferior_by_clone.
516         (find_default_clone_and_follow_inferior): Remove.
517         (init_dummy_target): Don't set to_clone_and_follow_inferior.
518         (debug_to_clone_and_follow_inferior): Remove.
519         (debug_to_post_follow_inferior_by_clone): Remove.
520         (setup_target_debug): Don't set to_clone_and_follow_inferior
521         or to_post_follow_inferior_by_clone.
522         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
523         and to_post_follow_inferior_by_clone.
524         (child_clone_and_follow_inferior): Remove prototype.
525         (child_post_follow_inferior_by_clone): Remove prototype.
526         (target_clone_and_follow_inferior): Remove macro.
527         (target_post_follow_inferior_by_clone): Remove macro.
528         (find_default_clone_and_follow_inferior): Remove prototype.
529
530 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
531
532         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
533         inferior_has_vforked, and inferior_has_execd instead of
534         target_has_forked, target_has_vforked, and target_has_execd.
535         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
536         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
537         (CHILD_WAIT): Define.
538         (child_wait): Add prototype.
539         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
540         Add prototype.
541         (hpux_has_vforked): Likewise, from child_has_vforked.
542         (hpux_has_execd): Likewise, from child_has_execd.
543         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
544         (not_same_real_pid, child_wait): New, copied from inftarg.c.
545         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
546         and hpux_has_syscall_event instead of the target hooks.
547         * infrun.c (inferior_has_forked, inferior_has_vforked)
548         (inferior_has_execd): New functions.
549         * inftarg.c (not_same_real_pid): Remove.
550         (child_wait): Remove references to not_same_real_pid,
551         target_has_forked, target_has_vforked, target_has_execd,
552         and target_has_syscall_event.
553         (child_has_forked, child_has_vforked, child_has_execd)
554         (child_has_syscall_event): Remove.
555         (init_child_ops): Remove references to child_has_forked,
556         child_has_vforked, child_has_execd, and child_has_syscall_event.
557         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
558         (hpux_has_vforked): Likewise, from child_has_vforked.
559         (hpux_has_execd): Likewise, from child_has_execd.
560         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
561         * target.c (cleanup_target): Remove references to
562         to_has_forked, to_has_vforked, to_has_execd, and
563         to_has_syscall_event.
564         (update_current_target): Likewise.
565         (setup_target_debug): Likewise.
566         (debug_to_has_forked): Remove.
567         (debug_to_has_vforked): Remove.
568         (debug_to_has_execd): Remove.
569         (debug_to_has_syscall_event): Remove.
570         * target.h (struct target_ops): Remove to_has_forked.
571         to_has_vforked, to_has_execd, and to_has_syscall_event.
572         (child_has_forked, child_has_vforked, child_has_execd)
573         (child_has_syscall_event): Remove prototypes.
574         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
575         prototypes.
576         (target_has_forked, target_has_vforked, target_has_execd)
577         (target_has_syscall_event): Remove macros.
578
579 2002-11-16  Daniel Jacobowitz  <drow@mvista.com>
580
581         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
582         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
583         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
584         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
585         * target.c (cleanup_target): Remove reference to
586         to_can_follow_vfork_prior_to_exec.
587         (update_current_target): Likewise.
588         (debug_to_can_follow_vfork_prior_to_exec): Remove.
589         (setup_target_debug): Remove reference to
590         to_can_follow_vfork_prior_to_exec.
591         * target.h (struct target_ops): Remove
592         to_can_follow_vfork_prior_to_exec.
593         (child_can_follow_vfork_prior_to_exec): Remove prototype.
594         (target_can_follow_vfork_prior_to_exec): Remove definition.
595         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
596         define.
597         * infrun.c (follow_vfork_when_exec): Remove.
598         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
599         (follow_exec): Likewise.
600         (handle_inferior_event): Likewise.
601         (keep_going): Likewise.
602
603 2002-11-15  Andrew Cagney  <cagney@redhat.com>
604
605         * frame.c (generic_unwind_get_saved_register): Make static.
606         * frame.h (generic_unwind_get_saved_register): Delete declaration.
607         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
608         defaults to generic_unwind_get_saved_register.
609         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
610         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
611         * frv-tdep.c (frv_gdbarch_init): Ditto.
612         * i386-tdep.c (i386_gdbarch_init): Ditto.
613         * s390-tdep.c (s390_gdbarch_init): Ditto.
614         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
615         * v850-tdep.c (v850_gdbarch_init): Ditto.
616         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
617         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
618         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
619
620 2002-11-15  Andrew Cagney  <cagney@redhat.com>
621
622         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
623         i386-tdep.c.
624
625 2002-11-15  Andrew Cagney  <cagney@redhat.com>
626
627         * frame.h (sigtramp_saved_pc): Delete declaration.
628         * blockframe.c (sigtramp_saved_pc): Delete function.
629         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
630         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
631         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
632         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
633
634 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
635
636         * frame.c (frame_pc_unwind): New function.
637         (frame_saved_regs_pc_unwind): New function.
638         (frame_register_unwind): Pass unwind_cache instead of
639         register_unwind_cache.
640         (set_unwind_by_pc): Add unwind_pc parameter, set.
641         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
642         (get_prev_frame): Ditto.
643         * frame.h (frame_pc_unwind_ftype): Declare.
644         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
645         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
646         (frame_pc_unwind): Declare.
647         * dummy-frame.c (dummy_frame_pc_unwind): New function.
648         (struct dummy_frame): Add comment mentioning that values are for
649         previous frame.
650         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
651         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
652         (generic_file_frame_chain_valid): Ditto.
653         * stack.c (frame_info): Ditto.
654
655 2002-11-15  David Carlton  <carlton@math.stanford.edu>
656
657         * linespec.c (locate_first_half): New function.
658         (decode_line_1): Move code into locate_first_half.
659
660 2002-11-15  Andrew Cagney  <ac131313@redhat.com>
661
662         * complaints.h: Add comment explaining how to eliminate a
663         deprecated_complain call.
664         * complaints.h: Fix spelling errors.
665
666 2002-11-15  David Carlton  <carlton@math.stanford.edu>
667
668         * printcmd.c: Remove #include "disasm.h".
669
670 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
671
672         * frame.h: Move the most relevant interface functions to the start
673         of the file.
674
675 2002-11-14  Andrew Cagney  <ac131313@redhat.com>
676
677         * regcache.h (deprecated_registers): Rename registers.
678         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
679         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
680         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
681         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
682         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
683         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
684         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
685         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
686         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
687         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
688         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
689         * v850ice.c: Update.
690
691 Wed Nov 13 19:51:05 2002  Andrew Cagney  <cagney@redhat.com>
692
693         * utils.c (gdb_realpath): Add comment mentioning realpath with a
694         NULL buffer.
695
696 2002-11-13  Andrew Cagney  <cagney@redhat.com>
697
698         * regcache.h (deprecated_read_register_bytes): Rename
699         read_register_bytes.
700         (deprecated_write_register_bytes): Rename write_register_bytes.
701         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
702         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
703         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
704         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
705         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
706         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
707         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
708         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
709         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
710         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
711         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
712         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
713         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
714         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
715
716 2002-11-13  Jim Blandy  <jimb@redhat.com>
717
718         * findvar.c (read_var_value): Doc fix.
719
720 2002-11-13  Andrew Cagney  <cagney@redhat.com>
721
722         * regcache.c (struct regcache): Replace passthough_p with
723         readonly_p.
724         (regcache_xmalloc): Initialize readonly_p.
725         (build_regcache): Initialize readonly_p.
726         (regcache_save): New function.
727         (regcache_restore): New function.
728         (regcache_cpy): Re-implement using regcache_save and
729         regcache_restore.
730         (regcache_raw_read): Update.
731         (regcache_cooked_read): When a read-only cache, checked for cached
732         pseudo register values.
733         (regcache_raw_write): Assert that the cache is not read-only.
734         Remove code handling a non-passthrough cache.
735         * regcache.h (regcache_save): Declare.
736         (regcache_restore): Declare.
737
738 2002-11-13  Andrew Cagney  <cagney@redhat.com>
739
740         * regcache.c (struct regcache_descr): Add fields
741         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
742         (init_legacy_regcache_descr): Compute the size of a cooked
743         register cache and then assign that to sizeof_raw_registers.  Set
744         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
745         (init_legacy_regcache_descr): Ditto.
746
747 2002-11-13  Andrew Cagney  <cagney@redhat.com>
748
749         * regcache.c (register_buffer): Move to near start of file, update
750         description.
751         (regcache_raw_read): Use.
752         (regcache_raw_write): Use.
753         (struct regcache): Rename raw_registers to registers and
754         raw_register_valid_p to register_valid_p.
755         (regcache_xmalloc): Update.
756         (regcache_xfree): Update.
757         (register_buffer): Update.
758         (regcache_cpy): Update.
759         (regcache_cpy_no_passthrough): Update.
760         (regcache_valid_p): Update.
761         (deprecated_grub_regcache_for_registers): Update.
762         (deprecated_grub_regcache_for_register_valid): Update.
763         (set_register_cached): Update.
764         (regcache_raw_write): Update.
765
766 2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
767
768         * p-exp.y (name_not_typename): Use copy_name to
769         set current_type variable for fields of THIS.
770
771 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
772
773         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
774         * monitor.c (init_base_monitor_ops): Likewise.
775         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
776         * remote-array.c (init_array_ops): Likewise.
777         * remote-e7000.c (init_e7000_ops): Likewise.
778         * remote-es.c (init_es1800_ops): Likewise.
779         (init_es1800_child_ops): Likewise.
780         * remote-rdp.c (init_remote_rdp_ops): Likewise.
781         * remote-sim.c (init_gdbsim_ops): Likewise.
782         * remote-st.c (init_st2000_ops): Likewise.
783         * sol-thread.c (init_sol_core_ops): Likewise.
784         (init_sol_thread_ops): Likewise.
785         * v850ice.c (init_850ice_ops): Likewise.
786         * win32-nat.c (init_child_ops): Likewise.
787         * wince.c (init_child_ops): Likewise.
788
789 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
790
791         * utils.c (gdb_realpath): Make rp a constant pointer.
792
793 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
794
795         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
796         a constant buffer; cannonicalize_file_name(); realpath() with a
797         pathconf() defined buffer, xstrdup().
798
799 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
800
801         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
802         to hang2.C; hang3.c to hang3.C.
803
804 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
805
806         * findvar.c (read_var_value): Reenable TLS code.
807
808 2002-11-11  Elena Zannoni  <ezannoni@redhat.com>
809             Jim Blandy  <jimb@redhat.com>
810         
811         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
812         * target.c (update_current_target): Add
813         to_get_thread_local_address.
814         * target.h (to_get_thread_local_address): Export.
815         (target_get_thread_local_address): Define.
816         (target_get_thread_local_address_p): Define.
817         * thread-db.c: Include solib-svr4.h.
818         (td_thr_tls_get_addr_p): Define.
819         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
820         (thread_db_get_thread_local_address): New function.
821         (init_thread_db_ops): Initialize to_get_thread_local_address.
822         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
823         * configure: Regenerate.
824         * config.in: Regenerate.
825
826 2002-11-11  David Carlton  <carlton@math.stanford.edu>
827
828         * linespec.c (set_flags): New function.
829         (decode_line_1): Move code into set_flags.
830
831 2002-11-11  David Carlton  <carlton@math.stanford.edu>
832
833         * linespec.c (decode_line_1): Move chunks of code to separate
834         functions.
835         (initialize_defaults): New function.
836         (decode_indirect): New function.
837
838 2002-11-11  Andrew Cagney  <ac131313@redhat.com>
839
840         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
841         instead of void_code_ptr.
842         (sigtramp_saved_pc): Ditto.
843
844         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
845         i386_fp_regnum_p.
846
847 2002-11-10  Daniel Jacobowitz  <drow@mvista.com>
848
849         * gdbtypes.h (struct main_type): Move artificial flag out of
850         loc.  New member of ``struct field'' named static_kind.  Reduce
851         overloaded meaning of bitsize.
852         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
853         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
854         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
855
856         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
857         new fields.
858         (template_to_fixed_record_type, template_to_static_fixed_type)
859         (to_record_with_fixed_variant_part): Likewise.
860         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
861         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
862         * dwarfread.c (struct_type, enum_type): Likewise.
863         * hpread.c (hpread_read_enum_type)
864         (hpread_read_function_type, hpread_read_doc_function_type)
865         (hpread_read_struct_type): Likewise.
866         * mdebugread.c (parse_symbol): Likewise.
867
868 2002-11-10  Andrew Cagney  <ac131313@redhat.com>
869
870         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
871         * stack.c (print_frame_info_base): Update.
872         (print_frame_info_base, frame_info): Update.
873         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
874         (sparc_frame_saved_pc): Update.
875         * ada-lang.c (find_printable_frame): Update.
876         * breakpoint.c (deprecated_frame_in_dummy): Update.
877         
878 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
879
880         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
881         defined.
882         (regmap): Extend to cover all registers.
883         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
884         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
885         definitions.
886         (fetch_register, sore_register): Simplify.
887         (old_fetch_inferior_registers, old_store_inferior_registers):
888         Remove functions.
889         (cannot_fetch_register, cannot_store_register): Change
890         implementation to use regmap array to decide which registers
891         cannot be fetched/stored.  This removes $orig_eax from the
892         registers that cannot be fetched/stored.
893         (fetch_inferior_registers): Call fetch_register directly instead
894         of calling old_fetch_inferior_registers.
895         (store_inferior_registers): Call store_register directly instead
896         of calling old_store_inferior_registers.
897         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
898         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
899         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
900
901 2002-11-09  Klee Dienes  <kdienes@apple.com>
902
903         * i387-tdep.c (i387_supply_register): When called with NULL as a
904         buffer, mark the register as not provided (to mirror the behavior
905         of supply_register).
906         (i387_supply_fxsave): Ditto.
907         (i387_supply_fsave): Ditto (inherits the behavior from
908         i387_supply_register).
909
910 2002-11-09  Klee Dienes  <kdienes@apple.com>
911
912         * blockframe.c (sigtramp_saved_pc): Use
913         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
914         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
915         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
916         
917 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
918
919         * frame.c (get_prev_frame): Test prev_p to identify a previously
920         unwound frame.  Initialize prev_p.
921         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
922         comment.
923
924 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
925
926         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
927         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
928         more comments.  Zap dead code.
929
930 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
931
932         * infcmd.c (print_vector_info, print_float_info): Move code that
933         checks whether the target has any registers and whether there is a
934         selected frame up, such that it is also used if a target provides
935         multi-arch definitions of these functions.
936
937 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
938
939         * Makefile.in (DESTDIR): Define.
940         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
941         prefix.
942
943         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
944         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
945
946 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
947
948         * i386-linux-tdep.c: Include "reggroups.h".
949         (i386_linux_register_reggroup_p): New function.
950         (i386_linux_init_abi): Set register_reggroup_p to
951         i386_linux_register_reggroup_p.
952         * i386-tdep.h (i386_register_reggroup_p): Declare.
953         * i386-tdep.c: Include "reggroups.h".
954         (i386_init_reggroups): New function.
955         (i386_add_reggroups): New function.
956         (i386_register_reggroup_p): New function.
957         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
958         (_initialize_i386_tdep): Call i386_init_reggroups.
959         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
960         specific reggroups.
961
962 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
963
964         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
965         request that's available in *BSD.
966
967         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
968
969         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
970         FDOFF_REGNUM.
971
972 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
973
974         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
975         * dummy-frame.c (find_dummy_frame): Rename
976         generic_find_dummy_frame, make static.  Return the dummy frame
977         instead of the regcache.
978         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
979         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
980         (dummy_frame_register_unwind): Rename
981         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
982         * dummy-frame.h (dummy_frame_register_unwind): Rename
983         generic_call_dummy_register_unwind.
984
985 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
986
987         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
988         except the inclusion of "i386/tm-i386.h", to...
989         * config/i386/nm-i386v42mp.h: ...here.
990         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
991
992 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
993
994         * Makefile.in (frame.o): Update dependencies.
995         * blockframe.c (current_frame, frame_obstack_alloc)
996         (frame_saved_regs_zalloc, get_current_frame)
997         (set_current_frame, create_new_frame)
998         (set_unwind_by_pc, get_next_frame)
999         (flush_cached_frames, reinit_frame_cache)
1000         (frame_saved_regs_register_unwind)
1001         (deprecated_generic_get_saved_register)
1002         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1003         (_initialize_blockframe): Move frame code from here...
1004         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
1005         "annotate.h" and "dummy-frame.h".
1006         (_initialize_frame): New function.
1007
1008 2002-11-08  Jim Blandy  <jimb@redhat.com>
1009
1010         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1011         when we finish a function a context.
1012         * buildsym.h (outermost_context_p): New macro.
1013         (Bug analyzed by David Edelsohn.)
1014
1015 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
1016
1017         * blockframe.c: Include "dummy-frame.h".
1018         (struct dummy_frame, dummy_frame_stack)
1019         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1020         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1021         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1022         (generic_save_call_dummy_addr, generic_pop_current_frame)
1023         (generic_pop_dummy_frame, generic_fix_call_dummy)
1024         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1025         dummy frame code from here...
1026         * dummy-frame.c: ...to here.  New file.
1027         * dummy-frame.h: New file.
1028         (generic_call_dummy_register_unwind): Declare.
1029         (generic_find_dummy_frame): Declare.
1030         * Makefile.in (SFILES): Add dummy-frame.c.
1031         (dummy-frame.o): Specify dependencies.
1032         (dummy_frame_h): Define.
1033         (COMMON_OBS): Add dummy-frame.o.
1034         (blockframe.o): Update dependencies.
1035
1036 2002-11-08  Jim Blandy  <jimb@redhat.com>
1037
1038         * dwarf2read.c (read_func_scope): Restore local_symbols and
1039         param_symbols after we finish the function context.  (Based on a
1040         patch from David Edelsohn.)
1041
1042 2002-11-08  David Carlton  <carlton@math.stanford.edu>
1043
1044         * linespec.c (symbol_found): New function.
1045         (minsym_found): New function.
1046         (decode_line_1): Separate out some code into separate functions.
1047
1048 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
1049
1050         * i386-tdep.c (i386_frameless_signal_p): Make non static for
1051         the benefit of the interix target.
1052         * i386-tdep.h (i386_frameless_signal_p): Declare.
1053
1054 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
1055
1056         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1057         declaration that snuck in from change below.
1058
1059 2002-11-06  Andrew Cagney  <cagney@redhat.com>
1060
1061         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
1062         all callers.
1063         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
1064         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
1065         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
1066         (i386_mxcsr_regnum_p): new function.  Use instead of
1067         MXCSR_REGNUM_P.
1068         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1069         (i386_sse_regnum_p): Declare.
1070         (i386_mxcsr_regnum_p): Declare.
1071         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1072         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1073         (IS_FP_REGNUM): Update definition.
1074         (IS_FPU_CTRL_REGNUM): Update definition..
1075         (IS_SSE_REGNUM): Update definition..
1076         * i386v-nat.c (register_u_addr): Update.
1077         * go32-nat.c (fetch_register): Update.
1078         (store_register): Update.
1079
1080 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
1081
1082         Preparation work to convert the hppa targets to multiarch partial.
1083
1084         * hppa-tdep.c: Add new functions replacing macro bodies from
1085         config/pa/tm-hppa.h. These function will be used to initialize
1086         the gdbarch structure. Import some comments from tm-hppa.h,
1087         and place them where appropriate, to avoid loosing them when
1088         we cleanup this file.
1089         (hppa_reg_struct_has_addr): New function.
1090         (hppa_inner_than): New function.
1091         (hppa_stack_align): New function.
1092         (hppa_pc_requires_run_before_use): New function.
1093         (hppa_instruction_nullified): New function.
1094         (hppa_register_byte): New function.
1095         (hppa_register_virtual_type): New function.
1096         (hppa_store_struct_return): New function.
1097         (hppa_cannot_store_register): New function.
1098         (hppa_frame_args_address): New function.
1099         (hppa_frame_locals_address): New function.
1100         (hppa_smash_text_address): New function.
1101         (hppa_coerce_float_to_double): New function. Requires the inclusion
1102         of "language.h".
1103
1104         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1105
1106         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1107         gdbarch-eligible macro to a call to the new associated function
1108         created in hppa-tdep.c.
1109         (INNER_THAN): Likewise.
1110         (STACK_ALIGN): Likewise.
1111         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1112         (INSTRUCTION_NULLIFIED): Likewise.
1113         (REGISTER_BYTE): Likewise.
1114         (REGISTER_VIRTUAL_TYPE): Likewise.
1115         (STORE_STRUCT_RETURN): Likewise.
1116         (CANNOT_STORE_REGISTER): Likewise.
1117         (FRAME_ARGS_ADDRESS): Likewise.
1118         (FRAME_LOCALS_ADDRESS): Likewise.
1119         (SMASH_TEXT_ADDRESS): Likewise.
1120         (COERCE_FLOAT_TO_DOUBLE): Likewise.
1121         (ABOUT_TO_RETURN): Delete, as no longer used.
1122
1123 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
1124
1125         * printcmd.c (disassemble_command): Remove obsolete function.
1126         (_initialize_printcmd): Do not create disassemble command here.
1127         * cli/cli-cmds.c (disassemble_command): New function.  Implements
1128         disassemble command.
1129         (init_cli_cmds): Create disassemble command here instead.
1130
1131 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
1132
1133         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1134
1135 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
1136
1137         * regcache.h (regcache_cooked_read_using_offset_hack)
1138         (regcache_cooked_write_using_offset_hack): Delete declarations.
1139         (register_changed): Delete declaration.
1140         * regcache.c (regcache_cooked_read_using_offset_hack)
1141         (regcache_cooked_write_using_offset_hack): Delete functions.
1142         (cooked_xfer_using_offset_hack): Delete function.
1143         (register_changed): Delete function.
1144
1145 2002-11-07  Jim Blandy  <jimb@redhat.com>
1146
1147         * macroscope.c: #include "complaints.h".
1148         (sal_macro_scope): Cope with filenames that appear in the symtabs,
1149         but not in the macro table.
1150         * Makefile.in (macroscope.o): Record dependency.
1151
1152 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
1153
1154         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1155
1156 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
1157
1158         * regcache.c (deprecated_registers_fetched): Update.
1159         * regcache.h (deprecated_registers_fetched): Rename
1160         registers_fetched.
1161         * remote-vxsparc.c (vx_read_register): Update.
1162         * remote-vxmips.c (vx_read_register): Update.
1163         * remote-vx68.c (vx_read_register): Update.
1164         * irix5-nat.c (fetch_core_registers): Update.
1165         * mipsm3-nat.c (fetch_inferior_registers): Update.
1166         * sun3-nat.c (fetch_inferior_registers): Update.
1167         * symm-nat.c (fetch_inferior_registers): Update.
1168         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1169         (fetch_core_registers): Update.
1170         (fetch_kcore_registers): Update.
1171         * mips-nat.c (fetch_inferior_registers): Update.
1172         * corelow.c (get_core_registers): Update.
1173         * a68v-nat.c (fetch_inferior_registers): Update.
1174
1175 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
1176
1177         Put in place the framework necessary for multiarching the hppa targets.
1178         * hppa-tdep.c (hppa_gdbarch_init): New function.
1179         (hppa_dump_tdep): New function.
1180         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1181         tdep structure dumper.
1182         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1183         until the multi-arching conversion has partially been completed.
1184
1185 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
1186
1187         * valops.c (value_assign): Merge lval_register case into
1188         lval_reg_frame_relative.  Use frame_register and
1189         regcache_cooked_write instead of get_saved_register and
1190         write_register_bytes.  After flushing the register cache, try to
1191         re-select the selected frame.
1192
1193 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
1194
1195         * regcache.h (deprecated_register_valid): Rename register_valid.
1196         * regcache.c: Update.
1197         * ia64-aix-nat.c: Update.
1198         * i386gnu-nat.c: Update.
1199         * alpha-nat.c: Update.
1200         * sparc-nat.c: Update.
1201         * lynx-nat.c: Update.
1202         * remote-mips.c: Update.
1203
1204 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
1205
1206         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1207         to end of file, to be more consistent with the pratice followed
1208         by other targets.
1209
1210 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
1211
1212         * infcmd.c: Include "reggroups.h" and <ctype.h>.
1213         (print_float_info): Print registers in float_reggroup.
1214         (print_vector_info): Print registers in vector_reggroup.
1215         (default_print_registers_info): When all, print registers in
1216         all_reggroup.  Otherwize, print registers in general_reggroup.
1217         (registers_info): Rewrite.  Add support for register groups.
1218         Eliminate a goto.
1219
1220 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
1221
1222         * symtab.c (methods_info): Delete. It has been ifdeffed out for
1223         ages.
1224         (symtab_symbol_info): Remove eons old ifdeffed out code.
1225         (_initialize_symtab): Remove prehistoric disabled 'info methods'
1226         command.
1227
1228 2002-11-06  Theodore A. Roth  <troth@openavr.org>
1229
1230         * c-exp.y: Add missing semi-colons.
1231         * f-exp.y: Add missing semi-colons.
1232         * m2-exp.y: Add missing semi-colons.
1233         * p-exp.y: Add missing semi-colons.
1234         Add empty action to start rule to avoid a type clash error when
1235         building with bison >= 1.50.
1236
1237 2002-11-06  Jim Blandy  <jimb@redhat.com>
1238
1239         * macrotab.h (struct macro_source_file): Doc fix.
1240
1241 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
1242
1243         * varobj.c (child_exists, cplus_number_of_children): Change
1244         STREQ macro references to strcmp.
1245         (cplus_name_of_child): Change code to handle the fact that
1246         fields are not necessarily contiguous with regards to their 
1247         access control. This is a fix for PR gdb/792.
1248
1249 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
1250
1251         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1252         * gdbarch.h, gdbarch.c: Regnerate.
1253         * frame.h (frame_register): Declare.
1254         * frame.c (frame_register): New function.
1255         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1256         GET_SAVED_REGISTER, otherwize call
1257         generic_unwind_get_saved_register.
1258         (frame_register_read): Use frame_register instead of
1259         get_saved_register.
1260
1261 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
1262         
1263         From Jim Ingham  <jingham@apple.com>:
1264         * event-top.c (gdb_disable_readline): New function.
1265         (_initialize_event_loop): Move comment.
1266
1267 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
1268
1269         * event-loop.c (start_event_loop): Add comment.
1270         Update copyright.
1271
1272 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
1273
1274         * infcmd.c (default_print_registers_info): Do not call
1275         PRINT_REGISTER_HOOK.
1276
1277 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
1278
1279         * sparc-tdep.c (sparc_print_register_hook): Make static.
1280         (sparc_print_registers_info): New function.
1281         (sparc_do_registers_info): New function.
1282         (sparclet_print_registers_info): New function.
1283         (sparclet_do_registers_info): New function.
1284         (do_sparc_print_registers_info): New function.
1285         (sparc_print_registers): New static function, clone of infcmd.c's
1286         default_print_registers_info.
1287         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1288         (sparclet_do_registers_info): Declare.
1289         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1290         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1291         Re-define.
1292         (sparc_do_registers_info): Declare.
1293         (PRINT_REGISTER_HOOK): Delete macro.
1294         (sparc_print_register_hook): Delete declaration.
1295
1296 2002-11-05  David Carlton  <carlton@math.stanford.edu>
1297
1298         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1299         functions.
1300         (lookup_symbol_aux_local): New function.
1301         (lookup_symbol_aux_symtabs): New function.
1302         (lookup_symbol_aux_psymtabs): New function.
1303
1304 2002-11-05  David Carlton  <carlton@math.stanford.edu>
1305
1306         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1307         previous values of 'objfile' and 'block'.
1308
1309 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
1310
1311         * values.c (value_change_enclosing_type): Set 
1312         enclosing_type field correctly also for the case where 
1313         more memory needs to be allocated.
1314
1315 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
1316
1317         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1318         of puts_filtered.
1319
1320         * i387-tdep.c (i387_print_float_info): Replace calls to
1321         register_read and deprecated_read_register_gen with calls to
1322         frame_register_read, and make the necessary adjustments to the
1323         surrounding code.
1324
1325 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
1326
1327         * gdbarch.sh (register_reggroup_p): Allow default value.
1328         * gdbarch.h, gdbarch.c: Regenerate.
1329
1330 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
1331
1332         * regcache.h: Add coment indicating replacements for deprecated
1333         functions.
1334
1335 2002-11-02  Andrew Cagney  <cagney@redhat.com>
1336
1337         * reggroups.h, reggroups.c: New files.
1338         * regcache.c: Include "reggroups.h".
1339         (enum regcache_dump_what): Add `regcache_dump_groups'.
1340         (regcache_dump): Contract size of the "Type" column.  When
1341         specified, dump the register's groups.
1342         (maintenance_print_register_groups): New function.
1343         (_initialize_regcache): Add command `maint print register-groups'.
1344         * Makefile.in (COMMON_OBS): Add reggroups.o
1345         (SFILES): Add reggroups.c.
1346         (reggroups_h): Define.
1347         (regcache.o, gdbarch.o): Update dependencies.
1348         (reggroups.o): Specify dependencies.
1349         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1350         Add opaque declaration for `struct reggroup' in generated .h file.
1351         Include "reggroups.h" in generated .c file.
1352         gdbarch.h, gdbarch.c: Re-generate.
1353
1354 2002-11-02  Andrew Cagney  <cagney@redhat.com>
1355
1356         * regcache.h (deprecated_read_register_gen): Rename
1357         read_register_gen.
1358         (deprecated_write_register_gen): Rename write_register_gen.
1359         * i387-tdep.c: Update.
1360         * x86-64-linux-nat.c: Update
1361         * wince.c: Update.
1362         * thread-db.c: Update.
1363         * win32-nat.c: Update.
1364         * mips-tdep.c: Update.
1365         * d10v-tdep.c: Update.
1366         * cris-tdep.c: Update.
1367         * remote-sim.c: Update.
1368         * remote-rdi.c: Update.
1369         * remote-rdp.c: Update.
1370         * frame.c: Update.
1371         * target.c: Update.
1372         * blockframe.c: Update.
1373         * x86-64-tdep.c: Update.
1374         * xstormy16-tdep.c: Update.
1375         * sh-tdep.c: Update.
1376         * s390-tdep.c: Update.
1377         * rs6000-tdep.c: Update.
1378         * sparc-tdep.c: Update.
1379         * i386-tdep.c: Update.
1380         * dwarf2cfi.c: Update.
1381         * regcache.c: Update.
1382
1383 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
1384
1385         New interix-specific files:
1386         * config/i386/nm-interix.h: New file.
1387         * config/i386/interix.mh: New file.
1388         * config/i386/interix.mt: New file.
1389         * i386-interix-nat.c: New file.
1390         * i386-interix-tdep.c: New file.
1391
1392 2002-11-01  Andrew Cagney  <cagney@redhat.com>
1393
1394         * frame.h (deprecated_generic_get_saved_register): Rename
1395         generic_get_saved_register.
1396         * blockframe.c (deprecated_generic_get_saved_register): Update.
1397         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1398         (xstormy16_frame_saved_register): Update.
1399         * sh-tdep.c (sh_gdbarch_init): Update.
1400         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1401         * ia64-tdep.c (ia64_get_saved_register): Update.
1402         * cris-tdep.c (cris_gdbarch_init): Update.
1403         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1404         * arm-tdep.c (arm_gdbarch_init): Update.
1405
1406 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
1407
1408         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1409
1410 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
1411
1412         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1413         trampolines in sigaction.
1414
1415 2002-10-31  Andrew Cagney  <cagney@redhat.com>
1416
1417         * h8300-tdep.c: Include "gdb_assert.h".
1418         (h8300_print_register): Add gdbarch, file and frame parameters.
1419         Use frame_read_unsigned_register to read the register's value.
1420         Use fprintf_filtered to display output.
1421         (h8300_print_registers_info): Replace h8300_do_registers_info.
1422         (h8300_gdbarch_init): Set print_registers_info.
1423
1424 2002-10-31  Andrew Cagney  <cagney@redhat.com>
1425
1426         * frame.c (frame_read_unsigned_register): New function.
1427         (frame_read_signed_register): New function.
1428         * frame.h (frame_read_unsigned_register): Declare.
1429         (frame_read_signed_register): Declare.
1430
1431 2002-10-31  Andrew Cagney  <cagney@redhat.com>
1432
1433         * h8500-tdep.c (h8500_print_registers_info): New static function,
1434         clone of infcmd.c's default_print_registers_info.
1435         (h8500_do_registers_info): New funtion.
1436         (h8500_print_register_hook): Rename print_register_hook, make
1437         static.
1438
1439         * config/h8500/tm-h8500.h: Update copyright.
1440         (DEPRECATED_DO_REGISTERS_INFO): Define.
1441         (h8500_do_registers_info: Declare.
1442         (PRINT_REGISTER_HOOK): Delete macro.
1443         (print_register_hook): Delete function.
1444
1445 2002-10-31  Andrew Cagney  <cagney@redhat.com>
1446
1447         * z8k-tdep.c (z8k_print_register_hook): Make static.
1448         (z8k_print_registers_info): New static function, clone of
1449         infcmd.c's default_print_registers_info.
1450         (z8k_do_registers_info): New function.  Wrap
1451         z8k_print_registers_info.
1452         * config/z8k/tm-z8k.h: Update copyright.
1453         (PRINT_REGISTER_HOOK): Delete macro.
1454         (z8k_print_register_hook): Delete declaration.
1455         (DEPRECATED_DO_REGISTERS_INFO): Define.
1456         (z8k_do_registers_info): Declare.
1457
1458 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
1459
1460         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1461         as this is already provided by value.h, and was actually causing
1462         a compilation error because of a conflict in parameter type
1463         declaration due to a missing const keyword.
1464         (low_text_segment_addres): Fix a compilation warning.
1465
1466 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
1467
1468         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1469         registers without a name.
1470         (mips_linux_cannot_store_register): Don't store registers without
1471         a name.
1472
1473 2002-10-28  David Carlton  <carlton@math.stanford.edu>
1474
1475         * symtab.c (find_addr_symbol): Delete.  (It was already commented
1476         out.)
1477         * symtab.h: Delete prototype for find_addr_symbol.
1478
1479 2002-10-26  Andrew Cagney  <cagney@redhat.com>
1480
1481         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1482         DO_REGISTERS_INFO.
1483         gdbarch.h, gdbarch.c: Re-generate.
1484         * infcmd.c (default_print_registers_info): Update reference.
1485         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1486         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1487         * sh-tdep.c (sh_gdbarch_init): Ditto.
1488         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1489         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1490
1491 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
1492
1493         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1494         cfi_init_extra_frame_info.
1495         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1496         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1497
1498         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1499         target where necessary.  Add more comments and remove the ones
1500         that don't provide any useful information.
1501
1502         * i386-tdep.c (i386_frame_saved_pc): Replace call to
1503         deprecated_read_register_dummy with
1504         frame_unwind_unsigned_register.
1505
1506         * i386-tdep.c (i386_extract_struct_value_address): Use
1507         regcache_raw_read_unsigned instead of
1508         regcache_cooked_read_unsigned since we know that the register
1509         we're reading isn't a pseudo register.  Rename variable 'val' into
1510         the more descriptive 'addr'.
1511
1512         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1513         (x86_64_push_return_address): Add comment.
1514         (x86_64_pop_frame): Make static.
1515         (examine_argument): Clarify comment.
1516         (x86_64_skip_prologue): Make prolog_expact variable static.
1517
1518         * dwarf2cfi.c: Fix some formatting problems.
1519         (context_cpy, read_encoded_pointer): Clarify comments.
1520
1521         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1522         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1523         i386 target back into x86_64_gdbarch_init.  Add some comments and
1524         remove meaningless ones.
1525
1526 2002-10-25  Andrew Cagney  <cagney@redhat.com>
1527
1528         * complaints.h (struct deprecated_complaint): Rename `struct
1529         complaint'.
1530         * complaints.c (complain): Update.
1531         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1532         incorrect comment indicating that "symfile.h" was being included
1533         for the `struct complaint' definition.
1534         * remote-vx.c: Update.
1535         * objc-lang.c: Update.
1536         * xcoffread.c: Update.
1537         * hpread.c: Update.
1538         * mdebugread.c: Update.
1539         * stabsread.c: Update.
1540         * dwarf2read.c: Update.
1541         * dwarfread.c: Update.
1542         * elfread.c: Update.
1543         * coffread.c: Update.
1544         * stabsread.h: Update.
1545         * dbxread.c: Update.
1546         * buildsym.c: Update.
1547         * gdbtypes.c: Update.
1548         * macrotab.c: Update.
1549
1550 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
1551
1552         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1553         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
1554         (x86_64_init_abi): ...new function.
1555
1556         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1557         * i386v-nat.c: Include "i386-tdep.h".
1558
1559 2002-10-25  Andrew Cagney  <cagney@redhat.com>
1560
1561         * gdbtypes.c (address_space_name_to_int): Update.
1562         (address_space_int_to_name): Update.
1563         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1564         multi-arch predicate.
1565         (address_class_name_to_type_flags): Ditto.
1566         * gdbarch.h, gdbarch.c: Re-generate.
1567         
1568         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1569
1570 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
1571
1572         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1573
1574 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
1575
1576         * symtab.h (INIT_SAL): Delete macro.
1577         (init_sal): Export.
1578         * symtab.c (init_sal): New function.
1579
1580         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1581         to init_sal function call.
1582         (find_sal_from_funcs_and_line): Ditto.
1583         (all_sals_for_line): Ditto. 
1584         * breakpoint.c (create_internal_breakpoint): Ditto. 
1585         (create_fork_vfork_event_catchpoint): Ditto. 
1586         (create_exec_event_catchpoint): Ditto. 
1587         (parse_breakpoint_sals): Ditto. 
1588         (watch_command_1): Ditto. 
1589         (handle_gnu_4_16_catch_command): Ditto.
1590         (clear_command): Ditto. 
1591         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
1592         * infcmd.c (run_stack_dummy): Ditto. 
1593         * infrun.c (process_event_stop_test): Ditto.
1594         (check_sigtramp2): Ditto.
1595         (step_over_function): Ditto. 
1596         * linespec.c (decode_line_2): Ditto. 
1597         (decode_line_1): Ditto. 
1598         * source.c (line_info): Ditto. 
1599         * symtab.c (find_pc_sect_line): Ditto.
1600
1601 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
1602
1603         * dwarf2cfi.c (struct context)
1604         (struct context_reg): Moved to dwarf2cfi.h
1605         (context_alloc, frame_state_alloc, context_cpy):
1606         Made extern instead of static, removed prototypes.
1607         * dwarf2cfi.h (struct context)
1608         (struct context_reg): New, moved from dwarf2cfi.c
1609         (context_alloc, frame_state_alloc, context_cpy):
1610         New prototypes.
1611         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1612         Changed from static to extern.
1613         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1614         (LINUX_SIGCONTEXT_FP_OFFSET)
1615         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1616         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1617         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1618         * x86-64-tdep.c (x86_64_gdbarch_init): Several
1619         set_gdbarch_*() calls now use x86-64 specific functions 
1620         instead of DWARF2 CFI ones.
1621         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1622         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1623         (x86_64_init_extra_frame_info): New prototypes.
1624         
1625 2002-10-23  David Carlton  <carlton@math.stanford.edu>
1626
1627         * linespec.c: #include "parser-defs.h".
1628         Delete prototype for find_template_name_end.
1629         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1630
1631 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
1632
1633         * NEWS: add recent mi fixes.
1634         * varobj.c (struct varobj): Add new "updated" flag.
1635         (new_variable): Default "updated" flag to 0.
1636         (varobj_set_value): Set "updated" flag to 1 if value
1637         changes.
1638         (varobj_update): Check varobj "updated" flag before
1639         comparing old and refreshed values.  Fix for
1640         PR gdb/702.
1641
1642 2002-10-23  David Carlton  <carlton@math.stanford.edu>
1643
1644         * parse.c (parse_exp_1): Use BLOCK_START.
1645         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1646         SYMBOL_BLOCK_VALUE.
1647         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1648
1649 2002-10-23  David Carlton  <carlton@math.stanford.edu>
1650
1651         * symtab.c: Delete cplusplus_hint.
1652         Delete prototype for find_template_name_end.
1653
1654 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
1655
1656         * symtab.h: Update comment.
1657
1658 2002-10-23  Michael Snyder  <msnyder@redhat.com>
1659
1660         * printcmd.c (address_info): Restore quotes in output.
1661         * valops.c (value_of_local): Restore quotes in error message.
1662
1663 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
1664
1665         * symtab.c (symbol_demangled_name): New function.
1666         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1667         turning most of it into a function.
1668         (symbol_demangled_name): Export.
1669
1670 2002-10-23  Michael Snyder  <msnyder@redhat.com>
1671
1672         * valops.c (value_of_local): Restore quotes in error message.
1673
1674 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
1675
1676         * symtab.c (symbol_init_language_specific): New function.
1677         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1678         turning most of it into a function.
1679         (symbol_init_language_specific): Export.
1680
1681 2002-10-23  David Carlton  <carlton@math.stanford.edu>
1682
1683         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1684         (dwarf_attr_name): Ditto.
1685         (dwarf_type_encoding_name): Ditto.
1686         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1687         (process_die): Handle DW_TAG_namespace,
1688         DW_TAG_imported_declaration, DW_TAG_imported_module.
1689         (read_namespace): New function.
1690
1691 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
1692
1693         * configure.in: Define NEW_PROC_API on Interix too.
1694         * configure: Regenerate.
1695
1696 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
1697
1698         * configure: Regenerate using the proper version of autoconf.
1699
1700 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
1701
1702         * findvar.c (read_var_value): Temporarily disable TLS code, until
1703         complete TLS support is added.
1704
1705 2002-10-21  Jim Blandy  <jimb@redhat.com>
1706             Elena Zannoni  <ezannoni@redhat.com>
1707
1708         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1709         for thread local storage locations.
1710         (struct symbol): Add objfile field.
1711         (SYMBOL_OBJFILE): Define.
1712         * dwarf2read.c (is_thread_local): New static variable.
1713         (new_symbol): If variable is in thread local fill in address class
1714         and objfile appropriately.
1715         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1716         stack operation.
1717         * printcmd.c (address_info): Print the information for thread
1718         local storage variable.
1719         * findvar.c (read_var_value): In case of thread local variable,
1720         defer to the target vector code to compute address.
1721
1722 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
1723
1724         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1725         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
1726
1727 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
1728
1729         * symtab.h (address_class):  Rename
1730         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1731         * hpread.c (hpread_process_one_debug_symbol): Ditto.
1732         * printcmd.c (address_info): Ditto.
1733         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1734
1735 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
1736
1737         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1738         DBREG_DRX macro to acces debug registers.
1739
1740         * Makefile.in (i386obsd-tdep.o): New target.
1741
1742         * solib-sunos.c: Include "bcache.h" and "regcache.h".
1743         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1744
1745         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1746         * config/i386/obsd.mt: New file.
1747         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1748         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1749         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1750         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1751         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1752         * i386obsd-tdep.c: New file.
1753
1754 2002-10-19  Adam Fedor  <fedor@gnu.org>
1755
1756         * objc-exp.y (name_not_typename): Fix invalid comment.  
1757
1758 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
1759
1760         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1761         to allocate partial syms and macro byte caches.
1762
1763 2002-10-18  David Carlton  <carlton@math.stanford.edu>
1764
1765         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1766
1767 2002-10-18  Adam Fedor  <fedor@gnu.org>
1768
1769         * stabsread.c (find_name_end): New function.
1770         (define_symbol): Use it.
1771
1772 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
1773
1774         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1775         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1776         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1777         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1778
1779 2002-10-17  David Carlton  <carlton@math.stanford.edu>
1780
1781         * symfile.h: Add opaque declaration for struct obstack.
1782         Declare obsavestring to take a const char *.
1783         * symfile.c (obsavestring): Make first argument a const char *.
1784
1785 2002-10-16  Adam Fedor  <fedor@gnu.org>
1786
1787         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1788         names when matching breakpoints in current file.
1789
1790 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
1791
1792         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1793         (read_tag_pointer_type): Add address class support.
1794         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1795         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1796         New methods.
1797         * gdbarch.h, gdbarch.c: Regenerate.
1798         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1799         (make_type_with_address_space, recursive_type_dump): Add address
1800         class support.
1801         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1802         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1803         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1804
1805 2002-10-16  Klee Dienes  <kdienes@apple.com>
1806
1807         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1808         to get the last character of a char[] buffer, not
1809         name[sizeof(vptr_name)-1].
1810
1811 2002-10-14  Adam Fedor  <fedor@gnu.org>
1812
1813         * symtab.h: New objc_specific struct.
1814         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1815         (SYMBOL_DEMANGLED_NAME): Likewise.
1816
1817 2002-10-14  Adam Fedor  <fedor@gnu.org>
1818
1819         * symfile.c (init_filename_language_table): Add ObjC file extension.
1820
1821 2002-10-14  Adam Fedor  <fedor@gnu.org>
1822
1823         * utils.c (puts_filtered_tabular): New function.
1824         (fprintf_symbol_filtered): Get ObjC demangled name.
1825         * defs.h (puts_filtered_tabular): Declared.
1826
1827 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
1828
1829         * c-lang.h (c_type_print_varspec_prefix): Delete.
1830         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
1831         ``need_post_space'' parameter.  Adjust all callers.
1832
1833 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
1834  
1835         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1836         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1837         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1838         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1839
1840 2002-10-13  Adam Fedor  <fedor@gnu.org>
1841
1842         * source.c (print_source_lines): Update comments.
1843
1844 2002-10-13  Adam Fedor  <fedor@gnu.org>
1845
1846         * valops.c (value_of_local): New function.
1847         (value_of_this): Use it.
1848         * value.h (value_of_local): Declared.
1849
1850 2002-10-13  Adam Fedor  <fedor@gnu.org>
1851
1852         * parse.c: (length_of_subexp, prefixify_subexp): Handle
1853         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1854
1855 2002-10-12  Adam Fedor  <fedor@gnu.org>
1856
1857         * language.c (binop_result_type): Add language_objc to case.
1858         (integral_type): Likewise.
1859         (character_type): Likewise.
1860         (string_type): Likewise.
1861         (boolean_type): Likewise.
1862         (structured_type): Likewise.
1863         (binop_type_check): Likewise.
1864
1865 2002-10-11  Adam Fedor  <fedor@gnu.org>
1866
1867         * printcmd.c (address_info): Print 'self' for ObjC.
1868
1869 2002-10-11  Adam Fedor  <fedor@gnu.org>
1870
1871         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1872         OP_SELF.
1873
1874 2002-10-11  Adam Fedor  <fedor@gnu.org>
1875
1876         * language.h (CAST_IS_CONVERSION): Add language_objc.
1877
1878 2002-10-11  Adam Fedor  <fedor@gnu.org>
1879
1880         * defs.h (enum language): Add language_objc.
1881
1882 2002-10-11  Klee Dienes  <kdienes@apple.com>
1883
1884         * corefile.c (read_memory_typed_address): New function.
1885         * gdbcore.h (read_memory_typed_address): Add prototype.
1886         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1887         to read a value destined for a CORE_ADDR, not read_memory_integer.
1888         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1889         (f77_get_dynamic_lowerbound): Ditto.
1890
1891 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
1892
1893         * utils.c (string_to_core_addr): After turning string into
1894         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1895         which will do necessary sign-extension, etc.
1896
1897 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
1898
1899         * c-exp.y (THIS): Delete token and grammar rule.
1900         (yylex): Don't return THIS.
1901         * cp-valprint.c (vtbl_ptr_name_old): Delete.
1902         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1903         * demangle.c (cplus_markers): Update comment.  Put '$'
1904         first.  Remove CPLUS_MARKER.
1905         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1906         * jv-exp.y (THIS): Delete token and grammar rule.
1907         (yylex): Don't return THIS.
1908         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1909         * objc-exp.y (THIS): Delete token and grammar rule.
1910         (yylex): Don't return THIS.
1911         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1912         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1913         (read_member_functions): Likewise for opname.
1914         (read_tilde_fields): Use is_cplus_marker.
1915
1916         * defs.h (CPLUS_MARKER): Don't define.
1917         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1918         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1919         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1920         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1921         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1922
1923         * config/i386/tm-i386v4.h: Delete file.
1924         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1925         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1926         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1927         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1928         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1929         * config/i386/i386sco5.mt (TM_FILE): Likewise.
1930         * config/i386/i386v4.mt (TM_FILE): Likewise.
1931         * config/i386/ncr3000.mt (TM_FILE): Likewise.
1932
1933 2002-10-10  Marko Mlinar  <markom@opencores.org>
1934
1935         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1936         accidentially not commited 2002-10-09
1937         * gdbarch.h, gdbarch.c: Re-generate.
1938
1939 2002-10-09  Marko Mlinar  <markom@opencores.org>
1940
1941         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1942         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1943         * gdbarch.h, gdbarch.c: Re-generate.
1944
1945 2002-10-08  Petr Sorfa <petrs@caldera.com>
1946
1947         Revised and re-submitted by John Wolfe <jlw@caldera.com>
1948
1949         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1950         so we can work on more than one compilation unit at a time.  This
1951         helps prepare GDB to handle inter-CU die references.
1952         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1953         the code to be defined before struct comp_unit_head.
1954         (comp_unit_head): Added new members - offset, cu_head,
1955         begin_die, next and dwarf2_abbrevs.
1956         (dwarf2_abbrevs): Removed single static var; now member of
1957         struct comp_unit_head.
1958         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1959         members.
1960         (psymtab_to_symtab_1): Changed to work with the new
1961         struct comp_unit_head.
1962         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1963         constructs the dwarf2_abbrevs[] inside the cu_header.
1964         (dwarf2_empty_abbrev_table): Now expects a ptr to a
1965         dwarf2_abbrev table to clean up.
1966         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1967         handling of dwarf2_abbrevs inside the cu_header.
1968         (read_partial_die): Now supports the call to the new
1969         dwarf2_lookup_abbrev.
1970         (read_full_die): Now supports the call to the new
1971         dwarf2_lookup_abbrev.
1972
1973 2002-10-06  Christopher Faylor  <cgf@redhat.com>
1974
1975         * Makefile.in (install-gdbtk): Add missing continuation backslash to
1976         insure that shell variables, such as "transformed_name" are propagated
1977         to later shell statements in rule.
1978
1979 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
1980
1981         * config/i386/nm-i386sco.h: Add protection against
1982         multiple-inclusion.  Include "i386/nm-i386v.h".
1983         (REGISTER_U_ADDR): Remove define.
1984         (i386_register_u_addr): Remove prototype.
1985
1986 2002-10-04  Michael Snyder  <msnyder@redhat.com>
1987
1988         * m32r-stub.c (handle_exception): Make sure exception is "trap"
1989         before treating it as a single-step event.
1990
1991 2002-10-03  Adam Fedor  <fedor@gnu.org>
1992
1993         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
1994         (objc_demangle): Remove assignment in if statements, Replace
1995         free with xfree.
1996         (add_msglist): Likewise.
1997         (end_msglist): Likewise.
1998         (complare_selectors): Likewise.
1999         (selectors_info): Likewise.
2000         (compare_classes): Likewise.
2001         (classes_info): Likewise.
2002         (print_object_command): Likewise.
2003         (find_objc_msgcall_submethod): Replace PTR with void *.
2004         * objc-lang.h: Remove check for __STDC__.
2005
2006 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
2007
2008         * ui-out.h (ui_out_field_fmt_int): New prototype.
2009         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2010         of field width and alignment.
2011         * stack.c (print_frame_info_base): When printing frame level, use
2012         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
2013         PR gdb/192
2014
2015 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
2016
2017         * MAINTAINERS: Add self to Write After Approval list.
2018
2019 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
2020
2021         * infcmd.c (interrupt_target_command_wrapper): Delete.
2022         (interrupt_target_command): Make non static.
2023         (nofp_registers_info): Make static.
2024         * stack.c (return_command_wrapper): Delete.
2025         (return_command): Make non static.
2026
2027 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
2028
2029         * event-top.c (gdb_setup_readline): New function. Code moved from
2030         _initialize_event_loop().
2031         (_initialize_event_loop): Call gdb_setup_readline().
2032
2033 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
2034
2035         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2036         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2037         * gdbarch.h, gdbarch.c: Re-generate.
2038
2039 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
2040
2041         Fix PR gdb/778
2042         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2043         before recursing.
2044         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2045         of fill_in_vptr_fieldno.
2046
2047 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
2048
2049         * inferior.h (registers_info, stepi_command, nexti_command,
2050         continue_command, interrupt_target_command): Export from infcmd.c.
2051         * frame.h (args_info, selected_frame_level_changed_hook,
2052         return_command): Export from stack.c.
2053         * v850ice.c (stepi_command, nexti_command, continue_command): use
2054         prototypes from inferior.h.
2055         * tracepoint.c (registers_info, args_info, locals_info): Use
2056         prototypes from frame.h and inferior.h.
2057         * Makefile.in (mi-main.o): Add dependency on frame.h.
2058
2059 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
2060
2061         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2062         value in register 3 adjusted by ppc_gp0_regnum.
2063
2064         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2065
2066 2002-10-02  Marko Mlinar <markom@opencores.org>
2067
2068         * MAINTAINERS: Add myself to the Write After Approval list.
2069
2070 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
2071
2072         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2073         of the section for the N64 ABI, fixed.
2074
2075         * config/mips/tm-irix6.h: Include solib.h.
2076
2077 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
2078
2079         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2080         GNU operators.
2081
2082 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
2083
2084         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2085         and that "mi0" syntax has been removed.
2086
2087 2002-09-30  David Carlton  <carlton@math.stanford.edu>
2088
2089         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2090         * ppc-sysv-tdep.c: #include "gdb_string.h".
2091         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2092         pacify GCC.
2093
2094 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
2095
2096         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2097         "vrsave"'s register number.
2098
2099 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
2100
2101         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2102         use frame_unwind_signed_register to obtain the PC.
2103         (mips_frame_chain): Handle a generic dummy frame.
2104         (mips_init_extra_frame_info): When a generic dummy frame, don't
2105         re-compute the frame base.
2106         (mips_pop_frame): Handle generic dummy frames.
2107         (mips_gdbarch_init): When generic dummy frames, set
2108         use_generic_dummy_frames, push_dummy_frame to
2109         generic_push_dummy_frame, pc_in_call_dummy to
2110         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2111         generic_save_dummy_frame_tos.
2112
2113 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
2114
2115         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
2116         against TOP when TOP was explictly set.
2117         (generic_push_dummy_frame): Set TOP to zero.
2118
2119 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
2120
2121         * event-loop.c (start_event_loop): Rename variable 'result' to
2122         'gdb_result', to avoid conflicts with upcoming intepreters changes.
2123
2124 2002-09-30  Keith Seitz  <keiths@redhat.com>
2125
2126         * gdb-events.sh (selected_thread_changed): New event.
2127         * gdb-events.c: Regenerated.
2128         * gdb-events.h: Regenerated.
2129
2130 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
2131
2132         * MAINTAINERS: Add self to Write After Approval list.
2133
2134 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
2135
2136         * disasm.c: New file.  
2137         * disasm.h: New file.  
2138         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2139         (compare_lines): Ditto.
2140         (dump_insns): Ditto.
2141         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2142         argument.
2143         (do_assembly_only): Ditto.
2144         (do_disassembly): Renamed to gdb_disassembly and moved to
2145         disasm.c.  Sdded uiout argument.
2146         * Makefile.in: Add new files.  Reorder SFILES list. Update
2147         dependencies.  Include libgdb.a later in the insight executable.
2148
2149 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
2150
2151         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2152         bfd/elf64-alpha-fbsd.c.
2153
2154 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
2155
2156         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2157         i386gnu-tdep.c.
2158
2159 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
2160
2161         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2162         __FUNCTION__.
2163         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2164         function name.
2165         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2166         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2167         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2168         (S_msg_sig_post_reply): Ditto.
2169         
2170 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
2171
2172         * sh-tdep.c (sh_use_struct_convention): Use definition according
2173         to ABI.
2174         (sh_push_arguments): Store in register with correct endianess.
2175         (sh_default_store_return_value): Ditto.
2176         (sh_gdbarch_init): Set sizeof long double to 8.
2177
2178 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
2179
2180         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2181         Fix some whitespace problems.
2182
2183 2002-09-27  David Carlton  <carlton@math.stanford.edu>
2184
2185         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2186         (mcore-tdep.o): Ditto.
2187         (ns32k-tdep.o): Ditto.
2188         (ns32knbsd-tdep.o): Ditto.
2189         (sh3-rom.o): Ditto.
2190         (vax-tdep.o): Ditto.
2191         * cris-tdep.c: #include "gdb_string.h"
2192         * mcore-tdep.c: Ditto.
2193         * ns32k-tdep.c: Ditto.
2194         * ns32knbsd-tdep.c: Ditto.
2195         * sh3-rom.c: Ditto.
2196         * vax-tdep.c: Ditto.
2197
2198 2002-09-27  David Carlton  <carlton@math.stanford.edu>
2199
2200         * config/djgpp/fnchange.lst: Add entries for
2201         gdb/testsuite/gdb.c++/m-static files.
2202
2203 2002-09-27  Jim Wilson  <wilson@redhat.com>
2204
2205         * MAINTAINERS: Add myself to the Write After Approval list.
2206
2207 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
2208
2209         * mips-tdep.c (find_proc_desc): Initialize startaddr.
2210
2211
2212 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
2213
2214         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2215         frame.
2216
2217 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
2218
2219         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2220         (rs6000_struct_return_address): Delete variable.
2221         (rs6000_store_struct_return): Update.
2222         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2223         deprecated_extract_struct_value_address.
2224         (rs6000_frame_align): New function.
2225         (rs6000_gdbarch_init): Set frame_align.
2226
2227 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
2228
2229         From Grace Sainsbury <graces@redhat.com>:
2230         * Makefile.in (gdbtk-main.o): New target.
2231         (gdb.o): New target.
2232         (main_h): Define.
2233         (main.o): Update dependencies.
2234         (gdb$(EXEEXT)): Add gdb.o.
2235         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2236         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2237         (SUBDIR_GDBTK_CLEAN): Set.
2238         (install-gdbtk): Install the insight binary.
2239         (uninstall-gdbtk): New target.
2240         (all-gdbtk, clean-gdbtk): New rule.
2241         * top.c (use_windows): Default to zero.
2242         * main.c: Include "main.h".
2243         (main): Delete.
2244         (struct captured_main_args): Delete.
2245         (gdb_main): New function.
2246         * main.h: New file.
2247         * gdb.c: New File.
2248
2249 2002-09-25  Andrew Cagney  <cagney@redhat.com>
2250
2251         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2252         (frame_map_regnum_to_name): New function.
2253         (frame_map_name_to_regnum): New function.
2254         * frame.h (frame_map_name_to_regnum): Declare.
2255         (frame_map_regnum_to_name): Declare.
2256         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2257         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2258         * parse.c: Do not include "builtin-regs.h".
2259         (target_map_name_to_register): Delete function.
2260         (write_dollar_variable): Use frame_map_name_to_regnum.
2261         * parser-defs.h (target_map_name_to_register): Delete declaration.
2262         * expprint.c: Include "frame.h".
2263         (print_subexp): Use frame_map_regnum_to_name.
2264         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2265         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2266
2267 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
2268
2269         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2270         wasn't saved, and the next innermost frame is a dummy, return the
2271         dummy frame's link register.
2272
2273 2002-09-24  Jim Blandy  <jimb@redhat.com>
2274
2275         Fix from Paul Breed:
2276         * main.c (captured_main): Add a `break' after the case for 'b'.
2277
2278 2002-09-24  Keith Seitz  <keiths@redhat.com>
2279
2280         * varobj.c (c_type_of_child): Use get_target_type instead
2281         of TYPE_TARGET_TYPE.
2282
2283 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
2284
2285         * source.c (get_current_or_default_source_symtab_and_line): Remove
2286         function.
2287         (set_default_source_symtab_and_line): New function. Attempts to
2288         determine a source file to list lines from if one is not currently
2289         defined.
2290         (get_current_source_symtab_and_line): Initialize sal.pc and
2291         sal.end fields.
2292         (set_current_source_symtab_and_line): Mark argument as const.
2293         * source.h: Update declarations and comments.
2294         * linespec.c (decode_line_1): Replace call to removed routine above.
2295         * stack.c (print_frame_info_base): Ditto.
2296         * cli/cli-cmds.c (edit_command): Ditto.
2297         (list_command): Ditto.
2298
2299 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
2300
2301         * source.c (get_current_or_default_source_symtab_and_line): Initialize
2302         sal.pc and sal.end fields.
2303         (get_current_or_default_source_symtab_and_line): Ditto.
2304         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2305         so we do not cause a new source symtab to be searched for (reverting an
2306         unintentional change from the 2002-09-20 patch).
2307         * scm-lang.c (scm_unpac): Ditto.
2308
2309 2002-09-21  Andrew Cagney  <cagney@redhat.com>
2310
2311         * complaints.c (symfile_explanations): Remove new-line from
2312         ``isolated_message''.
2313         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2314         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2315
2316 2002-09-20  Nick Clifton  <nickc@redhat.com>
2317         
2318         * NEWS: Announce that V850EA ISA is no longer supported.
2319         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2320
2321 2002-09-20  David Carlton  <carlton@math.stanford.edu>
2322
2323         * Makefile.in (c-lang.o): Correct dependencies.
2324         (utils.o): Gather dependencies.
2325         (charset.o): Move.
2326         * c-lang.c: #include "gdb_string.h"
2327
2328 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
2329
2330         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
2331         * cli/cli-cmds.c (list_command): New function.  Implements the new
2332         cli edit command.
2333         (_init_cli_cmds): Add new command definition.
2334         * gdb.1: Document edit command.
2335         * doc/gdb.texinfo: Document edit command.
2336
2337 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
2338
2339         * source.c: Make global variables current_source_symtab and
2340         current_source_line static.
2341         (list_command): Moved to cli/cli-cmds.c.
2342         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2343         (get_first_line_listed): New accessor function.
2344         (get_lines_to_list): New accessor function.
2345         (get_current_source_symtab_and_line): New function. Retrieves the
2346         position in the source code that we consider current.
2347         (get_current_or_default_source_symtab_and_line): New function.
2348         Like the above but attempts to determine a default position if one
2349         is not currently defined.
2350         (set_current_source_symtab_and_line): New function. Sets the source
2351         code position considered current and returns the previously set one.
2352         (clear_current_source_symtab_and_line): Reset stored information about
2353         a current source line.
2354         (_initialize_source): Remove registration for the "list" command and
2355         its alias.
2356         * source.h: Add declarations for the new functions above.
2357         * symtab.h: Remove declarations for the global variables mentioned
2358         above.
2359         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2360         obtain current source line.
2361         * linespec.c (decode_line_1): Ditto.
2362         * macroscope.c (default_macro_scope): Ditto.
2363         * scm-lang.c (scm_unpac): Ditto.
2364         * stack.c (print_frame_info_base): Ditto.
2365         * symfile.c (clear_symtab_users): Ditto.
2366         * symtab.c (decode_line_spec): Ditto.
2367         * cli/cli-cmds.c (list_command): Moved here from source.c.
2368         (ambiguous_line_spec): Moved here from source.c.
2369         (_init_cli_cmds): Add definition for "list" and its alias.
2370         * Makefile.in: Update dependencies.
2371
2372 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
2373
2374         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2375         with what gcc thinks is correct.
2376
2377 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
2378
2379         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2380         multiple register push instruction.
2381
2382 2002-09-19  Jim Blandy  <jimb@redhat.com>
2383
2384         Add support for distinct host and target character sets.
2385         * charset.c, charset.h: New files.
2386         * c-exp.y: #include "charset.h".
2387         (yylex): Convert character and string literals to the target
2388         character set, before returning them as the semantic value of the
2389         token.
2390         * c-lang.c: #include "charset.h".
2391         (c_emit_char): Use charset-specific methods to recognize
2392         characters with backslash escape forms, to decide which characters
2393         to print literally and which to print using numeric escape
2394         sequences, and to convert target characters to host characters
2395         before printing.
2396         * utils.c: #include "charset.h".
2397         (no_control_char_error): New function.
2398         (parse_escape): Use charset-specific methods to recognize
2399         backslash escapes, parse `control character' notation, and convert
2400         characters from the host character set to the target character set.
2401         * configure.in: Set the default host character set.
2402         Check where to find iconv, and what its argument types might be.
2403         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2404         * Makefile.in (SFILES): List charset.c.
2405         (COMMON_OBS): List charset.o.   
2406         (charset.o): New rule.
2407         (charset_h): New header dependency variable.
2408         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2409         (LIBICONV): New variable, set by configure.
2410         (CLIBS): Include $(LIBICONV) here.
2411         * aclocal.m4, config.in, configure: Regenerated.
2412
2413 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
2414
2415         * ada-exp.y: Add missing semicolons to end rules. Fixes a
2416         bison 1.35 warning.
2417
2418 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
2419
2420         * gdb_mbuild.sh: New file.
2421
2422 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
2423
2424         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2425
2426 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
2427
2428         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2429         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2430         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2431         valops.c, value.h: Revert previous change.
2432         
2433 2002-09-18  Michael Snyder  <msnyder@redhat.com>
2434
2435         Preliminary support for Objective-C:
2436         * defs.h (language_objc): New enum value.
2437         (puts_filtered_tabular): Declaration only, exported from utils.c.
2438         (skip_quoted): Delete, declared in completer.h.
2439         * c-exp.y: Include completer.h.
2440         * p-exp.y: Ditto.
2441         * jv-exp.y: Ditto.
2442         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
2443         New operator enum values.
2444         * language.h (CAST_IS_CONVERSION): Test for language_objc.
2445         * language.c (binop_result_type): Handle language_objc case.
2446         (integral_type, character_type, string_type, boolean_type,
2447         structured_type, binop_type_check): Ditto.
2448         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2449         (struct objc_specific): Add to general_symbol_info.
2450         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2451         (SYMBOL_DEMANGLED_NAME): Handle objc case.
2452         * parser-defs.h (struct objc_class_str): New struct type.
2453         (start_msglist, end_msglist, add_msglist): Declaration only,
2454         exported from objc-lang.c.
2455         * value.h (value_of_local, value_nsstring, 
2456         call_function_by_hand_expecting_type): Exported from valops.c.
2457         * valops.c (find_function_addr): Export.
2458         (call_function_by_hand_expecting_type): New function.
2459         (value_of_local): New function.
2460         * symfile.c (init_filename_language_table): Add ".m" extension
2461         for Objective-C.
2462         * utils.c (puts_filtered_tabular): New function.
2463         (fprintf_symbol_filtered): Add objc demangling support (disabled).
2464         (set/show demangle): Extend help-string to refer to ObjC.
2465         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2466         * stabsread.c (symbol_reference_defined): Objective-C symbols
2467         may contain colons: make allowances when scanning stabs strings
2468         for colons.
2469         (objc_find_colon): New function.
2470         * printcmd.c (address_info): If language == objc then print
2471         "self" instead of "this".
2472         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2473         OP_NSSTRING, and OP_SELF.
2474         (prefixify_subexp): Ditto.
2475         * source.c (print_source_lines): Mention objc in comment.
2476         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2477         method names.
2478
2479 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
2480
2481         * complaints.h: Update copyright.
2482         (struct complaints): Declare.
2483         (struct complaint): Make `message' constant.
2484         (internal_complaint): Declare.
2485         (complaint): Declare.
2486         (complaint_root): Delete declaration.
2487         (symfile_complaints): Delete declaration.
2488         (struct complaints): Add opaque declaration.
2489         (clear_complaints): Add a complaints parameter.
2490         * complaints.c: Update copyright.
2491         (enum complaint_series): Define.
2492         (complaint_root): Delete.
2493         (struct complaints): Define.
2494         (complaint_sentinel, symfile_complaint_book): New variables.
2495         (symfile_explanations, symfile_complaints): New variables.
2496         New variables.
2497         (get_complaints): New function.
2498         (vcomplaint): New function.
2499         (complaint): New function.
2500         (internal_complaint): New function.
2501         (complain): Call vcomplain with symfile_complaint.
2502         (clear_complaints): Rewrite.
2503         (_initialize_complaints): Use add_setshow_command.
2504         * Makefile.in (complaints.o): Update dependencies.
2505         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2506         to call to clear_complaints.
2507         (new_symfile_objfile, reread_symbols): Ditto.
2508         (oldsyms_complaint): Delete.
2509         (empty_symtab_complaint, unknown_option_complaint): Delete.
2510         (free_named_symtabs): Use complaint instead of complain.
2511
2512 2002-09-18  Michael Snyder  <msnyder@redhat.com>
2513
2514         Contributed by Apple Computer, Inc.  Merged with current sources
2515         by Adam Fedor <fedor@doc.com> [cagney].
2516         
2517         * objc-lang.c: First clean-up round: comments, indentation.
2518         * objc-lang.h: Ditto.
2519         * objc-lang.y: Ditto.
2520
2521 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
2522
2523         * maint.c (maintenance_internal_error): Print the parameter as the
2524         error message.
2525         (maintenance_internal_warning): New function.
2526         (_initialize_maint_cmds): Add command `maint internal-warning'.
2527
2528         * defs.h (internal_warning, internal_vwarning): Declare.
2529         * utils.c (struct internal_problem): Define.
2530         (internal_vproblem): New function.
2531         (internal_warning): New function.
2532         (internal_vwarning): New function.
2533         (internal_warning_problem, internal_error_problem): New variables.
2534         (internal_verror): Just call internal_vproblem.
2535
2536 2002-09-18  Michael Snyder  <msnyder@redhat.com>
2537
2538         * objc-lang.c: New file, support for Objective-C.
2539         Preliminary check-in, not yet integrated into gdb.
2540         * objc-lang.h: New file.
2541         * objc-exp.y:  New file.
2542
2543 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
2544
2545         * infrun.c (signal_stop_update): Convert definition to ISO C.
2546         (signal_print_update): Ditto.
2547         (signal_pass_update): Ditto.
2548         * inflow.c (terminal_save_ours): Ditto.
2549
2550         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2551         comments.
2552         
2553         * config/djgpp/fnchange.lst: Handle name clashes between
2554         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2555         bfd/coff-tic80.c.
2556
2557         * i386-linux-tdep.h: Fix tipo.
2558
2559 2002-09-18  Adam Fedor  <fedor@gnu.org>
2560
2561         * MAINTAINERS: Add myself to the Write After Approval list.
2562
2563 2002-09-18  Jim Blandy  <jimb@redhat.com>
2564
2565         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
2566         texthigh and textlow to reader-specific structs caused
2567         objfile_relocate to miss them.  This is fixable, but the work that
2568         the change was supposed to prepare GDB for never got done anyway.
2569
2570 2002-09-18  David Carlton  <carlton@math.stanford.edu>
2571
2572         * MAINTAINERS: Alphabetize Write After Approval list.
2573
2574 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
2575
2576         Fix PR gdb/709
2577         * values.c (value_static_field): Call read_var_value.
2578
2579 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
2580
2581         * valops.c (hand_function_call): Align the initial stack pointer
2582         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
2583         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2584         return value.
2585         * mips-tdep.c (mips_frame_align): New function.
2586         (mips_gdbarch_init): Set frame_align.
2587         * gdbarch.sh (FRAME_ALIGN): New method.
2588         * gdbarch.h, gdbarch.c: Re-generate.
2589
2590 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
2591
2592         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2593         registers.
2594
2595 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
2596
2597         * NEWS: Mention that MIPS $fp behavior changed.
2598         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2599         reference to FP_REGNUM.
2600         (mipsnbsd_cannot_store_register): Ditto.
2601         * mips-linux-nat.c: Update copyright.
2602         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2603         (mips_linux_cannot_store_register): Ditto.
2604         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
2605         * config/mips/tm-mips.h: Update copyright.
2606         (FP_REGNUM): Delete macro.
2607         (MIPS_REGISTER_NAMES): Replace "fp" with "".
2608         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2609         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2610         (mips_r3041_reg_names, mips_r3051_reg_names)
2611         (mips_r3081_reg_names): Replace "fp" with "".
2612         Fix PR gdb/480.
2613
2614 2002-09-17  Theodore A. Roth  <troth@verinet.com>
2615
2616         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
2617         generic_read_register_dummy() (PR gdb/703).
2618         (avr_push_return_address): #if 0 out unused vars.
2619         (avr_gdbarch_init): Enable use of avr_push_return_address().
2620
2621 2002-09-17  Michael Snyder  <msnyder@redhat.com>
2622
2623         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2624         RTE will take care of it.
2625
2626 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
2627
2628         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2629         invalid, return SP_REGNUM.
2630
2631 2002-09-17  Michael Snyder  <msnyder@redhat.com>
2632
2633         * mips-tdep.c (mips_pop_frame): Read saved values of floating
2634         point registers without sign extension.
2635
2636 2002-09-17  Andrew Cagney  <cagney@redhat.com>
2637
2638         * blockframe.c (deprecated_read_register_dummy): Rename
2639         generic_read_register_dummy.
2640         * frame.c (frame_unwind_signed_register): New function.
2641         (frame_unwind_unsigned_register): New function.
2642         * frame.h (frame_unwind_signed_register): Declare.
2643         (frame_unwind_unsigned_register): Declare.
2644         (deprecated_read_register_dummy): Rename
2645         generic_read_register_dummy.
2646
2647         * h8300-tdep.c (h8300_frame_chain): Update.
2648         (h8300_frame_saved_pc): Update.
2649         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2650         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2651         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2652         (s390_frame_chain): Update.
2653         * v850-tdep.c (v850_find_callers_reg): Update.
2654         (v850_frame_saved_pc): Update.
2655         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2656         (m32r_find_callers_reg): Update.
2657         (m32r_frame_saved_pc): Update.
2658         * sh-tdep.c (sh_find_callers_reg): Update.
2659         (sh64_get_saved_pr): Update.
2660         (sh_init_extra_frame_info): Update.
2661         (sh_init_extra_frame_info): Update.
2662         (sh64_init_extra_frame_info): Update.
2663         (sh64_init_extra_frame_info): Update.
2664         * mcore-tdep.c (mcore_find_callers_reg): Update.
2665         (mcore_frame_saved_pc): Update.
2666         (mcore_init_extra_frame_info): Update.
2667         * i386-tdep.c (i386_frame_saved_pc): Update.
2668         * ia64-tdep.c (ia64_frame_saved_pc): Update.
2669         (ia64_init_extra_frame_info): Update.
2670         (ia64_init_extra_frame_info): Update.
2671         * d10v-tdep.c (d10v_frame_saved_pc): Update.
2672         * cris-tdep.c (cris_init_extra_frame_info): Update.
2673         * avr-tdep.c (avr_frame_chain): Update.
2674         (avr_init_extra_frame_info): Update.
2675         (avr_frame_saved_pc): Update.
2676         * arm-tdep.c (arm_find_callers_reg): Update.
2677         (arm_init_extra_frame_info): Update.
2678         (arm_frame_saved_pc): Update.
2679
2680 2002-09-17  Tom Tromey  <tromey@redhat.com>
2681
2682         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2683         is "'".
2684
2685 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
2686
2687         * MAINTAINERS: Remove "non multi-arched" text from h8300.
2688         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2689         NEXT_PROLOGUE_INSN.
2690         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2691         NEXT_PROLOGUE_INSN.
2692
2693 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
2694
2695         * osfsolib.c: Remove file, replaced by solib-osf.c.
2696         * Makefile.in: Remove compilation rules for osfsolib.c.
2697
2698 2002-09-16  David Carlton  <carlton@math.stanford.edu>
2699
2700         * cp-valprint.c (cp_print_class_method): Correct args to
2701         check_stub_method_group.
2702
2703 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
2704
2705         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
2706         `set architecture'.  Unify naming convention of functions.
2707         (h8300_skip_prologue): Improve prologue analysis.
2708         (h8300_push_arguments): Rewritten to more closely match GCC's
2709         bizarre argument-passing behavior, along with the comment describing
2710         said behavior.
2711         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2712         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
2713         sim, remote-e7000.c, remote-hms.c and remote.c
2714
2715 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
2716
2717         * i386-tdep.c (gdb_print_insn_i386): Removed.
2718         (i386_print_insn): New function.
2719         (i386_gdbarch_init): Set print_insn to i386_print_insns.
2720         (_initialize_i386_tdep): Don't initialize tm_print_insn and
2721         tm_print_insn_info.
2722
2723 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
2724
2725         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2726         zero.
2727
2728 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
2729
2730         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2731         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
2732         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2733
2734 2002-09-13  Christopher Faylor  <cgf@redhat.com>
2735
2736         * win32-nat.c (child_create_inferior): Honor 'tty' command.
2737
2738 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
2739
2740         * gdbtypes.c (check_stub_method): Make static.
2741         (check_stub_method_group): New function.
2742         * gdbtypes.h: Update prototypes.
2743         * cp-support.c: New file.
2744         * cp-support.h: New file.
2745
2746         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2747         (update_method_name_from_physname): New function.
2748         (read_member_functions): Correct method names for operators
2749         and v3 constructors/destructors.  Separate v2 constructors and
2750         destructors.
2751         * Makefile.in (stabsread.o): Update dependencies.
2752         (SFILES): Add cp-support.c.
2753         (COMMON_OBS): Add cp-support.o.
2754         (cp_support_h, cp-support.o): Add.
2755
2756         * cp-valprint.c (cp_print_class_method): Call
2757         check_stub_method_group instead of check_stub_method.  Remove
2758         extraneous QUITs.
2759         * p-valprint.c (pascal_object_print_class_method): Likewise.
2760         * valops.c (search_struct_method): Likewise.
2761         (find_method_list, value_struct_elt_for_reference): Likewise.
2762
2763 2002-09-13  Andrew Cagney  <cagney@redhat.com>
2764
2765         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2766         * gdbarch.h, gdbarch.c: Regenerate.
2767
2768 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
2769
2770         * frame.c (find_saved_register): Delete function.
2771         * frame.h (find_saved_register): Delete declaration.
2772         Fix PR gdb/631.
2773
2774 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
2775
2776         * mips-tdep.c (read_next_frame_reg): Re-hack using
2777         frame_register_unwind.
2778
2779 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
2780
2781         * mips-tdep.c (mips_get_saved_register): Re-hack using
2782         frame_register_unwind.
2783
2784 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
2785
2786         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2787         vector. Will be useful for Interix.  
2788         * gdbarch.h, gdbarch.c: Regenerate.
2789
2790         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2791         name of the malloc function by NAME_OF_MALLOC.
2792
2793 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
2794
2795         * value.h (find_function_in_inferior): Add const keyword to
2796         one of the parameters. Allows us to invoke this function with
2797         a const char *.
2798         * valops.c (find_function_in_inferior): Likewise.
2799
2800 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
2801
2802         * exec.c (xfer_memory): Fix compilation warning with old versions
2803         of GCC.
2804         * tracepoint.c (trace_find_tracepoint_command): Likewise.
2805
2806 2002-09-12  David Carlton  <carlton@math.stanford.edu>
2807
2808         * symtab.h: Run through gdb_indent.h.
2809         Add 2002 to Copyright year list.
2810
2811 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
2812
2813         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2814         mach constants.
2815         * MAINTAINERS: Add myself to write after approval list.
2816
2817 2002-09-11  J. Brobecker  <brobecker@gnat.com>
2818
2819         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2820
2821 2002-09-11  J. Brobecker  <brobecker@gnat.com>
2822
2823         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2824         Interix.
2825
2826 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
2827
2828         * procfs.c (do_detach): Clear current signal, not just fault.
2829         Corrects problem with breakpoint trap signal leaking to detached
2830         process on Tru64.
2831
2832 2002-09-10  Michael Snyder  <msnyder@redhat.com>
2833
2834         * buildsym.c (finish_block): Protect against null pointer.
2835
2836 2002-09-10  Andrew Cagney  <cagney@redhat.com>
2837
2838         * infcmd.c (default_print_registers_info): Send all output to
2839         ``file'' instead of ``gdb_stdout''.
2840
2841 2002-09-10  Michael Snyder  <msnyder@redhat.com>
2842
2843         * mips-tdep.c (mips_extract_struct_value_address): Make val a
2844         LONGEST, and use signed register read (addresses are sign-
2845         extended for mips).
2846
2847 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
2848
2849         * event-loop.c (gdb_do_one_event): Make public.
2850         * event-loop.h (gdb_do_one_event): Declare.
2851
2852 2002-09-10  Jeff Law  <law@redhat.com>
2853
2854         * infttrace.c (child_resume): Simplify and rework to avoid
2855         TT_PROC_CONTINUE.
2856
2857 2002-09-09  Fred Fish  <fnf@intrinsity.com>
2858
2859         * printcmd.c (print_scalar_formatted): "len" is the number of
2860         target bytes, NOT the number of target bits.
2861
2862 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
2863
2864         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
2865         * top.c (init_main): Set rl_terminal_name.
2866
2867 2002-09-08  Aidan Skinner <aidan@velvet.net>
2868
2869         * ada-lang.c (ada_array_bound, ada_type_match,
2870         _initialize_ada_language): Fix K&R definitions.
2871         * ada-tasks.c (get_current_task): Fix K&R definitions.
2872         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2873                         
2874 2002-09-07  Christopher Faylor  <cgf@redhat.com>
2875
2876         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2877         Add XP.
2878
2879 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
2880
2881         * i386-tdep.c (i386_register_virtual_type,
2882         i386_register_convertible, i386_register_convert_to_virtual,
2883         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2884         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2885         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
2886         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2887         Don't set push_arguments twice.
2888
2889         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2890         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2891         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2892         sigtramp_end to NULL.
2893         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2894         defines.
2895         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2896
2897         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2898         whitespace.
2899
2900         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2901         * gdbarch.h, gdbarch.c: Re-generate.
2902         * blockframe.c (find_pc_sect_partial_function): Convert to use
2903         SIGTRAMP_START_P predicate.
2904
2905 2002-09-05  Michael Snyder  <msnyder@redhat.com>
2906
2907         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2908         generic_dummy_frame method and old method.  Also distinguish
2909         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2910         (arm_extract_return_value): Use new regcache method.
2911
2912         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2913         adjustment that doesn't conform to the ABI.
2914         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2915         saved regcache, not from current regcache.
2916
2917 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
2918
2919         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
2920         * README: Update.
2921
2922 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
2923
2924         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2925         if arm_apcs_32 is false.
2926
2927 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
2928
2929         GDB 5.3 branch created.
2930
2931 2002-09-03  Theodore A. Roth  <troth@verinet.com>
2932
2933         * gdb/avr-tdep.c (avr_gdbarch_init): Use
2934         generic_unwind_get_saved_register.
2935
2936 2002-09-03  David Carlton  <carlton@math.stanford.edu>
2937
2938         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2939         argument (PR gdb/653).  Update call to smash_to_method_type.
2940         (read_structure_scope): Update call to dwarf2_add_member_fn.
2941
2942 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
2943
2944         * x86-64-linux-tdep.c: Include gdb_string.h
2945         * x86-64-linux-nat.c: Ditto.
2946
2947 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2948
2949         * ada-exp.y (yyname, yyrule): Remap global variables that appear
2950         when YYDEBUG is set to 1.  
2951         * c-exp.y: Likewise.
2952         * f-exp.y: Likewise.
2953         * jv-exp.y: Likewise.
2954         * m2-exp.y: Likewise.
2955         * p-exp.y: Likewise.
2956
2957 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2958
2959         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2960         dependency list.
2961         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2962         solib_svr4_fetch_link_map_offsets to
2963         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2964         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2965         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2966         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2967         solib-svr4.o, and solib-legacy.o.
2968         * config/i386/tm-nbsd.h: Include solib.h.
2969
2970 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2971
2972         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
2973         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
2974         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
2975         comment noting that this needs its own target configuration.
2976         * config/i386/nbsd.mt: New file.
2977         * config/i386/nbsdaout.mt: Remove.
2978         * config/i386/nbsdelf.mt: Ditto.
2979         * config/i386/tm-nbsdaout.h: Ditto. 
2980
2981 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2982
2983         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
2984         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
2985         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2986         tdep->sigtramp_end.
2987         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
2988         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2989         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2990
2991 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2992
2993         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2994         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2995         * i386-tdep.h (i386bsd_init_abi): New prototype.
2996         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2997         function declaration.
2998         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2999         for NetBSD-a.out or NetBSD-ELF.
3000         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3001         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3002         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3003         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
3004         and nbsd-tdep.h.
3005         (i386nbsd_pc_in_sigtramp): New function.
3006         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3007         i386nbsd_pc_in_sigtramp.
3008         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3009         and i386nbsdelf_init_abi OS ABI handlers.
3010         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3011         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3012
3013 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
3014
3015         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3016         registers if the target really has them.
3017
3018 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
3019
3020         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3021         than nbsd-tdep.h.
3022
3023 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
3024
3025         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3026         list.
3027         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3028         (alphanbsd_skip_sigtramp_frame): New functions. 
3029         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3030         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
3031         to alphanbsd_sigcontext_addr. 
3032
3033 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
3034
3035         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3036         list.
3037         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
3038         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3039         nbsd_pc_in_sigtramp. 
3040         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3041         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3042         * nbsd-tdep.c: Include gdb_string.h.
3043         (nbsd_pc_in_sigtramp): New function. 
3044         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
3045         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3046         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3047         ppcnbsd_pc_in_sigtramp. 
3048         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3049         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3050         shnbsd_pc_in_sigtramp. 
3051         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3052         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
3053         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3054
3055 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
3056
3057         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3058         watchpoints to NULL.
3059         (insert_breakpoints): set val field of watchpoints if NULL.
3060
3061
3062 2002-08-29  Jim Blandy  <jimb@redhat.com>
3063
3064         * symtab.c (lookup_symbol_aux): In the cases where we find a
3065         minimal symbol of an appropriate name and use its address to
3066         select a symtab to read and search, use `name' (as passed to us)
3067         as the demangled name when searching the symtab's global and
3068         static blocks, not the minsym's name.
3069
3070 2002-08-29  Keith Seitz  <keiths@redhat.com>
3071
3072         * stack.c (print_frame_info_base): Always set current_source_symtab
3073         and current_source_line.
3074
3075 2002-08-29  Donn Terry  <donnte@microsoft.com>
3076
3077         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3078
3079 2002-08-28  Keith Seitz  <keiths@redhat.com>
3080
3081         * stack.c (select_frame): Add FIXME concerning selected-frame
3082         events.
3083         (select_frame_command): Send selected-frame-level-changed
3084         event notification, but only if the level actually changed.
3085         (up_silently_base): Add selected-frame-level-changed event
3086         notification.
3087         (down_silently_base): Likewise.
3088
3089 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
3090
3091         * Makefile.in: Update dependencies for all gdb/*.c files.
3092
3093 2002-08-27  Tom Tromey  <tromey@redhat.com>
3094
3095         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3096         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3097         Update dependencies.
3098         * i387-tdep.c: Include gdb_string.h.
3099         * osabi.c: Likewise.
3100         * i386-linux-nat.c: Likewise.
3101         * lin-lwp.c: Likewise.
3102         * ax-gdb.c: Likewise.
3103         * signals/signals.c: Likewise.
3104         * jv-valprint.c: Likewise.
3105         * p-lang.c: Likewise.
3106         * c-valprint.c: Likewise.
3107         * cp-abi.c: Likewise.
3108
3109 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
3110
3111         * cli/cli-script.h (copy_command_lines): Export.
3112         * breakpoint.c: Include cli/cli-script.h.
3113         * Makefile.in (breakpoint.o): Update dependencies.
3114
3115 2002-08-26  Michael Snyder  <msnyder@redhat.com>
3116
3117         * breakpoint.c (insert_breakpoints): Protect all references
3118         to 'process_warning'.  Shorten long lines.
3119
3120 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
3121
3122         * cli/cli-script.c (copy_command_lines): New function.
3123         * defs.h (copy_command_lines): Export.
3124         * testsuite/gdb.base/commands.exp: New tests for commands
3125         attached to a temporary breakpoint, and for commands that
3126         delete the breakpoint they are attached to.
3127         
3128 2002-08-26  Michael Snyder  <msnyder@redhat.com>
3129
3130         * breakpoint.c (bpstat_stop_status): Instead of copying the 
3131         pointer to the breakpoint commands struct, make a new copy
3132         of the struct and point to that.
3133         (bpstat_clear): Free the commands struct.
3134         (bpstat_clear_actions): Free the commands struct.
3135         (bpstat_do_actions): Free the command actions.  Also execute
3136         the local cleanups, instead of deleting them.
3137         (delete_breakpoint): Leave the commands field of the bpstat
3138         chain alone -- it will be freed later.
3139
3140 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
3141
3142         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3143         deleted in 2002-08-20 commit.  This function is still used by
3144         ppc-linux-nat.c.
3145
3146 2002-08-26  Keith Seitz  <keiths@redhat.com>
3147
3148         * gdb-events.sh: Add selected-frame-level-changed event.
3149         * gdb-events.c: Regenerated.
3150         * gdb-events.h: Regenerated.
3151         
3152 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
3153
3154         Fix PR gdb/393:
3155         * inflow.c (terminal_save_ours): New function to save terminal
3156         settings.
3157         * inferior.h (terminal_save_ours): Declare.
3158         * target.c (debug_to_terminal_save_ours): New function.
3159         (cleanup_target): Defaults to_terminal_save_ours.
3160         (update_current_target): Inherit to_terminal_save_ours.
3161         (setup_target_debug): Set to_terminal_save_ours.
3162         * target.h (target_terminal_save_ours): New to save terminal settings.
3163         (target_ops): New member to_terminal_save_ours.
3164         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3165         * hpux-thread.c (init_hpux_thread_ops): Likewise.
3166         * inftarg.c (init_child_ops): Likewise.
3167         * m3-nat.c (init_m3_ops): Likewise.
3168         * procfs.c (init_procfs_ops): Likewise.
3169         * wince.c (init_child_ops): Likewise.
3170         * win32-nat.c (init_child_ops): Likewise.
3171         * sol-thread.c (init_sol_thread_ops): Likewise.
3172
3173 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
3174
3175         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
3176         use regcache_* functions.
3177         (i386_gdbarch_init): Set store_return_value instead of
3178         deprecated_store_return_value.
3179
3180         * regcache.c (regcache_raw_write_signed,
3181         regcache_raw_write_unsigned): New functions.
3182         * regcache.h (regcache_raw_write_signed,
3183         regcache_raw_write_unsigned): New prototypes.
3184
3185 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
3186
3187         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3188         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3189         source file dependencies.  Cleanup corresponding generator rules.
3190
3191 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
3192
3193         * regcache.h (register_offset_hack): Declare.
3194         (regcache_cooked_read_using_offset_hack): Declare.
3195         (regcache_cooked_write_using_offset_hack): Declare.
3196
3197         * regcache.c (register_offset_hack): New function.
3198         (regcache_cooked_read_using_offset_hack): New function.
3199         (regcache_cooked_write_using_offset_hack): New function.
3200         (regcache_dump): Check that the registers, according to their
3201         offset, are packed hard against each other.
3202         (cooked_xfer_using_offset_hack): New function.
3203
3204 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
3205
3206         * regcache.c (struct regcache_descr): Add field register_type.
3207         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3208         in as a parameter
3209         (init_regcache_descr): Initialize register_type.  Pass the descr
3210         to init_legacy_regcache_descr.  Use register_type instead of
3211         REGISTER_VIRTUAL_TYPE.
3212         (register_type): New function.
3213         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3214         * regcache.h (register_type): Declare.
3215
3216 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
3217
3218         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3219         instead of deprecated_store_return_value.  Fix fallout from
3220         2002-08-23 Andrew Cagney <cagney@redhat.com>.
3221
3222 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
3223
3224         * regcache.c (max_register_size): New function.
3225         (init_legacy_regcache_descr): Ensure that max_register_size is
3226         large enough for REGISTER_VIRTUAL_SIZE.
3227         * regcache.h (max_register_size): Declare.
3228
3229 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
3230
3231         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3232         store_return_value.
3233         (e500_extract_return_value): Change type of valbuf pointer to
3234         void.
3235
3236 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
3237
3238         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3239         workaround.
3240
3241         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3242         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3243         long long) to prevent compiler warning on 64-bit systems.
3244
3245 2002-08-23  Andrew Cagney  <cagney@redhat.com>
3246
3247         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3248         (DEPRECATED_STORE_RETURN_VALUE): New method.
3249         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3250         * gdbarch.h, gdbarch.c: Re-generate.
3251
3252         * values.c (set_return_value): Pass current_regcache to
3253         STORE_RETURN_VALUE.
3254         * arch-utils.h (legacy_store_return_value): Declare.
3255         * arch-utils.c (legacy_store_return_value): New function.
3256         (legacy_extract_return_value): Update parameters.
3257
3258         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3259         STORE_RETURN_VALUE.
3260         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3261         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3262         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3263         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3264         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3265         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3266         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3267         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3268         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3269         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3270
3271         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3272         * i386-tdep.c (i386_extract_return_value): Update.
3273         * arch-utils.c (legacy_extract_return_value): Update.
3274         * frv-tdep.c (frv_gdbarch_init): Update.
3275         * cris-tdep.c (cris_gdbarch_init): Update.
3276         * d10v-tdep.c (d10v_gdbarch_init): Update.
3277         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3278         * m68k-tdep.c (m68k_gdbarch_init): Update.
3279         * mcore-tdep.c (mcore_gdbarch_init): Update.
3280         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3281         * s390-tdep.c (s390_gdbarch_init): Update.
3282         * sparc-tdep.c (sparc_gdbarch_init): Update.
3283         * sh-tdep.c (sh_gdbarch_init): Update.
3284         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3285         * v850-tdep.c (v850_gdbarch_init): Update.
3286         * avr-tdep.c (avr_gdbarch_init): Update.
3287         * ia64-tdep.c (ia64_gdbarch_init): Update.
3288         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3289         * vax-tdep.c (vax_gdbarch_init): Update.
3290         * alpha-tdep.c (alpha_gdbarch_init): Update.
3291         * arm-tdep.c (arm_gdbarch_init): Update.
3292         * mips-tdep.c (mips_gdbarch_init): Update.
3293         * i386-tdep.c (i386_gdbarch_init): Update.
3294
3295 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
3296
3297         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3298         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3299
3300 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
3301
3302         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
3303         problems.
3304
3305 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
3306
3307         * infrun.c (handle_inferior_event): Move a comment outside of a
3308         function call, in order to avoid indent reformatting this part
3309         of the code in an unreadable way.
3310
3311 2002-08-23  Grace Sainsbury  <graces@redhat.com>
3312
3313         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3314         when breakpoints fail. Move general breakpoint error messages to
3315         insert_breakpoints.  
3316         * breakpoint.c (insert_breakpoints): Change warnings when
3317         breakpoints are nto inserted to specify the type. Remove call to
3318         memory_error when hardware breakpoints can't be inserted. Remove
3319         multiple calls to warning so all messages are sent to the user at
3320         once.
3321         (delete_breakpoints): Make insert error messsages more explicit.
3322
3323 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
3324
3325         * ChangeLog: Move gdbserver entries after GDB 5.2 to
3326         gdbserver/ChangeLog.
3327
3328 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
3329
3330         * i386-tdep.c: Include "objfiles.h".
3331         (i386_svr4_init_abi): Set in_solib_call_trampoline and
3332         skip_trampoline_code.
3333         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3334         (CPLUS_MARKER): Define to '.'.
3335
3336         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3337         member.
3338         (linux_corefile_thread_callback): Increase args->num_notes.
3339         (linux_make_note_section): Initialize thread_args.num_notes, and
3340         use it to determine whether notes for any threads were created.
3341
3342 2002-08-23  Donn Terry  <donnte@microsoft.com>
3343
3344         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3345         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3346         and PCUNKILL.
3347         (write_with_trace): Conditionalize out the switch branch handling
3348         PCSHOLD if the corresponding macro is not defined. Likewise for
3349         PRSABORT and PRSTOP.
3350         This change will be needed by the Interix port.
3351
3352 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
3353
3354         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3355         write_register wherever possible instead of manipulating the
3356         register bytes directly.
3357         Assign VALUE_CONTENTS to a variable and use that.
3358         The GPR numbers are now dependent on the architecture.
3359         
3360 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
3361
3362         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3363         ev_offset fields.
3364         (skip_prologue): Add support for BookE/e500 instructions.
3365         (e500_extract_return_value): New function.
3366         (frame_get_saved_regs): Add support for saving ev registers and
3367         pseudo gpr's.
3368         (e500_store_return_value): New function.
3369         (rs6000_gdbarch_init): Move up default intializations of
3370         deprecated_extract_return_value and store_return_value.  Overwrite
3371         init of store_return_value with e500 specific version.
3372         Set extract_return_value for e500.
3373         
3374 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
3375
3376         * blockframe.c (generic_call_dummy_register_unwind): Use
3377         regcache_cooked_read to catch cases in which the variable is
3378         stored in a pseudo register.
3379
3380 2002-08-22  Andrew Cagney  <cagney@redhat.com>
3381
3382         * NEWS: Mention that the i960 has been made obsolete.
3383         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3384         i960-tdep.c
3385         (remote-nrom.o): Obsolete target.
3386         (remote-nindy.o, i960-tdep.o): Ditto.
3387         * remote-nrom.c: Make file obsolete.
3388         * remote-nindy.c, remote-vx960.c: Ditto.
3389         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3390         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3391         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3392         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3393         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3394         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3395         i960-*-vxworks* obsolete.
3396         * MAINTAINERS: Note that the i960 is obsolete.
3397
3398 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
3399
3400         * aix-thread.c (aix_thread_detach): Disable thread debugging on
3401         detach to allow reinitialization.
3402
3403 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
3404
3405         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3406         attempt).
3407
3408 2002-08-22  Jim Blandy  <jimb@redhat.com>
3409
3410         * coffread.c (coff_symfile_read): Don't try to read the line
3411         number table from disk if the image file doesn't have a symbol
3412         table; we'll never actually look at the info anyway, and Windows
3413         ships DLL's with bogus file offsets for the line number data.
3414
3415 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
3416
3417         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3418         an e500 executable.
3419
3420 2002-08-21  Michael Snyder  <msnyder@redhat.com>
3421
3422         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3423         (MSYMBOL_SIZE): Replace macro with function.
3424         (DEFAULT_MIPS_TYPE): Delete unused macro.
3425         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3426         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3427
3428 2002-08-21  Jim Blandy  <jimb@redhat.com>
3429
3430         * valops.c (value_cast): Simplify and correct logic for doing a
3431         static cast from a pointer to a base class to a pointer to a
3432         derived class.
3433
3434 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
3435
3436         * infcmd.c (default_print_registers_info): Replace
3437         do_registers_info.
3438         (registers_info): Use gdbarch_print_registers_info instead of
3439         DO_REGISTERS_INFO.
3440         * inferior.h (default_print_registers_info): Replace
3441         do_registers_info.
3442         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3443         (DO_REGISTERS_INFO): Change to a predicate function.
3444         * gdbarch.h, gdbarch.c: Regenerate.
3445         
3446 2002-08-21  Keith Seitz  <keiths@redhat.com>
3447
3448         * gdb-events.sh: Add target-changed event.
3449         * gdb-events.c: Regenerated.
3450         * gdb-events.c: Regenerated.
3451         * valops.c (value_assign): Add target-changed event notification
3452         to inlval_register, lval_memory, and lval_reg_frame_relative.
3453
3454 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
3455
3456         * NEWS: Add an entry regarding the improvement of the next/step
3457         operation on Alpha Tru64 multi-processor machines.
3458
3459 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
3460
3461         * Makefile.in: Update dependencies for mi/ cli/ and tui/
3462         directores.
3463         * Makefile.in: Update all _h macro definitions.
3464         * Makefile.in (install-gdbtk): Move to install section.
3465         (rdi-share/libangsd.a): Move to end of file.
3466
3467 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
3468
3469         * frame.c (frame_register_unwind): When a register, set addrp to
3470         the register's byte.
3471
3472 2002-08-20  Michael Snyder  <msnyder@redhat.com>
3473
3474         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3475         used locally, so move them from the target machine header to here.
3476         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
3477         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
3478         Make static.
3479         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3480
3481 2002-08-20  Andrew Cagney  <cagney@redhat.com>
3482
3483         * NEWS: Mention that the Apollo line was made obsolete.
3484         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3485         m68*-hp-hpux* obsolete.
3486         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3487         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3488         * buildsym.c (make_blockvector): Make static.
3489         * buildsym.h (make_blockvector): Make extern declaration obsolete.
3490         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3491         (ALLDEPFILES): Remove dstread.c.
3492         (dstread.o): Obsolete make rule.
3493         * dstread.c: Makefile obsolete.
3494         * dst.h: Ditto.
3495         * config/m68k/hp300hpux.mt: Ditto.
3496         * config/m68k/hp300hpux.mh: Ditto.
3497         * config/m68k/hp300bsd.mt: Ditto.
3498         * config/m68k/hp300bsd.mh: Ditto.
3499         * config/m68k/apollo68b.mt: Ditto.
3500         * config/m68k/apollo68v.mh: Ditto.
3501         * config/m68k/apollo68b.mh: Ditto.
3502
3503 2002-08-20  Michael Snyder  <msnyder@redhat.com>
3504
3505         * mips-tdep.c (mips_in_return_stub): Make static.
3506         (mips_gdbarch_init): Set in_solib_return_trampoline.
3507         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3508
3509 2002-08-20  Michael Snyder  <msnyder@redhat.com>
3510
3511         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3512         * gdbarch.c, gdbarch.h: Regenerate.
3513         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3514         Add.
3515         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3516
3517 2002-08-20  Michael Snyder  <msnyder@redhat.com>
3518
3519         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3520         (mips_gdbarch_init): Set skip_trampoline_code, 
3521         in_solib_call_trampoline.
3522         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3523         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3524
3525 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
3526
3527         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3528
3529         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3530         vector type for ev registers.
3531         (e500_pseudo_register_read): New function.
3532         (e500_pseudo_register_write): New function.
3533         (e500_dwarf2_reg_to_regnum): New function.
3534         (PPC_UISA_NOFP_SPRS): New macro.
3535         (PPC_EV_REGS): New macro.
3536         (PPC_GPRS_PSEUDO_REGS): New macro.
3537         (registers_e500): New register set for e500.
3538         (variants): Add e500 variant.
3539         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3540         before setting architectural dependent variations.  Initialize ev
3541         registers numbers.  Add case for e500 architecture.  Set the
3542         number of pseudo registers.
3543
3544 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
3545
3546         * rs6000-tdep.c: Clean up comments.
3547
3548 2002-08-20  Andrew Cagney  <cagney@redhat.com>
3549
3550         * h8300-tdep.c: Re-indent file.
3551
3552 2002-08-20  Jim Blandy  <jimb@redhat.com>
3553
3554         * Makefile.in (LDFLAGS): Allow the configure script to establish a
3555         default for this.
3556
3557 2002-08-20  Keith Seitz  <keiths@redhat.com>
3558
3559         * breakpoints.c (watch_command_1): Use internal breakpoint
3560         when setting a watchpoint_scope breakpoint.
3561
3562 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
3563
3564         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3565         (build_builtin_type_vec64i): Ditto.
3566         (build_builtin_type_vec128): Ditto.
3567         (build_builtin_type_vec128i): Ditto.
3568
3569 2002-08-19  Michael Snyder  <msnyder@redhat.com>
3570
3571         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3572         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3573         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3574         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3575         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3576         CALL_DUMMY_ADDRESS): Delete.
3577         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3578         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3579         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
3580         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
3581         push_return_address.
3582         (mips_register_raw_size, mips_eabi_use_struct_convention, 
3583         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3584         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3585         mips_init_extra_frame_info, mips_eabi_push_arguments, 
3586         mips_n32n64_push_arguments, mips_push_return_address,
3587         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3588         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3589
3590 2002-08-19  Michael Snyder  <msnyder@redhat.com>
3591
3592         * mips-tdep.c (mips_frame_num_args): New function.
3593         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3594         frame_saved_pc, frame_args_address, frame_locals_address, 
3595         frame_num_args, and frame_args_skip.
3596         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3597         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
3598         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3599         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3600
3601 2002-08-20  Michael Snyder  <msnyder@redhat.com>
3602
3603         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3604         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3605         * mips-tdep.c (mips_store_struct_return): New function.
3606         (mips_extract_struct_value_address): New function.
3607         (mips_gdbarch_init): Set store_struct_return and
3608         extract_struct_value_address.
3609
3610 2002-08-20  David Carlton  <carlton@math.stanford.edu>
3611
3612         * dwarf2read.c (dwarf2_build_psymtabs): Check that
3613         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3614         (read_file_scope): Check that line_header is nonzero before
3615         decoding macro information.
3616
3617 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
3618
3619         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3620         flag the general-purpose registers as floating-point on targets
3621         that don't support the floating-point registers.
3622
3623 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
3624
3625         * rs6000-tdep.c (altivec_register_p): Delete.
3626         (rs6000_do_altivec_registers): Delete.
3627         (rs6000_altivec_registers_info): Delete.
3628         (rs6000_do_registers_info): Delete.
3629         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3630         (rs6000_gdbarch_init): Remove setting of do_registers_info.
3631
3632 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
3633
3634         * infcmd.c (do_registers_info): Print vector registers in hex
3635         format only.
3636         (print_vector_info): Check that printing registers
3637         makes sense.
3638         (print_float_info): Ditto.
3639
3640 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
3641
3642         * mips-tdep.c (mips_gdbarch_init): Update.
3643         (mips_o32_extract_return_value): Rewrite.
3644         (mips_o32_store_return_value): Rewrite.
3645         (mips_o32_xfer_return_value): New function.
3646         (mips_xfer_register): Tweak debug print message.  Allow for
3647         buf_offset when dumping the value transfered.
3648
3649 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
3650
3651         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3652         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3653         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3654         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3655         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3656
3657 2002-08-14  Michael Snyder  <msnyder@redhat.com>
3658
3659         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3660
3661 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
3662
3663         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3664         register.
3665         (P): New macro to define a register as a pseudo register.
3666         (R, R4, R8, R16, FR32, R64, R0): Updated.
3667         (struct variant): Add new fields for number of pseudo registers
3668         and number of total registers.
3669         (tot_num_registers): New macro replacing....
3670         (num_registers): ...deleted macro.
3671         (num_registers): New function.
3672         (num_pseudo_registers): New function.
3673         (variants): Update all variants to intialize new fields correctly.
3674         Postpone initialization of number of pseudo regs and real regs.
3675         (init_variants): New function.
3676         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
3677         registers offsets.
3678
3679 2002-08-19  David Carlton  <carlton@math.stanford.edu>
3680
3681         * valops.c (search_struct_field): Change error message to treat
3682         return value of 0 from value_static_field as meaning that field is
3683         optimized out.
3684         (value_struct_elt_for_reference): Ditto.
3685         * values.c (value_static_field): Treat an unresolved location the
3686         same as a nonexistent symbol.  Fix PR gdb/635.
3687         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3688         enclosed.  Fix PR gdb/574.
3689         * MAINTAINERS: Add self to Write After Approval list.
3690
3691 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
3692
3693         * mips-tdep.c (mips_xfer_register): New function.
3694         (mips_n32n64_extract_return_value): Rewrite.
3695         (mips_gdbarch_init): For N32 and N64, set extract_return_value
3696         instead of deprecated_extract_return_value.
3697
3698 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
3699
3700         * rs6000-tdep.c (TDEP): Delete macro.
3701         (branch_dest): Replace use of TDEP macro with its body.
3702         (rs6000_pop_frame): Ditto.
3703         (rs6000_push_arguments): Ditto.
3704         (rs6000_skip_trampoline_code): Ditto.
3705         (rs6000_frame_saved_pc): Ditto.
3706         (rs6000_frame_chain): Ditto.
3707         (rs6000_register_name): Ditto.
3708         (rs6000_register_byte): Ditto.
3709         (rs6000_register_raw_size): Ditto.
3710         (rs6000_register_virtual_type): Ditto.
3711         (rs6000_register_convertible): Ditto.
3712         (rs6000_convert_from_func_ptr_addr): Ditto.
3713
3714 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
3715
3716         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3717         conditionally.
3718         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3719         MIPS_LINUX_JB_ELEMENT_SIZE.
3720         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3721         for MAX_REGISTER_RAW_SIZE arrays.
3722         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3723         MIPS_LINUX_JB_ELEMENT_SIZE.
3724
3725 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
3726
3727         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3728
3729 2002-08-19  Aidan Skinner <aidan@velvet.net>
3730
3731         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3732         ada-valprint.c ada-tasks.c.
3733         (YYFILES): Add ada-exp.y.
3734         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3735         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3736         (ada-exp.tab.o): New target.
3737                 
3738 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
3739
3740         * regcache.c (regcache_xfer_part): New function.
3741         (regcache_raw_read_part): New function.
3742         (regcache_raw_write_part): New function.
3743         (regcache_cooked_read_part): New function.
3744         (regcache_cooked_write_part): New function.
3745         * regcache.h (regcache_raw_read_part): Declare.
3746         (regcache_raw_write_part): Declare.
3747         (regcache_cooked_read_part): Declare.
3748         (regcache_cooked_write_part): Declare.
3749
3750 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
3751
3752         * remote.c (remote_open_1): Add async_p.
3753         (remote_async_open_1): Delete.
3754         (open_remote_target): Delete.
3755         (remote_open, extended_remote_open): Update calls to remote_open_1.
3756         (remote_async_open, extended_remote_async_open): Call
3757         remote_open_1 instead of remote_async_open_1.
3758
3759 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
3760
3761         * blockframe.c: Fix a few coding standard violations.
3762
3763 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
3764
3765         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3766         here from ...
3767         * config/i386/tm-i386sco5.h: ... here.  File removed.
3768         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3769
3770         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3771         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3772         (TM_FILE): Set to tm-i386.h.
3773         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3774         * config/i386/tm-i386v.h: Remove file.
3775         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3776         instead of "i386/tm-i386v.h".
3777         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3778         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3779         "i386/tm-i386v.h".
3780         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3781         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3782         "i386/tm-i386.h".
3783
3784 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
3785
3786         * config/i386/nm-i386v.h: Add protection against
3787         multiple-inclusion.
3788         (i386_register_u_addr): Remove prototype.
3789         (register_u_addr): New prototype.
3790         (REGISTER_U_ADDR): Redefine accordingly.
3791         * i386v-nat.c: Improve several comments.
3792         (i386_register_u_addr): Change signature and rename to
3793         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
3794         ubase variable.
3795
3796 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
3797
3798         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3799         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3800         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3801         deprecated_extract_return_value.
3802         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3803         rename mips_o32o64_push_arguments.
3804         (mips_gdbarch_init): Update.
3805         (mips_extract_return_value): Delete.
3806         (mips_o32_extract_return_value): Clone mips_extract_return_value.
3807         (mips_o64_extract_return_value): Clone mips_extract_return_value.
3808         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3809         (mips_n32n64_extract_return_value): Clone
3810         mips_extract_return_value.
3811         (mips_store_return_value): Delete.
3812         (mips_o32_store_return_value): Clone mips_store_return_value.
3813         (mips_o64_store_return_value): Clone mips_store_return_value.
3814         (mips_eabi_store_return_value): Clone mips_store_return_value.
3815         (mips_n32n64_store_return_value): Clone mips_store_return_value.
3816
3817 2002-08-18  Aidan Skinner <aidan@velvet.net>
3818
3819         * ada-lang.c: Use gdb_string.h instead of <string.h>.
3820         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3821                 
3822 2002-08-18  Aidan Skinner <aidan@velvet.net>
3823
3824         * ada-lang.c: Run through gdb_indent.sh.
3825         * ada-lang.h: Run through gdb_indent.sh.
3826         * ada-tasks.c: Run through gdb_indent.sh.
3827         * ada-typeprint.c: Run through gdb_indent.sh.
3828         * ada-valprint.c: Run through gdb_indent.sh.
3829
3830 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
3831
3832         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3833         ABI.
3834
3835 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
3836
3837         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3838
3839         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3840         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3841
3842         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3843         write_register_gen instead of write_register_bytes.
3844
3845         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3846         i[3456]-*-osf1mk* configurations have been made obsolete.
3847         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3848         i[3456]86-*-osf1mk* hosts obsolete.
3849         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3850         targets obsolete.
3851         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3852         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3853         config/i386/i386m3.mt, config/i386/nm-m3.h,
3854         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3855         config/i386/i386mk.mh, config/i386/i386mk.mt,
3856         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3857         obsolete.
3858         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3859         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3860         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3861
3862 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
3863
3864         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3865         (hppa_value_returned_from_stack): Declare.
3866         (hppa_extract_return_value): Declare.
3867         * config/pa/hppa.mt: New file.
3868         * configure.tgt: Recognize hppa*-*-*.
3869         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
3870
3871 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
3872
3873         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3874         comment.
3875
3876 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
3877
3878         * top.c (gdb_rl_operate_and_get_next): Make sure
3879         operate-and-get-next functions correctly even when the history
3880         list is completely filled.
3881
3882 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
3883
3884         * MAINTAINERS (Target Instruction Set Architectures): Rename
3885         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
3886         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
3887         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
3888         already listed under Host/Native.
3889
3890         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3891         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
3892         mips*-*-*.
3893
3894 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
3895
3896         * config/ia64/ia64.mt: New file.
3897         * config/alpha/alpha.mt: New file.
3898         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3899         ia64-linux-gnu.  Mention that ia64-elf is broken.
3900         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3901
3902 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
3903
3904         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3905         generic_func_frame_valid instead of func_frame_valid.
3906
3907 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
3908
3909         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3910         procfs appears to be broken when debugging on multi-processor
3911         machines. So enable software single stepping in order to avoid
3912         using the procfs interface to do next/step operations, using
3913         internal breakpoints instead.
3914
3915         * infrun.c (handle_inferior_event): Readjust the stop_pc by
3916         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3917         make this pc address equal to the value it would have if the
3918         system stepping capability was used. Also set a new flag used
3919         to ensure that we don't readjust the PC one more time later.
3920
3921         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3922         address by DECR_PC_AFTER_BREAK when software single step is
3923         in use for this architecture, as this has already been taken
3924         care of in handle_inferior_event().
3925
3926 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
3927
3928         * infrun.c (handle_inferior_event): Minor reformatting, to make
3929         a rather long condition expression easier to read.
3930
3931 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
3932
3933         * Makefile.in (gdbtk.o): Move to end of file.
3934         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3935         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3936         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3937         (gdbtk-wrapper.o, gdbres.o): Ditto.
3938
3939 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
3940
3941         * Makefile.in (copying.o): Separate out compile rule.
3942         (hpux-thread.o, procfs.o, signals.o): Ditto.
3943         (v850ice.o, z8k-tdep.o): Ditto.
3944         (tui-file.o): Move to TUI section.
3945         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3946         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3947
3948 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
3949
3950         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3951         skip_trampoline_code, for better namespace-proofing.   
3952
3953         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3954
3955 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
3956
3957         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3958
3959 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
3960
3961         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3962         signal, check whether we hit a breakpoint before checking for a
3963         single step breakpoint. Otherwise, GDB fails to notice that a
3964         breakpoint has been hit when stepping onto a breakpoint.
3965
3966 2002-08-16  Keith Seitz  <keiths@redhat.com>
3967
3968         * gdb-events.sh (clear_gdb_event_hooks): New function.
3969         * gdb-events.c: Regenerate.
3970         * gdb-events.h: Regenerate.
3971
3972 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
3973
3974         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3975         not_a_sw_breakpoint.
3976         * breakpoint.h (bpstat_stop_status): Add parameter names.
3977
3978 2002-08-16  Grace Sainsbury  <graces@redhat.com>
3979
3980         * remote.c (remote_insert_hw_breakpoint)
3981         (remote_remove_hw_breakpoint): Fix calculation of length field
3982         for Z-packet.
3983
3984 2002-08-15  Michael Snyder  <msnyder@redhat.com>
3985
3986         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3987         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3988         (supply_fpregset): Ditto.
3989         
3990         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
3991         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
3992         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3993         (TARGET_READ_SP): Delete.
3994         (DO_REGISTERS_INFO): Delete.
3995         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3996         Delete.
3997         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3998         from macros to functions.
3999
4000         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4001         (mips_register_convertible, mips_register_convert_to_virtual,
4002         mips_register_convert_to_raw): Make static.
4003         (mips_read_sp): New function.
4004         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4005         (mips_do_registers_info): Make static.
4006         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4007         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4008         (mips_register_convert_from_type, mips_register_convert_to_type):
4009         New functions.
4010         (mips_gdbarch_init): Set up function_start_offset, 
4011         register_virtual_size, pc_in_sigtramp.
4012
4013 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
4014
4015         * infcmd.c (vector_info): New function.
4016         (_initialize_infcmd): Add command "info vector".
4017         (print_vector_info): New function.
4018
4019         * gdbarch.sh (PRINT_VECTOR_INFO): New method
4020         * gdbarch.h, gdbarch.c: Regenerate.
4021
4022 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
4023
4024         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4025         ``print_all''.  Only print vector registers when ``print_all''.
4026
4027 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
4028
4029         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4030         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4031
4032         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4033         Add `args' parameter.
4034         * gdbarch.h, gdbarch.c: Regenerate.
4035         
4036         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4037         
4038         * infcmd.c (float_info): Call print_float_info.
4039         (print_float_info): New function.  By default, print the
4040         floating-point registers.
4041
4042         * arch-utils.h (default_print_float_info): Delete declaration.
4043         * arch-utils.c (default_print_float_info): Delete function.
4044         
4045 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
4046
4047         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4048         out define.
4049
4050         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4051         FRAME.
4052
4053         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4054         * configure.host: Make i[3456]86-*-aix host obsolete.
4055         * configure.tgt: Make i[3456]86-*-aix target obsolete.
4056         * config/i386/i386aix.mh, config/i386/i386aix.mt,
4057         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4058         config/i386/xm-i386aix.h: Make files obsolete.
4059         * i386aix-nat.c: Make file obsolete.
4060         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4061         (i386aix-nat.o): Make target obsolete.
4062
4063         * config/i386/nm-gnu.h: Removed.
4064         * config/i386/nm-i386gnu.h: New file.
4065         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4066         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4067         Moved here from ...
4068         * config/i386/tm-i386gnu.h: ... here.  Removed.
4069         * config/i386/xm-i386gnu.h: Removed.
4070         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4071         (NAT_FILE): Set to nm-i386gnu.h.
4072         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4073         * i386-tdep.c: New file.
4074         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4075         (i386gnu-tdep.o): Specify dependencies.
4076
4077 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
4078
4079         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4080         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4081         Adjust a few comments to reflect reality a bit closer.
4082         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4083         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4084         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4085         target_insert_watchpoint, target_remove_watchpoint):
4086         Move defines to ...
4087         * config/i386/nm-i386sco5.h: ... here.
4088         (kernel_u_size): Add prototype.  Improve a few comments and add
4089         protection against multiple inclusion.
4090         
4091         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4092         out define.
4093
4094         * uw-thread.c (SP_ARG0): Define if not already defined.
4095         * config/i386/tm-i386.h (SO_ARG0): Remove define.
4096
4097         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4098
4099         * config/i386/tm-i386.h: Don't include "regcache.h".
4100
4101         * i387-tdep.h (i387_print_float_info): New prototype.
4102         * i387-tdep.c (print_i387_value, print_i387_ext,
4103         print_i387_status_word, print_i387_control_word): Add `struct
4104         ui_file *' argument and use it for output.
4105         (i387_print_float_info): Renamed from i387_float_info.  Add
4106         `struct gdbarch *' and `struct ui_file *' arguments and use the
4107         latter for output.
4108         * i386-tdep.c: Include "i387-tdep.h".
4109         (i386_gdbarch_init): Set print_float_info.
4110         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4111         (FLOAT_INFO): Remove define.
4112
4113 2002-08-13  Michael Snyder  <msnyder@redhat.com>
4114
4115         * mips-tdep.c (mips_push_arguments): Rename to
4116         mips_eabi_push_arguments, and tune for EABI.
4117         (MIPS_REGS_HAVE_HOME_P): Delete.
4118         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4119         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4120         Delete references to mips_regs_have_home_p.
4121
4122 2002-08-14  Keith Seitz  <keiths@redhat.com>
4123
4124         * Makefile.in (install-gdbtk): Create insight plugin directory.
4125         Install plugins.tcl file.
4126
4127 2002-08-14  Keith Seitz  <keiths@redhat.com>
4128
4129         * configure.in: Move SUBDIRS to near top of the file so that
4130         --enable options may add things to it.
4131         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4132         * configure: Regenerate.
4133
4134 2002-08-13  Michael Snyder  <msnyder@redhat.com>
4135
4136         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
4137         cloned from mips_push_arguments, tuned for o32/o64 ABI.
4138         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4139
4140 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
4141
4142         * vax-tdep.c (vax_get_saved_register): Delete function.
4143         (vax_gdbarch_init): Update.
4144         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4145         (ns32k_gdbarch_init): Update.
4146         * alpha-tdep.c (alpha_get_saved_register): Delete function.
4147         (alpha_gdbarch_init): Update.
4148
4149 2002-08-13  Andrew Cagney  <cagney@redhat.com>
4150
4151         * regcache.c (init_regcache_descr): Overallocate the
4152         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4153         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4154         nr_raw_registers.
4155         (set_register_cached): Add range checking assertions.  Use
4156         current_regcache.
4157
4158 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
4159
4160         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4161         numbers for MMX registers.
4162
4163 2002-08-13  Andrew Cagney  <cagney@redhat.com>
4164
4165         * i386-tdep.c (i386_gdbarch_init): Use
4166         generic_unwind_get_saved_register.
4167
4168 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
4169
4170         * procfs.c (procfs_can_use_hw_breakpoint): New function.
4171         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4172         target vector.
4173         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4174         Delete.  Add comment regarding this now-deleted target method.
4175
4176 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4177
4178         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4179         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4180         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4181         real PC and the page number (if it's within the memory bank window).
4182         (m68hc11_pseudo_register_write): Likewise when saving.
4183         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4184         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4185         (m68hc11_register_raw_size): And use 32-bit for it.
4186         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4187         16K memory bank is used by the prog; also use the virtual pc.
4188
4189 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4190
4191         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4192         (m68hc11_gdbarch_init): Install it in gdbarch.
4193         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4194         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4195         (MSYMBOL_SIZE): New for documentation.
4196         (insn_return_kind): Enum to specify how a function returns.
4197         (frame_extra_info): Cleanup and record the return mode.
4198         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
4199         register in address computation.
4200         (m68hc11_get_return_insn): New to obtain the return instruction used
4201         by the function.
4202         (m68hc11_frame_init_saved_regs): Take into account the return
4203         instruction used by the function for far and interrupt functions.
4204         (m68hc11_init_extra_frame_info): Take into account page register.
4205         (m68hc11_frame_args_address): Adjust according to the return mode.
4206         (show_regs): Print page register only when it's used.
4207
4208 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4209
4210         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4211         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4212         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4213         registers.
4214         (m68hc11_register_raw_size): Likewise.
4215
4216 2002-08-13  Andrew Cagney  <cagney@redhat.com>
4217
4218         * i386-tdep.c (i386_register_name): Handle mmx registers.
4219         (mmx_regnum_p): New function.
4220         (i386_mmx_names): New array.
4221         (mmx_num_regs): New variable.
4222         (i386_pseudo_register_read): New function.
4223         (i386_pseudo_register_write): New function.
4224         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4225
4226         * regcache.c (regcache_raw_read_unsigned): New function.
4227         (regcache_raw_read_signed): New function.
4228         * regcache.h (regcache_raw_read_unsigned): Declare.
4229         (regcache_raw_read_signed): Declare.
4230
4231 2002-08-13  Andrew Cagney  <cagney@redhat.com>
4232
4233         * regcache.c (regcache_raw_read_as_address): Delete function.
4234         (regcache_cooked_read_signed): New function.
4235         (regcache_cooked_read_unsigned): New function.
4236         * regcache.h (regcache_cooked_read_signed): Declare.
4237         (regcache_cooked_read_unsigned): Declare.
4238         (regcache_raw_read_as_address): Delete declaration.
4239
4240         * blockframe.c (generic_read_register_dummy): Use
4241         regcache_cooked_read_unsigned.
4242         * i386-tdep.c (i386_extract_struct_value_address): Use
4243         regcache_cooked_read_unsigned.
4244
4245 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4246
4247         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4248         double sizes according to ELF ABI flags.
4249         (gdbarch_tdep): Record elf_flags.
4250
4251 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
4252
4253         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4254         (m6812_prolog): They can appear in 68HC12 function prologue.
4255         (m68hc11_frame_chain): Cleanup.
4256
4257 2002-08-12  Andrew Cagney  <cagney@redhat.com>
4258
4259         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4260         declarations.
4261         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4262         (i386_linux_register_raw_size): Delete function.
4263         (i386_linux_init_abi): Update.
4264         * i386-tdep.c (i386_register_raw_size): Delete function.
4265         (i386_register_byte): Delete function.
4266         (i386_gdbarch_init): Update.
4267         (i386_register_size): Delete array.
4268         (i386_register_offset): Delete array.
4269
4270         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4271         (REGISTER_RAW_SIZE): Delete macro.
4272         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4273         (REGISTER_BYTE): Delete macro.
4274
4275 2002-08-11  Aidan Skinner <aidan@velvet.net>
4276
4277         * ada-lang.c (ada_lookup_partial_symbol)
4278         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4279         prototype names so that grep ^func works properly.
4280
4281         * ada-lang.c (ada_array_element_type)
4282         (ada_lookup_partial_symbol): Fix typos in parameter list.
4283
4284         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4285         Fix prototype names so that grep ^func works properly.
4286         
4287 2002-08-10  Andrew Cagney  <cagney@redhat.com>
4288             Elena Zannoni  <ezannoni@redhat.com>
4289             Martin M. Hunt  <hunt@redhat.com>
4290
4291         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4292         (build_builtin_type_vec128i): Set the vector bit.
4293         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4294         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4295         (build_builtin_type_vec64): New function.
4296         (build_builtin_type_vec64i): New function.
4297         (build_gdbtypes): Initialize builtin_type_vec64 and
4298         builtin_type_vec64i.
4299
4300 2002-08-09  Andrew Cagney  <cagney@redhat.com>
4301
4302         * regcache.c (regcache_dump): Compare the register offset
4303         with REGISTER_BYTE.
4304         * arch-utils.c (generic_register_byte): New function.
4305         * arch-utils.h (generic_register_byte): Declare.
4306         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4307         * gdbarch.h, gdbarch.c: Regenerate.
4308
4309 2002-08-09  Andrew Cagney  <cagney@redhat.com>
4310
4311         * regcache.c: Include "gdbcmd.h"
4312         (_initialize_regcache): Add commands "maintenance print
4313         registers", "maintenance print raw-registers" and "maintenance
4314         print cooked-registers".
4315         (enum regcache_dump_what): Define.
4316         (dump_endian_bytes): New function.
4317         (regcache_dump): New function.
4318         (regcache_print): New function.
4319         (maintenance_print_registers): New function.
4320         (maintenance_print_raw_registers): New function.
4321         (maintenance_print_cooked_registers): New function.
4322         * Makefile.in (regcache.o): Update dependencies.
4323
4324 2002-08-09  Michael Snyder  <msnyder@redhat.com>
4325
4326         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4327         (mips_push_arguments): Correct some comments.  Use paddr_nz
4328         for printing addresses in debug output.  Replace static
4329         allocation using MAX_REGISTER_RAW_SIZE with alloca.
4330         (mips_n32n64_push_arguments): New function, cloned from
4331         mips_push_arguments and tuned for the n32/n64 ABI.
4332         (mips_push_register): Buffer needs dynamic allocation.
4333         (mips_print_register): Ditto.
4334         (do_gp_register_row): Ditto.
4335         (mips_store_return_value): Ditto.
4336         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4337
4338 2002-08-09  Don Howard  <dhoward@redhat.com>
4339
4340         * memattr.c (mem_info_command): Print special case of upper bound
4341         as max CORE_ADDR + 1.
4342
4343 2002-08-08  Michael Snyder  <msnyder@redhat.com>
4344
4345         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
4346         returns structs by ref if they're too big to fit in two registers.
4347
4348 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
4349
4350         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4351         saved regs value.
4352         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4353         mips_find_saved_regs().
4354         (mips_pop_frame): Likewise.
4355
4356 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
4357
4358         * blockframe.c (frame_saved_regs_register_unwind): Revise
4359         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4360         frames are in use.
4361
4362 2002-08-09  Grace Sainsbury  <graces@redhat.com>
4363         
4364         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4365         T-packets; the 'a' is not taken as a register number.
4366         (remote_check_watch_resources, remote_stopped_by_watchpoint)
4367         (remote_stopped_data_address): New functions; add to target
4368         vector.
4369         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4370         prototypes to match other implementations of this
4371         function. replace integer argument with pointer -- the length
4372         field in the Z-packet is the length of what is pointed to or 1 if
4373         pointer is null. Add to target vector.
4374         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4375         target vector.
4376
4377         From Mark Salter:
4378         * remote.c (remote_wait): Add support to extract optional
4379         watchpoint information from T-packet. Ignore unrecognized
4380         optional info in T-packet.
4381         (remote_async_wait): Ditto.
4382
4383 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
4384
4385         * cli/cli-dump.c: Change fopen modes to use binary open modes
4386         as defined in include/fopen-bin.h throughout.
4387
4388 2002-08-08  Michael Snyder  <msnyder@redhat.com>
4389
4390         * mips-tdep.c: Minor whitespace and indentation clean-ups.
4391
4392 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
4393
4394         * doublest.c (store_floating): Avoid floatformat_from_doublest()
4395         assertion failure by returning early after a warning.
4396
4397 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
4398
4399         * mips-tdep.c (mips_find_saved_regs): Make static.
4400         (mips_frame_init_saved_regs): New function.
4401         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4402         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4403         (mips_find_saved_regs): Delete declaration.
4404
4405 2002-08-08  Grace Sainsbury  <graces@redhat.com>
4406
4407         * remote.c (remote_wait, remote_async_wait): Change
4408         thread_num from int to ULONGEST.
4409         (unpack_varlen_hex): Change result parameter from
4410         int * to ULONGEST *.
4411
4412 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
4413
4414         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4415         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4416         powerpc*-*-*.
4417         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4418
4419 2002-08-08  Andrew Cagney  <cagney@redhat.com>
4420
4421         * gcore.c (override_derive_stack_segment): Delete variable.
4422         (preempt_derive_stack_segment): Delete function.
4423         (derive_stack_segment): Delete function.
4424         (default_derive_stack_segment): Renamed to derive_stack_segment.
4425         (override_derive_heap_segment): Delete variable.
4426         (preempt_derive_heap_segment): Delete function.
4427         (derive_heap_segment): Delete function.
4428         (default_derive_heap_segment): Rename to derive_heap_segment.
4429
4430 2002-08-06  Michael Snyder  <msnyder@redhat.com>
4431
4432         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4433         * mips-tdep.c (mips_EABI_use_struct_convention, 
4434         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4435         New functions.  (mips_use_struct_convention): Delete.
4436         (mips_gdbarch_init): set use_gdbarch_convention.
4437
4438 2002-08-06  Michael Snyder  <msnyder@redhat.com>
4439
4440         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4441         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
4442         mips_o32_reg_struct_has_addr): New functions.
4443         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4444
4445 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
4446
4447         * regcache.c (pseudo_register): Delete function.
4448         (fetch_register): Delete function.
4449         (store_register): Delete function.
4450         (regcache_raw_read, legacy_read_register_gen): Use
4451         target_fetch_registers instead of fetch_register.
4452         (legacy_write_register_gen, regcache_raw_write): Use
4453         target_store_register instead of store_register.
4454         (write_register_bytes): Ditto.
4455
4456         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4457         (STORE_PSEUDO_REGISTER): Delete.
4458         * gdbarch.h, gdbarch.c: Regenerate.
4459
4460 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
4461
4462         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4463         write dump file binary.
4464
4465 2002-08-05  Michael Snyder  <msnyder@redhat.com>
4466
4467         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
4468         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
4469         (mips_gdbarch_init): Set N32 target to be mips64.
4470
4471 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
4472
4473         * frame.c (find_saved_register): Break out of loop once saved
4474         register address is found.  Don't mention sparc in loop comment
4475         anymore.
4476
4477 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
4478
4479         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4480         mips_default_saved_regsize to 8.
4481
4482 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
4483
4484         * gcore.c: Do not include <sys/procfs.h>.
4485         * Makefile.in (gcore.o): Update dependencies.
4486
4487 2002-08-06  Andrew Cagney  <cagney@redhat.com>
4488
4489         * configure.tgt: Make arc-*-* obsolete.
4490         * NEWS: Mention that arc-*-* has been identifed as obsolete.
4491         * MAINTAINERS: Make arc-elf obsolete.
4492         * arc-tdep.c: Make file obsolete.
4493         * config/arc/arc.mt: Ditto.
4494         * config/arc/tm-arc.h: Ditto.
4495
4496 2002-08-05  Theodore A. Roth  <troth@verinet.com>
4497
4498         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4499
4500 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
4501
4502         * mcore-tdep.c (mcore_gdbarch_init): Use
4503         generic_unwind_get_saved_register instead of
4504         generic_get_saved_register.
4505         * v850-tdep.c (v850_gdbarch_init): Ditto.
4506         * frv-tdep.c (frv_gdbarch_init): Ditto.
4507         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4508         * s390-tdep.c (s390_gdbarch_init): Ditto.
4509         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4510         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4511         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4512
4513 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
4514
4515         * objfiles.h: Add missing #include "symfile.h"
4516
4517         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4518
4519 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
4520
4521         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4522         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4523         of FIELD_BITSIZE.
4524
4525 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
4526
4527         * NEWS: Cleanup and nitpick.
4528
4529 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
4530
4531         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
4532
4533 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
4534
4535         * Makefile.in (gdbtk-bp.o): Update dependencies.
4536         (gdbtk-register.o): Ditto.
4537         (gdbtk-varobj.o): Ditto.
4538
4539 2002-08-03  Andrew Cagney  <cagney@redhat.com>
4540
4541         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4542         m68hc11_fetch_pseudo_register.
4543         (m68hc11_pseudo_register_write): Replace
4544         m68hc11_store_pseudo_register.
4545         (m68hc11_gdbarch_init): Update.
4546
4547 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
4548
4549         * gdbarch.sh: Include "gdb_string.h".
4550         * gdbarch.c: Regenerate.
4551
4552         * regcache.c: Include "gdb_string.h".
4553         * ax-general.c: Ditto.
4554         * varobj.c: Ditto.
4555         * std-regs.c: Ditto.
4556         * fbsd-proc.c: Ditto.
4557         * thread.c: Ditto.
4558
4559         * Makefile.in (regcache.o): Update dependencies.
4560         (thread.o, gdbarch.o): Ditto.
4561         (ax-general.o, gdbarch.o): Ditto.
4562         (varobj.o, std-regs.o): Ditto.
4563         (fbsd-proc.o): Specify dependencies.
4564
4565 2002-08-02  Andrew Cagney  <cagney@redhat.com>
4566
4567         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4568         regnum.
4569         (regcache_cooked_write): Ditto.
4570
4571 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
4572
4573         * regcache.c (regcache_cooked_read): New function.
4574         (regcache_cooked_write): New function.
4575         (read_register_gen): Rewrite using regcache_cooked_read.
4576         (write_register_gen): Rewrite using regcache_cooked_write.
4577
4578         * regcache.h (regcache_cooked_read, regcache_cooked_write):
4579         Declare.
4580
4581 2002-08-02  Andrew Cagney  <cagney@redhat.com>
4582
4583         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4584         Replace the architecture methods register_read and register_write.
4585         * gdbarch.h, gdbarch.c: Regenerate.
4586         * regcache.c (init_regcache_descr): Update.
4587         (read_register_gen): Update.
4588         (write_register_gen): Update.
4589         (supply_register): Update comment.
4590
4591         * sh-tdep.c (sh_gdbarch_init): Update.
4592         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4593         `regcache' and `gdbarch' parameters.  Make `buffer' a void
4594         pointer.  Update code.
4595         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4596         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
4597         void pointer.  Update code.
4598         (sh64_register_write): Delete.
4599         (sh4_register_read): Delete.
4600         (sh64_register_read): Delete.
4601         (sh4_register_write): Delete.
4602         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4603         void pointer, `to' parameter a void pointer.
4604         (sh_sh64_register_convert_to_raw): Ditto.
4605
4606 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
4607
4608         * mips-tdep.c (mips_register_virtual_type): Use architecture
4609         invariant return values.
4610
4611 2002-08-01  Andrew Cagney  <cagney@redhat.com>
4612
4613         * linux-proc.c: Include "gdb_string.h".
4614         * Makefile.in (linux-proc.o): Update dependency list.
4615
4616 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
4617
4618         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
4619         comment.
4620
4621 2002-08-01  Grace Sainsbury  <graces@redhat.com>
4622
4623         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4624         to_insert_watchpoint, to_remove_watchpoint,
4625         to_stopped_by_watchpoint, to_stopped_data_address,
4626         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4627         target vecctor. Define their corresponding macros so they call
4628         them.
4629         
4630         * target.c: Add default and debug versions of for
4631         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4632         to_insert_watchpoint, to_remove_watchpoint,
4633         to_stopped_by_watchpoint, to_stopped_data_address,
4634         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4635
4636 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
4637
4638         * mips-tdep.c (mips_register_virtual_type): New function.
4639         (mips_gdbarch_init): Register mips_register_virtual_type()
4640         with gdbarch machinery.
4641         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4642         this file instead of tm-bigmips.h.
4643         (MIPS_REGSIZE): Delete this macro.
4644         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
4645         multiarch version in mips-tdep.c will be found.
4646
4647 2002-08-01  Andrew Cagney  <cagney@redhat.com>
4648
4649         * NEWS: Menion that CHILL has been made obsolete.
4650
4651         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4652         * stabsread.c (read_range_type): Ditto.
4653         * gdbtypes.h: Ditto.
4654         * language.c (binop_type_check): Ditto.
4655         (binop_result_type): Ditto.
4656         (integral_type): Ditto.
4657         (character_type): Ditto.
4658         (string_type): Ditto.
4659         (boolean_type): Ditto.
4660         (structured_type): Ditto.
4661         (lang_bool_type): Ditto.
4662         (binop_type_check): Ditto.
4663         * language.h (_LANG_chill): Ditto.
4664         * dwarfread.c (set_cu_language): Ditto.
4665         * dwarfread.c (CHILL_PRODUCER): Ditto.
4666         * dwarfread.c (handle_producer): Ditto.
4667         * expression.h (enum exp_opcode): Ditto.
4668         * eval.c: Ditto for comments.
4669         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4670         * expprint.c (print_subexp): Ditto.
4671         (print_subexp): Ditto.
4672         * valops.c (value_cast): Ditto.
4673         (search_struct_field): Ditto.
4674         * value.h (COERCE_VARYING_ARRAY): Ditto.
4675         * symfile.c (init_filename_language_table): Ditto.
4676         (add_psymbol_with_dem_name_to_list): Ditto.
4677         * valarith.c (value_binop): Ditto.
4678         (value_neg): Ditto.
4679         * valops.c (value_slice): Ditto.
4680         * symtab.h (union language_specific): Ditto.
4681         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4682         (SYMBOL_DEMANGLED_NAME): Ditto.
4683         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4684         * defs.h (enum language): Ditto.
4685         * symtab.c (got_symtab): Ditto.
4686         * utils.c (fprintf_symbol_filtered): Ditto.
4687
4688         * ch-typeprint.c: Make file obsolete.
4689         * ch-valprint.c: Make file obsolete.
4690         * ch-lang.h: Make file obsolete.
4691         * ch-exp.c: Make file obsolete.
4692         * ch-lang.c: Make file obsolete.
4693
4694         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4695         CHILL_LIB.
4696         (TARGET_FLAGS_TO_PASS): Ditto.
4697         (CHILLFLAGS): Obsolete.
4698         (CHILL): Obsolete.
4699         (CHILL_FOR_TARGET): Obsolete.
4700         (CHILL_LIB): Obsolete.
4701         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4702         ch-valprint.c.
4703         (HFILES_NO_SRCDIR): Remove ch-lang.h.
4704         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4705         ch-lang.o.
4706         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4707         targets.
4708
4709 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
4710
4711         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4712         This does not change anything at the moment, but will be helpful
4713         later when full Ada support is integrated.
4714
4715 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
4716
4717         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4718         help message.
4719
4720 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
4721
4722         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4723         and save it in a local variable.  Use variable in later test.
4724
4725 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
4726
4727         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4728         test.  (Thanks to Daniel Jacobowitz.)
4729         
4730 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
4731
4732         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4733         (mips_abi_strings): Add "n64".
4734         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
4735
4736 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
4737
4738         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4739         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4740
4741 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
4742
4743         * utils.c (host_pointer_to_address, address_to_host_pointer):
4744         Use gdb_assert() instead of explicit call to internal_error().
4745
4746 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
4747
4748         * Makefile.in (rs6000-nat.o): Update dependencies.
4749
4750         From Nicholas Duffek:
4751         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4752         (aix-thread.o): New rule.
4753         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4754         * config/powerpc/aix432.mh: New file.
4755
4756 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
4757
4758         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4759         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4760         (fetch_core_registers, ppc_linux_supply_gregset)
4761         (ppc_linux_supply_fpregset): New functions.
4762         (ppc_linux_regset_core_fns): New.
4763         (_initialize_ppc_linux_tdep): Call add_core_fns.
4764         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4765         and ppc_linux_supply_gregset.
4766         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4767         (supply_fpregset): Call ppc_linux_supply_fpregset.
4768         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4769         corelow.o.
4770         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4771
4772 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
4773
4774         * symtab.c (lookup_symbol): Demangle before lowercasing.
4775
4776 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
4777
4778         * symtab.h: Replace #include "gdb_obstack.h" with opaque
4779         declaration.
4780         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4781         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4782         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4783         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4784         "gdb_string.h".
4785         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4786         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4787         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4788         (avr-tdep.o, mon960-rom.o): Ditto.
4789         (aout_stabs_gnu_h): Define.
4790         (symtab_h): Remove $(gdb_obstack_h).
4791
4792 2002-07-30  Jim Blandy  <jimb@redhat.com>
4793
4794         Patch from David Carlton <carlton@math.stanford.edu>:
4795         * gdbinit.in: Move the `dir' commands that add GDB's own source
4796         directory to the search path to the end, so that the `gdb' source
4797         directory will be searched first.
4798
4799 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
4800
4801         * gdb_obstack.h: New file.
4802         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4803         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4804         * objfiles.h: Include "gdb_obstack.h".
4805         * Makefile.in (gdb_obstack_h): Define.
4806         (symtab_h): Add $(gdb_obstack_h).
4807         (objfiles_h): Add $(gdb_obstack_h).
4808         
4809         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4810         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4811         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4812         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4813         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4814         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4815         * symfile.c, coffread.c, c-typeprint.c: Ditto.
4816         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4817
4818         * Makefile.in (bcache.o): Update dependencies.
4819         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4820         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4821         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4822         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4823         (stabsread.o, symfile.o, symmisc.o): Ditto.
4824         (symtab.o, typeprint.o, macroexp.o): Ditto.
4825         (macrotab.o, mdebugread.o): Ditto.
4826         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4827         (coff_ecoff_h, aout_aout64_h): Define.
4828         (aout_stabs_gnu_h, libaout_h): Define.
4829
4830 2002-07-29  Andrew Cagney  <cagney@redhat.com>
4831
4832         * regcache.c (struct regcache_descr): Rename nr_registers to
4833         nr_cooked_registers.  Revise comments describing the structure
4834         member fields.
4835         (init_regcache_descr): Update.
4836         (init_legacy_regcache_descr): Update.
4837         (read_register_gen, write_register_gen): When a cooked register in
4838         the raw register range, directly access the value from the raw
4839         register cache.
4840
4841 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
4842
4843         * z8k-tdep.c: Do not include "obstack.h".
4844         * h8300-tdep.c, h8500-tdep.c: Ditto.
4845         * m68hc11-tdep.c, sh-tdep.c: Ditto.
4846         * valprint.c, v850-tdep.c: Ditto.
4847         * d10v-tdep.c, mn10300-tdep.c: Ditto.
4848         * mn10200-tdep.c: Ditto.
4849
4850         * Makefile.in (z8k-tdep.o): Update dependencies.
4851         (m68hc11-tdep.o, valprint.o): Ditto.
4852         (v850-tdep.o, d10v-tdep.o): Ditto.
4853         (mn10300-tdep.o, sparc-tdep.o): Ditto.
4854         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4855         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4856         (sh_opc_h, gdb_sim_sh_h): Define.
4857         (elf_sh_h, elf_bfd_h): Define.
4858         (opcode_m68hc11_h): Define.
4859         (OPCODES_SRC, OPCODES_DIR): define.
4860         (OPCODES): Use $(OPCODES_DIR).
4861         (gdb_sim_d10v_h): Rename sim_d10v_h.
4862         (gdb_sim_arm_h): Rename sim_arm_h.
4863
4864 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
4865
4866         * utils.c (host_pointer_to_address, address_to_host_pointer):
4867         Change internal_error() message to indicate function responsible
4868         for the error.
4869
4870 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
4871
4872         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4873         calls to local_hex_string_custom().
4874
4875 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
4876
4877         * irix5-nat.c: Move IRIX shared library support from here...
4878         * solib-irix.c: ...to here.  Revised substantially to work with
4879         generic solib framework.
4880
4881         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4882         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4883         * mips-irix-tdep.c: New file.
4884
4885         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4886         (mips-irix-tdep.o, solib-irix.o): New rules.
4887         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4888         solib-irix.o.
4889         * config/mips/irix6.mt (TDEPFILES): Likewise.
4890         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4891
4892 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
4893
4894         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4895         disabled (via ``#if 0'') includes.
4896
4897 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
4898
4899         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4900         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4901         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4902         Add support for the fpscr register.
4903         * rs6000-nat.c (regmap, fetch_inferior_registers)
4904         (store_inferior_registers, fetch_core_registers): Likewise.
4905
4906 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
4907
4908         * rs6000-nat.c (language.h): Include.
4909         (special_regs): Delete this array.
4910         (regmap): New function.
4911         (fetch_register, store_register):  Use regmap() to map gdb
4912         register numbers to ptrace register numbers.  Also, use
4913         outputs from regmap() to make decisions regarding type of
4914         ptrace() call to make.  In particular, don't compare against
4915         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4916         (fetch_inferior_registers, store_inferior_registers): Where
4917         possible, obtain register numbers from tdep struct.  Don't
4918         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4919         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4920         (LAST_UISA_SP_REGNUM): Delete.
4921         
4922 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
4923
4924         * rs6000-nat.c (ppc-tdep.h): Include.
4925         (fetch_registers, store_register, fetch_core_registers): Don't
4926         access registers[] directly.  Instead, use supply_register() or
4927         regcache_collect() as appropriate.
4928         (find_toc_address): Format hex address with local_hex_string().
4929
4930 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
4931
4932         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4933         bfd/elf32-frv.c.
4934
4935 2002-07-24  Tom Tromey  <tromey@redhat.com>
4936
4937         * jv-exp.y: Marked all strings with _().
4938         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4939         internal_error.
4940         (MethodInvocation, CastExpression, parse_number, yyerror,
4941         java_type_from_name, push_expression_name, yylex): Typo fixes.
4942
4943 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
4944
4945         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4946         (tee_file_flush, tee_file_write, tee_file_fputs)
4947         (tee_file_isatty): New.
4948         * ui-file.h (tee_file_new): Add prototype.
4949
4950 2002-07-24  Aidan Skinner <aidan@velvet.net>
4951
4952         * ada-lang.c: Change k&r style function definitions to prototyped
4953         form.
4954         * ada-typeprint.c: Change k&r style function definitions to prototyped
4955         form.
4956         * ada-valprint.c: Change k&r style function definitions to prototyped
4957         form.
4958         
4959 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4960
4961         * README: Remove reference to remote-bug.
4962         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4963         remote-bug.c.
4964         (m88k-nat.o): Delete rule.
4965         (m88k-tdep.o): Delete rule.
4966         (remote-bug.o): Delete rule.
4967         * MAINTAINERS: Mark as obsolete.
4968         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4969         * m88k-tdep.c: Make file obsolete.
4970         * config/m88k/m88k.mh: Ditto.
4971         * config/m88k/delta88v4.mh: Ditto.
4972         * config/m88k/delta88v4.mt: Ditto.
4973         * config/m88k/delta88.mt: Ditto.
4974         * config/m88k/delta88.mh: Ditto.
4975         * remote-bug.c: Ditto.
4976         * config/m88k/tm-delta88.h: Ditto.
4977         * config/m88k/nm-delta88v4.h: Ditto.
4978         * config/m88k/xm-delta88.h: Ditto.
4979         * config/m88k/xm-dgux.h: Ditto.
4980         * config/m88k/tm-m88k.h: Ditto.
4981         * config/m88k/nm-m88k.h: Ditto.
4982         * config/m88k/tm-delta88v4.h: Ditto.
4983         * m88k-nat.c: Ditto.
4984         * cxux-nat.c: Ditto.
4985         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4986         and m88*-*-* obsolete.
4987         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4988         m88*-*-* obsolete.
4989
4990 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4991
4992         * findvar.c (extract_unsigned_integer): Make `addr' parameter
4993         constant.  Same for local pointer variables.
4994         (extract_signed_integer): Ditto.
4995         * defs.h (extract_unsigned_integer): Update.
4996         (extract_signed_integer): Update.
4997
4998 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4999
5000         * regcache.c (regcache_raw_write): Change buf parameter to a
5001         constant void pointer.
5002         (regcache_raw_read): Change buf parameter to a void pointer.
5003         (legacy_write_register_gen): Change myaddr parameter a constant
5004         void pointer.
5005         (supply_register): Change val parameter to a const void pointer.
5006         * regcache.h (regcache_raw_write): Update declaration.
5007         (regcache_raw_read): Update declaration.
5008         (supply_register): Update declaration.
5009
5010 2002-07-24  Tom Tromey  <tromey@redhat.com>
5011
5012         * defs.h (gdb_readline_wrapper): Declare.
5013         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5014         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5015         * top.c (gdb_readline_wrapper): New function.
5016         (command_line_input): Use it.
5017
5018 2002-07-24  Andrew Cagney  <cagney@redhat.com>
5019
5020         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5021         regcache_read and regcache_write.
5022         (regcache_raw_read_as_address): Replace regcache_read_as_address.
5023         * regcache.c: Update.
5024         * sh-tdep.c (sh64_push_arguments): Update comment.
5025         (sh_pseudo_register_read): Update.
5026         (sh_pseudo_register_write): Update.
5027         (sh4_register_read): Update.
5028         (sh4_register_write): Update.
5029         (sh64_pseudo_register_read): Update.
5030         (sh64_pseudo_register_write): Update.
5031         (sh64_register_read): Update.
5032         (sh64_register_write): Update.
5033         * i386-tdep.c (i386_extract_return_value): Update.
5034         (i386_extract_struct_value_address): Update.
5035         (i386_extract_return_value): Update.
5036         * blockframe.c (generic_read_register_dummy): Update.
5037         (generic_call_dummy_register_unwind): Update
5038         * infrun.c (write_inferior_status_register): Update.
5039
5040 2002-07-23  Jim Blandy  <jimb@redhat.com>
5041
5042         * parser-defs.h (expression_context_pc): Make this extern.
5043         (Thanks to Michael Snyder.)
5044
5045 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
5046
5047         GDB 5.2.1 released from 5.2 branch.
5048         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5049         * README: Update to mention 5.2.1.
5050
5051 2002-07-23  Mark Salter  <msalter@redhat.com>
5052
5053         * remote.c (remote_read_bytes): Fix check for error.
5054
5055 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
5056
5057         * aix-thread.c (language.h): Include.
5058         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5059         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5060         Print newlines at end of debug messages.
5061         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5062         (pdc_write_data): Use local_hex_string() instead of %llx formats.
5063
5064 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
5065
5066         * aix-thread.c (ppc-tdep.h): Include.
5067         (special_register_p): New function.
5068         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5069         (store_regs_user_thread): Use register number information from
5070         gdbarch_tdep struct instead of hardcoded offsets relative to
5071         FIRST_UISA_SP_REGNUM.
5072         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
5073         special_register_p() instead of using FPLAST_REGNUM and
5074         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5075         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
5076         will be MQ's register number.
5077
5078 2002-07-22  Michael Snyder  <msnyder@redhat.com>
5079
5080         * aix-thread.c (ops): Rename to aix_thread_ops.
5081         (base_ops): Rename to base_target.
5082         (ops_attach): Rename to aix_thread_attach.
5083         (ops_detach): Rename to aix_thread_detach.
5084         (ops_resume): Rename to aix_thread_detach.
5085         (ops_wait):   Rename to aix_thread_wait.
5086         (ops_kill):   Rename to aix_thread_kill.
5087         (init_ops):   Rename to init_aix_thread_ops.
5088         (ops_fetch_register): Rename to aix_thread_fetch_register.
5089         (ops_store_register): Rename to aix_thread_store_register.
5090         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5091         (ops_thread_alive):   Rename to aix_thread_thread_alive.
5092         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5093         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
5094         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5095         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
5096         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5097         (store_regs_lib):  Rename to store_regs_user_thread.
5098         (store_regs_kern): Rename to store_regs_kernel_thread.
5099
5100 2002-07-22  Michael Snyder  <msnyder@redhat.com>
5101
5102         * aix-thread.c (ops_prepare_to_store): Eliminate.
5103         (init_ops): Don't initialize ops.prepare_to_store.
5104         (store_regs_kern): Pre-fetch register buffers from child, 
5105         because some registers may not be in the cache.  Copy
5106         regs from register cache only if they are cached.
5107         (store_regs_lib): Copy regs from register cache only
5108         if they are cached.
5109         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5110         fill_gprs64): Ditto.
5111
5112 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
5113
5114         * aix-thread.c (gdb_assert.h): Include.
5115         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5116         register sizes (from register cache) match size of buffer holding
5117         register data.
5118         (fill_sprs32): Change parameter types to match those in the ptrace()
5119         buffer.
5120         (store_regs_lib): Likewise, but for 32-bit temporary variables.
5121         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5122
5123 2002-07-22  Michael Snyder  <msnyder@redhat.com>
5124
5125         * aix-thread.c (supply_sprs64): Cosmetic change.
5126         (supply_sprs32): Cosmetic change.
5127         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5128         (fill_sprs64): Use regcache_collect instead of read_register.
5129         (store_regs_lib): Use regcache_collect instead of 
5130         read_register.  Use fill_sprs32 instead of fill_sprs64,
5131         if debugging a 32-bit architecture.
5132         (store_regs_kern): Use fill_gprs64 etc. to pull the values
5133         out of the register cache, instead of passing a pointer into
5134         the register cache directly to ptrace.  Use regcache_collect
5135         insteaad of read_register.
5136         (ops_prepare_to_store): Use target_read_registers instead
5137         of read_register_bytes.
5138
5139 2002-07-20  Aidan Skinner <aidan@velvet.net>
5140
5141         * MAINTAINERS: Add self under write after approval. 
5142                 
5143 2002-07-20  Aidan Skinner <aidan@velvet.net>
5144
5145         * ada-tasks.c: Change k&r style function definitions to prototyped
5146         form.
5147                 
5148 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
5149
5150         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5151         * x86-64-tdep.c: Include "objfiles.h".
5152         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5153         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5154
5155 2002-07-17  Michal Ludvig  <michal@suse.cz>
5156
5157         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5158         (update_context): Initialise cfa variable.
5159
5160 2002-07-17  Michael Snyder  <msnyder@redhat.com>
5161
5162         * aix-thread.c: Shorten some long lines.  
5163         Bring comments into line with code spec.
5164
5165 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
5166
5167         * infrun.c: Re-indent using gdb_indent.sh.
5168
5169 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
5170
5171         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5172         Leave the indentation temporarily untouched, to minimize the diffs.
5173
5174 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
5175
5176         * stabsread.c: Make os9k sections of the code obsolete,
5177         for real this time.
5178         * stabsread.h: Make os9k sections of the code obsolete.
5179
5180 2002-07-18  Michal Ludvig <mludvig@suse.cz>
5181
5182         * linux-low.c (regsets_store_inferior_registers): Add free()
5183         at the end of a loop to prevent memory leak.
5184         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5185         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5186         * config/sparc/tm-sp64linux.h: Make the rest of #endif
5187         line a comment.
5188         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5189
5190 2002-07-17  Jim Blandy  <jimb@redhat.com>
5191
5192         * macrocmd.c (info_macro_command): Remove newline from error
5193         message.
5194
5195 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
5196
5197         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5198         (sh_gdbarch_init): Use it for sh-dsp.
5199
5200 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
5201
5202         * dwarf2read.c (read_initial_length): Handle older, non-standard,
5203         64-bit DWARF2 format.
5204
5205 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
5206
5207         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5208         <sys/proc.h> when not available.
5209
5210 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
5211
5212         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5213         * stabsread.c: Make os9k sections of the code obsolete.
5214         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5215         * config/i386/i386os9k.mt: Make file obsolete.
5216         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5217         (COMMON_OBS): Remove os9kread.o
5218         (SFILES): Remove os9kread.c.
5219         (os9kread.o, remote-os9k.o): Make target obsolete.
5220         * remote-os9k.c: Make file obsolete.
5221         * os9kread.c: Make file obsolete.
5222         * Makefile.in
5223
5224 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
5225
5226         * NEWS: Mention that the FR30 has been made obsolete.
5227         * fr30-tdep.c: Make file obsolete.
5228         * config/fr30/tm-fr30.h: Ditto.
5229         * config/fr30/fr30.mt: Ditto.
5230         * configure.tgt: Make fr30-*-elf obsolete.
5231         * MAINTAINERS: Make fr30-elf obsolete.
5232
5233 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
5234
5235         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5236         found is not inside a section.
5237
5238 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
5239
5240         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5241         strerror().
5242         (pdc_realloc): Use xrealloc() instead of realloc().
5243
5244 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
5245
5246         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5247         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5248         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5249         macros.
5250
5251 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
5252
5253         * aix-thread.c (ptrace_check): Eliminate goto.
5254         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
5255         problem.
5256
5257 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
5258
5259         * aix-thread.c (gdbcmd.h): Include.
5260         (DEBUG, DBG, DBG2, dbg): Eliminate.
5261         (debug_aix_thread): New static global.
5262         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5263         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5264         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5265         invocations to DBG and DBG2 macros to test against
5266         ``debug_aix_thread'' and call fprintf_unfiltered().
5267         (_initialize_aix_thread): Add new command "set debug aix-thread".
5268
5269 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
5270
5271         From Gerhard Tonn <TON@de.ibm.com>:
5272         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5273         instead of supply_register.
5274
5275 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
5276
5277         * dwarf2cfi.c: Include "gdb_assert.h".
5278         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5279         non-NULL.
5280         (update_context): Do not use __func__.  Add missing ``break''.
5281         (update_context): Do not use __func__.
5282
5283 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
5284
5285         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5286         and its setting.  Set gdbarch instruction printing functions
5287         directly.  For non-rs6000 case use new function
5288         gdb_print_insn_powerpc.
5289         (gdb_print_insn_powerpc): New function.
5290
5291 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
5292
5293         * NEWS: Mention that the d30v has been marked obsolete.
5294         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5295         * configure.tgt: Mark d30v-*-* as obsolete.
5296         * d30v-tdep.c: Mark file as obsolete.
5297         * config/d30v/d30v.mt: Ditto.
5298         * config/d30v/tm-d30v.h: Ditto.
5299
5300 2002-07-13  Aidan Skinner <aidan@velvet.net>
5301
5302         * ada-tasks.c (add_task_entry): replace calls to
5303         malloc() with xmalloc
5304         * ada-tasks.c (init_task_list): replace calls to free with xfree()
5305         
5306         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5307         ada_finish_decode_line_1, all_sals_for_line
5308         ada_breakpoint_rewrite): replace calls to free() with xfree()
5309                 
5310 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
5311
5312         From Nicholas Duffek (with minor changes by Martin Hunt, 
5313         Louis Hamilton, and Kevin Buettner):
5314         * aix-thread.c: New file.
5315
5316 2002-07-12  Petr Sorfa <petrs@caldera.com>
5317
5318         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
5319         complaint for invalid attribute class or form.
5320         (read_func_scope): DW_AT_frame_base
5321         better handling of DW_AT_block*.
5322         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5323         better handling of DW_AT_block*.
5324         (read_common_block): DW_AT_location
5325         better handling of DW_AT_block*.
5326         (read_partial_die): DW_AT_location better handling
5327         of DW_AT_block*.
5328         (new_symbol): DW_AT_external better handling of
5329         DW_AT_block*. Proper initialization of variable
5330         "addr".
5331         (attr_form_is_block): New function that returns true
5332         if the attribute's form is of DW_FORM_block*.
5333
5334 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5335
5336         * valops.c (find_method_list): Remove comment about
5337         removed STATIC_MEMFUNCP argument.
5338         (value_find_oload_method_list): Likewise.
5339
5340 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
5341
5342         From Nicholas Duffek:
5343         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5344         target_new_objfile_hook.
5345
5346 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
5347
5348         From Nicholas Duffek:
5349         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5350         csect.
5351
5352 2002-07-12  Andrew Cagney  <cagney@redhat.com>
5353
5354         * MAINTAINERS: Mention --enable-sim-build-warnings.
5355         (m68hc11-elf): Disable sim build warnings.
5356         (m32r-elf): Mark as broken obsolete candidate.
5357         (x86_64-linux-gnu): Mark as buildable with -Werror.
5358         (arm-elf): Change -w to ``,'' which enables warnings but not
5359         -Werror.
5360
5361 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
5362
5363         * bcache.h: Update copyright.
5364         (struct bstring, struct bcache): Move definition to "bcache.c".
5365         Replaced by opaque declaration.
5366         (bcache_xfree): Replace free_bcache.
5367         (bcache_xmalloc, bcache_memory_used): Declare.
5368         
5369         * bcache.c: Update copyright.
5370         (struct bstring, struct bcache): Moved to here from "bcache.h".
5371         Update comments.
5372         (bcache_xmalloc, bcache_memory_used): New functions.
5373         (bcache_xfree): Replace function free_bcache.
5374         
5375         * Makefile.in (objfiles.o): Add $(bcache_h).
5376         (objfiles_h): Remove $(bcache_h).
5377         (symfile.o): Add $(bcache_h).
5378
5379         * symmisc.c: Update copyright.
5380         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5381         (print_objfile_statistics): Use bcache_memory_used.
5382
5383         * symfile.c: Include "bcache.h".
5384         (reread_symbols): Use bcache_xfree.
5385         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5386         (add_psymbol_to_list): Pass psymbol_cache by value.
5387         (add_psymbol_with_dem_name_to_list): Ditto.
5388
5389         * objfiles.h: Update copyright.
5390         (struct bcache): Declare opaque.  Do not include "bcache.h".
5391         (struct objfile): Change psymbol_cache and macro_cache to ``struct
5392         bcache'' pointers.
5393         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5394
5395         * objfiles.c: Include "bcache.h".  Update copyright.
5396         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5397         macro_cache.
5398         (free_objfile): Use bcache_xfree.
5399
5400 2002-07-11  Grace Sainsbury  <graces@redhat.com>
5401
5402         * monitor.c (monitor_fetch_register): Make name a constant.
5403         (monitor_store_register): Same.
5404
5405 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
5406
5407         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5408         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5409         (finish_block) For non-function blocks, hash the symbol table.  For
5410         function blocks, mark the symbol table as unhashed.
5411         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5412         (msymbol_hash_iw): Likewise.
5413         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5414         value.
5415         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5416         (lookup_minimal_symbol): Likewise for both.
5417         * symtab.h (struct block): Add `hashtable' flag.  Comment the
5418         hashtable.
5419         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5420         (ALL_BLOCK_SYMBOLS): Update.
5421         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5422         (struct symbol): Add `hash_next' pointer.
5423         * symtab.c (lookup_block_symbol): Search using the hash table when
5424         possible.
5425         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5426         (search_symbols, find_addr_symbol): Likewise.
5427
5428         * dstread.c (process_dst_block): Clear hashtable bit for new block.
5429         (read_dst_symtab): Likewise.
5430         * jv-lang.c (get_java_class_symtab): Likewise.
5431         * mdebugread.c: Include "gdb_assert.h".
5432         (shrink_block): Assert that the block being modified is not hashed.
5433         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5434         * symmisc.c (free_symtab_block): Walk the hash table when freeing
5435         symbols.
5436         (dump_symtab): Recognize hashed blocks.
5437         * printcmd.c (print_frame_args):  Assert that function blocks do not
5438         have hashed symbol tables.
5439         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5440         (fill_in_ada_prototype, debug_print_block): Likewise.
5441         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
5442
5443 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
5444
5445         * stack.c (print_frame): Use result of frame_address_in_block()
5446         instead of fi->pc when evaluating symbols.
5447         (backtrace_command_1): Ditto.
5448
5449 2002-07-11  Andrew Cagney  <cagney@redhat.com>
5450
5451         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5452         Make static.
5453
5454         * arm-tdep.c (arm_register_name): Make return type constant.
5455
5456 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
5457
5458         * win32-nat.c (has_detach_ability): Convert to strict ISO C
5459         prototype.
5460         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5461         * s390-tdep.c (s390_fp_regnum): Ditto.
5462         (s390_read_fp): Ditto.
5463         (s390_pop_frame): Ditto.
5464         (_initialize_s390_tdep): Ditto.
5465         * remote.c (get_remote_state): Ditto.
5466         * procfs.c (mappingflags): Ditto.
5467         * memattr.c (_initialize_mem): Ditto.
5468         * mcore-tdep.c (mcore_pop_frame): Ditto.
5469         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5470         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5471         * language.c (set_case_str): Ditto.
5472         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5473         * frv-tdep.c (new_variant): Ditto.
5474         (frv_stopped_data_address): Ditto.
5475         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5476         (context_alloc): Ditto.
5477         (frame_state_alloc): Ditto.
5478         (unwind_tmp_obstack_init): Ditto.
5479         (unwind_tmp_obstack_free): Ditto.
5480         (cfi_read_fp): Ditto.
5481         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5482         (cris_pop_frame): Ditto.
5483         * c-lang.c (scanning_macro_expansion): Ditto.
5484         (finished_macro_expansion): Ditto.
5485         (c_preprocess_and_parse): Ditto.
5486         * gdbarch.sh: Ditto.
5487         * gdbarch.h, gdbarch.c: Regenerate.
5488         * config/mn10200/tm-mn10200.h: Adjust indentation.
5489         * target.c: Adjust indentation.
5490         * symtab.h: Adjust indentation.
5491         * stabsread.h: Adjust indentation.
5492         * remote-es.c: Adjust indentation.
5493         * os9kread.c: Adjust indentation.
5494
5495 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
5496         
5497         * wince.c (_initialize_wince): Rename _initialize_inftarg.
5498         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5499
5500 2002-07-10  Grace Sainsbury  <graces@redhat.com>
5501         
5502         * NEWS: Mention m68k, mcore multi-arching.  
5503         * MAINTAINERS: Change status of m68k, mcore to reflect
5504         multi-arching.
5505
5506 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
5507
5508         * valops.c (find_overload_match): Free oload_syms.
5509
5510 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
5511
5512         Define HAVE_SYS_PROC_H if sys/proc.h exists
5513         * configure.in: Add check for sys/proc.h
5514         * config.in: Regenerate.
5515         * configure: Regenerate.
5516
5517 2002-07-09  Grace Sainsbury  <graces@redhat.com>
5518
5519         * config/m68k/tm-m68k.h: Remove macros wrapped in 
5520         #if !GDB_MULTI_ARCH. 
5521
5522 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
5523
5524         * config.in, configure: Regenerate.
5525
5526 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
5527
5528         * dwarf2cfi.c: Include "gcore.h".
5529         (execute_stack_op): Fix implementation of the
5530         DW_OP_deref and DW_OP_deref_size operators by letting do their
5531         lookup in the target.
5532
5533 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
5534
5535         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5536         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5537         tdep->sc_sp_offset.
5538
5539 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
5540
5541         Fix PR gdb/595, gdb/602
5542         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5543         Don't call value_cast, just read the vtable pointer; update comments
5544         to match.
5545
5546 2002-07-05  Grace Sainsbury  <graces@redhat.com>
5547
5548         * config/mcore/tm-mcore.h: Remove file.
5549         * config/mcore/mcore.mt: Remove definition of TM_FILE
5550         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5551
5552 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
5553
5554         * i386bsd-tdep.c: Include "gdb_string.h".
5555
5556 2002-07-04  Grace Sainsbury  <graces@redhat.com>
5557
5558         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5559         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5560         mcore-tdep.
5561         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5562         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5563         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5564         (RETVAL_REGNUM): Move macros from tm-mcore.h
5565         (mcore_reg_struct_has_addr): New function.
5566         (mcore_gdbarch_init): Added initializations for the macros removed
5567         from tm-mcore.h.
5568
5569 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
5570
5571         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5572         traditonal string branding within the ELF header.
5573
5574 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
5575
5576         * symtab.c (remove_params): New function.
5577         (make_symbol_overload_list): Use it instead of cplus_demangle.
5578         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
5579
5580 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
5581
5582         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5583
5584         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5585         New variables.
5586         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5587         and tdep->sigtramp_end.
5588         * i386obsd-nat.c: New file.
5589         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5590
5591         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5592         Don't call get_current_frame().
5593
5594 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
5595
5596         * i386-nat.c (child_post_startup_inferior): New function
5597         calling i386_cleanup_dregs if
5598         I386_USE_GENERIC_WATCHPOINTS is defined.
5599         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5600         conditional to acknowledge that i386-nat.c has its
5601         own child_post_startup_inferior function.
5602
5603 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
5604
5605         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5606         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5607         instead of MAX_REGISTER_RAW_SIZE.
5608         (i386_extract_return_value, i386_extract_struct_value_address):
5609         Convert to use regcache.
5610         (i386_gdbarch_init): Set max_register_raw_size and
5611         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5612         Set extract_return_value and extract_struct_value_address instead
5613         of their deprecated variants.
5614
5615         Convert i386 target to generic dummy frames.
5616         * i386-tdep.c: Include "symfile.h".
5617         (i386_frameless_signal_p): Consider a function to be frameless if
5618         the pc points at the first instruction of the function.
5619         (i386_frame_chain): Handle (generic) call dummies.
5620         (i386_frame_saved_pc): Likewise.
5621         (i386_frame_init_saved_regs): Remove code dealing with call
5622         dummies on the stack.
5623         (i386_push_dummy_frame): Removed.
5624         (i386_call_dummy_words): Removed.
5625         (i386_fix_call_dummy): Removed.
5626         (i386_push_return_address): New function.
5627         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
5628         parameter, and don't call get_current_frame.
5629         (i386_pop_frame): New function.
5630         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5631         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5632         entry_point_address, set call_dummy_breakpoint_offset to 0, set
5633         call_dummy_length to 0, set call_dummy_words to NULL, set
5634         sizeof_call_dummy_words to 0, set fix_call_dummy to
5635         generic_fix_call_dummy, set pc_in_call_dummy to
5636         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5637         generic_push_dummy_frame, set push_return_address to
5638         i386_push_return_address and set frame_chain_valid to
5639         generic_file_frame_chain_valid.
5640
5641 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
5642
5643         * gdbarch.sh (struct regcache): Add opaque declaration.
5644         (EXTRACT_RETURN_VALUE): New architecture method.
5645         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5646         * gdbarch.h, gdbarch.c: Regenerate.
5647         * arch-utils.c (legacy_extract_return_value): New function.
5648         * arch-utils.h (legacy_extract_return_value): Declare.
5649         * values.c (value_being_returned): Re-enable code handling
5650         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
5651         deprecated_grub_regcache_for_registers call to block handling
5652         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5653         (EXTRACT_RETURN_VALUE): Do not define.
5654
5655 2002-07-03  Grace Sainsbury  <graces@redhat.com>
5656
5657         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5658         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5659         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5660         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5661         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5662         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5663         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5664         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5665         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5666         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5667         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5668         argument so the function fits the prototype in the architecture
5669         vector.
5670         (mcore_pop_frame): Remove argument so the function fits the
5671         prototype. Use get_current_frame instead of the argument.
5672         (mcore_push_arguments): Change type of struct_return so the
5673         function can be used in the architecture vector.
5674         (mcore_store_struct_return): Add.
5675         (mcore_frame_init_saved_regs): Add.
5676         (mcore_gdbarch_init): Add function calls to replace the macros
5677         removed from tm-mcore.h
5678
5679 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
5680
5681         * infcmd.c (print_return_value): Remove compatibility code calling
5682         deprecated_grub_regcache_for_registers.
5683         
5684         * values.c: Include "regcache.h".
5685         (value_being_returned): Update.  Use
5686         deprecated_grub_regcache_for_registers to extract the register
5687         buffer address.  
5688         * value.h (value_being_returned): Change ``retbuf'' parameter to a
5689         ``struct regcache''.
5690         * Makefile.in (values.o): Add dependency on $(regcache_h).
5691
5692         * inferior.h (run_stack_dummy): Change type of second parameter to
5693         a ``struct regcache''.
5694         * valops.c (hand_function_call): Change type of retbuf to ``struct
5695         regcache''.  Allocate using regcache_xmalloc, clean using
5696         make_cleanup_regcache_xfree.
5697         * infcmd.c (run_stack_dummy): Update.  Use
5698         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5699
5700         * regcache.c (do_regcache_xfree): New function.
5701         (make_cleanup_regcache_xfree): New function.
5702         * regcache.h (make_cleanup_regcache_xfree): Declare.
5703
5704 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
5705
5706         * event-top.c (command_line_handler): Don't read past
5707         beginning of buffer.
5708
5709 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
5710         
5711         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
5712         struct frame_id. 
5713         (varobj_create): Store frame_id for root.
5714         (varobj_gen_name): Use xasprintf.
5715         (varobj_update): Save and restore frame using get_frame_id() and
5716         frame_find_by_id().
5717         (create_child): Use xasprintf.
5718         (new_root_variable): Initialize frame_id.
5719         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5720         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5721         to prevent memory leak.
5722
5723 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
5724
5725         * valops.c (hand_function_call): Move declaration of retbuf to
5726         start of function, allocate using malloc, add a cleanup but before
5727         the inf_status cleanup, cleanup the buffer.  Rename local variable
5728         old_chain to inf_status_cleanup.
5729
5730 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
5731
5732         * top.c (execute_command): Use cmd_func() and cmd_func_p().
5733
5734         * cli/cli-decode.c (cmd_func_p): New function.
5735         (cmd_func): New function.
5736
5737         * command.h: Add cmd_func() and cmd_func_p().   
5738         
5739 2002-07-03  Grace Sainsbury  <graces@redhat.com>
5740
5741         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5742         (REGISTER_SIZE): Remove.
5743         (MAX_REGISTER_RAW_SIZE): Remove.
5744         (REGISTER_VIRTUAL_TYPE): Remove.
5745         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5746         (REGISTER_NAME): Remove.
5747         (USE_GENERIC_DUMMY_FRAMES): Remove.
5748         (CALL_DUMMY): Remove.
5749         (CALL_DUMMY_START_OFFSET): Remove.
5750         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5751         (CALL_DUMMY_LOCATION): Remove.
5752         (FIX_CALL_DUMMY): Remove.
5753         (CALL_DUMMY_ADDRESS): Remove.
5754         (SIZEOF_CALL_DUMMY_WORDS): Remove.
5755         (SAVE_DUMMY_FRAME_TOS): Remove.
5756         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5757         (mcore_register_virtual_type): New function.
5758         (mcore_register_byte): New function.
5759         (mcore_register_size): New function.
5760         (mcore_register_name): New function.
5761         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5762         macros removed from tm-mcore.h.
5763         (mcore_dump_tdep): Add.
5764         (_initialize_mcore_tdep): Add gdbarch_register call.
5765
5766 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
5767
5768         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5769         frameless_look_for_prologue, such that we actually call this
5770         function.
5771
5772 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
5773
5774         * frame.h (frame_address_in_block): New function.
5775
5776         * blockframe.c (frame_address_in_block): New function extracted
5777         from get_frame_block().
5778         (get_frame_block): Use frame_address_in_block().
5779         (block_innermost_frame): Use frame_address_in_block() to match
5780         the frame pc address against the block boundaries rather than
5781         the frame pc directly. This prevents a failure when a frame pc
5782         is actually a return-address pointing immediately after the end
5783         of the given block. 
5784
5785 2002-07-02  Grace Sainsbury  <graces@redhat.com>
5786
5787         * MAINTAINERS: Add self under write after approval. 
5788
5789 2002-07-02  Grace Sainsbury  <graces@redhat.com>
5790
5791         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5792         used in architecture vector. The default is
5793         m68k_local_breakpoint_from_pc.
5794         (m68k_local_breakpoint_from_pc): Add.
5795         (enum): Add register numbers from tm-m68k.h.
5796         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5797         vector.  
5798         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5799         GDB_MULTI_ARCH_PARTIAL.
5800         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5801         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5802         m68k-tdep.c.
5803         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5804         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5805         to enum in m68k-tdep.c
5806
5807 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
5808
5809         * solib-osf.c (open_map): Compute the list of shared libraries
5810         loaded by the inferior, rather than the list of libraries loaded
5811         by GDB itself.  Otherwise, GDB ends up reading the symbols from
5812         the wrong shared libraries...
5813
5814 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
5815
5816         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5817         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5818         macros.
5819         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5820         Remove functions.
5821         (FRAMELESS_SIGNAL): Remove function.
5822         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5823         i386_linux_saved_pc_after_call): Removed.
5824         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5825         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
5826         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5827
5828         * i386-tdep.c (i386_frameless_signal_p): New function.
5829         (i386_frame_chain): Deal with frameless signals.
5830         (i386_sigtramp_saved_sp): New function.
5831         (i386_frame_saved_pc): Deal with frameless signals.
5832         (i386_saved_pc_after_call): Make sure the correct value is
5833         returned just after entry into a sigtramp.
5834         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5835         i386fbsd4_sc_sp_offset): New variables.
5836         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5837         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
5838         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5839         similiar to what we already did for sc_pc_offset.
5840         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5841         tdep->sc_sp_offset.
5842
5843         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5844
5845 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
5846
5847         * config/i386/tm-x86-64linux.h: New.
5848         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5849         definitions.
5850         * config/i386/nm-x86-64.h: Rename to ...
5851         * config/i386/nm-x86-64linux.h: ... this one.
5852         * config/i386/x86-64linux.mh: Reflect the above change.
5853         
5854 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
5855
5856         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5857         with sigcontext_addr.  Add sc_sp_offset.
5858         (i386bsd_sigtramp_saved_pc): Remove prototype.
5859         (i386bsd_sicontext_addr): Add prototype.
5860         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5861         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5862         (i386_svr4_sigtramp_saved_pc): Removed.
5863         (i386_svr4_sigcontext_addr): New function.
5864         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5865         Initialize tdep->sigcontext_addr instead.  Initialize
5866         tdep->sc_pc_offset and tdep->sc_sp_offset.
5867         (i386_gdbarch_init): Likewise.
5868         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5869         any more.
5870         (i386bsd_sigtramp_saved_pc): Remove function.
5871         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5872         Initialize tdep->sigcontext_addr instead.  Initialize
5873         tdep->sc_pc_offset.
5874         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5875         of tdep->sigtramp_saved_pc.
5876         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5877         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
5878         instead.
5879
5880         * i386-tdep.c (i386_frameless_function_invocation,
5881         i386_frame_num_args, i386_frame_init_saved_regs,
5882         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5883         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5884         i386_extract_return_value, i386_store_return_value,
5885         i386_extract_struct_value_address, i386_register_virtual_type,
5886         i386_register_convertible, i386_register_convert_to_virtual,
5887         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5888         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5889         static.
5890
5891 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
5892
5893         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5894
5895         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5896         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5897         this macro.  Include "value.h".
5898
5899 2002-06-30  Aidan Skinner  <aidan@velvet.net>
5900
5901         * ada-exp.tab.c: remove as it's a generated file
5902         * ada-lex.c: remove as it's a generated file
5903                 
5904 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
5905
5906         * config/i386/tm-i386.h (struct frame_info, struct
5907         frame_saved_regs, struct value, struct type): Remove forward
5908         declarations.
5909
5910         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5911         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5912         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5913         (FILL_FPXREGSET): Define.
5914
5915         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5916
5917         * configure.tgt (i[3456]86-*-openbsd*): Fold into
5918         i[3456]86-*-netbsd* case.
5919         * config/i386/tm-obsd.h: Removed.
5920         * config/i386/obsd.mt: Removed.
5921         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5922         core-aout.o.
5923         (MH_CFLAGS): Add -DYYDEBUG=0.
5924
5925         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5926         i386nbsd_sc_pc_offset on OpenBSD too.
5927
5928         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5929         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5930         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5931         define.
5932         * i386bsd-tdep.c: Include "arch-utils.h".
5933         (i386bsd_aout_in_solib_call_trampoline): New function.
5934         (i386bsd_init_abi): Set in_solib_call_trampoline to
5935         i386bsd_aout_in_solib_call_trampoline.
5936         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5937         in_solib_call_trampoline to generic_in_solib_call_trampoline.
5938
5939 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5940
5941         * macrotab.h: Do not include "obstack.h" or "bcache.h".
5942         (struct obstack, struct bcache): Add opaque declarations.
5943         * Makefile.in (macrotab_h): Update
5944
5945 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5946
5947         * blockframe.c (generic_find_dummy_frame): Change return type to
5948         ``struct regcache''.
5949         (struct dummy_frame): Replace field ``registers'' with regcache, a
5950         struct regcache object.
5951         (generic_find_dummy_frame): Update.
5952         (generic_push_dummy_frame): Update.  Use regcache_xfree,
5953         regcache_xmalloc and regcache_cpy.
5954         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
5955         regcache_xfree.
5956         (deprecated_generic_find_dummy_frame): Update.
5957         (generic_read_register_dummy): Update.  Use
5958         regcache_read_as_address.
5959         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
5960         (generic_get_saved_register): Update.  Use regcache_read.
5961
5962 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5963
5964         * Makefile.in (objfiles_h): Add $(bcache_h).
5965         * objfiles.h: Include "bcache.h".
5966
5967         * Makefile.in (symtab_h): Remove $(bcache_h).
5968         * symtab.h: Do not include "bcache.h".
5969
5970 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5971
5972         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5973         generic_func_frame_chain_valid.
5974
5975 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
5976
5977         * config/i386/nm-fbsd.h: Include <sys/param.h>.
5978         * config/i386/tm-fbsd.h: Likewise.
5979
5980 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5981
5982         * rs6000-tdep.c (rs6000_gdbarch_init): Use
5983         generic_unwind_get_saved_register.
5984
5985 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
5986
5987         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5988         * regcache.c (supply_register): Add missing argument to
5989         register_buffer call.
5990
5991 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
5992
5993         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
5994         Solaris /bin/grep does not not like it.  From Peter Schauer.
5995
5996 2002-06-26  Tom Tromey  <tromey@redhat.com>
5997
5998         * command.h (add_setshow_cmd): Declare.
5999         (add_setshow_cmd_full): Declare.
6000         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
6001         returns void.  Use add_setshow_cmd_full.
6002         (add_setshow_cmd_full): New function.
6003         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6004         (add_setshow_boolean_cmd): Likewise.
6005
6006 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
6007
6008         * config/vax/tm-vax.h: Protect from multiple inclusion.
6009         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6010         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6011         * config/vax/tm-vaxbsd.h: ...here.  New file.
6012         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6013
6014 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
6015
6016         * config/vax/tm-vax.h (BREAKPOINT): Remove.
6017         (BELIEVE_PCC_PROMOTION): Remove.
6018         (AP_REGNUM): Move to...
6019         * config/vax/nm-vax.h: ...here.
6020         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6021         (vax_breakpoint_from_pc): New function.
6022         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6023         and gdbarch_believe_pcc_promotion.
6024
6025 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
6026
6027         * Makefile.in (vax_tdep_h): Define.  
6028         (vax-tdep.o): Use $(vax_tdep_h).
6029         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6030         (vax_dump_tdep): New function. 
6031         (_initialize_vax_tdep): Register vax_dump_tdep.
6032         * vax-tdep.h: Include osabi.h.     
6033         (struct gdbarch_tdep): New. 
6034
6035 2002-06-26  Andrew Cagney  <cagney@redhat.com>
6036
6037         * frame.h (deprecated_generic_find_dummy_frame): Rename
6038         generic_find_dummy_frame.
6039         * blockframe.c (generic_find_dummy_frame): Make static.
6040         (deprecated_generic_find_dummy_frame): New function.
6041         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6042         generic_find_dummy_frame with deprecated_find_dummy_frame.
6043         (sh64_nofp_frame_init_saved_regs): Ditto.
6044         (sh_fp_frame_init_saved_regs): Ditto.
6045         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6046         (s390_frame_chain): Ditto.
6047         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6048
6049 2002-06-26  Grace Sainsbury  <graces@redhat.com>
6050
6051         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6052         gdbarch vector are at the top.
6053         (NUM_REGS): Remove.
6054         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6055         (FRAME_ARGS_ADDRESS): Remove.
6056         (FRAME_LOCALS_ADDRESS): Remove.
6057         (FRAME_NUM_ARGS): Remove.
6058         (FRAME_ARGS_SKIP): Remove.  
6059         * m68k-tdep.c (enum): Add eumeration of special register numbers.
6060         (m68k_gdbarch_init): Add gdbarch initializations for macros
6061         undefined in tm-m68k.h
6062
6063 2002-06-26  Grace Sainsbury  <graces@redhat.com>
6064
6065         * monitor.h: Add the function regname to monitor_ops
6066         structure. This way NUM_REGS does not have to be a constant.
6067         * monitor.c (monitor_fetch_register): Added support for regname
6068         function. The function is called if the array regnames is NULL.
6069         (monitor_store_register): Same.
6070         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6071         regnames array.
6072         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6073         cpu32bug_cmds.regname to point to new function.
6074         * abug-rom.c (abug_regname): Same as above.
6075         (init_abug_cmds): Same.
6076         * dbug-rom.c (dbug_regname): Same as above.
6077         (init_dbug_cmds): Same.
6078         * remote-est.c (est_regname): Same. 
6079         (init_est_cmds): Same.
6080         * rom68k-rom.c (rom68k_regname): Same. 
6081         (init_rom68k_cmds): Same.
6082
6083 2002-06-25  Tom Tromey  <tromey@redhat.com>
6084
6085         * breakpoint.c (delete_command): Don't repeat `delete' commands.
6086
6087 2002-06-25  Andrew Cagney  <cagney@redhat.com>
6088
6089         * infrun.c (stop_registers): Change variable's type to ``struct
6090         regcache'''.
6091         (xmalloc_inferior_status): Delete function.
6092         (free_inferior_status): Delete function.
6093         (normal_stop): Use regcache_cpy.
6094         (struct inferior_status): Change type of fields ``stop_registers''
6095         and ``registers'' to ``struct regcache''.
6096         (write_inferior_status_register): Use regcache_write.
6097         (save_inferior_status): Instead of calling
6098         xmalloc_inferior_status, allocate the inf_status buffer directly.
6099         Use regcache_dup_no_passthrough and regcache_dup to save the
6100         buffers.
6101         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6102         Replace the stop_registers regcache instead of overriding it.  Use
6103         regcache_xfree.  Instead of calling free_inferior_status, xfree
6104         the buffer directly.
6105         (discard_inferior_status): Use regcache_xfree.  Instead of calling
6106         free_inferior_status, xfree the buffer directly.
6107         (build_infrun): Use regcache_xmalloc.
6108         (_initialize_infrun): Delete redundant call to build_infrun.
6109
6110         * Makefile.in (infcmd.o): Add $(regcache_h).
6111
6112         * infcmd.c: Include "regcache.h".
6113         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6114         obtain the address of `stop_registers' register buffer.
6115         (print_return_value): Ditto.
6116
6117         * inferior.h (struct regcache): Add opaque declaration.
6118         (stop_registers): Change variable's declared type to ``struct
6119         regcache''.
6120
6121 2002-06-24  Tom Tromey  <tromey@redhat.com>
6122
6123         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6124         * target.c (initialize_targets): Fixed typo in
6125         trust-readonly-sections `show' documentation.
6126
6127         * main.c: Marked all strings with _().
6128
6129 2002-06-24  Don Howard  <dhoward@redhat.com>
6130
6131         * memattr.c (create_mem_region): Treat hi == 0 as a special case
6132         that means max CORE_ADDR+1.
6133         (lookup_mem_region): Ditto.
6134         (mem_info_command): Ditto.
6135
6136 2002-06-24  Grace Sainsbury  <graces@redhat.com>
6137
6138         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6139         (REGISTER_BYTES_OK): Remove.
6140         (REGISTER_BYTES): Remove.
6141         (STORE_STRUCT_RETURN): Remove.
6142         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6143         (STORE_RETURN_VALUE): Remove.
6144         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6145         (FRAME_CHAIN): Remove.
6146         (FRAMELESS_FUNCTION_INVOCATION): Remove.
6147         (FRAME_SAVED_PC): Remove.  
6148         * m68k-tdep.c (m68k_register_bytes_ok):Add.
6149         (m68k_store_struct_return): Add.
6150         (m68k_deprecated_extract_return_value): Add.
6151         (m68k_deprecated_extract_struct_value_address): Add.
6152         (m68k_store_return_value): Add.
6153         (m68k_frame_chain): Add.
6154         (m68k_frameless_function_invocation): Add.
6155         (m68k_frame_saved_pc): Add.
6156         (m68k_gdbarch_init): added set_gdbarch calls for new 
6157         functions and deleted macros.
6158
6159 2002-06-23  Tom Tromey  <tromey@redhat.com>
6160
6161         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6162         (ALLDEPFILES): Likewise.
6163         (udiheaders): Removed.
6164         (udip2soc.o): Likewise.
6165         (udi2go32.o): Likewise.
6166         (udr.o): Likewise.
6167         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6168
6169 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
6170
6171         * infrun.c (_initialize_infrun): Delete unnecessary call to
6172         build_infrun.
6173
6174         * regcache.h: Update comments describing the regcache_cpy family
6175         of functions.
6176         (regcache_save, regcache_restore): Delete declaration.
6177         (regcache_save_no_passthrough): Delete declaration.
6178         (regcache_restore_no_passthrough): Delete declaration.
6179         * regcache.c (regcache_save): Delete function.
6180         (regcache_save_no_passthrough): Delete function.
6181         (regcache_restore): Delete function.
6182         (regcache_restore_no_passthrough): Delete function.
6183
6184 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
6185
6186         * config/m68k/tm-m68k.h: Fix typo.
6187         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6188         (m68k_frame_init_saved_regs): Declare.
6189
6190 2002-06-21  Jim Blandy  <jimb@redhat.com>
6191
6192         Remove some vestiges of Harris 88k support.
6193         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6194         register numbering quirk.
6195         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6196         odd symbols occurring in Harris 88k ELF targets.
6197
6198 2002-06-21  Tom Tromey  <tromey@redhat.com>
6199
6200         * gdb_locale.h: New file.
6201         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6202         (defs_h): Added gdb_locale.h.
6203         * configure, config.in: Rebuilt.
6204         * configure.in (PACKAGE): Define.
6205         * defs.h: Include gdb_locale.h.
6206         * main.c (captured_main): Call setlocale, bindtextdomain,
6207         textdomain.
6208
6209 2002-06-21  Dave Brolley  <brolley@redhat.com>
6210
6211         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6212         * config/frv/frv.mt: New file.
6213         * config/frv/tm-frv.h: New file.
6214         * configure.tgt: Support frv-*-*.
6215         * Makefile.in (frv-tdep.o): New target.
6216         * frv-tdep.c: New file.
6217         * NEWS: Mention frv.
6218
6219 2002-06-21  Dave Brolley  <brolley@redhat.com>
6220
6221         * MAINTAINERS: Add self to "Write After Approval" list.
6222
6223 2002-06-21  Grace Sainsbury  <graces@redhat.com>
6224
6225         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6226         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6227         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6228         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6229         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6230
6231         * m68k-tdep.c: Include arch-utils.h
6232         (m68k_register_raw_size): Add.
6233         (m68k_register_virtual_size): Add.
6234         (m68k_register_virtual_type): Add.
6235         (m68k_register_name): Add.
6236         (m68k_stack_align): Add.
6237         (m68k_register_byte): Add.
6238         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6239         tm-m68k.h.
6240
6241 2002-06-21  Grace Sainsbury  <graces@redhat.com>
6242
6243         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6244         m68k_find_saved_regs.
6245         (m68k_pop_frame): Removed saved_regs structure, and replaced
6246         references to it with frame->saved_regs.
6247         (m68k_gdbarch_init): Added function calls to initialize the
6248         gdbarch structure.
6249         (m68k_fix_call_dummy): Add. 
6250         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6251         (CALL_DUMMY): Remove.
6252         (CALL_DUMMY_LENGTH): Remove.
6253         (CALL_DUMMY_START_OFFSET): Remove.
6254         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6255         (FIX_CALL_DUMMY): Remove.
6256         (PUSH_DUMMY_FRAME): Remove.
6257         (POP_FRAME): Remove.
6258
6259 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6260
6261         * parse.c (parse_fprintf): New function used to avoid calls to
6262         fprintf in bison parser generated debug code.
6263         * parser-defs.h: Declaration of new parse_fprintf function.
6264         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6265         Set YYDEBUG to 1 by default.
6266         Set YYFPRINTF as parse_fprintf.
6267
6268 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
6269
6270         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
6271         encoding anymore.
6272         (pointer_encoding, enum ptr_encoding): New.
6273         (execute_cfa_program): Take care about pointer encoding.        
6274         (dwarf2_build_frame_info): Only call parse_frame_info for 
6275         .debug_frame and .eh_frame.
6276         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6277         fixed augmentation handling, added relative addressing, 
6278         ignore duplicate FDEs. Added comments.
6279         * dwarf2cfi.c: Reindented.
6280         
6281 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
6282
6283         * event-top.c (command_handler): Don't use space_at_cmd_start
6284         unless there is sbrk() on the host. Assign time and space data
6285         to union fields of the appropriate length.
6286
6287 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
6288
6289         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
6290         x86_64_register_name. Return type changed to 'const char *'.
6291         (x86_64_register_name2nr): Rename to x86_64_register_number.
6292         (x86_64_gdbarch_init): Update to reflect the change.
6293         * x86-64-tdep.h: Ditto.
6294         * x86-64-linux-nat.c (x86_64_fxsave_offset)
6295         (supply_fpregset): Ditto.
6296
6297 2002-06-19  Andrew Cagney  <cagney@redhat.com>
6298
6299         * regcache.h: Update copyright.
6300         (struct regcache, struct gdbarch): Add opaque declarations.
6301         (current_regcache): Declare global variable.
6302         (regcache_read, regcache_write): Add gdbarch parameter.
6303         (regcache_save, regcache_save_no_passthrough)
6304         (regcache_restore, regcache_restore_no_passthrough)
6305         (regcache_dup, regcache_dup_no_passthrough)
6306         (regcache_cpy, regcache_cpy_no_passthrough)
6307         (deprecated_grub_regcache_for_registers)
6308         (deprecated_grub_regcache_for_register_valid)
6309         (regcache_valid_p): Add function declarations.
6310         
6311         * regcache.c: Update copyright.
6312         (regcache_descr_handle): New global variable.
6313         (struct regcache_descr): Define.
6314         (init_legacy_regcache_descr, init_regcache_descr): New functions.
6315         (regcache_descr, xfree_regcache_descr): New functions.
6316         (struct regcache): Define.
6317         (regcache_xmalloc, regcache_xfree): New functions.
6318         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6319         (regcache_dup, regcache_dup_no_passthrough): New functions.
6320         (regcache_valid_p, regcache_read_as_address): New functions.
6321         (deprecated_grub_regcache_for_registers): New function.
6322         (deprecated_grub_regcache_for_register_valid): New function.
6323         (current_regcache): New global variable.
6324         (register_buffer): Add regcache parameter.  Update calls.
6325         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
6326         (read_register_gen, write_register_gen): Update register_buffer
6327         call.  Test for legacy_p instead of gdbarch_register_read_p or
6328         gdbarch_register_write_p.
6329         (regcache_collect): Update register_buffer call.
6330         (build_regcache): Rewrite.  Use deprecated grub functions.
6331         (regcache_save, regcache_save_no_passthrough): New functions.
6332         (regcache_restore, regcache_restore_no_passthrough): New
6333         functions.
6334         (_initialize_regcache): Create the regcache_data_handle. Swap
6335         current_regcache global variable.
6336         
6337         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6338         parameter to regcache_read and regcache_write calls.
6339         (sh4_register_read): Ditto.
6340         (sh64_pseudo_register_read): Ditto.
6341         (sh64_register_read): Ditto.
6342         (sh_pseudo_register_write): Ditto.
6343         (sh4_register_write): Ditto.
6344         (sh64_pseudo_register_write): Ditto.
6345         (sh64_register_write): Ditto.
6346
6347         * defs.h (XCALLOC): Define.
6348
6349 2002-06-19  Grace Sainsbury  <graces@redhat.com>
6350
6351         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6352         * m68k-tdep.c (m68k_gdbarch_init): Added.
6353         (m68k_dump_tdep): Added.
6354
6355 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
6356
6357         * ada-lang.c (fill_in_ada_prototype): Update comment.
6358
6359 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
6360
6361         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
6362         MIPS_ABI_LAST.
6363         (mips_abi_string, mips_abi_strings): New.
6364         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6365         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
6366         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
6367         O32 if no ABI is found.
6368         (mips_dump_tdep): Use mips_abi_strings.
6369         (mips_abi_update): New function.
6370         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
6371         ``set mips abi'' and ``show mips abi''.  Check the size of
6372         mips_abi_strings.
6373
6374 2002-06-19  Andrew Cagney  <cagney@redhat.com>
6375
6376         * i386-linux-tdep.c (i386_linux_register_name): Make return type
6377         constant.
6378
6379 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
6380
6381         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
6382         current frame using only the first stack size adjustment. All
6383         subsequent size adjustments are not considered to be part of
6384         the "static" part of the current frame.
6385         Compute the address of the saved registers relative to the
6386         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6387         in use in this frame.
6388
6389 2002-06-18  Don Howard  <dhoward@redhat.com>
6390  
6391         * valops.c (value_ind): Use value_at_lazy() when dereferencing
6392         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
6393         suggesting this solution.
6394
6395 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
6396
6397         * config/romp/xm-rtbsd.h: Delete file.
6398         * config/romp/rtbsd.mh: Delete file.
6399
6400 2002-06-18  Keith Seitz  <keiths@redhat.com>
6401
6402         * breakpoint.c (condition_command): Post breakpoint_modify
6403         when a condition is added to an existing breakpoint.
6404         (commands_command): Likewise for commands.
6405         (set_ignore_count): Likewise for ignore counts.
6406         If no tty, do not simply return, still need to send event
6407         notification.
6408         (ignore_command): Only print a newline if the command came
6409         from a tty.
6410         Don't call breakpoints_changed, since this is now properly
6411         handled by set_ignore_count.
6412
6413 2002-06-18  Andrew Cagney  <cagney@redhat.com>
6414
6415         * MAINTAINERS: Note that cris-elf target can be compiled with
6416         -Werror.
6417         * cris-tdep.c (cris_register_name): Make return type constant.
6418         (cris_breakpoint_from_pc): Ditto.
6419
6420 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
6421
6422         * frame.h (struct frame_info): Change type of context to 
6423         'struct context'.
6424
6425 2002-06-17  Andrew Cagney  <cagney@redhat.com>
6426
6427         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6428         pointer.
6429         * gdbarch.h, gdbarch.c: Regenerate.
6430         * config/mips/tm-mips.h (mips_register_name): Update.
6431         * i386-tdep.h (i386_register_name): Update.
6432         * mips-tdep.c (mips_register_name): Update
6433         * alpha-tdep.c (alpha_register_name): Update.
6434         * arch-utils.c (legacy_register_name): Update.
6435         * arch-utils.h (legacy_register_name): Update.
6436         * avr-tdep.c (avr_register_name): Update.
6437         * ia64-tdep.c (ia64_register_name): Update.
6438         * i386-tdep.c (i386_register_name): Update.
6439         * sparc-tdep.c (sparc32_register_name): Update.
6440         (sparc64_register_name): Update.
6441         (sparclite_register_name): Update.
6442         (sparclet_register_name): Update.
6443         * sh-tdep.c (sh_generic_register_name): Update.
6444         (sh_sh_register_name): Update.
6445         (sh_sh3_register_name): Update.
6446         (sh_sh3e_register_name): Update.
6447         (sh_sh_dsp_register_name): Update.
6448         (sh_sh3_dsp_register_name): Update.
6449         (sh_sh4_register_name): Update.
6450         (sh_sh64_register_name): Update.
6451         * s390-tdep.c (s390_register_name): Update.
6452         * rs6000-tdep.c (rs6000_register_name): Update.
6453         * ns32k-tdep.c (ns32k_register_name_32082): Update.
6454         (ns32k_register_name_32382): Update.
6455         * d10v-tdep.c (d10v_ts2_register_name): Update.
6456         (d10v_ts3_register_name): Update.
6457         * xstormy16-tdep.c (xstormy16_register_name): Update.
6458         * vax-tdep.c (vax_register_name): Update.
6459         * v850-tdep.c (v850_register_name): Update.
6460         * m68hc11-tdep.c (m68hc11_register_name): Update.
6461         * mn10300-tdep.c (mn10300_generic_register_name): Update.
6462         (am33_register_name): Update.
6463
6464 2002-06-17  Grace Sainsbury  <graces@redhat.com>
6465
6466         * m68k-tdep.c: Reindented.
6467
6468 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
6469
6470         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6471         list of predefined types.
6472
6473 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
6474
6475         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6476         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6477         REGISTER_CONVERT_TO_RAW): Remove defines.
6478         (i386_register_virtual_type, i386_register_convertible,
6479         i386_register_convert_to_virtual, i386_register_convert_to_raw):
6480         Remove prototypes.
6481         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6482         macros mentioned above.
6483
6484         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6485         (i386lynx_saved_pc_after_call): Remove prototype.
6486         * i386ly-tdep.c: Include "i386-tdep.h".
6487         (i386lynx_saved_pc_after_call): Make static.  Use
6488         read_memory_nobpt instead of read_memory.  Use
6489         read_memory_unsigned_integer instead of read_memory_integer.
6490         (i386lynx_init_abi): New function.
6491         (i386lynx_coff_osabi_sniffer): New function.
6492         (_initialize_i386bsd_tdep): New function.
6493
6494         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6495         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6496         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6497         (i386_fix_call_dummy): Remove prototype.
6498         * i386-tdep.c (i386_call_dummy_words): New variable.
6499         (i386_gdbarch_init): Adjust for removal of the
6500         macros mentioned above.
6501
6502 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
6503
6504         * command.h (add_setshow_auto_boolean_cmd): Replace
6505         add_set_auto_boolean_cmd.
6506         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6507         add_set_auto_boolean_cmd.
6508         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6509         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6510         mask-address'' command.
6511         (show_mask_address): Add cmd parameter.
6512         * remote.c (add_packet_config_cmd): Update.  Change type of
6513         set_func and show_func to cmd_sfunc_ftype.
6514         (_initialize_remote): Update `set remote Z-packet'
6515         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6516         (show_remote_protocol_e_packet_cmd): Ditto.
6517         (show_remote_protocol_E_packet_cmd): Ditto.
6518         (show_remote_protocol_P_packet_cmd): Ditto.
6519         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6520         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6521         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6522         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6523         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6524         (show_remote_protocol_Z_packet_cmd): Ditto.
6525         (show_remote_protocol_binary_download_cmd): Ditto.
6526         (show_remote_cmd): Pass NULL to all of above.
6527
6528 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
6529
6530         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6531         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6532         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6533         POP_FRAME): Remove defines.
6534         (i386_push_arguments, i386_store_struct_return,
6535         i386_extract_return_value, i386_store_return_value,
6536         i386_extract_struct_value_address, i386_push_dummy_frame,
6537         i386_pop_frame): Renove prototypes.
6538         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6539         macros mentioned above.
6540
6541 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
6542
6543         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6544         add_set_boolean_cmd.
6545         (add_setshow_cmd): New function.
6546         * command.h (add_setshow_boolean_cmd): Replace
6547         add_set_boolean_cmd.
6548         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6549         and ``set rdiromatzero''.
6550         * maint.c (_initialize_maint_cmds): Update commented out code.
6551         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6552         * target.c (initialize_targets): Update `set
6553         trust-readonly-sections'.
6554         * remote.c (_initialize_remote): Update `set remotebreak'.
6555
6556 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
6557
6558         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6559         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6560         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6561         fit into multi-arch framework.
6562         (i386_breakpoint_from_pc): New function.
6563         (i386_gdbarch_init): Adjust for removal of the macros mentioned
6564         above.
6565
6566         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6567         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6568         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6569         (i386_frameless_function_invocation, i386_frame_num_args,
6570         i386_frame_init_saved_regs): Remove prototypes.
6571         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6572         macros mentioned above.
6573
6574 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
6575
6576         * cli/cli-decode.c (set_cmd_cfunc): Update.
6577         (set_cmd_sfunc): Update.
6578         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6579         (set_cmd_sfunc, set_cmd_cfunc): Update.
6580         * cli/cli-decode.h: Update.
6581
6582 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
6583
6584         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6585         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6586
6587 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
6588
6589         * defs.h (auto_boolean): Declare enum.
6590         * command.h (cmd_auto_boolean): Delete enum.
6591         * mips-tdep.c (mask_address_var): Update.
6592         (mips_mask_address_p): Update.
6593         (show_mask_address): Update.
6594         * remote.c (struct packet_config): Update.
6595         (update_packet_config): Update.
6596         (show_packet_config_cmd): Update.
6597         (packet_ok): Update.
6598         (add_packet_config_cmd): Update.
6599         (_initialize_remote): 
6600         * command.h: Update.
6601         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6602         (do_setshow_command): Update.
6603         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6604         * cli/cli-decode.h: Update.
6605
6606 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
6607
6608         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6609         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6610         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6611         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6612         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6613         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6614
6615         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6616         list of DJGPP COFF targets.
6617
6618         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6619         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6620         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6621         (FP0_REGNUM): Remove define.
6622         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6623         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6624         (i386_register_virtual_size): Remove protoype.
6625         * i386-tdep.c (i386_register_virtual_size): Removed.
6626         (i386_extract_return_value, i386_store_return_value): Use
6627         FP0_REGNUM instead of NUM_FREGS to determine whether the
6628         floating-point registers are available.
6629         (i386_gdbarch_init): Tweak FIXME about FPU registers.
6630         Adjust for removal of macros mentioned above.
6631
6632 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
6633
6634         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
6635         comments.
6636         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6637         Remove prototypes.
6638         (supply_gregset, fill_gregset): Remove use of register keyword and
6639         remove declaration for regmap.  Use I386_NUM_GREGS instead of
6640         NUM_REGS and NUM_FREGS.
6641         (FPREGSET_FSAVE_OFFSET): Remove.
6642         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6643         NUM_FREGS to determine whether the floating-point registers are
6644         available.
6645
6646         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6647         gnu_store_registers): Replace usage of NUM_GREGS with
6648         I386_NUM_GREGS.
6649
6650         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6651         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6652         usage of NUM_GREGS with I386_NUM_GREGS.
6653
6654         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6655
6656         * i386bsd-nat.c: Include "i386-tdep.h".
6657         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6658         I386_NUM_GREGS.
6659
6660         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6661         and associated comment.  They no longer make any sense, since we
6662         don't use this file anymore on Linux.
6663
6664         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6665         * i386-tdep.c (i386_register_offset, i386_register_size): Use
6666         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6667         elements in these arrays.
6668         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6669         MAX_NUM_REGS.
6670
6671 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
6672
6673         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6674         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6675
6676 2002-06-14  Andrew Cagney  <cagney@redhat.com>
6677
6678         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6679         EXTRACT_RETURN_VALUE.
6680         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6681         EXTRACT_STRUCT_VALUE_ADDRESS.
6682         * gdbarch.h, gdbarch.c: Regenerate.
6683         
6684         * values.c (value_being_returned): Handle
6685         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6686         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6687
6688         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
6689         * arm-tdep.c (arm_gdbarch_init): Update.
6690         * avr-tdep.c (avr_gdbarch_init): Update.
6691         * cris-tdep.c (cris_gdbarch_init): Update.
6692         * d10v-tdep.c (d10v_gdbarch_init): Update.
6693         * ia64-tdep.c (ia64_gdbarch_init): Update.
6694         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6695         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6696         * s390-tdep.c (s390_gdbarch_init): Update.
6697         * sh-tdep.c (sh_gdbarch_init): Update.
6698         * s390-tdep.c (s390_gdbarch_init): Update.
6699         * sparc-tdep.c (sparc_gdbarch_init): Update.
6700         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6701         * v850-tdep.c (v850_gdbarch_init): Update.
6702         * vax-tdep.c (vax_gdbarch_init): Update.
6703         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6704         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6705
6706         * config/arc/tm-arc.h: Update.
6707         * config/d30v/tm-d30v.h: Update.
6708         * config/fr30/tm-fr30.h: Update.
6709         * config/h8300/tm-h8300.h: Update.
6710         * config/h8500/tm-h8500.h: Update.
6711         * config/i386/tm-i386.h: Update.
6712         * config/i386/tm-ptx.h: Update.
6713         * config/i386/tm-symmetry.h: Update.
6714         * config/i960/tm-i960.h: Update.
6715         * config/m32r/tm-m32r.h: Update.
6716         * config/m68k/tm-delta68.h: Update.
6717         * config/m68k/tm-linux.h: Update.
6718         * config/m68k/tm-m68k.h: Update.
6719         * config/m88k/tm-m88k.h: Update.
6720         * config/mcore/tm-mcore.h: Update.
6721         * config/mips/tm-mips.h: Update.
6722         * config/mn10200/tm-mn10200.h: Update.
6723         * config/pa/tm-hppa.h: Update.
6724         * config/pa/tm-hppa64.h: Update.
6725         * config/sparc/tm-sp64.h: Update.
6726         * config/sparc/tm-sparc.h: Update.
6727         * config/sparc/tm-sparclet.h: Update.
6728         * config/z8k/tm-z8k.h: Update.
6729
6730 2002-06-14  Andrew Cagney  <cagney@redhat.com>
6731
6732         * Makefile.in (i386_linux_tdep_h): Define.
6733         (i386_tdep_h, i387_tdep_h): Define.
6734         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6735         $(i386_tdep_h) and $(i387_tdep_h).
6736         * i386-linux-nat.c: Include "i386-linux-tdep.h".
6737
6738 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
6739
6740         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6741         Already covered by the default.
6742
6743         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6744         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
6745         (i386_gdbarch_init): Initialize long_double_format and long_double
6746         bit.
6747
6748         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6749         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
6750         Move these to ...
6751         * config/i386/i386sol2.mh: ... here.
6752         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6753         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6754         (SIGCONTEXT_PC_OFFSET): Remove define.
6755         (IN_SIGTRAMP): Remove define.
6756         * i386-sol2-tdep.c: New file.
6757         
6758         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6759         * config/i386/tm-i386nw.h: Removed.
6760
6761         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6762         USE_STRUCT_CONVENTION): Remove defines.
6763         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6764         (get_longjmp_target): Remove prototype.
6765         (IN_SIGTRAMP): Remove define.
6766         (i386bsd_in_sigtramp): Remove prototype.
6767         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6768         function.  Update comment accordingly
6769         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6770         (FRAME_SAVED_PC): Remove define.
6771         (i386bsd_frame_saved_pc): Remove prototype.
6772         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6773         GET_LONGJMP_TARGET): Remove defines.
6774         (get_longjmp_target): Remove prototype.
6775         (IN_SIGTRAMP): Remove define.
6776         (i386bsd_in_sigtramp): Remove prototype.
6777         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6778         function.  Update comment accordingly
6779         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6780         (FRAME_SAVED_PC): Remove define.
6781         (i386bsd_frame_saved_pc): Remove prototype.
6782         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6783         Remove prototype.
6784         (USE_STRUCT_CONVENTION): Remove prototype.
6785         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6786         declaration.
6787         (_initialize_i386bsd_nat): Revise logic to determine some
6788         constants at compile time when compiling a native GDB.  Warn if
6789         things don't match up with what we expect.
6790         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6791         Remove variables.
6792         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
6793         to use date stored in `struct gdbarch_tdep'.
6794         (i386bsd_sigcontext_offset): Remove varaible.
6795         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
6796         stored in `struct gdbarch_tdep'.
6797         (i386bsd_frame_saved_pc): Make static.
6798         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6799         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6800         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6801         i386fbsd4_sc_pc_offset): New variables.
6802         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6803         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6804         functions.
6805         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6806         functions.
6807         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6808         Modify the value of i386fbsd_sigtramp_start and
6809         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6810         i386fbsd_sigtramp_end.
6811         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6812         function.
6813
6814         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6815         define to i386-linux-tdep.h.
6816         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6817         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6818         defines.
6819         (i386_linux_register_name, i386_linux_register_byte,
6820         i386_linux_register_raw_size): Remove prototypes.
6821         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6822         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6823         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6824         TARGET_WRITE_PC): Remove defines.
6825         (i386_linux_in_sigtramp, i386_linux_frame_chain,
6826         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6827         i386_linux_write_pc): Remove prototypes.
6828         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6829         (get_longjmp_target): Remove prototype.
6830         * i386-linux-tdep.h: New file.
6831         * i386-linux-nat.c: Include "i386-linux-tdep.h".
6832         * i386-linux-tdep.c: Include "i386-tdep.h" and
6833         "i386-linux-tdep.h".
6834         (i386_linux_register_name, i386_linux_register_byte,
6835         i386_linux_register_raw_size, i386_linux_in_sigtramp,
6836         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6837         Make static.
6838         (i386_linux_init_abi): New function.
6839         (_initialize_i386_linux_tdep): New function.
6840
6841         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6842         (i386_saved_pc_after_call): Remove prototype.
6843         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6844         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6845         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6846         (i386_register_name, i386_stab_reg_to_regnum,
6847         i386_dwarf_reg_to_regnum): Remove prototypes.
6848         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6849         SIZEOF_SSE_REGS): Remove defines.
6850         (REGISTER_BYTES): Remove define.
6851         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6852         (i386_register_byte, i386_register_raw_size): Remove prototypes.
6853         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6854         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6855         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6856         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6857         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6858         (get_longjmp_target): Remove prototype.
6859         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6860         (sigtramp_saved_pc): Remove define.
6861         (i386v4_sigtramp_saved_pc): Remove prototype.
6862         * config/i386/tm-go32.h (FRAME_CHAIN,
6863         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6864         (i386go32_frame_saved_pc): Remove prototype.
6865         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6866         (get_longjmp_target): Remove prototype.
6867         * i386-tdep.h: Include "osabi.h".
6868         (enum i386_abi): Removed.
6869         (enum struct_return): New enum.
6870         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6871         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6872         sc_pc_offset members.
6873         (i386_gdbarch_register_os_abi): Remove prototype.
6874         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6875         I386_SSE_NUM_REGS): New defines.
6876         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6877         I386_SSE_SIZEOF_REGS): New defines.
6878         (i386_register_name, i386_register_byte, i386_register_raw_size):
6879         New prototypes.
6880         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6881         (i386bsd_sigtramp_saved_pc): New prototype.
6882         * i386-tdep.c: Don't include "elf-bfd.h".
6883         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6884         i386_frame_chain, i386_saved_pc_after_call): Make static.
6885         (i386_frame_saved_pc): Rewrite to call architecture dependent
6886         function to deal with signal handlers.  Make static.
6887         (i386go32_frame_saved_pc): Removed.
6888         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6889         Removed.
6890         (i386_get_longjmp_target): New function.
6891         (default_struct_convention, pcc_struct_convention,
6892         reg_struct_convention, valid_conventions, struct_convention): New
6893         variables.
6894         (i386_use_struct_convention): New function.
6895         (i386v4_sigtramp_saved_pc): Renamed to
6896         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
6897         (i386_pc_in_sigtramp): New function.
6898         (i386_abi_names): Removed.
6899         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6900         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6901         Removed.
6902         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6903         i386_gdbarch_register_os_abi): Removed.
6904         (struct i386_abi_handler): Removed.
6905         (i386_abi_handler_list): Removed.
6906         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6907         functions.
6908         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6909         i386_nw_init_abi): New functions.
6910         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6911         Use set_gdbarch_xxx() calls instead of relying on macros for a
6912         number of calls.
6913         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6914         (_initialize_i386_tdep): Add new 'struct-convcention' command.
6915         Register the various architecture variants defined in this file.
6916
6917 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
6918
6919         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6920         (struct main_type): Remove arg_types member.  Update comments for
6921         struct field.
6922         (TYPE_ARG_TYPES): Remove.
6923         (TYPE_FN_FIELD_ARGS): Update.
6924         (smash_to_method_type): Update prototype.
6925
6926         * c-typeprint.c (cp_type_print_method_args): Take method type
6927         instead of argument list.  Use new argument layout.  Simplify.
6928         (c_type_print_args): Use new argument layout.  Simplify.
6929         (c_type_print_base): Update call to cp_type_print_method_args.
6930         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6931         argument; use die->type instead.  Update call to
6932         smash_to_method_type.
6933         (read_structure_scope): Update call to dwarf2_add_member_fn.
6934         * gdbtypes.c (allocate_stub_method): Update comment.
6935         (smash_to_method_type): Take new NARGS and VARARGS arguments.
6936         Use new argument layout.
6937         (check_stub_method): Use new argument layout.  Don't count
6938         void as an argument.
6939         (print_arg_types): Update comments.  Use new argument layout.
6940         (recursive_dump_type): Don't print arg_types member.
6941         * hpread.c (hpread_read_struct_type): Use new argument layout.
6942         (fixup_class_method_type): Likewise.
6943         (hpread_type_lookup): Likewise.
6944         * stabsread.c (read_type): Update calls to read_args and
6945         smash_to_method_type.
6946         (read_args): Use new argument layout.  Simplify.
6947         * valops.c (typecmp): Use new argument layout.  Update parameters
6948         and comments.  Simplify.
6949         (hand_function_call): Use new argument layout.
6950         (search_struct_method): Update call to typecmp.
6951         (find_overload_match): Use new argument layout.
6952
6953 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
6954
6955         * NEWS: Mention multithreaded debug support for gdbserver.
6956
6957 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
6958
6959         * MAINTAINERS: Mention NEWS.
6960
6961 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
6962
6963         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6964         (struct mips_objfile_private, compare_pdr_entries): New.
6965         (non_heuristic_proc_desc): Read the ".pdr" section if it
6966         is present.
6967
6968 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
6969
6970         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6971         (arm_debug): New static variable.
6972         (_initialize_arm_tdep): Add ``set debug arm'' command.
6973
6974 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
6975
6976         * Makefile.in (sim_arm_h): Define.
6977         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6978         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6979         (arm_register_sim_regno): New function, map an internal REGNUM
6980         onto a simulator register number.
6981         (arm_gdbarch_init): Set register_sim_regno.
6982
6983 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
6984
6985         * MAINTAINERS: Add self.
6986
6987 2002-06-11  Jim Blandy  <jimb@redhat.com>
6988
6989         * source.c (source_info): Mention whether the symtab has
6990         information about preprocessor macros.
6991
6992         Call the command `info macro', not `show macro'.
6993         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6994         Fix error message.
6995         (_initialize_macrocmd): Register `info_macro_command' in
6996         `infolist', not `showlist'.
6997
6998 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
6999
7000         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7001         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7002         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7003         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7004         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
7005         unconditionally.
7006         (set_mipsfpu_single_command, set_mipsfpu_double_command)
7007         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7008         (_initialize_mips_tdep): Remove dead code.
7009         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7010         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7011         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7012         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7013         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7014         MIPS_LAST_FP_ARG_REGNUM): Remove.
7015
7016 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
7017
7018         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7019         (unwind_tmp_obstack_free, parse_frame_info)
7020         (update_context, cfi_read_fp, cfi_write_fp)
7021         (cfi_frame_chain, cfi_init_extra_frame_info)
7022         (cfi_virtual_frame_pointer): Use the above function.
7023         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7024
7025 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
7026
7027         * v850-tdep.c (v850_type_is_scalar): New function.
7028         (v850_use_struct_convention): Match current gcc implementation
7029         as close as possible.
7030         (v850_push_arguments): Fix stack_offset handling.  Don't write
7031         struct_addr into register.  This is done by v850_store_struct_return.
7032         (v850_extract_return_value): Care for structs.
7033         (v850_store_return_value): Ditto.
7034         (v850_store_struct_return): Actually write address.
7035
7036 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
7037
7038         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7039         without debug information too.
7040
7041 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
7042
7043         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7044         Make multi-arch pure.
7045         * gdbarch.h, gdbarch.c: Re-generate.
7046         * arm-tdep.c (arm_print_float_info): Update.
7047         * arch-utils.h (default_print_float_info): Update.
7048         * arch-utils.c (default_print_float_info): Update.
7049         * infcmd.c (float_info): Update call.
7050
7051 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
7052
7053         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7054         the front of the initialize list.
7055
7056 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
7057
7058         * infrun.c (struct inferior_status): Replace fields
7059         selected_frame_address and selected_level with field
7060         selected_frame_id.
7061         (save_inferior_status): Update.  Use get_frame_id.
7062         (struct restore_selected_frame_args): Delete.
7063         (restore_selected_frame): Update.  Use frame_find_by_id.
7064         (restore_inferior_status): Update.
7065
7066         * breakpoint.h (struct breakpoint): Change type of
7067         watchpoint_frame to frame_id.
7068         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
7069         call to get_current_frame.
7070         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
7071         get_current_frame.
7072         (watchpoint_check): Use frame_find_by_id.
7073
7074         * frame.h (record_selected_frame): Delete declaration.
7075         * stack.c (record_selected_frame): Delete function.
7076         
7077         * frame.h (struct frame_id): Define.
7078         (get_frame_id): Declare.
7079         (frame_find_by_id): Declare.
7080         * frame.c (frame_find_by_id): New function.
7081         (get_frame_id): New function.
7082
7083 2002-06-10  Andrey Volkov <avolkov@transas.com>
7084
7085         * ser-e7kpc.c: Fix duplicated define and call of 
7086         _initialize_ser_e7000pc
7087             
7088 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
7089
7090         * signals/signals.c (target_signal_from_host): Fix #ifdef
7091         SIGRTMIN case.
7092         (do_target_signal_to_host): Likewise.
7093
7094 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
7095
7096         * mips-tdep.c (mips_find_abi_section): New function.
7097         (mips_gdbarch_init): Call it.
7098
7099 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
7100
7101         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7102         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
7103         after Andrew's 2002-06-08 gdbarch change.
7104
7105 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
7106
7107         * i386-linux-nat.c (suppy_gregset): Don't supply
7108         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7109         register cache.
7110         (fill_gregset): Don't fetch it under the same circumstances.
7111
7112 2002-06-09  Andrew Cagney  <cagney@redhat.com>
7113
7114         * Makefile.in (callback_h): Define.
7115         (remote_sim_h): Update path to remote-sim.h.
7116         (remote-rdp.o): Add $(callback_h).
7117         (remote-sim.o): Use $(callback_h).
7118         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7119         * remote-rdp.c: Include "gdb/callback.h".
7120
7121 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
7122
7123         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7124         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7125
7126 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
7127
7128         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7129         * rdi-share/serpardr.c: Ditto.
7130         * rdi-share/unixcomm.c: Ditto.
7131         * rdi-share/serdrv.c: Ditto.
7132         * rdi-share/hostchan.h: Ditto.
7133         * rdi-share/hostchan.c: Ditto.
7134         * rdi-share/host.h: Ditto.
7135         * rdi-share/devsw.c: Ditto.
7136
7137         * objfiles.h: Change type of obj_private to void pointer.
7138         * pa64solib.c: Update copyright.  Don't include "assert.h", use
7139         strcmp instead of STREQ, use LONGEST, do not use PTR
7140         * somsolib.c: Ditto.
7141
7142         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7143         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7144         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7145
7146 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
7147
7148         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7149         (default_get_saved_register): Delete function.
7150         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7151         generic_unwind_get_saved_register.
7152         * gdbarch.h, gdbarch.c: Re-generate.
7153         
7154 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
7155
7156         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7157         generic_func_frame_chain_valid.
7158         * gdbarch.h, gdbarch.c: Re-generate.
7159         * blockframe.c (generic_func_frame_chain_valid): Only check
7160         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
7161         passing FP to PC_IN_CALL_DUMMY.
7162         Fix PR gdb/360.
7163
7164 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
7165
7166         * gdbarch.sh (struct gdbarch_data): Add field init_p.
7167         (register_gdbarch_data): Initialize init_p.
7168         (gdbarch_data): Initialize data pointer using the init function.
7169         (init_gdbarch_data): Delete function.
7170         (gdbarch_update_p): Update.
7171         (initialize_non_multiarch): Update.
7172         (struct gdbarch): Add field initialized_p.
7173         * gdbarch.h, gdbarch.c: Re-generate.
7174
7175 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
7176
7177         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7178         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7179         better do the things actually here.
7180         * x86-64-tdep.c (x86_64_register_name2nr): New.
7181         (x86_64_register_name): Renamed to x86_64_register_nr2name.
7182         (x86_64_gdbarch_init): Respect the above change.
7183         * x86-64-tdep.h (x86_64_register_name2nr)
7184         (x86_64_register_nr2name): Add prototypes.
7185         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7186
7187 2002-06-06  Michael Snyder  <msnyder@redhat.com>
7188
7189         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7190         Delete extra braces and re-indent.
7191         (d10v_store_return_value): Char return values
7192         must be shifted over by one byte in R0.
7193         (d10v_extract_return_value): Delete extra braces, re-indent.
7194
7195 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
7196
7197         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7198         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7199         (d10v_integer_to_address): Rewrite.
7200         (d10v_frame_init_saved_regs): When reading fp and sp registers use
7201         the d10v specific functions which take care of converting to the
7202         correct space.
7203
7204 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
7205
7206         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7207         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7208
7209 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
7210
7211         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7212         includes.
7213         * config/tm-linux.h: Ditto.
7214         * config/alpha/tm-alphalinux.h: Ditto.
7215         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7216         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7217         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7218         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7219         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7220         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7221         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7222         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7223         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7224         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7225         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7226         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7227         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7228         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7229         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7230         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7231         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7232         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7233         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7234         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7235         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7236         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7237         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7238         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7239         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7240         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7241         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7242         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7243         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7244         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7245         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7246         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7247         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7248         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7249         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7250         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7251         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7252
7253 2002-05-04  Aidan Skinner <aidan@velvet.net>
7254
7255         * ada-exp.tab.c: New file
7256         * ada-exp.y: New file
7257         * ada-lang.c: New file
7258         * ada-lang.h: New file
7259         * ada-lex.c: New file
7260         * ada-lex.l: New file
7261         * ada-tasks.c: New file
7262         * ada-typeprint.c: New file
7263         * ada-valprint.c: New file
7264         
7265 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
7266
7267         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7268         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7269
7270 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
7271
7272         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7273         insetead of ppc-linux-tdep.o.
7274         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7275         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7276
7277 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
7278
7279         2002-05-07 Christian Groessler <chris@groessler.org>
7280         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7281         bit register contents for little endian hosts.
7282
7283 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
7284
7285         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7286         any maintainer.
7287
7288 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
7289
7290         * gdbarch.h: Regenerate.
7291
7292 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
7293
7294         * MAINTAINERS: Add everyone to write-after-approval list.
7295
7296 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
7297
7298         * stack.c (frame_info): Use frame_register_unwind instead of
7299         saved_regs.  Mention when the SP is on the stack or in a register.
7300
7301         * frame.h (frame_register_unwind_ftype): Define.  Document.
7302         (struct frame_info): Add field register_unwind and
7303         register_unwind_cache.
7304         (frame_register_unwind): Declare.
7305         (generic_unwind_get_saved_register): Declare.
7306
7307         * frame.c (frame_register_unwind): New function.
7308         (generic_unwind_get_saved_register): New function.
7309
7310         * blockframe.c (generic_call_dummy_register_unwind): New function.
7311         (frame_saved_regs_register_unwind): New function.
7312         (set_unwind_by_pc): New function.
7313         (create_new_frame): New function.
7314         (get_prev_frame): New function.
7315
7316 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
7317
7318         * a29k-share/: Delete directory.
7319         * remote-vx29k.c: Delete file.
7320
7321 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
7322
7323         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7324         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7325
7326 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
7327
7328         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7329         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7330         (sparc64nbsd-nat.o)
7331         (sparcnbsd-nat.o)
7332         (sparcnbsd-tdep.o): New dependency lists.
7333         * NEWS: Note new UltraSPARC NetBSD native configuration.
7334         * configure.host (sparc64-*-netbsd*): New host.
7335         * configure.tgt (sparc-*-netbsdelf*)
7336         (sparc-*-netbsd*): Set gdb_target to nbsd.
7337         (sparc64-*-netbsd*): New target.
7338         * sparc64nbsd-nat.c: New file.
7339         * sparcnbsd-nat.c: New file.
7340         * sparcnbsd-tdep.c: New file.
7341         * sparcnbsd-tdep.h: New file.
7342         * config/sparc/nbsd.mt: New file.
7343         * config/sparc/nbsd64.mh: New file.
7344         * config/sparc/nbsd64.mt: New file.
7345         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7346         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
7347         (HOST_IPC): Remove.
7348         * config/sparc/nbsdaout.mt: Remove.
7349         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7350         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
7351         (HOST_IPC): Remove.
7352         * config/sparc/nbsdelf.mt: Remove.
7353         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
7354         sparc-nat.c compatiblity defines.
7355         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
7356         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7357         * config/sparc/tm-nbsd64.h: New file.
7358         * config/sparc/tm-nbsdaout.h: Remove.
7359         * config/sparc/xm-nbsd.h: Remove.
7360
7361 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
7362
7363         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7364         * sparc-tdep.c: Include osabi.h.
7365         (gdbarch_tdep): Add osabi member.
7366         (_initialize_sparc_tdep): Use gdbarch_register.
7367         (sparc_gdbarch_init): Use generic OS ABI framework.
7368         (sparc_dump_tdep): New function.
7369
7370 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
7371
7372         * corefile.c (do_captured_read_memory_integer): Return non-zero
7373         result.
7374         (safe_read_memory_integer): Copy result of memory read when
7375         status is non-zero.  Also, add comments.
7376
7377 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
7378
7379         * Makefile.in (ppc_tdep_h): Define.
7380         (ppc-linux-nat.o)
7381         (ppc-linux-tdep.o)
7382         (rs6000-tdep.o): Use $(ppc_tdep_h).
7383         (ppc-sysv-tdep.o)
7384         (ppcnbsd-nat.o)
7385         (ppcnbsd-tdep.o): New dependency lists.
7386         * ppc-tdep.h: Use generic OS ABI framework.
7387         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7388         (ppc_linux_init_abi): New functions.
7389         (ppc_sysv_abi_broken_use_struct_convention)
7390         (ppc_sysv_abi_use_struct_convention)
7391         (ppc_sysv_abi_push_arguments): Move to...
7392         * ppc-sysv-tdep.c: ...here.
7393         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7394         * rs6000-tdep.c (process_note_abi_tag_sections)
7395         (get_elfosabi): Remove.
7396         (rs6000_gdbarch_init): Use generic OS ABI framework.
7397         (rs6000_dump_tdep): New function.
7398         (_initialize_rs6000_tdep): Use gdbarch_register.
7399         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7400         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7401         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7402         of ppc-linux-tdep.o.
7403         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7404         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7405         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7406         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7407         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7408         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7409
7410 2002-05-29  Jim Blandy  <jimb@redhat.com>
7411
7412         * macroscope.c (default_macro_scope): Put `void' in empty argument
7413         list.
7414
7415 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
7416
7417         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7418         * arch-utils.c: Include "sim-regno.h".
7419         * gdbarch.sh: Don't include "sim-regno.h".
7420         * gdbarch.h, gdbarch.c: Regenerate.
7421         * sim-regno.h (legacy_register_sim_regno): Move declaration from
7422         here.
7423         * arch-utils.h (legacy_register_sim_regno): To here.
7424         * remote-sim.c (legacy_register_sim_regno): Move function from
7425         here.
7426         * arch-utils.c (legacy_register_sim_regno): To here.
7427
7428 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
7429
7430         * sim-regno.h: New file.
7431         * Makefile.in (sim_regno_h): Define.
7432         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7433         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7434         (legacy_register_sim_regno): New function.
7435         (one2one_register_sim_regno): New function.
7436         (gdbsim_fetch_register): Rewrite.
7437         (gdbsim_store_register): Only store a register when
7438         REGISTER_SIM_REGNO is valid.
7439         * d10v-tdep.c: Include "sim-regno.h".
7440         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7441         (d10v_ts3_register_sim_regno): Ditto.
7442         * gdbarch.sh: Include "sim-regno.h".
7443         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7444         * gdbarch.h, gdbarch.c: Regenerate.
7445         * arch-utils.h (default_register_sim_regno): Delete declaration.
7446         * arch-utils.c (default_register_sim_regno): Delete function.
7447
7448 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
7449
7450         * ppcnbsd-nat.c: Rewrite.
7451         * ppcnbsd-tdep.c: New file.
7452         * ppcnbsd-tdep.h: New file.
7453         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7454         solib.o, and solib-svr4.o.
7455         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7456         nbsd-tdep.o, and corelow.o.
7457
7458 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
7459
7460         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7461         `tr' and `sed'.  Mention that `broken' targets are not expected to
7462         build.
7463
7464 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
7465
7466         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7467         Let PC point right after the prologue before looking up symbols.
7468         
7469 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
7470
7471         * i386-tdep.c (i386_register_virtual_type): Return 
7472         builtin_type_vec128i for SSE registers.
7473
7474         * gdbtypes.h (builtin_type_vec128i): Declare.
7475
7476         * gdbtypes.c (build_builtin_type_vec128i): New function.
7477         (builtin_type_v2_double, builtin_type_v4_int64): New types.
7478         (builtin_type_vec128i): New type for SSE2 128-bit registers.
7479         (build_gdbtypes): Initialize new builtin vector types.
7480         (_initialize_gdbtypes): Register new vector types with gdbarch.
7481
7482 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
7483
7484         * MAINTAINERS: ns32k is not longer an obsolete candidate,
7485         since it has been multi-arch'd.
7486         * NEWS: Note that ns32k-*-* is now partial multi-arch.
7487         Move Alpha and VAX multi-arch news entries to same section
7488         as other multi-arch news.
7489
7490 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
7491
7492         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7493         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
7494         static.  Rename some register numbers to put them in ns32k-tdep
7495         private namespace.
7496         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7497         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7498         functions.
7499         (_initialize_ns32k_tdep): Use gdbarch_register.
7500         * ns32k-tdep.h: New file.
7501         * ns32knbsd-tdep.c: New file.
7502         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7503         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7504         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7505         REGISTER_BYTES, REGISTER_BYTE): Remove.
7506         * config/ns32k/tm-ns32k.h: New file.
7507         * config/ns32k/tm-umax.h: Remove.
7508
7509 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
7510
7511         * ns32k-tdep.c (ns32k_saved_pc_after_call,
7512         ns32k_store_struct_return, ns32k_extract_return_value,
7513         ns32k_store_return_value, ns32k_extract_struct_value_address): New
7514         functions.
7515         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7516         ns32k_saved_pc_after_call.
7517         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7518         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7519         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7520         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7521         ns32k_extract_struct_value_address.
7522
7523 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
7524
7525         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7526         ns32k_fix_call_dummy): New.
7527         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7528         ns32k_call_dummy_words.
7529         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7530         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7531         CALL_DUMMY_NARGS): Remove.
7532         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7533
7534 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
7535
7536         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7537         ns32k_frame_saved_pc, ns32k_frame_args_address,
7538         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7539         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7540         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7541         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7542         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7543         (BREAKPOINT): Remove..
7544         (FRAME_CHAIN): Define as ns32k_frame_chain.
7545         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7546         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7547         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7548         (FRAME_FIND_SAVED_REGS): Remove.
7549         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7550         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7551         (POP_FRAME): Define as ns32k_pop_frame.
7552
7553 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
7554
7555         * ns32k-tdep.c (ns32k_register_byte_32082,
7556         ns32k_register_byte_32382, ns32k_register_raw_size,
7557         ns32k_register_virtual_size, ns32k_register_virtual_type): New
7558         functions.
7559         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7560         ns32k_register_byte_32382.
7561         * config/ns32k/tm-umax.h: Update copyright years.
7562         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7563         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7564         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7565         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7566         (ns32k_get_enter_addr): Fix prototype.
7567
7568 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
7569
7570         * ns32k-tdep.c: Update copyright years.
7571         (ns32k_register_name_32082): New function.
7572         (ns32k_register_name_32382): Ditto.
7573         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7574         (REGISTER_NAME): Define as ns32k_register_name_32382.
7575         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7576         (REGISTER_NAME): Define as ns32k_register_name_32082.
7577
7578 2002-05-24  Jim Blandy  <jimb@redhat.com>
7579
7580         * dwarf2read.c (free_line_header): Use xfree, not free.
7581
7582 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
7583
7584         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7585         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7586
7587 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
7588
7589         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7590
7591 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
7592
7593         From Ross Alexander at NEC Europe:
7594         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7595
7596 2002-05-23  Michael Snyder  <msnyder@redhat.com>
7597
7598         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7599         for input, rather than parse_and_eval_address.  
7600
7601 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
7602
7603         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7604         * Makefile.in (sim_d10v_h): Update definition.
7605
7606 2002-05-24  Andrew Cagney  <cagney@redhat.com>
7607
7608         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7609         change `2002-05-22 Michael Snyder' below.
7610         (d10v_push_arguments): Ditto.
7611         (d10v_extract_return_value): Ditto.
7612
7613 2002-05-23  Jim Blandy  <jimb@redhat.com>
7614
7615         * macrotab.c (check_for_redefinition): Don't complain if the new
7616         definition is the same as the previous one.  Take more arguments
7617         to allow the comparison.
7618         (macro_define_object, macro_define_function): Pass more arguments
7619         to check_for_redefinition.
7620
7621 2002-05-22  Michael Snyder  <msnyder@redhat.com>
7622
7623         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7624         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7625         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7626         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7627         Don't bail if return_pc is PC_IN_CALL_DUMMY.
7628         Add a temp variable to save a call (and a memory read).
7629         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7630         if possible (so that PC_IN_CALL_DUMMY will work).
7631
7632 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
7633
7634         * MAINTAINERS: Remove status `OBSOLETE' from v850.
7635
7636 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
7637
7638         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7639         fde->cie_ptr.
7640         (dwarf2_build_frame_info): Corrected handling of eh_frame.
7641         (dwarf2_build_frame_info): Add offset to fde->initial_location 
7642         so that frames of shared libraries are mapped correctly.
7643         (execute_stack_op): Change type of 'result' from ULONGEST to
7644         CORE_ADDR.
7645         
7646 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
7647
7648         * config/alpha/tm-nbsd.h: Include solib.h.
7649
7650 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
7651
7652         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7653         assumptions about the host's byte order.
7654
7655 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
7656
7657         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7658         to dependency list.
7659         * alphanbsd-tdep.c: Include solib-svr4.h.
7660         * shnbsd-tdep.c: Ditto.
7661
7662 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
7663
7664         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7665         nbsd-tdep.h to dependency list.
7666         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7667         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7668         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7669         nbsdaout.mh and nbsdelf.mh consistently.
7670         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7671         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7672         nbsdaout.mt and nbsdelf.mh consistently.
7673         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
7674         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7675         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7676         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
7677         a.out shared library stuff from here...
7678         * config/nm-nbsdaout.h: ...to here.
7679         * config/tm-nbsd.h: Remove.
7680         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7681         * config/arm/nbsd.mh: Remove.
7682         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7683         nbsd-tdep.o.
7684         * config/arm/nbsdaout.mh: New file. 
7685         * config/arm/nbsdelf.mh: New file.
7686         * config/arm/nm-nbsdaout.h: New file.
7687         * config/i386/nbsd.mh: Remove.
7688         * config/i386/nbsd.mt: Remove.
7689         * config/i386/nbsdaout.mh: New file.
7690         * config/i386/nbsdaout.mt: New file.
7691         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7692         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7693         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
7694         i386_register_u_addr): Remove.
7695         * config/i386/nm-nbsdaout.h: New file.
7696         * config/i386/nm-nbsdelf.h: Remove.
7697         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7698         (USE_STRUCT_CONVENTION): Remove.
7699         * config/i386/tm-nbsdaout.h: New file.
7700         * config/i386/tm-nbsdelf.h: Remove.
7701         * config/m68k/nbsd.mh: Remove.
7702         * config/m68k/nbsd.mt: Remove.
7703         * config/m68k/nbsdaout.mh: New file.
7704         * config/m68k/nbsdaout.mt: New file. 
7705         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7706         * config/m68k/nm-nbsdaout.h: New file.
7707         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7708         (IN_SOLIB_CALL_TRAMPOLINE): Define.
7709         * config/ns32k/nbsd.mh: Remove.
7710         * config/ns32k/nbsd.mt: Remove. 
7711         * config/ns32k/nbsdaout.mh: New file.
7712         * config/ns32k/nbsdaout.mt: New file.
7713         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
7714         * config/ns32k/nm-nbsdaout.h: New file.
7715         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
7716         (IN_SOLIB_CALL_TRAMPOLINE): Define.
7717         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7718         (SVR4_SHARED_LIBS): Remove.
7719         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7720         * config/sparc/nbsd.mh: Remove.
7721         * config/sparc/nbsd.mt: Remove.
7722         * config/sparc/nbsdaout.mh: New file.
7723         * config/sparc/nbsdaout.mt: New file.
7724         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7725         * config/sparc/nbsdelf.mt: New file.
7726         * config/sparc/nm-nbsdaout.h: New file.   
7727         * config/sparc/nm-nbsdelf.h: Remove.
7728         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7729         * config/sparc/tm-nbsdaout.h: New file.
7730
7731 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
7732
7733         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7734         mipsnbsd-tdep.c
7735         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7736
7737 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
7738
7739         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7740         shnbsd-nat.c.
7741         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7742
7743 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
7744
7745         * NEWS: Note new MIPS NetBSD native configuration. 
7746         * configure.host (mips*-*-netbsd*): New host. 
7747         * configure.tgt (mips*-*-netbsd*): New target. 
7748         * mipsnbsd-nat.c: New file.
7749         * mipsnbsd-tdep.c: New file.
7750         * mipsnbsd-tdep.h: New file.
7751         * config/mips/nbsd.mh: New file.
7752         * config/mips/nbsd.mt: New file.
7753         * config/mips/nm-nbsd.h: New file.
7754         * config/mips/tm-nbsd.h: New file.
7755
7756 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
7757
7758         * Makefile.in (SFILES): Add osabi.c.
7759         (COMMON_OBS): Add osabi.o.
7760         (osabi.o): New dependency list.
7761         * osabi.c: New file.
7762         * osabi.h: New file.
7763         * doc/gdbint.texinfo: Document new generic OS ABI framework.
7764
7765         * Makefile.in (alpha_tdep_h): Define and use instead of
7766         alpha-tdep.h.
7767         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7768         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7769         Remove.
7770         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7771         * alpha-tdep.h: Include osabi.h.
7772         (alpha_abi): Remove.
7773         (gdbarch_tdep): Use generic OS ABI framework.
7774         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7775         gdbarch_register_osabi.
7776         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7777         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7778         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7779
7780         * Makefile.in (sh_tdep_h): Add osabi.h.
7781         * sh-tdep.h (sh_osabi): Remove.
7782         (gdbarch_tdep): Use generic OS ABI framework.
7783         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7784         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7785         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7786         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7787
7788         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7789         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7790         gdbarch_register_osabi.
7791         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7792         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7793         (get_elfosabi): Rename to...
7794         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
7795         ABI framework support routines.
7796         (arm_gdbarch_init): Use generic OS ABI framework.
7797         (arm_dump_tdep): Likewise.
7798         (_initialize_arm_tdep): Likewise.
7799         * arm-tdep.h: Include osabi.h.
7800         (arm_abi): Remove.
7801         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
7802         osabi member.
7803         (arm_gdbarch_register_os_abi): Remove prototype.
7804         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7805         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7806
7807         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7808         * mips-tdep.c: Include osabi.h.
7809         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7810         OS ABI framework.
7811
7812 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
7813
7814         * h8300-tdep.c: Fix formatting.
7815
7816 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
7817
7818         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7819         printing vector registers.
7820
7821 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
7822
7823         From Fernando Nasser:
7824         * remote.c (remote_async_open_1): Re-throw the exception when the
7825         connection fails.
7826         (remote_cisco_open): Ditto.
7827         (remote_open_1): Ditto.
7828
7829 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
7830
7831         * remote.c (remote_start_remote_dummy): Add uiout parameter.
7832         (remote_start_remote): Add uiout parameter.  Pass through to
7833         remote_start_remote_dummy.
7834         (remote_open_1): Use catch_exception instead of catch_errors.
7835         (remote_async_open_1): Ditto.
7836         (remote_cisco_open): Ditto.
7837
7838 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
7839
7840         * remote.c (remote_start_remote): Replace PTR with void pointer.
7841         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
7842         static.
7843
7844 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
7845
7846         * gdb_indent.sh: Allow the script to be run in the sim directory.
7847
7848 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
7849
7850         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7851         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7852
7853         * corelow.c (core_open): Only call set_gdbarch_from_file if
7854         exec_bfd is NULL.
7855
7856 2002-05-17  Andrey Volkov <avolkov@transas.com>
7857
7858         * h8300-tdep.c: Add support of EXR register
7859         * config/h8300/tm-h8300.h: Ditto. 
7860         
7861 2002-05-17  Andrey Volkov <avolkov@transas.com>
7862
7863         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
7864         
7865 2002-05-17  Andrey Volkov <avolkov@transas.com>
7866
7867         * h8300-tdep.c: Change literal regnums to REGNO.
7868         
7869 2002-05-17  Jim Blandy  <jimb@redhat.com>
7870
7871         * NEWS: Note addition of macro support.
7872
7873         Expand preprocessor macros in C expressions.
7874         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7875         (scan_macro_expansion, scanning_macro_expansion,
7876         finished_macro_expansion): New function declarations.
7877         (expression_macro_lookup_func, expression_macro_lookup_baton): New
7878         variable declarations.
7879         * parser-defs.h (expression_context_pc): New declaration.
7880         * parse.c (expression_context_pc): New variable.
7881         (parse_exp_1): Set expression_context_pc, as well as
7882         expression_context_block.
7883         * c-exp.y (yylex): If we're not already reading the result of a
7884         macro expansion, try to macro-expand the next token.  When we're
7885         done scanning a macro expansion, switch back to the mainline text.
7886         Commas and `if's in a macro's expansion don't terminate the input.
7887         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7888         (macro_original_text, macro_expanded_text,
7889         expression_macro_lookup_func, expression_macro_lookup_baton): New
7890         variables.
7891         (scan_macro_expansion, scanning_macro_expansion,
7892         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7893         c_preprocess_and_parse): New functions.
7894         (c_language_defn, cplus_language_defn, asm_language_defn): Call
7895         c_preprocess_and_parse, instead of c_parse.
7896         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7897         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7898
7899 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
7900
7901         * sh-tdep.c (gdb_print_insn_sh64): Delete.
7902         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7903         (sh_gdbarch_init): Always use gdb_print_insn_sh.
7904
7905 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
7906
7907         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
7908
7909 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
7910
7911         * Makefile.in (sh_tdep_h): Define and use.
7912         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7913         register enum): Move to...
7914         * * sh-tdep.h: ...here.
7915         * sh-tdep.c: Include sh-tdep.h.
7916         * sh3-rom.c: Likewise.
7917         * shnbsd-tdep.c: Likewise.
7918
7919 2002-05-16  Michael Snyder  <msnyder@redhat.com>
7920
7921         * arm-tdep.c: Spelling fix in comment.
7922
7923 2002-05-16  Jim Blandy  <jimb@redhat.com>
7924
7925         Add commands for manually expanding macros and showing their
7926         definitions.
7927         * macrocmd.c, macroscope.c, macroscope.h: New files.
7928         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7929         (macroscope_h): New variable.
7930         (HFILES_NO_SRCDIR): Add macroscope.h.
7931         (COMMON_OBS): Add macrocmd.o, macroscope.o.
7932         (macroscope.o, macrocmd.o): New rules.
7933
7934         Teach the Dwarf 2 reader to read macro information.
7935         * dwarf2read.c: #include "macrotab.h".
7936         (dwarf_macinfo_buffer): New variable.
7937         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7938         dwarf_macinfo_size.
7939         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7940         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7941         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7942         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7943         dwarf2_macro_spaces_in_definition): New complaints.
7944         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7945         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7946         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7947         the partial symbol table.
7948         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7949         from what's recorded in the partial symbol table.
7950         (read_file_scope): If the compilation unit has a
7951         `DW_AT_macro_info' attribute, read its macro information.
7952         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7953
7954 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
7955
7956         Fix PR gdb/546
7957         * ser-tcp.c: Don't include <netinet/udp.h>.
7958
7959 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
7960
7961         * MAINTAINERS: Update my email address.
7962
7963 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
7964
7965         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7966         include file of the same name.
7967
7968 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7969
7970         * configure.tgt: Mark v850 as multi-arched.
7971         * config/v850/tm-v850.h: Remove file.
7972         * config/v850/v850.mt: Eliminate TM_FILE.
7973
7974 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7975
7976         * v850-tdep.c: Full multi-arch.
7977         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7978         Define GDB_MULTI_ARCH to 2.
7979
7980 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7981
7982         * p-exp.y (current_type): New static variable.
7983         Carries the type of the expression at the position that is parsed.
7984         (push_current_type, pop_current_type): Two new functions. Used
7985         to store/restore current_type in expression on specific tokens.
7986         (search_field): New static variable. Set to one after parsing a point
7987         as at that point only a FIELDNAME token should be searched.
7988         (FIELDNAME): New token. After a point only a token belonging to 
7989         current_type type definition is allowed.
7990         (all over token rules): reset and change current_type according
7991         to rules.
7992         (exp '[' rule): insert implicit array index field if
7993         exp is a pascal string type.
7994
7995 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7996
7997         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
7998         frame info.  Use frame_info's saved_regs instead of matching member
7999         in extra_frame_info throughout.
8000         (v850_frame_init_saved_regs): New function.
8001         (v850_init_extra_frame_info): Move most functionality into
8002         v850_frame_init_saved_regs().
8003         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8004         (v850_frame_find_saved_regs): Remove declaration.
8005         (FRAME_FIND_SAVED_REGS): Remove definition.
8006         (v850_frame_init_saved_regs): Add declaration.
8007         (FRAME_INIT_SAVED_REGS): Add definition.
8008
8009 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
8010
8011         * v850-tdep.c: Begin multi-arch'ing v850.
8012         (v850_target_architecture_hook): Remove function.
8013         (v850_gdbarch_init): New function.  Add code previously in
8014         v850_target_architecture_hook().
8015         (_initialize_v850_tdep): Don't  set target_architecture_hook.
8016         Call register_gdbarch_init() instead.
8017
8018 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
8019
8020         * gdbtypes.h (struct cplus_struct_type): Remove args field.
8021         * hpread.c (hpread_read_struct_type): Remove assignments to args.
8022         (fixup_class_method_type): Likewise.
8023
8024 2002-05-15  Jim Blandy  <jimb@redhat.com>
8025
8026         Add macro structures to GDB's symbol tables.  Nobody puts anything
8027         in them yet.
8028         * symtab.h (struct symtab): New member: `macro_table'.
8029         * buildsym.h (pending_macros): New global variable.
8030         * buildsym.c: #include "macrotab.h".
8031         (buildsym_init): Initialize `pending_macros'.
8032         (end_symtab): If we found macro information while reading a CU's
8033         debugging info, do build a symtab structure for it.  Make the
8034         symtab point to the macro information, and clear the
8035         `pending_macros' pointer which held it while we were reading the
8036         debug info.
8037         (really_free_pendings): Free any pending macro table.
8038         * objfiles.h (struct objfile): New member: `macro_cache'.
8039         * objfiles.c (allocate_objfile): Set allocate and free functions
8040         for the macro cache's objstack.
8041         (free_objfile): Empty the macro cache's obstack.
8042         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8043         set new allocate and free functions for it.
8044         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8045         free functions for the macro cache's objstack.  (Why is this
8046         function building its own objfile?)
8047         * symmisc.c (print_objfile_statistics): Print statistics on the
8048         macro bcache.
8049         * Makefile.in: Note that buildsym.o depends on macrotab.h.
8050
8051 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
8052
8053         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8054         (REGISTER_U_ADDR): Delete definition.
8055         (arm_register_u_addr): Delete declaration.
8056
8057 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
8058
8059         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8060         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8061
8062 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
8063
8064         * regcache.c (register_valid): Revise comments refering to "Not
8065         available" and "unavailable".
8066         * frame.c (frame_register_read): Ditto.
8067         * findvar.c (value_of_register): Ditto.
8068
8069 2002-05-15  Andrew Cagney  <cagney@redhat.com>
8070
8071         * Makefile.in (remote_sim_h): Replace remote-sim_h.
8072         (remote-sim.o): Update dependencies.
8073         (d10v-tdep.o): Specify dependencies.
8074         (sim_d10v_h): Define.
8075
8076 2002-05-14  Jim Blandy  <jimb@redhat.com>
8077
8078         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8079         * macrotab.c (macro_lookup_inclusion, find_definition,
8080         new_macro_table): Same.
8081         
8082         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8083         not `! strcmp ()'.  This is a dubious improvement.
8084         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8085
8086         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8087         although it's not necessary, to avoid a warning.
8088
8089 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
8090
8091         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8092         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8093         TYPE_INSTANCE_FLAGS.
8094         (struct main_type): New.
8095         (struct type): Move most members to struct main_type.  Change
8096         cv_type and as_type to new type_chain member.  Add instance_flags.
8097         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8098         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8099         (finish_cv_type): Remove prototype.
8100         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
8101         Set TYPE_CHAIN.
8102         (alloc_type_instance): New function.
8103         (smash_type): New function.
8104         (make_pointer_type, make_reference_type, make_function_type)
8105         (smash_to_member_type, smash_to_method_type): Call smash_type.
8106         (make_qualified_type): New function.
8107         (make_type_with_address_space): Call make_qualified_type.
8108         (make_cv_type): Likewise.
8109         (finish_cv_type): Remove unnecessary function.
8110         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
8111         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8112         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8113         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8114         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8115         * hpread.c (hpread_read_struct_type): Likewise.
8116         * stabsread.c (read_struct_type): Likewise.
8117
8118 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
8119
8120         * configure.tgt: Add a catch all sh* target, for cases like
8121         sh[2,3,4]-elf and sh-hms.
8122
8123 2002-05-14  Keith Seitz  <keiths@redhat.com>
8124
8125         * event-loop.c (create_file_handler): Don't do anything but
8126         update data when we are given a fd which we are already
8127         monitoring.
8128
8129 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
8130
8131         * dwarf2cfi.c (context_cpy): Copy registers correctly.
8132         (update_context): Use __func__ in warnings.
8133         
8134 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
8135
8136         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
8137         and tcp_close to net_open and net_close.
8138         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
8139         using UDP if requested.  Don't try to disable Nagle on UDP
8140         sockets.
8141         * remote.c (remote_serial_open): New function.  Warn about UDP.
8142         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8143
8144 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
8145
8146         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8147
8148 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
8149
8150         * configure.tgt: Remove sh-hms target.
8151         * MAINTAINERS: Don't list sh-hms as a separate target.
8152
8153 2002-05-13  Jim Blandy  <jimb@redhat.com>
8154
8155         Add first preprocessor macro-expansion files.
8156         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8157         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8158         (splay_tree_h, macroexp_h, macrotab_h): New variable.
8159         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8160         (COMMON_OBS): Add macrotab.o, macroexp.o.
8161         (macroexp.o, macrotab.o): New rules.
8162
8163 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
8164
8165         * config/m88k/tm-m88k.h: Update copyright.
8166         (m88k_target_write_pc): Declare
8167         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8168         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8169         (SHIFT_INST_REGS): Update definition.
8170         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
8171         using old definition of TARGET_WRITE_PC.
8172         * regcache.c (generic_target_write_pc): Delete code handling
8173         NNPC_REGNUM.
8174         * gdbarch.sh (NNPC_REGNUM): Delete.
8175         * gdbarch.h, gdbarch.c: Regenerate.
8176
8177 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
8178
8179         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8180         builtin reg number.
8181
8182 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
8183
8184         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8185         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8186         (gen_address_of, gen_struct_ref, gen_repeat): Use type
8187         access macros.
8188         * c-typeprint.c (cp_type_print_method_args): Likewise.
8189         (c_type_print_args): Likewise.
8190         * d10v-tdep.c (d10v_push_arguments): Likewise.
8191         (d10v_extract_return_value): Likewise.
8192         * expprint.c (print_subexp): Likewise.
8193         * gdbtypes.c (lookup_primitive_typename): Likewise.
8194         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8195         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8196         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8197         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8198         (TYPE_VECTOR): Likewise.
8199         * hpread.c (hpread_read_struct_type)
8200         (fix_static_member_physnames, fixup_class_method_type)
8201         (hpread_type_lookup): Likewise.
8202         * mdebugread.c (parse_symbol, parse_type): Likewise.
8203         * p-lang.c (is_pascal_string_type): Likewise.
8204         * valops.c (hand_function_call): Likewise.
8205         * x86-64-tdep.c (classify_argument): Likewise.
8206
8207         * hpread.c (hpread_read_function_type)
8208         (hpread_read_doc_function_type): Call replace_type.
8209         * dstread.c (create_new_type): Delete.
8210         (decode_dst_structure, process_dst_function): Call alloc_type.
8211         Use type access macros.
8212
8213 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
8214
8215         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8216         the're not supported by the current architecture.
8217         (i387_fill_fxsave): Likewise.
8218
8219 2002-05-12  Fred Fish  <fnf@redhat.com>
8220
8221         * symfile.c (default_symfile_offsets): Arrange for uninitialized
8222         sect_index_xxx members to index the first slot in section_offsets
8223         if all of the section_offsets are zero.
8224
8225 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
8226
8227         * configure.tgt (sparc-*openbsd): Remove entry accidentially
8228         checked in with last change.
8229
8230 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
8231
8232         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8233         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
8234         config.sub.
8235
8236 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
8237
8238         * Makefile.in: Update dependencies.
8239
8240 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
8241
8242         * language.c (local_hex_string_custom): Simplify.  Do not depend
8243         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8244
8245         * memattr.c (mem_info_command): Replace calls to
8246         longest_local_hex_string and longest_local_hex_string_custom.
8247         * buildsym.c (make_blockvector): Ditto.
8248         * solib.c (info_sharedlibrary_command): Ditto.
8249         * tracepoint.c (tracepoints_info): Ditto.
8250         * symtab.c (print_msymbol_info): Ditto.
8251
8252         * language.c (local_hex_string): Delete.
8253         (local_hex_string_custom): Delete.
8254         (longest_local_hex_string): Rename to local_hex_string.
8255         (longest_local_hex_string_custom): Rename to
8256         local_hex_string_custom.
8257         * language.h (local_hex_string): Change parameter type to LONGEST.
8258         (local_hex_string_custom): Ditto.
8259         (longest_local_hex_string): Delete declaration.
8260         (longest_local_hex_string_custom): Ditto.
8261
8262         * solib.c: Update copyright.
8263         * memattr.c: Update copyright.
8264         
8265 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
8266
8267         * arch-utils.h (legacy_register_to_value): Declare.
8268         (legacy_value_to_register): Declare.
8269         (legacy_convert_register_p): Declare.
8270         * arch-utils.c (legacy_register_to_value): New function.
8271         (legacy_value_to_register): New function.
8272         (legacy_convert_register_p): New function.
8273
8274         * gdbarch.sh (REGISTER_TO_VALUE): Define.
8275         (VALUE_TO_REGISTER): Define.
8276         (CONVERT_REGISTER_P): Define.
8277         * gdbarch.h, gdbarch.c: Regenerate.
8278
8279         * valops.c (value_assign): Use CONVERT_REGISTER_P and
8280         VALUE_TO_REGISTER.
8281         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8282         CONVERT_REGISTER_P.
8283
8284 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
8285             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8286
8287         * Makefile.in: Update dependencies for valops.c.
8288         * valops.c: Include "gdb_assert.h".
8289         (typecmp): Skip THIS parameter to methods.
8290         (find_method_list): Remove static_memfuncp argument,
8291         update callers.  Check for stub methods.
8292         (find_value_oload_method_list): Don't set *static_memfuncp.
8293         (find_overload_match): Don't check for stub methods.  Assert
8294         that methods are not stubbed.  Handle static methods.
8295         (value_find_oload_method_list): Remove static_memfuncp argument.
8296         * gdbtypes.c (check_stub_method): Do not add THIS pointer
8297         to the argument list for static stub methods.
8298         * value.h (value_find_oload_method_list): Update prototype.
8299
8300 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
8301
8302         * arch-utils.h (generic_register_size): Declare.
8303         (generic_register_raw_size, generic_register_virtual_size): Delete
8304         declarations.
8305         * arch-utils.c (generic_register_raw_size): Delete.
8306         (generic_register_size): New function.
8307         (generic_register_virtual_size): Delete.
8308
8309         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8310         default generic_register_size.
8311         * gdbarch.h, gdbarch.c: Re-generate.
8312         
8313         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8314         register_virtual_size.
8315         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8316         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8317
8318 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
8319
8320         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8321         * gdbarch.h, gdbarch.c: Regenerate.
8322         * gnu-v3-abi.c: Update copyright.
8323         (vtable_address_point_offset): Update.
8324         (gnuv3_rtti_type): Update.
8325         (gnuv3_baseclass_offset): Update.
8326         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8327         (init_fetch_link_map_offsets): Update.
8328         * remote.c (get_remote_state): Update.
8329         
8330 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
8331
8332         * TODO: Remove value_headof/value_from_vtable_info comment.
8333         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8334         * values.c (value_headof, value_from_vtable_info): Delete.
8335         * value.h (value_from_vtable_info): Delete prototype.
8336
8337 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
8338
8339         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8340         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8341         $(gdb_regex_h).
8342         (gdb_assert_h): Define.
8343         (gdb_wait_h): Define.
8344         (gdb_regex_h): Define.
8345
8346 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
8347
8348         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8349         * linespec.c (find_methods): Handle GCC 3.x template constructors.
8350
8351 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
8352
8353         * nbsd-tdep.c: Fix comment.
8354
8355 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
8356
8357         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8358         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8359         (nbsd-tdep.o): New dependency list.
8360         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
8361         nbsd-tdep.h.
8362         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8363         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8364         * nbsd-tdep.c: New file.
8365         * nbsd-tdep.h: New file.
8366         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
8367         nbsd-tdep.h.
8368         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8369         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8370         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8371         * config/sh/nbsd.mt (TDEPFILES): Ditto.
8372
8373 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
8374
8375         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8376         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8377         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8378         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8379         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8380         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8381
8382 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
8383
8384         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8385         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8386         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8387         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8388         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8389         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8390         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8391
8392 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
8393
8394         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
8395         fetch_elfcore_registers to...
8396         * i386nbsd-tdep.c: ...here.
8397         (i386nbsd_use_struct_convention): Rename to...
8398         (i386nbsd_aout_use_struct_convention): ...this.
8399         (i386nbsd_supply_reg): New function.
8400         (i386nbsd_fill_reg): New function.
8401         (fetch_core_registers): Use i386nbsd_supply_reg.
8402         (fetch_elfcore_registers): Likewise.
8403         (_initialize_i386nbsd_tdep): New function.
8404         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8405         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8406         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8407         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8408         (i386nbsd_aout_use_struct_convention): ...this.
8409
8410 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
8411
8412         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8413         (store_inferior_registers): Use shnbsd_fill_reg.
8414         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
8415         sh_nbsd_supply_register): Collapse into...
8416         (shnbsd_supply_reg): ...this.
8417         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8418         (shnbsd_fill_reg): ...this.
8419         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8420         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8421         (fetch_core_registers): Use shnbsd_supply_reg.
8422         (fetch_elfcore_registers): Use shnbsd_supply_reg.
8423         (sh_nbsd_core_fns): Rename to...
8424         (shnbsd_core_fns): ...this.
8425         (sh_nbsd_elfcore_fns): Rename to...
8426         (shnbsd_elfcore_fns): ...this.
8427         (sh_nbsd_init_abi): Rename to...
8428         (shnbsd_init_abi): ...this.
8429         (_initialize_sh_nbsd_tdep): Rename to...
8430         (_initialize_shnbsd_tdep): ...this.
8431         * shnbsd-tdep.h (sh_nbsd_supply_registers,
8432         sh_nbsd_supply_register, sh_nbsd_fill_registers,
8433         sh_nbsd_fill_register): Remove prototypes.
8434         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8435
8436 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
8437
8438         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8439         (i387-nat.o): Delete dependency list.
8440         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8441         (x86-64-linux-nat.o): Likewise.
8442         * i387-nat.c: Delete file, moving contents to...
8443         * i387-tdep.c: ...here.
8444         * i387-nat.h: Rename...
8445         * i387-tdep.h: ...to this.
8446         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8447         * i386-linux-nat.c: Likewise.
8448         * i386bsd-nat.c: Likewise.
8449         * i386gnu-nat.c: Likewise.
8450         * i386nbsd-nat.c: Likewise.
8451         * i386v4-nat.c: Likewise.
8452         * x86-64-linux-nat.c: Likewise.
8453         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8454         * config/i386/go32.mh (NATDEPFILES): Likewise.
8455         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8456         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8457         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8458         * config/i386/linux.mh (NATDEPFILES): Likewise.
8459         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8460         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8461         * config/i386/obsd.mh (NATDEPFILES): Likewise.
8462         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8463
8464 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
8465
8466         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8467         (alphanbsd-nat.o): Remove dependency list.
8468         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8469         * alphanbsd-nat.c: Delete.  Contents moved to...
8470         * alphanbsd-tdep.c: ...here.
8471         (_initialize_alphanbsd_tdep): Register core functions.
8472         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8473
8474 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
8475
8476         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8477         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8478         (alphanbsd-nat.o): Likewise.
8479         (alphabsd-tdep.o): New dependency list.
8480         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8481         (fill_gregset): Use alphabsd_fill_reg.
8482         (supply_fpregset): Use alphabsd_supply_fpreg.
8483         (fill_fpregset): Use alphabsd_fill_fpreg.
8484         (fetch_inferior_registers): Use struct reg and struct fpreg
8485         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
8486         and alphabsd_supply_fpreg.
8487         (store_inferior_registers): Use struct reg and struct fpreg
8488         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
8489         and alphabsd_fill_fpreg.
8490         * alphabsd-tdep.c: New file.
8491         * alphabsd-tdep.h: New file.
8492         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8493         (fetch_elfcore_registers): Use alphabsd_supply_reg and
8494         alphabsd_supply_fpreg.
8495         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8496         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8497
8498 2002-05-11  Eric Christopher  <echristo@redhat.com>
8499
8500         * mips-tdep.c (mips_double_register_type): Fix thinko.
8501         (mips_single_register_type): Ditto.
8502         * MAINTAINERS: Add self.
8503
8504 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
8505
8506         * i387-nat.c (i387_supply_register, i387_fill_fsave,
8507         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8508         right thing on architectures with different endianness and/or
8509         integer sizes.
8510
8511 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
8512
8513         From Christian Limpach <chris@Pin.LU>
8514         * configure.in: Change sed expression which comments out
8515         NATDEPFILES to also comment out continuation lines.
8516         * configure: Regenerate.
8517
8518 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
8519
8520         * sh-tdep.c: Clean up code erroneously reintroduced by previous
8521         big patch.
8522
8523 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
8524
8525         * sh-tdep.c: Include correct file.
8526
8527 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
8528
8529         New support for sh64-elf (sh5) target.
8530
8531         * configure.tgt: For sh64-elf target, default to sh-elf.
8532
8533         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8534         (struct gdbarch_tdep): Add new fields for new registers and ABI
8535         info.
8536
8537         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8538         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8539         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8540         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8541         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8542         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8543         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8544         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8545         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8546         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8547         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8548         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8549         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8550         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8551         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8552         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8553         sh64_get_gdb_regnum, sh64_media_reg_base_num,
8554         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8555         sign_extend, sh64_nofp_frame_init_saved_regs,
8556         sh64_init_extra_frame_info, sh64_get_saved_register,
8557         sh64_extract_struct_value_address, sh64_pop_frame,
8558         sh64_push_arguments, sh64_extract_return_value,
8559         sh64_store_return_value, sh64_show_media_regs,
8560         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8561         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8562         sh_sh64_register_virtual_type,
8563         sh_sh64_register_convert_to_virtual,
8564         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8565         sh64_register_read, sh64_pseudo_register_write,
8566         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8567         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8568         sh64_do_pseudo_register, sh_compact_do_registers_info,
8569         sh64_do_registers_info, sh_gdbarch_init): New functions.
8570
8571 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
8572
8573         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8574
8575 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
8576
8577         * linespec.c (decode_line_1): Check for a double quote after
8578         a filename correctly.
8579
8580 2002-05-10  Jim Blandy  <jimb@redhat.com>
8581
8582         Properly track the size of the current objfile's .debug_line section.
8583         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8584         (DWARF_LINE_SIZE): New macro.
8585         (dwarf2_build_psymtabs_hard): Record the line section's size in
8586         the partial symbol table.
8587         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8588         symbol table.
8589
8590 2002-05-10  Petr Sorfa  <petrs@caldera.com>
8591
8592         * ia64-tdep.c: Handle breakpoints on L instruction type
8593         in MLX instruction bundle by moving the breakpoint to
8594         the third slot (X instruction type) as L holds only data.
8595
8596 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
8597
8598         * dbxread.c (discarding_local_symbols_complaint): New complaint.
8599         (process_one_symbol): Complain about discarding local symbols
8600         due to a misplaced N_LBRAC entry.
8601
8602 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
8603
8604         From Daniel Berlin <dan@cgsoftware.com>
8605         * linespec.c (find_toplevel_char): '<' and '>' also increase and
8606         decrease the depth we are at, in the case of templates.
8607
8608 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
8609
8610         * mips-tdep.c (mips_float_register_type): New function.
8611         (mips_double_register_type): New function.
8612         (mips_print_register): Use them.
8613         (do_fp_register_row): Likewise.
8614
8615 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
8616
8617         * signals/signals.c (signals): Remove conditional compilation around
8618         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
8619         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8620
8621 2002-05-09  Michael Snyder  <msnyder@redhat.com>
8622
8623         * remote-rdp.c (remote_rdp_can_run): Remove.
8624
8625 2002-05-09  Tom Tromey  <tromey@redhat.com>
8626
8627         * jv-valprint.c (java_val_print): Handle `char' as a special case
8628         of TYPE_CODE_INT.
8629
8630 2002-05-09  Michael Snyder  <msnyder@redhat.com>
8631
8632         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8633         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8634         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8635         str r(0123),[sp,#nn].
8636         (arm_skip_prologue): Ditto.  Also make disassembly
8637         order-independent by placing it in a loop.
8638
8639 2002-05-06  Michael Snyder  <msnyder@redhat.com>
8640
8641         * stabsread.c (read_type): Add recognition for new attribute:
8642         "@V;" means that an array type is actually a vector.
8643         This is analogous to the vector flag that's been added to dwarf2.
8644
8645 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
8646
8647         * i386-tdep.h (i386_abi): New enum.
8648         (struct gdbarch_tdep): Replace os_ident member with abi.
8649         (i386_gdbarch_register_os_abi): New prototype.
8650         * i386-tdep.c (i386_abi_names): New array.
8651         (process_note_abi_tag_sections): Removed.
8652         (process_note_sections): New function.
8653         (i386_elf_abi_from_note, i386_elf_abi): New functions.
8654         (struct i386_abi_handler): New struct.
8655         (i386_abi_handler_list): New variable.
8656         (i386_gdbarch_register_os_abi): New function.
8657         (i386_gdbarch_init): Adapt for the changes given above.
8658
8659 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
8660
8661         * gregset.h: Say "GNU/Linux".
8662
8663 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
8664
8665         * gdbtypes.c : Add new builtin type for 64 bit vectors.
8666         (build_gdbtypes): Build builtin_type_v2_float.
8667         (_initialize_gdbtypes): Register new builtin type.
8668
8669 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
8670
8671         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8672         (clear_gdbarch_swap): New function.
8673         (initialize_non_multiarch): Call.
8674         (gdbarch_update_p): Before calling init(), swap out and clear the
8675         existing architecture.
8676         * gdbarch.c: Regenerate.
8677
8678 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
8679
8680         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8681         alphanbsd-tdep.c.
8682
8683 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
8684
8685         * sh-nbsd-nat.c: Rename to...
8686         * shnbsd-nat.c: ...this.
8687         * sh-nbsd-tdep.c: Rename to...
8688         * shnbsd-tdep.c: ...this.
8689         * sh-nbsd-tdep.h: Rename to...
8690         * shnbsd-tdep.h: ...this.
8691         * config/sh/nbsd.mh: Use shnbsd-nat.o.
8692         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8693
8694 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
8695
8696         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8697         concatenation for command help messages.
8698
8699 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
8700
8701         * NEWS: Note new sh*-*-netbsdelf* configuration.
8702         * configure.host: Set gdb_host_cpu to sh for all sh*.
8703         (sh*-*-netbsdelf*): New host.
8704         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8705         (sh*-*-netbsdelf*): New target.
8706         * sh-nbsd-nat.c: New file.
8707         * sh-nbsd-tdep.c: New file.
8708         * sh-nbsd-tdep.h: New file.
8709         * config/sh/nbsd.mh: New file.
8710         * config/sh/nbsd.mt: New file.
8711         * config/sh/nm-nbsd.h: New file.
8712         * config/sh/tm-nbsd.h: New file.
8713
8714 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
8715
8716         * sh-tdep.c (sh_osabi_names): Declare.
8717         (process_note_abi_tag_sections): New function.
8718         (get_elfosabi): Ditto.
8719         (sh_gdbarch_register_os_abi): Ditto.
8720         (sh_dump_tdep): Ditto.
8721         _initialize_sh_tdep): Use gdbarch_register to register
8722         sh_gdbarch_init and sh_dump_tdep.
8723         * config/sh/tm-sh.h (sh_osabi): Declare.
8724         (gdbarch_tdep): Add sh_osabi and osabi_name members.
8725
8726 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
8727
8728         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8729         (thumb_scan_prologue): Ditto.
8730         (arm_find_callers_reg): Ditto.
8731         (arm_frame_chain): Ditto.
8732         (arm_init_extra_frame_info): Ditto.
8733         (arm_frame_saved_pc): Ditto.
8734         (arm_pop_frame): Ditto.
8735         (arm_push_return_address): New function.
8736         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8737         call_dummy_location, call_dummy_breakpoint_offset_p,
8738         call_dummy_breakpoint_offset, call_dummy_p,
8739         call_dummy_stack_adjust_p, call_dummy_words,
8740         sizeof_call_dummy_words, call_dummy_start_offset,
8741         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8742         call_dummy_address, push_return_address and push_dummy_frame for
8743         generic dummy frames.
8744
8745 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
8746
8747         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8748         size computation for alloca.
8749         (sh_fp_frame_init_saved_regs): Likewise.
8750
8751 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
8752
8753         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8754         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8755         * arm-tdep.c (arm_store_return_value): Use them.
8756         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8757         * remote-rdp.c (remote_rdp_fetch_register): Use
8758         ARM_MAX_REGISTER_RAW_SIZE.
8759         (remote_rdp_store_register): Likewise.
8760
8761 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
8762
8763         * dwarf2cfi.c: Code cleanup, removed unused variables,
8764         added default labels to switch {} statements.
8765         * x86-64-tdep.c: Ditto.
8766         * x86-64-linux-nat.c: Ditto.
8767
8768 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
8769
8770         * solib.h: Protect against multiple inclusion.
8771
8772 2002-05-06  Jim Blandy  <jimb@redhat.com>
8773
8774         Add first preprocessor macro-expansion files.
8775         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8776         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8777         (splay_tree_h, macroexp_h, macrotab_h): New variable.
8778         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8779         (COMMON_OBS): Add macrotab.o, macroexp.o.
8780         (macroexp.o, macrotab.o): New rules.
8781
8782         Separate the job of reading the line number info statement program
8783         header (...expialidocious) out into its own function.
8784         * dwarf2read.c (struct line_head, struct filenames, struct
8785         directories): Replace with...
8786         (struct line_header): New structure, containing the full
8787         contents of the statement program header, including the
8788         include directory and file name tables.
8789         (read_file_scope): If we have line number info, instead of just
8790         calling dwarf_decode_lines to do all the work, call
8791         dwarf_decode_line_header first to get a `struct line_header'
8792         containing the data in the statement program header, and then
8793         pass that to dwarf_decode_lines, which will pick up where that
8794         left off.  Be sure to clean up the `struct line_header' object.
8795         (dwarf_decode_line_header, free_line_header, add_include_dir,
8796         add_file_name): New functions.
8797         (dwarf_decode_lines): Move all the code to read the statement
8798         program header into dwarf_decode_line_header.  Take the line
8799         header it built as the first argument, instead of the offset to
8800         the compilation unit's line number info.  Use the new `struct
8801         line_header' type instead of the old structures.  No need to do
8802         cleanups here now, since we don't allocate anything.
8803         (dwarf2_statement_list_fits_in_line_number_section,
8804         dwarf2_line_header_too_long): New complaints.
8805
8806 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
8807
8808         * gdbtypes.c (init_vector_type): New function.
8809         (build_builtin_type_vec128): Simplify the representation of SIMD
8810         registers.
8811         (build_gdbtypes): Initialize new builtin vector types.
8812         (_initialize_gdbtypes): Register new vector types with gdbarch.
8813         (builtin_type_v4_float, builtin_type_v4_int32,
8814         builtin_type_v8_int16, builtin_type_v16_int8,
8815         builtin_type_v2_int32, builtin_type_v4_int16,
8816         builtin_type_v8_int8): New (renamed) SIMD types.
8817
8818 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
8819
8820         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8821         (i387_fill_fxsave): Likewise.
8822
8823 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
8824
8825         * alpha-tdep.c (alpha_extract_return_value): Don't use
8826         non-constant array size in prototype.
8827
8828 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
8829
8830         From Brian Taylor <briant at model dot com>:
8831         * ui-out.c (ui_out_field_core_addr): Use the function
8832         longest_local_hex_string_custom'to format addresses > 32 bits
8833         wide.
8834
8835         * ui-out.c (ui_out_field_core_addr): Update comment.
8836
8837 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
8838
8839         * stack.c (select_and_print_frame): Make static.  Delete the
8840         parameter `level'.
8841         (func_command): Update call.
8842         (select_frame_command): Delete code computing the frame level.
8843         * frame.h (select_and_print_frame): Delete declaration.
8844
8845 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
8846
8847         * sparc-tdep.c (sparc_get_saved_register): Comment why
8848         get_prev_frame call is safe.
8849
8850 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
8851
8852         * frame.h (select_frame): Delete level parameter.
8853         * stack.c (select_frame): Update.  Use frame_relative_level to
8854         obtain the frame's level.
8855         (select_and_print_frame): Update call.
8856         (select_frame_command): Ditto.
8857         (up_silently_base): Ditto.
8858         (down_silently_base): Ditto.
8859         * ocd.c (ocd_start_remote): Ditto.
8860         * remote-rdp.c (remote_rdp_open): Ditto.
8861         * remote-mips.c (mips_initialize): Ditto.
8862         (common_open): Ditto.
8863         * remote-e7000.c (e7000_start_remote): Ditto.
8864         * m3-nat.c (select_thread): Ditto.
8865         * hppa-tdep.c (child_get_current_exception_event): Ditto.
8866         (child_get_current_exception_event): Ditto.
8867         * varobj.c (varobj_create): Ditto.
8868         (varobj_update): Ditto.
8869         (c_value_of_root): Ditto.
8870         * tracepoint.c (finish_tfind_command): Ditto.
8871         * corelow.c (core_open): Ditto.
8872         * arch-utils.c (generic_prepare_to_proceed): Ditto.
8873         * thread.c (info_threads_command): Ditto.
8874         (switch_to_thread): Ditto.
8875         * infrun.c (normal_stop): Ditto.
8876         (restore_selected_frame): Ditto.
8877         (restore_inferior_status): Ditto.
8878         * breakpoint.c (insert_breakpoints): Ditto.
8879         (watchpoint_check): Ditto.
8880         (bpstat_stop_status): Ditto.
8881         (do_enable_breakpoint): Ditto.
8882         * blockframe.c (flush_cached_frames): Ditto.
8883         (reinit_frame_cache): Ditto.
8884
8885 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
8886
8887         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8888         maintainer.
8889
8890 2002-05-04  Jim Blandy  <jimb@redhat.com>
8891
8892         * gdbtypes.c (replace_type): Doc fix.
8893
8894 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
8895
8896         * valprint.c (strcat_longest): Delete commented out function.
8897         Update copyright.
8898
8899 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
8900
8901         * MAINTAINERS: Mark a29k as deleted.
8902         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
8903         Move new configurations to the top.
8904         * configure.tgt: Remove a29k.
8905         * config/a29k/tm-vx29k.h: Delete.
8906         * config/a29k/vx29k.mt: Delete.
8907         * config/a29k/tm-a29k.h: Delete.
8908         * config/a29k/a29k-udi.mt: Delete.
8909         * config/a29k/a29k.mt: Delete.
8910         * a29k-tdep.c: Delete.
8911         * remote-udi.c: Delete.
8912         * remote-mm.c: Delete.
8913         * remote-eb.c: Delete.
8914         * remote-adapt.c: Delete.
8915         * Makefile.in: Remove obsolete code.
8916         * config/s390/s390x.mt: Ditto.
8917         * config/s390/s390.mt: Ditto.
8918         * config/sparc/sparclynx.mh: Ditto.
8919         * config/sparc/linux.mh: Ditto.
8920         * config/pa/hppaosf.mh: Ditto.
8921         * config/pa/hppabsd.mh: Ditto.
8922         * config/ns32k/nbsd.mt: Ditto.
8923         * config/mips/vr5000.mt: Ditto.
8924         * config/m68k/sun3os4.mh: Ditto.
8925         * config/m68k/nbsd.mt: Ditto.
8926         * config/m68k/m68klynx.mh: Ditto.
8927         * config/m32r/m32r.mt: Ditto.
8928         * config/i386/x86-64linux.mt: Ditto.
8929         * config/i386/nbsdelf.mt: Ditto.
8930         * config/i386/nbsd.mt: Ditto.
8931         * config/i386/i386lynx.mh: Ditto.
8932
8933 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
8934
8935         * target.c (debug_print_register): New function.  Handle oversize
8936         registers.
8937         (debug_to_fetch_registers): Call.
8938         (debug_to_store_registers): Call.
8939
8940 2002-05-03  Jim Blandy  <jimb@redhat.com>
8941
8942         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8943         (read_type): Doc fix.
8944         * gdbtypes.c (replace_type): Doc fix.
8945
8946         * stabsread.c (multiply_defined_struct): New complaint.
8947         (read_struct_type): If the type we were passed isn't empty, or
8948         incomplete, don't read the new struct type into it; complain,
8949         and return the original type unchanged.  Take a new `type_code'
8950         argument, which is the type code for the new type.
8951         (read_type): Rather than storing the type's type code here, pass
8952         it as an argument to read_struct_type, and let that take care of
8953         storing it.  That way, we don't overwrite the original type code,
8954         so read_struct_type can use it to decide whether we're overwriting
8955         something we shouldn't.
8956         (complain_about_struct_wipeout): New function.
8957
8958 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
8959
8960         * gdbarch.sh: Assert that gdbarch is non-NULL.
8961         * gdbarch.c: Regenerate.
8962
8963 2002-05-03  Jason Merrill  <jason@redhat.com>
8964
8965         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8966         and return NULL.
8967
8968 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
8969
8970         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8971         (x86_64_dwarf2gdb_regno_map_length),
8972         (x86_64_dwarf2_reg_to_regnum): Added.
8973         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8974         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8975         (_initialize_x86_64_tdep): Synced with the change above.
8976         (x86_64_skip_prologue): Reformulated message.
8977
8978 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
8979
8980         * f-exp.y: Also use new prev_lexptr variable
8981         to improve error reporting. Based on Michael Snyder
8982         2002-04-24 dated patch to c-exp.y.
8983         * jv-exp.y: Likewise.
8984         * m2-exp.y: Likewise.
8985
8986 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
8987
8988         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8989         we are dealing with vectors.
8990
8991 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8992
8993         * config/m68k/tm-nbsd.h: Obvious fix,
8994         correct machine name.
8995
8996 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8997
8998         * p-typeprint.c (pascal_type_print_base): Add support
8999         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9000
9001 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
9002
9003         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9004         for fondamental pascal 'char' type.
9005
9006 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
9007
9008         * p-lang.h (is_pascal_string_type): Declaration changed,
9009         new sixth argument of type char ** added.
9010         * p-lang.c (is_pascal_string_type): Implementation
9011         changed. Args length_pos, length_size, string_pos, char_size
9012         can now be NULL. New argument arrayname set to the field
9013         name of the char array. Return value set to char array
9014         field index plus one.
9015         * p-valprint.c (pascal_val_print): Adapt to new declaration of
9016         is_pascal_string_type function.
9017
9018 2002-05-02  Andrew Cagney  <cagney@redhat.com>
9019
9020         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9021         <cagney@redhat.com> change.
9022         * gdbarch.c: Regenerate.
9023
9024 2002-05-02  Andrew Cagney  <cagney@redhat.com>
9025
9026         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9027         before probing for a new one.  Detect errorenous gdbarch_init
9028         functions.
9029         * gdbarch.c: Regenerate.
9030
9031 2002-05-01  Andrew Cagney  <cagney@redhat.com>
9032
9033         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9034         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
9035         * config/v850/tm-v850.h: Ditto.  Update copyright.
9036
9037 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
9038
9039         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9040         current_gdbarch.
9041
9042 2002-04-30  Michael Snyder  <msnyder@redhat.com>
9043
9044         * arm-tdep.c: Whitespace clean-ups.
9045         (arm_skip_prologue): Fix thinko; two lines
9046         should have been removed as part of 4/24 change.
9047
9048 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
9049
9050         * rs6000-tdep.c: Added comment describing how fpscr register
9051         numbers were chosen.
9052
9053 2002-04-30  Michael Snyder  <msnyder@redhat.com>
9054
9055         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9056
9057 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
9058
9059         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9060         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9061         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9062
9063 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
9064
9065         From Louis Hamilton <hamilton@redhat.com>:
9066         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9067         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9068         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9069         not bfd-private xcoff data, to determine wordsize.
9070         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9071
9072 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
9073
9074         GDB 5.2 released from 5.2 branch.
9075
9076 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
9077
9078         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9079         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9080         (x86_64_register_info_table): Added comments with register numbers.
9081
9082 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
9083
9084         * rs6000-tdep.c (rs6000_extract_return_value,
9085         rs6000_store_return_value): Handle returning vectors.
9086         (rs6000_gdbarch_init): Use
9087         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9088         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9089         New function.
9090         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9091         vectors.
9092         (ppc_sysv_abi_push_arguments): Handle vector parameters.
9093         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9094
9095 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
9096
9097         * hpread.c (hpread_psymtab_to_symtab_1,
9098         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9099         with fprintf_unfiltered (gdb_stderr,...).
9100
9101 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
9102
9103         * remote-array.c (printf_monitor, write_monitor,
9104         array_insert_breakpoint, array_remove_breakpoint ):
9105         Replace fprintf (stderr,...
9106         with fprintf_unfiltered (gdb_stderr,....
9107         * remote-es.c: Likewise.
9108         * remote-os9k.c: Likewise.
9109         * remote-st.c: Likewise.
9110
9111 2002-04-28  Andreas Schwab  <schwab@suse.de>
9112
9113         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9114         linux-proc.o and gcore.o.
9115
9116 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
9117
9118         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9119         code without frame pointers.
9120
9121 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
9122
9123         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9124         ON_STACK is needed.
9125
9126 2002-04-26  Ben Elliston  <bje@redhat.com>
9127
9128         * target.c (do_xfer_memory): Correct reference to the new option
9129         "trust-readonly-sections".
9130
9131 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
9132
9133         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9134         * gdbtypes.c (recursive_dump_type): Output the vector flag.
9135         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9136         vectors.
9137         (read_array_type): Record the fact that this array type is really a
9138         vector (i.e. are passed in by value).
9139
9140 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
9141
9142         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9143         * alpha-tdep.c (alpha_sigcontext_addr): New function.
9144         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9145         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9146         * alpha-linux-tdep.c: Include frame.h.
9147         (alpha_linux_sigcontext_addr): New function.
9148         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9149         alpha_linux_sigcontext_addr.
9150         * alpha-osf1-tdep.c: Include gdbcore.h.
9151         (alpha_osf1_sigcontext_addr): New function.
9152         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9153         alpha_osf1_sigcontext_addr.
9154         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9155         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9156
9157 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
9158
9159         * stack.c (selected_frame_level):
9160         (select_frame): Do not set selected_frame_level.
9161         * frame.h (selected_frame_level): Delete declaration.
9162
9163 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
9164
9165         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9166         convert_from_func_ptr-addr when AIX / PowerOpen.
9167
9168 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
9169
9170         * valops.c (hand_function_call): Call
9171         generic_save_call_dummy_addr.
9172         * frame.h (generic_save_call_dummy_addr): Declare.
9173         * blockframe.c (struct dummy_frame): Add fields call_lo and
9174         call_hi.
9175         (generic_find_dummy_frame): Check for PC in range call_lo to
9176         call_hi instead of entry_point_address.
9177         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9178         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
9179         (generic_save_call_dummy_addr): New function.
9180
9181 2002-04-24  David S. Miller  <davem@redhat.com>
9182
9183         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9184         sparc_skip_prologue.
9185         (sparc_skip_prologue): Kill frameless_p arg, and use line number
9186         information to find prologue when possible.
9187         (sparc_prologue_frameless_p): Call examine_prologue directly.
9188         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9189         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9190         second argument.
9191         (SKIP_PROLOGUE): Likewise.
9192
9193 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
9194
9195         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9196         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9197         indicate that the condition it was testing is always true.
9198         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9199         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9200         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9201
9202 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
9203
9204         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9205         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9206         tdep->jb_pc and tdep->jb_elt_size.
9207         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9208         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9209         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9210         * alpha-nat.c (get_longjmp_target): Remove.
9211         (JB_ELEMENT_SIZE): Ditto.
9212         (JB_PC): Ditto.
9213         * alpha-tdep.c (alpha_get_longjmp_target): New function.
9214         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
9215         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9216         to alpha_get_longjmp_target.
9217         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9218         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9219         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9220
9221 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
9222
9223         * README: Update to GDB 5.2.
9224
9225 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
9226
9227         * gdbarch.sh (LC_ALL): Set to `c'.
9228
9229 2002-04-25  Theodore A. Roth  <troth@verinet.com>
9230
9231         * avr-tdep.c: Ran through gdb_indent.sh.
9232
9233 2002-04-25  Theodore A. Roth  <troth@verinet.com>
9234
9235         * MAINTAINERS: Add myself as AVR maintainer.
9236         * NEWS: Note new target avr.
9237
9238 2002-04-25  Theodore A. Roth  <troth@verinet.com>
9239
9240         * Makefile.in: Add support for AVR target.
9241         * configure.tgt: Add support for AVR target.
9242         * avr-tdep.c: New file
9243         * config/avr/avr.mt: New file.
9244
9245 2002-04-25  Theodore A. Roth  <troth@verinet.com>
9246
9247         * MAINTAINERS: Add myself to write-after-approval.
9248
9249 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
9250
9251         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9252         with fprintf_unfiltered (gdb_stderr,....
9253
9254 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
9255
9256         Fix PR gdb/508.
9257         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9258
9259 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
9260
9261         * p-exp.y: Also use new prev_lexptr variable
9262         to improve error reporting. Based on Michael Snyder
9263         2002-04-24 dated patch to c-exp.y.
9264
9265 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
9266
9267         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9268         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9269         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
9270         to 0.
9271         * config/alpha/tm-alpha.h: Remove forward decls of struct type
9272         and struct value.
9273         (FUNCTION_START_OFFSET): Remove.
9274         (BREAKPOINT): Ditto.
9275
9276 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
9277
9278         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9279         * NEWS: Ditto.
9280
9281 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
9282
9283         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9284         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9285         alpha_linux_pc_in_sigtramp.
9286         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9287         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9288         alpha_osf1_pc_in_sigtramp.
9289         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9290         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9291         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9292         alphafbsd_pc_in_sigtramp.
9293         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9294         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9295         alphanbsd_pc_in_sigtramp.
9296         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9297         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9298
9299 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
9300
9301         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9302
9303 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
9304
9305         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9306         alphanbsd-tdep.c.
9307         (alphanbsd-nat.o): New dependency list.
9308         (alphanbsd-tdep.o): Ditto.
9309         * NEWS: Note new native NetBSD/alpha configuration.
9310         * alphanbsd-nat.c: New file.
9311         * alphanbsd-tdep.c: Ditto.
9312         * configure.host (alpha*-*-netbsd*): New host.
9313         * configure.tgt (alpha*-*-netbsd*): New target.
9314         * config/alpha/nbsd.mh: New file.
9315         * config/alpha/nbsd.mt: Ditto.
9316         * config/alpha/nm-nbsd.h: Ditto.
9317         * config/alpha/tm-nbsd.h: Ditto.
9318
9319 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
9320
9321         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9322         (alpha-osf1-tdep.o): New dependency list.
9323         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9324         and skip_sigtramp_frame members.
9325         * alpha-linux-tdep.c: Include gdbcore.h.
9326         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9327         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9328         * alpha-osf1-tdep.c: New file.
9329         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9330         alpha-osf1-dep.c.
9331         (alpha_frame_past_sigtramp_frame): New function.
9332         (alpha_dynamic_sigtramp_offset): Ditto.
9333         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9334         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9335         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9336         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9337         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9338         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9339         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9340         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9341         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9342         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9343         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
9344         to find_solib_trampoline_target.
9345         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9346         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9347         (SKIP_TRAMPOLINE_CODE): Remove.
9348         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9349         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9350         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9351         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9352         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9353         (PROC_SIGTRAMP_MAGIC): Ditto.
9354         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9355         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9356         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9357         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9358         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9359
9360 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
9361
9362         * NEWS: Note that Alpha targets are now multi-arch.
9363
9364 2002-04-24  Michael Snyder  <msnyder@redhat.com>
9365
9366         * parser-defs.h (prev_lexptr): New external variable.
9367         * parse.c (parse_exp_1): Set prev_lexptr to null before
9368         calling the language-specific parser.
9369         * c-exp.y (yylex): Set prev_lexptr to start of current token.
9370         (yyerror): Use prev_lexptr in error reporting.
9371
9372 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
9373
9374         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9375         * gregset.h: If FILL_FPXREGSET is defined, provide
9376         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9377         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9378         is defined, call fill_fpxregset.
9379
9380 2002-04-24  Roland McGrath  <roland@frob.com>
9381
9382         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9383         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9384         (supply_gregset, supply_fpregset): New functions.
9385
9386         * gnu-nat.c (gnu_find_memory_regions): New function.
9387         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9388         (gnu_xfer_memory): Add a cast.
9389
9390 2002-04-24  Michael Snyder  <msnyder@redhat.com>
9391
9392         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9393         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
9394         of argument regs ("str r(0123), [r11, #-nn"]).
9395         (arm_skip_prologue): Better handling for frameless functions.
9396         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
9397         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9398
9399 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
9400
9401         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9402         NUM_PSEUDO_REGS can be used.
9403
9404 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
9405
9406         * arch-utils.h: Update copyright.
9407
9408         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9409         * gdbarch.h, gdbarch.c: Re-generate.
9410
9411         * inferior.h (IN_SIGTRAMP): Delete definition.
9412         * arch-utils.c (legacy_pc_in_sigtramp): New function.
9413         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9414
9415         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9416         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9417         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
9418         (find_proc_framesize): Ditto.
9419         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9420         (alpha_init_extra_frame_info): Ditto.
9421         * infrun.c (handle_inferior_event): Ditto.
9422         (handle_inferior_event): Ditto.
9423         (check_sigtramp2): Ditto.
9424         * blockframe.c (create_new_frame): Ditto.
9425         (get_prev_frame): Ditto.
9426         * ppc-linux-tdep.c: Update comments.
9427         * i386-linux-tdep.c: Update comments.
9428         * breakpoint.c (bpstat_what): Update comment.
9429
9430 2002-04-24  David S. Miller  <davem@redhat.com>
9431
9432         * i960-tdep.c (register_in_window_p): New function.
9433         (i960_find_saved_register): Use it instead of
9434         REGISTER_IN_WINDOW_P.
9435         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9436
9437         * symtab.h (find_stab_function_addr): Kill extern.
9438         * minsyms.c (find_stab_function_addr): Remove from here...
9439         * dbxread.c: ... to here, and mark it static.
9440
9441 2002-04-20  David S. Miller  <davem@redhat.com>
9442
9443         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9444         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9445
9446 2002-04-21  David S. Miller  <davem@redhat.com>
9447
9448         * remote-vxsparc.c (vx_read_register): Fix typo, we want
9449         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9450         (vx_write_register): Likewise.
9451
9452 2002-04-23  J. Brobecker  <brobecker@gnat.com>
9453
9454         * source.c (is_regular_file): New function.
9455         (openp): Check wether file to open is a regular file
9456         to avoid opening directories.
9457
9458 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
9459
9460         * findvar.c (extract_signed_integer): Cast printf argument
9461         to suppress format warning.
9462         (extract_unsigned_integer): Likewise.
9463         * infcmd.c (registers_info): Likewise.
9464         * top.c (get_prompt_1): Likewise.
9465         * valops.c (value_assign): Likewise.
9466         * valprint.c (print_decimal): Likewise.
9467
9468 2002-04-22  H.J. Lu  (hjl@gnu.org)
9469
9470         * c-exp.y (typebase): Support
9471
9472         [long|long long|short] [signed|unsigned] [int|]
9473
9474         and
9475
9476         signed [long|long long|short] int
9477
9478 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
9479
9480         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9481         and vax-tdep.h.
9482         * vax-tdep.h: New file.
9483         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9484         Make several routines static.
9485         (vax_get_saved_register): New function.
9486         (vax_gdbarch_init): New function.
9487         (_initialize_vax_tdep): Register vax_gdbarch_init.
9488         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9489         Remove macros now under the control of gdbarch.
9490
9491 2002-04-22  Michael Snyder  <msnyder@redhat.com>
9492
9493         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9494         Some whitespace and coding standards tweaks.
9495
9496 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
9497
9498         * vax-tdep.c: Include regcache.h.
9499         (vax_call_dummy_words): New.
9500         (sizeof_vax_call_dummy_words): New.
9501         (vax_fix_call_dummy): New function.
9502         (vax_saved_pc_after_call): Ditto.
9503         * config/vax/tm-vax.h: Don't include regcache.h.
9504         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9505         (CALL_DUMMY): Remove.
9506         (CALL_DUMMY_WORDS): Define.
9507         (SIZEOF_CALL_DUMMY_WORDS): Define.
9508         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9509
9510 2002-04-18  Michael Snyder  <msnyder@redhat.com>
9511
9512         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9513
9514 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
9515
9516         * vax-tdep.c (vax_frame_chain): New function.
9517         (vax_push_dummy_frame): Ditto.
9518         (vax_pop_frame): Ditto.
9519         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9520         (FRAMELESS_FUNCTION_INVOCATION): Use
9521         generic_frameless_function_invocation_not.
9522         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9523         (POP_FRAME): Use vax_pop_frame.
9524
9525 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
9526
9527         * vax-tdep.c (vax_store_struct_return): New function.
9528         (vax_extract_return_value): Ditto.
9529         (vax_store_return_value): Ditto.
9530         (vax_extract_struct_value_address): Ditto.
9531         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9532         vax_store_struct_return.
9533         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9534         (STORE_RETURN_VALUE): Use vax_store_return_value.
9535         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9536
9537 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
9538
9539         * vax-tdep.c (vax_frame_saved_pc): New function.
9540         (vax_frame_args_address_correct): Ditto.
9541         (vax_frame_args_address): Ditto.
9542         (vax_frame_locals_address): Ditto.
9543         (vax_frame_num_args): Move code to be in proximity to
9544         other frame-related functions.
9545         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9546         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9547         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9548         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9549         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9550
9551 2002-04-22  H.J. Lu  (hjl@gnu.org)
9552
9553         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9554         includedir.
9555
9556 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
9557
9558         * vax-tdep.c (vax_frame_init_saved_regs): New function.
9559         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9560         (FRAME_INIT_SAVED_REGS): New macro.
9561
9562 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
9563
9564         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9565
9566 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
9567
9568         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9569         where needed.
9570         (fetch_osf_core_registers): Likewise.
9571         (supply_gregset): Likewise.
9572
9573 2002-04-22  J. Brobecker  <brobecker@gnat.com>
9574
9575         * symfile.h (get_section_index): Define.
9576         * symfile.c (get_section_index): New function.
9577         * mdebugread.c (SC_IS_SBSS): New macro.
9578         (SC_IS_BSS): Return true for the scBss storage class only, as
9579         the scSBss storage class refers to the .sbss section.
9580         (parse_partial_symbols): Discard the symbols which associated
9581         section does not exist.
9582         Make sure to use the .sbss section index for symbols which
9583         storage class is scBss, rather than using the .bss section index.
9584
9585 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
9586
9587         * vax-tdep.c: Update copyright years.
9588         (vax_register_name): New function.
9589         (vax_register_byte): Ditto.
9590         (vax_register_raw_size): Ditto.
9591         (vax_register_virtual_size): Ditto.
9592         (vax_register_virtual_type): Ditto.
9593         * config/vax/tm-vax.h: Update copyright years.
9594         (REGISTER_NAMES): Remove.
9595         (REGISTER_NAME): Define.
9596         (REGISTER_BYTE): Use vax_register_byte.
9597         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9598         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9599         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9600
9601 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
9602
9603         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9604         declaration
9605         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9606
9607 2002-04-21  David S. Miller  <davem@redhat.com>
9608
9609         * arch-utils.c (generic_prologue_frameless_p): Kill
9610         SKIP_PROLOGUE_FRAMELESS_P code.
9611         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9612         references.
9613         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9614         * arc-tdep.c (arc_prologue_frameless_p): Implement.
9615         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9616         references.
9617         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9618         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9619         (sparc_gdbarch_init): Pass it to
9620         set_gdbarch_prologue_frameless_p.
9621
9622 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
9623
9624         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9625         (alphabsd-nat.o): New dependency list.
9626
9627 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
9628
9629         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9630         alphafbsd-tdep.c.
9631         (alpha-linux-tdep.o): New dependency list.
9632         (alphafbsd-tdep.o): Likewise.
9633
9634 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
9635
9636         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
9637         to here...
9638         * alpha-tdep.c: ...from here.
9639         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9640
9641 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
9642
9643         * config/alpha/tm-alpha.h: Move alpha_software_single_step
9644         prototype from here...
9645         * alpha-tdep.h: ...to here.
9646
9647 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
9648
9649         * frame.h (selected_frame_level): Document as deprecated.
9650         (frame_relative_level): Declare.
9651         * stack.c (frame_relative_level): New function.
9652         (selected_frame_level): Document as deprecated.
9653         (select_frame): Do not set the selected_frame_level.
9654
9655         * stack.c (frame_info, record_selected_frame): Update.
9656         (frame_command, current_frame_command): Update.
9657         (up_silently_base, up_command, down_silently_base): Update.
9658         (down_command): Update.
9659         * inflow.c (kill_command): Update.
9660         * tracepoint.c (finish_tfind_command): Update.
9661         * corelow.c (core_open): Update.
9662         * thread.c (info_threads_command): Update.
9663         (do_captured_thread_select): Update.
9664         * infcmd.c (finish_command): Update.
9665         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9666
9667 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
9668
9669         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9670
9671 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
9672
9673         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
9674         type const.
9675
9676 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
9677
9678         * alphafbsd-tdep.c: Update copyright years.  Include
9679         alpha-tdep.h.
9680         (alphafbsd_use_struct_convention): Make static.
9681         (alphafbsd_init_abi): New function.
9682         (_initialize_alphafbsd_tdep): New function.
9683         * config/alpha/tm-fbsd.h: Update copyright years.
9684         (USE_STRUCT_CONVENTION): Remove.
9685
9686 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
9687
9688         * alpha-tdep.c (alpha_abi_handler): New structure to describe
9689         an Alpha ABI variant.
9690         (alpha_abi_handler_list): Declare.
9691         (alpha_gdbarch_register_os_abi): New function.
9692         (alpha_gdbarch_init): Give registered ABI variant handlers a
9693         chance to tweak the gdbarch once we have set up defaults.
9694         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9695
9696 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
9697
9698         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9699         to standard_coerce_float_to_double.
9700         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9701
9702 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
9703
9704         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9705         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9706         from gdbarch_tdep rather than a constant.
9707         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9708         the default text address for all Alpha Unix ABIs.
9709         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9710         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9711
9712 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
9713
9714         * alpha-tdep.h: New file.  Includes several Alpha target constants
9715         taken from...
9716         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
9717         let gdbarch deal with.
9718         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9719         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9720         to dependency list.
9721         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
9722         Alpha target register names.
9723         * alphabsd-nat.c: Likewise.
9724         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
9725         Alpha target register names.  Make serveral routines static.
9726         (alpha_get_saved_register): New function.
9727         (alpha_abi_names): New.
9728         (process_note_abi_tag_sections): New function.
9729         (get_elfosabi): New function.
9730         (alpha_gdbarch_init): New function.
9731         (alpha_dump_tdep): New function.
9732         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9733
9734 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
9735
9736         * frame.c (find_saved_register): Delete #ifdef
9737         HAVE_REGISTER_WINDOWS code.
9738         * config/sparc/tm-sparc.h: Update comments.
9739         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9740
9741 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
9742
9743         * i960-tdep.c (i960_find_saved_register): New function.
9744         (i960_get_saved_register): New function.
9745         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9746         (i960_get_saved_register): Declare.
9747         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9748
9749 2002-04-20  David S. Miller  <davem@redhat.com>
9750
9751         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9752
9753 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
9754
9755         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9756         instead of NUM_PSEUDO_REGS.
9757
9758 2002-04-20  David S. Miller  <davem@redhat.com>
9759
9760         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9761         GDB_MULTI_ARCH_PARTIAL
9762         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9763         define, let tm-sp64.h do it.
9764
9765 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
9766
9767         * frame.c (find_saved_register): Avoid a NULL pointer
9768         dereference and actually walk the frame list.
9769
9770 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
9771
9772         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9773         sorted in most most-recent-used order.  Document.
9774         * gdbarch.h, gdbarch.c: Regenerate.
9775
9776 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
9777
9778         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9779         instead of ->prev.
9780         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9781         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9782         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9783         instead of ->prev.
9784
9785 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
9786
9787         Fix PR gdb/471.
9788         * gdbtypes.c (init_simd_type): Rewrite using new functions.
9789         (build_builtin_type_vec128): Ditto.
9790         (append_composite_type_field): Fix calculation of type length in
9791         union case.
9792
9793 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
9794
9795         * config/djgpp/README: Update.
9796
9797         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9798         compiler warnings.
9799
9800 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
9801
9802         * alpha-tdep.c (setup_arbitrary_frame): Rename...
9803         (alpha_setup_arbitrary_frame): ...to this.
9804         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9805         for alpha_setup_arbitrary_frame.
9806
9807 2002-04-18  Andrew Cagney  <cagney@redhat.com>
9808
9809         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9810         * gdbarch.h, gdbarch.c: Regenerate.
9811
9812         * defs.h (breakpoint_from_pc_fn): Delete type definition.
9813         * target.h (memory_breakpoint_from_pc): Update declaration.
9814         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9815
9816         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9817         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9818         * mem-break.c (memory_breakpoint_from_pc): Ditto.
9819         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9820         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9821         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9822         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9823         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9824         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9825         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9826         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9827         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9828
9829         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9830         const pointer.
9831         * monitor.c (monitor_insert_breakpoint): Ditto.
9832         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9833
9834         * config/mcore/tm-mcore.h: Update copyright.
9835         * mem-break.c: Ditto.
9836         * xstormy16-tdep.c: Ditto.
9837
9838 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9839
9840         * p-exp.y: Add precedence rule for '^' token.
9841         This removes the shift/reduce conflicts.
9842         Remove the comment concerning these shift/reduce conflicts.
9843
9844 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
9845
9846         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9847         (registers_powerpc_nofp): New register set for processors
9848         without floating point unit.
9849
9850 2002-04-18  David S. Miller  <davem@redhat.com>
9851
9852         * MAINTAINERS: Add myself to write-after-approval.
9853
9854 2002-04-17  Michael Snyder  <msnyder@redhat.com>
9855
9856         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9857
9858 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
9859
9860         * rs6000-tdep.c (frame_initial_stack_address): Use
9861         frame_register_read to read the alloca_reg.
9862
9863 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
9864
9865         * frame.c (find_saved_register): Find saved registers in the next
9866         not prev frame.
9867         Fix PR gdb/365.
9868
9869 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
9870
9871         * gdbarch.sh (LANG): Set to ``c''.
9872
9873 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
9874
9875         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9876
9877 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
9878
9879         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9880         Update copyright.
9881
9882         * hpread.c (hpread_get_lntt): Add declaration.
9883         Also fix PR gdb/391.
9884
9885 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
9886
9887         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9888         * aclocal.m4, configure: Re-generate.
9889         Fix PR gdb/391.
9890
9891 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
9892
9893         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9894         instead of tm_print_insn.
9895
9896 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
9897
9898         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9899
9900 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
9901
9902         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9903         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9904         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9905
9906 2002-04-12  Don Howard  <dhoward@redhat.com>
9907
9908         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9909         max_user_call_depth.
9910         (init_cmd_lists): Initialize the new value;
9911         * cli/cli-script.c (execute_user_command): Limit the call depth of
9912         user defined commands.  This avoids a core-dump when user commands
9913         are infinitly recursive.
9914
9915 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9916
9917         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9918         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9919         from tdep struct instead of DEFAULT_LR_SAVE.
9920         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9921         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9922         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9923
9924 2002-04-12  Michael Snyder  <msnyder@redhat.com>
9925
9926         * Remote.c: Spelling fix.
9927         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9928         If no symbol found for "sbrk", try "_sbrk".
9929         (make_output_phdrs): Use bfd_section_name.
9930         (gcore_copy_callback): Use bfd_section_name.
9931         * eval.c: Indentation fix-ups.
9932         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9933         in case it gets applied to an address that is already
9934         in the instruction space.
9935         * cli/cli-decode.c (help_list): Allow long lines to wrap.
9936         * symfile.c: Fix indentation, long lines.
9937         * source.c: White space fix-up.
9938
9939 2002-04-12  Andrew Cagney  <cagney@redhat.com>
9940
9941         * defs.h (read_relative_register_raw_bytes): Delete declaration.
9942         * frame.c (frame_register_read): New function.  Return non-zero on
9943         success.
9944         (read_relative_register_raw_bytes_for_frame): Delete.
9945         (read_relative_register_raw_bytes): Delete.
9946         * frame.h (frame_register_read): Declare.
9947         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
9948         * sh-tdep.c: Ditto.
9949         * infcmd.c (do_registers_info): Ditto.
9950         * hppa-tdep.c: Ditto.
9951         * rs6000-tdep.c: Ditto.
9952         * h8500-tdep.c: Ditto.
9953         * mips-tdep.c: Ditto.
9954         * h8300-tdep.c: Ditto.
9955         * z8k-tdep.c: Ditto.
9956
9957 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9958
9959         From Jimi X <jimix@watson.ibm.com>:
9960         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9961         64-bit SysV ABI.
9962
9963 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9964
9965         From Jimi X <jimix@watson.ibm.com>:
9966         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9967         bfd info.
9968
9969 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9970
9971         From Jimi X <jimix@watson.ibm.com>:
9972         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9973         register sets for these processor variants.
9974
9975 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
9976
9977         * regformats/reg-ppc.dat: Support FPSCR.
9978
9979 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
9980
9981         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9982         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9983         Add fpscr as an invalid/unfetchable register.
9984         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9985         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9986         (fill_fpregset): Add support for register fpscr.
9987         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9988         (fill_gregset): Account for the fact that register ``mq'' might
9989         not exist.
9990         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9991         (registers_power): Add fpscr to register set at slot 71.
9992         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9993         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
9994
9995 2002-04-11  Michael Snyder  <msnyder@redhat.com>
9996
9997         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9998         * configure: Regenerate.
9999         * config.in: Regenerate.
10000         * acconfig.h: Add define for _SYSCALL32.
10001         * core-sol2.c: Remove #define _SYSCALL32.
10002         * solib-legacy.c: Remove #define _SYSCALL32.
10003
10004 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
10005
10006         * stack.c (select_frame): Cleanup internal error message, do not
10007         use %p.
10008
10009 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
10010
10011         * stack.c (select_frame): Check that selected_frame and the
10012         specified level are as expected.
10013         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10014         Update copyright.
10015         * frame.h (struct frame_info): Add field `level'.  Update
10016         copyright.
10017         Work-in-progress PR gdb/464.
10018
10019 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
10020
10021         * maint.c (maint_print_section_info): Rename print_section_info.
10022         (print_bfd_section_info, print_objfile_section_info): Update.
10023         * inferior.h (struct gdbarch): Add opaque declaration.
10024         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10025         * gdbarch.h: Regenerate.
10026
10027 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
10028
10029         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10030         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10031         (kernel_u_size): Added.
10032         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10033         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10034
10035 2002-04-04  Jim Ingham  <jingham@apple.com>
10036
10037        * valarith.c (find_size_for_pointer_math): New function, either returns
10038        the size for a pointer's target, returns 1 for void *, or errors for
10039        incomplete types.
10040        (value_add, value_sub): use find_size_for_pointer_math.
10041
10042 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
10043
10044         * linux-low.c (linux_look_up_symbols): New hook.
10045         (linux_target_ops): Add linux_look_up_symbols.
10046         * remote-utils.c (decode_address): New function.
10047         (look_up_one_symbol): New function.
10048         * server.c (handle_query): Call target look_up_symbols hook.
10049         * server.h (look_up_one_symbol): Add prototype.
10050         * target.h (struct target_ops): Add look_up_symbols hook.
10051
10052 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
10053
10054         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10055         override FP_REGNUM with frame->fp.  Update copyright.
10056         * parse.c (num_std_regs, std_regs): Delete.
10057         (target_map_name_to_register): Do not search std_regs.  Update
10058         function description.
10059         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10060         declarations.  Update copyright.
10061         Fix PR gdb/251.
10062
10063 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
10064
10065         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10066         after the last symbol in a block.
10067
10068 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
10069
10070         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10071         is non zero as a found symbol.
10072
10073 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
10074
10075         * findvar.c: Include "builtin-regs.h".
10076         (value_of_register): Call value_of_builtin_reg when applicable.
10077         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10078         (target_map_name_to_register): Call
10079         builtin_reg_map_name_to_regnum.
10080         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10081         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10082         (builtin_regs_h): Define.
10083         (builtin-regs.o): New target.
10084         (findvar.o): Add $(builtin_regs_h).
10085         * builtin-regs.c, builtin-regs.h: New files.
10086         * std-regs.c: New file.
10087         Partial fix for PR gdb/251.
10088
10089 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
10090
10091         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10092         it's no longer required.
10093
10094 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
10095
10096         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10097
10098 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
10099
10100         From Jimi X <jimix@watson.ibm.com>:
10101         * rs6000-tdep.c (rs6000_software_single_step): Use
10102         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10103         and size.  Use target_insert_breakpoint() and
10104         target_remove_breakpoint() to insert and remove breakpoints
10105         instead of explicit memory reads and writes.
10106
10107 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
10108
10109         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10110         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10111         ELF_OBJECT_FORMAT ifdef.
10112
10113 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
10114
10115         From Jimi X <jimix@watson.ibm.com>:
10116         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10117
10118 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
10119
10120         From Jimi X <jimix@watson.ibm.com>:
10121         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10122         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10123
10124 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
10125
10126         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10127         s/asprintf/xasprintf/.
10128         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10129
10130 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
10131
10132         I believe Jeff Law denies responsability for this one:
10133         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10134         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10135         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10136         Work-around for PR gdb/366.
10137
10138 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
10139
10140         * remote-e7000.c (write_small, e7000_read_inferior_memory,
10141         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10142         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10143
10144 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
10145
10146         * sh-tdep.c (sh_fp_frame_init_saved_regs,
10147         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10148         information.
10149
10150 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
10151
10152         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10153         maintainer.
10154
10155 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
10156
10157         * README (Reporting Bugs in GDB): Document the bug web page as the
10158         prefered way of submitting bugs.
10159         Fix PR gdb/402.
10160
10161 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
10162
10163         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10164         -1.  Update comment.
10165         * gdbarch.h, gdbarch.c: Re-generate.
10166
10167 2002-04-07  Andreas Schwab  <schwab@suse.de>
10168
10169         * m68klinux-nat.c (fill_fpregset): Properly pass address of
10170         buffer to regcache_collect.
10171
10172 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
10173
10174         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
10175         * gdbarch.c, gdbarch.h: Re-generate.
10176
10177 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
10178
10179         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10180         declaration.  Fix -Werror.
10181
10182 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
10183
10184         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10185         * gdbarch.c: Regenerate.
10186
10187 2002-04-05  Michael Snyder  <msnyder@redhat.com>
10188
10189         * breakpoint.c (clear_command): Rewrite middle section to
10190         combine two loops with identical control conditions.
10191         Add a cleanup to eliminate a memory leak.
10192         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10193
10194 2002-04-05  H.J. Lu  (hjl@gnu.org)
10195
10196         * solib-svr4.c (bkpt_names): Add "__start".
10197
10198 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
10199
10200         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10201         as test for 64 bit target.
10202
10203 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
10204
10205         * h8500-tdep.c (h8500_write_fp): Delete function.
10206         * dwarf2cfi.c (cfi_write_fp): Document as not used.
10207         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10208         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10209         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10210         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10211         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10212         (s390_write_fp):
10213         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10214         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10215         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10216         (d10v_write_fp): Delete function.
10217         * inferior.h (write_fp, generic_target_write_fp): Delete
10218         declarations.
10219         * regcache.c (generic_target_write_fp): Delete function.
10220         (write_fp): Delete function.
10221         * gdbarch.sh (TARGET_WRITE_FP): Delete.
10222         * gdbarch.h, gdbarch.c: Regenerate.
10223         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10224         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10225         (sparc64_write_fp): Delete declaration.
10226         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10227         (h8500_write_fp): Delete declaration.
10228
10229 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
10230
10231         * sparc-tdep.c (sparc64_write_fp): Delete.
10232         (sparc_push_dummy_frame): Replace write_fp call with code to store
10233         the FP directly.
10234         (sparc_gdbarch_init): Do not initialize write_fp.
10235
10236 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
10237
10238         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10239         clause.
10240
10241 2002-03-29  Jim Blandy  <jimb@redhat.com>
10242
10243         * stack.c (get_selected_block): Add new argument `addr_in_block',
10244         used to return the exact code address we used to select the block,
10245         not just the block.
10246         * blockframe.c (get_frame_block, get_current_block): Same.
10247         * frame.h (get_frame_block, get_current_block,
10248         get_selected_block): Update declarations.
10249         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10250         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10251
10252 2002-04-05  Michael Snyder  <msnyder@redhat.com>
10253
10254         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10255         warning message.
10256
10257 2002-04-05  J. Brobecker  <brobecker@gnat.com>
10258
10259         * utils.c (xfullpath): New function.
10260         * defs.h (xfullpath): Add declaration.
10261         * source.c (openp): Use xfullpath in place of gdb_realpath to
10262         avoid resolving the basename part of filenames when the
10263         associated file is a symbolic link. This fixes a potential
10264         inconsistency between the filenames known to GDB and the
10265         filenames it prints in the annotations.
10266         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10267         to be able to match a filename with either the real filename, or
10268         the name of any symbolic link to this file.
10269         (lookup_partial_symtab): Ditto.
10270
10271 2002-04-04  Michael Snyder  <msnyder@redhat.com>
10272
10273         * breakpoint.c: Add support for hardware breakpoints in overlays.
10274         (overlay_events_enabled): New state variable.
10275         (insert_breakpoints): Use overlay_events_enabled to decide
10276         whether to attempt to set a breakpoint at the overlay load addr.
10277         Handle bp_hardware_breakpoint as well as bp_breakpoint.
10278         (remove_breakpoint): Use overlay_events_enabled to decide
10279         whether breakpoints need to be removed from overlay load addr.
10280         Handle bp_hardware_breakpoint as well as bp_breakpoint.
10281         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10282         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10283         disable_overlay_breakpoints): Update overlay_events_enabled.
10284
10285 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
10286
10287         * dwarf2read.c (struct function_range): New.
10288         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10289         (check_cu_functions): New.
10290         (read_file_scope): Initialize global function lists.
10291         Call dwarf_decode_line after processing children.
10292         (read_func_scope): Add to global function list.
10293         (dwarf_decode_lines): Call check_cu_functions everywhere
10294         record_line is called.  Call record_line with a linenumber
10295         of 0 to mark sequence ends.
10296
10297 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
10298
10299         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10300         change sync with glibc.
10301
10302 2002-04-03  Jim Blandy  <jimb@redhat.com>
10303
10304         * configure.in: Call AC_C_INLINE.
10305         * configure: Regenerated.
10306
10307 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
10308
10309         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10310         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10311
10312 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
10313
10314         * NEWS: Mention gcore support on FreeBSD/i386.
10315
10316         * fbsd-proc.c: New file.
10317         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10318         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10319
10320         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10321         while statement.
10322
10323 2002-03-29  Jim Blandy  <jimb@redhat.com>
10324
10325         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10326         unescaped newlines in string literals, but newer ones don't.  So
10327         escape them.
10328
10329 2002-03-26  Michael Snyder  <msnyder@redhat.com>
10330             Andrew Cagney <cagney@redhat.com>
10331
10332         * cli/cli-dump.c: New file.  Dump memory to file,
10333         restore file to memory.
10334         * cli/cli-dump.h: New file.
10335         * Makefile.in: Add rules, dependencies for cli-dump.o.
10336         * NEWS: Mention new commands.
10337
10338 2002-03-28  Michael Snyder  <msnyder@redhat.com>
10339
10340         * symfile.c (symbol_file_add): Move test for null symbols to later.
10341
10342 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
10343
10344         From veksler at il.ibm.com:
10345         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10346         the xstrduped original path.
10347         Fix PR gdb/417.
10348
10349 2002-03-27  Michael Snyder  <msnyder@redhat.com>
10350
10351         * breakpoint.c (_initialize_breakpoint): Clean up help string.
10352         * infcmd.c (_initialize_infcmd): Ditto.
10353         * language.c (_initialize_language): Ditto.
10354         * symfile.c (_initialize_symfile): Ditto.
10355         * top.c (_init_main): Ditto.
10356         * cli/cli-cmds.c (init_cli_cmds): Ditto.
10357
10358 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
10359
10360         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10361         vector registers handling.
10362         (skip_prologue): Handle new AltiVec instructions.  Fill in new
10363         fields of frame data.
10364         (frame_get_saved_regs): Fill in information for AltiVec registers.
10365
10366 2002-03-27  Jim Blandy  <jimb@redhat.com>
10367
10368         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10369         a function; leave this macro here to invoke that function.
10370         (symbol_init_mangled_name): Declaration for that function.
10371         * symtab.c (symbol_init_mangled_name): New function.
10372
10373 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
10374
10375         * valarith.c: Replace strerror with safe_strerror.
10376         * tracepoint.c: Ditto.
10377         * lin-lwp.c: Ditto.
10378         * go32-nat.c: Ditto.
10379         * inflow.c: Ditto.
10380         * gnu-nat.c: Ditto.
10381
10382 2002-03-27  Andreas Schwab  <schwab@suse.de>
10383
10384         * event-top.c (command_line_handler): Remove useless if.
10385
10386 2002-03-27  Andreas Jaeger  <aj@suse.de>
10387
10388         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10389         comment.
10390
10391 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
10392
10393         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10394         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10395         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10396         (x86_64_linux_dr_get_status, supply_gregset),
10397         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10398         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10399         (x86_64_register_info_table): Add.
10400         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10401         (x86_64_register_raw_size, x86_64_register_virtual_type),
10402         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10403         general x86_64_register_info_table.
10404         (i386_gdbarch_init): gdbarch_register_bytes is now set
10405         dynamicaly during initialization.
10406         * regformats/reg-x86-64.dat: Synced with changes to registers above.
10407         * gdbserver/linux-x86-64-low.c: Ditto.
10408
10409 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
10410
10411         * gdbserver/server.c (main): Call target_signal_to_host_p
10412         and target_signal_to_host on signals received from the remote.
10413         * gdbserver/remote-utils.c (prepare_resume_reply): Call
10414         target_signal_from_host on signals sent to the remote.
10415         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
10416         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
10417
10418 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
10419
10420         * signals/signals.c: Include "server.h" in gdbserver build.
10421         (target_signal_from_name): Don't use STREQ.
10422         (_initialize_signals): Likewise.  Don't include function in
10423         gdbserver build.
10424
10425 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
10426
10427         * signals.c: Moved to...
10428         * signals/signals.c: Here.
10429         * Makefile (signals.o): Update.
10430
10431 2002-03-26  Jeff Law (law@redhat.com)
10432
10433         * somread.c (som_symtab_read): Remove some commented out code and
10434         updated related comments.  Do not set the minimal symbol table to
10435         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10436         in a dynamic executable.
10437         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10438         where we are unable to find the minimal symbol for the given
10439         PC value.
10440
10441 2002-03-25  Jeff Law (law@redhat.com)
10442
10443         * linux-proc.c (read_mapping): Scan up to end of line for filename.
10444
10445 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
10446
10447         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10448
10449 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
10450
10451         * command.h: Update copyright.
10452         (struct cmd_list_element): Replace definition with opaque
10453         declaration.
10454         (enum cmd_types): Document that it will eventually be moved to
10455         cli/cli-decode.h
10456         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10457         (MALLOCED_REPLACEMENT): Delete macro.
10458         * Makefile.in (cli_decode_h): Add $(command_h).
10459         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10460         * top.c: Include "cli/cli-decode.h".
10461         * completer.c: Include "cli/cli-decode.h".
10462         * maint.c: Include "cli/cli-decode.h".
10463         * cli/cli-decode.h: Include "command.h".
10464         (enum command_class): Delete.
10465         (enum cmd_types): Comment out.
10466         (enum cmd_auto_boolean): Delete.
10467         (enum var_types): Delete.
10468
10469 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
10470
10471         * cli/cli-decode.c: Include "gdb_assert.h".
10472         (add_set_or_show_cmd): New static function.
10473         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
10474         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
10475         all fields, such as func, from the set command.
10476
10477 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
10478
10479         * MAINTAINERS (sh-elf): Change warning flag to -w.
10480
10481 2002-03-23  Andrew Cagney  <cagney@redhat.com>
10482
10483         * defs.h (error): Add printf format attribute.
10484         * thread-db.c (thread_from_lwp): Fix error format string.
10485         * stack.c (parse_frame_specification): Ditto.
10486         * cli/cli-decode.c (undef_cmd_error): Ditto.
10487         * scm-lang.c (scm_lookup_name): Ditto.
10488         * tracepoint.c (trace_error): Ditto.
10489         * remote-utils.c (usage): Ditto.
10490         * remote.c (compare_sections_command): Ditto.
10491         Fix PR gdb/328.
10492
10493 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
10494
10495         * gdbtypes.c (append_composite_type_field): New function.
10496         (init_composite_type): New function.
10497         * gdbtypes.h (append_composite_type_field): Declare.
10498         (init_composite_type): Ditto.
10499
10500 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
10501
10502         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10503         function.
10504         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10505         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10506         structure returning convention for SYSV ABI case, but not
10507         for GNU/Linux, FreeBSD, or NetBSD.
10508
10509 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
10510
10511         * symtab.h (lookup_block_symbol): Add mangled_name argument
10512         to prototype.
10513
10514         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10515         with new mangled_name argument.
10516         * linespec.c (decode_line_1): Likewise.
10517         * valops (value_of_this): Likewise.
10518         * symtab.c (lookup_transparent_type): Likewise.
10519         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
10520         (lookup_symbol): If we are given a mangled name, pass it down
10521         to lookup_symbol_aux.
10522         (lookup_block_symbol): If we are given a mangled name to check
10523         against, only return symbols which match it.
10524
10525 2002-03-22  Christopher Faylor  <cgf@redhat.com>
10526
10527         * win32-nat.c (child_create_inferior): Check for proper shell to use
10528         here, in case the user changes it on the fly.
10529         (_initialize_inftarg): Remove shell path considerations.
10530
10531 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
10532
10533         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10534         for gdbarch_max_register_raw_size and max_register_virtual_size.
10535         Adjust copyright year.
10536
10537 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
10538
10539          * dbxread.c (process_one_symbol): Extend the first N_SLINE
10540          in a function to cover the entire beginning of the function
10541          as well if it does not already.
10542
10543 2002-03-21  Tom Rix  <trix@redhat.com>
10544
10545         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10546         (rs6000_ptrace64): Renamed from ptrace64.
10547
10548 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
10549
10550         * gdbserver/remote-utils.c (remote_open): Don't call
10551         getprotobyname, we're all using TCP here so just use
10552         IPPROTO_TCP.
10553         * gdbserver/gdbreplay.c (remote_open): Ditto.
10554
10555 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
10556
10557         * regcache.c (_initialize_regcache): No need to call
10558         build_regcache() at this time; it gets called whenever
10559         the gdbarch changes.
10560
10561 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
10562
10563         * sparc-nat.c:  Include sys/param.h where possible.
10564
10565 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
10566
10567         Fix PR gdb/422.
10568         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10569         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10570         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10571         complex types.
10572         * stabsread.c (rs6000_builtin_type): Likewise.
10573         (read_sun_floating_type): Likewise.
10574
10575 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10576
10577         * stabsread.c (read_member_functions): Remove skip code for duplicate
10578         constructor/destructor methods.  Use standard parsing for these
10579         methods and just do not chain them to the list of methods after
10580         parsing.
10581
10582 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
10583
10584         * coffread.c: Remove redundant static declarations.  Replace
10585         occurrences of `PTR' with `void *'.
10586         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10587         * top.h (quit_cover): Likewise.
10588         * defs.h (catch_errors): Likewise.
10589
10590 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
10591
10592         * defs.h (XMALLOC): Define.
10593         * gdb-events.sh (XMALLOC): Delete macro.
10594         * gdb-events.c, gdb-events.h: Regenerate.
10595         * gdbarch.sh (XMALLOC): Delete macro.
10596         * gdbarch.c: Regenerate.
10597         * serial.c (XMALLOC): Delete macro.
10598         * ui-file.c (XMALLOC): Ditto.
10599         * ser-unix.h (XMALLOC): Ditto.
10600         * sh-tdep.c (XMALLOC): Ditto.
10601         * ui-out.c (XMALLOC): Ditto.
10602         * utils.c (XMALLOC): Ditto.
10603         * i386-tdep.c (XMALLOC): Ditto.
10604         * gdb-events.c (XMALLOC): Ditto.
10605         * d10v-tdep.c (XMALLOC): Ditto.
10606         * cli-out.c (XMALLOC): Ditto.
10607
10608         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10609         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10610         * ui-file.c, ui-out.c: Ditto.
10611
10612 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
10613
10614         * command.h (struct cmd_list_element): Add field context.
10615         (set_cmd_context, get_cmd_context): Declare.
10616         * cli/cli-decode.h: Ditto.
10617         * cli/cli-decode.c (get_cmd_context): New function.
10618         (set_cmd_context): New function.
10619         (add_cmd): Initialize context.
10620         Part of fixing PR gdb/145 and PR gdb/146.
10621
10622 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
10623
10624         * cli/cli-decode.c (cmd_type): New function.
10625         * command.h (cmd_type): Declare.
10626         * infrun.c (set_schedlock_func): Call function cmd_type.
10627         * kod.c (kod_set_os): Call cmd_type.
10628         * cris-tdep.c (cris_version_update): Use function cmd_type.
10629         (cris_mode_update, cris_abi_update): Ditto.
10630
10631         * command.h: (execute_cmd_post_hook): Declare.
10632         (execute_cmd_pre_hook): Declare.
10633         * cli/cli-script.c (clear_hook_in_cleanup): New function.
10634         (execute_cmd_post_hook, execute_cmd_pre_hook): New
10635         functions. Execute pre/post hook while ensuring that afterwords
10636         hook_in is cleared.
10637         * top.c (execute_command): Use execute_cmd_post_hook, and
10638         execute_cmd_pre_hook to execute pre/post commands.
10639         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10640         hook_stop_stub.
10641         (hook_stop_stub): Call execute_cmd_pre_hook.
10642
10643 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
10644
10645         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
10646         set'' and this leads to a core dump.  Move xstrdup of
10647         operating_system to after check that it is not NULL.
10648
10649 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
10650
10651         * kod.c (kod_set_os): Remove unnecessary check that
10652         ``command->type'' is set_cmd.
10653
10654         * valprint.c (set_input_radix): Use input_radix.
10655         (set_output_radix): Use output_radix.
10656         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10657         isn't reverted.
10658
10659 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
10660
10661         * value.h (struct value): Delete field ``substring_addr''.  Change
10662         aligner fields to force_doublest_align, force_longest_align,
10663         force_core_addr_align and force_pointer_aligh.
10664
10665         * value.h (struct value): Fix typo in above change.
10666
10667 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10668
10669         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10670         to fix internal_error from ``maintenance print architecture''.
10671
10672 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10673
10674         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10675         for gcc versions after gcc-2.8.1.
10676
10677 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10678
10679         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10680         for method resolution.  Restore adjustment of ``this'' pointer after
10681         calling value_struct_elt, which was accidentally removed during the
10682         HP merge.
10683
10684 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
10685
10686         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10687         value_of_register.
10688         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
10689         get_saved_register.
10690         * value.h (value_of_register): Update.
10691
10692 2002-03-14  Richard Henderson  <rth@redhat.com>
10693
10694         * configure.in: Detect declaration for canonicalize_file_name.
10695         * utils.c (canonicalize_file_name): Declare, if needed.
10696         (gdb_realpath): Prefer realpath if available and usable.
10697         * config.in, configure: Rebuild.
10698
10699 2002-03-14  Richard Henderson  <rth@redhat.com>
10700
10701         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10702         a constant array bound.
10703
10704         * MAINTAINERS: Add myself to write-after-approval.
10705
10706 2002-03-14  Michael Snyder  <msnyder@redhat.com>
10707
10708         * symfile.c (syms_from_objfile): Return immediately if no syms.
10709         (symbol_file_add): Return immediately if no syms.
10710         (find_sym_fns): Return immediately if no syms.
10711
10712 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
10713
10714         * gdbserver/remote-util.c (remote_open): Print remote-side's
10715         IP address when remote debugging over the network.
10716
10717 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
10718
10719         * config/sparc/fbsd.mh: Fix copyright.
10720         * config/sparc/fbsd.mt: Likewise.
10721
10722 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
10723
10724         * MAINTAINERS: Fix typo in name of gdb warnings option.
10725         (x86-64): Fix formating so that this can be parsed by awk.
10726
10727 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
10728
10729         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10730         * defs.h: Include "gdb/signals.h".
10731         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10732
10733 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
10734
10735         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10736         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10737         from x86-64-tdep.h
10738
10739 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
10740             Don Howard <dhoward@redhat.com>
10741
10742         * mips-tdep.c (ST0_FR): Define.
10743         (mips2_fp_compat): New function, temporarily disabled.
10744         (mips_read_fp_register_single): New function.
10745         (mips_read_fp_register_double): New function.
10746         (mips_print_register): Use them.
10747         (do_fp_register_row): Likewise.
10748
10749 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
10750
10751         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10752         approval''.
10753
10754 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10755
10756         * stabsread.c (read_member_functions): Fix is_stub test for
10757         static member functions, improve comment.
10758
10759 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10760
10761         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10762         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10763         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10764         commands that set boolean values.
10765         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10766         (arm_rdi_resume): Always initialize PC.
10767         (arm_rdi_open): Don't use rslt as a boolean.
10768         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10769         (arm_rdi_fetch_registers, arm_rdi_store_registers)
10770         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10771         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10772
10773 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
10774
10775         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10776         * configure: Rebuilt.
10777
10778 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10779
10780         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10781         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10782
10783 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
10784
10785         * cli/cli-decode.c (set_cmd_completer): New function.
10786         * command.h (set_cmd_completer): Declare.
10787         * cli/cli-decode.h (set_cmd_completer): Ditto.
10788
10789         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10790         * cli/cli-cmds.c (init_cli_cmds): Ditto.
10791         * win32-nat.c (_initialize_inftarg): Ditto.
10792         * remote-rdi.c (_initialize_remote_rdi): Ditto.
10793         * proc-api.c (_initialize_proc_api): Ditto.
10794         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10795         * source.c (_initialize_source): Ditto.
10796         * exec.c (_initialize_exec): Ditto.
10797         * solib.c (_initialize_solib): Ditto.
10798         * top.c (init_main): Ditto.
10799         * tracepoint.c (_initialize_tracepoint): Ditto.
10800         * symfile.c (_initialize_symfile): Ditto.
10801         * printcmd.c (_initialize_printcmd): Ditto.
10802         * infcmd.c (_initialize_infcmd): Ditto.
10803         * corefile.c (_initialize_core): Ditto.
10804
10805 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
10806
10807         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10808
10809 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
10810
10811         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10812
10813 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
10814
10815         * NEWS: Update headings, 5.2 has branched.
10816
10817 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
10818
10819         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10820         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10821         (register_addr, REGISTER_RAW_SIZE): Likewise.
10822         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10823         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10824
10825 2002-03-03  Michal Ludvig <mludvig@suse.cz>
10826
10827         * MAINTAINERS (x86-64): Add myself.
10828         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10829         changed value_ptr -> struct value *
10830
10831 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
10832
10833         * configure.host (sparc64-*-freebsd): Add.
10834         * configure.tgt: Likewise.
10835         * config/sparc/fbsd.mh: New file.
10836         * config/sparc/fbsd.mt: Likewise.
10837         * config/sparc/nm-fbsd.h: Likewise.
10838         * config/sparc/tm-fbsd.h: Likewise.
10839
10840 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
10841
10842         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10843         regformats/reg-s390x.dat.
10844
10845 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
10846
10847         * utils.c: Add FIXME explaining true/false problem.
10848
10849 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
10850
10851         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10852
10853 2002-02-28  Michael Chastain  <mec@shout.net>
10854
10855         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10856
10857 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
10858
10859         * gdbserver/linux-s390-low.c: New file.
10860         * regformats/reg-s390.dat: New file.
10861         * regformats/reg-s390x.dat: New file.
10862         * gdbserver/configure.srv: Add S/390.
10863         * gdbserver/Makefile.in: Add S/390.
10864         * configure.tgt: Enable gdbserver for S/390.
10865
10866 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
10867
10868         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10869         first line of the doc string for "info dos", except at the end of
10870         the sentence, since the short help stops at the first period.
10871
10872 2002-02-28  Jason Merrill  <jason@redhat.com>
10873
10874         * dwarf2read.c (dwarf_cfi_name): Add new codes.
10875
10876 2002-02-27  Fred Fish  <fnf@redhat.com>
10877
10878         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10879         comment (dumy -> dummy).
10880
10881 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10882
10883         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10884
10885 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
10886
10887       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10888
10889 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
10890
10891         * gdbserver/acconfig.h: New file.
10892         * gdbserver/i387-fp.c: New file.
10893         * gdbserver/i387-fp.h: New file.
10894         * gdbserver/linux-x86-64.c: New file.
10895         * regformats/reg-x86-64.dat: New file.
10896         * configure.tgt: Add x86_64-*-linux* gdbserver support.
10897         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10898         * gdbserver/configure.in: Add support for regsets.
10899         * gdbserver/config.in: Regenerate.
10900         * gdbserver/configure: Regenerate.
10901         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
10902         * gdbserver/linux-low.h: New file.
10903         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
10904         for regsets.
10905         * gdbserver/linux-arm-low.c: Include "linux-low.h".
10906         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10907         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10908         * gdbserver/linux-mips-low.c: Include "linux-low.h".
10909         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10910         * gdbserver/linux-sh-low.c: Include "linux-low.h".
10911         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
10912         "i387-fp.h".  Add PTRACE_GETREGS and friends.
10913         * gdbserver/regcache.c (supply_register): New function.
10914         (supply_register_by_name): New function.
10915         (collect_register): New function.
10916         (collect_register_by_name): New function.
10917
10918 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
10919
10920         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10921         (config.status): Add configure.srv dependency.
10922         (server_h): Add config.h dependency.
10923
10924 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
10925
10926         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10927         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10928         * gdbserver/configure.srv: Change i386-*-linux* to use
10929         reg-i386-linux.o.
10930
10931 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
10932
10933         * x86-64-tdep.c: Re-indent.  Update copyright date.
10934
10935 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
10936
10937         From Michal Ludvig <mludvig@suse.cz>:
10938         * x86-64-tdep.c (value.h): Delete.
10939         (gdb_assert.h): Include.
10940         (x86_64_register_convert_to_virtual,
10941         x86_64_register_convert_to_raw ): Add check which lets only
10942         floating-point values to be converted.
10943         (value_push): Delete.
10944         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10945         (i386_gdbarch_init): Number of register_bytes fixed.
10946
10947 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
10948
10949         * MAINTAINERS: Add x86-64 target.
10950
10951 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
10952
10953         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10954         * osfsolib.c (solib_map_sections): Ditto.
10955         * irix5-nat.c (solib_map_sections): Ditto.
10956         * corelow.c (gdb_check_format): Ditto.
10957         * symfile.c (symfile_bfd_open): Ditto.
10958         * solib.c (solib_map_sections): Ditto.
10959         Fix PR gdb/354.
10960
10961 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
10962
10963         * remote.c (_initialize_remote): By default, disable ``e'' and
10964         ``E'' step out-of-range packets.
10965
10966 2002-02-26  Andreas Schwab  <schwab@suse.de>
10967
10968         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10969         m68k_linux_frame_saved_pc.
10970         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10971         in_sigtramp.
10972         (SIGCONTEXT_PC_OFFSET): Remove.
10973         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10974         m68k_linux_sigtramp_saved_pc): New functions.
10975         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10976         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10977         (UCONTEXT_PC_OFFSET): Define.
10978         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10979         non-RT and RT signal trampolines.
10980
10981 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
10982
10983         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10984         (TARGET_NBPG, STACK_END_ADDR): Delete
10985         (VARIABLES_INSIDE_BLOCK): Delete.
10986
10987 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
10988
10989         * utils.c (perror_with_name): Make string parameter constant.
10990         (print_sys_errmsg): Ditto.
10991         (query): Ditto.
10992         * defs.h (perror_with_name): Update.
10993         (print_sys_errmsg): Update.
10994         (query): Update.
10995
10996 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
10997
10998         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10999         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11000
11001 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11002
11003         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11004         if it already matches the current architecture from the exec file.
11005         Include arch-utils.h for gdbarch_info_init prototype.
11006         * Makefile.in (rs6000-nat.o): Update dependencies.
11007
11008 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
11009
11010         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11011          list of exported variables.
11012
11013 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
11014
11015         * gdbserver/configure.srv: New file.
11016         * gdbserver/configure.in: Use configure.srv instead
11017         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
11018         from it.
11019         * gdbserver/configure: Regenerated.
11020         * gdbserver/terminal.h: New file.
11021         * gdbserver/Makefile.in: Update for configure changes.  Remove
11022         more unneeded include paths.
11023
11024 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
11025
11026         From wiz at danbala:
11027         * config/sparc/tm-sp64.h: Fix grammar and typos.
11028         Fix PR gdb/287.
11029
11030 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
11031
11032         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11033         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
11034         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11035         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11036         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11037         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11038         * s390-tdep.c: Ditto.
11039         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11040         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11041         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11042         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11043         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11044         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11045         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11046         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11047         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11048         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11049         Fix PR gdb/378.
11050
11051 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
11052
11053         * lin-thread.c: Delete file.
11054         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11055         to gdb_proc_service.h.
11056         * configure: Re-generate.
11057
11058         * ocd.c (ocd_open): Do not try to open the "ocd" device.
11059         * serial.c (serial_open): Delete check for "ocd".
11060         Fix PR gdb/349.
11061
11062         * Makefile.in (linux-thread.o): Delete target.
11063         * linux-thread.c: Delete file.
11064
11065         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
11066         renamed SH files to be consistent.
11067
11068         * symtab.c (sort_search_symbols): Use xfree.
11069
11070 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
11071
11072         * arm-linux-tdep.c (arm_linux_init_abi): Register
11073         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11074         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11075         definition with undef, since we don't want the sysvr4 definition.
11076         (SKIP_TRAMPOLINE_CODE): Likewise.
11077
11078 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
11079
11080         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11081
11082         * configure.in: (AC_CHECK_FUNCS) Added test for
11083         canonicalize_file_name Regenerated.
11084         * config.in, configure: Regenerated.
11085         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11086         defined use canonicalize_file_name.
11087
11088 2002-02-23  Michael Chastain  <mec@shout.net>
11089
11090         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11091
11092 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
11093
11094         * README: Remove references to cygnus.com.
11095         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11096         dot com'' form.  Remove references to cygnus.com and sourceware.
11097
11098 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
11099
11100         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11101         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11102         1003.1-2001 no longer allows "head -1".
11103         * gdb/Makefile.in (version.c): Likewise.
11104         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11105         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11106         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
11107
11108 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
11109
11110         * cli/cli-decode.c (cmd_cfunc_eq): New function.
11111         * command.h (cmd_cfunc_eq): Declare.
11112         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11113
11114         * cli/cli-cmds.h (is_complete_command): Change parameter to a
11115         ``struct cmd_list_element *''.
11116         * cli/cli-cmds.c (is_complete_command): Update.  Use
11117         cmd_cfunc_eq.
11118         * top.c (execute_command): Pass the command to
11119         is_complete_command.
11120         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11121
11122 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
11123
11124         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11125         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11126         architecture defines.
11127         * s390-tdep.c (s390_gdbarch_init): Likewise.
11128
11129 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
11130
11131         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11132         (arm_linux_push_arguments): Likewise.
11133         (arm_linux_init_abi): Register them.  Also register linux-specific
11134         call_dummy_words.
11135         (find_minsym_and_objfile): Use strcmp, not STREQ.
11136         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11137         (arm_linux_call_dummy_words): Delete declaration.
11138         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11139         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11140         declarations.
11141         (LOWEST_PC): Delete.
11142
11143 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11144
11145         * maint.c (print_section_info): Do not prepend `0x' to filepos
11146         output, it will be handled by local_hex_string_custom.
11147
11148 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
11149
11150         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11151         (store_newfpe_double, store_newfpe_extended, store_fpregister)
11152         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11153
11154 2002-02-22  Jim Blandy  <jimb@redhat.com>
11155
11156         Indicate that the bcache functions don't change the strings
11157         they're passed.
11158         * bcache.h (bcache, hash): Add `const' keywords to declarations.
11159         * bcache.c (bcache, hash): Add `const' keywords to definitions.
11160
11161 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
11162
11163         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11164
11165 2002-02-21  Christopher Faylor  <cgf@redhat.com>
11166
11167         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11168         find the complete path to a loaded DLL.
11169
11170 2002-02-21  Fred Fish  <fnf@redhat.com>
11171
11172         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11173         that marks the end of the range of a function, enter a line number
11174         entry that has a line number of zero and a PC offset that matches
11175         the end of the function.  This starts a range of PC's for which no
11176         line number information is known.
11177         * symtab.c (find_pc_sect_line): If our best fit is in a range of
11178         PC's for which no line number info is found (line number is zero)
11179         then we didn't find any valid line information.
11180         * symtab.h: Document use of zero line number entry.
11181
11182 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
11183
11184         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11185         (have_ptrace_getvrregs): Define for run time checks.
11186         (gdb_vrregset_t): New type for Altivec register handling.
11187         (fetch_register, store_register): Fetch/store altivec register
11188         when needed.
11189         (fetch_altivec_register, store_altivec_register): New functions.
11190         (supply_vrregset, fill_vrregset): New functions.
11191         (fetch_altivec_registers, store_altivec_registers): New functions.
11192         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11193         registers as well.
11194
11195 2002-02-21  Jiri Smid  <smid@suse.cz>
11196
11197         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11198
11199 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
11200
11201         * Makefile.in (armnbsd-nat.o): Update dependencies.
11202         * armnbsd-nat.c (supply_gregset): New function.  Common code to
11203         supply the integer register set.
11204         (supply_fparegset): New function.  Similar for FPA registers.
11205         (fetch_regs, fetch_fp_regs): Use them.
11206         (fetch_core_registers): Likewise.
11207         (fetch_elfcore_registers): New function.
11208         (arm_netbsd_elfcore_fns): New core-file type specification.
11209         (_initialize_arm_netbsd_nat): Register it.
11210
11211 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
11212
11213         * armnbsd-nat.c: Include gdbcore.h.
11214         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11215         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11216         'void' to declaration, to shut up ARI.
11217         (fetch_core_registers): Make static.  Rewrite using supply_register.
11218         (arm_netbsd_core_fns): New core-file type specification.
11219         (_initialize_arm_netbsd_nat): New function.
11220
11221 2002-02-21  Christopher Faylor  <cgf@redhat.com>
11222
11223         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11224         value.
11225
11226 2002-02-20  Christopher Faylor  <cgf@redhat.com>
11227
11228         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11229         fails.
11230
11231 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
11232
11233         * jv-exp.y (parse_number): Change type of implicit longs
11234         to builtin_type_uint64.
11235
11236 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
11237
11238         * gdbserver/linux-low.c (mywait): Change argument to waitpid
11239         to be an integer instead of a `union wait'.
11240
11241 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
11242
11243         * mips-linux-nat.c: Call the operating system GNU/Linux.
11244         * mips-linux-tdep.c: Likewise.
11245         * mips-tdep.c: Likewise.
11246
11247 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
11248
11249         Fix PR gdb/265.
11250         * jv-exp.y (parse_number): Handle 64-bit integers.
11251
11252 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
11253
11254         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
11255         AC_STDC_HEADERS to AC_HEADER_STDC.
11256         * gdbserver/configure: Regenerated.
11257
11258 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
11259
11260         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11261         is defined.
11262         * sparc-tdep.c (get_longjmp_target): Likewise.
11263
11264 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
11265
11266         * News: Add news about ARM and Multi-arch.  Mention the new target
11267         arm*-*-netbsd*.
11268
11269 2002-02-19  Jim Blandy  <jimb@redhat.com>
11270
11271         * stabsread.c (error_type_complaint): Improve error message.
11272
11273 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
11274
11275         * gdbserver/README: Update documentation.
11276         * gdbserver/configure.in: Update configury to match documentation.
11277         * gdbserver/Makefile.in: Likewise.
11278         * gdbserver/configure: Regenerated.
11279         * gdbserver/aclocal.m4: New file, generated by aclocal.
11280         * gdbserver/config.in: New file, generated by autoheader.
11281
11282 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
11283
11284         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11285         armnbsd-nat.c.
11286
11287 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
11288
11289         * arm-tdep.h (enum arm_float_model): New enum.
11290         (struct gdbarch_tdep): Add fp_model.
11291         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
11292         up floating-point conversions until we know the floating-point model
11293         in use by the inferior.  Don't complain about being unable to
11294         determine the ABI of the inferior when we don't have one.
11295         (arm_extract_return_value): Support different floating-point models.
11296         (arm_store_return_value): Likewise.
11297         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11298         ARM_FLOAT_SOFT.
11299         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11300
11301 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11302
11303         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11304         of ``current_gdbarch''.
11305
11306 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
11307
11308         * armnbsd-nat.c : ANSIfy all function declarations.
11309         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11310         (fetch_inferior_registers): Re-implement in terms of above.
11311         (store_register, store_regs, store_fp_register, store_fp_regs): New.
11312         (store_inferior_registers): Re-implement in terms of above.
11313
11314 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
11315
11316         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11317         kernel.
11318         * arm-linux-tdep.c: Likewise.
11319         * config/arm/tm-linux.h: Likewise.
11320
11321 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
11322
11323         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11324         * config/arm/nbsd.mt (TM_FILE): Delete.
11325         * config/arm/tm-nbsd.h: Delete.
11326
11327 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
11328
11329         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11330         Initialize CALL_DUMMY_LENGTH.
11331
11332 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
11333
11334         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11335         function.
11336         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11337         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11338         defines one thing and that is incorrect for this port.
11339         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11340
11341 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11342
11343         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11344
11345 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
11346
11347         * win32-nat.c (display_selector): New function. Displays information
11348         about the information returned by GetThreadSelectorEntry API function.
11349         (display_selectors): New function. Displays the infomation of
11350         the selector given as argument, or of CS, DS ans FS selectors
11351         if no argument is given.
11352         ( _initialize_inftarg): Add "w32" as info prefix command.
11353         Add "info w32 selector" as command calling display_selectors.
11354
11355 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
11356
11357         * i386-tdep.c (get_longjmp_target): Fix compilation failure
11358         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11359         if not defined.
11360
11361 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
11362
11363         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11364
11365 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
11366
11367         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11368         (arm_fix_call_dummy): Call it.
11369         (arm_call_dummy_breakpoint_offset): Delete.
11370         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11371         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11372
11373 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
11374
11375         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11376         Default to func_frame_chain_valid.
11377         * gdbarch.h, gdbarch.c: Re-generate.
11378         * frame.h (FRAME_CHAIN_VALID): Delete definition.
11379
11380 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
11381
11382         * ppc-linux-nat.c: Update copyright.
11383         (fetch_register, store_register): Add tid parameter, don't compute
11384         tid here.
11385         (fetch_ppc_registers, store_ppc_registers): Add tid
11386         parameter. Pass it along to callees.
11387         (fetch_inferior_registers, store_inferior_registers): Compute tid
11388         here, and pass it to calleed functions.
11389         (fill_gregset, supply_fpregset): Clean up formatting.
11390
11391 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
11392
11393         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11394         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11395
11396 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
11397
11398         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11399         * gdbarch.c gdbarch.h: Regenerate.
11400         * breakpoint.c (create_longjmp_breakpoint): Always compile this
11401         function.
11402         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11403         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11404         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11405
11406         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11407         * arm-tdep.c (arm_get_longjmp_target): New function.
11408         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
11409         this to a positive value register arm_get_longjmp_target as the
11410         longjmp handler.
11411         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11412         (arm_linux_init_abi): Set up longjmp description in tdep.
11413         * armnbsd-nat.c (get_longjmp_target): Delete.
11414         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11415         description in tdep.
11416         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11417         (get_longjmp_target): Delete declaration.
11418         (GET_LONGJMP_TARGET): Delete.
11419         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11420         (GET_LONGJMP_TARGET): Delete.
11421
11422 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
11423
11424         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
11425         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11426         of ``current_gdbarch''.
11427
11428 2002-02-17  Tom Tromey  <tromey@redhat.com>
11429
11430         * cli/cli-cmds.c (compare_strings): New function.
11431         (complete_command): Only print each unique item once.
11432         * completer.h (complete_line): Declare.
11433         * completer.c (complete_line): New function.
11434         (line_completion_function): Use it.
11435
11436 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
11437
11438         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11439         * gdbarch.h, gdbarch.c: Re-generate.
11440
11441 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
11442
11443         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11444
11445 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
11446
11447         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11448         * valops.c (value_arg_coerce): Don't take the address of a reference
11449         to convert an argument to a reference.
11450
11451 2002-02-15  Christopher Faylor  <cgf@redhat.com>
11452
11453         * win32-nat.c (get_image_name): New function.
11454         (handle_load_dll): Use get_image_name function.
11455         (get_child_debug_event): Avoid registering debug events until possibly
11456         execed process is started.
11457         (child_create_inferior): Allow invocation via shell so that command
11458         line redirection, etc.  works ok.
11459         (_initialize_inftarg): Add new command: "set shell" to control whether
11460         a shell is used to start a process.
11461
11462 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
11463
11464         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11465         instead of find_register_by_number.
11466         (cannot_store_register): Likewise.
11467
11468 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
11469
11470         * dwarf2read.c: Replace fprintf (stderr, ...) by
11471         fprintf_unfiltered (gdb_stderr, ...).
11472
11473 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
11474
11475         * gdbserver/gdbserver.1: Document --attach.
11476
11477 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
11478
11479         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11480         descriptions.
11481         * arm-tdep.c (arm_default_arm_le_breakpoint)
11482         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11483         (arm_default_thumb_be_breakpoint): New.  Initialize them from
11484         traditional breakpoint defines.
11485         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11486         (arm_gdbarch_init): Initialize new breakpoint variables.
11487         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11488         (arm_linux_init_abi): Initialize linux-specific breakpoint.
11489         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11490         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11491         code out to ...
11492         (arm_netbsd_init_abi_common): ... here; new function.
11493         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11494         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11495         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11496         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11497
11498 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
11499
11500         * arm-tdep.h (enum arm_abi): New enum.
11501         (struct gdbarch_tdep): New structure.
11502         (LOWEST_PC): Provide a default.
11503         (arm_gdbarch_register_os_abi): Declare new function.
11504         * arm-tdep.c (arm_abi_names): New array.
11505         (process_note_abi_tag_sections): New function.
11506         (get_elfosabi): New function.
11507         (arm_gdbarch_register_os_abi): New function.
11508         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
11509         support for that ABI has been built in, then call the appropriate
11510         configuration routine.  Use gdbarch_num_regs() to get the number
11511         of registers.
11512         (arm_dump_tdep): New function.
11513         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11514         place-holder functions.
11515         (_initialize_arm_tdep): Register them.
11516         * config/arm/tm-arm.h (LOWEST_PC): Delete.
11517
11518         * armnbsd-tdep.c: New file.
11519         * Makefile.in (armnbsd-tdep.o): Add dependencies.
11520         * config/arm/nbsd.mt (TDEPFILES): Add it.
11521         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11522
11523         * armnbsd-nat.c: Include regcache.h.
11524         * Makefile.in (armnbsd-nat.o): Update dependency list.
11525
11526         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11527
11528 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
11529
11530         * gdbserver/Makefile.in: Fix typos in target rules.
11531
11532 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
11533
11534         Fix part of PR gdb/267.
11535         * linespec.c (find_methods): Handle constructors specially for now.
11536
11537 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
11538
11539         * arm-tdep.c (arm_push_arguments): Eliminate special float type
11540         handling.
11541         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11542         standard_coerce_float_to_double().
11543
11544 2002-02-14  Christopher Faylor  <cgf@redhat.com>
11545
11546         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11547         GDBINIT_FILENAME.
11548
11549 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
11550
11551         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11552         find_variant_by_name, because it confuses the multiarch
11553         framework. Return NULL if there isn't an architecture with the
11554         user supplied name, instead of forcing a different one without
11555         recording the change with the multiarch machinery.
11556         (find_variant_by_name): Delete.
11557
11558 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11559
11560         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11561         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11562
11563 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
11564
11565         * stack.c (print_frame_info_base): When calling
11566         print_frame_info_listing_hook, set current_source_symtab.
11567
11568 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
11569
11570         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11571         and remove unused $(INCLUDE_DIR).
11572         Add regcache.c to OBS.
11573         Add generated register protocol files to clean target.
11574         Update dependencies for new objects, obsolete old target code.
11575
11576         * gdbserver/linux-low.c: Remove all platform-specific code to
11577         new files.  Remove various dead code.  Update to use regcache
11578         functionality.
11579         * gdbserver/remote-utils.c (fromhex): Add return statement
11580         to quiet warning.
11581         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11582         constant.
11583         (input_interrupt): Add integer parameter to match prototype
11584         of a signal handler.
11585         (outreg): Use register_data ().
11586         (prepare_resume_reply): Use gdbserver_expedite_regs.
11587         * gdbserver/server.c (main): Dynamically allocate own_buf because
11588         PBUFSIZ is no longer constant.  Use registers_to_string () and
11589         registers_from_string ().
11590         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
11591         for error (), fatal (), and warning ().  Update definition of
11592         PBUFSIZ to use regcache functionality.  Add include guard.
11593         * gdbserver/utils.c (fatal): Add missing ``const''.
11594         (warning): New function.
11595
11596         * regformats/regdat.sh: Include "regcache.h" in generated files.
11597         Provide init_registers () function.
11598         * regformats/regdef.h: Add prototype for set_register_cache ().
11599         Add include guard.
11600
11601         * gdbserver/linux-arm-low.c: New file.
11602         * gdbserver/linux-i386-low.c: New file.
11603         * gdbserver/linux-ia64-low.c: New file.
11604         * gdbserver/linux-m68k-low.c: New file.
11605         * gdbserver/linux-mips-low.c: New file.
11606         * gdbserver/linux-ppc-low.c: New file.
11607         * gdbserver/linux-sh-low.c: New file.
11608
11609         * gdbserver/regcache.c: New file.
11610         * gdbserver/regcache.h: New file.
11611
11612         * gdbserver/low-linux.c: Removed obsolete file.
11613
11614 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
11615
11616         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11617         * config/i386/linux.mt: Likewise.
11618         * config/ia64/linux.mt: Likewise.
11619         * config/m68k/linux.mh: Likewise.
11620         * config/powerpc/linux.mh: Likewise.
11621         * config/mips/linux.mt: Likewise.
11622
11623         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11624
11625         * config/i386/i386lynx.mh: Mark gdbserver variables
11626         as (currently) obsolete for this target.
11627         * config/i386/nbsd.mt: Likewise.
11628         * config/i386/nbsdelf.mt: Likewise.
11629         * config/m32r/m32r.mt: Likewise.
11630         * config/m68k/m68klynx.mh: Likewise.
11631         * config/m68k/nbsd.mt: Likewise.
11632         * config/m68k/sun3os4.mh: Likewise.
11633         * config/mips/vr5000.mt: Likewise.
11634         * config/ns32k/nbsd.mt: Likewise.
11635         * config/pa/hppabsd.mh: Likewise.
11636         * config/pa/hppaosf.mh: Likewise.
11637         * config/powerpc/nbsd.mt: Likewise.
11638         * config/rs6000/rs6000lynx.mh: Likewise.
11639         * config/s390/s390.mt: Likewise.
11640         * config/s390/s390x.mt: Likewise.
11641         * config/sparc/sparclynx.mh: Likewise.
11642         * config/sparc/sun4os4.mh: Likewise.
11643         * config/i386/x86-64linux.mt: Likewise.
11644         * config/sparc/linux.mh: Likewise.
11645
11646 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
11647
11648         * configure.tgt: Configure gdbserver only for known working
11649         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
11650         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
11651         SUBDIRS if it is configured.  Update comment for ${nativefile}.
11652         * configure: Regenerated.
11653
11654 2002-02-13  Michael Snyder  <msnyder@redhat.com>
11655
11656         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11657
11658         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11659         (default_gcore_mach): Just return 0, work around a problem in bfd.
11660         (default_gcore_target): OK to return NULL if exec_bfd is null.
11661         (make_mem_sec): Use a cast, avoid a warning.
11662
11663         * procfs.c (find_memory_regions_callback): Use a cast instead of
11664         calling host_pointer_to_address (which complains if
11665         sizeof (host pointer) != sizeof (target pointer)).
11666         (procfs_make_note_section): Avoid overflow in psargs string.
11667
11668         * procfs.c (procfs_make_note_section): Make the default
11669         implementation return an error.
11670
11671 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
11672
11673         * procfs.c (procfs_make_note_section): Provide a default definition
11674         (for alpha-dec-osf4.0f). Fix typos.
11675
11676 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
11677
11678         * linux-proc.c: Add include of regcache.h.
11679         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11680
11681 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
11682
11683         From 2002-01-18 Greg McGary <greg@mcgary.org>:
11684         * memattr.c (create_mem_region): Disallow useless empty region.
11685         Regions are half-open intervals, so allow [A..B) [B..C) as
11686         non-overlapping.
11687
11688 2002-02-13  Michael Chastain <mec@shout.net>
11689
11690         * defs.h: Kill CONST_PTR.
11691         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11692         * c-lang.c (c_builtin_types): Likewise.
11693         * ch-lang.c (ch_builtin_types): Likewise.
11694         * f-lang.c (f_builtin_types): Likewise.
11695         * language.c (unknown_builtin_types): Likewise.
11696         * m2-lang.c (m2_builtin_types): Likewise.
11697         * p-lang.c (pascal_builtin_types): Likewise.
11698         * scm-lang.c (c_builtin_types): Likewise.
11699
11700 2002-02-13  Keith Seitz  <keiths@redhat.com>
11701
11702         * arm-tdep.h (arm_get_next_pc): Add declaration.
11703
11704 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
11705
11706         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
11707         with other related struct-returning functions.
11708         (arm_extract_struct_value_address): New function.
11709         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
11710         initialize float_format, double_format and long_double_format as
11711         appropriate to the endianness of the target.
11712         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11713         (arm_use_struct_convention): Delete declaration.
11714         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11715
11716 2002-02-13  Keith Seitz  <keiths@redhat.com>
11717
11718         * defs.h (core_addr_to_string_nz): New function.
11719
11720 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
11721
11722         Apply missing bits of 2002-01-15 patch.
11723         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11724         (fill_fpregset): Use i387_fill_fsave.
11725
11726 2002-02-12  Keith Seitz  <keiths@redhat.com>
11727
11728         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11729         (core_addr_to_string_nz): New function.
11730
11731 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
11732
11733         * arm-linux-nat.c: Really include arm-tdep.h.
11734         * config/arm/tm-linux.h (struct type, struct value): Declare.
11735
11736 2002-02-11  Michael Snyder  <msnyder@redhat.com>
11737
11738         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11739         (gcore section): Ifdef for Solaris and Unixware only.
11740         (procfs_do_thread_registers): Unixware needs one lwpstatus
11741         per thread (not one prstatus or pstatus).
11742         (procfs_make_note_section): Iterate only over kernel threads (lwps),
11743         not over all gdb threads.  For unixware, call elfcore_write_pstatus
11744         once before iterating over threads.
11745
11746 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
11747
11748         * arm-tdep.h: New file.
11749         * arm-tdep.c: Include arm-tdep.h.
11750         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11751         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11752         (arm_print_float_info, arm_register_type, convert_to_extended)
11753         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11754         (arm_extract_return_value, arm_register_name): Make static.
11755         (arm_software_single_step): Similarly.  Fix types in declaration.
11756         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11757         (arm_store_return_value, arm_store_struct_return): New functions.
11758         (arm_gdbarch_init): Register the above functions.  Also register
11759         call_dummy_start_offset, sizeof_call_dummy_words,
11760         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11761         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11762         max_register_virtual_size, register_size.  Set up
11763         prologue_cache.saved_regs here, rather than ...
11764         (_initialize_arm_tdep): ... here.
11765         * config/arm/tm-arm.h (struct type, struct value): Delete forward
11766         declarations.
11767         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11768         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11769         (arm_print_float_info, arm_register_type, convert_to_extended)
11770         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11771         (arm_extract_return_value, arm_register_name): Delete declarations.
11772         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11773         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11774         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11775         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11776         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11777         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11778         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11779         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11780         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11781         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11782         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11783         (arm_get_next_pc): No-longer static -- these are needed by the RDI
11784         interface.
11785         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11786         * remote-rdi.c remote-rdp.c: Likewise.
11787         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11788         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11789         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11790         definition.
11791
11792         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11793         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11794         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11795         from non-ARM_ prefixed definitions.
11796         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11797         all uses of above.
11798         * remote-rdi.c remote-rdp.c: Likewise.
11799         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11800
11801 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
11802
11803         * arm-tdep.c (arm_frameless_function_invocation)
11804         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11805         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11806         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11807         (arm_pop_frame, arm_get_next_pc): Make static.
11808         (arm_gdbarch_init): Register above in gdbarch structure.
11809         (arm_read_fp): Renamed from arm_target_read_fp.
11810         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11811         * config/arm/tm-arm.h (arm_frameless_function_invocation)
11812         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11813         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11814         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11815         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11816         (arm_pc_is_thumb_dummy): Delete declarations.
11817         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11818         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11819         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11820         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11821
11822 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
11823
11824         * symtab.c (compare_search_syms): New function.
11825         (sort_search_symbols): New function.
11826         (search_symbols): Sort symbols after searching rather than
11827         before.
11828
11829 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
11830
11831         * NEWS: Linux -> GNU/Linux.
11832
11833 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
11834
11835         * gdbarch.sh: For for level one methods, disallow a definition
11836         when partially multi-arched.  Add comments explaining rationale.
11837         * gdbarch.h: Re-generate.
11838
11839 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
11840
11841         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11842         multi-arch partial.
11843
11844 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
11845
11846         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
11847         field.  Use diff -u.
11848         * gdbarch.c: Re-generate.
11849
11850 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
11851
11852         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11853         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11854         partial.
11855
11856 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
11857
11858         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11859         multi-arch partial.
11860         (PUSH_ARGUMENTS): Switch to using predefault.
11861         * gdbarch.c: Regenerate.
11862
11863 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
11864
11865         * valops.c (PUSH_ARGUMENTS): Delete definition.
11866         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11867         partial.  Default to default_push_arguments.
11868         * gdbarch.h, gdbarch.c: Regenerate.
11869
11870 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
11871
11872         * defs.h (throw_exception): Rename return_to_top_level.  Update
11873         comments.
11874         * utils.c (error_stream, internal_verror, quit): Ditto.
11875         * top.c (throw_exception, catcher): Ditto.
11876         * sparclet-rom.c (sparclet_load): Ditto.
11877         * remote.c (interrupt_query, minitelnet): Ditto.
11878         * remote-sds.c (interrupt_query): Ditto.
11879         * remote-mips.c (mips_error, mips_kill): Ditto.
11880         * ocd.c (interrupt_query): Ditto.
11881         * monitor.c (monitor_interrupt_query): Ditto.
11882         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11883         * target.h: Update comment.
11884
11885         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11886
11887 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
11888
11889         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11890         default_double_format.
11891         * gdbarch.h, gdbarch.c: Re-generate.
11892         * findvar.c (floatformat_unknown): Delete variable definition.
11893         * doublest.h (floatformat_unknown): Delete variable declaration.
11894
11895 2002-02-09  Jim Blandy  <jimb@redhat.com>
11896
11897         * stabsread.c (read_type): Add code to parse Sun's syntax for
11898         prototyped function types.
11899
11900 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
11901
11902         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11903         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11904
11905 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11906
11907         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11908         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
11909         now _initialize_xcoffsolib gets called again and overrides the
11910         commands from solib.c in a native configuration.
11911
11912 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
11913
11914         * doublest.c (store_typed_floating): Don't try to return a value.
11915         Fixes PR gdb/290.
11916
11917 2002-02-08  Jim Blandy  <jimb@redhat.com>
11918
11919         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11920         is prototyped and has no arguments, print its argument list as
11921         `(void)'.
11922
11923 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
11924
11925         * MAINTAINERS (write-after-approval): Add myself.
11926         (paper-trail): I've escaped!
11927
11928 2002-02-08  Christopher Faylor  <cgf@redhat.com>
11929
11930         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11931         changes.
11932         (_initialize_check_for_gdb_ini): Ditto.
11933
11934 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
11935
11936         * win32-nat.c (cygwin_pid_to_str): Fix typo.
11937         xaprintf -> xasprintf.
11938
11939 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
11940
11941         * win32-nat.c: Remove use of printf and sprintf functions.
11942
11943 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
11944
11945         * arm-tdep.c (arm_frame_chain_valid): Make static.
11946         (arm_push_arguments): Likewise.
11947         (arm_gdbarch_init): New function.
11948         (_initialize_arm_tdep): Call it.
11949         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11950         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11951         (FRAME_CHAIN_VALID): Delete.
11952         (arm_frame_chain_valid): Delete declaration.
11953         (PUSH_ARGUMENTS): Delete.
11954         (arm_push_arguments): Delete declaration.
11955         (CALL_DUMMY_P): Delete.
11956
11957 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
11958             Corinna Vinschen  <vinschen@redhat.com>
11959
11960         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11961         on builtin float types.
11962
11963 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
11964
11965         * utils.c: Include <curses.h> before "bfd.h".
11966         * tui/tui-hooks.c: Likewise.
11967         * tui/tui.c: Likewise.
11968         * tui/tuiCommand.c: Likewise.
11969         * tui/tuiData.c: Likewise.
11970         * tui/tuiDataWin.c: Likewise.
11971         * tui/tuiDisassem.c: Likewise.
11972         * tui/tuiGeneralWin.c: Likewise.
11973         * tui/tuiIO.c: Likewise.
11974         * tui/tuiLayout.c: Likewise.
11975         * tui/tuiRegs.c: Likewise.
11976         * tui/tuiSource.c: Likewise.
11977         * tui/tuiSourceWin.c: Likewise.
11978         * tui/tuiStack.c: Likewise.
11979         * tui/tuiWin.c: Likewise.
11980
11981 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
11982
11983         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11984         to include space for pseudoregs as well. Update loops accordingly.
11985         (sh_fp_frame_init_saved_regs): Ditto.
11986         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11987
11988 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
11989
11990         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11991         Add Richard Earnshaw to Arm maintainers.
11992
11993 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
11994
11995         * defs.h (warning_begin): Delete declaration.
11996
11997         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11998         Delete macro.
11999
12000 2002-02-07  Michael Snyder  <msnyder@redhat.com>
12001
12002         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12003         Logic bug, remove misplaced else.
12004
12005 2002-02-07  Klee Dienes  <klee@apple.com>
12006
12007         * fork-inferior.c (fork_inferior): Add '!' to the list of
12008         characters that need to be quoted when building a string for the
12009         shell.  Quote '!' specifically with a backslash, since CSH chokes
12010         when trying to evaluate "str!str".
12011
12012 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
12013
12014         * rdi-share/host.h: Only provide a typedef for bool if it is not
12015         defined.
12016
12017 2002-02-04  Michael Snyder  <msnyder@redhat.com>
12018
12019         * breakpoint.h (enum bptype): Add new overlay event bp type.
12020         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12021
12022         * breakpoint.c (create_internal_breakpoint): New function.
12023         (internal_breakpoint_number): Moved into create_internal_breakpoint.
12024         (create_longjmp_breakpoint): Use create_internal_breakpoint.
12025         (create_thread_event_breakpoint): Ditto.
12026         (create_solib_event_breakpoint): Ditto.
12027         (create_overlay_event_breakpoint): New function.
12028         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12029         (update_breakpoints_after_exec): Delete and re-initialize
12030         overlay event breakpoints after an exec.  Add FIXME comment
12031         about longjmp breakpoint.
12032         (print_it_typical): Ignore overlay event breakpoints.
12033         (print_one_breakpoint): Ditto.
12034         (mention): Ditto.
12035         (bpstat_what): Do not stop for overlay event breakpoints.
12036         (delete_breakpoint): Don't delete overlay event breakpoints.
12037         (breakpoint_re_set_one): Delete the overlay event breakpoint.
12038         (breakpoint_re_set): Re-create overlay event breakpoint.
12039
12040         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12041         (overlay_manual_command): Disable overlay breakpoints.
12042         (overlay_off_command): Disable overlay breakpoints.
12043
12044 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
12045
12046         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12047         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12048         to here from config/tm-arm.h.
12049         (coff_sym_is_thumb): Make static.
12050         (arm_elf_make_msymbol_special): New function.
12051         (arm_coff_make_msymbol_special): New function.
12052         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12053         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12054         (coff_sym_is_thumb): Delete declaration.
12055         (arm_elf_make_msymbol_special): Declare.
12056         (arm_coff_make_msymbol_special): Declare.
12057         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12058         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12059
12060 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
12061
12062         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12063
12064 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
12065
12066         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12067         * gdbarch.c gdbarch.h: Regenerate.
12068         * arch-utils.c (default_print_float_info): New function.
12069         * arch-utils.h (default_print_float_info): Prototype it.
12070         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12071         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12072         (PRINT_FLOAT_INFO): Document it.
12073
12074         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12075         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12076         (PRINT_FLOAT_INFO): Define.
12077
12078 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
12079
12080         * win32-nat.c (_initialize_check_for_gdb_ini):
12081         Add typecast to sprintf argument to suppress a warning.
12082
12083 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
12084
12085         * win32-nat.c (last_sig): Changed type of variable to target_signal,
12086         to allow easier handling of pass state.
12087         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12088         that gives exception name and address.
12089         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12090         and set last_sig value to ourstatus->value.sig. Some missing
12091         exceptions added.
12092         (child_continue): Correctly report continue_status.
12093         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12094         TARGET_SIGNAL_0 (new default value).
12095         (child_resume): consider sig argument passed to decide if
12096         the exception should be passed to debuggee or not.
12097
12098 2002-02-05  Michael Snyder  <msnyder@redhat.com>
12099
12100         * regcache.c (fetch_register): Call target_fetch_register
12101         only if we don't call FETCH_PSEUDO_REGISTER.
12102         (store_register): Call target_store_register only if we
12103         don't call STORE_PSEUDO_REGISTER.
12104
12105 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
12106
12107         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12108         ELF_MAKE_MSYMBOL_SPECIAL.
12109         * gdbarch.c, gdbarch.h: Regenerate.
12110         * arch-utils.c (default_make_msymbol_special): New function.
12111         * arch-utils.h (default_make_msymbol_special): Export.
12112         * elfread.c (elf_symtab_read): Compile use of
12113         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12114         multiarched.
12115         * coffread.c (coff_symtab_read): Ditto, for
12116         COFF_MAKE_MSYMBOL_SPECIAL.
12117
12118 2002-02-05  Jim Blandy  <jimb@redhat.com>
12119
12120         * solib-svr4.c (svr4_truncate_ptr): New function.
12121         (svr4_relocate_section_addresses): Do the address arithmetic with
12122         the appropriate truncation for target addresses, even when
12123         CORE_ADDR is larger than a target address.
12124
12125 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
12126
12127         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12128         to (int *).
12129
12130 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
12131
12132         * gdbserver/linux-low.c (kill_inferior): Remove commented out
12133         code.
12134
12135 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
12136
12137         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12138
12139 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
12140
12141         * gdbserver/linux-low.c: Remove unused include files.
12142
12143 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
12144
12145         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12146         (read_inferior_memory): Use it.
12147         (write_inferior_memory): Likewise.
12148
12149 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
12150
12151         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12152         grubbing through sys_errlist.
12153
12154 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
12155
12156         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12157
12158 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
12159         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12160
12161 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
12162
12163         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12164         (do_sfunc, set_cmd_sfunc): New functions.
12165
12166         * command.h (struct cmd_list_element): Add field func.
12167         * cli/cli-decode.h (struct cmd_list_element): Ditto.
12168         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12169         * cli/cli-decode.h: Ditto.
12170
12171         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12172         (help_all, help_cmd_list): Ditto.
12173         (find_cmd, complete_on_cmdlist): Ditto.
12174         * top.c (execute_command): Ditto.
12175
12176         * cli/cli-setshow.c (do_setshow_command): Call func instead of
12177         function.sfunc.
12178
12179         * infcmd.c (notice_args_read): Fix function signature.
12180
12181         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12182         * cli/cli-decode.c (add_set_cmd): Ditto.
12183         * utils.c (initialize_utils): Ditto.
12184         * maint.c (_initialize_maint_cmds): Ditto.
12185         * infrun.c (_initialize_infrun): Ditto.
12186         * demangle.c (_initialize_demangler): Ditto.
12187         * remote.c (add_packet_config_cmd): Ditto.
12188         * mips-tdep.c (_initialize_mips_tdep): Ditto.
12189         * cris-tdep.c (_initialize_cris_tdep): Ditto.
12190         * proc-api.c (_initialize_proc_api): Ditto.
12191         * kod.c (_initialize_kod): Ditto.
12192         * valprint.c (_initialize_valprint): Ditto.
12193         * top.c (init_main): Ditto.
12194         * infcmd.c (_initialize_infcmd): Ditto.
12195         * corefile.c (_initialize_core): Ditto.
12196         * arm-tdep.c (_initialize_arm_tdep): Ditto.
12197         * arch-utils.c (initialize_current_architecture): Ditto.
12198         (_initialize_gdbarch_utils): Ditto.
12199         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12200
12201         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12202         * wince.c (_initialize_inftarg): Ditto.
12203         * symfile.c (_initialize_symfile): Ditto.
12204         * mips-tdep.c (_initialize_mips_tdep): Ditto.
12205         * language.c (_initialize_language): Ditto.
12206         * arc-tdep.c (_initialize_arc_tdep): Ditto.
12207
12208 2002-02-04  Michael Snyder  <msnyder@redhat.com>
12209
12210         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12211
12212 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
12213
12214         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12215         Add rules for building the register data files.
12216
12217 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
12218
12219         * regformats/regdat.sh: Add braces to the definition of
12220         expedite_regs_${arch}.
12221
12222 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
12223
12224         * regformats/regdef.h (struct reg): Add comment describing the
12225         requirements for offset and size fields.
12226
12227 2002-02-04  Andreas Schwab  <schwab@suse.de>
12228
12229         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12230         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12231
12232 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
12233
12234         * gdbarch.sh (copyright): Update years in generated header.
12235         (SMASH_TEXT_ADDRESS): Add rule.
12236         * gdbarch.h, gdbarch.c: Re-generate.
12237         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12238         * dbxread.c: Likewise.
12239         * dwarfread.c: Likewise.
12240         * elfread.c: Likewise.
12241         * somread.c: Likewise.
12242
12243         * arm-tdep.c (arm_smash_text_address): New function.
12244         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12245
12246 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
12247
12248         Add support for hardware watchpoints on win32 native.
12249         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12250         CONTEXT_DEBUG_REGISTERS.
12251         (dr variable): New variable. Static array containing a local copy
12252         of debug registers.
12253         (debug_registers_changed): New variable.  Reflects when debug registers
12254         are changed and need to be written to inferior.
12255         (debug_registers_used): New variable. Reflects when any debug register
12256         was set, used when new threads are created.
12257         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12258         i386-nat code.
12259         (thread_rec): Set dr array if id is the thread of current_event .
12260         (child_continue, child_resume): Change the debug registers for all
12261         threads if debug_registers_changed.
12262         (child_add_thread): Change the debug registers if debug_registers_used.
12263         * config/i386/cygwin.mh: Add use of i386-nat.o file.
12264         Link nm.h to new nm-cygwin.h file.
12265         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12266         of hardware registers.
12267
12268 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
12269
12270         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12271         Restore behavour broken by 2002-01-20 Andrew Cagney
12272         <ac131313@redhat.com> IEEE_FLOAT removal.
12273
12274 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
12275
12276         * c-valprint.c (c_val_print): Pass a proper valaddr to
12277         cp_print_class_method.
12278         * valops.c (search_struct_method): If there is only one method
12279         and args is NULL, return that method.
12280
12281 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
12282
12283         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12284         accessing tag_name directly.
12285
12286 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
12287
12288         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12289         of accessing tag_name directly.
12290
12291 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
12292
12293         PR gdb/280
12294         * gdbtypes.c (replace_type): New function.
12295         * gdbtypes.h (replace_type): Add prototype.
12296         * stabsread.c (read_type): Use replace_type.
12297
12298 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
12299
12300         * Makefile.in (memattr.o): Add missing dependencies rule.
12301
12302 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
12303
12304         * breakpoint.c (break_at_finish_command): Really export.
12305         (break_at_finish_at_depth_command): Ditto.
12306         (tbreak_at_finish_command): Ditto.
12307         * hppa-tdep.c: Include completer.h.
12308         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12309         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12310
12311 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
12312
12313         * utils.c (do_write): New function.
12314         (error_stream): Rewrite combining the code from error_begin and
12315         verror.
12316         (verror): Rewrite using error_stream.
12317         (error_begin): Delete function.
12318
12319 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
12320
12321         * utils.c (error_begin): Make static.
12322         * defs.h (error_begin): Delete declaration.
12323
12324         * linespec.c (cplusplus_error): Replace cplusplus_hint.
12325         (decode_line_1): Use cplusplus_error instead of error_begin,
12326         cplusplus_hint and return_to_top_level.
12327         * coffread.c (coff_symfile_read): Use error instead of error_begin
12328         and return_to_top_level.
12329         * infrun.c (default_skip_permanent_breakpoint): Ditto.
12330
12331 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
12332
12333         * language.h (type_error, range_error): Make string parameter
12334         constant.
12335         * language.c (warning_pre_print): Delete extern declaration.
12336         * dwarfread.c (warning_pre_print): Ditto.
12337         * language.c (type_error, range_error): Rewrite to use verror and
12338         vwarning instead of warning_begin.
12339
12340 2002-02-01  Michael Snyder  <msnyder@redhat.com>
12341
12342         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12343         (set_ignore_count): Move misplaced comment back where it belongs.
12344
12345 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
12346
12347         * command.h (NO_FUNCTION): Delete macro.
12348         * cli/cli-decode.h (NO_FUNCTION): Ditto.
12349         * top.c (execute_command): Replace NO_FUNCTION with NULL.
12350         * tracepoint.c (_initialize_tracepoint): Ditto.
12351         * cli/cli-decode.c (add_set_cmd): Ditto.
12352         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12353
12354 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
12355
12356         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12357         Update ``this'' pointer when calling virtual functions.
12358
12359 2002-02-01  Michael Snyder  <msnyder@redhat.com>
12360
12361         * breakpoint.c (create_temp_exception_breakpoint): Delete.
12362         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12363
12364 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
12365
12366         * regformats/reg-arm.dat: New file.
12367         * regformats/reg-i386.dat: New file.
12368         * regformats/reg-ia64.dat: New file.
12369         * regformats/reg-m68k.dat: New file.
12370         * regformats/reg-mips.dat: New file.
12371         * regformats/reg-ppc.dat: New file.
12372         * regformats/reg-sh.dat: New file.
12373         * regformats/regdef.h: New file.
12374         * regformats/regdat.sh: New file.
12375
12376 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
12377
12378         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12379         (arm_frame_args_address, arm_frame_locals_address): New functions.
12380         (arm_frame_num_args): New function.
12381         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12382         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12383         (FRMA_NUM_ARGS): Call arm_frame_num_args.
12384
12385 2002-01-31  Michael Snyder  <msnyder@redhat.com>
12386
12387         * breakpoint.c (break_at_finish_command): Export.
12388         (break_at_finish_at_depth_command): Export.
12389         (tbreak_at_finish_command): Export.
12390         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12391         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12392         "txbreak" commands, which are HPPA specific.
12393
12394         * printcmd.c (disassemble_command): Remove an ancient
12395         artifact of an old merge.
12396
12397         * symfile.h (enum overlay_debugging_state):
12398         Define enum constant values for overlay mode.
12399         * symfile.c (overlay_debugging): Use enums instead of literals.
12400         (overlay_is_mapped, overlay_auto_command,
12401         overlay_manual_command): Ditto.
12402
12403         * breakpoint.c (insert_breakpoints, remove_breakpoint,
12404         breakpoint_here_p, breakpoint_inserted_here_p,
12405         breakpoint_thread_match, bpstat_stop_status,
12406         describe_other_breakpoints, check_duplicates, clear_command):
12407         Coding standard fixes.
12408
12409         * target.c (target_xfer_memory): Add spaces, coding standard.
12410         (do_xfer_memory): Add missing line to trust-readonly
12411         code: check bfd SEC_READONLY flag for section.
12412
12413 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
12414
12415         * PROBLEMS: Fix typo, 5.1->5.1.1.
12416
12417 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
12418
12419         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12420         data symbols, since we search based on textlow and texthigh.
12421         (find_pc_sect_symtab): Likewise.
12422
12423 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
12424
12425         * defs.h (vwarning): Declare.
12426         * utils.c (vwarning): New function.
12427         (warning): Call vwarning.
12428         (warning_begin): Delete function.
12429
12430         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12431         the warning message.
12432         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12433         warning_begin.
12434
12435 2002-01-30  Michael Snyder  <msnyder@redhat.com>
12436
12437         * NEWS: Mention "set trust-readonly-sections" command.
12438         Mention generate-core-file command.
12439
12440 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12441
12442         * target.c: New command, "set trust-readonly-sections on".
12443         (do_xfer_memory): Honor the suggestion to trust readonly sections
12444         by reading them from the object file instead of from the target.
12445         (initialize_targets): Register command "set trust-readonly-sections".
12446
12447 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
12448
12449         * parse.c (target_map_name_to_register): Simplify, search regs and
12450         pseudo-regs using a single loop.
12451
12452 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
12453
12454         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12455
12456 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
12457
12458         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12459         * config/i386/i386v42mp.mh: Add i387-nat.o .
12460         * i386v4-nat.c: Include i387-nat.h.
12461         (supply_fpregset): Use i387_supply_fsave.
12462         (fill_fpregset): Use i387_fill_fsave.
12463
12464 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
12465
12466         * arm-tdep.c (arm_call_dummy_words): Define.
12467         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12468         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12469         (CALL_DUMMY_WORDS): Define.
12470         (arm_call_dummy_words): Declare.
12471         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12472         (arm_linux_call_dummy_words): Declare.
12473
12474 2002-01-30  Andreas Schwab  <schwab@suse.de>
12475
12476         * m68klinux-nat.c: Fix last change to use regcache_collect
12477         instead of referencing registers[] directly.
12478
12479 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
12480
12481         * parse.c (target_map_name_to_register): Delete code wrapped in
12482         #ifdef REGISTER_NAME_ALIAS_HOOK.
12483
12484 2002-01-28  Michael Snyder  <msnyder@redhat.com>
12485
12486         * regcache.c (legacy_read_register_gen): Need to be able to
12487         read pseudo-register as well as real register.
12488         (legacy_write_register_gen): Ditto.
12489
12490 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
12491
12492         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12493         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12494         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12495         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12496         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12497         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12498         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12499         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12500         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12501         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12502         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12503         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12504         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12505         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12506         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12507         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12508         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12509         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12510         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12511         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12512
12513 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
12514
12515         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12516         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12517         (initialize_current_architecture): Update target_byte_order using
12518         information from BFD.
12519         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12520         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12521
12522 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
12523
12524         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12525         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
12526
12527         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12528         #ifdef INVALID_FLOAT.
12529         * infcmd.c (do_registers_info): Ditto.
12530         * values.c (unpack_double): Ditto.  Add comment.
12531
12532         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12533         already commented out.
12534
12535 2002-01-26  Andreas Schwab  <schwab@suse.de>
12536
12537         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12538         * m68klinux-nat.c: Update ptrace interface for fetching/storing
12539         registers and add support for PTRACE_GETREGS.
12540
12541 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
12542
12543         GDB 5.1.1 released from 5.1 branch.
12544         * NEWS: Add 5.1.1 news.
12545         * README: Sync with 5.1 branch.
12546
12547 2002-01-23  Fred Fish  <fnf@redhat.com>
12548
12549         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12550         stabstring on initial malloc.  Reallocing will copy it for us,
12551         if necessary.
12552
12553 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
12554
12555         * Makefile.in (hpread_h): Delete.
12556         (HFILES_NO_SRCDIR): Remove hpread.h.
12557         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12558         (hpread.o): Update dependencies.
12559         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12560
12561         * hp-psymtab-read.c: Remove file.
12562         * hp-symtab-read.c: Remove file.
12563         * hpread.h: Remove file.
12564
12565         * hpread.c: Merge all contents of hp-psymtab-read.c,
12566         hp-symtab-read.c and hpread.h into this file, as it was prior to
12567         January 1999.
12568
12569         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12570         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12571         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12572         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12573
12574 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
12575
12576         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12577         fill_gregset): Call gdbarch_tdep() just once, assign result to
12578         variable and use that, instead of calling the function several
12579         times.
12580
12581 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12582
12583         * configure.host: Accept sparcv9 as alias for sparc64.
12584         * configure.tgt: Likewise.
12585
12586 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
12587
12588         * solib-aix5.c (build_so_list_from_mapfile)
12589         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12590         arguments is not reversed.
12591         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12592         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12593
12594 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
12595
12596         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12597         modified version of obsolete sh_fetch_pseudo_register.
12598         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12599         (sh4_register_read): New function.
12600         (sh_pseudo_register_write): New function. Renamed and modified
12601         version of obsolete sh_store_pseudo_register.
12602         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12603         (sh4_register_write): New function.
12604         (sh_gdbarch_init): Remove setting of gdbarch function
12605         fetch_pseudo_register and store_pseudo_register. Remove setting of
12606         register_convert_to_raw, register_convert_to_virtual,
12607         register_convertible.
12608         (sh_sh4_register_convertible): Delete. No longer needed. All is
12609         taken care by architecture specific functions
12610         register_read/register_write.
12611         (sh_sh4_register_convert_to_virtual): Make static.
12612         (sh_sh4_register_convert_to_raw): Ditto.
12613
12614 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
12615
12616         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12617         (floatformat_is_nan, floatformat_mantissa): Ditto.
12618
12619         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12620         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12621         builtin_type_ieee_double_little,
12622         builtin_type_ieee_double_littlebyte_bigword,
12623         builtin_type_m68881_ext, builtin_type_i960_ext,
12624         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12625         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12626         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12627         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12628
12629 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
12630
12631         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12632         parameter.  Set frameless flag if it exists and depended of
12633         whether the scanned function is frameless or not.
12634         (xstormy16_skip_prologue): If function is frameless, return
12635         result of xstormy16_scan_prologue().
12636         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12637         call.
12638
12639 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
12640
12641         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12642         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12643         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12644         sh_sh4_register_byte, sh_sh4_register_raw_size,
12645         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12646         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12647         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12648         sh_store_pseudo_register, sh_do_pseudo_register): Call
12649         gdbarch_tdep() just once, assign result to variable and use that,
12650         instead of calling the function several times.
12651
12652 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
12653
12654         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12655         macros instead of LAST_FPU_CTRL_REGNUM.
12656         (store_register): Likewise.
12657
12658 2002-01-21  Jim Blandy  <jimb@redhat.com>
12659
12660         * infcmd.c (run_command): Check that the `exec' target layer's BFD
12661         is up-to-date before running the program, not just when a program
12662         exits.
12663
12664 2002-01-21  Fred Fish  <fnf@redhat.com>
12665
12666         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12667         when we have found all instructions we are looking for.
12668
12669 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
12670
12671         * arm-tdep.c (arm_register_name): New function.
12672         (arm_registers_names): Make static.
12673         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12674         (arm_register_name): Declare.
12675         (REGISTER_NAME): Use it.
12676
12677 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
12678             Kevin Buettner  <kevinb@redhat.com>
12679
12680         Convert arm targets to new FRAME interface.
12681         * arm-tdep.c (struct frame_extra_info): Remove fsr.
12682         (arm_frame_find_save_regs): Delete.
12683         (arm_frame_init_saved_regs): New.
12684         (arm_init_extra_frame_info): Alloacte saved_regs as required.
12685         Allocate extra_info as required.  Convert all uses of fsr.regs
12686         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12687         to use extra_info.
12688         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12689         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12690         (check_prologue_cache, save_prologue_cache): Likewise.
12691         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12692         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12693         (FRAME_FIND_SAVED_REGS): Delete.
12694         (arm_frame_find_saved_regs): Delete prototype.
12695         (arm_frame_init_saved_regs): New prototype.
12696         (FRAME_INIT_SAVED_REGS): Define.
12697
12698 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
12699
12700         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12701
12702 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
12703
12704         From Jeff Law <law@redhat.com>:
12705         * infttrace.c: Include <sys/pstat.h>.
12706         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
12707         exec file if the ttrace equivalent fails.
12708
12709 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
12710
12711         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12712         (closeLogFile): Ditto.
12713
12714 2002-01-20  Michael Chastain  <mec@shout.net>
12715
12716         * top.c (print_gdb_version): Bump copyright year to 2002.
12717
12718 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
12719
12720         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12721         Zannoni and Eli Zaretskii.
12722
12723 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
12724
12725         * buildsym.c: Update copyright years.
12726         * c-typeprint.c: Likewise.
12727         * dwarf2read.c: Likewise.
12728         * f-typeprint.c: Likewise.
12729         * gdbtypes.c: Likewise.
12730         * gdbtypes.h: Likewise.
12731         * hp-symtab-read.c: Likewise.
12732         * hpread.c: Likewise.
12733         * mdebugread.c: Likewise.
12734         * p-typeprint.c: Likewise.
12735
12736 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
12737
12738         * remote-sim.c (gdbsim_open): Simplify code testing the macro
12739         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
12740         byte-order selectable.
12741         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12742         * arch-utils.c: Ditto.
12743         (set_endian): Ditto.
12744         (set_endian_from_file): Ditto.
12745         * gdbserver/low-sim.c (create_inferior): Ditto.
12746         * gdbarch.sh: Ditto.
12747         * gdbarch.h: Re-generate.
12748         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12749         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12750         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12751         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12752         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12753         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12754         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12755         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12756         macro definition.
12757         * config/mips/tm-wince.h: Remove #undef of macro
12758         TARGET_BYTE_ORDER_SELECTABLE.
12759         * config/sh/tm-wince.h: Ditto.
12760
12761 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
12762
12763         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12764         member function fields.  Add accessor macro
12765         TYPE_FN_FIELD_ARTIFICIAL.
12766         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12767         * c-typeprint.c (c_type_print_base): Skip artificial member
12768         functions.
12769
12770 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
12771
12772         * f-typeprint.c: Delete unused function f_type_print_args.
12773         * p-typeprint.c: Delete unused function pascal_type_print_args.
12774
12775 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
12776
12777         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
12778         comment.  Add ``artificial'' to ``union field_location''.
12779
12780         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12781
12782         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12783         * mdebugread.c (parse_symbol): Likewise.
12784         * stabsread.c (define_symbol): Likewise.
12785         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12786         initializing TYPE_FIELD_BITPOS to n (obsolete).
12787         (hpread_doc_function_type): Likewise.
12788         * hpread.c (hpread_function_type): Likewise.
12789
12790 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
12791
12792         * configure.in (host_makefile_frag): Only require a host makefile
12793         fragment when a native build.
12794         * configure: Re-generate.
12795
12796 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
12797
12798         * doublest.h (floatformat_from_type): Declare.
12799         * doublest.c (floatformat_from_type): New function.
12800         (convert_typed_floating): Use.
12801
12802         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12803         call to function floatformat_from_type.
12804
12805         * gdbarch.sh (IEEE_FLOAT): Delete.
12806         * gdbarch.h, gdbarch.c: Re-generate.
12807         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12808         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12809         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12810         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12811         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12812         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12813         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12814         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12815         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12816         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12817         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12818         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12819
12820         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12821         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12822         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12823         * sh-tdep.c (sh_gdbarch_init): Ditto.
12824         * mips-tdep.c (mips_gdbarch_init): Ditto.
12825         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12826         * cris-tdep.c (cris_gdbarch_init): Ditto.
12827
12828 2002-01-20  Jiri Smid  <smid@suse.cz>
12829
12830         * configure.host, configure.tgt: Support x86-64.
12831         * NEWS: Note new target x86-64.
12832
12833         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12834         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12835         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12836         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12837         x86-64-linux-nat.o): Fix dependencies.
12838
12839 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
12840
12841         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12842         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12843         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12844         * config/sparc/xm-sun4os4.h: Delete file.
12845         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12846
12847 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
12848
12849         * config/sparc/sparclynx.mh (XM_FILE): Delete.
12850         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12851         * config/m68k/m68klynx.mh (XM_FILE): Delete.
12852         * config/i386/i386lynx.mh (XM_FILE): Delete.
12853         * config/rs6000/xm-rs6000ly.h: Delete file.
12854         * config/sparc/xm-sparclynx.h: Delete file.
12855         * config/m68k/xm-m68klynx.h: Delete file.
12856         * config/i386/xm-i386lynx.h: Delete file.
12857         * config/xm-lynx.h: Delete file.
12858         * config/djgpp/fnchange.lst: Update.
12859
12860 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
12861
12862         * alpha-tdep.c (alpha_register_byte): New function.
12863         (alpha_register_raw_size): Ditto.
12864         (alpha_register_virtual_size): Ditto.
12865         (alpha_skip_prologue_internal): Renamed from
12866         alpha_skip_prologue.
12867         (alpha_skip_prologue): New version that calls
12868         alpha_skip_prologue_internal.
12869         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12870         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12871         second argument from alpha_skip_prologue.
12872         (REGISTER_BYTE): Use alpha_register_byte.
12873         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12874         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12875         (FRAMELESS_FUNCTION_INVOCATION): Use
12876         generic_frameless_function_invocation_not.
12877         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12878         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12879
12880 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
12881
12882         * config/mips/xm-news-mips.h: Delete file.
12883         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12884
12885         * config/m88k/xm-m88k.h: Delete file.
12886         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12887         * config/m88k/xm-delta88v4.h: Ditto.
12888         * config/m88k/xm-delta88.h: Ditto.
12889
12890         * config/alpha/xm-fbsd.h: Delete file.
12891         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12892
12893         * config/sparc/xm-sparc.h: Delete file.
12894         * Makefile.in (xm-sun4os4.h): Delete dependency.
12895         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12896         * config/sparc/xm-sun4os4.h: Ditto.
12897         * config/sparc/xm-linux.h: Ditto.
12898
12899         * config/i386/xm-windows.h: Delete file.
12900
12901 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
12902
12903         * utils.c: Include <sys/param.h> for MAXPATHLEN.
12904         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12905
12906 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
12907
12908         * alpha-tdep.c (alpha_call_dummy_words): New.
12909         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12910         (CALL_DUMMY_P): Define.
12911         (CALL_DUMMY_WORDS): Define.
12912         (SIZEOF_CALL_DUMMY_WORDS): Define.
12913
12914 2002-01-19  Per Bothner  <per@bothner.com>
12915
12916         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
12917         isn't NULL, which can happen with some gcj-3.x-produced code.
12918
12919 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
12920
12921         * alpha-tdep.c (alpha_register_virtual_type): New function.
12922         (alpha_init_frame_pc_first): Ditto.
12923         (alpha_fix_call_dummy): Ditto.
12924         (alpha_store_struct_return): Ditto.
12925         (alpha_extract_struct_value_address): Ditto.
12926         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12927         alpha_register_virtual_type.
12928         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12929         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12930         alpha_extract_struct_value_address.
12931         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12932         (INIT_FRAME_PC): Use init_frame_pc_noop.
12933         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12934
12935 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
12936
12937         * i386gnu-nat.c: Include "i386-tdep.h".
12938         (fetch_fpregs): Simplify code dealing with uninitialized floating
12939         point states such that it doesn't require FP7_REGNUM.
12940
12941 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12942
12943         * alpha-tdep.c (frame_extra_info): New.
12944         (alpha_find_saved_regs): Make static.  Use
12945         frame->extra_info.
12946         (alpha_frame_init_saved_regs): New function.
12947         (alpha_frame_saved_pc): Use frame->extra_info.
12948         (temp_saved_regs): Don't declare as struct frame_saved_regs.
12949         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12950         (init_extra_frame_info): Rename to...
12951         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
12952         (alpha_print_extra_frame_info): New function.
12953         (alpha_frame_locals_address): Ditto.
12954         (alpha_frame_args_address): Ditto.
12955         (alpha_pop_frame): Use frame->extra_info.
12956         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12957         alpha_frame_args_address.
12958         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12959         (alpha_find_saved_regs): Remove prototype.
12960         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12961         (EXTRA_FRAME_INFO): Remove.
12962         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12963         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12964
12965 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12966
12967         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12968         (alpha_cannot_fetch_register): Ditto.
12969         (alpha_cannot_store_register): Ditto.
12970         (alpha_register_convertible): Ditto.
12971         (alpha_use_struct_convention): Ditto.
12972         * config/alpha/tm-alpha.h: Update copyright years.
12973         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12974         (INNER_THAN): Use core_addr_lessthan.
12975         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12976         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12977         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12978         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12979         (FRAME_CHAIN): Remove unnecessary cast.
12980
12981 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
12982
12983         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12984         obsolete.
12985
12986 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
12987
12988         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
12989         * monitor.c, remote-array.c, remote-bug.c: Ditto.
12990         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12991         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12992         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12993         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12994         * x86-64-linux-nat.c: Ditto.
12995
12996 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12997
12998         * alpha-tdep.c (alpha_register_name): New function.
12999         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13000         (REGISTER_NAME): Define.
13001
13002 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
13003
13004         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13005
13006 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
13007
13008         * alpha-tdep.c: Update copyright years.
13009         (alpha_next_pc): New function.
13010         (alpha_software_single_step): Ditto.
13011         * config/alpha/tm-alpha.h: Add prototype for
13012         alpha_software_single_step.
13013
13014 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
13015
13016         * alphabsd-nat.c: Update copyright years.
13017         (fill_gregset): Use regcache_collect.
13018         (fill_fpregset): Likewise.
13019         (fetch_inferior_registers): Only fetch integer registers
13020         if requested to do so.
13021         (store_inferior_registers): Only store integer registers
13022         if requested to do so.
13023
13024 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
13025
13026         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13027         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13028         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13029         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13030         * config/alpha/fbsd.mh (XDEPFILES): Delete.
13031         * config/arm/linux.mh (XDEPFILES): Delete.
13032         * config/arm/nbsd.mh (XDEPFILES): Delete.
13033         * config/i386/i386dgux.mh (XDEPFILES): Delete.
13034         * config/i386/i386sol2.mh (XDEPFILES): Delete.
13035         * config/i386/i386m3.mh (XDEPFILES): Delete.
13036         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13037         * config/i386/i386gnu.mh (XDEPFILES): Delete.
13038         * config/i386/fbsd.mh (XDEPFILES): Delete.
13039         * config/i386/i386bsd.mh (XDEPFILES): Delete.
13040         * config/i386/i386sco5.mh (XDEPFILES): Delete.
13041         * config/i386/i386v4.mh (XDEPFILES): Delete.
13042         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13043         * config/i386/i386sco4.mh (XDEPFILES): Delete.
13044         * config/i386/i386aix.mh (XDEPFILES): Delete.
13045         * config/i386/go32.mh (XDEPFILES): Delete.
13046         * config/i386/cygwin.mh (XDEPFILES): Delete.
13047         * config/i386/i386lynx.mh (XDEPFILES): Delete.
13048         * config/i386/i386mach.mh (XDEPFILES): Delete.
13049         * config/i386/i386v32.mh (XDEPFILES): Delete.
13050         * config/i386/linux.mh (XDEPFILES): Delete.
13051         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13052         * config/i386/ncr3000.mh (XDEPFILES): Delete.
13053         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13054         * config/i386/i386sco.mh (XDEPFILES): Delete.
13055         * config/i386/i386v.mh (XDEPFILES): Delete.
13056         * config/i386/nbsd.mh (XDEPFILES): Delete.
13057         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13058         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13059         * config/i386/symmetry.mh (XDEPFILES): Delete.
13060         * config/i386/obsd.mh (XDEPFILES): Delete.
13061         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13062         * config/ia64/linux.mh (XDEPFILES): Delete.
13063         * config/ia64/aix.mh (XDEPFILES): Delete.
13064         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13065         * config/m68k/dpx2.mh (XDEPFILES): Delete.
13066         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13067         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13068         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13069         * config/m68k/linux.mh (XDEPFILES): Delete.
13070         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13071         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13072         * config/m68k/nbsd.mh (XDEPFILES): Delete.
13073         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13074         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13075         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13076         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13077         * config/m88k/delta88.mh (XDEPFILES): Delete.
13078         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13079         * config/m88k/m88k.mh (XDEPFILES): Delete.
13080         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13081         * config/mips/linux.mh (XDEPFILES): Delete.
13082         * config/mips/irix6.mh (XDEPFILES): Delete.
13083         * config/mips/irix5.mh (XDEPFILES): Delete.
13084         * config/mips/irix4.mh (XDEPFILES): Delete.
13085         * config/mips/irix3.mh (XDEPFILES): Delete.
13086         * config/mips/decstation.mh (XDEPFILES): Delete.
13087         * config/mips/mipsm3.mh (XDEPFILES): Delete.
13088         (NATDEPFILES): Move core-aout.o to here.
13089         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13090         * config/pa/hpux1020.mh (XDEPFILES): Delete.
13091         * config/pa/hppabsd.mh (XDEPFILES): Delete.
13092         * config/pa/hppahpux.mh (XDEPFILES): Delete.
13093         * config/pa/hpux11w.mh (XDEPFILES): Delete.
13094         * config/pa/hppaosf.mh (XDEPFILES): Delete.
13095         * config/pa/hpux11.mh (XDEPFILES): Delete.
13096         * config/powerpc/aix.mh (XDEPFILES): Delete.
13097         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13098         * config/powerpc/linux.mh (XDEPFILES): Delete.
13099         * config/romp/rtbsd.mh: Rename XDEPFILES.
13100         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13101         * config/rs6000/aix4.mh (XDEPFILES): Delete.
13102         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13103         * config/s390/s390.mh (XDEPFILES): Delete.
13104         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13105         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13106         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13107         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13108         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13109         * config/sparc/nbsd.mh (XDEPFILES): Delete.
13110         * config/sparc/linux.mh (XDEPFILES): Delete.
13111         * config/vax/vaxult.mh (XDEPFILES): Delete.
13112         * config/vax/vaxult2.mh (XDEPFILES): Delete.
13113         * Makefile.in (DEPFILES): Remove XDEPFILES.
13114
13115 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
13116
13117         * utils.c (internal_verror): Fix comments, default is yes not no.
13118         Update queries to match.  Default to quit and dump core.
13119
13120 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
13121
13122         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
13123         copyright.
13124         * defs.h, event-top.c, gdbcmd.h: Ditto.
13125         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13126         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13127         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13128         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13129         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13130         * mi/mi-main.c:Ditto.
13131
13132         * stack.c, symfile.c: Update copyright.
13133
13134 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
13135
13136         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13137         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13138         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13139         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13140
13141 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
13142
13143         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13144         * gdbserver/low-lynx.c (myattach): Likewise.
13145         * gdbserver/low-nbsd.c (myattach): Likewise.
13146         * gdbserver/low-sim.c (myattach): Likewise.
13147         * gdbserver/low-sparc.c (myattach): Likewise.
13148         * gdbserver/low-sun3.c (myattach): Likewise.
13149
13150         * gdbserver/low-linux.c (myattach): New function.
13151
13152         * gdbserver/server.c (attach_inferior): New function.
13153         (main): Handle "--attach".
13154
13155 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
13156
13157         * MAINTAINERS (language support): Daniel Jacobwitz is C++
13158         maintainer.
13159
13160 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
13161
13162         * c-typeprint.c (is_type_conversion_operator): Add additional
13163         check for non-conversion operators.
13164
13165 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13166
13167         * linux-proc.c: Add "info proc" command, a la procfs.c.
13168         (read_mapping): New function, abstract and re-use code.
13169         (linux_find_memory_regions): Use new func read_mapping.
13170         (linux_info_proc_cmd): New function, implement "info proc".
13171         (_initialize_linux_proc): Add new command "info proc".
13172
13173 2002-01-15  Michael Snyder  <msnyder@redhat.com>
13174
13175         * symfile.c (generic_load): Use bfd_map_over_sections method
13176         instead of manipulating bfd structure members directly.
13177         (add_section_size_callback): New function, bfd sections callback
13178         used by generic_load.
13179         (load_sections_callback): New function, bfd sections callback
13180         used by generic_load.
13181
13182 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
13183
13184         [Based on work by Jim Blandy]
13185         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13186         (builtin_type_vec128): Export.
13187         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13188         types.
13189         (builtin_type_vec128): New builtin type for 128 bit vector
13190         registers.
13191         (build_gdbtypes): Initialize builtin_type_v16qi and
13192         builtin_type_v8hi. Create the vec128 register builtin type
13193         structure.
13194         (build_builtin_type_vec128): New function.
13195         (_initialize_gdbtypes): Register builtin_type_v16qi and
13196         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13197         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13198         AltiVec register to new builtin type.
13199
13200 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
13201
13202         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13203         to make_cv_type.
13204
13205 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
13206
13207         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13208         CLEAN_UP_REGISTER_VALUE.
13209         * regcache.c (supply_register): Update only call.
13210
13211 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
13212
13213         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13214         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13215         a29k-*-vxworks* targets as obsolete.
13216
13217 2002-01-14  Michael Snyder  <msnyder@redhat.com>
13218
13219         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13220         until we can resolve portability issues.
13221         * gregset.h: Remove references to fpxregs.
13222         * gcore.c (gcore_command): Initialize note_sec to NULL.
13223
13224 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
13225
13226         * signals.c (target_signal_to_name): Rewrite.  Only use
13227         signals[].name when in bounds and non-NULL.
13228
13229 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
13230
13231         From Petr Ledvina <ledvinap@kae.zcu.cz>:
13232         * signals.c (target_signal_to_name): Verify that SIG is within the
13233         bounds of the signals array.
13234
13235 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
13236
13237         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13238
13239 2002-01-13  Keith Seitz  <keiths@redhat.com>
13240
13241         * stack.c (print_frame_info_base): Print the frame's pc
13242         only if when print_frame_info_listing_hook is not defined.
13243
13244 2002-01-13  Keith Seitz  <keiths@redhat.com>
13245
13246         * varobj.c (varobj_set_value): Make sure that there were no
13247         errors evaluating the object before attempting to set its
13248         value.
13249         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13250         so this offset adjustment is no longer necessary.
13251         (create_child): Don't set the error flag if the child is
13252         a CPLUS_FAKE_CHILD.
13253         (value_of_child): If value_fetch_lazy fails, return NULL
13254         so that callers will be notified that an error occurred.
13255         (c_value_of_variable): Delay check of variable's validity
13256         until later. We actually want all structs and unions to have
13257         the value "{...}".
13258         Do not return "???" for variables which could not be evaluated.
13259         This error condition must be returned to the caller so that it
13260         can get the error condition from gdb.
13261         (cplus_name_of_child): Adjust index for vptr before figuring
13262         out the name of the child.
13263         (cplus_value_of_child): If a child's (real) parent is not valid,
13264         don't even bother trying to give a value for it. Just return
13265         an error. Change all instances in this function.
13266         (cplus_type_of_child): If our parent is one of the "fake"
13267         parents, we need to get at the type of the real parent, and
13268         derive the child's true type using this information.
13269
13270 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
13271
13272         From 2002-01-09 John Marshall <johnm@falch.net>:
13273         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13274         sources.redhat.com, and tweak some related URLs which had
13275         suffered from linkrot.
13276
13277 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
13278
13279         From Jeff law:
13280         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13281         structures passed in registers.
13282
13283 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
13284
13285         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13286         white space which prevented compilation.  Reported by DSK
13287         <dsk@student.unsw.edu.au>.
13288
13289 2002-01-11  Michael Snyder  <msnyder@redhat.com>
13290
13291         * symfile.c (build_section_addr_info_from_section_tab):
13292         Use bfd access method instead of manipulating bfd directly.
13293         (syms_from_objfile): Ditto.
13294         (simple_overlay_update_1): Ditto.
13295         (simple_overlay_update): Ditto.
13296         (generic_load): Ditto.
13297         (overlay_unmapped_address): FIXME comment, bfd access methods.
13298         (sections_overlap): FIXME comment, bfd access methods.
13299         (pc_in_mapped_range): FIXME comment, bfd access methods.
13300         (pc_in_unmapped_range): FIXME comment, bfd access methods.
13301         (section_is_mapped): FIXME comment, bfd access methods.
13302         (section_is_overlay): FIXME comment, bfd access methods.
13303
13304         * symfile.c (generic_load): Whitespace and long line cleanups.
13305         Remove duplicate variable, change several local variables to
13306         more appropriate data types.
13307         (print_transfer_performance): Use %lu instead of %ld for ulongs.
13308
13309 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
13310
13311         From Peter Schauer:
13312         * language.c (longest_local_hex_string_custom): Use phex_nz to
13313         convert NUM to a hex string.
13314
13315 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
13316
13317         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13318         the function.
13319         Update Copyright year.
13320
13321 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
13322
13323         * language.c (longest_raw_hex_string): Delete unused function.
13324
13325 2002-01-11  Petr Sorfa  <petrs@caldera.com>
13326
13327         * MAINTAINERS (write-after-approval): Add myself.
13328         * dwarf2read.c (read_tag_string_type): Handling of
13329         DW_AT_byte_size.
13330         (read_tag_string_type): FORTRAN fix to prevent propagation of
13331         first string size.
13332         (set_cu_language): Handling of DW_LANG_Fortran95
13333
13334 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
13335
13336         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13337         GETPID(inferior_ptid).
13338         (store_inferior_registers): Likewise.
13339
13340 2002-01-10  Jason Merrill  <jason@redhat.com>
13341
13342         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13343         Fix DW_OP_minus.
13344
13345 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
13346
13347         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13348         and bfd/elf32-sh-nbsd.c.
13349
13350 2002-01-10  Michael Snyder  <msnyder@redhat.com>
13351
13352         * NEWS: Mention --pid and corefile/proc-id behavior change.
13353
13354         * Makefile.in: Add rules for gcore.o and linux-proc.o.
13355         * gcore.c: Include cli/cli-decode.h instead of command.h.
13356
13357         * main.c (captured_main): Add new command line option "--pid".
13358         If the second command line argument (following the symbol-file)
13359         begins with a digit, try to attach to it before trying to open
13360         it as a corefile.
13361         (print_gdb_help): Document the "--pid" argument.
13362
13363 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
13364
13365         * completer.c (command_completer): New function.
13366
13367         * completer.h <command_completer>: Add prototype.
13368
13369         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13370         completer for the "help" command.
13371
13372 2002-01-09  Jason Merrill  <jason@redhat.com>
13373
13374         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13375
13376 2002-01-09  Michael Snyder  <msnyder@redhat.com>
13377
13378         * i386-linux-nat.c (fill_fpxregset): Make global.
13379         (store_fpxregset): Ditto.
13380
13381         * gregset.h (gdb_fpxregset_t): Define.
13382         (supply_fpxregset): Prototype.
13383         (fill_fpxregset): Prototype.
13384
13385         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13386
13387 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
13388
13389         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13390         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13391         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13392
13393 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
13394
13395         * MAINTAINERS: Update target maintainer rules so that any
13396         Maintainer can approve a tested patch for a maintenance-only
13397         target.
13398
13399 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
13400
13401         * MAINTAINERS (write-after-approval): Add myself.
13402
13403         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13404         IN_SIGTRAMP.
13405
13406 2002-01-08  Michael Snyder  <msnyder@redhat.com>
13407
13408         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13409         real name of the executable, rather than the /proc name.
13410
13411 2002-01-03  Michael Snyder  <msnyder@redhat.com>
13412
13413         Implement a "generate-core-file" command in gdb, save target state.
13414         * gcore.c: New file.  Implement new command 'generate-core-file'.
13415         Save a corefile image of the current state of the inferior.
13416         * linux-proc.c: Add linux-specific code for saving corefiles.
13417         * target.h (struct target_ops): Add new target vectors for saving
13418         corefiles; to_find_memory_regions and to_make_corefile_notes.
13419         (target_find_memory_regions): New macro.
13420         (target_make_corefile_notes): New macro.
13421         * target.c (update_current_target): Inherit new target methods.
13422         (dummy_find_memory_regions): New place-holder method.
13423         (dummy_make_corefile_notes): New place-holder method.
13424         (init_dummy_target): Initialize new dummy target vectors.
13425         * exec.c (exec_set_find_memory_regions): New function.
13426         Allow the exec_ops vector for memory regions to be taken over.
13427         (exec_make_note_section): New function, target vector method.
13428         * defs.h (exec_set_find_memory_regions): Export prototype.
13429         * procfs.c (proc_find_memory_regions): New function, corefile method.
13430         (procfs_make_note_section): New function, corefile method.
13431         (init_procfs_ops): Set new target vector pointers.
13432         (find_memory_regions_callback): New function.
13433         (procfs_do_thread_registers): New function.
13434         (procfs_corefile_thread_callback): New function.
13435         * sol-thread.c (sol_find_memory_regions): New function.
13436         (sol_make_note_section): New function.
13437         (init_sol_thread_ops): Initialize new target vectors.
13438         * inftarg.c (inftarg_set_find_memory_regions): New function.
13439         Allow to_find_memory_regions vector to be taken over.
13440         (inftarg_set_make_corefile_notes): New function.
13441         Allow to_make_corefile_notes vector to be taken over.
13442         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13443         interface layer if not target_has_execution (may be a corefile).
13444         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13445         * config/sparc/sun4sol2.mh: Ditto.
13446         * config/alpha/alpha-linux.mh: Ditto.
13447         * config/arm/linux.mh: Ditto.
13448         * config/i386/x86-64linux.mh: Ditto.
13449         * config/ia64/linux.mh: Ditto.
13450         * config/m68k/linux.mh: Ditto.
13451         * config/mips/linux.mh: Ditto.
13452         * config/powerpc/linux.mh: Ditto.
13453         * config/sparc/linux.mh: Ditto.
13454
13455 2002-01-07  Michael Snyder  <msnyder@redhat.com>
13456
13457         * arm-linux-nat.c: Remove references to regcache.c internal data
13458         (registers[] and register_valid[]).
13459
13460 2002-01-07  Michael Snyder  <msnyder@redhat.com>
13461
13462         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
13463         so that attaching to a pid will automatically read the process's
13464         symbol file and shlibs.
13465         * Makefile.in: Add rule for linux-proc.o.
13466         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13467         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13468         * config/arm/linux.mh: Ditto.
13469         * config/i386/linux.mh: Ditto.
13470         * config/i386/x86-64linux.mh: Ditto.
13471         * config/ia64/linux.mh: Ditto.
13472         * config/m68k/linux.mh: Ditto.
13473         * config/mips/linux.mh: Ditto.
13474         * config/powerpc/linux.mh: Ditto.
13475         * config/sparc/linux.mh: Ditto.
13476
13477 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
13478
13479         * win32-nat.c: Add i386-tdep.h dependency.
13480
13481 2002-01-07  Michael Snyder  <msnyder@redhat.com>
13482
13483         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13484         instead of bfd_get_arch_size.  Don't bail out just because
13485         there's no exec_bfd.
13486
13487         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13488         * p-valprint.c (pascal_object_print_value): Ditto.
13489         * somread.c (som_symtab_read): Ditto.
13490         * symfile.c (simple_free_overlay_region_table): Ditto.
13491         * valops.c (value_assign): Ditto.
13492
13493         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13494         use tilde_expand and strerror for opening save-tracepoints file.
13495
13496         * thread-db.c (thread_db_new_objfile): Indendation fix.
13497
13498         * infptrace.c (GDB_MAX_ALLOCA): New define.
13499         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13500         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13501         can be overridden with whatever value is appropriate to the host).
13502         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13503         alloca to allocate potentially large buffer.
13504         * rs6000-nat.c (child_xfer_memory): Ditto.
13505         * symm-nat.c (child_xfer_memory): Ditto.
13506         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13507
13508 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
13509
13510         From Nick Clifton  <nickc@redhat.com>
13511         * d10v-tdep.c: Set STACK_START to 0x200bffe.
13512
13513 2002-01-07  Michael Snyder  <msnyder@redhat.com>
13514
13515         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13516         Don't use exec_bfd if it's NULL.
13517
13518 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
13519
13520         * valops.c (value_arg_coerce): Fix formatting.
13521
13522 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
13523
13524         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13525         * gnu-nat.c: Ditto.
13526
13527 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
13528
13529         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13530         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13531         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13532         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13533         z8k-coff have not been multi-arched.  Update z8k-coff build
13534         status.
13535
13536 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
13537
13538         * MAINTAINERS: Mark a29k target as obsolete.
13539         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13540         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
13541         comments.
13542         * NEWS: Note that a29k targets are obsolete.
13543         * a29k-tdep.c: Mark as obsolete.
13544         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13545         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13546         a29k-*-vxworks* targets as obsolete.
13547         * remote-adapt.c: Obsolete.
13548         * remote-eb.c: Obsolete.
13549         * remote-mm.c: Obsolete.
13550         * remote-udi.c: Obsolete.
13551         * config/a29k/a29k-udi.mt: Obsolete.
13552         * config/a29k/a29k.mt: Obsolete.
13553         * config/a29k/tm-a29k.h: Obsolete.
13554         * config/a29k/tm-vx29k.h: Obsolete.
13555         * config/a29k/vx29k.mt: Obsolete.
13556
13557 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
13558
13559         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13560         with BFD_ENDIAN_BIG.
13561
13562 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
13563
13564         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13565         * configure, config.in: Re-generate.
13566         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13567         * defs.h: Do not include <endian.h>.
13568
13569 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
13570
13571         * acconfig.h (HAVE_PT_GETXMMREGS): New.
13572         * config.in: Regenerate.
13573         * configure.in: Update copyright years.
13574         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13575         * configure: Regenerate.
13576         * i386bsd-nat.c: Update copyright years.
13577         (fill_gregset): Use regcache_collect.
13578         (fetch_inferior_registers): Only fetch integer registers
13579         if requested to do so.  Add support for XMM registers
13580         using PT_GETXMMREGS.
13581         (store_inferior_registers): Only store integer registers
13582         if requested to do so.  Add support for XMM registers
13583         using PT_SETXMMREGS.
13584         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13585         (store_inferior_registers): Remove.
13586         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13587         (fetch_elfcore_registers): New function.
13588         (i386nbsd_elfcore_fns): New.
13589         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13590         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13591         i386bsd-nat.o.
13592         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13593         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13594         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13595         * config/i386/tm-nbsd.h: Update copyright years.
13596         (HAVE_SSE_REGS): Define.
13597         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13598         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13599         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13600         (SIGCONTEXT_PC_OFFSET): Remove.
13601         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13602
13603 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
13604
13605         * configure.tgt: Remove powerpc-*-macos* target.
13606         * config/m68k/xm-mpw.h: Delete file.
13607         * config/xm-mpw.h: Delete file.
13608         * ser-mac.c: Delete file.
13609         * mpw-make.sed: Delete file.
13610         * mpw-config.in: Delete file.
13611         * mac-xdep.c: Delete file.
13612         * mac-gdb.r: Delete file.
13613         * mac-defs.h: Delete file.
13614         * mac-nat.c: Delete file.
13615         * config/powerpc/macos.mh: Delete file.
13616         * config/powerpc/macos.mt: Delete file.
13617         * config/powerpc/nm-macos.h: Delete file.
13618         * config/powerpc/tm-macos.h: Delete file.
13619         * source.c (openp, open_source_file): Remove obsolete code.
13620         * top.c (gdb_readline): Ditto.
13621         * utils.c (query): Ditto.
13622         * event-top.c (display_gdb_prompt): Ditto.
13623         * Makefile.in (ser-mac.o): Delete obsolete target.
13624         * NEWS: Update.
13625
13626 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
13627
13628         * defs.h (BIG_ENDIAN): Delete macro definition.
13629         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13630         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13631         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13632         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13633         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13634         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13635         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13636         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13637         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13638         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13639         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13640         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13641         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13642         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13643         * gdbarch.c: Re-generate.
13644
13645 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
13646
13647         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13648         for core files.
13649
13650 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
13651
13652         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13653
13654 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
13655
13656         * value.h (value_ptr): Delete typedef.
13657
13658 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
13659
13660         * i386nbsd-nat.c: Update copyright years.
13661         Include i386-tdep.h.
13662
13663 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
13664
13665         * stabsread.c: Update copyright years.
13666
13667         From Debashis Mahata <debashis.mahata@wipro.com>:
13668         (read_struct_fields): Deal with Sun C compiler erroneous stab
13669         output for structs and unions.
13670         Fix PR gdb/269.
13671
13672 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
13673
13674         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13675         prototype.
13676
13677 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
13678
13679         * cp-abi.c: Fix whitespace.
13680         (baseclass_offset): New wrapper function.
13681         * cp-abi.h (baseclass_offset): Add prototype.
13682         (struct cp_abi_ops): Add baseclass_offset pointer.
13683
13684         * valops.c (vb_match): Move to...
13685         * gnu-v2-abi.c (vb_match): here.
13686         * valops.c (baseclass_offset): Move to...
13687         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13688
13689         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13690
13691         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13692         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13693         * hpacc-abi.c (init_hpacc_ops): Likewise.
13694
13695 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
13696
13697         * valops.c (find_overload_match): Accept obj as a
13698         reference parameter.  Update it before returning.
13699         * value.h (find_overload_match): Update prototype.
13700         * eval.c (evaluate_subexp_standard): Pass object to
13701         find_overload_match by reference.
13702
13703 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
13704
13705         * valarith.c: Replace value_ptr with struct value pointer.  Remove
13706         register attribute from value declarations.
13707         * valops.c: Ditto.
13708         * value.h: Ditto.
13709         * scm-lang.c (scm_lookup_name): Ditto.
13710
13711 2002-01-03  Michael Snyder  <msnyder@redhat.com>
13712
13713         Abstract the functionality of iterating over mapped memory
13714         regions into a general purpose iterator function.
13715         * procfs.c (iterate_over_mappings): New function, general purpose
13716         iterator for memory sections.
13717         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13718         (solib_mappings_callback): New function, callback for above.
13719         (info_proc_mappings): Reimpliment using iterate_over_mappings.
13720         (info_mappings_callback): New function, callback for above.
13721
13722         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13723
13724 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
13725
13726         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13727         * i386-tdep.c: Include "elf-bfd.h".
13728         (process_note_abi_tag_sections): New function.
13729         (i386_gdbarch_init): Add code to recognize various OS/ABI
13730         combinations.
13731
13732         * maint.c (_initialize_maint_cmds): Add missing \ in
13733         string-literal.
13734
13735 For older changes see ChangeLog-2001
13736 \f
13737 Local Variables:
13738 mode: change-log
13739 left-margin: 8
13740 fill-column: 74
13741 version-control: never
13742 End: