25a0285b7dea1ddb215d9765b04447c4790951e1
[external/binutils.git] / gdb / ChangeLog
1 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2
3         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5         long long) to prevent compiler warning on 64-bit systems.
6
7 2002-08-23  Andrew Cagney  <cagney@redhat.com>
8
9         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
10         (DEPRECATED_STORE_RETURN_VALUE): New method.
11         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
12         * gdbarch.h, gdbarch.c: Re-generate.
13
14         * values.c (set_return_value): Pass current_regcache to
15         STORE_RETURN_VALUE.
16         * arch-utils.h (legacy_store_return_value): Declare.
17         * arch-utils.c (legacy_store_return_value): New function.
18         (legacy_extract_return_value): Update parameters.
19
20         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
21         STORE_RETURN_VALUE.
22         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
23         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
24         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
25         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
26         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
27         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
28         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
29         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
30         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
31         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
32
33         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
34         * i386-tdep.c (i386_extract_return_value): Update.
35         * arch-utils.c (legacy_extract_return_value): Update.
36         * frv-tdep.c (frv_gdbarch_init): Update.
37         * cris-tdep.c (cris_gdbarch_init): Update.
38         * d10v-tdep.c (d10v_gdbarch_init): Update.
39         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
40         * m68k-tdep.c (m68k_gdbarch_init): Update.
41         * mcore-tdep.c (mcore_gdbarch_init): Update.
42         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
43         * s390-tdep.c (s390_gdbarch_init): Update.
44         * sparc-tdep.c (sparc_gdbarch_init): Update.
45         * sh-tdep.c (sh_gdbarch_init): Update.
46         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
47         * v850-tdep.c (v850_gdbarch_init): Update.
48         * avr-tdep.c (avr_gdbarch_init): Update.
49         * ia64-tdep.c (ia64_gdbarch_init): Update.
50         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
51         * vax-tdep.c (vax_gdbarch_init): Update.
52         * alpha-tdep.c (alpha_gdbarch_init): Update.
53         * arm-tdep.c (arm_gdbarch_init): Update.
54         * mips-tdep.c (mips_gdbarch_init): Update.
55         * i386-tdep.c (i386_gdbarch_init): Update.
56
57 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
58
59         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
60         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
61
62 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
63
64         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
65         problems.
66
67 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
68
69         * infrun.c (handle_inferior_event): Move a comment outside of a
70         function call, in order to avoid indent reformatting this part
71         of the code in an unreadable way.
72
73 2002-08-23  Grace Sainsbury  <graces@redhat.com>
74
75         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
76         when breakpoints fail. Move general breakpoint error messages to
77         insert_breakpoints.  
78         * breakpoint.c (insert_breakpoints): Change warnings when
79         breakpoints are nto inserted to specify the type. Remove call to
80         memory_error when hardware breakpoints can't be inserted. Remove
81         multiple calls to warning so all messages are sent to the user at
82         once.
83         (delete_breakpoints): Make insert error messsages more explicit.
84
85 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
86
87         * ChangeLog: Move gdbserver entries after GDB 5.2 to
88         gdbserver/ChangeLog.
89
90 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
91
92         * i386-tdep.c: Include "objfiles.h".
93         (i386_svr4_init_abi): Set in_solib_call_trampoline and
94         skip_trampoline_code.
95         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
96         (CPLUS_MARKER): Define to '.'.
97
98         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
99         member.
100         (linux_corefile_thread_callback): Increase args->num_notes.
101         (linux_make_note_section): Initialize thread_args.num_notes, and
102         use it to determine whether notes for any threads were created.
103
104 2002-08-23  Donn Terry  <dterry@microsoft.com>
105
106         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
107         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
108         and PCUNKILL.
109         (write_with_trace): Conditionalize out the switch branch handling
110         PCSHOLD if the corresponding macro is not defined. Likewise for
111         PRSABORT and PRSTOP.
112         This change will be needed by the Interix port.
113
114 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
115
116         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
117         ev_offset fields.
118         (skip_prologue): Add support for BookE/e500 instructions.
119         (e500_extract_return_value): New function.
120         (frame_get_saved_regs): Add support for saving ev registers and
121         pseudo gpr's.
122         (e500_store_return_value): New function.
123         (rs6000_gdbarch_init): Move up default intializations of
124         deprecated_extract_return_value and store_return_value.  Overwrite
125         init of store_return_value with e500 specific version.
126         Set extract_return_value for e500.
127         
128 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
129
130         * blockframe.c (generic_call_dummy_register_unwind): Use
131         regcache_cooked_read to catch cases in which the variable is
132         stored in a pseudo register.
133
134 2002-08-22  Andrew Cagney  <cagney@redhat.com>
135
136         * NEWS: Mention that the i960 has been made obsolete.
137         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
138         i960-tdep.c
139         (remote-nrom.o): Obsolete target.
140         (remote-nindy.o, i960-tdep.o): Ditto.
141         * remote-nrom.c: Make file obsolete.
142         * remote-nindy.c, remote-vx960.c: Ditto.
143         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
144         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
145         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
146         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
147         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
148         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
149         i960-*-vxworks* obsolete.
150         * MAINTAINERS: Note that the i960 is obsolete.
151
152 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
153
154         * aix-thread.c (aix_thread_detach): Disable thread debugging on
155         detach to allow reinitialization.
156
157 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
158
159         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
160         attempt).
161
162 2002-08-22  Jim Blandy  <jimb@redhat.com>
163
164         * coffread.c (coff_symfile_read): Don't try to read the line
165         number table from disk if the image file doesn't have a symbol
166         table; we'll never actually look at the info anyway, and Windows
167         ships DLL's with bogus file offsets for the line number data.
168
169 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
170
171         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
172         an e500 executable.
173
174 2002-08-21  Michael Snyder  <msnyder@redhat.com>
175
176         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
177         (MSYMBOL_SIZE): Replace macro with function.
178         (DEFAULT_MIPS_TYPE): Delete unused macro.
179         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
180         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
181
182 2002-08-21  Jim Blandy  <jimb@redhat.com>
183
184         * valops.c (value_cast): Simplify and correct logic for doing a
185         static cast from a pointer to a base class to a pointer to a
186         derived class.
187
188 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
189
190         * infcmd.c (default_print_registers_info): Replace
191         do_registers_info.
192         (registers_info): Use gdbarch_print_registers_info instead of
193         DO_REGISTERS_INFO.
194         * inferior.h (default_print_registers_info): Replace
195         do_registers_info.
196         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
197         (DO_REGISTERS_INFO): Change to a predicate function.
198         * gdbarch.h, gdbarch.c: Regenerate.
199         
200 2002-08-21  Keith Seitz  <keiths@redhat.com>
201
202         * gdb-events.sh: Add target-changed event.
203         * gdb-events.c: Regenerated.
204         * gdb-events.c: Regenerated.
205         * valops.c (value_assign): Add target-changed event notification
206         to inlval_register, lval_memory, and lval_reg_frame_relative.
207
208 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
209
210         * NEWS: Add an entry regarding the improvement of the next/step
211         operation on Alpha Tru64 multi-processor machines.
212
213 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
214
215         * Makefile.in: Update dependencies for mi/ cli/ and tui/
216         directores.
217         * Makefile.in: Update all _h macro definitions.
218         * Makefile.in (install-gdbtk): Move to install section.
219         (rdi-share/libangsd.a): Move to end of file.
220
221 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
222
223         * frame.c (frame_register_unwind): When a register, set addrp to
224         the register's byte.
225
226 2002-08-20  Michael Snyder  <msnyder@redhat.com>
227
228         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
229         used locally, so move them from the target machine header to here.
230         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
231         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
232         Make static.
233         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
234
235 2002-08-20  Andrew Cagney  <cagney@redhat.com>
236
237         * NEWS: Mention that the Apollo line was made obsolete.
238         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
239         m68*-hp-hpux* obsolete.
240         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
241         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
242         * buildsym.c (make_blockvector): Make static.
243         * buildsym.h (make_blockvector): Make extern declaration obsolete.
244         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
245         (ALLDEPFILES): Remove dstread.c.
246         (dstread.o): Obsolete make rule.
247         * dstread.c: Makefile obsolete.
248         * dst.h: Ditto.
249         * config/m68k/hp300hpux.mt: Ditto.
250         * config/m68k/hp300hpux.mh: Ditto.
251         * config/m68k/hp300bsd.mt: Ditto.
252         * config/m68k/hp300bsd.mh: Ditto.
253         * config/m68k/apollo68b.mt: Ditto.
254         * config/m68k/apollo68v.mh: Ditto.
255         * config/m68k/apollo68b.mh: Ditto.
256
257 2002-08-20  Michael Snyder  <msnyder@redhat.com>
258
259         * mips-tdep.c (mips_in_return_stub): Make static.
260         (mips_gdbarch_init): Set in_solib_return_trampoline.
261         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
262
263 2002-08-20  Michael Snyder  <msnyder@redhat.com>
264
265         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
266         * gdbarch.c, gdbarch.h: Regenerate.
267         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
268         Add.
269         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
270
271 2002-08-20  Michael Snyder  <msnyder@redhat.com>
272
273         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
274         (mips_gdbarch_init): Set skip_trampoline_code, 
275         in_solib_call_trampoline.
276         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
277         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
278
279 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
280
281         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
282
283         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
284         vector type for ev registers.
285         (e500_pseudo_register_read): New function.
286         (e500_pseudo_register_write): New function.
287         (e500_dwarf2_reg_to_regnum): New function.
288         (PPC_UISA_NOFP_SPRS): New macro.
289         (PPC_EV_REGS): New macro.
290         (PPC_GPRS_PSEUDO_REGS): New macro.
291         (registers_e500): New register set for e500.
292         (variants): Add e500 variant.
293         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
294         before setting architectural dependent variations.  Initialize ev
295         registers numbers.  Add case for e500 architecture.  Set the
296         number of pseudo registers.
297
298 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
299
300         * rs6000-tdep.c: Clean up comments.
301
302 2002-08-20  Andrew Cagney  <cagney@redhat.com>
303
304         * h8300-tdep.c: Re-indent file.
305
306 2002-08-20  Jim Blandy  <jimb@redhat.com>
307
308         * Makefile.in (LDFLAGS): Allow the configure script to establish a
309         default for this.
310
311 2002-08-20  Keith Seitz  <keiths@redhat.com>
312
313         * breakpoints.c (watch_command_1): Use internal breakpoint
314         when setting a watchpoint_scope breakpoint.
315
316 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
317
318         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
319         (build_builtin_type_vec64i): Ditto.
320         (build_builtin_type_vec128): Ditto.
321         (build_builtin_type_vec128i): Ditto.
322
323 2002-08-19  Michael Snyder  <msnyder@redhat.com>
324
325         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
326         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
327         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
328         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
329         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
330         CALL_DUMMY_ADDRESS): Delete.
331         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
332         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
333         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
334         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
335         push_return_address.
336         (mips_register_raw_size, mips_eabi_use_struct_convention, 
337         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
338         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
339         mips_init_extra_frame_info, mips_eabi_push_arguments, 
340         mips_n32n64_push_arguments, mips_push_return_address,
341         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
342         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
343
344 2002-08-19  Michael Snyder  <msnyder@redhat.com>
345
346         * mips-tdep.c (mips_frame_num_args): New function.
347         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
348         frame_saved_pc, frame_args_address, frame_locals_address, 
349         frame_num_args, and frame_args_skip.
350         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
351         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
352         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
353         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
354
355 2002-08-20  Michael Snyder  <msnyder@redhat.com>
356
357         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
358         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
359         * mips-tdep.c (mips_store_struct_return): New function.
360         (mips_extract_struct_value_address): New function.
361         (mips_gdbarch_init): Set store_struct_return and
362         extract_struct_value_address.
363
364 2002-08-20  David Carlton  <carlton@math.stanford.edu>
365
366         * dwarf2read.c (dwarf2_build_psymtabs): Check that
367         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
368         (read_file_scope): Check that line_header is nonzero before
369         decoding macro information.
370
371 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
372
373         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
374         flag the general-purpose registers as floating-point on targets
375         that don't support the floating-point registers.
376
377 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
378
379         * rs6000-tdep.c (altivec_register_p): Delete.
380         (rs6000_do_altivec_registers): Delete.
381         (rs6000_altivec_registers_info): Delete.
382         (rs6000_do_registers_info): Delete.
383         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
384         (rs6000_gdbarch_init): Remove setting of do_registers_info.
385
386 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
387
388         * infcmd.c (do_registers_info): Print vector registers in hex
389         format only.
390         (print_vector_info): Check that printing registers
391         makes sense.
392         (print_float_info): Ditto.
393
394 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
395
396         * mips-tdep.c (mips_gdbarch_init): Update.
397         (mips_o32_extract_return_value): Rewrite.
398         (mips_o32_store_return_value): Rewrite.
399         (mips_o32_xfer_return_value): New function.
400         (mips_xfer_register): Tweak debug print message.  Allow for
401         buf_offset when dumping the value transfered.
402
403 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
404
405         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
406         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
407         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
408         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
409         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
410
411 2002-08-14  Michael Snyder  <msnyder@redhat.com>
412
413         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
414
415 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
416
417         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
418         register.
419         (P): New macro to define a register as a pseudo register.
420         (R, R4, R8, R16, FR32, R64, R0): Updated.
421         (struct variant): Add new fields for number of pseudo registers
422         and number of total registers.
423         (tot_num_registers): New macro replacing....
424         (num_registers): ...deleted macro.
425         (num_registers): New function.
426         (num_pseudo_registers): New function.
427         (variants): Update all variants to intialize new fields correctly.
428         Postpone initialization of number of pseudo regs and real regs.
429         (init_variants): New function.
430         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
431         registers offsets.
432
433 2002-08-19  David Carlton  <carlton@math.stanford.edu>
434
435         * valops.c (search_struct_field): Change error message to treat
436         return value of 0 from value_static_field as meaning that field is
437         optimized out.
438         (value_struct_elt_for_reference): Ditto.
439         * values.c (value_static_field): Treat an unresolved location the
440         same as a nonexistent symbol.  Fix PR gdb/635.
441         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
442         enclosed.  Fix PR gdb/574.
443         * MAINTAINERS: Add self to Write After Approval list.
444
445 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
446
447         * mips-tdep.c (mips_xfer_register): New function.
448         (mips_n32n64_extract_return_value): Rewrite.
449         (mips_gdbarch_init): For N32 and N64, set extract_return_value
450         instead of deprecated_extract_return_value.
451
452 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
453
454         * rs6000-tdep.c (TDEP): Delete macro.
455         (branch_dest): Replace use of TDEP macro with its body.
456         (rs6000_pop_frame): Ditto.
457         (rs6000_push_arguments): Ditto.
458         (rs6000_skip_trampoline_code): Ditto.
459         (rs6000_frame_saved_pc): Ditto.
460         (rs6000_frame_chain): Ditto.
461         (rs6000_register_name): Ditto.
462         (rs6000_register_byte): Ditto.
463         (rs6000_register_raw_size): Ditto.
464         (rs6000_register_virtual_type): Ditto.
465         (rs6000_register_convertible): Ditto.
466         (rs6000_convert_from_func_ptr_addr): Ditto.
467
468 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
469
470         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
471         conditionally.
472         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
473         MIPS_LINUX_JB_ELEMENT_SIZE.
474         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
475         for MAX_REGISTER_RAW_SIZE arrays.
476         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
477         MIPS_LINUX_JB_ELEMENT_SIZE.
478
479 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
480
481         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
482
483 2002-08-19  Aidan Skinner <aidan@velvet.net>
484
485         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
486         ada-valprint.c ada-tasks.c.
487         (YYFILES): Add ada-exp.y.
488         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
489         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
490         (ada-exp.tab.o): New target.
491                 
492 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
493
494         * regcache.c (regcache_xfer_part): New function.
495         (regcache_raw_read_part): New function.
496         (regcache_raw_write_part): New function.
497         (regcache_cooked_read_part): New function.
498         (regcache_cooked_write_part): New function.
499         * regcache.h (regcache_raw_read_part): Declare.
500         (regcache_raw_write_part): Declare.
501         (regcache_cooked_read_part): Declare.
502         (regcache_cooked_write_part): Declare.
503
504 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
505
506         * remote.c (remote_open_1): Add async_p.
507         (remote_async_open_1): Delete.
508         (open_remote_target): Delete.
509         (remote_open, extended_remote_open): Update calls to remote_open_1.
510         (remote_async_open, extended_remote_async_open): Call
511         remote_open_1 instead of remote_async_open_1.
512
513 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
514
515         * blockframe.c: Fix a few coding standard violations.
516
517 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
518
519         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
520         here from ...
521         * config/i386/tm-i386sco5.h: ... here.  File removed.
522         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
523
524         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
525         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
526         (TM_FILE): Set to tm-i386.h.
527         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
528         * config/i386/tm-i386v.h: Remove file.
529         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
530         instead of "i386/tm-i386v.h".
531         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
532         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
533         "i386/tm-i386v.h".
534         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
535         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
536         "i386/tm-i386.h".
537
538 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
539
540         * config/i386/nm-i386v.h: Add protection against
541         multiple-inclusion.
542         (i386_register_u_addr): Remove prototype.
543         (register_u_addr): New prototype.
544         (REGISTER_U_ADDR): Redefine accordingly.
545         * i386v-nat.c: Improve several comments.
546         (i386_register_u_addr): Change signature and rename to
547         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
548         ubase variable.
549
550 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
551
552         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
553         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
554         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
555         deprecated_extract_return_value.
556         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
557         rename mips_o32o64_push_arguments.
558         (mips_gdbarch_init): Update.
559         (mips_extract_return_value): Delete.
560         (mips_o32_extract_return_value): Clone mips_extract_return_value.
561         (mips_o64_extract_return_value): Clone mips_extract_return_value.
562         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
563         (mips_n32n64_extract_return_value): Clone
564         mips_extract_return_value.
565         (mips_store_return_value): Delete.
566         (mips_o32_store_return_value): Clone mips_store_return_value.
567         (mips_o64_store_return_value): Clone mips_store_return_value.
568         (mips_eabi_store_return_value): Clone mips_store_return_value.
569         (mips_n32n64_store_return_value): Clone mips_store_return_value.
570
571 2002-08-18  Aidan Skinner <aidan@velvet.net>
572
573         * ada-lang.c: Use gdb_string.h instead of <string.h>.
574         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
575                 
576 2002-08-18  Aidan Skinner <aidan@velvet.net>
577
578         * ada-lang.c: Run through gdb_indent.sh.
579         * ada-lang.h: Run through gdb_indent.sh.
580         * ada-tasks.c: Run through gdb_indent.sh.
581         * ada-typeprint.c: Run through gdb_indent.sh.
582         * ada-valprint.c: Run through gdb_indent.sh.
583
584 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
585
586         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
587         ABI.
588
589 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
590
591         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
592
593         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
594         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
595
596         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
597         write_register_gen instead of write_register_bytes.
598
599         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
600         i[3456]-*-osf1mk* configurations have been made obsolete.
601         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
602         i[3456]86-*-osf1mk* hosts obsolete.
603         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
604         targets obsolete.
605         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
606         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
607         config/i386/i386m3.mt, config/i386/nm-m3.h,
608         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
609         config/i386/i386mk.mh, config/i386/i386mk.mt,
610         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
611         obsolete.
612         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
613         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
614         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
615
616 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
617
618         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
619         (hppa_value_returned_from_stack): Declare.
620         (hppa_extract_return_value): Declare.
621         * config/pa/hppa.mt: New file.
622         * configure.tgt: Recognize hppa*-*-*.
623         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
624
625 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
626
627         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
628         comment.
629
630 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
631
632         * top.c (gdb_rl_operate_and_get_next): Make sure
633         operate-and-get-next functions correctly even when the history
634         list is completely filled.
635
636 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
637
638         * MAINTAINERS (Target Instruction Set Architectures): Rename
639         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
640         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
641         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
642         already listed under Host/Native.
643
644         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
645         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
646         mips*-*-*.
647
648 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
649
650         * config/ia64/ia64.mt: New file.
651         * config/alpha/alpha.mt: New file.
652         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
653         ia64-linux-gnu.  Mention that ia64-elf is broken.
654         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
655
656 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
657
658         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
659         generic_func_frame_valid instead of func_frame_valid.
660
661 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
662
663         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
664         procfs appears to be broken when debugging on multi-processor
665         machines. So enable software single stepping in order to avoid
666         using the procfs interface to do next/step operations, using
667         internal breakpoints instead.
668
669         * infrun.c (handle_inferior_event): Readjust the stop_pc by
670         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
671         make this pc address equal to the value it would have if the
672         system stepping capability was used. Also set a new flag used
673         to ensure that we don't readjust the PC one more time later.
674
675         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
676         address by DECR_PC_AFTER_BREAK when software single step is
677         in use for this architecture, as this has already been taken
678         care of in handle_inferior_event().
679
680 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
681
682         * infrun.c (handle_inferior_event): Minor reformatting, to make
683         a rather long condition expression easier to read.
684
685 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
686
687         * Makefile.in (gdbtk.o): Move to end of file.
688         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
689         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
690         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
691         (gdbtk-wrapper.o, gdbres.o): Ditto.
692
693 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
694
695         * Makefile.in (copying.o): Separate out compile rule.
696         (hpux-thread.o, procfs.o, signals.o): Ditto.
697         (v850ice.o, z8k-tdep.o): Ditto.
698         (tui-file.o): Move to TUI section.
699         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
700         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
701
702 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
703
704         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
705         skip_trampoline_code, for better namespace-proofing.   
706
707         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
708
709 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
710
711         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
712
713 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
714
715         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
716         signal, check whether we hit a breakpoint before checking for a
717         single step breakpoint. Otherwise, GDB fails to notice that a
718         breakpoint has been hit when stepping onto a breakpoint.
719
720 2002-08-16  Keith Seitz  <keiths@redhat.com>
721
722         * gdb-events.sh (clear_gdb_event_hooks): New function.
723         * gdb-events.c: Regenerate.
724         * gdb-events.h: Regenerate.
725
726 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
727
728         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
729         not_a_sw_breakpoint.
730         * breakpoint.h (bpstat_stop_status): Add parameter names.
731
732 2002-08-16  Grace Sainsbury  <graces@redhat.com>
733
734         * remote.c (remote_insert_hw_breakpoint)
735         (remote_remove_hw_breakpoint): Fix calculation of length field
736         for Z-packet.
737
738 2002-08-15  Michael Snyder  <msnyder@redhat.com>
739
740         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
741         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
742         (supply_fpregset): Ditto.
743         
744         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
745         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
746         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
747         (TARGET_READ_SP): Delete.
748         (DO_REGISTERS_INFO): Delete.
749         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
750         Delete.
751         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
752         from macros to functions.
753
754         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
755         (mips_register_convertible, mips_register_convert_to_virtual,
756         mips_register_convert_to_raw): Make static.
757         (mips_read_sp): New function.
758         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
759         (mips_do_registers_info): Make static.
760         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
761         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
762         (mips_register_convert_from_type, mips_register_convert_to_type):
763         New functions.
764         (mips_gdbarch_init): Set up function_start_offset, 
765         register_virtual_size, pc_in_sigtramp.
766
767 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
768
769         * infcmd.c (vector_info): New function.
770         (_initialize_infcmd): Add command "info vector".
771         (print_vector_info): New function.
772
773         * gdbarch.sh (PRINT_VECTOR_INFO): New method
774         * gdbarch.h, gdbarch.c: Regenerate.
775
776 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
777
778         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
779         ``print_all''.  Only print vector registers when ``print_all''.
780
781 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
782
783         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
784         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
785
786         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
787         Add `args' parameter.
788         * gdbarch.h, gdbarch.c: Regenerate.
789         
790         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
791         
792         * infcmd.c (float_info): Call print_float_info.
793         (print_float_info): New function.  By default, print the
794         floating-point registers.
795
796         * arch-utils.h (default_print_float_info): Delete declaration.
797         * arch-utils.c (default_print_float_info): Delete function.
798         
799 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
800
801         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
802         out define.
803
804         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
805         FRAME.
806
807         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
808         * configure.host: Make i[3456]86-*-aix host obsolete.
809         * configure.tgt: Make i[3456]86-*-aix target obsolete.
810         * config/i386/i386aix.mh, config/i386/i386aix.mt,
811         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
812         config/i386/xm-i386aix.h: Make files obsolete.
813         * i386aix-nat.c: Make file obsolete.
814         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
815         (i386aix-nat.o): Make target obsolete.
816
817         * config/i386/nm-gnu.h: Removed.
818         * config/i386/nm-i386gnu.h: New file.
819         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
820         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
821         Moved here from ...
822         * config/i386/tm-i386gnu.h: ... here.  Removed.
823         * config/i386/xm-i386gnu.h: Removed.
824         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
825         (NAT_FILE): Set to nm-i386gnu.h.
826         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
827         * i386-tdep.c: New file.
828         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
829         (i386gnu-tdep.o): Specify dependencies.
830
831 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
832
833         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
834         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
835         Adjust a few comments to reflect reality a bit closer.
836         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
837         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
838         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
839         target_insert_watchpoint, target_remove_watchpoint):
840         Move defines to ...
841         * config/i386/nm-i386sco5.h: ... here.
842         (kernel_u_size): Add prototype.  Improve a few comments and add
843         protection against multiple inclusion.
844         
845         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
846         out define.
847
848         * uw-thread.c (SP_ARG0): Define if not already defined.
849         * config/i386/tm-i386.h (SO_ARG0): Remove define.
850
851         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
852
853         * config/i386/tm-i386.h: Don't include "regcache.h".
854
855         * i387-tdep.h (i387_print_float_info): New prototype.
856         * i387-tdep.c (print_i387_value, print_i387_ext,
857         print_i387_status_word, print_i387_control_word): Add `struct
858         ui_file *' argument and use it for output.
859         (i387_print_float_info): Renamed from i387_float_info.  Add
860         `struct gdbarch *' and `struct ui_file *' arguments and use the
861         latter for output.
862         * i386-tdep.c: Include "i387-tdep.h".
863         (i386_gdbarch_init): Set print_float_info.
864         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
865         (FLOAT_INFO): Remove define.
866
867 2002-08-13  Michael Snyder  <msnyder@redhat.com>
868
869         * mips-tdep.c (mips_push_arguments): Rename to
870         mips_eabi_push_arguments, and tune for EABI.
871         (MIPS_REGS_HAVE_HOME_P): Delete.
872         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
873         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
874         Delete references to mips_regs_have_home_p.
875
876 2002-08-14  Keith Seitz  <keiths@redhat.com>
877
878         * Makefile.in (install-gdbtk): Create insight plugin directory.
879         Install plugins.tcl file.
880
881 2002-08-14  Keith Seitz  <keiths@redhat.com>
882
883         * configure.in: Move SUBDIRS to near top of the file so that
884         --enable options may add things to it.
885         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
886         * configure: Regenerate.
887
888 2002-08-13  Michael Snyder  <msnyder@redhat.com>
889
890         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
891         cloned from mips_push_arguments, tuned for o32/o64 ABI.
892         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
893
894 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
895
896         * vax-tdep.c (vax_get_saved_register): Delete function.
897         (vax_gdbarch_init): Update.
898         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
899         (ns32k_gdbarch_init): Update.
900         * alpha-tdep.c (alpha_get_saved_register): Delete function.
901         (alpha_gdbarch_init): Update.
902
903 2002-08-13  Andrew Cagney  <cagney@redhat.com>
904
905         * regcache.c (init_regcache_descr): Overallocate the
906         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
907         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
908         nr_raw_registers.
909         (set_register_cached): Add range checking assertions.  Use
910         current_regcache.
911
912 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
913
914         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
915         numbers for MMX registers.
916
917 2002-08-13  Andrew Cagney  <cagney@redhat.com>
918
919         * i386-tdep.c (i386_gdbarch_init): Use
920         generic_unwind_get_saved_register.
921
922 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
923
924         * procfs.c (procfs_can_use_hw_breakpoint): New function.
925         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
926         target vector.
927         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
928         Delete.  Add comment regarding this now-deleted target method.
929
930 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
931
932         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
933         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
934         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
935         real PC and the page number (if it's within the memory bank window).
936         (m68hc11_pseudo_register_write): Likewise when saving.
937         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
938         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
939         (m68hc11_register_raw_size): And use 32-bit for it.
940         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
941         16K memory bank is used by the prog; also use the virtual pc.
942
943 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
944
945         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
946         (m68hc11_gdbarch_init): Install it in gdbarch.
947         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
948         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
949         (MSYMBOL_SIZE): New for documentation.
950         (insn_return_kind): Enum to specify how a function returns.
951         (frame_extra_info): Cleanup and record the return mode.
952         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
953         register in address computation.
954         (m68hc11_get_return_insn): New to obtain the return instruction used
955         by the function.
956         (m68hc11_frame_init_saved_regs): Take into account the return
957         instruction used by the function for far and interrupt functions.
958         (m68hc11_init_extra_frame_info): Take into account page register.
959         (m68hc11_frame_args_address): Adjust according to the return mode.
960         (show_regs): Print page register only when it's used.
961
962 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
963
964         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
965         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
966         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
967         registers.
968         (m68hc11_register_raw_size): Likewise.
969
970 2002-08-13  Andrew Cagney  <cagney@redhat.com>
971
972         * i386-tdep.c (i386_register_name): Handle mmx registers.
973         (mmx_regnum_p): New function.
974         (i386_mmx_names): New array.
975         (mmx_num_regs): New variable.
976         (i386_pseudo_register_read): New function.
977         (i386_pseudo_register_write): New function.
978         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
979
980         * regcache.c (regcache_raw_read_unsigned): New function.
981         (regcache_raw_read_signed): New function.
982         * regcache.h (regcache_raw_read_unsigned): Declare.
983         (regcache_raw_read_signed): Declare.
984
985 2002-08-13  Andrew Cagney  <cagney@redhat.com>
986
987         * regcache.c (regcache_raw_read_as_address): Delete function.
988         (regcache_cooked_read_signed): New function.
989         (regcache_cooked_read_unsigned): New function.
990         * regcache.h (regcache_cooked_read_signed): Declare.
991         (regcache_cooked_read_unsigned): Declare.
992         (regcache_raw_read_as_address): Delete declaration.
993
994         * blockframe.c (generic_read_register_dummy): Use
995         regcache_cooked_read_unsigned.
996         * i386-tdep.c (i386_extract_struct_value_address): Use
997         regcache_cooked_read_unsigned.
998
999 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1000
1001         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1002         double sizes according to ELF ABI flags.
1003         (gdbarch_tdep): Record elf_flags.
1004
1005 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
1006
1007         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1008         (m6812_prolog): They can appear in 68HC12 function prologue.
1009         (m68hc11_frame_chain): Cleanup.
1010
1011 2002-08-12  Andrew Cagney  <cagney@redhat.com>
1012
1013         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1014         declarations.
1015         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1016         (i386_linux_register_raw_size): Delete function.
1017         (i386_linux_init_abi): Update.
1018         * i386-tdep.c (i386_register_raw_size): Delete function.
1019         (i386_register_byte): Delete function.
1020         (i386_gdbarch_init): Update.
1021         (i386_register_size): Delete array.
1022         (i386_register_offset): Delete array.
1023
1024         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1025         (REGISTER_RAW_SIZE): Delete macro.
1026         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1027         (REGISTER_BYTE): Delete macro.
1028
1029 2002-08-11  Aidan Skinner <aidan@velvet.net>
1030
1031         * ada-lang.c (ada_lookup_partial_symbol)
1032         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1033         prototype names so that grep ^func works properly.
1034
1035         * ada-lang.c (ada_array_element_type)
1036         (ada_lookup_partial_symbol): Fix typos in parameter list.
1037
1038         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1039         Fix prototype names so that grep ^func works properly.
1040         
1041 2002-08-10  Andrew Cagney  <cagney@redhat.com>
1042             Elena Zannoni  <ezannoni@redhat.com>
1043             Martin M. Hunt  <hunt@redhat.com>
1044
1045         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1046         (build_builtin_type_vec128i): Set the vector bit.
1047         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1048         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1049         (build_builtin_type_vec64): New function.
1050         (build_builtin_type_vec64i): New function.
1051         (build_gdbtypes): Initialize builtin_type_vec64 and
1052         builtin_type_vec64i.
1053
1054 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1055
1056         * regcache.c (regcache_dump): Compare the register offset
1057         with REGISTER_BYTE.
1058         * arch-utils.c (generic_register_byte): New function.
1059         * arch-utils.h (generic_register_byte): Declare.
1060         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1061         * gdbarch.h, gdbarch.c: Regenerate.
1062
1063 2002-08-09  Andrew Cagney  <cagney@redhat.com>
1064
1065         * regcache.c: Include "gdbcmd.h"
1066         (_initialize_regcache): Add commands "maintenance print
1067         registers", "maintenance print raw-registers" and "maintenance
1068         print cooked-registers".
1069         (enum regcache_dump_what): Define.
1070         (dump_endian_bytes): New function.
1071         (regcache_dump): New function.
1072         (regcache_print): New function.
1073         (maintenance_print_registers): New function.
1074         (maintenance_print_raw_registers): New function.
1075         (maintenance_print_cooked_registers): New function.
1076         * Makefile.in (regcache.o): Update dependencies.
1077
1078 2002-08-09  Michael Snyder  <msnyder@redhat.com>
1079
1080         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1081         (mips_push_arguments): Correct some comments.  Use paddr_nz
1082         for printing addresses in debug output.  Replace static
1083         allocation using MAX_REGISTER_RAW_SIZE with alloca.
1084         (mips_n32n64_push_arguments): New function, cloned from
1085         mips_push_arguments and tuned for the n32/n64 ABI.
1086         (mips_push_register): Buffer needs dynamic allocation.
1087         (mips_print_register): Ditto.
1088         (do_gp_register_row): Ditto.
1089         (mips_store_return_value): Ditto.
1090         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1091
1092 2002-08-09  Don Howard  <dhoward@redhat.com>
1093
1094         * memattr.c (mem_info_command): Print special case of upper bound
1095         as max CORE_ADDR + 1.
1096
1097 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1098
1099         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
1100         returns structs by ref if they're too big to fit in two registers.
1101
1102 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1103
1104         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1105         saved regs value.
1106         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1107         mips_find_saved_regs().
1108         (mips_pop_frame): Likewise.
1109
1110 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
1111
1112         * blockframe.c (frame_saved_regs_register_unwind): Revise
1113         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1114         frames are in use.
1115
1116 2002-08-09  Grace Sainsbury  <graces@redhat.com>
1117         
1118         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1119         T-packets; the 'a' is not taken as a register number.
1120         (remote_check_watch_resources, remote_stopped_by_watchpoint)
1121         (remote_stopped_data_address): New functions; add to target
1122         vector.
1123         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1124         prototypes to match other implementations of this
1125         function. replace integer argument with pointer -- the length
1126         field in the Z-packet is the length of what is pointed to or 1 if
1127         pointer is null. Add to target vector.
1128         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1129         target vector.
1130
1131         From Mark Salter:
1132         * remote.c (remote_wait): Add support to extract optional
1133         watchpoint information from T-packet. Ignore unrecognized
1134         optional info in T-packet.
1135         (remote_async_wait): Ditto.
1136
1137 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
1138
1139         * cli/cli-dump.c: Change fopen modes to use binary open modes
1140         as defined in include/fopen-bin.h throughout.
1141
1142 2002-08-08  Michael Snyder  <msnyder@redhat.com>
1143
1144         * mips-tdep.c: Minor whitespace and indentation clean-ups.
1145
1146 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1147
1148         * doublest.c (store_floating): Avoid floatformat_from_doublest()
1149         assertion failure by returning early after a warning.
1150
1151 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
1152
1153         * mips-tdep.c (mips_find_saved_regs): Make static.
1154         (mips_frame_init_saved_regs): New function.
1155         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1156         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1157         (mips_find_saved_regs): Delete declaration.
1158
1159 2002-08-08  Grace Sainsbury  <graces@redhat.com>
1160
1161         * remote.c (remote_wait, remote_async_wait): Change
1162         thread_num from int to ULONGEST.
1163         (unpack_varlen_hex): Change result parameter from
1164         int * to ULONGEST *.
1165
1166 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
1167
1168         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1169         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1170         powerpc*-*-*.
1171         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1172
1173 2002-08-08  Andrew Cagney  <cagney@redhat.com>
1174
1175         * gcore.c (override_derive_stack_segment): Delete variable.
1176         (preempt_derive_stack_segment): Delete function.
1177         (derive_stack_segment): Delete function.
1178         (default_derive_stack_segment): Renamed to derive_stack_segment.
1179         (override_derive_heap_segment): Delete variable.
1180         (preempt_derive_heap_segment): Delete function.
1181         (derive_heap_segment): Delete function.
1182         (default_derive_heap_segment): Rename to derive_heap_segment.
1183
1184 2002-08-06  Michael Snyder  <msnyder@redhat.com>
1185
1186         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1187         * mips-tdep.c (mips_EABI_use_struct_convention, 
1188         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1189         New functions.  (mips_use_struct_convention): Delete.
1190         (mips_gdbarch_init): set use_gdbarch_convention.
1191
1192 2002-08-06  Michael Snyder  <msnyder@redhat.com>
1193
1194         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1195         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
1196         mips_o32_reg_struct_has_addr): New functions.
1197         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1198
1199 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
1200
1201         * regcache.c (pseudo_register): Delete function.
1202         (fetch_register): Delete function.
1203         (store_register): Delete function.
1204         (regcache_raw_read, legacy_read_register_gen): Use
1205         target_fetch_registers instead of fetch_register.
1206         (legacy_write_register_gen, regcache_raw_write): Use
1207         target_store_register instead of store_register.
1208         (write_register_bytes): Ditto.
1209
1210         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1211         (STORE_PSEUDO_REGISTER): Delete.
1212         * gdbarch.h, gdbarch.c: Regenerate.
1213
1214 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
1215
1216         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1217         write dump file binary.
1218
1219 2002-08-05  Michael Snyder  <msnyder@redhat.com>
1220
1221         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
1222         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
1223         (mips_gdbarch_init): Set N32 target to be mips64.
1224
1225 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
1226
1227         * frame.c (find_saved_register): Break out of loop once saved
1228         register address is found.  Don't mention sparc in loop comment
1229         anymore.
1230
1231 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
1232
1233         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1234         mips_default_saved_regsize to 8.
1235
1236 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
1237
1238         * gcore.c: Do not include <sys/procfs.h>.
1239         * Makefile.in (gcore.o): Update dependencies.
1240
1241 2002-08-06  Andrew Cagney  <cagney@redhat.com>
1242
1243         * configure.tgt: Make arc-*-* obsolete.
1244         * NEWS: Mention that arc-*-* has been identifed as obsolete.
1245         * MAINTAINERS: Make arc-elf obsolete.
1246         * arc-tdep.c: Make file obsolete.
1247         * config/arc/arc.mt: Ditto.
1248         * config/arc/tm-arc.h: Ditto.
1249
1250 2002-08-05  Theodore A. Roth  <troth@verinet.com>
1251
1252         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1253
1254 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
1255
1256         * mcore-tdep.c (mcore_gdbarch_init): Use
1257         generic_unwind_get_saved_register instead of
1258         generic_get_saved_register.
1259         * v850-tdep.c (v850_gdbarch_init): Ditto.
1260         * frv-tdep.c (frv_gdbarch_init): Ditto.
1261         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1262         * s390-tdep.c (s390_gdbarch_init): Ditto.
1263         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1264         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1265         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1266
1267 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
1268
1269         * objfiles.h: Add missing #include "symfile.h"
1270
1271         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1272
1273 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
1274
1275         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1276         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1277         of FIELD_BITSIZE.
1278
1279 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
1280
1281         * NEWS: Cleanup and nitpick.
1282
1283 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
1284
1285         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
1286
1287 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
1288
1289         * Makefile.in (gdbtk-bp.o): Update dependencies.
1290         (gdbtk-register.o): Ditto.
1291         (gdbtk-varobj.o): Ditto.
1292
1293 2002-08-03  Andrew Cagney  <cagney@redhat.com>
1294
1295         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1296         m68hc11_fetch_pseudo_register.
1297         (m68hc11_pseudo_register_write): Replace
1298         m68hc11_store_pseudo_register.
1299         (m68hc11_gdbarch_init): Update.
1300
1301 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
1302
1303         * gdbarch.sh: Include "gdb_string.h".
1304         * gdbarch.c: Regenerate.
1305
1306         * regcache.c: Include "gdb_string.h".
1307         * ax-general.c: Ditto.
1308         * varobj.c: Ditto.
1309         * std-regs.c: Ditto.
1310         * fbsd-proc.c: Ditto.
1311         * thread.c: Ditto.
1312
1313         * Makefile.in (regcache.o): Update dependencies.
1314         (thread.o, gdbarch.o): Ditto.
1315         (ax-general.o, gdbarch.o): Ditto.
1316         (varobj.o, std-regs.o): Ditto.
1317         (fbsd-proc.o): Specify dependencies.
1318
1319 2002-08-02  Andrew Cagney  <cagney@redhat.com>
1320
1321         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1322         regnum.
1323         (regcache_cooked_write): Ditto.
1324
1325 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
1326
1327         * regcache.c (regcache_cooked_read): New function.
1328         (regcache_cooked_write): New function.
1329         (read_register_gen): Rewrite using regcache_cooked_read.
1330         (write_register_gen): Rewrite using regcache_cooked_write.
1331
1332         * regcache.h (regcache_cooked_read, regcache_cooked_write):
1333         Declare.
1334
1335 2002-08-02  Andrew Cagney  <cagney@redhat.com>
1336
1337         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1338         Replace the architecture methods register_read and register_write.
1339         * gdbarch.h, gdbarch.c: Regenerate.
1340         * regcache.c (init_regcache_descr): Update.
1341         (read_register_gen): Update.
1342         (write_register_gen): Update.
1343         (supply_register): Update comment.
1344
1345         * sh-tdep.c (sh_gdbarch_init): Update.
1346         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1347         `regcache' and `gdbarch' parameters.  Make `buffer' a void
1348         pointer.  Update code.
1349         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1350         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
1351         void pointer.  Update code.
1352         (sh64_register_write): Delete.
1353         (sh4_register_read): Delete.
1354         (sh64_register_read): Delete.
1355         (sh4_register_write): Delete.
1356         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1357         void pointer, `to' parameter a void pointer.
1358         (sh_sh64_register_convert_to_raw): Ditto.
1359
1360 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1361
1362         * mips-tdep.c (mips_register_virtual_type): Use architecture
1363         invariant return values.
1364
1365 2002-08-01  Andrew Cagney  <cagney@redhat.com>
1366
1367         * linux-proc.c: Include "gdb_string.h".
1368         * Makefile.in (linux-proc.o): Update dependency list.
1369
1370 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1371
1372         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
1373         comment.
1374
1375 2002-08-01  Grace Sainsbury  <graces@redhat.com>
1376
1377         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1378         to_insert_watchpoint, to_remove_watchpoint,
1379         to_stopped_by_watchpoint, to_stopped_data_address,
1380         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1381         target vecctor. Define their corresponding macros so they call
1382         them.
1383         
1384         * target.c: Add default and debug versions of for
1385         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1386         to_insert_watchpoint, to_remove_watchpoint,
1387         to_stopped_by_watchpoint, to_stopped_data_address,
1388         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1389
1390 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
1391
1392         * mips-tdep.c (mips_register_virtual_type): New function.
1393         (mips_gdbarch_init): Register mips_register_virtual_type()
1394         with gdbarch machinery.
1395         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1396         this file instead of tm-bigmips.h.
1397         (MIPS_REGSIZE): Delete this macro.
1398         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
1399         multiarch version in mips-tdep.c will be found.
1400
1401 2002-08-01  Andrew Cagney  <cagney@redhat.com>
1402
1403         * NEWS: Menion that CHILL has been made obsolete.
1404
1405         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1406         * stabsread.c (read_range_type): Ditto.
1407         * gdbtypes.h: Ditto.
1408         * language.c (binop_type_check): Ditto.
1409         (binop_result_type): Ditto.
1410         (integral_type): Ditto.
1411         (character_type): Ditto.
1412         (string_type): Ditto.
1413         (boolean_type): Ditto.
1414         (structured_type): Ditto.
1415         (lang_bool_type): Ditto.
1416         (binop_type_check): Ditto.
1417         * language.h (_LANG_chill): Ditto.
1418         * dwarfread.c (set_cu_language): Ditto.
1419         * dwarfread.c (CHILL_PRODUCER): Ditto.
1420         * dwarfread.c (handle_producer): Ditto.
1421         * expression.h (enum exp_opcode): Ditto.
1422         * eval.c: Ditto for comments.
1423         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1424         * expprint.c (print_subexp): Ditto.
1425         (print_subexp): Ditto.
1426         * valops.c (value_cast): Ditto.
1427         (search_struct_field): Ditto.
1428         * value.h (COERCE_VARYING_ARRAY): Ditto.
1429         * symfile.c (init_filename_language_table): Ditto.
1430         (add_psymbol_with_dem_name_to_list): Ditto.
1431         * valarith.c (value_binop): Ditto.
1432         (value_neg): Ditto.
1433         * valops.c (value_slice): Ditto.
1434         * symtab.h (union language_specific): Ditto.
1435         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1436         (SYMBOL_DEMANGLED_NAME): Ditto.
1437         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1438         * defs.h (enum language): Ditto.
1439         * symtab.c (got_symtab): Ditto.
1440         * utils.c (fprintf_symbol_filtered): Ditto.
1441
1442         * ch-typeprint.c: Make file obsolete.
1443         * ch-valprint.c: Make file obsolete.
1444         * ch-lang.h: Make file obsolete.
1445         * ch-exp.c: Make file obsolete.
1446         * ch-lang.c: Make file obsolete.
1447
1448         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1449         CHILL_LIB.
1450         (TARGET_FLAGS_TO_PASS): Ditto.
1451         (CHILLFLAGS): Obsolete.
1452         (CHILL): Obsolete.
1453         (CHILL_FOR_TARGET): Obsolete.
1454         (CHILL_LIB): Obsolete.
1455         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1456         ch-valprint.c.
1457         (HFILES_NO_SRCDIR): Remove ch-lang.h.
1458         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1459         ch-lang.o.
1460         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1461         targets.
1462
1463 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
1464
1465         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1466         This does not change anything at the moment, but will be helpful
1467         later when full Ada support is integrated.
1468
1469 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1470
1471         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1472         help message.
1473
1474 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1475
1476         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1477         and save it in a local variable.  Use variable in later test.
1478
1479 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1480
1481         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1482         test.  (Thanks to Daniel Jacobowitz.)
1483         
1484 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1485
1486         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1487         (mips_abi_strings): Add "n64".
1488         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
1489
1490 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1491
1492         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1493         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1494
1495 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
1496
1497         * utils.c (host_pointer_to_address, address_to_host_pointer):
1498         Use gdb_assert() instead of explicit call to internal_error().
1499
1500 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
1501
1502         * Makefile.in (rs6000-nat.o): Update dependencies.
1503
1504         From Nicholas Duffek:
1505         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1506         (aix-thread.o): New rule.
1507         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1508         * config/powerpc/aix432.mh: New file.
1509
1510 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1511
1512         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1513         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1514         (fetch_core_registers, ppc_linux_supply_gregset)
1515         (ppc_linux_supply_fpregset): New functions.
1516         (ppc_linux_regset_core_fns): New.
1517         (_initialize_ppc_linux_tdep): Call add_core_fns.
1518         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1519         and ppc_linux_supply_gregset.
1520         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1521         (supply_fpregset): Call ppc_linux_supply_fpregset.
1522         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1523         corelow.o.
1524         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1525
1526 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
1527
1528         * symtab.c (lookup_symbol): Demangle before lowercasing.
1529
1530 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
1531
1532         * symtab.h: Replace #include "gdb_obstack.h" with opaque
1533         declaration.
1534         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1535         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1536         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1537         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1538         "gdb_string.h".
1539         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1540         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1541         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1542         (avr-tdep.o, mon960-rom.o): Ditto.
1543         (aout_stabs_gnu_h): Define.
1544         (symtab_h): Remove $(gdb_obstack_h).
1545
1546 2002-07-30  Jim Blandy  <jimb@redhat.com>
1547
1548         Patch from David Carlton <carlton@math.stanford.edu>:
1549         * gdbinit.in: Move the `dir' commands that add GDB's own source
1550         directory to the search path to the end, so that the `gdb' source
1551         directory will be searched first.
1552
1553 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1554
1555         * gdb_obstack.h: New file.
1556         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1557         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1558         * objfiles.h: Include "gdb_obstack.h".
1559         * Makefile.in (gdb_obstack_h): Define.
1560         (symtab_h): Add $(gdb_obstack_h).
1561         (objfiles_h): Add $(gdb_obstack_h).
1562         
1563         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1564         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1565         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1566         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1567         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1568         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1569         * symfile.c, coffread.c, c-typeprint.c: Ditto.
1570         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1571
1572         * Makefile.in (bcache.o): Update dependencies.
1573         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1574         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1575         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1576         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1577         (stabsread.o, symfile.o, symmisc.o): Ditto.
1578         (symtab.o, typeprint.o, macroexp.o): Ditto.
1579         (macrotab.o, mdebugread.o): Ditto.
1580         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1581         (coff_ecoff_h, aout_aout64_h): Define.
1582         (aout_stabs_gnu_h, libaout_h): Define.
1583
1584 2002-07-29  Andrew Cagney  <cagney@redhat.com>
1585
1586         * regcache.c (struct regcache_descr): Rename nr_registers to
1587         nr_cooked_registers.  Revise comments describing the structure
1588         member fields.
1589         (init_regcache_descr): Update.
1590         (init_legacy_regcache_descr): Update.
1591         (read_register_gen, write_register_gen): When a cooked register in
1592         the raw register range, directly access the value from the raw
1593         register cache.
1594
1595 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
1596
1597         * z8k-tdep.c: Do not include "obstack.h".
1598         * h8300-tdep.c, h8500-tdep.c: Ditto.
1599         * m68hc11-tdep.c, sh-tdep.c: Ditto.
1600         * valprint.c, v850-tdep.c: Ditto.
1601         * d10v-tdep.c, mn10300-tdep.c: Ditto.
1602         * mn10200-tdep.c: Ditto.
1603
1604         * Makefile.in (z8k-tdep.o): Update dependencies.
1605         (m68hc11-tdep.o, valprint.o): Ditto.
1606         (v850-tdep.o, d10v-tdep.o): Ditto.
1607         (mn10300-tdep.o, sparc-tdep.o): Ditto.
1608         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1609         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1610         (sh_opc_h, gdb_sim_sh_h): Define.
1611         (elf_sh_h, elf_bfd_h): Define.
1612         (opcode_m68hc11_h): Define.
1613         (OPCODES_SRC, OPCODES_DIR): define.
1614         (OPCODES): Use $(OPCODES_DIR).
1615         (gdb_sim_d10v_h): Rename sim_d10v_h.
1616         (gdb_sim_arm_h): Rename sim_arm_h.
1617
1618 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1619
1620         * utils.c (host_pointer_to_address, address_to_host_pointer):
1621         Change internal_error() message to indicate function responsible
1622         for the error.
1623
1624 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1625
1626         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1627         calls to local_hex_string_custom().
1628
1629 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1630
1631         * irix5-nat.c: Move IRIX shared library support from here...
1632         * solib-irix.c: ...to here.  Revised substantially to work with
1633         generic solib framework.
1634
1635         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1636         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1637         * mips-irix-tdep.c: New file.
1638
1639         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1640         (mips-irix-tdep.o, solib-irix.o): New rules.
1641         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1642         solib-irix.o.
1643         * config/mips/irix6.mt (TDEPFILES): Likewise.
1644         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1645
1646 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1647
1648         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1649         disabled (via ``#if 0'') includes.
1650
1651 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1652
1653         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1654         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1655         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1656         Add support for the fpscr register.
1657         * rs6000-nat.c (regmap, fetch_inferior_registers)
1658         (store_inferior_registers, fetch_core_registers): Likewise.
1659
1660 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
1661
1662         * rs6000-nat.c (language.h): Include.
1663         (special_regs): Delete this array.
1664         (regmap): New function.
1665         (fetch_register, store_register):  Use regmap() to map gdb
1666         register numbers to ptrace register numbers.  Also, use
1667         outputs from regmap() to make decisions regarding type of
1668         ptrace() call to make.  In particular, don't compare against
1669         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1670         (fetch_inferior_registers, store_inferior_registers): Where
1671         possible, obtain register numbers from tdep struct.  Don't
1672         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1673         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1674         (LAST_UISA_SP_REGNUM): Delete.
1675         
1676 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
1677
1678         * rs6000-nat.c (ppc-tdep.h): Include.
1679         (fetch_registers, store_register, fetch_core_registers): Don't
1680         access registers[] directly.  Instead, use supply_register() or
1681         regcache_collect() as appropriate.
1682         (find_toc_address): Format hex address with local_hex_string().
1683
1684 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
1685
1686         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1687         bfd/elf32-frv.c.
1688
1689 2002-07-24  Tom Tromey  <tromey@redhat.com>
1690
1691         * jv-exp.y: Marked all strings with _().
1692         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1693         internal_error.
1694         (MethodInvocation, CastExpression, parse_number, yyerror,
1695         java_type_from_name, push_expression_name, yylex): Typo fixes.
1696
1697 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
1698
1699         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1700         (tee_file_flush, tee_file_write, tee_file_fputs)
1701         (tee_file_isatty): New.
1702         * ui-file.h (tee_file_new): Add prototype.
1703
1704 2002-07-24  Aidan Skinner <aidan@velvet.net>
1705
1706         * ada-lang.c: Change k&r style function definitions to prototyped
1707         form.
1708         * ada-typeprint.c: Change k&r style function definitions to prototyped
1709         form.
1710         * ada-valprint.c: Change k&r style function definitions to prototyped
1711         form.
1712         
1713 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1714
1715         * README: Remove reference to remote-bug.
1716         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1717         remote-bug.c.
1718         (m88k-nat.o): Delete rule.
1719         (m88k-tdep.o): Delete rule.
1720         (remote-bug.o): Delete rule.
1721         * MAINTAINERS: Mark as obsolete.
1722         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1723         * m88k-tdep.c: Make file obsolete.
1724         * config/m88k/m88k.mh: Ditto.
1725         * config/m88k/delta88v4.mh: Ditto.
1726         * config/m88k/delta88v4.mt: Ditto.
1727         * config/m88k/delta88.mt: Ditto.
1728         * config/m88k/delta88.mh: Ditto.
1729         * remote-bug.c: Ditto.
1730         * config/m88k/tm-delta88.h: Ditto.
1731         * config/m88k/nm-delta88v4.h: Ditto.
1732         * config/m88k/xm-delta88.h: Ditto.
1733         * config/m88k/xm-dgux.h: Ditto.
1734         * config/m88k/tm-m88k.h: Ditto.
1735         * config/m88k/nm-m88k.h: Ditto.
1736         * config/m88k/tm-delta88v4.h: Ditto.
1737         * m88k-nat.c: Ditto.
1738         * cxux-nat.c: Ditto.
1739         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1740         and m88*-*-* obsolete.
1741         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1742         m88*-*-* obsolete.
1743
1744 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1745
1746         * findvar.c (extract_unsigned_integer): Make `addr' parameter
1747         constant.  Same for local pointer variables.
1748         (extract_signed_integer): Ditto.
1749         * defs.h (extract_unsigned_integer): Update.
1750         (extract_signed_integer): Update.
1751
1752 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1753
1754         * regcache.c (regcache_raw_write): Change buf parameter to a
1755         constant void pointer.
1756         (regcache_raw_read): Change buf parameter to a void pointer.
1757         (legacy_write_register_gen): Change myaddr parameter a constant
1758         void pointer.
1759         (supply_register): Change val parameter to a const void pointer.
1760         * regcache.h (regcache_raw_write): Update declaration.
1761         (regcache_raw_read): Update declaration.
1762         (supply_register): Update declaration.
1763
1764 2002-07-24  Tom Tromey  <tromey@redhat.com>
1765
1766         * defs.h (gdb_readline_wrapper): Declare.
1767         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1768         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1769         * top.c (gdb_readline_wrapper): New function.
1770         (command_line_input): Use it.
1771
1772 2002-07-24  Andrew Cagney  <cagney@redhat.com>
1773
1774         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1775         regcache_read and regcache_write.
1776         (regcache_raw_read_as_address): Replace regcache_read_as_address.
1777         * regcache.c: Update.
1778         * sh-tdep.c (sh64_push_arguments): Update comment.
1779         (sh_pseudo_register_read): Update.
1780         (sh_pseudo_register_write): Update.
1781         (sh4_register_read): Update.
1782         (sh4_register_write): Update.
1783         (sh64_pseudo_register_read): Update.
1784         (sh64_pseudo_register_write): Update.
1785         (sh64_register_read): Update.
1786         (sh64_register_write): Update.
1787         * i386-tdep.c (i386_extract_return_value): Update.
1788         (i386_extract_struct_value_address): Update.
1789         (i386_extract_return_value): Update.
1790         * blockframe.c (generic_read_register_dummy): Update.
1791         (generic_call_dummy_register_unwind): Update
1792         * infrun.c (write_inferior_status_register): Update.
1793
1794 2002-07-23  Jim Blandy  <jimb@redhat.com>
1795
1796         * parser-defs.h (expression_context_pc): Make this extern.
1797         (Thanks to Michael Snyder.)
1798
1799 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
1800
1801         GDB 5.2.1 released from 5.2 branch.
1802         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1803         * README: Update to mention 5.2.1.
1804
1805 2002-07-23  Mark Salter  <msalter@redhat.com>
1806
1807         * remote.c (remote_read_bytes): Fix check for error.
1808
1809 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1810
1811         * aix-thread.c (language.h): Include.
1812         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1813         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1814         Print newlines at end of debug messages.
1815         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1816         (pdc_write_data): Use local_hex_string() instead of %llx formats.
1817
1818 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1819
1820         * aix-thread.c (ppc-tdep.h): Include.
1821         (special_register_p): New function.
1822         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1823         (store_regs_user_thread): Use register number information from
1824         gdbarch_tdep struct instead of hardcoded offsets relative to
1825         FIRST_UISA_SP_REGNUM.
1826         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
1827         special_register_p() instead of using FPLAST_REGNUM and
1828         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1829         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
1830         will be MQ's register number.
1831
1832 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1833
1834         * aix-thread.c (ops): Rename to aix_thread_ops.
1835         (base_ops): Rename to base_target.
1836         (ops_attach): Rename to aix_thread_attach.
1837         (ops_detach): Rename to aix_thread_detach.
1838         (ops_resume): Rename to aix_thread_detach.
1839         (ops_wait):   Rename to aix_thread_wait.
1840         (ops_kill):   Rename to aix_thread_kill.
1841         (init_ops):   Rename to init_aix_thread_ops.
1842         (ops_fetch_register): Rename to aix_thread_fetch_register.
1843         (ops_store_register): Rename to aix_thread_store_register.
1844         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1845         (ops_thread_alive):   Rename to aix_thread_thread_alive.
1846         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1847         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
1848         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1849         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
1850         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1851         (store_regs_lib):  Rename to store_regs_user_thread.
1852         (store_regs_kern): Rename to store_regs_kernel_thread.
1853
1854 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1855
1856         * aix-thread.c (ops_prepare_to_store): Eliminate.
1857         (init_ops): Don't initialize ops.prepare_to_store.
1858         (store_regs_kern): Pre-fetch register buffers from child, 
1859         because some registers may not be in the cache.  Copy
1860         regs from register cache only if they are cached.
1861         (store_regs_lib): Copy regs from register cache only
1862         if they are cached.
1863         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1864         fill_gprs64): Ditto.
1865
1866 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
1867
1868         * aix-thread.c (gdb_assert.h): Include.
1869         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1870         register sizes (from register cache) match size of buffer holding
1871         register data.
1872         (fill_sprs32): Change parameter types to match those in the ptrace()
1873         buffer.
1874         (store_regs_lib): Likewise, but for 32-bit temporary variables.
1875         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1876
1877 2002-07-22  Michael Snyder  <msnyder@redhat.com>
1878
1879         * aix-thread.c (supply_sprs64): Cosmetic change.
1880         (supply_sprs32): Cosmetic change.
1881         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1882         (fill_sprs64): Use regcache_collect instead of read_register.
1883         (store_regs_lib): Use regcache_collect instead of 
1884         read_register.  Use fill_sprs32 instead of fill_sprs64,
1885         if debugging a 32-bit architecture.
1886         (store_regs_kern): Use fill_gprs64 etc. to pull the values
1887         out of the register cache, instead of passing a pointer into
1888         the register cache directly to ptrace.  Use regcache_collect
1889         insteaad of read_register.
1890         (ops_prepare_to_store): Use target_read_registers instead
1891         of read_register_bytes.
1892
1893 2002-07-20  Aidan Skinner <aidan@velvet.net>
1894
1895         * MAINTAINERS: Add self under write after approval. 
1896                 
1897 2002-07-20  Aidan Skinner <aidan@velvet.net>
1898
1899         * ada-tasks.c: Change k&r style function definitions to prototyped
1900         form.
1901                 
1902 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
1903
1904         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1905         * x86-64-tdep.c: Include "objfiles.h".
1906         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1907         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1908
1909 2002-07-17  Michal Ludvig  <michal@suse.cz>
1910
1911         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1912         (update_context): Initialise cfa variable.
1913
1914 2002-07-17  Michael Snyder  <msnyder@redhat.com>
1915
1916         * aix-thread.c: Shorten some long lines.  
1917         Bring comments into line with code spec.
1918
1919 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
1920
1921         * infrun.c: Re-indent using gdb_indent.sh.
1922
1923 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
1924
1925         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1926         Leave the indentation temporarily untouched, to minimize the diffs.
1927
1928 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
1929
1930         * stabsread.c: Make os9k sections of the code obsolete,
1931         for real this time.
1932         * stabsread.h: Make os9k sections of the code obsolete.
1933
1934 2002-07-18  Michal Ludvig <mludvig@suse.cz>
1935
1936         * linux-low.c (regsets_store_inferior_registers): Add free()
1937         at the end of a loop to prevent memory leak.
1938         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1939         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1940         * config/sparc/tm-sp64linux.h: Make the rest of #endif
1941         line a comment.
1942         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1943
1944 2002-07-17  Jim Blandy  <jimb@redhat.com>
1945
1946         * macrocmd.c (info_macro_command): Remove newline from error
1947         message.
1948
1949 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
1950
1951         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1952         (sh_gdbarch_init): Use it for sh-dsp.
1953
1954 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
1955
1956         * dwarf2read.c (read_initial_length): Handle older, non-standard,
1957         64-bit DWARF2 format.
1958
1959 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
1960
1961         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1962         <sys/proc.h> when not available.
1963
1964 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
1965
1966         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1967         * stabsread.c: Make os9k sections of the code obsolete.
1968         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1969         * config/i386/i386os9k.mt: Make file obsolete.
1970         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1971         (COMMON_OBS): Remove os9kread.o
1972         (SFILES): Remove os9kread.c.
1973         (os9kread.o, remote-os9k.o): Make target obsolete.
1974         * remote-os9k.c: Make file obsolete.
1975         * os9kread.c: Make file obsolete.
1976         * Makefile.in
1977
1978 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
1979
1980         * NEWS: Mention that the FR30 has been made obsolete.
1981         * fr30-tdep.c: Make file obsolete.
1982         * config/fr30/tm-fr30.h: Ditto.
1983         * config/fr30/fr30.mt: Ditto.
1984         * configure.tgt: Make fr30-*-elf obsolete.
1985         * MAINTAINERS: Make fr30-elf obsolete.
1986
1987 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
1988
1989         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1990         found is not inside a section.
1991
1992 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
1993
1994         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1995         strerror().
1996         (pdc_realloc): Use xrealloc() instead of realloc().
1997
1998 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
1999
2000         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2001         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2002         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2003         macros.
2004
2005 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2006
2007         * aix-thread.c (ptrace_check): Eliminate goto.
2008         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
2009         problem.
2010
2011 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
2012
2013         * aix-thread.c (gdbcmd.h): Include.
2014         (DEBUG, DBG, DBG2, dbg): Eliminate.
2015         (debug_aix_thread): New static global.
2016         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2017         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2018         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2019         invocations to DBG and DBG2 macros to test against
2020         ``debug_aix_thread'' and call fprintf_unfiltered().
2021         (_initialize_aix_thread): Add new command "set debug aix-thread".
2022
2023 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
2024
2025         From Gerhard Tonn <TON@de.ibm.com>:
2026         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2027         instead of supply_register.
2028
2029 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
2030
2031         * dwarf2cfi.c: Include "gdb_assert.h".
2032         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2033         non-NULL.
2034         (update_context): Do not use __func__.  Add missing ``break''.
2035         (update_context): Do not use __func__.
2036
2037 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
2038
2039         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2040         and its setting.  Set gdbarch instruction printing functions
2041         directly.  For non-rs6000 case use new function
2042         gdb_print_insn_powerpc.
2043         (gdb_print_insn_powerpc): New function.
2044
2045 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
2046
2047         * NEWS: Mention that the d30v has been marked obsolete.
2048         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2049         * configure.tgt: Mark d30v-*-* as obsolete.
2050         * d30v-tdep.c: Mark file as obsolete.
2051         * config/d30v/d30v.mt: Ditto.
2052         * config/d30v/tm-d30v.h: Ditto.
2053
2054 2002-07-13  Aidan Skinner <aidan@velvet.net>
2055
2056         * ada-tasks.c (add_task_entry): replace calls to
2057         malloc() with xmalloc
2058         * ada-tasks.c (init_task_list): replace calls to free with xfree()
2059         
2060         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2061         ada_finish_decode_line_1, all_sals_for_line
2062         ada_breakpoint_rewrite): replace calls to free() with xfree()
2063                 
2064 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2065
2066         From Nicholas Duffek (with minor changes by Martin Hunt, 
2067         Louis Hamilton, and Kevin Buettner):
2068         * aix-thread.c: New file.
2069
2070 2002-07-12  Petr Sorfa <petrs@caldera.com>
2071
2072         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
2073         complaint for invalid attribute class or form.
2074         (read_func_scope): DW_AT_frame_base
2075         better handling of DW_AT_block*.
2076         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2077         better handling of DW_AT_block*.
2078         (read_common_block): DW_AT_location
2079         better handling of DW_AT_block*.
2080         (read_partial_die): DW_AT_location better handling
2081         of DW_AT_block*.
2082         (new_symbol): DW_AT_external better handling of
2083         DW_AT_block*. Proper initialization of variable
2084         "addr".
2085         (attr_form_is_block): New function that returns true
2086         if the attribute's form is of DW_FORM_block*.
2087
2088 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2089
2090         * valops.c (find_method_list): Remove comment about
2091         removed STATIC_MEMFUNCP argument.
2092         (value_find_oload_method_list): Likewise.
2093
2094 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2095
2096         From Nicholas Duffek:
2097         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2098         target_new_objfile_hook.
2099
2100 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
2101
2102         From Nicholas Duffek:
2103         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2104         csect.
2105
2106 2002-07-12  Andrew Cagney  <cagney@redhat.com>
2107
2108         * MAINTAINERS: Mention --enable-sim-build-warnings.
2109         (m68hc11-elf): Disable sim build warnings.
2110         (m32r-elf): Mark as broken obsolete candidate.
2111         (x86_64-linux-gnu): Mark as buildable with -Werror.
2112         (arm-elf): Change -w to ``,'' which enables warnings but not
2113         -Werror.
2114
2115 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
2116
2117         * bcache.h: Update copyright.
2118         (struct bstring, struct bcache): Move definition to "bcache.c".
2119         Replaced by opaque declaration.
2120         (bcache_xfree): Replace free_bcache.
2121         (bcache_xmalloc, bcache_memory_used): Declare.
2122         
2123         * bcache.c: Update copyright.
2124         (struct bstring, struct bcache): Moved to here from "bcache.h".
2125         Update comments.
2126         (bcache_xmalloc, bcache_memory_used): New functions.
2127         (bcache_xfree): Replace function free_bcache.
2128         
2129         * Makefile.in (objfiles.o): Add $(bcache_h).
2130         (objfiles_h): Remove $(bcache_h).
2131         (symfile.o): Add $(bcache_h).
2132
2133         * symmisc.c: Update copyright.
2134         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2135         (print_objfile_statistics): Use bcache_memory_used.
2136
2137         * symfile.c: Include "bcache.h".
2138         (reread_symbols): Use bcache_xfree.
2139         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2140         (add_psymbol_to_list): Pass psymbol_cache by value.
2141         (add_psymbol_with_dem_name_to_list): Ditto.
2142
2143         * objfiles.h: Update copyright.
2144         (struct bcache): Declare opaque.  Do not include "bcache.h".
2145         (struct objfile): Change psymbol_cache and macro_cache to ``struct
2146         bcache'' pointers.
2147         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2148
2149         * objfiles.c: Include "bcache.h".  Update copyright.
2150         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2151         macro_cache.
2152         (free_objfile): Use bcache_xfree.
2153
2154 2002-07-11  Grace Sainsbury  <graces@redhat.com>
2155
2156         * monitor.c (monitor_fetch_register): Make name a constant.
2157         (monitor_store_register): Same.
2158
2159 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
2160
2161         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2162         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2163         (finish_block) For non-function blocks, hash the symbol table.  For
2164         function blocks, mark the symbol table as unhashed.
2165         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2166         (msymbol_hash_iw): Likewise.
2167         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2168         value.
2169         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2170         (lookup_minimal_symbol): Likewise for both.
2171         * symtab.h (struct block): Add `hashtable' flag.  Comment the
2172         hashtable.
2173         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2174         (ALL_BLOCK_SYMBOLS): Update.
2175         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2176         (struct symbol): Add `hash_next' pointer.
2177         * symtab.c (lookup_block_symbol): Search using the hash table when
2178         possible.
2179         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2180         (search_symbols, find_addr_symbol): Likewise.
2181
2182         * dstread.c (process_dst_block): Clear hashtable bit for new block.
2183         (read_dst_symtab): Likewise.
2184         * jv-lang.c (get_java_class_symtab): Likewise.
2185         * mdebugread.c: Include "gdb_assert.h".
2186         (shrink_block): Assert that the block being modified is not hashed.
2187         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2188         * symmisc.c (free_symtab_block): Walk the hash table when freeing
2189         symbols.
2190         (dump_symtab): Recognize hashed blocks.
2191         * printcmd.c (print_frame_args):  Assert that function blocks do not
2192         have hashed symbol tables.
2193         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2194         (fill_in_ada_prototype, debug_print_block): Likewise.
2195         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
2196
2197 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
2198
2199         * stack.c (print_frame): Use result of frame_address_in_block()
2200         instead of fi->pc when evaluating symbols.
2201         (backtrace_command_1): Ditto.
2202
2203 2002-07-11  Andrew Cagney  <cagney@redhat.com>
2204
2205         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2206         Make static.
2207
2208         * arm-tdep.c (arm_register_name): Make return type constant.
2209
2210 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
2211
2212         * win32-nat.c (has_detach_ability): Convert to strict ISO C
2213         prototype.
2214         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2215         * s390-tdep.c (s390_fp_regnum): Ditto.
2216         (s390_read_fp): Ditto.
2217         (s390_pop_frame): Ditto.
2218         (_initialize_s390_tdep): Ditto.
2219         * remote.c (get_remote_state): Ditto.
2220         * procfs.c (mappingflags): Ditto.
2221         * memattr.c (_initialize_mem): Ditto.
2222         * mcore-tdep.c (mcore_pop_frame): Ditto.
2223         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2224         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2225         * language.c (set_case_str): Ditto.
2226         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2227         * frv-tdep.c (new_variant): Ditto.
2228         (frv_stopped_data_address): Ditto.
2229         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2230         (context_alloc): Ditto.
2231         (frame_state_alloc): Ditto.
2232         (unwind_tmp_obstack_init): Ditto.
2233         (unwind_tmp_obstack_free): Ditto.
2234         (cfi_read_fp): Ditto.
2235         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2236         (cris_pop_frame): Ditto.
2237         * c-lang.c (scanning_macro_expansion): Ditto.
2238         (finished_macro_expansion): Ditto.
2239         (c_preprocess_and_parse): Ditto.
2240         * gdbarch.sh: Ditto.
2241         * gdbarch.h, gdbarch.c: Regenerate.
2242         * config/mn10200/tm-mn10200.h: Adjust indentation.
2243         * target.c: Adjust indentation.
2244         * symtab.h: Adjust indentation.
2245         * stabsread.h: Adjust indentation.
2246         * remote-es.c: Adjust indentation.
2247         * os9kread.c: Adjust indentation.
2248
2249 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
2250         
2251         * wince.c (_initialize_wince): Rename _initialize_inftarg.
2252         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2253
2254 2002-07-10  Grace Sainsbury  <graces@redhat.com>
2255         
2256         * NEWS: Mention m68k, mcore multi-arching.  
2257         * MAINTAINERS: Change status of m68k, mcore to reflect
2258         multi-arching.
2259
2260 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
2261
2262         * valops.c (find_overload_match): Free oload_syms.
2263
2264 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
2265
2266         Define HAVE_SYS_PROC_H if sys/proc.h exists
2267         * configure.in: Add check for sys/proc.h
2268         * config.in: Regenerate.
2269         * configure: Regenerate.
2270
2271 2002-07-09  Grace Sainsbury  <graces@redhat.com>
2272
2273         * config/m68k/tm-m68k.h: Remove macros wrapped in 
2274         #if !GDB_MULTI_ARCH. 
2275
2276 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
2277
2278         * config.in, configure: Regenerate.
2279
2280 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
2281
2282         * dwarf2cfi.c: Include "gcore.h".
2283         (execute_stack_op): Fix implementation of the
2284         DW_OP_deref and DW_OP_deref_size operators by letting do their
2285         lookup in the target.
2286
2287 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
2288
2289         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2290         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2291         tdep->sc_sp_offset.
2292
2293 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
2294
2295         Fix PR gdb/595, gdb/602
2296         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2297         Don't call value_cast, just read the vtable pointer; update comments
2298         to match.
2299
2300 2002-07-05  Grace Sainsbury  <graces@redhat.com>
2301
2302         * config/mcore/tm-mcore.h: Remove file.
2303         * config/mcore/mcore.mt: Remove definition of TM_FILE
2304         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2305
2306 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
2307
2308         * i386bsd-tdep.c: Include "gdb_string.h".
2309
2310 2002-07-04  Grace Sainsbury  <graces@redhat.com>
2311
2312         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2313         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2314         mcore-tdep.
2315         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2316         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2317         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2318         (RETVAL_REGNUM): Move macros from tm-mcore.h
2319         (mcore_reg_struct_has_addr): New function.
2320         (mcore_gdbarch_init): Added initializations for the macros removed
2321         from tm-mcore.h.
2322
2323 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2324
2325         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2326         traditonal string branding within the ELF header.
2327
2328 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
2329
2330         * symtab.c (remove_params): New function.
2331         (make_symbol_overload_list): Use it instead of cplus_demangle.
2332         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
2333
2334 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2335
2336         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2337
2338         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2339         New variables.
2340         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2341         and tdep->sigtramp_end.
2342         * i386obsd-nat.c: New file.
2343         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2344
2345         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2346         Don't call get_current_frame().
2347
2348 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
2349
2350         * i386-nat.c (child_post_startup_inferior): New function
2351         calling i386_cleanup_dregs if
2352         I386_USE_GENERIC_WATCHPOINTS is defined.
2353         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2354         conditional to acknowledge that i386-nat.c has its
2355         own child_post_startup_inferior function.
2356
2357 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
2358
2359         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2360         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2361         instead of MAX_REGISTER_RAW_SIZE.
2362         (i386_extract_return_value, i386_extract_struct_value_address):
2363         Convert to use regcache.
2364         (i386_gdbarch_init): Set max_register_raw_size and
2365         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2366         Set extract_return_value and extract_struct_value_address instead
2367         of their deprecated variants.
2368
2369         Convert i386 target to generic dummy frames.
2370         * i386-tdep.c: Include "symfile.h".
2371         (i386_frameless_signal_p): Consider a function to be frameless if
2372         the pc points at the first instruction of the function.
2373         (i386_frame_chain): Handle (generic) call dummies.
2374         (i386_frame_saved_pc): Likewise.
2375         (i386_frame_init_saved_regs): Remove code dealing with call
2376         dummies on the stack.
2377         (i386_push_dummy_frame): Removed.
2378         (i386_call_dummy_words): Removed.
2379         (i386_fix_call_dummy): Removed.
2380         (i386_push_return_address): New function.
2381         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
2382         parameter, and don't call get_current_frame.
2383         (i386_pop_frame): New function.
2384         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2385         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2386         entry_point_address, set call_dummy_breakpoint_offset to 0, set
2387         call_dummy_length to 0, set call_dummy_words to NULL, set
2388         sizeof_call_dummy_words to 0, set fix_call_dummy to
2389         generic_fix_call_dummy, set pc_in_call_dummy to
2390         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2391         generic_push_dummy_frame, set push_return_address to
2392         i386_push_return_address and set frame_chain_valid to
2393         generic_file_frame_chain_valid.
2394
2395 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2396
2397         * gdbarch.sh (struct regcache): Add opaque declaration.
2398         (EXTRACT_RETURN_VALUE): New architecture method.
2399         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2400         * gdbarch.h, gdbarch.c: Regenerate.
2401         * arch-utils.c (legacy_extract_return_value): New function.
2402         * arch-utils.h (legacy_extract_return_value): Declare.
2403         * values.c (value_being_returned): Re-enable code handling
2404         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
2405         deprecated_grub_regcache_for_registers call to block handling
2406         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2407         (EXTRACT_RETURN_VALUE): Do not define.
2408
2409 2002-07-03  Grace Sainsbury  <graces@redhat.com>
2410
2411         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2412         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2413         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2414         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2415         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2416         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2417         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2418         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2419         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2420         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2421         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2422         argument so the function fits the prototype in the architecture
2423         vector.
2424         (mcore_pop_frame): Remove argument so the function fits the
2425         prototype. Use get_current_frame instead of the argument.
2426         (mcore_push_arguments): Change type of struct_return so the
2427         function can be used in the architecture vector.
2428         (mcore_store_struct_return): Add.
2429         (mcore_frame_init_saved_regs): Add.
2430         (mcore_gdbarch_init): Add function calls to replace the macros
2431         removed from tm-mcore.h
2432
2433 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2434
2435         * infcmd.c (print_return_value): Remove compatibility code calling
2436         deprecated_grub_regcache_for_registers.
2437         
2438         * values.c: Include "regcache.h".
2439         (value_being_returned): Update.  Use
2440         deprecated_grub_regcache_for_registers to extract the register
2441         buffer address.  
2442         * value.h (value_being_returned): Change ``retbuf'' parameter to a
2443         ``struct regcache''.
2444         * Makefile.in (values.o): Add dependency on $(regcache_h).
2445
2446         * inferior.h (run_stack_dummy): Change type of second parameter to
2447         a ``struct regcache''.
2448         * valops.c (hand_function_call): Change type of retbuf to ``struct
2449         regcache''.  Allocate using regcache_xmalloc, clean using
2450         make_cleanup_regcache_xfree.
2451         * infcmd.c (run_stack_dummy): Update.  Use
2452         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2453
2454         * regcache.c (do_regcache_xfree): New function.
2455         (make_cleanup_regcache_xfree): New function.
2456         * regcache.h (make_cleanup_regcache_xfree): Declare.
2457
2458 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2459
2460         * event-top.c (command_line_handler): Don't read past
2461         beginning of buffer.
2462
2463 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2464         
2465         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
2466         struct frame_id. 
2467         (varobj_create): Store frame_id for root.
2468         (varobj_gen_name): Use xasprintf.
2469         (varobj_update): Save and restore frame using get_frame_id() and
2470         frame_find_by_id().
2471         (create_child): Use xasprintf.
2472         (new_root_variable): Initialize frame_id.
2473         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2474         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2475         to prevent memory leak.
2476
2477 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
2478
2479         * valops.c (hand_function_call): Move declaration of retbuf to
2480         start of function, allocate using malloc, add a cleanup but before
2481         the inf_status cleanup, cleanup the buffer.  Rename local variable
2482         old_chain to inf_status_cleanup.
2483
2484 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
2485
2486         * top.c (execute_command): Use cmd_func() and cmd_func_p().
2487
2488         * cli/cli-decode.c (cmd_func_p): New function.
2489         (cmd_func): New function.
2490
2491         * command.h: Add cmd_func() and cmd_func_p().   
2492         
2493 2002-07-03  Grace Sainsbury  <graces@redhat.com>
2494
2495         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2496         (REGISTER_SIZE): Remove.
2497         (MAX_REGISTER_RAW_SIZE): Remove.
2498         (REGISTER_VIRTUAL_TYPE): Remove.
2499         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2500         (REGISTER_NAME): Remove.
2501         (USE_GENERIC_DUMMY_FRAMES): Remove.
2502         (CALL_DUMMY): Remove.
2503         (CALL_DUMMY_START_OFFSET): Remove.
2504         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2505         (CALL_DUMMY_LOCATION): Remove.
2506         (FIX_CALL_DUMMY): Remove.
2507         (CALL_DUMMY_ADDRESS): Remove.
2508         (SIZEOF_CALL_DUMMY_WORDS): Remove.
2509         (SAVE_DUMMY_FRAME_TOS): Remove.
2510         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2511         (mcore_register_virtual_type): New function.
2512         (mcore_register_byte): New function.
2513         (mcore_register_size): New function.
2514         (mcore_register_name): New function.
2515         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2516         macros removed from tm-mcore.h.
2517         (mcore_dump_tdep): Add.
2518         (_initialize_mcore_tdep): Add gdbarch_register call.
2519
2520 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
2521
2522         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2523         frameless_look_for_prologue, such that we actually call this
2524         function.
2525
2526 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2527
2528         * frame.h (frame_address_in_block): New function.
2529
2530         * blockframe.c (frame_address_in_block): New function extracted
2531         from get_frame_block().
2532         (get_frame_block): Use frame_address_in_block().
2533         (block_innermost_frame): Use frame_address_in_block() to match
2534         the frame pc address against the block boundaries rather than
2535         the frame pc directly. This prevents a failure when a frame pc
2536         is actually a return-address pointing immediately after the end
2537         of the given block. 
2538
2539 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2540
2541         * MAINTAINERS: Add self under write after approval. 
2542
2543 2002-07-02  Grace Sainsbury  <graces@redhat.com>
2544
2545         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2546         used in architecture vector. The default is
2547         m68k_local_breakpoint_from_pc.
2548         (m68k_local_breakpoint_from_pc): Add.
2549         (enum): Add register numbers from tm-m68k.h.
2550         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2551         vector.  
2552         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2553         GDB_MULTI_ARCH_PARTIAL.
2554         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2555         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2556         m68k-tdep.c.
2557         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2558         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2559         to enum in m68k-tdep.c
2560
2561 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
2562
2563         * solib-osf.c (open_map): Compute the list of shared libraries
2564         loaded by the inferior, rather than the list of libraries loaded
2565         by GDB itself.  Otherwise, GDB ends up reading the symbols from
2566         the wrong shared libraries...
2567
2568 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
2569
2570         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2571         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2572         macros.
2573         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2574         Remove functions.
2575         (FRAMELESS_SIGNAL): Remove function.
2576         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2577         i386_linux_saved_pc_after_call): Removed.
2578         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2579         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
2580         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2581
2582         * i386-tdep.c (i386_frameless_signal_p): New function.
2583         (i386_frame_chain): Deal with frameless signals.
2584         (i386_sigtramp_saved_sp): New function.
2585         (i386_frame_saved_pc): Deal with frameless signals.
2586         (i386_saved_pc_after_call): Make sure the correct value is
2587         returned just after entry into a sigtramp.
2588         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2589         i386fbsd4_sc_sp_offset): New variables.
2590         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2591         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
2592         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2593         similiar to what we already did for sc_pc_offset.
2594         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2595         tdep->sc_sp_offset.
2596
2597         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2598
2599 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
2600
2601         * config/i386/tm-x86-64linux.h: New.
2602         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2603         definitions.
2604         * config/i386/nm-x86-64.h: Rename to ...
2605         * config/i386/nm-x86-64linux.h: ... this one.
2606         * config/i386/x86-64linux.mh: Reflect the above change.
2607         
2608 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
2609
2610         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2611         with sigcontext_addr.  Add sc_sp_offset.
2612         (i386bsd_sigtramp_saved_pc): Remove prototype.
2613         (i386bsd_sicontext_addr): Add prototype.
2614         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2615         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2616         (i386_svr4_sigtramp_saved_pc): Removed.
2617         (i386_svr4_sigcontext_addr): New function.
2618         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2619         Initialize tdep->sigcontext_addr instead.  Initialize
2620         tdep->sc_pc_offset and tdep->sc_sp_offset.
2621         (i386_gdbarch_init): Likewise.
2622         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2623         any more.
2624         (i386bsd_sigtramp_saved_pc): Remove function.
2625         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2626         Initialize tdep->sigcontext_addr instead.  Initialize
2627         tdep->sc_pc_offset.
2628         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2629         of tdep->sigtramp_saved_pc.
2630         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2631         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
2632         instead.
2633
2634         * i386-tdep.c (i386_frameless_function_invocation,
2635         i386_frame_num_args, i386_frame_init_saved_regs,
2636         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2637         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2638         i386_extract_return_value, i386_store_return_value,
2639         i386_extract_struct_value_address, i386_register_virtual_type,
2640         i386_register_convertible, i386_register_convert_to_virtual,
2641         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2642         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2643         static.
2644
2645 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
2646
2647         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2648
2649         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2650         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2651         this macro.  Include "value.h".
2652
2653 2002-06-30  Aidan Skinner  <aidan@velvet.net>
2654
2655         * ada-exp.tab.c: remove as it's a generated file
2656         * ada-lex.c: remove as it's a generated file
2657                 
2658 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
2659
2660         * config/i386/tm-i386.h (struct frame_info, struct
2661         frame_saved_regs, struct value, struct type): Remove forward
2662         declarations.
2663
2664         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2665         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2666         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2667         (FILL_FPXREGSET): Define.
2668
2669         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2670
2671         * configure.tgt (i[3456]86-*-openbsd*): Fold into
2672         i[3456]86-*-netbsd* case.
2673         * config/i386/tm-obsd.h: Removed.
2674         * config/i386/obsd.mt: Removed.
2675         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2676         core-aout.o.
2677         (MH_CFLAGS): Add -DYYDEBUG=0.
2678
2679         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2680         i386nbsd_sc_pc_offset on OpenBSD too.
2681
2682         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2683         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2684         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2685         define.
2686         * i386bsd-tdep.c: Include "arch-utils.h".
2687         (i386bsd_aout_in_solib_call_trampoline): New function.
2688         (i386bsd_init_abi): Set in_solib_call_trampoline to
2689         i386bsd_aout_in_solib_call_trampoline.
2690         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2691         in_solib_call_trampoline to generic_in_solib_call_trampoline.
2692
2693 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2694
2695         * macrotab.h: Do not include "obstack.h" or "bcache.h".
2696         (struct obstack, struct bcache): Add opaque declarations.
2697         * Makefile.in (macrotab_h): Update
2698
2699 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2700
2701         * blockframe.c (generic_find_dummy_frame): Change return type to
2702         ``struct regcache''.
2703         (struct dummy_frame): Replace field ``registers'' with regcache, a
2704         struct regcache object.
2705         (generic_find_dummy_frame): Update.
2706         (generic_push_dummy_frame): Update.  Use regcache_xfree,
2707         regcache_xmalloc and regcache_cpy.
2708         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
2709         regcache_xfree.
2710         (deprecated_generic_find_dummy_frame): Update.
2711         (generic_read_register_dummy): Update.  Use
2712         regcache_read_as_address.
2713         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
2714         (generic_get_saved_register): Update.  Use regcache_read.
2715
2716 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2717
2718         * Makefile.in (objfiles_h): Add $(bcache_h).
2719         * objfiles.h: Include "bcache.h".
2720
2721         * Makefile.in (symtab_h): Remove $(bcache_h).
2722         * symtab.h: Do not include "bcache.h".
2723
2724 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2725
2726         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2727         generic_func_frame_chain_valid.
2728
2729 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
2730
2731         * config/i386/nm-fbsd.h: Include <sys/param.h>.
2732         * config/i386/tm-fbsd.h: Likewise.
2733
2734 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2735
2736         * rs6000-tdep.c (rs6000_gdbarch_init): Use
2737         generic_unwind_get_saved_register.
2738
2739 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
2740
2741         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2742         * regcache.c (supply_register): Add missing argument to
2743         register_buffer call.
2744
2745 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
2746
2747         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
2748         Solaris /bin/grep does not not like it.  From Peter Schauer.
2749
2750 2002-06-26  Tom Tromey  <tromey@redhat.com>
2751
2752         * command.h (add_setshow_cmd): Declare.
2753         (add_setshow_cmd_full): Declare.
2754         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
2755         returns void.  Use add_setshow_cmd_full.
2756         (add_setshow_cmd_full): New function.
2757         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2758         (add_setshow_boolean_cmd): Likewise.
2759
2760 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2761
2762         * config/vax/tm-vax.h: Protect from multiple inclusion.
2763         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2764         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2765         * config/vax/tm-vaxbsd.h: ...here.  New file.
2766         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2767
2768 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2769
2770         * config/vax/tm-vax.h (BREAKPOINT): Remove.
2771         (BELIEVE_PCC_PROMOTION): Remove.
2772         (AP_REGNUM): Move to...
2773         * config/vax/nm-vax.h: ...here.
2774         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2775         (vax_breakpoint_from_pc): New function.
2776         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2777         and gdbarch_believe_pcc_promotion.
2778
2779 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
2780
2781         * Makefile.in (vax_tdep_h): Define.  
2782         (vax-tdep.o): Use $(vax_tdep_h).
2783         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2784         (vax_dump_tdep): New function. 
2785         (_initialize_vax_tdep): Register vax_dump_tdep.
2786         * vax-tdep.h: Include osabi.h.     
2787         (struct gdbarch_tdep): New. 
2788
2789 2002-06-26  Andrew Cagney  <cagney@redhat.com>
2790
2791         * frame.h (deprecated_generic_find_dummy_frame): Rename
2792         generic_find_dummy_frame.
2793         * blockframe.c (generic_find_dummy_frame): Make static.
2794         (deprecated_generic_find_dummy_frame): New function.
2795         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2796         generic_find_dummy_frame with deprecated_find_dummy_frame.
2797         (sh64_nofp_frame_init_saved_regs): Ditto.
2798         (sh_fp_frame_init_saved_regs): Ditto.
2799         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2800         (s390_frame_chain): Ditto.
2801         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2802
2803 2002-06-26  Grace Sainsbury  <graces@redhat.com>
2804
2805         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2806         gdbarch vector are at the top.
2807         (NUM_REGS): Remove.
2808         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2809         (FRAME_ARGS_ADDRESS): Remove.
2810         (FRAME_LOCALS_ADDRESS): Remove.
2811         (FRAME_NUM_ARGS): Remove.
2812         (FRAME_ARGS_SKIP): Remove.  
2813         * m68k-tdep.c (enum): Add eumeration of special register numbers.
2814         (m68k_gdbarch_init): Add gdbarch initializations for macros
2815         undefined in tm-m68k.h
2816
2817 2002-06-26  Grace Sainsbury  <graces@redhat.com>
2818
2819         * monitor.h: Add the function regname to monitor_ops
2820         structure. This way NUM_REGS does not have to be a constant.
2821         * monitor.c (monitor_fetch_register): Added support for regname
2822         function. The function is called if the array regnames is NULL.
2823         (monitor_store_register): Same.
2824         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2825         regnames array.
2826         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2827         cpu32bug_cmds.regname to point to new function.
2828         * abug-rom.c (abug_regname): Same as above.
2829         (init_abug_cmds): Same.
2830         * dbug-rom.c (dbug_regname): Same as above.
2831         (init_dbug_cmds): Same.
2832         * remote-est.c (est_regname): Same. 
2833         (init_est_cmds): Same.
2834         * rom68k-rom.c (rom68k_regname): Same. 
2835         (init_rom68k_cmds): Same.
2836
2837 2002-06-25  Tom Tromey  <tromey@redhat.com>
2838
2839         * breakpoint.c (delete_command): Don't repeat `delete' commands.
2840
2841 2002-06-25  Andrew Cagney  <cagney@redhat.com>
2842
2843         * infrun.c (stop_registers): Change variable's type to ``struct
2844         regcache'''.
2845         (xmalloc_inferior_status): Delete function.
2846         (free_inferior_status): Delete function.
2847         (normal_stop): Use regcache_cpy.
2848         (struct inferior_status): Change type of fields ``stop_registers''
2849         and ``registers'' to ``struct regcache''.
2850         (write_inferior_status_register): Use regcache_write.
2851         (save_inferior_status): Instead of calling
2852         xmalloc_inferior_status, allocate the inf_status buffer directly.
2853         Use regcache_dup_no_passthrough and regcache_dup to save the
2854         buffers.
2855         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2856         Replace the stop_registers regcache instead of overriding it.  Use
2857         regcache_xfree.  Instead of calling free_inferior_status, xfree
2858         the buffer directly.
2859         (discard_inferior_status): Use regcache_xfree.  Instead of calling
2860         free_inferior_status, xfree the buffer directly.
2861         (build_infrun): Use regcache_xmalloc.
2862         (_initialize_infrun): Delete redundant call to build_infrun.
2863
2864         * Makefile.in (infcmd.o): Add $(regcache_h).
2865
2866         * infcmd.c: Include "regcache.h".
2867         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2868         obtain the address of `stop_registers' register buffer.
2869         (print_return_value): Ditto.
2870
2871         * inferior.h (struct regcache): Add opaque declaration.
2872         (stop_registers): Change variable's declared type to ``struct
2873         regcache''.
2874
2875 2002-06-24  Tom Tromey  <tromey@redhat.com>
2876
2877         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2878         * target.c (initialize_targets): Fixed typo in
2879         trust-readonly-sections `show' documentation.
2880
2881         * main.c: Marked all strings with _().
2882
2883 2002-06-24  Don Howard  <dhoward@redhat.com>
2884
2885         * memattr.c (create_mem_region): Treat hi == 0 as a special case
2886         that means max CORE_ADDR+1.
2887         (lookup_mem_region): Ditto.
2888         (mem_info_command): Ditto.
2889
2890 2002-06-24  Grace Sainsbury  <graces@redhat.com>
2891
2892         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2893         (REGISTER_BYTES_OK): Remove.
2894         (REGISTER_BYTES): Remove.
2895         (STORE_STRUCT_RETURN): Remove.
2896         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2897         (STORE_RETURN_VALUE): Remove.
2898         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2899         (FRAME_CHAIN): Remove.
2900         (FRAMELESS_FUNCTION_INVOCATION): Remove.
2901         (FRAME_SAVED_PC): Remove.  
2902         * m68k-tdep.c (m68k_register_bytes_ok):Add.
2903         (m68k_store_struct_return): Add.
2904         (m68k_deprecated_extract_return_value): Add.
2905         (m68k_deprecated_extract_struct_value_address): Add.
2906         (m68k_store_return_value): Add.
2907         (m68k_frame_chain): Add.
2908         (m68k_frameless_function_invocation): Add.
2909         (m68k_frame_saved_pc): Add.
2910         (m68k_gdbarch_init): added set_gdbarch calls for new 
2911         functions and deleted macros.
2912
2913 2002-06-23  Tom Tromey  <tromey@redhat.com>
2914
2915         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2916         (ALLDEPFILES): Likewise.
2917         (udiheaders): Removed.
2918         (udip2soc.o): Likewise.
2919         (udi2go32.o): Likewise.
2920         (udr.o): Likewise.
2921         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2922
2923 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
2924
2925         * infrun.c (_initialize_infrun): Delete unnecessary call to
2926         build_infrun.
2927
2928         * regcache.h: Update comments describing the regcache_cpy family
2929         of functions.
2930         (regcache_save, regcache_restore): Delete declaration.
2931         (regcache_save_no_passthrough): Delete declaration.
2932         (regcache_restore_no_passthrough): Delete declaration.
2933         * regcache.c (regcache_save): Delete function.
2934         (regcache_save_no_passthrough): Delete function.
2935         (regcache_restore): Delete function.
2936         (regcache_restore_no_passthrough): Delete function.
2937
2938 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
2939
2940         * config/m68k/tm-m68k.h: Fix typo.
2941         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2942         (m68k_frame_init_saved_regs): Declare.
2943
2944 2002-06-21  Jim Blandy  <jimb@redhat.com>
2945
2946         Remove some vestiges of Harris 88k support.
2947         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2948         register numbering quirk.
2949         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2950         odd symbols occurring in Harris 88k ELF targets.
2951
2952 2002-06-21  Tom Tromey  <tromey@redhat.com>
2953
2954         * gdb_locale.h: New file.
2955         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2956         (defs_h): Added gdb_locale.h.
2957         * configure, config.in: Rebuilt.
2958         * configure.in (PACKAGE): Define.
2959         * defs.h: Include gdb_locale.h.
2960         * main.c (captured_main): Call setlocale, bindtextdomain,
2961         textdomain.
2962
2963 2002-06-21  Dave Brolley  <brolley@redhat.com>
2964
2965         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2966         * config/frv/frv.mt: New file.
2967         * config/frv/tm-frv.h: New file.
2968         * configure.tgt: Support frv-*-*.
2969         * Makefile.in (frv-tdep.o): New target.
2970         * frv-tdep.c: New file.
2971         * NEWS: Mention frv.
2972
2973 2002-06-21  Dave Brolley  <brolley@redhat.com>
2974
2975         * MAINTAINERS: Add self to "Write After Approval" list.
2976
2977 2002-06-21  Grace Sainsbury  <graces@redhat.com>
2978
2979         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2980         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2981         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2982         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2983         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2984
2985         * m68k-tdep.c: Include arch-utils.h
2986         (m68k_register_raw_size): Add.
2987         (m68k_register_virtual_size): Add.
2988         (m68k_register_virtual_type): Add.
2989         (m68k_register_name): Add.
2990         (m68k_stack_align): Add.
2991         (m68k_register_byte): Add.
2992         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2993         tm-m68k.h.
2994
2995 2002-06-21  Grace Sainsbury  <graces@redhat.com>
2996
2997         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2998         m68k_find_saved_regs.
2999         (m68k_pop_frame): Removed saved_regs structure, and replaced
3000         references to it with frame->saved_regs.
3001         (m68k_gdbarch_init): Added function calls to initialize the
3002         gdbarch structure.
3003         (m68k_fix_call_dummy): Add. 
3004         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3005         (CALL_DUMMY): Remove.
3006         (CALL_DUMMY_LENGTH): Remove.
3007         (CALL_DUMMY_START_OFFSET): Remove.
3008         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3009         (FIX_CALL_DUMMY): Remove.
3010         (PUSH_DUMMY_FRAME): Remove.
3011         (POP_FRAME): Remove.
3012
3013 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
3014
3015         * parse.c (parse_fprintf): New function used to avoid calls to
3016         fprintf in bison parser generated debug code.
3017         * parser-defs.h: Declaration of new parse_fprintf function.
3018         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3019         Set YYDEBUG to 1 by default.
3020         Set YYFPRINTF as parse_fprintf.
3021
3022 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
3023
3024         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
3025         encoding anymore.
3026         (pointer_encoding, enum ptr_encoding): New.
3027         (execute_cfa_program): Take care about pointer encoding.        
3028         (dwarf2_build_frame_info): Only call parse_frame_info for 
3029         .debug_frame and .eh_frame.
3030         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3031         fixed augmentation handling, added relative addressing, 
3032         ignore duplicate FDEs. Added comments.
3033         * dwarf2cfi.c: Reindented.
3034         
3035 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
3036
3037         * event-top.c (command_handler): Don't use space_at_cmd_start
3038         unless there is sbrk() on the host. Assign time and space data
3039         to union fields of the appropriate length.
3040
3041 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
3042
3043         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
3044         x86_64_register_name. Return type changed to 'const char *'.
3045         (x86_64_register_name2nr): Rename to x86_64_register_number.
3046         (x86_64_gdbarch_init): Update to reflect the change.
3047         * x86-64-tdep.h: Ditto.
3048         * x86-64-linux-nat.c (x86_64_fxsave_offset)
3049         (supply_fpregset): Ditto.
3050
3051 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3052
3053         * regcache.h: Update copyright.
3054         (struct regcache, struct gdbarch): Add opaque declarations.
3055         (current_regcache): Declare global variable.
3056         (regcache_read, regcache_write): Add gdbarch parameter.
3057         (regcache_save, regcache_save_no_passthrough)
3058         (regcache_restore, regcache_restore_no_passthrough)
3059         (regcache_dup, regcache_dup_no_passthrough)
3060         (regcache_cpy, regcache_cpy_no_passthrough)
3061         (deprecated_grub_regcache_for_registers)
3062         (deprecated_grub_regcache_for_register_valid)
3063         (regcache_valid_p): Add function declarations.
3064         
3065         * regcache.c: Update copyright.
3066         (regcache_descr_handle): New global variable.
3067         (struct regcache_descr): Define.
3068         (init_legacy_regcache_descr, init_regcache_descr): New functions.
3069         (regcache_descr, xfree_regcache_descr): New functions.
3070         (struct regcache): Define.
3071         (regcache_xmalloc, regcache_xfree): New functions.
3072         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3073         (regcache_dup, regcache_dup_no_passthrough): New functions.
3074         (regcache_valid_p, regcache_read_as_address): New functions.
3075         (deprecated_grub_regcache_for_registers): New function.
3076         (deprecated_grub_regcache_for_register_valid): New function.
3077         (current_regcache): New global variable.
3078         (register_buffer): Add regcache parameter.  Update calls.
3079         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
3080         (read_register_gen, write_register_gen): Update register_buffer
3081         call.  Test for legacy_p instead of gdbarch_register_read_p or
3082         gdbarch_register_write_p.
3083         (regcache_collect): Update register_buffer call.
3084         (build_regcache): Rewrite.  Use deprecated grub functions.
3085         (regcache_save, regcache_save_no_passthrough): New functions.
3086         (regcache_restore, regcache_restore_no_passthrough): New
3087         functions.
3088         (_initialize_regcache): Create the regcache_data_handle. Swap
3089         current_regcache global variable.
3090         
3091         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3092         parameter to regcache_read and regcache_write calls.
3093         (sh4_register_read): Ditto.
3094         (sh64_pseudo_register_read): Ditto.
3095         (sh64_register_read): Ditto.
3096         (sh_pseudo_register_write): Ditto.
3097         (sh4_register_write): Ditto.
3098         (sh64_pseudo_register_write): Ditto.
3099         (sh64_register_write): Ditto.
3100
3101         * defs.h (XCALLOC): Define.
3102
3103 2002-06-19  Grace Sainsbury  <graces@redhat.com>
3104
3105         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3106         * m68k-tdep.c (m68k_gdbarch_init): Added.
3107         (m68k_dump_tdep): Added.
3108
3109 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3110
3111         * ada-lang.c (fill_in_ada_prototype): Update comment.
3112
3113 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
3114
3115         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
3116         MIPS_ABI_LAST.
3117         (mips_abi_string, mips_abi_strings): New.
3118         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3119         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
3120         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
3121         O32 if no ABI is found.
3122         (mips_dump_tdep): Use mips_abi_strings.
3123         (mips_abi_update): New function.
3124         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
3125         ``set mips abi'' and ``show mips abi''.  Check the size of
3126         mips_abi_strings.
3127
3128 2002-06-19  Andrew Cagney  <cagney@redhat.com>
3129
3130         * i386-linux-tdep.c (i386_linux_register_name): Make return type
3131         constant.
3132
3133 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
3134
3135         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
3136         current frame using only the first stack size adjustment. All
3137         subsequent size adjustments are not considered to be part of
3138         the "static" part of the current frame.
3139         Compute the address of the saved registers relative to the
3140         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3141         in use in this frame.
3142
3143 2002-06-18  Don Howard  <dhoward@redhat.com>
3144  
3145         * valops.c (value_ind): Use value_at_lazy() when dereferencing
3146         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
3147         suggesting this solution.
3148
3149 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
3150
3151         * config/romp/xm-rtbsd.h: Delete file.
3152         * config/romp/rtbsd.mh: Delete file.
3153
3154 2002-06-18  Keith Seitz  <keiths@redhat.com>
3155
3156         * breakpoint.c (condition_command): Post breakpoint_modify
3157         when a condition is added to an existing breakpoint.
3158         (commands_command): Likewise for commands.
3159         (set_ignore_count): Likewise for ignore counts.
3160         If no tty, do not simply return, still need to send event
3161         notification.
3162         (ignore_command): Only print a newline if the command came
3163         from a tty.
3164         Don't call breakpoints_changed, since this is now properly
3165         handled by set_ignore_count.
3166
3167 2002-06-18  Andrew Cagney  <cagney@redhat.com>
3168
3169         * MAINTAINERS: Note that cris-elf target can be compiled with
3170         -Werror.
3171         * cris-tdep.c (cris_register_name): Make return type constant.
3172         (cris_breakpoint_from_pc): Ditto.
3173
3174 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
3175
3176         * frame.h (struct frame_info): Change type of context to 
3177         'struct context'.
3178
3179 2002-06-17  Andrew Cagney  <cagney@redhat.com>
3180
3181         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3182         pointer.
3183         * gdbarch.h, gdbarch.c: Regenerate.
3184         * config/mips/tm-mips.h (mips_register_name): Update.
3185         * i386-tdep.h (i386_register_name): Update.
3186         * mips-tdep.c (mips_register_name): Update
3187         * alpha-tdep.c (alpha_register_name): Update.
3188         * arch-utils.c (legacy_register_name): Update.
3189         * arch-utils.h (legacy_register_name): Update.
3190         * avr-tdep.c (avr_register_name): Update.
3191         * ia64-tdep.c (ia64_register_name): Update.
3192         * i386-tdep.c (i386_register_name): Update.
3193         * sparc-tdep.c (sparc32_register_name): Update.
3194         (sparc64_register_name): Update.
3195         (sparclite_register_name): Update.
3196         (sparclet_register_name): Update.
3197         * sh-tdep.c (sh_generic_register_name): Update.
3198         (sh_sh_register_name): Update.
3199         (sh_sh3_register_name): Update.
3200         (sh_sh3e_register_name): Update.
3201         (sh_sh_dsp_register_name): Update.
3202         (sh_sh3_dsp_register_name): Update.
3203         (sh_sh4_register_name): Update.
3204         (sh_sh64_register_name): Update.
3205         * s390-tdep.c (s390_register_name): Update.
3206         * rs6000-tdep.c (rs6000_register_name): Update.
3207         * ns32k-tdep.c (ns32k_register_name_32082): Update.
3208         (ns32k_register_name_32382): Update.
3209         * d10v-tdep.c (d10v_ts2_register_name): Update.
3210         (d10v_ts3_register_name): Update.
3211         * xstormy16-tdep.c (xstormy16_register_name): Update.
3212         * vax-tdep.c (vax_register_name): Update.
3213         * v850-tdep.c (v850_register_name): Update.
3214         * m68hc11-tdep.c (m68hc11_register_name): Update.
3215         * mn10300-tdep.c (mn10300_generic_register_name): Update.
3216         (am33_register_name): Update.
3217
3218 2002-06-17  Grace Sainsbury  <graces@redhat.com>
3219
3220         * m68k-tdep.c: Reindented.
3221
3222 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
3223
3224         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3225         list of predefined types.
3226
3227 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
3228
3229         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3230         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3231         REGISTER_CONVERT_TO_RAW): Remove defines.
3232         (i386_register_virtual_type, i386_register_convertible,
3233         i386_register_convert_to_virtual, i386_register_convert_to_raw):
3234         Remove prototypes.
3235         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3236         macros mentioned above.
3237
3238         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3239         (i386lynx_saved_pc_after_call): Remove prototype.
3240         * i386ly-tdep.c: Include "i386-tdep.h".
3241         (i386lynx_saved_pc_after_call): Make static.  Use
3242         read_memory_nobpt instead of read_memory.  Use
3243         read_memory_unsigned_integer instead of read_memory_integer.
3244         (i386lynx_init_abi): New function.
3245         (i386lynx_coff_osabi_sniffer): New function.
3246         (_initialize_i386bsd_tdep): New function.
3247
3248         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3249         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3250         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3251         (i386_fix_call_dummy): Remove prototype.
3252         * i386-tdep.c (i386_call_dummy_words): New variable.
3253         (i386_gdbarch_init): Adjust for removal of the
3254         macros mentioned above.
3255
3256 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3257
3258         * command.h (add_setshow_auto_boolean_cmd): Replace
3259         add_set_auto_boolean_cmd.
3260         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3261         add_set_auto_boolean_cmd.
3262         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3263         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3264         mask-address'' command.
3265         (show_mask_address): Add cmd parameter.
3266         * remote.c (add_packet_config_cmd): Update.  Change type of
3267         set_func and show_func to cmd_sfunc_ftype.
3268         (_initialize_remote): Update `set remote Z-packet'
3269         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3270         (show_remote_protocol_e_packet_cmd): Ditto.
3271         (show_remote_protocol_E_packet_cmd): Ditto.
3272         (show_remote_protocol_P_packet_cmd): Ditto.
3273         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3274         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3275         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3276         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3277         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3278         (show_remote_protocol_Z_packet_cmd): Ditto.
3279         (show_remote_protocol_binary_download_cmd): Ditto.
3280         (show_remote_cmd): Pass NULL to all of above.
3281
3282 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3283
3284         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3285         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3286         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3287         POP_FRAME): Remove defines.
3288         (i386_push_arguments, i386_store_struct_return,
3289         i386_extract_return_value, i386_store_return_value,
3290         i386_extract_struct_value_address, i386_push_dummy_frame,
3291         i386_pop_frame): Renove prototypes.
3292         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3293         macros mentioned above.
3294
3295 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3296
3297         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3298         add_set_boolean_cmd.
3299         (add_setshow_cmd): New function.
3300         * command.h (add_setshow_boolean_cmd): Replace
3301         add_set_boolean_cmd.
3302         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3303         and ``set rdiromatzero''.
3304         * maint.c (_initialize_maint_cmds): Update commented out code.
3305         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3306         * target.c (initialize_targets): Update `set
3307         trust-readonly-sections'.
3308         * remote.c (_initialize_remote): Update `set remotebreak'.
3309
3310 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3311
3312         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3313         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3314         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3315         fit into multi-arch framework.
3316         (i386_breakpoint_from_pc): New function.
3317         (i386_gdbarch_init): Adjust for removal of the macros mentioned
3318         above.
3319
3320         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3321         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3322         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3323         (i386_frameless_function_invocation, i386_frame_num_args,
3324         i386_frame_init_saved_regs): Remove prototypes.
3325         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3326         macros mentioned above.
3327
3328 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3329
3330         * cli/cli-decode.c (set_cmd_cfunc): Update.
3331         (set_cmd_sfunc): Update.
3332         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3333         (set_cmd_sfunc, set_cmd_cfunc): Update.
3334         * cli/cli-decode.h: Update.
3335
3336 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3337
3338         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3339         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3340
3341 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
3342
3343         * defs.h (auto_boolean): Declare enum.
3344         * command.h (cmd_auto_boolean): Delete enum.
3345         * mips-tdep.c (mask_address_var): Update.
3346         (mips_mask_address_p): Update.
3347         (show_mask_address): Update.
3348         * remote.c (struct packet_config): Update.
3349         (update_packet_config): Update.
3350         (show_packet_config_cmd): Update.
3351         (packet_ok): Update.
3352         (add_packet_config_cmd): Update.
3353         (_initialize_remote): 
3354         * command.h: Update.
3355         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3356         (do_setshow_command): Update.
3357         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3358         * cli/cli-decode.h: Update.
3359
3360 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3361
3362         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3363         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3364         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3365         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3366         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3367         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3368
3369         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3370         list of DJGPP COFF targets.
3371
3372         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3373         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3374         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3375         (FP0_REGNUM): Remove define.
3376         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3377         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3378         (i386_register_virtual_size): Remove protoype.
3379         * i386-tdep.c (i386_register_virtual_size): Removed.
3380         (i386_extract_return_value, i386_store_return_value): Use
3381         FP0_REGNUM instead of NUM_FREGS to determine whether the
3382         floating-point registers are available.
3383         (i386_gdbarch_init): Tweak FIXME about FPU registers.
3384         Adjust for removal of macros mentioned above.
3385
3386 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3387
3388         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
3389         comments.
3390         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3391         Remove prototypes.
3392         (supply_gregset, fill_gregset): Remove use of register keyword and
3393         remove declaration for regmap.  Use I386_NUM_GREGS instead of
3394         NUM_REGS and NUM_FREGS.
3395         (FPREGSET_FSAVE_OFFSET): Remove.
3396         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3397         NUM_FREGS to determine whether the floating-point registers are
3398         available.
3399
3400         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3401         gnu_store_registers): Replace usage of NUM_GREGS with
3402         I386_NUM_GREGS.
3403
3404         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3405         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3406         usage of NUM_GREGS with I386_NUM_GREGS.
3407
3408         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3409
3410         * i386bsd-nat.c: Include "i386-tdep.h".
3411         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3412         I386_NUM_GREGS.
3413
3414         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3415         and associated comment.  They no longer make any sense, since we
3416         don't use this file anymore on Linux.
3417
3418         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3419         * i386-tdep.c (i386_register_offset, i386_register_size): Use
3420         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3421         elements in these arrays.
3422         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3423         MAX_NUM_REGS.
3424
3425 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
3426
3427         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3428         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3429
3430 2002-06-14  Andrew Cagney  <cagney@redhat.com>
3431
3432         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3433         EXTRACT_RETURN_VALUE.
3434         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3435         EXTRACT_STRUCT_VALUE_ADDRESS.
3436         * gdbarch.h, gdbarch.c: Regenerate.
3437         
3438         * values.c (value_being_returned): Handle
3439         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3440         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3441
3442         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
3443         * arm-tdep.c (arm_gdbarch_init): Update.
3444         * avr-tdep.c (avr_gdbarch_init): Update.
3445         * cris-tdep.c (cris_gdbarch_init): Update.
3446         * d10v-tdep.c (d10v_gdbarch_init): Update.
3447         * ia64-tdep.c (ia64_gdbarch_init): Update.
3448         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3449         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3450         * s390-tdep.c (s390_gdbarch_init): Update.
3451         * sh-tdep.c (sh_gdbarch_init): Update.
3452         * s390-tdep.c (s390_gdbarch_init): Update.
3453         * sparc-tdep.c (sparc_gdbarch_init): Update.
3454         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3455         * v850-tdep.c (v850_gdbarch_init): Update.
3456         * vax-tdep.c (vax_gdbarch_init): Update.
3457         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3458         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3459
3460         * config/arc/tm-arc.h: Update.
3461         * config/d30v/tm-d30v.h: Update.
3462         * config/fr30/tm-fr30.h: Update.
3463         * config/h8300/tm-h8300.h: Update.
3464         * config/h8500/tm-h8500.h: Update.
3465         * config/i386/tm-i386.h: Update.
3466         * config/i386/tm-ptx.h: Update.
3467         * config/i386/tm-symmetry.h: Update.
3468         * config/i960/tm-i960.h: Update.
3469         * config/m32r/tm-m32r.h: Update.
3470         * config/m68k/tm-delta68.h: Update.
3471         * config/m68k/tm-linux.h: Update.
3472         * config/m68k/tm-m68k.h: Update.
3473         * config/m88k/tm-m88k.h: Update.
3474         * config/mcore/tm-mcore.h: Update.
3475         * config/mips/tm-mips.h: Update.
3476         * config/mn10200/tm-mn10200.h: Update.
3477         * config/pa/tm-hppa.h: Update.
3478         * config/pa/tm-hppa64.h: Update.
3479         * config/sparc/tm-sp64.h: Update.
3480         * config/sparc/tm-sparc.h: Update.
3481         * config/sparc/tm-sparclet.h: Update.
3482         * config/z8k/tm-z8k.h: Update.
3483
3484 2002-06-14  Andrew Cagney  <cagney@redhat.com>
3485
3486         * Makefile.in (i386_linux_tdep_h): Define.
3487         (i386_tdep_h, i387_tdep_h): Define.
3488         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3489         $(i386_tdep_h) and $(i387_tdep_h).
3490         * i386-linux-nat.c: Include "i386-linux-tdep.h".
3491
3492 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
3493
3494         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3495         Already covered by the default.
3496
3497         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3498         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
3499         (i386_gdbarch_init): Initialize long_double_format and long_double
3500         bit.
3501
3502         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3503         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
3504         Move these to ...
3505         * config/i386/i386sol2.mh: ... here.
3506         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3507         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3508         (SIGCONTEXT_PC_OFFSET): Remove define.
3509         (IN_SIGTRAMP): Remove define.
3510         * i386-sol2-tdep.c: New file.
3511         
3512         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3513         * config/i386/tm-i386nw.h: Removed.
3514
3515         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3516         USE_STRUCT_CONVENTION): Remove defines.
3517         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3518         (get_longjmp_target): Remove prototype.
3519         (IN_SIGTRAMP): Remove define.
3520         (i386bsd_in_sigtramp): Remove prototype.
3521         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3522         function.  Update comment accordingly
3523         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3524         (FRAME_SAVED_PC): Remove define.
3525         (i386bsd_frame_saved_pc): Remove prototype.
3526         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3527         GET_LONGJMP_TARGET): Remove defines.
3528         (get_longjmp_target): Remove prototype.
3529         (IN_SIGTRAMP): Remove define.
3530         (i386bsd_in_sigtramp): Remove prototype.
3531         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3532         function.  Update comment accordingly
3533         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3534         (FRAME_SAVED_PC): Remove define.
3535         (i386bsd_frame_saved_pc): Remove prototype.
3536         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3537         Remove prototype.
3538         (USE_STRUCT_CONVENTION): Remove prototype.
3539         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3540         declaration.
3541         (_initialize_i386bsd_nat): Revise logic to determine some
3542         constants at compile time when compiling a native GDB.  Warn if
3543         things don't match up with what we expect.
3544         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3545         Remove variables.
3546         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
3547         to use date stored in `struct gdbarch_tdep'.
3548         (i386bsd_sigcontext_offset): Remove varaible.
3549         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
3550         stored in `struct gdbarch_tdep'.
3551         (i386bsd_frame_saved_pc): Make static.
3552         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3553         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3554         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3555         i386fbsd4_sc_pc_offset): New variables.
3556         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3557         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3558         functions.
3559         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3560         functions.
3561         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3562         Modify the value of i386fbsd_sigtramp_start and
3563         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3564         i386fbsd_sigtramp_end.
3565         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3566         function.
3567
3568         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3569         define to i386-linux-tdep.h.
3570         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3571         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3572         defines.
3573         (i386_linux_register_name, i386_linux_register_byte,
3574         i386_linux_register_raw_size): Remove prototypes.
3575         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3576         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3577         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3578         TARGET_WRITE_PC): Remove defines.
3579         (i386_linux_in_sigtramp, i386_linux_frame_chain,
3580         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3581         i386_linux_write_pc): Remove prototypes.
3582         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3583         (get_longjmp_target): Remove prototype.
3584         * i386-linux-tdep.h: New file.
3585         * i386-linux-nat.c: Include "i386-linux-tdep.h".
3586         * i386-linux-tdep.c: Include "i386-tdep.h" and
3587         "i386-linux-tdep.h".
3588         (i386_linux_register_name, i386_linux_register_byte,
3589         i386_linux_register_raw_size, i386_linux_in_sigtramp,
3590         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3591         Make static.
3592         (i386_linux_init_abi): New function.
3593         (_initialize_i386_linux_tdep): New function.
3594
3595         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3596         (i386_saved_pc_after_call): Remove prototype.
3597         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3598         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3599         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3600         (i386_register_name, i386_stab_reg_to_regnum,
3601         i386_dwarf_reg_to_regnum): Remove prototypes.
3602         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3603         SIZEOF_SSE_REGS): Remove defines.
3604         (REGISTER_BYTES): Remove define.
3605         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3606         (i386_register_byte, i386_register_raw_size): Remove prototypes.
3607         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3608         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3609         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3610         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3611         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3612         (get_longjmp_target): Remove prototype.
3613         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3614         (sigtramp_saved_pc): Remove define.
3615         (i386v4_sigtramp_saved_pc): Remove prototype.
3616         * config/i386/tm-go32.h (FRAME_CHAIN,
3617         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3618         (i386go32_frame_saved_pc): Remove prototype.
3619         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3620         (get_longjmp_target): Remove prototype.
3621         * i386-tdep.h: Include "osabi.h".
3622         (enum i386_abi): Removed.
3623         (enum struct_return): New enum.
3624         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3625         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3626         sc_pc_offset members.
3627         (i386_gdbarch_register_os_abi): Remove prototype.
3628         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3629         I386_SSE_NUM_REGS): New defines.
3630         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3631         I386_SSE_SIZEOF_REGS): New defines.
3632         (i386_register_name, i386_register_byte, i386_register_raw_size):
3633         New prototypes.
3634         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3635         (i386bsd_sigtramp_saved_pc): New prototype.
3636         * i386-tdep.c: Don't include "elf-bfd.h".
3637         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3638         i386_frame_chain, i386_saved_pc_after_call): Make static.
3639         (i386_frame_saved_pc): Rewrite to call architecture dependent
3640         function to deal with signal handlers.  Make static.
3641         (i386go32_frame_saved_pc): Removed.
3642         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3643         Removed.
3644         (i386_get_longjmp_target): New function.
3645         (default_struct_convention, pcc_struct_convention,
3646         reg_struct_convention, valid_conventions, struct_convention): New
3647         variables.
3648         (i386_use_struct_convention): New function.
3649         (i386v4_sigtramp_saved_pc): Renamed to
3650         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
3651         (i386_pc_in_sigtramp): New function.
3652         (i386_abi_names): Removed.
3653         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3654         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3655         Removed.
3656         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3657         i386_gdbarch_register_os_abi): Removed.
3658         (struct i386_abi_handler): Removed.
3659         (i386_abi_handler_list): Removed.
3660         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3661         functions.
3662         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3663         i386_nw_init_abi): New functions.
3664         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3665         Use set_gdbarch_xxx() calls instead of relying on macros for a
3666         number of calls.
3667         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3668         (_initialize_i386_tdep): Add new 'struct-convcention' command.
3669         Register the various architecture variants defined in this file.
3670
3671 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
3672
3673         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3674         (struct main_type): Remove arg_types member.  Update comments for
3675         struct field.
3676         (TYPE_ARG_TYPES): Remove.
3677         (TYPE_FN_FIELD_ARGS): Update.
3678         (smash_to_method_type): Update prototype.
3679
3680         * c-typeprint.c (cp_type_print_method_args): Take method type
3681         instead of argument list.  Use new argument layout.  Simplify.
3682         (c_type_print_args): Use new argument layout.  Simplify.
3683         (c_type_print_base): Update call to cp_type_print_method_args.
3684         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3685         argument; use die->type instead.  Update call to
3686         smash_to_method_type.
3687         (read_structure_scope): Update call to dwarf2_add_member_fn.
3688         * gdbtypes.c (allocate_stub_method): Update comment.
3689         (smash_to_method_type): Take new NARGS and VARARGS arguments.
3690         Use new argument layout.
3691         (check_stub_method): Use new argument layout.  Don't count
3692         void as an argument.
3693         (print_arg_types): Update comments.  Use new argument layout.
3694         (recursive_dump_type): Don't print arg_types member.
3695         * hpread.c (hpread_read_struct_type): Use new argument layout.
3696         (fixup_class_method_type): Likewise.
3697         (hpread_type_lookup): Likewise.
3698         * stabsread.c (read_type): Update calls to read_args and
3699         smash_to_method_type.
3700         (read_args): Use new argument layout.  Simplify.
3701         * valops.c (typecmp): Use new argument layout.  Update parameters
3702         and comments.  Simplify.
3703         (hand_function_call): Use new argument layout.
3704         (search_struct_method): Update call to typecmp.
3705         (find_overload_match): Use new argument layout.
3706
3707 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3708
3709         * NEWS: Mention multithreaded debug support for gdbserver.
3710
3711 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3712
3713         * MAINTAINERS: Mention NEWS.
3714
3715 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
3716
3717         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3718         (struct mips_objfile_private, compare_pdr_entries): New.
3719         (non_heuristic_proc_desc): Read the ".pdr" section if it
3720         is present.
3721
3722 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
3723
3724         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3725         (arm_debug): New static variable.
3726         (_initialize_arm_tdep): Add ``set debug arm'' command.
3727
3728 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
3729
3730         * Makefile.in (sim_arm_h): Define.
3731         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3732         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3733         (arm_register_sim_regno): New function, map an internal REGNUM
3734         onto a simulator register number.
3735         (arm_gdbarch_init): Set register_sim_regno.
3736
3737 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
3738
3739         * MAINTAINERS: Add self.
3740
3741 2002-06-11  Jim Blandy  <jimb@redhat.com>
3742
3743         * source.c (source_info): Mention whether the symtab has
3744         information about preprocessor macros.
3745
3746         Call the command `info macro', not `show macro'.
3747         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3748         Fix error message.
3749         (_initialize_macrocmd): Register `info_macro_command' in
3750         `infolist', not `showlist'.
3751
3752 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
3753
3754         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3755         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3756         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3757         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3758         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
3759         unconditionally.
3760         (set_mipsfpu_single_command, set_mipsfpu_double_command)
3761         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3762         (_initialize_mips_tdep): Remove dead code.
3763         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3764         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3765         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3766         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3767         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3768         MIPS_LAST_FP_ARG_REGNUM): Remove.
3769
3770 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
3771
3772         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3773         (unwind_tmp_obstack_free, parse_frame_info)
3774         (update_context, cfi_read_fp, cfi_write_fp)
3775         (cfi_frame_chain, cfi_init_extra_frame_info)
3776         (cfi_virtual_frame_pointer): Use the above function.
3777         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3778
3779 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
3780
3781         * v850-tdep.c (v850_type_is_scalar): New function.
3782         (v850_use_struct_convention): Match current gcc implementation
3783         as close as possible.
3784         (v850_push_arguments): Fix stack_offset handling.  Don't write
3785         struct_addr into register.  This is done by v850_store_struct_return.
3786         (v850_extract_return_value): Care for structs.
3787         (v850_store_return_value): Ditto.
3788         (v850_store_struct_return): Actually write address.
3789
3790 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
3791
3792         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3793         without debug information too.
3794
3795 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3796
3797         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3798         Make multi-arch pure.
3799         * gdbarch.h, gdbarch.c: Re-generate.
3800         * arm-tdep.c (arm_print_float_info): Update.
3801         * arch-utils.h (default_print_float_info): Update.
3802         * arch-utils.c (default_print_float_info): Update.
3803         * infcmd.c (float_info): Update call.
3804
3805 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3806
3807         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3808         the front of the initialize list.
3809
3810 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
3811
3812         * infrun.c (struct inferior_status): Replace fields
3813         selected_frame_address and selected_level with field
3814         selected_frame_id.
3815         (save_inferior_status): Update.  Use get_frame_id.
3816         (struct restore_selected_frame_args): Delete.
3817         (restore_selected_frame): Update.  Use frame_find_by_id.
3818         (restore_inferior_status): Update.
3819
3820         * breakpoint.h (struct breakpoint): Change type of
3821         watchpoint_frame to frame_id.
3822         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
3823         call to get_current_frame.
3824         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
3825         get_current_frame.
3826         (watchpoint_check): Use frame_find_by_id.
3827
3828         * frame.h (record_selected_frame): Delete declaration.
3829         * stack.c (record_selected_frame): Delete function.
3830         
3831         * frame.h (struct frame_id): Define.
3832         (get_frame_id): Declare.
3833         (frame_find_by_id): Declare.
3834         * frame.c (frame_find_by_id): New function.
3835         (get_frame_id): New function.
3836
3837 2002-06-10  Andrey Volkov <avolkov@transas.com>
3838
3839         * ser-e7kpc.c: Fix duplicated define and call of 
3840         _initialize_ser_e7000pc
3841             
3842 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
3843
3844         * signals/signals.c (target_signal_from_host): Fix #ifdef
3845         SIGRTMIN case.
3846         (do_target_signal_to_host): Likewise.
3847
3848 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
3849
3850         * mips-tdep.c (mips_find_abi_section): New function.
3851         (mips_gdbarch_init): Call it.
3852
3853 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3854
3855         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3856         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
3857         after Andrew's 2002-06-08 gdbarch change.
3858
3859 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3860
3861         * i386-linux-nat.c (suppy_gregset): Don't supply
3862         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3863         register cache.
3864         (fill_gregset): Don't fetch it under the same circumstances.
3865
3866 2002-06-09  Andrew Cagney  <cagney@redhat.com>
3867
3868         * Makefile.in (callback_h): Define.
3869         (remote_sim_h): Update path to remote-sim.h.
3870         (remote-rdp.o): Add $(callback_h).
3871         (remote-sim.o): Use $(callback_h).
3872         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3873         * remote-rdp.c: Include "gdb/callback.h".
3874
3875 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
3876
3877         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3878         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3879
3880 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3881
3882         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3883         * rdi-share/serpardr.c: Ditto.
3884         * rdi-share/unixcomm.c: Ditto.
3885         * rdi-share/serdrv.c: Ditto.
3886         * rdi-share/hostchan.h: Ditto.
3887         * rdi-share/hostchan.c: Ditto.
3888         * rdi-share/host.h: Ditto.
3889         * rdi-share/devsw.c: Ditto.
3890
3891         * objfiles.h: Change type of obj_private to void pointer.
3892         * pa64solib.c: Update copyright.  Don't include "assert.h", use
3893         strcmp instead of STREQ, use LONGEST, do not use PTR
3894         * somsolib.c: Ditto.
3895
3896         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3897         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3898         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3899
3900 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3901
3902         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3903         (default_get_saved_register): Delete function.
3904         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3905         generic_unwind_get_saved_register.
3906         * gdbarch.h, gdbarch.c: Re-generate.
3907         
3908 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3909
3910         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3911         generic_func_frame_chain_valid.
3912         * gdbarch.h, gdbarch.c: Re-generate.
3913         * blockframe.c (generic_func_frame_chain_valid): Only check
3914         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
3915         passing FP to PC_IN_CALL_DUMMY.
3916         Fix PR gdb/360.
3917
3918 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
3919
3920         * gdbarch.sh (struct gdbarch_data): Add field init_p.
3921         (register_gdbarch_data): Initialize init_p.
3922         (gdbarch_data): Initialize data pointer using the init function.
3923         (init_gdbarch_data): Delete function.
3924         (gdbarch_update_p): Update.
3925         (initialize_non_multiarch): Update.
3926         (struct gdbarch): Add field initialized_p.
3927         * gdbarch.h, gdbarch.c: Re-generate.
3928
3929 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
3930
3931         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3932         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3933         better do the things actually here.
3934         * x86-64-tdep.c (x86_64_register_name2nr): New.
3935         (x86_64_register_name): Renamed to x86_64_register_nr2name.
3936         (x86_64_gdbarch_init): Respect the above change.
3937         * x86-64-tdep.h (x86_64_register_name2nr)
3938         (x86_64_register_nr2name): Add prototypes.
3939         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3940
3941 2002-06-06  Michael Snyder  <msnyder@redhat.com>
3942
3943         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3944         Delete extra braces and re-indent.
3945         (d10v_store_return_value): Char return values
3946         must be shifted over by one byte in R0.
3947         (d10v_extract_return_value): Delete extra braces, re-indent.
3948
3949 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
3950
3951         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3952         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3953         (d10v_integer_to_address): Rewrite.
3954         (d10v_frame_init_saved_regs): When reading fp and sp registers use
3955         the d10v specific functions which take care of converting to the
3956         correct space.
3957
3958 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
3959
3960         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3961         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3962
3963 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
3964
3965         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3966         includes.
3967         * config/tm-linux.h: Ditto.
3968         * config/alpha/tm-alphalinux.h: Ditto.
3969         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3970         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3971         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3972         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3973         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3974         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3975         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3976         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3977         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3978         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3979         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3980         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3981         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3982         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3983         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3984         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3985         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3986         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3987         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3988         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3989         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3990         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3991         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3992         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3993         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3994         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3995         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3996         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3997         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3998         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3999         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4000         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4001         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4002         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4003         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4004         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4005         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4006
4007 2002-05-04  Aidan Skinner <aidan@velvet.net>
4008
4009         * ada-exp.tab.c: New file
4010         * ada-exp.y: New file
4011         * ada-lang.c: New file
4012         * ada-lang.h: New file
4013         * ada-lex.c: New file
4014         * ada-lex.l: New file
4015         * ada-tasks.c: New file
4016         * ada-typeprint.c: New file
4017         * ada-valprint.c: New file
4018         
4019 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
4020
4021         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4022         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4023
4024 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
4025
4026         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4027         insetead of ppc-linux-tdep.o.
4028         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4029         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4030
4031 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
4032
4033         2002-05-07 Christian Groessler <chris@groessler.org>
4034         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4035         bit register contents for little endian hosts.
4036
4037 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4038
4039         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4040         any maintainer.
4041
4042 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4043
4044         * gdbarch.h: Regenerate.
4045
4046 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4047
4048         * MAINTAINERS: Add everyone to write-after-approval list.
4049
4050 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
4051
4052         * stack.c (frame_info): Use frame_register_unwind instead of
4053         saved_regs.  Mention when the SP is on the stack or in a register.
4054
4055         * frame.h (frame_register_unwind_ftype): Define.  Document.
4056         (struct frame_info): Add field register_unwind and
4057         register_unwind_cache.
4058         (frame_register_unwind): Declare.
4059         (generic_unwind_get_saved_register): Declare.
4060
4061         * frame.c (frame_register_unwind): New function.
4062         (generic_unwind_get_saved_register): New function.
4063
4064         * blockframe.c (generic_call_dummy_register_unwind): New function.
4065         (frame_saved_regs_register_unwind): New function.
4066         (set_unwind_by_pc): New function.
4067         (create_new_frame): New function.
4068         (get_prev_frame): New function.
4069
4070 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
4071
4072         * a29k-share/: Delete directory.
4073         * remote-vx29k.c: Delete file.
4074
4075 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4076
4077         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4078         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4079
4080 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4081
4082         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4083         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4084         (sparc64nbsd-nat.o)
4085         (sparcnbsd-nat.o)
4086         (sparcnbsd-tdep.o): New dependency lists.
4087         * NEWS: Note new UltraSPARC NetBSD native configuration.
4088         * configure.host (sparc64-*-netbsd*): New host.
4089         * configure.tgt (sparc-*-netbsdelf*)
4090         (sparc-*-netbsd*): Set gdb_target to nbsd.
4091         (sparc64-*-netbsd*): New target.
4092         * sparc64nbsd-nat.c: New file.
4093         * sparcnbsd-nat.c: New file.
4094         * sparcnbsd-tdep.c: New file.
4095         * sparcnbsd-tdep.h: New file.
4096         * config/sparc/nbsd.mt: New file.
4097         * config/sparc/nbsd64.mh: New file.
4098         * config/sparc/nbsd64.mt: New file.
4099         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4100         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4101         (HOST_IPC): Remove.
4102         * config/sparc/nbsdaout.mt: Remove.
4103         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4104         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
4105         (HOST_IPC): Remove.
4106         * config/sparc/nbsdelf.mt: Remove.
4107         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
4108         sparc-nat.c compatiblity defines.
4109         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
4110         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4111         * config/sparc/tm-nbsd64.h: New file.
4112         * config/sparc/tm-nbsdaout.h: Remove.
4113         * config/sparc/xm-nbsd.h: Remove.
4114
4115 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4116
4117         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4118         * sparc-tdep.c: Include osabi.h.
4119         (gdbarch_tdep): Add osabi member.
4120         (_initialize_sparc_tdep): Use gdbarch_register.
4121         (sparc_gdbarch_init): Use generic OS ABI framework.
4122         (sparc_dump_tdep): New function.
4123
4124 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
4125
4126         * corefile.c (do_captured_read_memory_integer): Return non-zero
4127         result.
4128         (safe_read_memory_integer): Copy result of memory read when
4129         status is non-zero.  Also, add comments.
4130
4131 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
4132
4133         * Makefile.in (ppc_tdep_h): Define.
4134         (ppc-linux-nat.o)
4135         (ppc-linux-tdep.o)
4136         (rs6000-tdep.o): Use $(ppc_tdep_h).
4137         (ppc-sysv-tdep.o)
4138         (ppcnbsd-nat.o)
4139         (ppcnbsd-tdep.o): New dependency lists.
4140         * ppc-tdep.h: Use generic OS ABI framework.
4141         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4142         (ppc_linux_init_abi): New functions.
4143         (ppc_sysv_abi_broken_use_struct_convention)
4144         (ppc_sysv_abi_use_struct_convention)
4145         (ppc_sysv_abi_push_arguments): Move to...
4146         * ppc-sysv-tdep.c: ...here.
4147         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4148         * rs6000-tdep.c (process_note_abi_tag_sections)
4149         (get_elfosabi): Remove.
4150         (rs6000_gdbarch_init): Use generic OS ABI framework.
4151         (rs6000_dump_tdep): New function.
4152         (_initialize_rs6000_tdep): Use gdbarch_register.
4153         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4154         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4155         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4156         of ppc-linux-tdep.o.
4157         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4158         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4159         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4160         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4161         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4162         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4163
4164 2002-05-29  Jim Blandy  <jimb@redhat.com>
4165
4166         * macroscope.c (default_macro_scope): Put `void' in empty argument
4167         list.
4168
4169 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
4170
4171         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4172         * arch-utils.c: Include "sim-regno.h".
4173         * gdbarch.sh: Don't include "sim-regno.h".
4174         * gdbarch.h, gdbarch.c: Regenerate.
4175         * sim-regno.h (legacy_register_sim_regno): Move declaration from
4176         here.
4177         * arch-utils.h (legacy_register_sim_regno): To here.
4178         * remote-sim.c (legacy_register_sim_regno): Move function from
4179         here.
4180         * arch-utils.c (legacy_register_sim_regno): To here.
4181
4182 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
4183
4184         * sim-regno.h: New file.
4185         * Makefile.in (sim_regno_h): Define.
4186         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4187         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4188         (legacy_register_sim_regno): New function.
4189         (one2one_register_sim_regno): New function.
4190         (gdbsim_fetch_register): Rewrite.
4191         (gdbsim_store_register): Only store a register when
4192         REGISTER_SIM_REGNO is valid.
4193         * d10v-tdep.c: Include "sim-regno.h".
4194         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4195         (d10v_ts3_register_sim_regno): Ditto.
4196         * gdbarch.sh: Include "sim-regno.h".
4197         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4198         * gdbarch.h, gdbarch.c: Regenerate.
4199         * arch-utils.h (default_register_sim_regno): Delete declaration.
4200         * arch-utils.c (default_register_sim_regno): Delete function.
4201
4202 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
4203
4204         * ppcnbsd-nat.c: Rewrite.
4205         * ppcnbsd-tdep.c: New file.
4206         * ppcnbsd-tdep.h: New file.
4207         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4208         solib.o, and solib-svr4.o.
4209         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4210         nbsd-tdep.o, and corelow.o.
4211
4212 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
4213
4214         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4215         `tr' and `sed'.  Mention that `broken' targets are not expected to
4216         build.
4217
4218 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
4219
4220         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4221         Let PC point right after the prologue before looking up symbols.
4222         
4223 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
4224
4225         * i386-tdep.c (i386_register_virtual_type): Return 
4226         builtin_type_vec128i for SSE registers.
4227
4228         * gdbtypes.h (builtin_type_vec128i): Declare.
4229
4230         * gdbtypes.c (build_builtin_type_vec128i): New function.
4231         (builtin_type_v2_double, builtin_type_v4_int64): New types.
4232         (builtin_type_vec128i): New type for SSE2 128-bit registers.
4233         (build_gdbtypes): Initialize new builtin vector types.
4234         (_initialize_gdbtypes): Register new vector types with gdbarch.
4235
4236 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4237
4238         * MAINTAINERS: ns32k is not longer an obsolete candidate,
4239         since it has been multi-arch'd.
4240         * NEWS: Note that ns32k-*-* is now partial multi-arch.
4241         Move Alpha and VAX multi-arch news entries to same section
4242         as other multi-arch news.
4243
4244 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4245
4246         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4247         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
4248         static.  Rename some register numbers to put them in ns32k-tdep
4249         private namespace.
4250         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4251         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4252         functions.
4253         (_initialize_ns32k_tdep): Use gdbarch_register.
4254         * ns32k-tdep.h: New file.
4255         * ns32knbsd-tdep.c: New file.
4256         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4257         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4258         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4259         REGISTER_BYTES, REGISTER_BYTE): Remove.
4260         * config/ns32k/tm-ns32k.h: New file.
4261         * config/ns32k/tm-umax.h: Remove.
4262
4263 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4264
4265         * ns32k-tdep.c (ns32k_saved_pc_after_call,
4266         ns32k_store_struct_return, ns32k_extract_return_value,
4267         ns32k_store_return_value, ns32k_extract_struct_value_address): New
4268         functions.
4269         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4270         ns32k_saved_pc_after_call.
4271         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4272         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4273         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4274         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4275         ns32k_extract_struct_value_address.
4276
4277 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4278
4279         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4280         ns32k_fix_call_dummy): New.
4281         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4282         ns32k_call_dummy_words.
4283         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4284         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4285         CALL_DUMMY_NARGS): Remove.
4286         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4287
4288 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4289
4290         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4291         ns32k_frame_saved_pc, ns32k_frame_args_address,
4292         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4293         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4294         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4295         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4296         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4297         (BREAKPOINT): Remove..
4298         (FRAME_CHAIN): Define as ns32k_frame_chain.
4299         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4300         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4301         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4302         (FRAME_FIND_SAVED_REGS): Remove.
4303         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4304         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4305         (POP_FRAME): Define as ns32k_pop_frame.
4306
4307 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4308
4309         * ns32k-tdep.c (ns32k_register_byte_32082,
4310         ns32k_register_byte_32382, ns32k_register_raw_size,
4311         ns32k_register_virtual_size, ns32k_register_virtual_type): New
4312         functions.
4313         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4314         ns32k_register_byte_32382.
4315         * config/ns32k/tm-umax.h: Update copyright years.
4316         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4317         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4318         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4319         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4320         (ns32k_get_enter_addr): Fix prototype.
4321
4322 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
4323
4324         * ns32k-tdep.c: Update copyright years.
4325         (ns32k_register_name_32082): New function.
4326         (ns32k_register_name_32382): Ditto.
4327         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4328         (REGISTER_NAME): Define as ns32k_register_name_32382.
4329         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4330         (REGISTER_NAME): Define as ns32k_register_name_32082.
4331
4332 2002-05-24  Jim Blandy  <jimb@redhat.com>
4333
4334         * dwarf2read.c (free_line_header): Use xfree, not free.
4335
4336 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
4337
4338         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4339         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4340
4341 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4342
4343         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4344
4345 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4346
4347         From Ross Alexander at NEC Europe:
4348         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4349
4350 2002-05-23  Michael Snyder  <msnyder@redhat.com>
4351
4352         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4353         for input, rather than parse_and_eval_address.  
4354
4355 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
4356
4357         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4358         * Makefile.in (sim_d10v_h): Update definition.
4359
4360 2002-05-24  Andrew Cagney  <cagney@redhat.com>
4361
4362         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4363         change `2002-05-22 Michael Snyder' below.
4364         (d10v_push_arguments): Ditto.
4365         (d10v_extract_return_value): Ditto.
4366
4367 2002-05-23  Jim Blandy  <jimb@redhat.com>
4368
4369         * macrotab.c (check_for_redefinition): Don't complain if the new
4370         definition is the same as the previous one.  Take more arguments
4371         to allow the comparison.
4372         (macro_define_object, macro_define_function): Pass more arguments
4373         to check_for_redefinition.
4374
4375 2002-05-22  Michael Snyder  <msnyder@redhat.com>
4376
4377         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4378         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4379         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4380         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4381         Don't bail if return_pc is PC_IN_CALL_DUMMY.
4382         Add a temp variable to save a call (and a memory read).
4383         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4384         if possible (so that PC_IN_CALL_DUMMY will work).
4385
4386 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
4387
4388         * MAINTAINERS: Remove status `OBSOLETE' from v850.
4389
4390 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
4391
4392         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4393         fde->cie_ptr.
4394         (dwarf2_build_frame_info): Corrected handling of eh_frame.
4395         (dwarf2_build_frame_info): Add offset to fde->initial_location 
4396         so that frames of shared libraries are mapped correctly.
4397         (execute_stack_op): Change type of 'result' from ULONGEST to
4398         CORE_ADDR.
4399         
4400 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4401
4402         * config/alpha/tm-nbsd.h: Include solib.h.
4403
4404 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4405
4406         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4407         assumptions about the host's byte order.
4408
4409 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4410
4411         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4412         to dependency list.
4413         * alphanbsd-tdep.c: Include solib-svr4.h.
4414         * shnbsd-tdep.c: Ditto.
4415
4416 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
4417
4418         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4419         nbsd-tdep.h to dependency list.
4420         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4421         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4422         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4423         nbsdaout.mh and nbsdelf.mh consistently.
4424         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4425         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4426         nbsdaout.mt and nbsdelf.mh consistently.
4427         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
4428         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4429         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4430         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
4431         a.out shared library stuff from here...
4432         * config/nm-nbsdaout.h: ...to here.
4433         * config/tm-nbsd.h: Remove.
4434         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4435         * config/arm/nbsd.mh: Remove.
4436         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4437         nbsd-tdep.o.
4438         * config/arm/nbsdaout.mh: New file. 
4439         * config/arm/nbsdelf.mh: New file.
4440         * config/arm/nm-nbsdaout.h: New file.
4441         * config/i386/nbsd.mh: Remove.
4442         * config/i386/nbsd.mt: Remove.
4443         * config/i386/nbsdaout.mh: New file.
4444         * config/i386/nbsdaout.mt: New file.
4445         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4446         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4447         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
4448         i386_register_u_addr): Remove.
4449         * config/i386/nm-nbsdaout.h: New file.
4450         * config/i386/nm-nbsdelf.h: Remove.
4451         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4452         (USE_STRUCT_CONVENTION): Remove.
4453         * config/i386/tm-nbsdaout.h: New file.
4454         * config/i386/tm-nbsdelf.h: Remove.
4455         * config/m68k/nbsd.mh: Remove.
4456         * config/m68k/nbsd.mt: Remove.
4457         * config/m68k/nbsdaout.mh: New file.
4458         * config/m68k/nbsdaout.mt: New file. 
4459         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4460         * config/m68k/nm-nbsdaout.h: New file.
4461         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4462         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4463         * config/ns32k/nbsd.mh: Remove.
4464         * config/ns32k/nbsd.mt: Remove. 
4465         * config/ns32k/nbsdaout.mh: New file.
4466         * config/ns32k/nbsdaout.mt: New file.
4467         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
4468         * config/ns32k/nm-nbsdaout.h: New file.
4469         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
4470         (IN_SOLIB_CALL_TRAMPOLINE): Define.
4471         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4472         (SVR4_SHARED_LIBS): Remove.
4473         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4474         * config/sparc/nbsd.mh: Remove.
4475         * config/sparc/nbsd.mt: Remove.
4476         * config/sparc/nbsdaout.mh: New file.
4477         * config/sparc/nbsdaout.mt: New file.
4478         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4479         * config/sparc/nbsdelf.mt: New file.
4480         * config/sparc/nm-nbsdaout.h: New file.   
4481         * config/sparc/nm-nbsdelf.h: Remove.
4482         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4483         * config/sparc/tm-nbsdaout.h: New file.
4484
4485 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4486
4487         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4488         mipsnbsd-tdep.c
4489         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4490
4491 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4492
4493         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4494         shnbsd-nat.c.
4495         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4496
4497 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4498
4499         * NEWS: Note new MIPS NetBSD native configuration. 
4500         * configure.host (mips*-*-netbsd*): New host. 
4501         * configure.tgt (mips*-*-netbsd*): New target. 
4502         * mipsnbsd-nat.c: New file.
4503         * mipsnbsd-tdep.c: New file.
4504         * mipsnbsd-tdep.h: New file.
4505         * config/mips/nbsd.mh: New file.
4506         * config/mips/nbsd.mt: New file.
4507         * config/mips/nm-nbsd.h: New file.
4508         * config/mips/tm-nbsd.h: New file.
4509
4510 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
4511
4512         * Makefile.in (SFILES): Add osabi.c.
4513         (COMMON_OBS): Add osabi.o.
4514         (osabi.o): New dependency list.
4515         * osabi.c: New file.
4516         * osabi.h: New file.
4517         * doc/gdbint.texinfo: Document new generic OS ABI framework.
4518
4519         * Makefile.in (alpha_tdep_h): Define and use instead of
4520         alpha-tdep.h.
4521         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4522         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4523         Remove.
4524         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4525         * alpha-tdep.h: Include osabi.h.
4526         (alpha_abi): Remove.
4527         (gdbarch_tdep): Use generic OS ABI framework.
4528         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4529         gdbarch_register_osabi.
4530         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4531         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4532         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4533
4534         * Makefile.in (sh_tdep_h): Add osabi.h.
4535         * sh-tdep.h (sh_osabi): Remove.
4536         (gdbarch_tdep): Use generic OS ABI framework.
4537         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4538         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4539         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4540         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4541
4542         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4543         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4544         gdbarch_register_osabi.
4545         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4546         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4547         (get_elfosabi): Rename to...
4548         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
4549         ABI framework support routines.
4550         (arm_gdbarch_init): Use generic OS ABI framework.
4551         (arm_dump_tdep): Likewise.
4552         (_initialize_arm_tdep): Likewise.
4553         * arm-tdep.h: Include osabi.h.
4554         (arm_abi): Remove.
4555         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
4556         osabi member.
4557         (arm_gdbarch_register_os_abi): Remove prototype.
4558         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4559         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4560
4561         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4562         * mips-tdep.c: Include osabi.h.
4563         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4564         OS ABI framework.
4565
4566 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
4567
4568         * h8300-tdep.c: Fix formatting.
4569
4570 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
4571
4572         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4573         printing vector registers.
4574
4575 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4576
4577         From Fernando Nasser:
4578         * remote.c (remote_async_open_1): Re-throw the exception when the
4579         connection fails.
4580         (remote_cisco_open): Ditto.
4581         (remote_open_1): Ditto.
4582
4583 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4584
4585         * remote.c (remote_start_remote_dummy): Add uiout parameter.
4586         (remote_start_remote): Add uiout parameter.  Pass through to
4587         remote_start_remote_dummy.
4588         (remote_open_1): Use catch_exception instead of catch_errors.
4589         (remote_async_open_1): Ditto.
4590         (remote_cisco_open): Ditto.
4591
4592 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
4593
4594         * remote.c (remote_start_remote): Replace PTR with void pointer.
4595         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
4596         static.
4597
4598 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
4599
4600         * gdb_indent.sh: Allow the script to be run in the sim directory.
4601
4602 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
4603
4604         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4605         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4606
4607         * corelow.c (core_open): Only call set_gdbarch_from_file if
4608         exec_bfd is NULL.
4609
4610 2002-05-17  Andrey Volkov <avolkov@transas.com>
4611
4612         * h8300-tdep.c: Add support of EXR register
4613         * config/h8300/tm-h8300.h: Ditto. 
4614         
4615 2002-05-17  Andrey Volkov <avolkov@transas.com>
4616
4617         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
4618         
4619 2002-05-17  Andrey Volkov <avolkov@transas.com>
4620
4621         * h8300-tdep.c: Change literal regnums to REGNO.
4622         
4623 2002-05-17  Jim Blandy  <jimb@redhat.com>
4624
4625         * NEWS: Note addition of macro support.
4626
4627         Expand preprocessor macros in C expressions.
4628         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4629         (scan_macro_expansion, scanning_macro_expansion,
4630         finished_macro_expansion): New function declarations.
4631         (expression_macro_lookup_func, expression_macro_lookup_baton): New
4632         variable declarations.
4633         * parser-defs.h (expression_context_pc): New declaration.
4634         * parse.c (expression_context_pc): New variable.
4635         (parse_exp_1): Set expression_context_pc, as well as
4636         expression_context_block.
4637         * c-exp.y (yylex): If we're not already reading the result of a
4638         macro expansion, try to macro-expand the next token.  When we're
4639         done scanning a macro expansion, switch back to the mainline text.
4640         Commas and `if's in a macro's expansion don't terminate the input.
4641         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4642         (macro_original_text, macro_expanded_text,
4643         expression_macro_lookup_func, expression_macro_lookup_baton): New
4644         variables.
4645         (scan_macro_expansion, scanning_macro_expansion,
4646         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4647         c_preprocess_and_parse): New functions.
4648         (c_language_defn, cplus_language_defn, asm_language_defn): Call
4649         c_preprocess_and_parse, instead of c_parse.
4650         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4651         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4652
4653 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
4654
4655         * sh-tdep.c (gdb_print_insn_sh64): Delete.
4656         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4657         (sh_gdbarch_init): Always use gdb_print_insn_sh.
4658
4659 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
4660
4661         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
4662
4663 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
4664
4665         * Makefile.in (sh_tdep_h): Define and use.
4666         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4667         register enum): Move to...
4668         * * sh-tdep.h: ...here.
4669         * sh-tdep.c: Include sh-tdep.h.
4670         * sh3-rom.c: Likewise.
4671         * shnbsd-tdep.c: Likewise.
4672
4673 2002-05-16  Michael Snyder  <msnyder@redhat.com>
4674
4675         * arm-tdep.c: Spelling fix in comment.
4676
4677 2002-05-16  Jim Blandy  <jimb@redhat.com>
4678
4679         Add commands for manually expanding macros and showing their
4680         definitions.
4681         * macrocmd.c, macroscope.c, macroscope.h: New files.
4682         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4683         (macroscope_h): New variable.
4684         (HFILES_NO_SRCDIR): Add macroscope.h.
4685         (COMMON_OBS): Add macrocmd.o, macroscope.o.
4686         (macroscope.o, macrocmd.o): New rules.
4687
4688         Teach the Dwarf 2 reader to read macro information.
4689         * dwarf2read.c: #include "macrotab.h".
4690         (dwarf_macinfo_buffer): New variable.
4691         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4692         dwarf_macinfo_size.
4693         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4694         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4695         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4696         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4697         dwarf2_macro_spaces_in_definition): New complaints.
4698         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4699         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4700         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4701         the partial symbol table.
4702         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4703         from what's recorded in the partial symbol table.
4704         (read_file_scope): If the compilation unit has a
4705         `DW_AT_macro_info' attribute, read its macro information.
4706         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4707
4708 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
4709
4710         Fix PR gdb/546
4711         * ser-tcp.c: Don't include <netinet/udp.h>.
4712
4713 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
4714
4715         * MAINTAINERS: Update my email address.
4716
4717 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
4718
4719         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4720         include file of the same name.
4721
4722 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4723
4724         * configure.tgt: Mark v850 as multi-arched.
4725         * config/v850/tm-v850.h: Remove file.
4726         * config/v850/v850.mt: Eliminate TM_FILE.
4727
4728 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4729
4730         * v850-tdep.c: Full multi-arch.
4731         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4732         Define GDB_MULTI_ARCH to 2.
4733
4734 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4735
4736         * p-exp.y (current_type): New static variable.
4737         Carries the type of the expression at the position that is parsed.
4738         (push_current_type, pop_current_type): Two new functions. Used
4739         to store/restore current_type in expression on specific tokens.
4740         (search_field): New static variable. Set to one after parsing a point
4741         as at that point only a FIELDNAME token should be searched.
4742         (FIELDNAME): New token. After a point only a token belonging to 
4743         current_type type definition is allowed.
4744         (all over token rules): reset and change current_type according
4745         to rules.
4746         (exp '[' rule): insert implicit array index field if
4747         exp is a pascal string type.
4748
4749 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4750
4751         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
4752         frame info.  Use frame_info's saved_regs instead of matching member
4753         in extra_frame_info throughout.
4754         (v850_frame_init_saved_regs): New function.
4755         (v850_init_extra_frame_info): Move most functionality into
4756         v850_frame_init_saved_regs().
4757         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4758         (v850_frame_find_saved_regs): Remove declaration.
4759         (FRAME_FIND_SAVED_REGS): Remove definition.
4760         (v850_frame_init_saved_regs): Add declaration.
4761         (FRAME_INIT_SAVED_REGS): Add definition.
4762
4763 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
4764
4765         * v850-tdep.c: Begin multi-arch'ing v850.
4766         (v850_target_architecture_hook): Remove function.
4767         (v850_gdbarch_init): New function.  Add code previously in
4768         v850_target_architecture_hook().
4769         (_initialize_v850_tdep): Don't  set target_architecture_hook.
4770         Call register_gdbarch_init() instead.
4771
4772 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
4773
4774         * gdbtypes.h (struct cplus_struct_type): Remove args field.
4775         * hpread.c (hpread_read_struct_type): Remove assignments to args.
4776         (fixup_class_method_type): Likewise.
4777
4778 2002-05-15  Jim Blandy  <jimb@redhat.com>
4779
4780         Add macro structures to GDB's symbol tables.  Nobody puts anything
4781         in them yet.
4782         * symtab.h (struct symtab): New member: `macro_table'.
4783         * buildsym.h (pending_macros): New global variable.
4784         * buildsym.c: #include "macrotab.h".
4785         (buildsym_init): Initialize `pending_macros'.
4786         (end_symtab): If we found macro information while reading a CU's
4787         debugging info, do build a symtab structure for it.  Make the
4788         symtab point to the macro information, and clear the
4789         `pending_macros' pointer which held it while we were reading the
4790         debug info.
4791         (really_free_pendings): Free any pending macro table.
4792         * objfiles.h (struct objfile): New member: `macro_cache'.
4793         * objfiles.c (allocate_objfile): Set allocate and free functions
4794         for the macro cache's objstack.
4795         (free_objfile): Empty the macro cache's obstack.
4796         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4797         set new allocate and free functions for it.
4798         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4799         free functions for the macro cache's objstack.  (Why is this
4800         function building its own objfile?)
4801         * symmisc.c (print_objfile_statistics): Print statistics on the
4802         macro bcache.
4803         * Makefile.in: Note that buildsym.o depends on macrotab.h.
4804
4805 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
4806
4807         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4808         (REGISTER_U_ADDR): Delete definition.
4809         (arm_register_u_addr): Delete declaration.
4810
4811 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
4812
4813         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4814         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4815
4816 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
4817
4818         * regcache.c (register_valid): Revise comments refering to "Not
4819         available" and "unavailable".
4820         * frame.c (frame_register_read): Ditto.
4821         * findvar.c (value_of_register): Ditto.
4822
4823 2002-05-15  Andrew Cagney  <cagney@redhat.com>
4824
4825         * Makefile.in (remote_sim_h): Replace remote-sim_h.
4826         (remote-sim.o): Update dependencies.
4827         (d10v-tdep.o): Specify dependencies.
4828         (sim_d10v_h): Define.
4829
4830 2002-05-14  Jim Blandy  <jimb@redhat.com>
4831
4832         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4833         * macrotab.c (macro_lookup_inclusion, find_definition,
4834         new_macro_table): Same.
4835         
4836         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4837         not `! strcmp ()'.  This is a dubious improvement.
4838         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4839
4840         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4841         although it's not necessary, to avoid a warning.
4842
4843 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
4844
4845         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4846         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4847         TYPE_INSTANCE_FLAGS.
4848         (struct main_type): New.
4849         (struct type): Move most members to struct main_type.  Change
4850         cv_type and as_type to new type_chain member.  Add instance_flags.
4851         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4852         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4853         (finish_cv_type): Remove prototype.
4854         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
4855         Set TYPE_CHAIN.
4856         (alloc_type_instance): New function.
4857         (smash_type): New function.
4858         (make_pointer_type, make_reference_type, make_function_type)
4859         (smash_to_member_type, smash_to_method_type): Call smash_type.
4860         (make_qualified_type): New function.
4861         (make_type_with_address_space): Call make_qualified_type.
4862         (make_cv_type): Likewise.
4863         (finish_cv_type): Remove unnecessary function.
4864         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
4865         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4866         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4867         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4868         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4869         * hpread.c (hpread_read_struct_type): Likewise.
4870         * stabsread.c (read_struct_type): Likewise.
4871
4872 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
4873
4874         * configure.tgt: Add a catch all sh* target, for cases like
4875         sh[2,3,4]-elf and sh-hms.
4876
4877 2002-05-14  Keith Seitz  <keiths@redhat.com>
4878
4879         * event-loop.c (create_file_handler): Don't do anything but
4880         update data when we are given a fd which we are already
4881         monitoring.
4882
4883 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
4884
4885         * dwarf2cfi.c (context_cpy): Copy registers correctly.
4886         (update_context): Use __func__ in warnings.
4887         
4888 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
4889
4890         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
4891         and tcp_close to net_open and net_close.
4892         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
4893         using UDP if requested.  Don't try to disable Nagle on UDP
4894         sockets.
4895         * remote.c (remote_serial_open): New function.  Warn about UDP.
4896         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4897
4898 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
4899
4900         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4901
4902 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
4903
4904         * configure.tgt: Remove sh-hms target.
4905         * MAINTAINERS: Don't list sh-hms as a separate target.
4906
4907 2002-05-13  Jim Blandy  <jimb@redhat.com>
4908
4909         Add first preprocessor macro-expansion files.
4910         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4911         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4912         (splay_tree_h, macroexp_h, macrotab_h): New variable.
4913         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4914         (COMMON_OBS): Add macrotab.o, macroexp.o.
4915         (macroexp.o, macrotab.o): New rules.
4916
4917 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
4918
4919         * config/m88k/tm-m88k.h: Update copyright.
4920         (m88k_target_write_pc): Declare
4921         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4922         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4923         (SHIFT_INST_REGS): Update definition.
4924         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
4925         using old definition of TARGET_WRITE_PC.
4926         * regcache.c (generic_target_write_pc): Delete code handling
4927         NNPC_REGNUM.
4928         * gdbarch.sh (NNPC_REGNUM): Delete.
4929         * gdbarch.h, gdbarch.c: Regenerate.
4930
4931 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
4932
4933         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4934         builtin reg number.
4935
4936 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
4937
4938         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4939         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4940         (gen_address_of, gen_struct_ref, gen_repeat): Use type
4941         access macros.
4942         * c-typeprint.c (cp_type_print_method_args): Likewise.
4943         (c_type_print_args): Likewise.
4944         * d10v-tdep.c (d10v_push_arguments): Likewise.
4945         (d10v_extract_return_value): Likewise.
4946         * expprint.c (print_subexp): Likewise.
4947         * gdbtypes.c (lookup_primitive_typename): Likewise.
4948         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4949         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4950         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4951         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4952         (TYPE_VECTOR): Likewise.
4953         * hpread.c (hpread_read_struct_type)
4954         (fix_static_member_physnames, fixup_class_method_type)
4955         (hpread_type_lookup): Likewise.
4956         * mdebugread.c (parse_symbol, parse_type): Likewise.
4957         * p-lang.c (is_pascal_string_type): Likewise.
4958         * valops.c (hand_function_call): Likewise.
4959         * x86-64-tdep.c (classify_argument): Likewise.
4960
4961         * hpread.c (hpread_read_function_type)
4962         (hpread_read_doc_function_type): Call replace_type.
4963         * dstread.c (create_new_type): Delete.
4964         (decode_dst_structure, process_dst_function): Call alloc_type.
4965         Use type access macros.
4966
4967 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
4968
4969         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4970         the're not supported by the current architecture.
4971         (i387_fill_fxsave): Likewise.
4972
4973 2002-05-12  Fred Fish  <fnf@redhat.com>
4974
4975         * symfile.c (default_symfile_offsets): Arrange for uninitialized
4976         sect_index_xxx members to index the first slot in section_offsets
4977         if all of the section_offsets are zero.
4978
4979 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
4980
4981         * configure.tgt (sparc-*openbsd): Remove entry accidentially
4982         checked in with last change.
4983
4984 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
4985
4986         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4987         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
4988         config.sub.
4989
4990 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
4991
4992         * Makefile.in: Update dependencies.
4993
4994 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
4995
4996         * language.c (local_hex_string_custom): Simplify.  Do not depend
4997         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4998
4999         * memattr.c (mem_info_command): Replace calls to
5000         longest_local_hex_string and longest_local_hex_string_custom.
5001         * buildsym.c (make_blockvector): Ditto.
5002         * solib.c (info_sharedlibrary_command): Ditto.
5003         * tracepoint.c (tracepoints_info): Ditto.
5004         * symtab.c (print_msymbol_info): Ditto.
5005
5006         * language.c (local_hex_string): Delete.
5007         (local_hex_string_custom): Delete.
5008         (longest_local_hex_string): Rename to local_hex_string.
5009         (longest_local_hex_string_custom): Rename to
5010         local_hex_string_custom.
5011         * language.h (local_hex_string): Change parameter type to LONGEST.
5012         (local_hex_string_custom): Ditto.
5013         (longest_local_hex_string): Delete declaration.
5014         (longest_local_hex_string_custom): Ditto.
5015
5016         * solib.c: Update copyright.
5017         * memattr.c: Update copyright.
5018         
5019 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5020
5021         * arch-utils.h (legacy_register_to_value): Declare.
5022         (legacy_value_to_register): Declare.
5023         (legacy_convert_register_p): Declare.
5024         * arch-utils.c (legacy_register_to_value): New function.
5025         (legacy_value_to_register): New function.
5026         (legacy_convert_register_p): New function.
5027
5028         * gdbarch.sh (REGISTER_TO_VALUE): Define.
5029         (VALUE_TO_REGISTER): Define.
5030         (CONVERT_REGISTER_P): Define.
5031         * gdbarch.h, gdbarch.c: Regenerate.
5032
5033         * valops.c (value_assign): Use CONVERT_REGISTER_P and
5034         VALUE_TO_REGISTER.
5035         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5036         CONVERT_REGISTER_P.
5037
5038 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
5039             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5040
5041         * Makefile.in: Update dependencies for valops.c.
5042         * valops.c: Include "gdb_assert.h".
5043         (typecmp): Skip THIS parameter to methods.
5044         (find_method_list): Remove static_memfuncp argument,
5045         update callers.  Check for stub methods.
5046         (find_value_oload_method_list): Don't set *static_memfuncp.
5047         (find_overload_match): Don't check for stub methods.  Assert
5048         that methods are not stubbed.  Handle static methods.
5049         (value_find_oload_method_list): Remove static_memfuncp argument.
5050         * gdbtypes.c (check_stub_method): Do not add THIS pointer
5051         to the argument list for static stub methods.
5052         * value.h (value_find_oload_method_list): Update prototype.
5053
5054 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5055
5056         * arch-utils.h (generic_register_size): Declare.
5057         (generic_register_raw_size, generic_register_virtual_size): Delete
5058         declarations.
5059         * arch-utils.c (generic_register_raw_size): Delete.
5060         (generic_register_size): New function.
5061         (generic_register_virtual_size): Delete.
5062
5063         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5064         default generic_register_size.
5065         * gdbarch.h, gdbarch.c: Re-generate.
5066         
5067         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5068         register_virtual_size.
5069         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5070         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5071
5072 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5073
5074         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5075         * gdbarch.h, gdbarch.c: Regenerate.
5076         * gnu-v3-abi.c: Update copyright.
5077         (vtable_address_point_offset): Update.
5078         (gnuv3_rtti_type): Update.
5079         (gnuv3_baseclass_offset): Update.
5080         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5081         (init_fetch_link_map_offsets): Update.
5082         * remote.c (get_remote_state): Update.
5083         
5084 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
5085
5086         * TODO: Remove value_headof/value_from_vtable_info comment.
5087         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5088         * values.c (value_headof, value_from_vtable_info): Delete.
5089         * value.h (value_from_vtable_info): Delete prototype.
5090
5091 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
5092
5093         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5094         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5095         $(gdb_regex_h).
5096         (gdb_assert_h): Define.
5097         (gdb_wait_h): Define.
5098         (gdb_regex_h): Define.
5099
5100 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
5101
5102         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5103         * linespec.c (find_methods): Handle GCC 3.x template constructors.
5104
5105 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5106
5107         * nbsd-tdep.c: Fix comment.
5108
5109 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5110
5111         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5112         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5113         (nbsd-tdep.o): New dependency list.
5114         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
5115         nbsd-tdep.h.
5116         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5117         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5118         * nbsd-tdep.c: New file.
5119         * nbsd-tdep.h: New file.
5120         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
5121         nbsd-tdep.h.
5122         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5123         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5124         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5125         * config/sh/nbsd.mt (TDEPFILES): Ditto.
5126
5127 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5128
5129         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5130         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5131         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5132         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5133         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5134         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5135
5136 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5137
5138         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5139         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5140         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5141         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5142         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5143         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5144         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5145
5146 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5147
5148         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
5149         fetch_elfcore_registers to...
5150         * i386nbsd-tdep.c: ...here.
5151         (i386nbsd_use_struct_convention): Rename to...
5152         (i386nbsd_aout_use_struct_convention): ...this.
5153         (i386nbsd_supply_reg): New function.
5154         (i386nbsd_fill_reg): New function.
5155         (fetch_core_registers): Use i386nbsd_supply_reg.
5156         (fetch_elfcore_registers): Likewise.
5157         (_initialize_i386nbsd_tdep): New function.
5158         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5159         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5160         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5161         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5162         (i386nbsd_aout_use_struct_convention): ...this.
5163
5164 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5165
5166         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5167         (store_inferior_registers): Use shnbsd_fill_reg.
5168         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
5169         sh_nbsd_supply_register): Collapse into...
5170         (shnbsd_supply_reg): ...this.
5171         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5172         (shnbsd_fill_reg): ...this.
5173         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5174         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5175         (fetch_core_registers): Use shnbsd_supply_reg.
5176         (fetch_elfcore_registers): Use shnbsd_supply_reg.
5177         (sh_nbsd_core_fns): Rename to...
5178         (shnbsd_core_fns): ...this.
5179         (sh_nbsd_elfcore_fns): Rename to...
5180         (shnbsd_elfcore_fns): ...this.
5181         (sh_nbsd_init_abi): Rename to...
5182         (shnbsd_init_abi): ...this.
5183         (_initialize_sh_nbsd_tdep): Rename to...
5184         (_initialize_shnbsd_tdep): ...this.
5185         * shnbsd-tdep.h (sh_nbsd_supply_registers,
5186         sh_nbsd_supply_register, sh_nbsd_fill_registers,
5187         sh_nbsd_fill_register): Remove prototypes.
5188         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5189
5190 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5191
5192         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5193         (i387-nat.o): Delete dependency list.
5194         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5195         (x86-64-linux-nat.o): Likewise.
5196         * i387-nat.c: Delete file, moving contents to...
5197         * i387-tdep.c: ...here.
5198         * i387-nat.h: Rename...
5199         * i387-tdep.h: ...to this.
5200         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5201         * i386-linux-nat.c: Likewise.
5202         * i386bsd-nat.c: Likewise.
5203         * i386gnu-nat.c: Likewise.
5204         * i386nbsd-nat.c: Likewise.
5205         * i386v4-nat.c: Likewise.
5206         * x86-64-linux-nat.c: Likewise.
5207         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5208         * config/i386/go32.mh (NATDEPFILES): Likewise.
5209         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5210         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5211         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5212         * config/i386/linux.mh (NATDEPFILES): Likewise.
5213         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5214         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5215         * config/i386/obsd.mh (NATDEPFILES): Likewise.
5216         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5217
5218 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5219
5220         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5221         (alphanbsd-nat.o): Remove dependency list.
5222         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5223         * alphanbsd-nat.c: Delete.  Contents moved to...
5224         * alphanbsd-tdep.c: ...here.
5225         (_initialize_alphanbsd_tdep): Register core functions.
5226         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5227
5228 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
5229
5230         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5231         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5232         (alphanbsd-nat.o): Likewise.
5233         (alphabsd-tdep.o): New dependency list.
5234         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5235         (fill_gregset): Use alphabsd_fill_reg.
5236         (supply_fpregset): Use alphabsd_supply_fpreg.
5237         (fill_fpregset): Use alphabsd_fill_fpreg.
5238         (fetch_inferior_registers): Use struct reg and struct fpreg
5239         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
5240         and alphabsd_supply_fpreg.
5241         (store_inferior_registers): Use struct reg and struct fpreg
5242         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
5243         and alphabsd_fill_fpreg.
5244         * alphabsd-tdep.c: New file.
5245         * alphabsd-tdep.h: New file.
5246         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5247         (fetch_elfcore_registers): Use alphabsd_supply_reg and
5248         alphabsd_supply_fpreg.
5249         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5250         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5251
5252 2002-05-11  Eric Christopher  <echristo@redhat.com>
5253
5254         * mips-tdep.c (mips_double_register_type): Fix thinko.
5255         (mips_single_register_type): Ditto.
5256         * MAINTAINERS: Add self.
5257
5258 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
5259
5260         * i387-nat.c (i387_supply_register, i387_fill_fsave,
5261         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5262         right thing on architectures with different endianness and/or
5263         integer sizes.
5264
5265 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
5266
5267         From Christian Limpach <chris@Pin.LU>
5268         * configure.in: Change sed expression which comments out
5269         NATDEPFILES to also comment out continuation lines.
5270         * configure: Regenerate.
5271
5272 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5273
5274         * sh-tdep.c: Clean up code erroneously reintroduced by previous
5275         big patch.
5276
5277 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5278
5279         * sh-tdep.c: Include correct file.
5280
5281 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5282
5283         New support for sh64-elf (sh5) target.
5284
5285         * configure.tgt: For sh64-elf target, default to sh-elf.
5286
5287         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5288         (struct gdbarch_tdep): Add new fields for new registers and ABI
5289         info.
5290
5291         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5292         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5293         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5294         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5295         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5296         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5297         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5298         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5299         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5300         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5301         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5302         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5303         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5304         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5305         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5306         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5307         sh64_get_gdb_regnum, sh64_media_reg_base_num,
5308         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5309         sign_extend, sh64_nofp_frame_init_saved_regs,
5310         sh64_init_extra_frame_info, sh64_get_saved_register,
5311         sh64_extract_struct_value_address, sh64_pop_frame,
5312         sh64_push_arguments, sh64_extract_return_value,
5313         sh64_store_return_value, sh64_show_media_regs,
5314         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5315         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5316         sh_sh64_register_virtual_type,
5317         sh_sh64_register_convert_to_virtual,
5318         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5319         sh64_register_read, sh64_pseudo_register_write,
5320         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5321         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5322         sh64_do_pseudo_register, sh_compact_do_registers_info,
5323         sh64_do_registers_info, sh_gdbarch_init): New functions.
5324
5325 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
5326
5327         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5328
5329 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
5330
5331         * linespec.c (decode_line_1): Check for a double quote after
5332         a filename correctly.
5333
5334 2002-05-10  Jim Blandy  <jimb@redhat.com>
5335
5336         Properly track the size of the current objfile's .debug_line section.
5337         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5338         (DWARF_LINE_SIZE): New macro.
5339         (dwarf2_build_psymtabs_hard): Record the line section's size in
5340         the partial symbol table.
5341         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5342         symbol table.
5343
5344 2002-05-10  Petr Sorfa  <petrs@caldera.com>
5345
5346         * ia64-tdep.c: Handle breakpoints on L instruction type
5347         in MLX instruction bundle by moving the breakpoint to
5348         the third slot (X instruction type) as L holds only data.
5349
5350 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
5351
5352         * dbxread.c (discarding_local_symbols_complaint): New complaint.
5353         (process_one_symbol): Complain about discarding local symbols
5354         due to a misplaced N_LBRAC entry.
5355
5356 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
5357
5358         From Daniel Berlin <dan@cgsoftware.com>
5359         * linespec.c (find_toplevel_char): '<' and '>' also increase and
5360         decrease the depth we are at, in the case of templates.
5361
5362 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5363
5364         * mips-tdep.c (mips_float_register_type): New function.
5365         (mips_double_register_type): New function.
5366         (mips_print_register): Use them.
5367         (do_fp_register_row): Likewise.
5368
5369 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
5370
5371         * signals/signals.c (signals): Remove conditional compilation around
5372         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
5373         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5374
5375 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5376
5377         * remote-rdp.c (remote_rdp_can_run): Remove.
5378
5379 2002-05-09  Tom Tromey  <tromey@redhat.com>
5380
5381         * jv-valprint.c (java_val_print): Handle `char' as a special case
5382         of TYPE_CODE_INT.
5383
5384 2002-05-09  Michael Snyder  <msnyder@redhat.com>
5385
5386         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5387         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5388         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5389         str r(0123),[sp,#nn].
5390         (arm_skip_prologue): Ditto.  Also make disassembly
5391         order-independent by placing it in a loop.
5392
5393 2002-05-06  Michael Snyder  <msnyder@redhat.com>
5394
5395         * stabsread.c (read_type): Add recognition for new attribute:
5396         "@V;" means that an array type is actually a vector.
5397         This is analogous to the vector flag that's been added to dwarf2.
5398
5399 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
5400
5401         * i386-tdep.h (i386_abi): New enum.
5402         (struct gdbarch_tdep): Replace os_ident member with abi.
5403         (i386_gdbarch_register_os_abi): New prototype.
5404         * i386-tdep.c (i386_abi_names): New array.
5405         (process_note_abi_tag_sections): Removed.
5406         (process_note_sections): New function.
5407         (i386_elf_abi_from_note, i386_elf_abi): New functions.
5408         (struct i386_abi_handler): New struct.
5409         (i386_abi_handler_list): New variable.
5410         (i386_gdbarch_register_os_abi): New function.
5411         (i386_gdbarch_init): Adapt for the changes given above.
5412
5413 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
5414
5415         * gregset.h: Say "GNU/Linux".
5416
5417 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
5418
5419         * gdbtypes.c : Add new builtin type for 64 bit vectors.
5420         (build_gdbtypes): Build builtin_type_v2_float.
5421         (_initialize_gdbtypes): Register new builtin type.
5422
5423 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
5424
5425         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5426         (clear_gdbarch_swap): New function.
5427         (initialize_non_multiarch): Call.
5428         (gdbarch_update_p): Before calling init(), swap out and clear the
5429         existing architecture.
5430         * gdbarch.c: Regenerate.
5431
5432 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5433
5434         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5435         alphanbsd-tdep.c.
5436
5437 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5438
5439         * sh-nbsd-nat.c: Rename to...
5440         * shnbsd-nat.c: ...this.
5441         * sh-nbsd-tdep.c: Rename to...
5442         * shnbsd-tdep.c: ...this.
5443         * sh-nbsd-tdep.h: Rename to...
5444         * shnbsd-tdep.h: ...this.
5445         * config/sh/nbsd.mh: Use shnbsd-nat.o.
5446         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5447
5448 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
5449
5450         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5451         concatenation for command help messages.
5452
5453 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5454
5455         * NEWS: Note new sh*-*-netbsdelf* configuration.
5456         * configure.host: Set gdb_host_cpu to sh for all sh*.
5457         (sh*-*-netbsdelf*): New host.
5458         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5459         (sh*-*-netbsdelf*): New target.
5460         * sh-nbsd-nat.c: New file.
5461         * sh-nbsd-tdep.c: New file.
5462         * sh-nbsd-tdep.h: New file.
5463         * config/sh/nbsd.mh: New file.
5464         * config/sh/nbsd.mt: New file.
5465         * config/sh/nm-nbsd.h: New file.
5466         * config/sh/tm-nbsd.h: New file.
5467
5468 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
5469
5470         * sh-tdep.c (sh_osabi_names): Declare.
5471         (process_note_abi_tag_sections): New function.
5472         (get_elfosabi): Ditto.
5473         (sh_gdbarch_register_os_abi): Ditto.
5474         (sh_dump_tdep): Ditto.
5475         _initialize_sh_tdep): Use gdbarch_register to register
5476         sh_gdbarch_init and sh_dump_tdep.
5477         * config/sh/tm-sh.h (sh_osabi): Declare.
5478         (gdbarch_tdep): Add sh_osabi and osabi_name members.
5479
5480 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
5481
5482         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5483         (thumb_scan_prologue): Ditto.
5484         (arm_find_callers_reg): Ditto.
5485         (arm_frame_chain): Ditto.
5486         (arm_init_extra_frame_info): Ditto.
5487         (arm_frame_saved_pc): Ditto.
5488         (arm_pop_frame): Ditto.
5489         (arm_push_return_address): New function.
5490         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5491         call_dummy_location, call_dummy_breakpoint_offset_p,
5492         call_dummy_breakpoint_offset, call_dummy_p,
5493         call_dummy_stack_adjust_p, call_dummy_words,
5494         sizeof_call_dummy_words, call_dummy_start_offset,
5495         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5496         call_dummy_address, push_return_address and push_dummy_frame for
5497         generic dummy frames.
5498
5499 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5500
5501         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5502         size computation for alloca.
5503         (sh_fp_frame_init_saved_regs): Likewise.
5504
5505 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
5506
5507         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5508         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5509         * arm-tdep.c (arm_store_return_value): Use them.
5510         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5511         * remote-rdp.c (remote_rdp_fetch_register): Use
5512         ARM_MAX_REGISTER_RAW_SIZE.
5513         (remote_rdp_store_register): Likewise.
5514
5515 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
5516
5517         * dwarf2cfi.c: Code cleanup, removed unused variables,
5518         added default labels to switch {} statements.
5519         * x86-64-tdep.c: Ditto.
5520         * x86-64-linux-nat.c: Ditto.
5521
5522 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
5523
5524         * solib.h: Protect against multiple inclusion.
5525
5526 2002-05-06  Jim Blandy  <jimb@redhat.com>
5527
5528         Add first preprocessor macro-expansion files.
5529         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5530         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5531         (splay_tree_h, macroexp_h, macrotab_h): New variable.
5532         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5533         (COMMON_OBS): Add macrotab.o, macroexp.o.
5534         (macroexp.o, macrotab.o): New rules.
5535
5536         Separate the job of reading the line number info statement program
5537         header (...expialidocious) out into its own function.
5538         * dwarf2read.c (struct line_head, struct filenames, struct
5539         directories): Replace with...
5540         (struct line_header): New structure, containing the full
5541         contents of the statement program header, including the
5542         include directory and file name tables.
5543         (read_file_scope): If we have line number info, instead of just
5544         calling dwarf_decode_lines to do all the work, call
5545         dwarf_decode_line_header first to get a `struct line_header'
5546         containing the data in the statement program header, and then
5547         pass that to dwarf_decode_lines, which will pick up where that
5548         left off.  Be sure to clean up the `struct line_header' object.
5549         (dwarf_decode_line_header, free_line_header, add_include_dir,
5550         add_file_name): New functions.
5551         (dwarf_decode_lines): Move all the code to read the statement
5552         program header into dwarf_decode_line_header.  Take the line
5553         header it built as the first argument, instead of the offset to
5554         the compilation unit's line number info.  Use the new `struct
5555         line_header' type instead of the old structures.  No need to do
5556         cleanups here now, since we don't allocate anything.
5557         (dwarf2_statement_list_fits_in_line_number_section,
5558         dwarf2_line_header_too_long): New complaints.
5559
5560 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
5561
5562         * gdbtypes.c (init_vector_type): New function.
5563         (build_builtin_type_vec128): Simplify the representation of SIMD
5564         registers.
5565         (build_gdbtypes): Initialize new builtin vector types.
5566         (_initialize_gdbtypes): Register new vector types with gdbarch.
5567         (builtin_type_v4_float, builtin_type_v4_int32,
5568         builtin_type_v8_int16, builtin_type_v16_int8,
5569         builtin_type_v2_int32, builtin_type_v4_int16,
5570         builtin_type_v8_int8): New (renamed) SIMD types.
5571
5572 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
5573
5574         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5575         (i387_fill_fxsave): Likewise.
5576
5577 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
5578
5579         * alpha-tdep.c (alpha_extract_return_value): Don't use
5580         non-constant array size in prototype.
5581
5582 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5583
5584         From Brian Taylor <briant at model dot com>:
5585         * ui-out.c (ui_out_field_core_addr): Use the function
5586         longest_local_hex_string_custom'to format addresses > 32 bits
5587         wide.
5588
5589         * ui-out.c (ui_out_field_core_addr): Update comment.
5590
5591 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5592
5593         * stack.c (select_and_print_frame): Make static.  Delete the
5594         parameter `level'.
5595         (func_command): Update call.
5596         (select_frame_command): Delete code computing the frame level.
5597         * frame.h (select_and_print_frame): Delete declaration.
5598
5599 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5600
5601         * sparc-tdep.c (sparc_get_saved_register): Comment why
5602         get_prev_frame call is safe.
5603
5604 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5605
5606         * frame.h (select_frame): Delete level parameter.
5607         * stack.c (select_frame): Update.  Use frame_relative_level to
5608         obtain the frame's level.
5609         (select_and_print_frame): Update call.
5610         (select_frame_command): Ditto.
5611         (up_silently_base): Ditto.
5612         (down_silently_base): Ditto.
5613         * ocd.c (ocd_start_remote): Ditto.
5614         * remote-rdp.c (remote_rdp_open): Ditto.
5615         * remote-mips.c (mips_initialize): Ditto.
5616         (common_open): Ditto.
5617         * remote-e7000.c (e7000_start_remote): Ditto.
5618         * m3-nat.c (select_thread): Ditto.
5619         * hppa-tdep.c (child_get_current_exception_event): Ditto.
5620         (child_get_current_exception_event): Ditto.
5621         * varobj.c (varobj_create): Ditto.
5622         (varobj_update): Ditto.
5623         (c_value_of_root): Ditto.
5624         * tracepoint.c (finish_tfind_command): Ditto.
5625         * corelow.c (core_open): Ditto.
5626         * arch-utils.c (generic_prepare_to_proceed): Ditto.
5627         * thread.c (info_threads_command): Ditto.
5628         (switch_to_thread): Ditto.
5629         * infrun.c (normal_stop): Ditto.
5630         (restore_selected_frame): Ditto.
5631         (restore_inferior_status): Ditto.
5632         * breakpoint.c (insert_breakpoints): Ditto.
5633         (watchpoint_check): Ditto.
5634         (bpstat_stop_status): Ditto.
5635         (do_enable_breakpoint): Ditto.
5636         * blockframe.c (flush_cached_frames): Ditto.
5637         (reinit_frame_cache): Ditto.
5638
5639 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5640
5641         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5642         maintainer.
5643
5644 2002-05-04  Jim Blandy  <jimb@redhat.com>
5645
5646         * gdbtypes.c (replace_type): Doc fix.
5647
5648 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5649
5650         * valprint.c (strcat_longest): Delete commented out function.
5651         Update copyright.
5652
5653 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5654
5655         * MAINTAINERS: Mark a29k as deleted.
5656         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
5657         Move new configurations to the top.
5658         * configure.tgt: Remove a29k.
5659         * config/a29k/tm-vx29k.h: Delete.
5660         * config/a29k/vx29k.mt: Delete.
5661         * config/a29k/tm-a29k.h: Delete.
5662         * config/a29k/a29k-udi.mt: Delete.
5663         * config/a29k/a29k.mt: Delete.
5664         * a29k-tdep.c: Delete.
5665         * remote-udi.c: Delete.
5666         * remote-mm.c: Delete.
5667         * remote-eb.c: Delete.
5668         * remote-adapt.c: Delete.
5669         * Makefile.in: Remove obsolete code.
5670         * config/s390/s390x.mt: Ditto.
5671         * config/s390/s390.mt: Ditto.
5672         * config/sparc/sparclynx.mh: Ditto.
5673         * config/sparc/linux.mh: Ditto.
5674         * config/pa/hppaosf.mh: Ditto.
5675         * config/pa/hppabsd.mh: Ditto.
5676         * config/ns32k/nbsd.mt: Ditto.
5677         * config/mips/vr5000.mt: Ditto.
5678         * config/m68k/sun3os4.mh: Ditto.
5679         * config/m68k/nbsd.mt: Ditto.
5680         * config/m68k/m68klynx.mh: Ditto.
5681         * config/m32r/m32r.mt: Ditto.
5682         * config/i386/x86-64linux.mt: Ditto.
5683         * config/i386/nbsdelf.mt: Ditto.
5684         * config/i386/nbsd.mt: Ditto.
5685         * config/i386/i386lynx.mh: Ditto.
5686
5687 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
5688
5689         * target.c (debug_print_register): New function.  Handle oversize
5690         registers.
5691         (debug_to_fetch_registers): Call.
5692         (debug_to_store_registers): Call.
5693
5694 2002-05-03  Jim Blandy  <jimb@redhat.com>
5695
5696         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5697         (read_type): Doc fix.
5698         * gdbtypes.c (replace_type): Doc fix.
5699
5700         * stabsread.c (multiply_defined_struct): New complaint.
5701         (read_struct_type): If the type we were passed isn't empty, or
5702         incomplete, don't read the new struct type into it; complain,
5703         and return the original type unchanged.  Take a new `type_code'
5704         argument, which is the type code for the new type.
5705         (read_type): Rather than storing the type's type code here, pass
5706         it as an argument to read_struct_type, and let that take care of
5707         storing it.  That way, we don't overwrite the original type code,
5708         so read_struct_type can use it to decide whether we're overwriting
5709         something we shouldn't.
5710         (complain_about_struct_wipeout): New function.
5711
5712 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
5713
5714         * gdbarch.sh: Assert that gdbarch is non-NULL.
5715         * gdbarch.c: Regenerate.
5716
5717 2002-05-03  Jason Merrill  <jason@redhat.com>
5718
5719         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5720         and return NULL.
5721
5722 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
5723
5724         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5725         (x86_64_dwarf2gdb_regno_map_length),
5726         (x86_64_dwarf2_reg_to_regnum): Added.
5727         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5728         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5729         (_initialize_x86_64_tdep): Synced with the change above.
5730         (x86_64_skip_prologue): Reformulated message.
5731
5732 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
5733
5734         * f-exp.y: Also use new prev_lexptr variable
5735         to improve error reporting. Based on Michael Snyder
5736         2002-04-24 dated patch to c-exp.y.
5737         * jv-exp.y: Likewise.
5738         * m2-exp.y: Likewise.
5739
5740 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
5741
5742         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5743         we are dealing with vectors.
5744
5745 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5746
5747         * config/m68k/tm-nbsd.h: Obvious fix,
5748         correct machine name.
5749
5750 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5751
5752         * p-typeprint.c (pascal_type_print_base): Add support
5753         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5754
5755 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5756
5757         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5758         for fondamental pascal 'char' type.
5759
5760 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
5761
5762         * p-lang.h (is_pascal_string_type): Declaration changed,
5763         new sixth argument of type char ** added.
5764         * p-lang.c (is_pascal_string_type): Implementation
5765         changed. Args length_pos, length_size, string_pos, char_size
5766         can now be NULL. New argument arrayname set to the field
5767         name of the char array. Return value set to char array
5768         field index plus one.
5769         * p-valprint.c (pascal_val_print): Adapt to new declaration of
5770         is_pascal_string_type function.
5771
5772 2002-05-02  Andrew Cagney  <cagney@redhat.com>
5773
5774         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5775         <cagney@redhat.com> change.
5776         * gdbarch.c: Regenerate.
5777
5778 2002-05-02  Andrew Cagney  <cagney@redhat.com>
5779
5780         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5781         before probing for a new one.  Detect errorenous gdbarch_init
5782         functions.
5783         * gdbarch.c: Regenerate.
5784
5785 2002-05-01  Andrew Cagney  <cagney@redhat.com>
5786
5787         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5788         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
5789         * config/v850/tm-v850.h: Ditto.  Update copyright.
5790
5791 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
5792
5793         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5794         current_gdbarch.
5795
5796 2002-04-30  Michael Snyder  <msnyder@redhat.com>
5797
5798         * arm-tdep.c: Whitespace clean-ups.
5799         (arm_skip_prologue): Fix thinko; two lines
5800         should have been removed as part of 4/24 change.
5801
5802 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
5803
5804         * rs6000-tdep.c: Added comment describing how fpscr register
5805         numbers were chosen.
5806
5807 2002-04-30  Michael Snyder  <msnyder@redhat.com>
5808
5809         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5810
5811 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
5812
5813         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5814         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5815         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5816
5817 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
5818
5819         From Louis Hamilton <hamilton@redhat.com>:
5820         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5821         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5822         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5823         not bfd-private xcoff data, to determine wordsize.
5824         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5825
5826 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
5827
5828         GDB 5.2 released from 5.2 branch.
5829
5830 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
5831
5832         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5833         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5834         (x86_64_register_info_table): Added comments with register numbers.
5835
5836 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
5837
5838         * rs6000-tdep.c (rs6000_extract_return_value,
5839         rs6000_store_return_value): Handle returning vectors.
5840         (rs6000_gdbarch_init): Use
5841         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5842         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5843         New function.
5844         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5845         vectors.
5846         (ppc_sysv_abi_push_arguments): Handle vector parameters.
5847         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5848
5849 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
5850
5851         * hpread.c (hpread_psymtab_to_symtab_1,
5852         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5853         with fprintf_unfiltered (gdb_stderr,...).
5854
5855 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
5856
5857         * remote-array.c (printf_monitor, write_monitor,
5858         array_insert_breakpoint, array_remove_breakpoint ):
5859         Replace fprintf (stderr,...
5860         with fprintf_unfiltered (gdb_stderr,....
5861         * remote-es.c: Likewise.
5862         * remote-os9k.c: Likewise.
5863         * remote-st.c: Likewise.
5864
5865 2002-04-28  Andreas Schwab  <schwab@suse.de>
5866
5867         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5868         linux-proc.o and gcore.o.
5869
5870 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
5871
5872         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5873         code without frame pointers.
5874
5875 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
5876
5877         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5878         ON_STACK is needed.
5879
5880 2002-04-26  Ben Elliston  <bje@redhat.com>
5881
5882         * target.c (do_xfer_memory): Correct reference to the new option
5883         "trust-readonly-sections".
5884
5885 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
5886
5887         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5888         * gdbtypes.c (recursive_dump_type): Output the vector flag.
5889         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5890         vectors.
5891         (read_array_type): Record the fact that this array type is really a
5892         vector (i.e. are passed in by value).
5893
5894 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
5895
5896         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5897         * alpha-tdep.c (alpha_sigcontext_addr): New function.
5898         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5899         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5900         * alpha-linux-tdep.c: Include frame.h.
5901         (alpha_linux_sigcontext_addr): New function.
5902         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5903         alpha_linux_sigcontext_addr.
5904         * alpha-osf1-tdep.c: Include gdbcore.h.
5905         (alpha_osf1_sigcontext_addr): New function.
5906         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5907         alpha_osf1_sigcontext_addr.
5908         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5909         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5910
5911 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
5912
5913         * stack.c (selected_frame_level):
5914         (select_frame): Do not set selected_frame_level.
5915         * frame.h (selected_frame_level): Delete declaration.
5916
5917 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
5918
5919         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5920         convert_from_func_ptr-addr when AIX / PowerOpen.
5921
5922 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
5923
5924         * valops.c (hand_function_call): Call
5925         generic_save_call_dummy_addr.
5926         * frame.h (generic_save_call_dummy_addr): Declare.
5927         * blockframe.c (struct dummy_frame): Add fields call_lo and
5928         call_hi.
5929         (generic_find_dummy_frame): Check for PC in range call_lo to
5930         call_hi instead of entry_point_address.
5931         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5932         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
5933         (generic_save_call_dummy_addr): New function.
5934
5935 2002-04-24  David S. Miller  <davem@redhat.com>
5936
5937         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5938         sparc_skip_prologue.
5939         (sparc_skip_prologue): Kill frameless_p arg, and use line number
5940         information to find prologue when possible.
5941         (sparc_prologue_frameless_p): Call examine_prologue directly.
5942         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5943         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5944         second argument.
5945         (SKIP_PROLOGUE): Likewise.
5946
5947 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
5948
5949         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5950         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5951         indicate that the condition it was testing is always true.
5952         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5953         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5954         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5955
5956 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
5957
5958         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5959         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5960         tdep->jb_pc and tdep->jb_elt_size.
5961         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5962         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5963         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5964         * alpha-nat.c (get_longjmp_target): Remove.
5965         (JB_ELEMENT_SIZE): Ditto.
5966         (JB_PC): Ditto.
5967         * alpha-tdep.c (alpha_get_longjmp_target): New function.
5968         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
5969         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5970         to alpha_get_longjmp_target.
5971         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5972         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5973         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5974
5975 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
5976
5977         * README: Update to GDB 5.2.
5978
5979 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
5980
5981         * gdbarch.sh (LC_ALL): Set to `c'.
5982
5983 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5984
5985         * avr-tdep.c: Ran through gdb_indent.sh.
5986
5987 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5988
5989         * MAINTAINERS: Add myself as AVR maintainer.
5990         * NEWS: Note new target avr.
5991
5992 2002-04-25  Theodore A. Roth  <troth@verinet.com>
5993
5994         * Makefile.in: Add support for AVR target.
5995         * configure.tgt: Add support for AVR target.
5996         * avr-tdep.c: New file
5997         * config/avr/avr.mt: New file.
5998
5999 2002-04-25  Theodore A. Roth  <troth@verinet.com>
6000
6001         * MAINTAINERS: Add myself to write-after-approval.
6002
6003 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
6004
6005         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6006         with fprintf_unfiltered (gdb_stderr,....
6007
6008 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6009
6010         Fix PR gdb/508.
6011         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6012
6013 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
6014
6015         * p-exp.y: Also use new prev_lexptr variable
6016         to improve error reporting. Based on Michael Snyder
6017         2002-04-24 dated patch to c-exp.y.
6018
6019 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6020
6021         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6022         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6023         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
6024         to 0.
6025         * config/alpha/tm-alpha.h: Remove forward decls of struct type
6026         and struct value.
6027         (FUNCTION_START_OFFSET): Remove.
6028         (BREAKPOINT): Ditto.
6029
6030 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
6031
6032         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6033         * NEWS: Ditto.
6034
6035 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6036
6037         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6038         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6039         alpha_linux_pc_in_sigtramp.
6040         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6041         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6042         alpha_osf1_pc_in_sigtramp.
6043         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6044         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6045         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6046         alphafbsd_pc_in_sigtramp.
6047         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6048         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6049         alphanbsd_pc_in_sigtramp.
6050         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6051         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6052
6053 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6054
6055         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6056
6057 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6058
6059         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6060         alphanbsd-tdep.c.
6061         (alphanbsd-nat.o): New dependency list.
6062         (alphanbsd-tdep.o): Ditto.
6063         * NEWS: Note new native NetBSD/alpha configuration.
6064         * alphanbsd-nat.c: New file.
6065         * alphanbsd-tdep.c: Ditto.
6066         * configure.host (alpha*-*-netbsd*): New host.
6067         * configure.tgt (alpha*-*-netbsd*): New target.
6068         * config/alpha/nbsd.mh: New file.
6069         * config/alpha/nbsd.mt: Ditto.
6070         * config/alpha/nm-nbsd.h: Ditto.
6071         * config/alpha/tm-nbsd.h: Ditto.
6072
6073 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6074
6075         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6076         (alpha-osf1-tdep.o): New dependency list.
6077         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6078         and skip_sigtramp_frame members.
6079         * alpha-linux-tdep.c: Include gdbcore.h.
6080         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6081         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6082         * alpha-osf1-tdep.c: New file.
6083         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6084         alpha-osf1-dep.c.
6085         (alpha_frame_past_sigtramp_frame): New function.
6086         (alpha_dynamic_sigtramp_offset): Ditto.
6087         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6088         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6089         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6090         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6091         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6092         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6093         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6094         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6095         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6096         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6097         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
6098         to find_solib_trampoline_target.
6099         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6100         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6101         (SKIP_TRAMPOLINE_CODE): Remove.
6102         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6103         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6104         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6105         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6106         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6107         (PROC_SIGTRAMP_MAGIC): Ditto.
6108         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6109         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6110         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6111         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6112         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6113
6114 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
6115
6116         * NEWS: Note that Alpha targets are now multi-arch.
6117
6118 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6119
6120         * parser-defs.h (prev_lexptr): New external variable.
6121         * parse.c (parse_exp_1): Set prev_lexptr to null before
6122         calling the language-specific parser.
6123         * c-exp.y (yylex): Set prev_lexptr to start of current token.
6124         (yyerror): Use prev_lexptr in error reporting.
6125
6126 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
6127
6128         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6129         * gregset.h: If FILL_FPXREGSET is defined, provide
6130         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6131         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6132         is defined, call fill_fpxregset.
6133
6134 2002-04-24  Roland McGrath  <roland@frob.com>
6135
6136         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6137         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6138         (supply_gregset, supply_fpregset): New functions.
6139
6140         * gnu-nat.c (gnu_find_memory_regions): New function.
6141         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6142         (gnu_xfer_memory): Add a cast.
6143
6144 2002-04-24  Michael Snyder  <msnyder@redhat.com>
6145
6146         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6147         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
6148         of argument regs ("str r(0123), [r11, #-nn"]).
6149         (arm_skip_prologue): Better handling for frameless functions.
6150         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
6151         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6152
6153 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
6154
6155         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6156         NUM_PSEUDO_REGS can be used.
6157
6158 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
6159
6160         * arch-utils.h: Update copyright.
6161
6162         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6163         * gdbarch.h, gdbarch.c: Re-generate.
6164
6165         * inferior.h (IN_SIGTRAMP): Delete definition.
6166         * arch-utils.c (legacy_pc_in_sigtramp): New function.
6167         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6168
6169         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6170         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6171         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
6172         (find_proc_framesize): Ditto.
6173         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6174         (alpha_init_extra_frame_info): Ditto.
6175         * infrun.c (handle_inferior_event): Ditto.
6176         (handle_inferior_event): Ditto.
6177         (check_sigtramp2): Ditto.
6178         * blockframe.c (create_new_frame): Ditto.
6179         (get_prev_frame): Ditto.
6180         * ppc-linux-tdep.c: Update comments.
6181         * i386-linux-tdep.c: Update comments.
6182         * breakpoint.c (bpstat_what): Update comment.
6183
6184 2002-04-24  David S. Miller  <davem@redhat.com>
6185
6186         * i960-tdep.c (register_in_window_p): New function.
6187         (i960_find_saved_register): Use it instead of
6188         REGISTER_IN_WINDOW_P.
6189         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6190
6191         * symtab.h (find_stab_function_addr): Kill extern.
6192         * minsyms.c (find_stab_function_addr): Remove from here...
6193         * dbxread.c: ... to here, and mark it static.
6194
6195 2002-04-20  David S. Miller  <davem@redhat.com>
6196
6197         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6198         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6199
6200 2002-04-21  David S. Miller  <davem@redhat.com>
6201
6202         * remote-vxsparc.c (vx_read_register): Fix typo, we want
6203         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6204         (vx_write_register): Likewise.
6205
6206 2002-04-23  J. Brobecker  <brobecker@gnat.com>
6207
6208         * source.c (is_regular_file): New function.
6209         (openp): Check wether file to open is a regular file
6210         to avoid opening directories.
6211
6212 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6213
6214         * findvar.c (extract_signed_integer): Cast printf argument
6215         to suppress format warning.
6216         (extract_unsigned_integer): Likewise.
6217         * infcmd.c (registers_info): Likewise.
6218         * top.c (get_prompt_1): Likewise.
6219         * valops.c (value_assign): Likewise.
6220         * valprint.c (print_decimal): Likewise.
6221
6222 2002-04-22  H.J. Lu  (hjl@gnu.org)
6223
6224         * c-exp.y (typebase): Support
6225
6226         [long|long long|short] [signed|unsigned] [int|]
6227
6228         and
6229
6230         signed [long|long long|short] int
6231
6232 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6233
6234         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6235         and vax-tdep.h.
6236         * vax-tdep.h: New file.
6237         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6238         Make several routines static.
6239         (vax_get_saved_register): New function.
6240         (vax_gdbarch_init): New function.
6241         (_initialize_vax_tdep): Register vax_gdbarch_init.
6242         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6243         Remove macros now under the control of gdbarch.
6244
6245 2002-04-22  Michael Snyder  <msnyder@redhat.com>
6246
6247         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6248         Some whitespace and coding standards tweaks.
6249
6250 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6251
6252         * vax-tdep.c: Include regcache.h.
6253         (vax_call_dummy_words): New.
6254         (sizeof_vax_call_dummy_words): New.
6255         (vax_fix_call_dummy): New function.
6256         (vax_saved_pc_after_call): Ditto.
6257         * config/vax/tm-vax.h: Don't include regcache.h.
6258         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6259         (CALL_DUMMY): Remove.
6260         (CALL_DUMMY_WORDS): Define.
6261         (SIZEOF_CALL_DUMMY_WORDS): Define.
6262         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6263
6264 2002-04-18  Michael Snyder  <msnyder@redhat.com>
6265
6266         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6267
6268 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6269
6270         * vax-tdep.c (vax_frame_chain): New function.
6271         (vax_push_dummy_frame): Ditto.
6272         (vax_pop_frame): Ditto.
6273         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6274         (FRAMELESS_FUNCTION_INVOCATION): Use
6275         generic_frameless_function_invocation_not.
6276         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6277         (POP_FRAME): Use vax_pop_frame.
6278
6279 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6280
6281         * vax-tdep.c (vax_store_struct_return): New function.
6282         (vax_extract_return_value): Ditto.
6283         (vax_store_return_value): Ditto.
6284         (vax_extract_struct_value_address): Ditto.
6285         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6286         vax_store_struct_return.
6287         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6288         (STORE_RETURN_VALUE): Use vax_store_return_value.
6289         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6290
6291 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6292
6293         * vax-tdep.c (vax_frame_saved_pc): New function.
6294         (vax_frame_args_address_correct): Ditto.
6295         (vax_frame_args_address): Ditto.
6296         (vax_frame_locals_address): Ditto.
6297         (vax_frame_num_args): Move code to be in proximity to
6298         other frame-related functions.
6299         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6300         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6301         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6302         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6303         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6304
6305 2002-04-22  H.J. Lu  (hjl@gnu.org)
6306
6307         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6308         includedir.
6309
6310 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6311
6312         * vax-tdep.c (vax_frame_init_saved_regs): New function.
6313         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6314         (FRAME_INIT_SAVED_REGS): New macro.
6315
6316 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6317
6318         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6319
6320 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6321
6322         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6323         where needed.
6324         (fetch_osf_core_registers): Likewise.
6325         (supply_gregset): Likewise.
6326
6327 2002-04-22  J. Brobecker  <brobecker@gnat.com>
6328
6329         * symfile.h (get_section_index): Define.
6330         * symfile.c (get_section_index): New function.
6331         * mdebugread.c (SC_IS_SBSS): New macro.
6332         (SC_IS_BSS): Return true for the scBss storage class only, as
6333         the scSBss storage class refers to the .sbss section.
6334         (parse_partial_symbols): Discard the symbols which associated
6335         section does not exist.
6336         Make sure to use the .sbss section index for symbols which
6337         storage class is scBss, rather than using the .bss section index.
6338
6339 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6340
6341         * vax-tdep.c: Update copyright years.
6342         (vax_register_name): New function.
6343         (vax_register_byte): Ditto.
6344         (vax_register_raw_size): Ditto.
6345         (vax_register_virtual_size): Ditto.
6346         (vax_register_virtual_type): Ditto.
6347         * config/vax/tm-vax.h: Update copyright years.
6348         (REGISTER_NAMES): Remove.
6349         (REGISTER_NAME): Define.
6350         (REGISTER_BYTE): Use vax_register_byte.
6351         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6352         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6353         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6354
6355 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6356
6357         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6358         declaration
6359         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6360
6361 2002-04-21  David S. Miller  <davem@redhat.com>
6362
6363         * arch-utils.c (generic_prologue_frameless_p): Kill
6364         SKIP_PROLOGUE_FRAMELESS_P code.
6365         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6366         references.
6367         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6368         * arc-tdep.c (arc_prologue_frameless_p): Implement.
6369         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6370         references.
6371         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6372         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6373         (sparc_gdbarch_init): Pass it to
6374         set_gdbarch_prologue_frameless_p.
6375
6376 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6377
6378         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6379         (alphabsd-nat.o): New dependency list.
6380
6381 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6382
6383         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6384         alphafbsd-tdep.c.
6385         (alpha-linux-tdep.o): New dependency list.
6386         (alphafbsd-tdep.o): Likewise.
6387
6388 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6389
6390         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
6391         to here...
6392         * alpha-tdep.c: ...from here.
6393         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6394
6395 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6396
6397         * config/alpha/tm-alpha.h: Move alpha_software_single_step
6398         prototype from here...
6399         * alpha-tdep.h: ...to here.
6400
6401 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6402
6403         * frame.h (selected_frame_level): Document as deprecated.
6404         (frame_relative_level): Declare.
6405         * stack.c (frame_relative_level): New function.
6406         (selected_frame_level): Document as deprecated.
6407         (select_frame): Do not set the selected_frame_level.
6408
6409         * stack.c (frame_info, record_selected_frame): Update.
6410         (frame_command, current_frame_command): Update.
6411         (up_silently_base, up_command, down_silently_base): Update.
6412         (down_command): Update.
6413         * inflow.c (kill_command): Update.
6414         * tracepoint.c (finish_tfind_command): Update.
6415         * corelow.c (core_open): Update.
6416         * thread.c (info_threads_command): Update.
6417         (do_captured_thread_select): Update.
6418         * infcmd.c (finish_command): Update.
6419         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6420
6421 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6422
6423         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6424
6425 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6426
6427         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
6428         type const.
6429
6430 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6431
6432         * alphafbsd-tdep.c: Update copyright years.  Include
6433         alpha-tdep.h.
6434         (alphafbsd_use_struct_convention): Make static.
6435         (alphafbsd_init_abi): New function.
6436         (_initialize_alphafbsd_tdep): New function.
6437         * config/alpha/tm-fbsd.h: Update copyright years.
6438         (USE_STRUCT_CONVENTION): Remove.
6439
6440 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6441
6442         * alpha-tdep.c (alpha_abi_handler): New structure to describe
6443         an Alpha ABI variant.
6444         (alpha_abi_handler_list): Declare.
6445         (alpha_gdbarch_register_os_abi): New function.
6446         (alpha_gdbarch_init): Give registered ABI variant handlers a
6447         chance to tweak the gdbarch once we have set up defaults.
6448         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6449
6450 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6451
6452         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6453         to standard_coerce_float_to_double.
6454         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6455
6456 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6457
6458         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6459         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6460         from gdbarch_tdep rather than a constant.
6461         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6462         the default text address for all Alpha Unix ABIs.
6463         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6464         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6465
6466 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
6467
6468         * alpha-tdep.h: New file.  Includes several Alpha target constants
6469         taken from...
6470         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
6471         let gdbarch deal with.
6472         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6473         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6474         to dependency list.
6475         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
6476         Alpha target register names.
6477         * alphabsd-nat.c: Likewise.
6478         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
6479         Alpha target register names.  Make serveral routines static.
6480         (alpha_get_saved_register): New function.
6481         (alpha_abi_names): New.
6482         (process_note_abi_tag_sections): New function.
6483         (get_elfosabi): New function.
6484         (alpha_gdbarch_init): New function.
6485         (alpha_dump_tdep): New function.
6486         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6487
6488 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6489
6490         * frame.c (find_saved_register): Delete #ifdef
6491         HAVE_REGISTER_WINDOWS code.
6492         * config/sparc/tm-sparc.h: Update comments.
6493         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6494
6495 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
6496
6497         * i960-tdep.c (i960_find_saved_register): New function.
6498         (i960_get_saved_register): New function.
6499         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6500         (i960_get_saved_register): Declare.
6501         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6502
6503 2002-04-20  David S. Miller  <davem@redhat.com>
6504
6505         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6506
6507 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6508
6509         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6510         instead of NUM_PSEUDO_REGS.
6511
6512 2002-04-20  David S. Miller  <davem@redhat.com>
6513
6514         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6515         GDB_MULTI_ARCH_PARTIAL
6516         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6517         define, let tm-sp64.h do it.
6518
6519 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
6520
6521         * frame.c (find_saved_register): Avoid a NULL pointer
6522         dereference and actually walk the frame list.
6523
6524 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
6525
6526         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6527         sorted in most most-recent-used order.  Document.
6528         * gdbarch.h, gdbarch.c: Regenerate.
6529
6530 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
6531
6532         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6533         instead of ->prev.
6534         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6535         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6536         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6537         instead of ->prev.
6538
6539 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
6540
6541         Fix PR gdb/471.
6542         * gdbtypes.c (init_simd_type): Rewrite using new functions.
6543         (build_builtin_type_vec128): Ditto.
6544         (append_composite_type_field): Fix calculation of type length in
6545         union case.
6546
6547 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
6548
6549         * config/djgpp/README: Update.
6550
6551         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6552         compiler warnings.
6553
6554 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
6555
6556         * alpha-tdep.c (setup_arbitrary_frame): Rename...
6557         (alpha_setup_arbitrary_frame): ...to this.
6558         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6559         for alpha_setup_arbitrary_frame.
6560
6561 2002-04-18  Andrew Cagney  <cagney@redhat.com>
6562
6563         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6564         * gdbarch.h, gdbarch.c: Regenerate.
6565
6566         * defs.h (breakpoint_from_pc_fn): Delete type definition.
6567         * target.h (memory_breakpoint_from_pc): Update declaration.
6568         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6569
6570         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6571         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6572         * mem-break.c (memory_breakpoint_from_pc): Ditto.
6573         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6574         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6575         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6576         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6577         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6578         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6579         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6580         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6581         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6582
6583         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6584         const pointer.
6585         * monitor.c (monitor_insert_breakpoint): Ditto.
6586         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6587
6588         * config/mcore/tm-mcore.h: Update copyright.
6589         * mem-break.c: Ditto.
6590         * xstormy16-tdep.c: Ditto.
6591
6592 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6593
6594         * p-exp.y: Add precedence rule for '^' token.
6595         This removes the shift/reduce conflicts.
6596         Remove the comment concerning these shift/reduce conflicts.
6597
6598 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
6599
6600         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6601         (registers_powerpc_nofp): New register set for processors
6602         without floating point unit.
6603
6604 2002-04-18  David S. Miller  <davem@redhat.com>
6605
6606         * MAINTAINERS: Add myself to write-after-approval.
6607
6608 2002-04-17  Michael Snyder  <msnyder@redhat.com>
6609
6610         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6611
6612 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6613
6614         * rs6000-tdep.c (frame_initial_stack_address): Use
6615         frame_register_read to read the alloca_reg.
6616
6617 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6618
6619         * frame.c (find_saved_register): Find saved registers in the next
6620         not prev frame.
6621         Fix PR gdb/365.
6622
6623 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
6624
6625         * gdbarch.sh (LANG): Set to ``c''.
6626
6627 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
6628
6629         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6630
6631 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
6632
6633         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6634         Update copyright.
6635
6636         * hpread.c (hpread_get_lntt): Add declaration.
6637         Also fix PR gdb/391.
6638
6639 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
6640
6641         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6642         * aclocal.m4, configure: Re-generate.
6643         Fix PR gdb/391.
6644
6645 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
6646
6647         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6648         instead of tm_print_insn.
6649
6650 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
6651
6652         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6653
6654 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
6655
6656         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6657         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6658         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6659
6660 2002-04-12  Don Howard  <dhoward@redhat.com>
6661
6662         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6663         max_user_call_depth.
6664         (init_cmd_lists): Initialize the new value;
6665         * cli/cli-script.c (execute_user_command): Limit the call depth of
6666         user defined commands.  This avoids a core-dump when user commands
6667         are infinitly recursive.
6668
6669 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6670
6671         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6672         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6673         from tdep struct instead of DEFAULT_LR_SAVE.
6674         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6675         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6676         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6677
6678 2002-04-12  Michael Snyder  <msnyder@redhat.com>
6679
6680         * Remote.c: Spelling fix.
6681         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6682         If no symbol found for "sbrk", try "_sbrk".
6683         (make_output_phdrs): Use bfd_section_name.
6684         (gcore_copy_callback): Use bfd_section_name.
6685         * eval.c: Indentation fix-ups.
6686         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6687         in case it gets applied to an address that is already
6688         in the instruction space.
6689         * cli/cli-decode.c (help_list): Allow long lines to wrap.
6690         * symfile.c: Fix indentation, long lines.
6691         * source.c: White space fix-up.
6692
6693 2002-04-12  Andrew Cagney  <cagney@redhat.com>
6694
6695         * defs.h (read_relative_register_raw_bytes): Delete declaration.
6696         * frame.c (frame_register_read): New function.  Return non-zero on
6697         success.
6698         (read_relative_register_raw_bytes_for_frame): Delete.
6699         (read_relative_register_raw_bytes): Delete.
6700         * frame.h (frame_register_read): Declare.
6701         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
6702         * sh-tdep.c: Ditto.
6703         * infcmd.c (do_registers_info): Ditto.
6704         * hppa-tdep.c: Ditto.
6705         * rs6000-tdep.c: Ditto.
6706         * h8500-tdep.c: Ditto.
6707         * mips-tdep.c: Ditto.
6708         * h8300-tdep.c: Ditto.
6709         * z8k-tdep.c: Ditto.
6710
6711 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6712
6713         From Jimi X <jimix@watson.ibm.com>:
6714         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6715         64-bit SysV ABI.
6716
6717 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6718
6719         From Jimi X <jimix@watson.ibm.com>:
6720         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6721         bfd info.
6722
6723 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
6724
6725         From Jimi X <jimix@watson.ibm.com>:
6726         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6727         register sets for these processor variants.
6728
6729 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
6730
6731         * regformats/reg-ppc.dat: Support FPSCR.
6732
6733 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
6734
6735         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6736         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6737         Add fpscr as an invalid/unfetchable register.
6738         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6739         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6740         (fill_fpregset): Add support for register fpscr.
6741         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6742         (fill_gregset): Account for the fact that register ``mq'' might
6743         not exist.
6744         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6745         (registers_power): Add fpscr to register set at slot 71.
6746         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6747         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
6748
6749 2002-04-11  Michael Snyder  <msnyder@redhat.com>
6750
6751         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6752         * configure: Regenerate.
6753         * config.in: Regenerate.
6754         * acconfig.h: Add define for _SYSCALL32.
6755         * core-sol2.c: Remove #define _SYSCALL32.
6756         * solib-legacy.c: Remove #define _SYSCALL32.
6757
6758 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6759
6760         * stack.c (select_frame): Cleanup internal error message, do not
6761         use %p.
6762
6763 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6764
6765         * stack.c (select_frame): Check that selected_frame and the
6766         specified level are as expected.
6767         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6768         Update copyright.
6769         * frame.h (struct frame_info): Add field `level'.  Update
6770         copyright.
6771         Work-in-progress PR gdb/464.
6772
6773 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
6774
6775         * maint.c (maint_print_section_info): Rename print_section_info.
6776         (print_bfd_section_info, print_objfile_section_info): Update.
6777         * inferior.h (struct gdbarch): Add opaque declaration.
6778         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6779         * gdbarch.h: Regenerate.
6780
6781 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
6782
6783         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6784         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6785         (kernel_u_size): Added.
6786         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6787         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6788
6789 2002-04-04  Jim Ingham  <jingham@apple.com>
6790
6791        * valarith.c (find_size_for_pointer_math): New function, either returns
6792        the size for a pointer's target, returns 1 for void *, or errors for
6793        incomplete types.
6794        (value_add, value_sub): use find_size_for_pointer_math.
6795
6796 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6797
6798         * linux-low.c (linux_look_up_symbols): New hook.
6799         (linux_target_ops): Add linux_look_up_symbols.
6800         * remote-utils.c (decode_address): New function.
6801         (look_up_one_symbol): New function.
6802         * server.c (handle_query): Call target look_up_symbols hook.
6803         * server.h (look_up_one_symbol): Add prototype.
6804         * target.h (struct target_ops): Add look_up_symbols hook.
6805
6806 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
6807
6808         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6809         override FP_REGNUM with frame->fp.  Update copyright.
6810         * parse.c (num_std_regs, std_regs): Delete.
6811         (target_map_name_to_register): Do not search std_regs.  Update
6812         function description.
6813         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6814         declarations.  Update copyright.
6815         Fix PR gdb/251.
6816
6817 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
6818
6819         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6820         after the last symbol in a block.
6821
6822 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
6823
6824         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6825         is non zero as a found symbol.
6826
6827 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
6828
6829         * findvar.c: Include "builtin-regs.h".
6830         (value_of_register): Call value_of_builtin_reg when applicable.
6831         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6832         (target_map_name_to_register): Call
6833         builtin_reg_map_name_to_regnum.
6834         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6835         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6836         (builtin_regs_h): Define.
6837         (builtin-regs.o): New target.
6838         (findvar.o): Add $(builtin_regs_h).
6839         * builtin-regs.c, builtin-regs.h: New files.
6840         * std-regs.c: New file.
6841         Partial fix for PR gdb/251.
6842
6843 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6844
6845         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6846         it's no longer required.
6847
6848 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
6849
6850         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6851
6852 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6853
6854         From Jimi X <jimix@watson.ibm.com>:
6855         * rs6000-tdep.c (rs6000_software_single_step): Use
6856         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6857         and size.  Use target_insert_breakpoint() and
6858         target_remove_breakpoint() to insert and remove breakpoints
6859         instead of explicit memory reads and writes.
6860
6861 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6862
6863         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6864         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6865         ELF_OBJECT_FORMAT ifdef.
6866
6867 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6868
6869         From Jimi X <jimix@watson.ibm.com>:
6870         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6871
6872 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
6873
6874         From Jimi X <jimix@watson.ibm.com>:
6875         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6876         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6877
6878 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
6879
6880         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6881         s/asprintf/xasprintf/.
6882         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6883
6884 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
6885
6886         I believe Jeff Law denies responsability for this one:
6887         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6888         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6889         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6890         Work-around for PR gdb/366.
6891
6892 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
6893
6894         * remote-e7000.c (write_small, e7000_read_inferior_memory,
6895         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6896         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6897
6898 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
6899
6900         * sh-tdep.c (sh_fp_frame_init_saved_regs,
6901         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6902         information.
6903
6904 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
6905
6906         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6907         maintainer.
6908
6909 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
6910
6911         * README (Reporting Bugs in GDB): Document the bug web page as the
6912         prefered way of submitting bugs.
6913         Fix PR gdb/402.
6914
6915 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
6916
6917         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6918         -1.  Update comment.
6919         * gdbarch.h, gdbarch.c: Re-generate.
6920
6921 2002-04-07  Andreas Schwab  <schwab@suse.de>
6922
6923         * m68klinux-nat.c (fill_fpregset): Properly pass address of
6924         buffer to regcache_collect.
6925
6926 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
6927
6928         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
6929         * gdbarch.c, gdbarch.h: Re-generate.
6930
6931 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
6932
6933         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6934         declaration.  Fix -Werror.
6935
6936 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
6937
6938         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6939         * gdbarch.c: Regenerate.
6940
6941 2002-04-05  Michael Snyder  <msnyder@redhat.com>
6942
6943         * breakpoint.c (clear_command): Rewrite middle section to
6944         combine two loops with identical control conditions.
6945         Add a cleanup to eliminate a memory leak.
6946         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6947
6948 2002-04-05  H.J. Lu  (hjl@gnu.org)
6949
6950         * solib-svr4.c (bkpt_names): Add "__start".
6951
6952 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
6953
6954         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6955         as test for 64 bit target.
6956
6957 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
6958
6959         * h8500-tdep.c (h8500_write_fp): Delete function.
6960         * dwarf2cfi.c (cfi_write_fp): Document as not used.
6961         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6962         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6963         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6964         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6965         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6966         (s390_write_fp):
6967         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6968         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6969         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6970         (d10v_write_fp): Delete function.
6971         * inferior.h (write_fp, generic_target_write_fp): Delete
6972         declarations.
6973         * regcache.c (generic_target_write_fp): Delete function.
6974         (write_fp): Delete function.
6975         * gdbarch.sh (TARGET_WRITE_FP): Delete.
6976         * gdbarch.h, gdbarch.c: Regenerate.
6977         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6978         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6979         (sparc64_write_fp): Delete declaration.
6980         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6981         (h8500_write_fp): Delete declaration.
6982
6983 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
6984
6985         * sparc-tdep.c (sparc64_write_fp): Delete.
6986         (sparc_push_dummy_frame): Replace write_fp call with code to store
6987         the FP directly.
6988         (sparc_gdbarch_init): Do not initialize write_fp.
6989
6990 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
6991
6992         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6993         clause.
6994
6995 2002-03-29  Jim Blandy  <jimb@redhat.com>
6996
6997         * stack.c (get_selected_block): Add new argument `addr_in_block',
6998         used to return the exact code address we used to select the block,
6999         not just the block.
7000         * blockframe.c (get_frame_block, get_current_block): Same.
7001         * frame.h (get_frame_block, get_current_block,
7002         get_selected_block): Update declarations.
7003         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7004         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7005
7006 2002-04-05  Michael Snyder  <msnyder@redhat.com>
7007
7008         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7009         warning message.
7010
7011 2002-04-05  J. Brobecker  <brobecker@gnat.com>
7012
7013         * utils.c (xfullpath): New function.
7014         * defs.h (xfullpath): Add declaration.
7015         * source.c (openp): Use xfullpath in place of gdb_realpath to
7016         avoid resolving the basename part of filenames when the
7017         associated file is a symbolic link. This fixes a potential
7018         inconsistency between the filenames known to GDB and the
7019         filenames it prints in the annotations.
7020         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7021         to be able to match a filename with either the real filename, or
7022         the name of any symbolic link to this file.
7023         (lookup_partial_symtab): Ditto.
7024
7025 2002-04-04  Michael Snyder  <msnyder@redhat.com>
7026
7027         * breakpoint.c: Add support for hardware breakpoints in overlays.
7028         (overlay_events_enabled): New state variable.
7029         (insert_breakpoints): Use overlay_events_enabled to decide
7030         whether to attempt to set a breakpoint at the overlay load addr.
7031         Handle bp_hardware_breakpoint as well as bp_breakpoint.
7032         (remove_breakpoint): Use overlay_events_enabled to decide
7033         whether breakpoints need to be removed from overlay load addr.
7034         Handle bp_hardware_breakpoint as well as bp_breakpoint.
7035         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7036         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7037         disable_overlay_breakpoints): Update overlay_events_enabled.
7038
7039 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
7040
7041         * dwarf2read.c (struct function_range): New.
7042         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7043         (check_cu_functions): New.
7044         (read_file_scope): Initialize global function lists.
7045         Call dwarf_decode_line after processing children.
7046         (read_func_scope): Add to global function list.
7047         (dwarf_decode_lines): Call check_cu_functions everywhere
7048         record_line is called.  Call record_line with a linenumber
7049         of 0 to mark sequence ends.
7050
7051 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
7052
7053         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7054         change sync with glibc.
7055
7056 2002-04-03  Jim Blandy  <jimb@redhat.com>
7057
7058         * configure.in: Call AC_C_INLINE.
7059         * configure: Regenerated.
7060
7061 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
7062
7063         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7064         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7065
7066 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
7067
7068         * NEWS: Mention gcore support on FreeBSD/i386.
7069
7070         * fbsd-proc.c: New file.
7071         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7072         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7073
7074         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7075         while statement.
7076
7077 2002-03-29  Jim Blandy  <jimb@redhat.com>
7078
7079         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7080         unescaped newlines in string literals, but newer ones don't.  So
7081         escape them.
7082
7083 2002-03-26  Michael Snyder  <msnyder@redhat.com>
7084             Andrew Cagney <cagney@redhat.com>
7085
7086         * cli/cli-dump.c: New file.  Dump memory to file,
7087         restore file to memory.
7088         * cli/cli-dump.h: New file.
7089         * Makefile.in: Add rules, dependencies for cli-dump.o.
7090         * NEWS: Mention new commands.
7091
7092 2002-03-28  Michael Snyder  <msnyder@redhat.com>
7093
7094         * symfile.c (symbol_file_add): Move test for null symbols to later.
7095
7096 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7097
7098         From veksler at il.ibm.com:
7099         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7100         the xstrduped original path.
7101         Fix PR gdb/417.
7102
7103 2002-03-27  Michael Snyder  <msnyder@redhat.com>
7104
7105         * breakpoint.c (_initialize_breakpoint): Clean up help string.
7106         * infcmd.c (_initialize_infcmd): Ditto.
7107         * language.c (_initialize_language): Ditto.
7108         * symfile.c (_initialize_symfile): Ditto.
7109         * top.c (_init_main): Ditto.
7110         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7111
7112 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
7113
7114         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7115         vector registers handling.
7116         (skip_prologue): Handle new AltiVec instructions.  Fill in new
7117         fields of frame data.
7118         (frame_get_saved_regs): Fill in information for AltiVec registers.
7119
7120 2002-03-27  Jim Blandy  <jimb@redhat.com>
7121
7122         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7123         a function; leave this macro here to invoke that function.
7124         (symbol_init_mangled_name): Declaration for that function.
7125         * symtab.c (symbol_init_mangled_name): New function.
7126
7127 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
7128
7129         * valarith.c: Replace strerror with safe_strerror.
7130         * tracepoint.c: Ditto.
7131         * lin-lwp.c: Ditto.
7132         * go32-nat.c: Ditto.
7133         * inflow.c: Ditto.
7134         * gnu-nat.c: Ditto.
7135
7136 2002-03-27  Andreas Schwab  <schwab@suse.de>
7137
7138         * event-top.c (command_line_handler): Remove useless if.
7139
7140 2002-03-27  Andreas Jaeger  <aj@suse.de>
7141
7142         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7143         comment.
7144
7145 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
7146
7147         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7148         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7149         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7150         (x86_64_linux_dr_get_status, supply_gregset),
7151         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7152         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7153         (x86_64_register_info_table): Add.
7154         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7155         (x86_64_register_raw_size, x86_64_register_virtual_type),
7156         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7157         general x86_64_register_info_table.
7158         (i386_gdbarch_init): gdbarch_register_bytes is now set
7159         dynamicaly during initialization.
7160         * regformats/reg-x86-64.dat: Synced with changes to registers above.
7161         * gdbserver/linux-x86-64-low.c: Ditto.
7162
7163 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7164
7165         * gdbserver/server.c (main): Call target_signal_to_host_p
7166         and target_signal_to_host on signals received from the remote.
7167         * gdbserver/remote-utils.c (prepare_resume_reply): Call
7168         target_signal_from_host on signals sent to the remote.
7169         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
7170         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
7171
7172 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7173
7174         * signals/signals.c: Include "server.h" in gdbserver build.
7175         (target_signal_from_name): Don't use STREQ.
7176         (_initialize_signals): Likewise.  Don't include function in
7177         gdbserver build.
7178
7179 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
7180
7181         * signals.c: Moved to...
7182         * signals/signals.c: Here.
7183         * Makefile (signals.o): Update.
7184
7185 2002-03-26  Jeff Law (law@redhat.com)
7186
7187         * somread.c (som_symtab_read): Remove some commented out code and
7188         updated related comments.  Do not set the minimal symbol table to
7189         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7190         in a dynamic executable.
7191         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7192         where we are unable to find the minimal symbol for the given
7193         PC value.
7194
7195 2002-03-25  Jeff Law (law@redhat.com)
7196
7197         * linux-proc.c (read_mapping): Scan up to end of line for filename.
7198
7199 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
7200
7201         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7202
7203 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7204
7205         * command.h: Update copyright.
7206         (struct cmd_list_element): Replace definition with opaque
7207         declaration.
7208         (enum cmd_types): Document that it will eventually be moved to
7209         cli/cli-decode.h
7210         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7211         (MALLOCED_REPLACEMENT): Delete macro.
7212         * Makefile.in (cli_decode_h): Add $(command_h).
7213         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7214         * top.c: Include "cli/cli-decode.h".
7215         * completer.c: Include "cli/cli-decode.h".
7216         * maint.c: Include "cli/cli-decode.h".
7217         * cli/cli-decode.h: Include "command.h".
7218         (enum command_class): Delete.
7219         (enum cmd_types): Comment out.
7220         (enum cmd_auto_boolean): Delete.
7221         (enum var_types): Delete.
7222
7223 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7224
7225         * cli/cli-decode.c: Include "gdb_assert.h".
7226         (add_set_or_show_cmd): New static function.
7227         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
7228         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
7229         all fields, such as func, from the set command.
7230
7231 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
7232
7233         * MAINTAINERS (sh-elf): Change warning flag to -w.
7234
7235 2002-03-23  Andrew Cagney  <cagney@redhat.com>
7236
7237         * defs.h (error): Add printf format attribute.
7238         * thread-db.c (thread_from_lwp): Fix error format string.
7239         * stack.c (parse_frame_specification): Ditto.
7240         * cli/cli-decode.c (undef_cmd_error): Ditto.
7241         * scm-lang.c (scm_lookup_name): Ditto.
7242         * tracepoint.c (trace_error): Ditto.
7243         * remote-utils.c (usage): Ditto.
7244         * remote.c (compare_sections_command): Ditto.
7245         Fix PR gdb/328.
7246
7247 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
7248
7249         * gdbtypes.c (append_composite_type_field): New function.
7250         (init_composite_type): New function.
7251         * gdbtypes.h (append_composite_type_field): Declare.
7252         (init_composite_type): Ditto.
7253
7254 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
7255
7256         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7257         function.
7258         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7259         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7260         structure returning convention for SYSV ABI case, but not
7261         for GNU/Linux, FreeBSD, or NetBSD.
7262
7263 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
7264
7265         * symtab.h (lookup_block_symbol): Add mangled_name argument
7266         to prototype.
7267
7268         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7269         with new mangled_name argument.
7270         * linespec.c (decode_line_1): Likewise.
7271         * valops (value_of_this): Likewise.
7272         * symtab.c (lookup_transparent_type): Likewise.
7273         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
7274         (lookup_symbol): If we are given a mangled name, pass it down
7275         to lookup_symbol_aux.
7276         (lookup_block_symbol): If we are given a mangled name to check
7277         against, only return symbols which match it.
7278
7279 2002-03-22  Christopher Faylor  <cgf@redhat.com>
7280
7281         * win32-nat.c (child_create_inferior): Check for proper shell to use
7282         here, in case the user changes it on the fly.
7283         (_initialize_inftarg): Remove shell path considerations.
7284
7285 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
7286
7287         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7288         for gdbarch_max_register_raw_size and max_register_virtual_size.
7289         Adjust copyright year.
7290
7291 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
7292
7293          * dbxread.c (process_one_symbol): Extend the first N_SLINE
7294          in a function to cover the entire beginning of the function
7295          as well if it does not already.
7296
7297 2002-03-21  Tom Rix  <trix@redhat.com>
7298
7299         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7300         (rs6000_ptrace64): Renamed from ptrace64.
7301
7302 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7303
7304         * gdbserver/remote-utils.c (remote_open): Don't call
7305         getprotobyname, we're all using TCP here so just use
7306         IPPROTO_TCP.
7307         * gdbserver/gdbreplay.c (remote_open): Ditto.
7308
7309 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
7310
7311         * regcache.c (_initialize_regcache): No need to call
7312         build_regcache() at this time; it gets called whenever
7313         the gdbarch changes.
7314
7315 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
7316
7317         * sparc-nat.c:  Include sys/param.h where possible.
7318
7319 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
7320
7321         Fix PR gdb/422.
7322         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7323         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7324         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7325         complex types.
7326         * stabsread.c (rs6000_builtin_type): Likewise.
7327         (read_sun_floating_type): Likewise.
7328
7329 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7330
7331         * stabsread.c (read_member_functions): Remove skip code for duplicate
7332         constructor/destructor methods.  Use standard parsing for these
7333         methods and just do not chain them to the list of methods after
7334         parsing.
7335
7336 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
7337
7338         * coffread.c: Remove redundant static declarations.  Replace
7339         occurrences of `PTR' with `void *'.
7340         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7341         * top.h (quit_cover): Likewise.
7342         * defs.h (catch_errors): Likewise.
7343
7344 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7345
7346         * defs.h (XMALLOC): Define.
7347         * gdb-events.sh (XMALLOC): Delete macro.
7348         * gdb-events.c, gdb-events.h: Regenerate.
7349         * gdbarch.sh (XMALLOC): Delete macro.
7350         * gdbarch.c: Regenerate.
7351         * serial.c (XMALLOC): Delete macro.
7352         * ui-file.c (XMALLOC): Ditto.
7353         * ser-unix.h (XMALLOC): Ditto.
7354         * sh-tdep.c (XMALLOC): Ditto.
7355         * ui-out.c (XMALLOC): Ditto.
7356         * utils.c (XMALLOC): Ditto.
7357         * i386-tdep.c (XMALLOC): Ditto.
7358         * gdb-events.c (XMALLOC): Ditto.
7359         * d10v-tdep.c (XMALLOC): Ditto.
7360         * cli-out.c (XMALLOC): Ditto.
7361
7362         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7363         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7364         * ui-file.c, ui-out.c: Ditto.
7365
7366 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
7367
7368         * command.h (struct cmd_list_element): Add field context.
7369         (set_cmd_context, get_cmd_context): Declare.
7370         * cli/cli-decode.h: Ditto.
7371         * cli/cli-decode.c (get_cmd_context): New function.
7372         (set_cmd_context): New function.
7373         (add_cmd): Initialize context.
7374         Part of fixing PR gdb/145 and PR gdb/146.
7375
7376 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7377
7378         * cli/cli-decode.c (cmd_type): New function.
7379         * command.h (cmd_type): Declare.
7380         * infrun.c (set_schedlock_func): Call function cmd_type.
7381         * kod.c (kod_set_os): Call cmd_type.
7382         * cris-tdep.c (cris_version_update): Use function cmd_type.
7383         (cris_mode_update, cris_abi_update): Ditto.
7384
7385         * command.h: (execute_cmd_post_hook): Declare.
7386         (execute_cmd_pre_hook): Declare.
7387         * cli/cli-script.c (clear_hook_in_cleanup): New function.
7388         (execute_cmd_post_hook, execute_cmd_pre_hook): New
7389         functions. Execute pre/post hook while ensuring that afterwords
7390         hook_in is cleared.
7391         * top.c (execute_command): Use execute_cmd_post_hook, and
7392         execute_cmd_pre_hook to execute pre/post commands.
7393         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7394         hook_stop_stub.
7395         (hook_stop_stub): Call execute_cmd_pre_hook.
7396
7397 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7398
7399         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
7400         set'' and this leads to a core dump.  Move xstrdup of
7401         operating_system to after check that it is not NULL.
7402
7403 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
7404
7405         * kod.c (kod_set_os): Remove unnecessary check that
7406         ``command->type'' is set_cmd.
7407
7408         * valprint.c (set_input_radix): Use input_radix.
7409         (set_output_radix): Use output_radix.
7410         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7411         isn't reverted.
7412
7413 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
7414
7415         * value.h (struct value): Delete field ``substring_addr''.  Change
7416         aligner fields to force_doublest_align, force_longest_align,
7417         force_core_addr_align and force_pointer_aligh.
7418
7419         * value.h (struct value): Fix typo in above change.
7420
7421 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7422
7423         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7424         to fix internal_error from ``maintenance print architecture''.
7425
7426 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7427
7428         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7429         for gcc versions after gcc-2.8.1.
7430
7431 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7432
7433         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7434         for method resolution.  Restore adjustment of ``this'' pointer after
7435         calling value_struct_elt, which was accidentally removed during the
7436         HP merge.
7437
7438 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
7439
7440         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7441         value_of_register.
7442         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
7443         get_saved_register.
7444         * value.h (value_of_register): Update.
7445
7446 2002-03-14  Richard Henderson  <rth@redhat.com>
7447
7448         * configure.in: Detect declaration for canonicalize_file_name.
7449         * utils.c (canonicalize_file_name): Declare, if needed.
7450         (gdb_realpath): Prefer realpath if available and usable.
7451         * config.in, configure: Rebuild.
7452
7453 2002-03-14  Richard Henderson  <rth@redhat.com>
7454
7455         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7456         a constant array bound.
7457
7458         * MAINTAINERS: Add myself to write-after-approval.
7459
7460 2002-03-14  Michael Snyder  <msnyder@redhat.com>
7461
7462         * symfile.c (syms_from_objfile): Return immediately if no syms.
7463         (symbol_file_add): Return immediately if no syms.
7464         (find_sym_fns): Return immediately if no syms.
7465
7466 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
7467
7468         * gdbserver/remote-util.c (remote_open): Print remote-side's
7469         IP address when remote debugging over the network.
7470
7471 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
7472
7473         * config/sparc/fbsd.mh: Fix copyright.
7474         * config/sparc/fbsd.mt: Likewise.
7475
7476 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
7477
7478         * MAINTAINERS: Fix typo in name of gdb warnings option.
7479         (x86-64): Fix formating so that this can be parsed by awk.
7480
7481 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7482
7483         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7484         * defs.h: Include "gdb/signals.h".
7485         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7486
7487 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
7488
7489         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7490         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7491         from x86-64-tdep.h
7492
7493 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
7494             Don Howard <dhoward@redhat.com>
7495
7496         * mips-tdep.c (ST0_FR): Define.
7497         (mips2_fp_compat): New function, temporarily disabled.
7498         (mips_read_fp_register_single): New function.
7499         (mips_read_fp_register_double): New function.
7500         (mips_print_register): Use them.
7501         (do_fp_register_row): Likewise.
7502
7503 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
7504
7505         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7506         approval''.
7507
7508 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7509
7510         * stabsread.c (read_member_functions): Fix is_stub test for
7511         static member functions, improve comment.
7512
7513 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
7514
7515         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7516         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7517         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7518         commands that set boolean values.
7519         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7520         (arm_rdi_resume): Always initialize PC.
7521         (arm_rdi_open): Don't use rslt as a boolean.
7522         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7523         (arm_rdi_fetch_registers, arm_rdi_store_registers)
7524         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7525         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7526
7527 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
7528
7529         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7530         * configure: Rebuilt.
7531
7532 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7533
7534         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7535         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7536
7537 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
7538
7539         * cli/cli-decode.c (set_cmd_completer): New function.
7540         * command.h (set_cmd_completer): Declare.
7541         * cli/cli-decode.h (set_cmd_completer): Ditto.
7542
7543         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7544         * cli/cli-cmds.c (init_cli_cmds): Ditto.
7545         * win32-nat.c (_initialize_inftarg): Ditto.
7546         * remote-rdi.c (_initialize_remote_rdi): Ditto.
7547         * proc-api.c (_initialize_proc_api): Ditto.
7548         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7549         * source.c (_initialize_source): Ditto.
7550         * exec.c (_initialize_exec): Ditto.
7551         * solib.c (_initialize_solib): Ditto.
7552         * top.c (init_main): Ditto.
7553         * tracepoint.c (_initialize_tracepoint): Ditto.
7554         * symfile.c (_initialize_symfile): Ditto.
7555         * printcmd.c (_initialize_printcmd): Ditto.
7556         * infcmd.c (_initialize_infcmd): Ditto.
7557         * corefile.c (_initialize_core): Ditto.
7558
7559 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7560
7561         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7562
7563 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7564
7565         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7566
7567 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
7568
7569         * NEWS: Update headings, 5.2 has branched.
7570
7571 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
7572
7573         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7574         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7575         (register_addr, REGISTER_RAW_SIZE): Likewise.
7576         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7577         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7578
7579 2002-03-03  Michal Ludvig <mludvig@suse.cz>
7580
7581         * MAINTAINERS (x86-64): Add myself.
7582         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7583         changed value_ptr -> struct value *
7584
7585 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
7586
7587         * configure.host (sparc64-*-freebsd): Add.
7588         * configure.tgt: Likewise.
7589         * config/sparc/fbsd.mh: New file.
7590         * config/sparc/fbsd.mt: Likewise.
7591         * config/sparc/nm-fbsd.h: Likewise.
7592         * config/sparc/tm-fbsd.h: Likewise.
7593
7594 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
7595
7596         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7597         regformats/reg-s390x.dat.
7598
7599 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
7600
7601         * utils.c: Add FIXME explaining true/false problem.
7602
7603 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
7604
7605         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7606
7607 2002-02-28  Michael Chastain  <mec@shout.net>
7608
7609         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7610
7611 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
7612
7613         * gdbserver/linux-s390-low.c: New file.
7614         * regformats/reg-s390.dat: New file.
7615         * regformats/reg-s390x.dat: New file.
7616         * gdbserver/configure.srv: Add S/390.
7617         * gdbserver/Makefile.in: Add S/390.
7618         * configure.tgt: Enable gdbserver for S/390.
7619
7620 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
7621
7622         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7623         first line of the doc string for "info dos", except at the end of
7624         the sentence, since the short help stops at the first period.
7625
7626 2002-02-28  Jason Merrill  <jason@redhat.com>
7627
7628         * dwarf2read.c (dwarf_cfi_name): Add new codes.
7629
7630 2002-02-27  Fred Fish  <fnf@redhat.com>
7631
7632         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7633         comment (dumy -> dummy).
7634
7635 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7636
7637         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7638
7639 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
7640
7641       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7642
7643 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7644
7645         * gdbserver/acconfig.h: New file.
7646         * gdbserver/i387-fp.c: New file.
7647         * gdbserver/i387-fp.h: New file.
7648         * gdbserver/linux-x86-64.c: New file.
7649         * regformats/reg-x86-64.dat: New file.
7650         * configure.tgt: Add x86_64-*-linux* gdbserver support.
7651         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7652         * gdbserver/configure.in: Add support for regsets.
7653         * gdbserver/config.in: Regenerate.
7654         * gdbserver/configure: Regenerate.
7655         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
7656         * gdbserver/linux-low.h: New file.
7657         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
7658         for regsets.
7659         * gdbserver/linux-arm-low.c: Include "linux-low.h".
7660         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7661         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7662         * gdbserver/linux-mips-low.c: Include "linux-low.h".
7663         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7664         * gdbserver/linux-sh-low.c: Include "linux-low.h".
7665         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
7666         "i387-fp.h".  Add PTRACE_GETREGS and friends.
7667         * gdbserver/regcache.c (supply_register): New function.
7668         (supply_register_by_name): New function.
7669         (collect_register): New function.
7670         (collect_register_by_name): New function.
7671
7672 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7673
7674         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7675         (config.status): Add configure.srv dependency.
7676         (server_h): Add config.h dependency.
7677
7678 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
7679
7680         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7681         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7682         * gdbserver/configure.srv: Change i386-*-linux* to use
7683         reg-i386-linux.o.
7684
7685 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7686
7687         * x86-64-tdep.c: Re-indent.  Update copyright date.
7688
7689 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7690
7691         From Michal Ludvig <mludvig@suse.cz>:
7692         * x86-64-tdep.c (value.h): Delete.
7693         (gdb_assert.h): Include.
7694         (x86_64_register_convert_to_virtual,
7695         x86_64_register_convert_to_raw ): Add check which lets only
7696         floating-point values to be converted.
7697         (value_push): Delete.
7698         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7699         (i386_gdbarch_init): Number of register_bytes fixed.
7700
7701 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7702
7703         * MAINTAINERS: Add x86-64 target.
7704
7705 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7706
7707         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7708         * osfsolib.c (solib_map_sections): Ditto.
7709         * irix5-nat.c (solib_map_sections): Ditto.
7710         * corelow.c (gdb_check_format): Ditto.
7711         * symfile.c (symfile_bfd_open): Ditto.
7712         * solib.c (solib_map_sections): Ditto.
7713         Fix PR gdb/354.
7714
7715 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
7716
7717         * remote.c (_initialize_remote): By default, disable ``e'' and
7718         ``E'' step out-of-range packets.
7719
7720 2002-02-26  Andreas Schwab  <schwab@suse.de>
7721
7722         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7723         m68k_linux_frame_saved_pc.
7724         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7725         in_sigtramp.
7726         (SIGCONTEXT_PC_OFFSET): Remove.
7727         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7728         m68k_linux_sigtramp_saved_pc): New functions.
7729         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7730         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7731         (UCONTEXT_PC_OFFSET): Define.
7732         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7733         non-RT and RT signal trampolines.
7734
7735 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
7736
7737         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7738         (TARGET_NBPG, STACK_END_ADDR): Delete
7739         (VARIABLES_INSIDE_BLOCK): Delete.
7740
7741 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
7742
7743         * utils.c (perror_with_name): Make string parameter constant.
7744         (print_sys_errmsg): Ditto.
7745         (query): Ditto.
7746         * defs.h (perror_with_name): Update.
7747         (print_sys_errmsg): Update.
7748         (query): Update.
7749
7750 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
7751
7752         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7753         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7754
7755 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7756
7757         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7758         if it already matches the current architecture from the exec file.
7759         Include arch-utils.h for gdbarch_info_init prototype.
7760         * Makefile.in (rs6000-nat.o): Update dependencies.
7761
7762 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
7763
7764         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7765          list of exported variables.
7766
7767 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
7768
7769         * gdbserver/configure.srv: New file.
7770         * gdbserver/configure.in: Use configure.srv instead
7771         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
7772         from it.
7773         * gdbserver/configure: Regenerated.
7774         * gdbserver/terminal.h: New file.
7775         * gdbserver/Makefile.in: Update for configure changes.  Remove
7776         more unneeded include paths.
7777
7778 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
7779
7780         From wiz at danbala:
7781         * config/sparc/tm-sp64.h: Fix grammar and typos.
7782         Fix PR gdb/287.
7783
7784 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
7785
7786         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7787         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
7788         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7789         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7790         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7791         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7792         * s390-tdep.c: Ditto.
7793         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7794         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7795         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7796         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7797         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7798         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7799         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7800         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7801         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7802         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7803         Fix PR gdb/378.
7804
7805 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7806
7807         * lin-thread.c: Delete file.
7808         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7809         to gdb_proc_service.h.
7810         * configure: Re-generate.
7811
7812         * ocd.c (ocd_open): Do not try to open the "ocd" device.
7813         * serial.c (serial_open): Delete check for "ocd".
7814         Fix PR gdb/349.
7815
7816         * Makefile.in (linux-thread.o): Delete target.
7817         * linux-thread.c: Delete file.
7818
7819         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
7820         renamed SH files to be consistent.
7821
7822         * symtab.c (sort_search_symbols): Use xfree.
7823
7824 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
7825
7826         * arm-linux-tdep.c (arm_linux_init_abi): Register
7827         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7828         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7829         definition with undef, since we don't want the sysvr4 definition.
7830         (SKIP_TRAMPOLINE_CODE): Likewise.
7831
7832 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7833
7834         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7835
7836         * configure.in: (AC_CHECK_FUNCS) Added test for
7837         canonicalize_file_name Regenerated.
7838         * config.in, configure: Regenerated.
7839         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7840         defined use canonicalize_file_name.
7841
7842 2002-02-23  Michael Chastain  <mec@shout.net>
7843
7844         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7845
7846 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7847
7848         * README: Remove references to cygnus.com.
7849         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7850         dot com'' form.  Remove references to cygnus.com and sourceware.
7851
7852 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7853
7854         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7855         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7856         1003.1-2001 no longer allows "head -1".
7857         * gdb/Makefile.in (version.c): Likewise.
7858         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7859         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7860         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
7861
7862 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7863
7864         * cli/cli-decode.c (cmd_cfunc_eq): New function.
7865         * command.h (cmd_cfunc_eq): Declare.
7866         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7867
7868         * cli/cli-cmds.h (is_complete_command): Change parameter to a
7869         ``struct cmd_list_element *''.
7870         * cli/cli-cmds.c (is_complete_command): Update.  Use
7871         cmd_cfunc_eq.
7872         * top.c (execute_command): Pass the command to
7873         is_complete_command.
7874         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7875
7876 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
7877
7878         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7879         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7880         architecture defines.
7881         * s390-tdep.c (s390_gdbarch_init): Likewise.
7882
7883 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
7884
7885         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7886         (arm_linux_push_arguments): Likewise.
7887         (arm_linux_init_abi): Register them.  Also register linux-specific
7888         call_dummy_words.
7889         (find_minsym_and_objfile): Use strcmp, not STREQ.
7890         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7891         (arm_linux_call_dummy_words): Delete declaration.
7892         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7893         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7894         declarations.
7895         (LOWEST_PC): Delete.
7896
7897 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7898
7899         * maint.c (print_section_info): Do not prepend `0x' to filepos
7900         output, it will be handled by local_hex_string_custom.
7901
7902 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
7903
7904         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7905         (store_newfpe_double, store_newfpe_extended, store_fpregister)
7906         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7907
7908 2002-02-22  Jim Blandy  <jimb@redhat.com>
7909
7910         Indicate that the bcache functions don't change the strings
7911         they're passed.
7912         * bcache.h (bcache, hash): Add `const' keywords to declarations.
7913         * bcache.c (bcache, hash): Add `const' keywords to definitions.
7914
7915 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
7916
7917         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7918
7919 2002-02-21  Christopher Faylor  <cgf@redhat.com>
7920
7921         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7922         find the complete path to a loaded DLL.
7923
7924 2002-02-21  Fred Fish  <fnf@redhat.com>
7925
7926         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7927         that marks the end of the range of a function, enter a line number
7928         entry that has a line number of zero and a PC offset that matches
7929         the end of the function.  This starts a range of PC's for which no
7930         line number information is known.
7931         * symtab.c (find_pc_sect_line): If our best fit is in a range of
7932         PC's for which no line number info is found (line number is zero)
7933         then we didn't find any valid line information.
7934         * symtab.h: Document use of zero line number entry.
7935
7936 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
7937
7938         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7939         (have_ptrace_getvrregs): Define for run time checks.
7940         (gdb_vrregset_t): New type for Altivec register handling.
7941         (fetch_register, store_register): Fetch/store altivec register
7942         when needed.
7943         (fetch_altivec_register, store_altivec_register): New functions.
7944         (supply_vrregset, fill_vrregset): New functions.
7945         (fetch_altivec_registers, store_altivec_registers): New functions.
7946         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7947         registers as well.
7948
7949 2002-02-21  Jiri Smid  <smid@suse.cz>
7950
7951         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7952
7953 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
7954
7955         * Makefile.in (armnbsd-nat.o): Update dependencies.
7956         * armnbsd-nat.c (supply_gregset): New function.  Common code to
7957         supply the integer register set.
7958         (supply_fparegset): New function.  Similar for FPA registers.
7959         (fetch_regs, fetch_fp_regs): Use them.
7960         (fetch_core_registers): Likewise.
7961         (fetch_elfcore_registers): New function.
7962         (arm_netbsd_elfcore_fns): New core-file type specification.
7963         (_initialize_arm_netbsd_nat): Register it.
7964
7965 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
7966
7967         * armnbsd-nat.c: Include gdbcore.h.
7968         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7969         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7970         'void' to declaration, to shut up ARI.
7971         (fetch_core_registers): Make static.  Rewrite using supply_register.
7972         (arm_netbsd_core_fns): New core-file type specification.
7973         (_initialize_arm_netbsd_nat): New function.
7974
7975 2002-02-21  Christopher Faylor  <cgf@redhat.com>
7976
7977         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7978         value.
7979
7980 2002-02-20  Christopher Faylor  <cgf@redhat.com>
7981
7982         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7983         fails.
7984
7985 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7986
7987         * jv-exp.y (parse_number): Change type of implicit longs
7988         to builtin_type_uint64.
7989
7990 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7991
7992         * gdbserver/linux-low.c (mywait): Change argument to waitpid
7993         to be an integer instead of a `union wait'.
7994
7995 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
7996
7997         * mips-linux-nat.c: Call the operating system GNU/Linux.
7998         * mips-linux-tdep.c: Likewise.
7999         * mips-tdep.c: Likewise.
8000
8001 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8002
8003         Fix PR gdb/265.
8004         * jv-exp.y (parse_number): Handle 64-bit integers.
8005
8006 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8007
8008         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
8009         AC_STDC_HEADERS to AC_HEADER_STDC.
8010         * gdbserver/configure: Regenerated.
8011
8012 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
8013
8014         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8015         is defined.
8016         * sparc-tdep.c (get_longjmp_target): Likewise.
8017
8018 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
8019
8020         * News: Add news about ARM and Multi-arch.  Mention the new target
8021         arm*-*-netbsd*.
8022
8023 2002-02-19  Jim Blandy  <jimb@redhat.com>
8024
8025         * stabsread.c (error_type_complaint): Improve error message.
8026
8027 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
8028
8029         * gdbserver/README: Update documentation.
8030         * gdbserver/configure.in: Update configury to match documentation.
8031         * gdbserver/Makefile.in: Likewise.
8032         * gdbserver/configure: Regenerated.
8033         * gdbserver/aclocal.m4: New file, generated by aclocal.
8034         * gdbserver/config.in: New file, generated by autoheader.
8035
8036 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8037
8038         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8039         armnbsd-nat.c.
8040
8041 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8042
8043         * arm-tdep.h (enum arm_float_model): New enum.
8044         (struct gdbarch_tdep): Add fp_model.
8045         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
8046         up floating-point conversions until we know the floating-point model
8047         in use by the inferior.  Don't complain about being unable to
8048         determine the ABI of the inferior when we don't have one.
8049         (arm_extract_return_value): Support different floating-point models.
8050         (arm_store_return_value): Likewise.
8051         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8052         ARM_FLOAT_SOFT.
8053         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8054
8055 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8056
8057         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8058         of ``current_gdbarch''.
8059
8060 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8061
8062         * armnbsd-nat.c : ANSIfy all function declarations.
8063         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8064         (fetch_inferior_registers): Re-implement in terms of above.
8065         (store_register, store_regs, store_fp_register, store_fp_regs): New.
8066         (store_inferior_registers): Re-implement in terms of above.
8067
8068 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8069
8070         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8071         kernel.
8072         * arm-linux-tdep.c: Likewise.
8073         * config/arm/tm-linux.h: Likewise.
8074
8075 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8076
8077         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8078         * config/arm/nbsd.mt (TM_FILE): Delete.
8079         * config/arm/tm-nbsd.h: Delete.
8080
8081 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8082
8083         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8084         Initialize CALL_DUMMY_LENGTH.
8085
8086 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
8087
8088         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8089         function.
8090         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8091         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8092         defines one thing and that is incorrect for this port.
8093         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8094
8095 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8096
8097         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8098
8099 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8100
8101         * win32-nat.c (display_selector): New function. Displays information
8102         about the information returned by GetThreadSelectorEntry API function.
8103         (display_selectors): New function. Displays the infomation of
8104         the selector given as argument, or of CS, DS ans FS selectors
8105         if no argument is given.
8106         ( _initialize_inftarg): Add "w32" as info prefix command.
8107         Add "info w32 selector" as command calling display_selectors.
8108
8109 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
8110
8111         * i386-tdep.c (get_longjmp_target): Fix compilation failure
8112         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8113         if not defined.
8114
8115 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8116
8117         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8118
8119 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8120
8121         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8122         (arm_fix_call_dummy): Call it.
8123         (arm_call_dummy_breakpoint_offset): Delete.
8124         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8125         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8126
8127 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
8128
8129         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8130         Default to func_frame_chain_valid.
8131         * gdbarch.h, gdbarch.c: Re-generate.
8132         * frame.h (FRAME_CHAIN_VALID): Delete definition.
8133
8134 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
8135
8136         * ppc-linux-nat.c: Update copyright.
8137         (fetch_register, store_register): Add tid parameter, don't compute
8138         tid here.
8139         (fetch_ppc_registers, store_ppc_registers): Add tid
8140         parameter. Pass it along to callees.
8141         (fetch_inferior_registers, store_inferior_registers): Compute tid
8142         here, and pass it to calleed functions.
8143         (fill_gregset, supply_fpregset): Clean up formatting.
8144
8145 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8146
8147         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8148         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8149
8150 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
8151
8152         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8153         * gdbarch.c gdbarch.h: Regenerate.
8154         * breakpoint.c (create_longjmp_breakpoint): Always compile this
8155         function.
8156         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8157         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8158         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8159
8160         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8161         * arm-tdep.c (arm_get_longjmp_target): New function.
8162         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
8163         this to a positive value register arm_get_longjmp_target as the
8164         longjmp handler.
8165         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8166         (arm_linux_init_abi): Set up longjmp description in tdep.
8167         * armnbsd-nat.c (get_longjmp_target): Delete.
8168         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8169         description in tdep.
8170         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8171         (get_longjmp_target): Delete declaration.
8172         (GET_LONGJMP_TARGET): Delete.
8173         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8174         (GET_LONGJMP_TARGET): Delete.
8175
8176 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
8177
8178         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
8179         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8180         of ``current_gdbarch''.
8181
8182 2002-02-17  Tom Tromey  <tromey@redhat.com>
8183
8184         * cli/cli-cmds.c (compare_strings): New function.
8185         (complete_command): Only print each unique item once.
8186         * completer.h (complete_line): Declare.
8187         * completer.c (complete_line): New function.
8188         (line_completion_function): Use it.
8189
8190 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
8191
8192         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8193         * gdbarch.h, gdbarch.c: Re-generate.
8194
8195 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8196
8197         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8198
8199 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
8200
8201         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8202         * valops.c (value_arg_coerce): Don't take the address of a reference
8203         to convert an argument to a reference.
8204
8205 2002-02-15  Christopher Faylor  <cgf@redhat.com>
8206
8207         * win32-nat.c (get_image_name): New function.
8208         (handle_load_dll): Use get_image_name function.
8209         (get_child_debug_event): Avoid registering debug events until possibly
8210         execed process is started.
8211         (child_create_inferior): Allow invocation via shell so that command
8212         line redirection, etc.  works ok.
8213         (_initialize_inftarg): Add new command: "set shell" to control whether
8214         a shell is used to start a process.
8215
8216 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8217
8218         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8219         instead of find_register_by_number.
8220         (cannot_store_register): Likewise.
8221
8222 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8223
8224         * dwarf2read.c: Replace fprintf (stderr, ...) by
8225         fprintf_unfiltered (gdb_stderr, ...).
8226
8227 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
8228
8229         * gdbserver/gdbserver.1: Document --attach.
8230
8231 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8232
8233         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8234         descriptions.
8235         * arm-tdep.c (arm_default_arm_le_breakpoint)
8236         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8237         (arm_default_thumb_be_breakpoint): New.  Initialize them from
8238         traditional breakpoint defines.
8239         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8240         (arm_gdbarch_init): Initialize new breakpoint variables.
8241         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8242         (arm_linux_init_abi): Initialize linux-specific breakpoint.
8243         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8244         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8245         code out to ...
8246         (arm_netbsd_init_abi_common): ... here; new function.
8247         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8248         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8249         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8250         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8251
8252 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
8253
8254         * arm-tdep.h (enum arm_abi): New enum.
8255         (struct gdbarch_tdep): New structure.
8256         (LOWEST_PC): Provide a default.
8257         (arm_gdbarch_register_os_abi): Declare new function.
8258         * arm-tdep.c (arm_abi_names): New array.
8259         (process_note_abi_tag_sections): New function.
8260         (get_elfosabi): New function.
8261         (arm_gdbarch_register_os_abi): New function.
8262         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
8263         support for that ABI has been built in, then call the appropriate
8264         configuration routine.  Use gdbarch_num_regs() to get the number
8265         of registers.
8266         (arm_dump_tdep): New function.
8267         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8268         place-holder functions.
8269         (_initialize_arm_tdep): Register them.
8270         * config/arm/tm-arm.h (LOWEST_PC): Delete.
8271
8272         * armnbsd-tdep.c: New file.
8273         * Makefile.in (armnbsd-tdep.o): Add dependencies.
8274         * config/arm/nbsd.mt (TDEPFILES): Add it.
8275         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8276
8277         * armnbsd-nat.c: Include regcache.h.
8278         * Makefile.in (armnbsd-nat.o): Update dependency list.
8279
8280         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8281
8282 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8283
8284         * gdbserver/Makefile.in: Fix typos in target rules.
8285
8286 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8287
8288         Fix part of PR gdb/267.
8289         * linespec.c (find_methods): Handle constructors specially for now.
8290
8291 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
8292
8293         * arm-tdep.c (arm_push_arguments): Eliminate special float type
8294         handling.
8295         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8296         standard_coerce_float_to_double().
8297
8298 2002-02-14  Christopher Faylor  <cgf@redhat.com>
8299
8300         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8301         GDBINIT_FILENAME.
8302
8303 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
8304
8305         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8306         find_variant_by_name, because it confuses the multiarch
8307         framework. Return NULL if there isn't an architecture with the
8308         user supplied name, instead of forcing a different one without
8309         recording the change with the multiarch machinery.
8310         (find_variant_by_name): Delete.
8311
8312 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8313
8314         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8315         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8316
8317 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
8318
8319         * stack.c (print_frame_info_base): When calling
8320         print_frame_info_listing_hook, set current_source_symtab.
8321
8322 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8323
8324         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8325         and remove unused $(INCLUDE_DIR).
8326         Add regcache.c to OBS.
8327         Add generated register protocol files to clean target.
8328         Update dependencies for new objects, obsolete old target code.
8329
8330         * gdbserver/linux-low.c: Remove all platform-specific code to
8331         new files.  Remove various dead code.  Update to use regcache
8332         functionality.
8333         * gdbserver/remote-utils.c (fromhex): Add return statement
8334         to quiet warning.
8335         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8336         constant.
8337         (input_interrupt): Add integer parameter to match prototype
8338         of a signal handler.
8339         (outreg): Use register_data ().
8340         (prepare_resume_reply): Use gdbserver_expedite_regs.
8341         * gdbserver/server.c (main): Dynamically allocate own_buf because
8342         PBUFSIZ is no longer constant.  Use registers_to_string () and
8343         registers_from_string ().
8344         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
8345         for error (), fatal (), and warning ().  Update definition of
8346         PBUFSIZ to use regcache functionality.  Add include guard.
8347         * gdbserver/utils.c (fatal): Add missing ``const''.
8348         (warning): New function.
8349
8350         * regformats/regdat.sh: Include "regcache.h" in generated files.
8351         Provide init_registers () function.
8352         * regformats/regdef.h: Add prototype for set_register_cache ().
8353         Add include guard.
8354
8355         * gdbserver/linux-arm-low.c: New file.
8356         * gdbserver/linux-i386-low.c: New file.
8357         * gdbserver/linux-ia64-low.c: New file.
8358         * gdbserver/linux-m68k-low.c: New file.
8359         * gdbserver/linux-mips-low.c: New file.
8360         * gdbserver/linux-ppc-low.c: New file.
8361         * gdbserver/linux-sh-low.c: New file.
8362
8363         * gdbserver/regcache.c: New file.
8364         * gdbserver/regcache.h: New file.
8365
8366         * gdbserver/low-linux.c: Removed obsolete file.
8367
8368 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8369
8370         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8371         * config/i386/linux.mt: Likewise.
8372         * config/ia64/linux.mt: Likewise.
8373         * config/m68k/linux.mh: Likewise.
8374         * config/powerpc/linux.mh: Likewise.
8375         * config/mips/linux.mt: Likewise.
8376
8377         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8378
8379         * config/i386/i386lynx.mh: Mark gdbserver variables
8380         as (currently) obsolete for this target.
8381         * config/i386/nbsd.mt: Likewise.
8382         * config/i386/nbsdelf.mt: Likewise.
8383         * config/m32r/m32r.mt: Likewise.
8384         * config/m68k/m68klynx.mh: Likewise.
8385         * config/m68k/nbsd.mt: Likewise.
8386         * config/m68k/sun3os4.mh: Likewise.
8387         * config/mips/vr5000.mt: Likewise.
8388         * config/ns32k/nbsd.mt: Likewise.
8389         * config/pa/hppabsd.mh: Likewise.
8390         * config/pa/hppaosf.mh: Likewise.
8391         * config/powerpc/nbsd.mt: Likewise.
8392         * config/rs6000/rs6000lynx.mh: Likewise.
8393         * config/s390/s390.mt: Likewise.
8394         * config/s390/s390x.mt: Likewise.
8395         * config/sparc/sparclynx.mh: Likewise.
8396         * config/sparc/sun4os4.mh: Likewise.
8397         * config/i386/x86-64linux.mt: Likewise.
8398         * config/sparc/linux.mh: Likewise.
8399
8400 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
8401
8402         * configure.tgt: Configure gdbserver only for known working
8403         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
8404         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
8405         SUBDIRS if it is configured.  Update comment for ${nativefile}.
8406         * configure: Regenerated.
8407
8408 2002-02-13  Michael Snyder  <msnyder@redhat.com>
8409
8410         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8411
8412         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8413         (default_gcore_mach): Just return 0, work around a problem in bfd.
8414         (default_gcore_target): OK to return NULL if exec_bfd is null.
8415         (make_mem_sec): Use a cast, avoid a warning.
8416
8417         * procfs.c (find_memory_regions_callback): Use a cast instead of
8418         calling host_pointer_to_address (which complains if
8419         sizeof (host pointer) != sizeof (target pointer)).
8420         (procfs_make_note_section): Avoid overflow in psargs string.
8421
8422         * procfs.c (procfs_make_note_section): Make the default
8423         implementation return an error.
8424
8425 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
8426
8427         * procfs.c (procfs_make_note_section): Provide a default definition
8428         (for alpha-dec-osf4.0f). Fix typos.
8429
8430 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
8431
8432         * linux-proc.c: Add include of regcache.h.
8433         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8434
8435 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
8436
8437         From 2002-01-18 Greg McGary <greg@mcgary.org>:
8438         * memattr.c (create_mem_region): Disallow useless empty region.
8439         Regions are half-open intervals, so allow [A..B) [B..C) as
8440         non-overlapping.
8441
8442 2002-02-13  Michael Chastain <mec@shout.net>
8443
8444         * defs.h: Kill CONST_PTR.
8445         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8446         * c-lang.c (c_builtin_types): Likewise.
8447         * ch-lang.c (ch_builtin_types): Likewise.
8448         * f-lang.c (f_builtin_types): Likewise.
8449         * language.c (unknown_builtin_types): Likewise.
8450         * m2-lang.c (m2_builtin_types): Likewise.
8451         * p-lang.c (pascal_builtin_types): Likewise.
8452         * scm-lang.c (c_builtin_types): Likewise.
8453
8454 2002-02-13  Keith Seitz  <keiths@redhat.com>
8455
8456         * arm-tdep.h (arm_get_next_pc): Add declaration.
8457
8458 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
8459
8460         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
8461         with other related struct-returning functions.
8462         (arm_extract_struct_value_address): New function.
8463         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
8464         initialize float_format, double_format and long_double_format as
8465         appropriate to the endianness of the target.
8466         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8467         (arm_use_struct_convention): Delete declaration.
8468         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8469
8470 2002-02-13  Keith Seitz  <keiths@redhat.com>
8471
8472         * defs.h (core_addr_to_string_nz): New function.
8473
8474 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
8475
8476         Apply missing bits of 2002-01-15 patch.
8477         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8478         (fill_fpregset): Use i387_fill_fsave.
8479
8480 2002-02-12  Keith Seitz  <keiths@redhat.com>
8481
8482         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8483         (core_addr_to_string_nz): New function.
8484
8485 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8486
8487         * arm-linux-nat.c: Really include arm-tdep.h.
8488         * config/arm/tm-linux.h (struct type, struct value): Declare.
8489
8490 2002-02-11  Michael Snyder  <msnyder@redhat.com>
8491
8492         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8493         (gcore section): Ifdef for Solaris and Unixware only.
8494         (procfs_do_thread_registers): Unixware needs one lwpstatus
8495         per thread (not one prstatus or pstatus).
8496         (procfs_make_note_section): Iterate only over kernel threads (lwps),
8497         not over all gdb threads.  For unixware, call elfcore_write_pstatus
8498         once before iterating over threads.
8499
8500 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8501
8502         * arm-tdep.h: New file.
8503         * arm-tdep.c: Include arm-tdep.h.
8504         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8505         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8506         (arm_print_float_info, arm_register_type, convert_to_extended)
8507         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8508         (arm_extract_return_value, arm_register_name): Make static.
8509         (arm_software_single_step): Similarly.  Fix types in declaration.
8510         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8511         (arm_store_return_value, arm_store_struct_return): New functions.
8512         (arm_gdbarch_init): Register the above functions.  Also register
8513         call_dummy_start_offset, sizeof_call_dummy_words,
8514         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8515         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8516         max_register_virtual_size, register_size.  Set up
8517         prologue_cache.saved_regs here, rather than ...
8518         (_initialize_arm_tdep): ... here.
8519         * config/arm/tm-arm.h (struct type, struct value): Delete forward
8520         declarations.
8521         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8522         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8523         (arm_print_float_info, arm_register_type, convert_to_extended)
8524         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8525         (arm_extract_return_value, arm_register_name): Delete declarations.
8526         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8527         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8528         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8529         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8530         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8531         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8532         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8533         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8534         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8535         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8536         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8537         (arm_get_next_pc): No-longer static -- these are needed by the RDI
8538         interface.
8539         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8540         * remote-rdi.c remote-rdp.c: Likewise.
8541         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8542         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8543         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8544         definition.
8545
8546         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8547         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8548         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8549         from non-ARM_ prefixed definitions.
8550         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8551         all uses of above.
8552         * remote-rdi.c remote-rdp.c: Likewise.
8553         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8554
8555 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
8556
8557         * arm-tdep.c (arm_frameless_function_invocation)
8558         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8559         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8560         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8561         (arm_pop_frame, arm_get_next_pc): Make static.
8562         (arm_gdbarch_init): Register above in gdbarch structure.
8563         (arm_read_fp): Renamed from arm_target_read_fp.
8564         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8565         * config/arm/tm-arm.h (arm_frameless_function_invocation)
8566         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8567         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8568         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8569         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8570         (arm_pc_is_thumb_dummy): Delete declarations.
8571         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8572         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8573         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8574         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8575
8576 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
8577
8578         * symtab.c (compare_search_syms): New function.
8579         (sort_search_symbols): New function.
8580         (search_symbols): Sort symbols after searching rather than
8581         before.
8582
8583 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8584
8585         * NEWS: Linux -> GNU/Linux.
8586
8587 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8588
8589         * gdbarch.sh: For for level one methods, disallow a definition
8590         when partially multi-arched.  Add comments explaining rationale.
8591         * gdbarch.h: Re-generate.
8592
8593 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8594
8595         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8596         multi-arch partial.
8597
8598 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8599
8600         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
8601         field.  Use diff -u.
8602         * gdbarch.c: Re-generate.
8603
8604 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8605
8606         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8607         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8608         partial.
8609
8610 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8611
8612         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8613         multi-arch partial.
8614         (PUSH_ARGUMENTS): Switch to using predefault.
8615         * gdbarch.c: Regenerate.
8616
8617 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
8618
8619         * valops.c (PUSH_ARGUMENTS): Delete definition.
8620         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8621         partial.  Default to default_push_arguments.
8622         * gdbarch.h, gdbarch.c: Regenerate.
8623
8624 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8625
8626         * defs.h (throw_exception): Rename return_to_top_level.  Update
8627         comments.
8628         * utils.c (error_stream, internal_verror, quit): Ditto.
8629         * top.c (throw_exception, catcher): Ditto.
8630         * sparclet-rom.c (sparclet_load): Ditto.
8631         * remote.c (interrupt_query, minitelnet): Ditto.
8632         * remote-sds.c (interrupt_query): Ditto.
8633         * remote-mips.c (mips_error, mips_kill): Ditto.
8634         * ocd.c (interrupt_query): Ditto.
8635         * monitor.c (monitor_interrupt_query): Ditto.
8636         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8637         * target.h: Update comment.
8638
8639         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8640
8641 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8642
8643         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8644         default_double_format.
8645         * gdbarch.h, gdbarch.c: Re-generate.
8646         * findvar.c (floatformat_unknown): Delete variable definition.
8647         * doublest.h (floatformat_unknown): Delete variable declaration.
8648
8649 2002-02-09  Jim Blandy  <jimb@redhat.com>
8650
8651         * stabsread.c (read_type): Add code to parse Sun's syntax for
8652         prototyped function types.
8653
8654 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
8655
8656         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8657         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8658
8659 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8660
8661         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8662         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
8663         now _initialize_xcoffsolib gets called again and overrides the
8664         commands from solib.c in a native configuration.
8665
8666 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
8667
8668         * doublest.c (store_typed_floating): Don't try to return a value.
8669         Fixes PR gdb/290.
8670
8671 2002-02-08  Jim Blandy  <jimb@redhat.com>
8672
8673         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8674         is prototyped and has no arguments, print its argument list as
8675         `(void)'.
8676
8677 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8678
8679         * MAINTAINERS (write-after-approval): Add myself.
8680         (paper-trail): I've escaped!
8681
8682 2002-02-08  Christopher Faylor  <cgf@redhat.com>
8683
8684         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8685         changes.
8686         (_initialize_check_for_gdb_ini): Ditto.
8687
8688 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
8689
8690         * win32-nat.c (cygwin_pid_to_str): Fix typo.
8691         xaprintf -> xasprintf.
8692
8693 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
8694
8695         * win32-nat.c: Remove use of printf and sprintf functions.
8696
8697 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
8698
8699         * arm-tdep.c (arm_frame_chain_valid): Make static.
8700         (arm_push_arguments): Likewise.
8701         (arm_gdbarch_init): New function.
8702         (_initialize_arm_tdep): Call it.
8703         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8704         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8705         (FRAME_CHAIN_VALID): Delete.
8706         (arm_frame_chain_valid): Delete declaration.
8707         (PUSH_ARGUMENTS): Delete.
8708         (arm_push_arguments): Delete declaration.
8709         (CALL_DUMMY_P): Delete.
8710
8711 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
8712             Corinna Vinschen  <vinschen@redhat.com>
8713
8714         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8715         on builtin float types.
8716
8717 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
8718
8719         * utils.c: Include <curses.h> before "bfd.h".
8720         * tui/tui-hooks.c: Likewise.
8721         * tui/tui.c: Likewise.
8722         * tui/tuiCommand.c: Likewise.
8723         * tui/tuiData.c: Likewise.
8724         * tui/tuiDataWin.c: Likewise.
8725         * tui/tuiDisassem.c: Likewise.
8726         * tui/tuiGeneralWin.c: Likewise.
8727         * tui/tuiIO.c: Likewise.
8728         * tui/tuiLayout.c: Likewise.
8729         * tui/tuiRegs.c: Likewise.
8730         * tui/tuiSource.c: Likewise.
8731         * tui/tuiSourceWin.c: Likewise.
8732         * tui/tuiStack.c: Likewise.
8733         * tui/tuiWin.c: Likewise.
8734
8735 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
8736
8737         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8738         to include space for pseudoregs as well. Update loops accordingly.
8739         (sh_fp_frame_init_saved_regs): Ditto.
8740         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8741
8742 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
8743
8744         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8745         Add Richard Earnshaw to Arm maintainers.
8746
8747 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
8748
8749         * defs.h (warning_begin): Delete declaration.
8750
8751         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8752         Delete macro.
8753
8754 2002-02-07  Michael Snyder  <msnyder@redhat.com>
8755
8756         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8757         Logic bug, remove misplaced else.
8758
8759 2002-02-07  Klee Dienes  <klee@apple.com>
8760
8761         * fork-inferior.c (fork_inferior): Add '!' to the list of
8762         characters that need to be quoted when building a string for the
8763         shell.  Quote '!' specifically with a backslash, since CSH chokes
8764         when trying to evaluate "str!str".
8765
8766 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
8767
8768         * rdi-share/host.h: Only provide a typedef for bool if it is not
8769         defined.
8770
8771 2002-02-04  Michael Snyder  <msnyder@redhat.com>
8772
8773         * breakpoint.h (enum bptype): Add new overlay event bp type.
8774         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8775
8776         * breakpoint.c (create_internal_breakpoint): New function.
8777         (internal_breakpoint_number): Moved into create_internal_breakpoint.
8778         (create_longjmp_breakpoint): Use create_internal_breakpoint.
8779         (create_thread_event_breakpoint): Ditto.
8780         (create_solib_event_breakpoint): Ditto.
8781         (create_overlay_event_breakpoint): New function.
8782         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8783         (update_breakpoints_after_exec): Delete and re-initialize
8784         overlay event breakpoints after an exec.  Add FIXME comment
8785         about longjmp breakpoint.
8786         (print_it_typical): Ignore overlay event breakpoints.
8787         (print_one_breakpoint): Ditto.
8788         (mention): Ditto.
8789         (bpstat_what): Do not stop for overlay event breakpoints.
8790         (delete_breakpoint): Don't delete overlay event breakpoints.
8791         (breakpoint_re_set_one): Delete the overlay event breakpoint.
8792         (breakpoint_re_set): Re-create overlay event breakpoint.
8793
8794         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8795         (overlay_manual_command): Disable overlay breakpoints.
8796         (overlay_off_command): Disable overlay breakpoints.
8797
8798 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8799
8800         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8801         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8802         to here from config/tm-arm.h.
8803         (coff_sym_is_thumb): Make static.
8804         (arm_elf_make_msymbol_special): New function.
8805         (arm_coff_make_msymbol_special): New function.
8806         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8807         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8808         (coff_sym_is_thumb): Delete declaration.
8809         (arm_elf_make_msymbol_special): Declare.
8810         (arm_coff_make_msymbol_special): Declare.
8811         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8812         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8813
8814 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8815
8816         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8817
8818 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
8819
8820         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8821         * gdbarch.c gdbarch.h: Regenerate.
8822         * arch-utils.c (default_print_float_info): New function.
8823         * arch-utils.h (default_print_float_info): Prototype it.
8824         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8825         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8826         (PRINT_FLOAT_INFO): Document it.
8827
8828         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8829         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8830         (PRINT_FLOAT_INFO): Define.
8831
8832 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
8833
8834         * win32-nat.c (_initialize_check_for_gdb_ini):
8835         Add typecast to sprintf argument to suppress a warning.
8836
8837 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
8838
8839         * win32-nat.c (last_sig): Changed type of variable to target_signal,
8840         to allow easier handling of pass state.
8841         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8842         that gives exception name and address.
8843         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8844         and set last_sig value to ourstatus->value.sig. Some missing
8845         exceptions added.
8846         (child_continue): Correctly report continue_status.
8847         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8848         TARGET_SIGNAL_0 (new default value).
8849         (child_resume): consider sig argument passed to decide if
8850         the exception should be passed to debuggee or not.
8851
8852 2002-02-05  Michael Snyder  <msnyder@redhat.com>
8853
8854         * regcache.c (fetch_register): Call target_fetch_register
8855         only if we don't call FETCH_PSEUDO_REGISTER.
8856         (store_register): Call target_store_register only if we
8857         don't call STORE_PSEUDO_REGISTER.
8858
8859 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
8860
8861         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8862         ELF_MAKE_MSYMBOL_SPECIAL.
8863         * gdbarch.c, gdbarch.h: Regenerate.
8864         * arch-utils.c (default_make_msymbol_special): New function.
8865         * arch-utils.h (default_make_msymbol_special): Export.
8866         * elfread.c (elf_symtab_read): Compile use of
8867         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8868         multiarched.
8869         * coffread.c (coff_symtab_read): Ditto, for
8870         COFF_MAKE_MSYMBOL_SPECIAL.
8871
8872 2002-02-05  Jim Blandy  <jimb@redhat.com>
8873
8874         * solib-svr4.c (svr4_truncate_ptr): New function.
8875         (svr4_relocate_section_addresses): Do the address arithmetic with
8876         the appropriate truncation for target addresses, even when
8877         CORE_ADDR is larger than a target address.
8878
8879 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8880
8881         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8882         to (int *).
8883
8884 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8885
8886         * gdbserver/linux-low.c (kill_inferior): Remove commented out
8887         code.
8888
8889 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8890
8891         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8892
8893 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8894
8895         * gdbserver/linux-low.c: Remove unused include files.
8896
8897 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8898
8899         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8900         (read_inferior_memory): Use it.
8901         (write_inferior_memory): Likewise.
8902
8903 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8904
8905         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8906         grubbing through sys_errlist.
8907
8908 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
8909
8910         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8911
8912 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
8913         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8914
8915 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
8916
8917         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8918         (do_sfunc, set_cmd_sfunc): New functions.
8919
8920         * command.h (struct cmd_list_element): Add field func.
8921         * cli/cli-decode.h (struct cmd_list_element): Ditto.
8922         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8923         * cli/cli-decode.h: Ditto.
8924
8925         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8926         (help_all, help_cmd_list): Ditto.
8927         (find_cmd, complete_on_cmdlist): Ditto.
8928         * top.c (execute_command): Ditto.
8929
8930         * cli/cli-setshow.c (do_setshow_command): Call func instead of
8931         function.sfunc.
8932
8933         * infcmd.c (notice_args_read): Fix function signature.
8934
8935         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8936         * cli/cli-decode.c (add_set_cmd): Ditto.
8937         * utils.c (initialize_utils): Ditto.
8938         * maint.c (_initialize_maint_cmds): Ditto.
8939         * infrun.c (_initialize_infrun): Ditto.
8940         * demangle.c (_initialize_demangler): Ditto.
8941         * remote.c (add_packet_config_cmd): Ditto.
8942         * mips-tdep.c (_initialize_mips_tdep): Ditto.
8943         * cris-tdep.c (_initialize_cris_tdep): Ditto.
8944         * proc-api.c (_initialize_proc_api): Ditto.
8945         * kod.c (_initialize_kod): Ditto.
8946         * valprint.c (_initialize_valprint): Ditto.
8947         * top.c (init_main): Ditto.
8948         * infcmd.c (_initialize_infcmd): Ditto.
8949         * corefile.c (_initialize_core): Ditto.
8950         * arm-tdep.c (_initialize_arm_tdep): Ditto.
8951         * arch-utils.c (initialize_current_architecture): Ditto.
8952         (_initialize_gdbarch_utils): Ditto.
8953         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8954
8955         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8956         * wince.c (_initialize_inftarg): Ditto.
8957         * symfile.c (_initialize_symfile): Ditto.
8958         * mips-tdep.c (_initialize_mips_tdep): Ditto.
8959         * language.c (_initialize_language): Ditto.
8960         * arc-tdep.c (_initialize_arc_tdep): Ditto.
8961
8962 2002-02-04  Michael Snyder  <msnyder@redhat.com>
8963
8964         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8965
8966 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
8967
8968         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8969         Add rules for building the register data files.
8970
8971 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
8972
8973         * regformats/regdat.sh: Add braces to the definition of
8974         expedite_regs_${arch}.
8975
8976 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
8977
8978         * regformats/regdef.h (struct reg): Add comment describing the
8979         requirements for offset and size fields.
8980
8981 2002-02-04  Andreas Schwab  <schwab@suse.de>
8982
8983         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8984         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8985
8986 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
8987
8988         * gdbarch.sh (copyright): Update years in generated header.
8989         (SMASH_TEXT_ADDRESS): Add rule.
8990         * gdbarch.h, gdbarch.c: Re-generate.
8991         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8992         * dbxread.c: Likewise.
8993         * dwarfread.c: Likewise.
8994         * elfread.c: Likewise.
8995         * somread.c: Likewise.
8996
8997         * arm-tdep.c (arm_smash_text_address): New function.
8998         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8999
9000 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
9001
9002         Add support for hardware watchpoints on win32 native.
9003         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9004         CONTEXT_DEBUG_REGISTERS.
9005         (dr variable): New variable. Static array containing a local copy
9006         of debug registers.
9007         (debug_registers_changed): New variable.  Reflects when debug registers
9008         are changed and need to be written to inferior.
9009         (debug_registers_used): New variable. Reflects when any debug register
9010         was set, used when new threads are created.
9011         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9012         i386-nat code.
9013         (thread_rec): Set dr array if id is the thread of current_event .
9014         (child_continue, child_resume): Change the debug registers for all
9015         threads if debug_registers_changed.
9016         (child_add_thread): Change the debug registers if debug_registers_used.
9017         * config/i386/cygwin.mh: Add use of i386-nat.o file.
9018         Link nm.h to new nm-cygwin.h file.
9019         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9020         of hardware registers.
9021
9022 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
9023
9024         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9025         Restore behavour broken by 2002-01-20 Andrew Cagney
9026         <ac131313@redhat.com> IEEE_FLOAT removal.
9027
9028 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9029
9030         * c-valprint.c (c_val_print): Pass a proper valaddr to
9031         cp_print_class_method.
9032         * valops.c (search_struct_method): If there is only one method
9033         and args is NULL, return that method.
9034
9035 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9036
9037         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9038         accessing tag_name directly.
9039
9040 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9041
9042         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9043         of accessing tag_name directly.
9044
9045 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
9046
9047         PR gdb/280
9048         * gdbtypes.c (replace_type): New function.
9049         * gdbtypes.h (replace_type): Add prototype.
9050         * stabsread.c (read_type): Use replace_type.
9051
9052 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
9053
9054         * Makefile.in (memattr.o): Add missing dependencies rule.
9055
9056 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9057
9058         * breakpoint.c (break_at_finish_command): Really export.
9059         (break_at_finish_at_depth_command): Ditto.
9060         (tbreak_at_finish_command): Ditto.
9061         * hppa-tdep.c: Include completer.h.
9062         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9063         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9064
9065 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9066
9067         * utils.c (do_write): New function.
9068         (error_stream): Rewrite combining the code from error_begin and
9069         verror.
9070         (verror): Rewrite using error_stream.
9071         (error_begin): Delete function.
9072
9073 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9074
9075         * utils.c (error_begin): Make static.
9076         * defs.h (error_begin): Delete declaration.
9077
9078         * linespec.c (cplusplus_error): Replace cplusplus_hint.
9079         (decode_line_1): Use cplusplus_error instead of error_begin,
9080         cplusplus_hint and return_to_top_level.
9081         * coffread.c (coff_symfile_read): Use error instead of error_begin
9082         and return_to_top_level.
9083         * infrun.c (default_skip_permanent_breakpoint): Ditto.
9084
9085 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9086
9087         * language.h (type_error, range_error): Make string parameter
9088         constant.
9089         * language.c (warning_pre_print): Delete extern declaration.
9090         * dwarfread.c (warning_pre_print): Ditto.
9091         * language.c (type_error, range_error): Rewrite to use verror and
9092         vwarning instead of warning_begin.
9093
9094 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9095
9096         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9097         (set_ignore_count): Move misplaced comment back where it belongs.
9098
9099 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
9100
9101         * command.h (NO_FUNCTION): Delete macro.
9102         * cli/cli-decode.h (NO_FUNCTION): Ditto.
9103         * top.c (execute_command): Replace NO_FUNCTION with NULL.
9104         * tracepoint.c (_initialize_tracepoint): Ditto.
9105         * cli/cli-decode.c (add_set_cmd): Ditto.
9106         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9107
9108 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9109
9110         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9111         Update ``this'' pointer when calling virtual functions.
9112
9113 2002-02-01  Michael Snyder  <msnyder@redhat.com>
9114
9115         * breakpoint.c (create_temp_exception_breakpoint): Delete.
9116         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9117
9118 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
9119
9120         * regformats/reg-arm.dat: New file.
9121         * regformats/reg-i386.dat: New file.
9122         * regformats/reg-ia64.dat: New file.
9123         * regformats/reg-m68k.dat: New file.
9124         * regformats/reg-mips.dat: New file.
9125         * regformats/reg-ppc.dat: New file.
9126         * regformats/reg-sh.dat: New file.
9127         * regformats/regdef.h: New file.
9128         * regformats/regdat.sh: New file.
9129
9130 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
9131
9132         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9133         (arm_frame_args_address, arm_frame_locals_address): New functions.
9134         (arm_frame_num_args): New function.
9135         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9136         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9137         (FRMA_NUM_ARGS): Call arm_frame_num_args.
9138
9139 2002-01-31  Michael Snyder  <msnyder@redhat.com>
9140
9141         * breakpoint.c (break_at_finish_command): Export.
9142         (break_at_finish_at_depth_command): Export.
9143         (tbreak_at_finish_command): Export.
9144         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9145         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9146         "tbreak" commands, which are HPPA specific.
9147
9148         * printcmd.c (disassemble_command): Remove an ancient
9149         artifact of an old merge.
9150
9151         * symfile.h (enum overlay_debugging_state):
9152         Define enum constant values for overlay mode.
9153         * symfile.c (overlay_debugging): Use enums instead of literals.
9154         (overlay_is_mapped, overlay_auto_command,
9155         overlay_manual_command): Ditto.
9156
9157         * breakpoint.c (insert_breakpoints, remove_breakpoint,
9158         breakpoint_here_p, breakpoint_inserted_here_p,
9159         breakpoint_thread_match, bpstat_stop_status,
9160         describe_other_breakpoints, check_duplicates, clear_command):
9161         Coding standard fixes.
9162
9163         * target.c (target_xfer_memory): Add spaces, coding standard.
9164         (do_xfer_memory): Add missing line to trust-readonly
9165         code: check bfd SEC_READONLY flag for section.
9166
9167 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
9168
9169         * PROBLEMS: Fix typo, 5.1->5.1.1.
9170
9171 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
9172
9173         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9174         data symbols, since we search based on textlow and texthigh.
9175         (find_pc_sect_symtab): Likewise.
9176
9177 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9178
9179         * defs.h (vwarning): Declare.
9180         * utils.c (vwarning): New function.
9181         (warning): Call vwarning.
9182         (warning_begin): Delete function.
9183
9184         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9185         the warning message.
9186         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9187         warning_begin.
9188
9189 2002-01-30  Michael Snyder  <msnyder@redhat.com>
9190
9191         * NEWS: Mention "set trust-readonly-sections" command.
9192         Mention generate-core-file command.
9193
9194 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9195
9196         * target.c: New command, "set trust-readonly-sections on".
9197         (do_xfer_memory): Honor the suggestion to trust readonly sections
9198         by reading them from the object file instead of from the target.
9199         (initialize_targets): Register command "set trust-readonly-sections".
9200
9201 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9202
9203         * parse.c (target_map_name_to_register): Simplify, search regs and
9204         pseudo-regs using a single loop.
9205
9206 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
9207
9208         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9209
9210 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
9211
9212         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9213         * config/i386/i386v42mp.mh: Add i387-nat.o .
9214         * i386v4-nat.c: Include i387-nat.h.
9215         (supply_fpregset): Use i387_supply_fsave.
9216         (fill_fpregset): Use i387_fill_fsave.
9217
9218 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
9219
9220         * arm-tdep.c (arm_call_dummy_words): Define.
9221         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9222         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9223         (CALL_DUMMY_WORDS): Define.
9224         (arm_call_dummy_words): Declare.
9225         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9226         (arm_linux_call_dummy_words): Declare.
9227
9228 2002-01-30  Andreas Schwab  <schwab@suse.de>
9229
9230         * m68klinux-nat.c: Fix last change to use regcache_collect
9231         instead of referencing registers[] directly.
9232
9233 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
9234
9235         * parse.c (target_map_name_to_register): Delete code wrapped in
9236         #ifdef REGISTER_NAME_ALIAS_HOOK.
9237
9238 2002-01-28  Michael Snyder  <msnyder@redhat.com>
9239
9240         * regcache.c (legacy_read_register_gen): Need to be able to
9241         read pseudo-register as well as real register.
9242         (legacy_write_register_gen): Ditto.
9243
9244 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9245
9246         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9247         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9248         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9249         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9250         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9251         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9252         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9253         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9254         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9255         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9256         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9257         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9258         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9259         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9260         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9261         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9262         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9263         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9264         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9265         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9266
9267 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9268
9269         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9270         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9271         (initialize_current_architecture): Update target_byte_order using
9272         information from BFD.
9273         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9274         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9275
9276 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
9277
9278         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9279         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
9280
9281         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9282         #ifdef INVALID_FLOAT.
9283         * infcmd.c (do_registers_info): Ditto.
9284         * values.c (unpack_double): Ditto.  Add comment.
9285
9286         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9287         already commented out.
9288
9289 2002-01-26  Andreas Schwab  <schwab@suse.de>
9290
9291         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9292         * m68klinux-nat.c: Update ptrace interface for fetching/storing
9293         registers and add support for PTRACE_GETREGS.
9294
9295 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
9296
9297         GDB 5.1.1 released from 5.1 branch.
9298         * NEWS: Add 5.1.1 news.
9299         * README: Sync with 5.1 branch.
9300
9301 2002-01-23  Fred Fish  <fnf@redhat.com>
9302
9303         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9304         stabstring on initial malloc.  Reallocing will copy it for us,
9305         if necessary.
9306
9307 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9308
9309         * Makefile.in (hpread_h): Delete.
9310         (HFILES_NO_SRCDIR): Remove hpread.h.
9311         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9312         (hpread.o): Update dependencies.
9313         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9314
9315         * hp-psymtab-read.c: Remove file.
9316         * hp-symtab-read.c: Remove file.
9317         * hpread.h: Remove file.
9318
9319         * hpread.c: Merge all contents of hp-psymtab-read.c,
9320         hp-symtab-read.c and hpread.h into this file, as it was prior to
9321         January 1999.
9322
9323         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9324         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9325         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9326         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9327
9328 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
9329
9330         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9331         fill_gregset): Call gdbarch_tdep() just once, assign result to
9332         variable and use that, instead of calling the function several
9333         times.
9334
9335 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9336
9337         * configure.host: Accept sparcv9 as alias for sparc64.
9338         * configure.tgt: Likewise.
9339
9340 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
9341
9342         * solib-aix5.c (build_so_list_from_mapfile)
9343         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9344         arguments is not reversed.
9345         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9346         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9347
9348 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
9349
9350         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9351         modified version of obsolete sh_fetch_pseudo_register.
9352         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9353         (sh4_register_read): New function.
9354         (sh_pseudo_register_write): New function. Renamed and modified
9355         version of obsolete sh_store_pseudo_register.
9356         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9357         (sh4_register_write): New function.
9358         (sh_gdbarch_init): Remove setting of gdbarch function
9359         fetch_pseudo_register and store_pseudo_register. Remove setting of
9360         register_convert_to_raw, register_convert_to_virtual,
9361         register_convertible.
9362         (sh_sh4_register_convertible): Delete. No longer needed. All is
9363         taken care by architecture specific functions
9364         register_read/register_write.
9365         (sh_sh4_register_convert_to_virtual): Make static.
9366         (sh_sh4_register_convert_to_raw): Ditto.
9367
9368 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
9369
9370         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9371         (floatformat_is_nan, floatformat_mantissa): Ditto.
9372
9373         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9374         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9375         builtin_type_ieee_double_little,
9376         builtin_type_ieee_double_littlebyte_bigword,
9377         builtin_type_m68881_ext, builtin_type_i960_ext,
9378         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9379         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9380         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9381         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9382
9383 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
9384
9385         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9386         parameter.  Set frameless flag if it exists and depended of
9387         whether the scanned function is frameless or not.
9388         (xstormy16_skip_prologue): If function is frameless, return
9389         result of xstormy16_scan_prologue().
9390         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9391         call.
9392
9393 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
9394
9395         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9396         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9397         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9398         sh_sh4_register_byte, sh_sh4_register_raw_size,
9399         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9400         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9401         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9402         sh_store_pseudo_register, sh_do_pseudo_register): Call
9403         gdbarch_tdep() just once, assign result to variable and use that,
9404         instead of calling the function several times.
9405
9406 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
9407
9408         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9409         macros instead of LAST_FPU_CTRL_REGNUM.
9410         (store_register): Likewise.
9411
9412 2002-01-21  Jim Blandy  <jimb@redhat.com>
9413
9414         * infcmd.c (run_command): Check that the `exec' target layer's BFD
9415         is up-to-date before running the program, not just when a program
9416         exits.
9417
9418 2002-01-21  Fred Fish  <fnf@redhat.com>
9419
9420         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9421         when we have found all instructions we are looking for.
9422
9423 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9424
9425         * arm-tdep.c (arm_register_name): New function.
9426         (arm_registers_names): Make static.
9427         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9428         (arm_register_name): Declare.
9429         (REGISTER_NAME): Use it.
9430
9431 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
9432             Kevin Buettner  <kevinb@redhat.com>
9433
9434         Convert arm targets to new FRAME interface.
9435         * arm-tdep.c (struct frame_extra_info): Remove fsr.
9436         (arm_frame_find_save_regs): Delete.
9437         (arm_frame_init_saved_regs): New.
9438         (arm_init_extra_frame_info): Alloacte saved_regs as required.
9439         Allocate extra_info as required.  Convert all uses of fsr.regs
9440         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9441         to use extra_info.
9442         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9443         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9444         (check_prologue_cache, save_prologue_cache): Likewise.
9445         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9446         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9447         (FRAME_FIND_SAVED_REGS): Delete.
9448         (arm_frame_find_saved_regs): Delete prototype.
9449         (arm_frame_init_saved_regs): New prototype.
9450         (FRAME_INIT_SAVED_REGS): Define.
9451
9452 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9453
9454         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9455
9456 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9457
9458         From Jeff Law <law@redhat.com>:
9459         * infttrace.c: Include <sys/pstat.h>.
9460         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
9461         exec file if the ttrace equivalent fails.
9462
9463 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9464
9465         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9466         (closeLogFile): Ditto.
9467
9468 2002-01-20  Michael Chastain  <mec@shout.net>
9469
9470         * top.c (print_gdb_version): Bump copyright year to 2002.
9471
9472 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9473
9474         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9475         Zannoni and Eli Zaretskii.
9476
9477 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9478
9479         * buildsym.c: Update copyright years.
9480         * c-typeprint.c: Likewise.
9481         * dwarf2read.c: Likewise.
9482         * f-typeprint.c: Likewise.
9483         * gdbtypes.c: Likewise.
9484         * gdbtypes.h: Likewise.
9485         * hp-symtab-read.c: Likewise.
9486         * hpread.c: Likewise.
9487         * mdebugread.c: Likewise.
9488         * p-typeprint.c: Likewise.
9489
9490 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9491
9492         * remote-sim.c (gdbsim_open): Simplify code testing the macro
9493         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
9494         byte-order selectable.
9495         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9496         * arch-utils.c: Ditto.
9497         (set_endian): Ditto.
9498         (set_endian_from_file): Ditto.
9499         * gdbserver/low-sim.c (create_inferior): Ditto.
9500         * gdbarch.sh: Ditto.
9501         * gdbarch.h: Re-generate.
9502         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9503         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9504         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9505         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9506         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9507         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9508         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9509         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9510         macro definition.
9511         * config/mips/tm-wince.h: Remove #undef of macro
9512         TARGET_BYTE_ORDER_SELECTABLE.
9513         * config/sh/tm-wince.h: Ditto.
9514
9515 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9516
9517         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9518         member function fields.  Add accessor macro
9519         TYPE_FN_FIELD_ARTIFICIAL.
9520         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9521         * c-typeprint.c (c_type_print_base): Skip artificial member
9522         functions.
9523
9524 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9525
9526         * f-typeprint.c: Delete unused function f_type_print_args.
9527         * p-typeprint.c: Delete unused function pascal_type_print_args.
9528
9529 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
9530
9531         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
9532         comment.  Add ``artificial'' to ``union field_location''.
9533
9534         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9535
9536         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9537         * mdebugread.c (parse_symbol): Likewise.
9538         * stabsread.c (define_symbol): Likewise.
9539         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9540         initializing TYPE_FIELD_BITPOS to n (obsolete).
9541         (hpread_doc_function_type): Likewise.
9542         * hpread.c (hpread_function_type): Likewise.
9543
9544 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9545
9546         * configure.in (host_makefile_frag): Only require a host makefile
9547         fragment when a native build.
9548         * configure: Re-generate.
9549
9550 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
9551
9552         * doublest.h (floatformat_from_type): Declare.
9553         * doublest.c (floatformat_from_type): New function.
9554         (convert_typed_floating): Use.
9555
9556         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9557         call to function floatformat_from_type.
9558
9559         * gdbarch.sh (IEEE_FLOAT): Delete.
9560         * gdbarch.h, gdbarch.c: Re-generate.
9561         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9562         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9563         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9564         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9565         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9566         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9567         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9568         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9569         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9570         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9571         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9572         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9573
9574         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9575         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9576         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9577         * sh-tdep.c (sh_gdbarch_init): Ditto.
9578         * mips-tdep.c (mips_gdbarch_init): Ditto.
9579         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9580         * cris-tdep.c (cris_gdbarch_init): Ditto.
9581
9582 2002-01-20  Jiri Smid  <smid@suse.cz>
9583
9584         * configure.host, configure.tgt: Support x86-64.
9585         * NEWS: Note new target x86-64.
9586
9587         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9588         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9589         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9590         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9591         x86-64-linux-nat.o): Fix dependencies.
9592
9593 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9594
9595         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9596         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9597         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9598         * config/sparc/xm-sun4os4.h: Delete file.
9599         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9600
9601 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9602
9603         * config/sparc/sparclynx.mh (XM_FILE): Delete.
9604         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9605         * config/m68k/m68klynx.mh (XM_FILE): Delete.
9606         * config/i386/i386lynx.mh (XM_FILE): Delete.
9607         * config/rs6000/xm-rs6000ly.h: Delete file.
9608         * config/sparc/xm-sparclynx.h: Delete file.
9609         * config/m68k/xm-m68klynx.h: Delete file.
9610         * config/i386/xm-i386lynx.h: Delete file.
9611         * config/xm-lynx.h: Delete file.
9612         * config/djgpp/fnchange.lst: Update.
9613
9614 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9615
9616         * alpha-tdep.c (alpha_register_byte): New function.
9617         (alpha_register_raw_size): Ditto.
9618         (alpha_register_virtual_size): Ditto.
9619         (alpha_skip_prologue_internal): Renamed from
9620         alpha_skip_prologue.
9621         (alpha_skip_prologue): New version that calls
9622         alpha_skip_prologue_internal.
9623         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9624         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9625         second argument from alpha_skip_prologue.
9626         (REGISTER_BYTE): Use alpha_register_byte.
9627         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9628         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9629         (FRAMELESS_FUNCTION_INVOCATION): Use
9630         generic_frameless_function_invocation_not.
9631         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9632         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9633
9634 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9635
9636         * config/mips/xm-news-mips.h: Delete file.
9637         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9638
9639         * config/m88k/xm-m88k.h: Delete file.
9640         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9641         * config/m88k/xm-delta88v4.h: Ditto.
9642         * config/m88k/xm-delta88.h: Ditto.
9643
9644         * config/alpha/xm-fbsd.h: Delete file.
9645         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9646
9647         * config/sparc/xm-sparc.h: Delete file.
9648         * Makefile.in (xm-sun4os4.h): Delete dependency.
9649         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9650         * config/sparc/xm-sun4os4.h: Ditto.
9651         * config/sparc/xm-linux.h: Ditto.
9652
9653         * config/i386/xm-windows.h: Delete file.
9654
9655 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
9656
9657         * utils.c: Include <sys/param.h> for MAXPATHLEN.
9658         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9659
9660 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9661
9662         * alpha-tdep.c (alpha_call_dummy_words): New.
9663         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9664         (CALL_DUMMY_P): Define.
9665         (CALL_DUMMY_WORDS): Define.
9666         (SIZEOF_CALL_DUMMY_WORDS): Define.
9667
9668 2002-01-19  Per Bothner  <per@bothner.com>
9669
9670         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
9671         isn't NULL, which can happen with some gcj-3.x-produced code.
9672
9673 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
9674
9675         * alpha-tdep.c (alpha_register_virtual_type): New function.
9676         (alpha_init_frame_pc_first): Ditto.
9677         (alpha_fix_call_dummy): Ditto.
9678         (alpha_store_struct_return): Ditto.
9679         (alpha_extract_struct_value_address): Ditto.
9680         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9681         alpha_register_virtual_type.
9682         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9683         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9684         alpha_extract_struct_value_address.
9685         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9686         (INIT_FRAME_PC): Use init_frame_pc_noop.
9687         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9688
9689 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
9690
9691         * i386gnu-nat.c: Include "i386-tdep.h".
9692         (fetch_fpregs): Simplify code dealing with uninitialized floating
9693         point states such that it doesn't require FP7_REGNUM.
9694
9695 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9696
9697         * alpha-tdep.c (frame_extra_info): New.
9698         (alpha_find_saved_regs): Make static.  Use
9699         frame->extra_info.
9700         (alpha_frame_init_saved_regs): New function.
9701         (alpha_frame_saved_pc): Use frame->extra_info.
9702         (temp_saved_regs): Don't declare as struct frame_saved_regs.
9703         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9704         (init_extra_frame_info): Rename to...
9705         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
9706         (alpha_print_extra_frame_info): New function.
9707         (alpha_frame_locals_address): Ditto.
9708         (alpha_frame_args_address): Ditto.
9709         (alpha_pop_frame): Use frame->extra_info.
9710         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9711         alpha_frame_args_address.
9712         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9713         (alpha_find_saved_regs): Remove prototype.
9714         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9715         (EXTRA_FRAME_INFO): Remove.
9716         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9717         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9718
9719 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9720
9721         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9722         (alpha_cannot_fetch_register): Ditto.
9723         (alpha_cannot_store_register): Ditto.
9724         (alpha_register_convertible): Ditto.
9725         (alpha_use_struct_convention): Ditto.
9726         * config/alpha/tm-alpha.h: Update copyright years.
9727         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9728         (INNER_THAN): Use core_addr_lessthan.
9729         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9730         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9731         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9732         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9733         (FRAME_CHAIN): Remove unnecessary cast.
9734
9735 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
9736
9737         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9738         obsolete.
9739
9740 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
9741
9742         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
9743         * monitor.c, remote-array.c, remote-bug.c: Ditto.
9744         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9745         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9746         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9747         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9748         * x86-64-linux-nat.c: Ditto.
9749
9750 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9751
9752         * alpha-tdep.c (alpha_register_name): New function.
9753         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9754         (REGISTER_NAME): Define.
9755
9756 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9757
9758         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9759
9760 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9761
9762         * alpha-tdep.c: Update copyright years.
9763         (alpha_next_pc): New function.
9764         (alpha_software_single_step): Ditto.
9765         * config/alpha/tm-alpha.h: Add prototype for
9766         alpha_software_single_step.
9767
9768 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
9769
9770         * alphabsd-nat.c: Update copyright years.
9771         (fill_gregset): Use regcache_collect.
9772         (fill_fpregset): Likewise.
9773         (fetch_inferior_registers): Only fetch integer registers
9774         if requested to do so.
9775         (store_inferior_registers): Only store integer registers
9776         if requested to do so.
9777
9778 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9779
9780         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9781         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9782         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9783         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9784         * config/alpha/fbsd.mh (XDEPFILES): Delete.
9785         * config/arm/linux.mh (XDEPFILES): Delete.
9786         * config/arm/nbsd.mh (XDEPFILES): Delete.
9787         * config/i386/i386dgux.mh (XDEPFILES): Delete.
9788         * config/i386/i386sol2.mh (XDEPFILES): Delete.
9789         * config/i386/i386m3.mh (XDEPFILES): Delete.
9790         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9791         * config/i386/i386gnu.mh (XDEPFILES): Delete.
9792         * config/i386/fbsd.mh (XDEPFILES): Delete.
9793         * config/i386/i386bsd.mh (XDEPFILES): Delete.
9794         * config/i386/i386sco5.mh (XDEPFILES): Delete.
9795         * config/i386/i386v4.mh (XDEPFILES): Delete.
9796         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9797         * config/i386/i386sco4.mh (XDEPFILES): Delete.
9798         * config/i386/i386aix.mh (XDEPFILES): Delete.
9799         * config/i386/go32.mh (XDEPFILES): Delete.
9800         * config/i386/cygwin.mh (XDEPFILES): Delete.
9801         * config/i386/i386lynx.mh (XDEPFILES): Delete.
9802         * config/i386/i386mach.mh (XDEPFILES): Delete.
9803         * config/i386/i386v32.mh (XDEPFILES): Delete.
9804         * config/i386/linux.mh (XDEPFILES): Delete.
9805         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9806         * config/i386/ncr3000.mh (XDEPFILES): Delete.
9807         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9808         * config/i386/i386sco.mh (XDEPFILES): Delete.
9809         * config/i386/i386v.mh (XDEPFILES): Delete.
9810         * config/i386/nbsd.mh (XDEPFILES): Delete.
9811         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9812         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9813         * config/i386/symmetry.mh (XDEPFILES): Delete.
9814         * config/i386/obsd.mh (XDEPFILES): Delete.
9815         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9816         * config/ia64/linux.mh (XDEPFILES): Delete.
9817         * config/ia64/aix.mh (XDEPFILES): Delete.
9818         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9819         * config/m68k/dpx2.mh (XDEPFILES): Delete.
9820         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9821         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9822         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9823         * config/m68k/linux.mh (XDEPFILES): Delete.
9824         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9825         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9826         * config/m68k/nbsd.mh (XDEPFILES): Delete.
9827         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9828         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9829         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9830         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9831         * config/m88k/delta88.mh (XDEPFILES): Delete.
9832         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9833         * config/m88k/m88k.mh (XDEPFILES): Delete.
9834         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9835         * config/mips/linux.mh (XDEPFILES): Delete.
9836         * config/mips/irix6.mh (XDEPFILES): Delete.
9837         * config/mips/irix5.mh (XDEPFILES): Delete.
9838         * config/mips/irix4.mh (XDEPFILES): Delete.
9839         * config/mips/irix3.mh (XDEPFILES): Delete.
9840         * config/mips/decstation.mh (XDEPFILES): Delete.
9841         * config/mips/mipsm3.mh (XDEPFILES): Delete.
9842         (NATDEPFILES): Move core-aout.o to here.
9843         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9844         * config/pa/hpux1020.mh (XDEPFILES): Delete.
9845         * config/pa/hppabsd.mh (XDEPFILES): Delete.
9846         * config/pa/hppahpux.mh (XDEPFILES): Delete.
9847         * config/pa/hpux11w.mh (XDEPFILES): Delete.
9848         * config/pa/hppaosf.mh (XDEPFILES): Delete.
9849         * config/pa/hpux11.mh (XDEPFILES): Delete.
9850         * config/powerpc/aix.mh (XDEPFILES): Delete.
9851         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9852         * config/powerpc/linux.mh (XDEPFILES): Delete.
9853         * config/romp/rtbsd.mh: Rename XDEPFILES.
9854         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9855         * config/rs6000/aix4.mh (XDEPFILES): Delete.
9856         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9857         * config/s390/s390.mh (XDEPFILES): Delete.
9858         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9859         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9860         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9861         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9862         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9863         * config/sparc/nbsd.mh (XDEPFILES): Delete.
9864         * config/sparc/linux.mh (XDEPFILES): Delete.
9865         * config/vax/vaxult.mh (XDEPFILES): Delete.
9866         * config/vax/vaxult2.mh (XDEPFILES): Delete.
9867         * Makefile.in (DEPFILES): Remove XDEPFILES.
9868
9869 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9870
9871         * utils.c (internal_verror): Fix comments, default is yes not no.
9872         Update queries to match.  Default to quit and dump core.
9873
9874 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
9875
9876         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
9877         copyright.
9878         * defs.h, event-top.c, gdbcmd.h: Ditto.
9879         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9880         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9881         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9882         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9883         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9884         * mi/mi-main.c:Ditto.
9885
9886         * stack.c, symfile.c: Update copyright.
9887
9888 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
9889
9890         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9891         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9892         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9893         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9894
9895 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
9896
9897         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9898         * gdbserver/low-lynx.c (myattach): Likewise.
9899         * gdbserver/low-nbsd.c (myattach): Likewise.
9900         * gdbserver/low-sim.c (myattach): Likewise.
9901         * gdbserver/low-sparc.c (myattach): Likewise.
9902         * gdbserver/low-sun3.c (myattach): Likewise.
9903
9904         * gdbserver/low-linux.c (myattach): New function.
9905
9906         * gdbserver/server.c (attach_inferior): New function.
9907         (main): Handle "--attach".
9908
9909 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
9910
9911         * MAINTAINERS (language support): Daniel Jacobwitz is C++
9912         maintainer.
9913
9914 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
9915
9916         * c-typeprint.c (is_type_conversion_operator): Add additional
9917         check for non-conversion operators.
9918
9919 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9920
9921         * linux-proc.c: Add "info proc" command, a la procfs.c.
9922         (read_mapping): New function, abstract and re-use code.
9923         (linux_find_memory_regions): Use new func read_mapping.
9924         (linux_info_proc_cmd): New function, implement "info proc".
9925         (_initialize_linux_proc): Add new command "info proc".
9926
9927 2002-01-15  Michael Snyder  <msnyder@redhat.com>
9928
9929         * symfile.c (generic_load): Use bfd_map_over_sections method
9930         instead of manipulating bfd structure members directly.
9931         (add_section_size_callback): New function, bfd sections callback
9932         used by generic_load.
9933         (load_sections_callback): New function, bfd sections callback
9934         used by generic_load.
9935
9936 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
9937
9938         [Based on work by Jim Blandy]
9939         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9940         (builtin_type_vec128): Export.
9941         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9942         types.
9943         (builtin_type_vec128): New builtin type for 128 bit vector
9944         registers.
9945         (build_gdbtypes): Initialize builtin_type_v16qi and
9946         builtin_type_v8hi. Create the vec128 register builtin type
9947         structure.
9948         (build_builtin_type_vec128): New function.
9949         (_initialize_gdbtypes): Register builtin_type_v16qi and
9950         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9951         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9952         AltiVec register to new builtin type.
9953
9954 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
9955
9956         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9957         to make_cv_type.
9958
9959 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
9960
9961         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9962         CLEAN_UP_REGISTER_VALUE.
9963         * regcache.c (supply_register): Update only call.
9964
9965 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
9966
9967         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9968         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9969         a29k-*-vxworks* targets as obsolete.
9970
9971 2002-01-14  Michael Snyder  <msnyder@redhat.com>
9972
9973         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9974         until we can resolve portability issues.
9975         * gregset.h: Remove references to fpxregs.
9976         * gcore.c (gcore_command): Initialize note_sec to NULL.
9977
9978 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9979
9980         * signals.c (target_signal_to_name): Rewrite.  Only use
9981         signals[].name when in bounds and non-NULL.
9982
9983 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9984
9985         From Petr Ledvina <ledvinap@kae.zcu.cz>:
9986         * signals.c (target_signal_to_name): Verify that SIG is within the
9987         bounds of the signals array.
9988
9989 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
9990
9991         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9992
9993 2002-01-13  Keith Seitz  <keiths@redhat.com>
9994
9995         * stack.c (print_frame_info_base): Print the frame's pc
9996         only if when print_frame_info_listing_hook is not defined.
9997
9998 2002-01-13  Keith Seitz  <keiths@redhat.com>
9999
10000         * varobj.c (varobj_set_value): Make sure that there were no
10001         errors evaluating the object before attempting to set its
10002         value.
10003         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10004         so this offset adjustment is no longer necessary.
10005         (create_child): Don't set the error flag if the child is
10006         a CPLUS_FAKE_CHILD.
10007         (value_of_child): If value_fetch_lazy fails, return NULL
10008         so that callers will be notified that an error occurred.
10009         (c_value_of_variable): Delay check of variable's validity
10010         until later. We actually want all structs and unions to have
10011         the value "{...}".
10012         Do not return "???" for variables which could not be evaluated.
10013         This error condition must be returned to the caller so that it
10014         can get the error condition from gdb.
10015         (cplus_name_of_child): Adjust index for vptr before figuring
10016         out the name of the child.
10017         (cplus_value_of_child): If a child's (real) parent is not valid,
10018         don't even bother trying to give a value for it. Just return
10019         an error. Change all instances in this function.
10020         (cplus_type_of_child): If our parent is one of the "fake"
10021         parents, we need to get at the type of the real parent, and
10022         derive the child's true type using this information.
10023
10024 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10025
10026         From 2002-01-09 John Marshall <johnm@falch.net>:
10027         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10028         sources.redhat.com, and tweak some related URLs which had
10029         suffered from linkrot.
10030
10031 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
10032
10033         From Jeff law:
10034         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10035         structures passed in registers.
10036
10037 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
10038
10039         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10040         white space which prevented compilation.  Reported by DSK
10041         <dsk@student.unsw.edu.au>.
10042
10043 2002-01-11  Michael Snyder  <msnyder@redhat.com>
10044
10045         * symfile.c (build_section_addr_info_from_section_tab):
10046         Use bfd access method instead of manipulating bfd directly.
10047         (syms_from_objfile): Ditto.
10048         (simple_overlay_update_1): Ditto.
10049         (simple_overlay_update): Ditto.
10050         (generic_load): Ditto.
10051         (overlay_unmapped_address): FIXME comment, bfd access methods.
10052         (sections_overlap): FIXME comment, bfd access methods.
10053         (pc_in_mapped_range): FIXME comment, bfd access methods.
10054         (pc_in_unmapped_range): FIXME comment, bfd access methods.
10055         (section_is_mapped): FIXME comment, bfd access methods.
10056         (section_is_overlay): FIXME comment, bfd access methods.
10057
10058         * symfile.c (generic_load): Whitespace and long line cleanups.
10059         Remove duplicate variable, change several local variables to
10060         more appropriate data types.
10061         (print_transfer_performance): Use %lu instead of %ld for ulongs.
10062
10063 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10064
10065         From Peter Schauer:
10066         * language.c (longest_local_hex_string_custom): Use phex_nz to
10067         convert NUM to a hex string.
10068
10069 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
10070
10071         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10072         the function.
10073         Update Copyright year.
10074
10075 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
10076
10077         * language.c (longest_raw_hex_string): Delete unused function.
10078
10079 2002-01-11  Petr Sorfa  <petrs@caldera.com>
10080
10081         * MAINTAINERS (write-after-approval): Add myself.
10082         * dwarf2read.c (read_tag_string_type): Handling of
10083         DW_AT_byte_size.
10084         (read_tag_string_type): FORTRAN fix to prevent propagation of
10085         first string size.
10086         (set_cu_language): Handling of DW_LANG_Fortran95
10087
10088 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
10089
10090         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10091         GETPID(inferior_ptid).
10092         (store_inferior_registers): Likewise.
10093
10094 2002-01-10  Jason Merrill  <jason@redhat.com>
10095
10096         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10097         Fix DW_OP_minus.
10098
10099 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
10100
10101         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10102         and bfd/elf32-sh-nbsd.c.
10103
10104 2002-01-10  Michael Snyder  <msnyder@redhat.com>
10105
10106         * NEWS: Mention --pid and corefile/proc-id behavior change.
10107
10108         * Makefile.in: Add rules for gcore.o and linux-proc.o.
10109         * gcore.c: Include cli/cli-decode.h instead of command.h.
10110
10111         * main.c (captured_main): Add new command line option "--pid".
10112         If the second command line argument (following the symbol-file)
10113         begins with a digit, try to attach to it before trying to open
10114         it as a corefile.
10115         (print_gdb_help): Document the "--pid" argument.
10116
10117 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
10118
10119         * completer.c (command_completer): New function.
10120
10121         * completer.h <command_completer>: Add prototype.
10122
10123         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10124         completer for the "help" command.
10125
10126 2002-01-09  Jason Merrill  <jason@redhat.com>
10127
10128         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10129
10130 2002-01-09  Michael Snyder  <msnyder@redhat.com>
10131
10132         * i386-linux-nat.c (fill_fpxregset): Make global.
10133         (store_fpxregset): Ditto.
10134
10135         * gregset.h (gdb_fpxregset_t): Define.
10136         (supply_fpxregset): Prototype.
10137         (fill_fpxregset): Prototype.
10138
10139         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10140
10141 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10142
10143         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10144         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10145         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10146
10147 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
10148
10149         * MAINTAINERS: Update target maintainer rules so that any
10150         Maintainer can approve a tested patch for a maintenance-only
10151         target.
10152
10153 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
10154
10155         * MAINTAINERS (write-after-approval): Add myself.
10156
10157         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10158         IN_SIGTRAMP.
10159
10160 2002-01-08  Michael Snyder  <msnyder@redhat.com>
10161
10162         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10163         real name of the executable, rather than the /proc name.
10164
10165 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10166
10167         Implement a "generate-core-file" command in gdb, save target state.
10168         * gcore.c: New file.  Implement new command 'generate-core-file'.
10169         Save a corefile image of the current state of the inferior.
10170         * linux-proc.c: Add linux-specific code for saving corefiles.
10171         * target.h (struct target_ops): Add new target vectors for saving
10172         corefiles; to_find_memory_regions and to_make_corefile_notes.
10173         (target_find_memory_regions): New macro.
10174         (target_make_corefile_notes): New macro.
10175         * target.c (update_current_target): Inherit new target methods.
10176         (dummy_find_memory_regions): New place-holder method.
10177         (dummy_make_corefile_notes): New place-holder method.
10178         (init_dummy_target): Initialize new dummy target vectors.
10179         * exec.c (exec_set_find_memory_regions): New function.
10180         Allow the exec_ops vector for memory regions to be taken over.
10181         (exec_make_note_section): New function, target vector method.
10182         * defs.h (exec_set_find_memory_regions): Export prototype.
10183         * procfs.c (proc_find_memory_regions): New function, corefile method.
10184         (procfs_make_note_section): New function, corefile method.
10185         (init_procfs_ops): Set new target vector pointers.
10186         (find_memory_regions_callback): New function.
10187         (procfs_do_thread_registers): New function.
10188         (procfs_corefile_thread_callback): New function.
10189         * sol-thread.c (sol_find_memory_regions): New function.
10190         (sol_make_note_section): New function.
10191         (init_sol_thread_ops): Initialize new target vectors.
10192         * inftarg.c (inftarg_set_find_memory_regions): New function.
10193         Allow to_find_memory_regions vector to be taken over.
10194         (inftarg_set_make_corefile_notes): New function.
10195         Allow to_make_corefile_notes vector to be taken over.
10196         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10197         interface layer if not target_has_execution (may be a corefile).
10198         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10199         * config/sparc/sun4sol2.mh: Ditto.
10200         * config/alpha/alpha-linux.mh: Ditto.
10201         * config/arm/linux.mh: Ditto.
10202         * config/i386/x86-64linux.mh: Ditto.
10203         * config/ia64/linux.mh: Ditto.
10204         * config/m68k/linux.mh: Ditto.
10205         * config/mips/linux.mh: Ditto.
10206         * config/powerpc/linux.mh: Ditto.
10207         * config/sparc/linux.mh: Ditto.
10208
10209 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10210
10211         * arm-linux-nat.c: Remove references to regcache.c internal data
10212         (registers[] and register_valid[]).
10213
10214 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10215
10216         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
10217         so that attaching to a pid will automatically read the process's
10218         symbol file and shlibs.
10219         * Makefile.in: Add rule for linux-proc.o.
10220         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10221         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10222         * config/arm/linux.mh: Ditto.
10223         * config/i386/linux.mh: Ditto.
10224         * config/i386/x86-64linux.mh: Ditto.
10225         * config/ia64/linux.mh: Ditto.
10226         * config/m68k/linux.mh: Ditto.
10227         * config/mips/linux.mh: Ditto.
10228         * config/powerpc/linux.mh: Ditto.
10229         * config/sparc/linux.mh: Ditto.
10230
10231 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
10232
10233         * win32-nat.c: Add i386-tdep.h dependency.
10234
10235 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10236
10237         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10238         instead of bfd_get_arch_size.  Don't bail out just because
10239         there's no exec_bfd.
10240
10241         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10242         * p-valprint.c (pascal_object_print_value): Ditto.
10243         * somread.c (som_symtab_read): Ditto.
10244         * symfile.c (simple_free_overlay_region_table): Ditto.
10245         * valops.c (value_assign): Ditto.
10246
10247         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10248         use tilde_expand and strerror for opening save-tracepoints file.
10249
10250         * thread-db.c (thread_db_new_objfile): Indendation fix.
10251
10252         * infptrace.c (GDB_MAX_ALLOCA): New define.
10253         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10254         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10255         can be overridden with whatever value is appropriate to the host).
10256         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10257         alloca to allocate potentially large buffer.
10258         * rs6000-nat.c (child_xfer_memory): Ditto.
10259         * symm-nat.c (child_xfer_memory): Ditto.
10260         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10261
10262 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
10263
10264         From Nick Clifton  <nickc@redhat.com>
10265         * d10v-tdep.c: Set STACK_START to 0x200bffe.
10266
10267 2002-01-07  Michael Snyder  <msnyder@redhat.com>
10268
10269         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10270         Don't use exec_bfd if it's NULL.
10271
10272 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
10273
10274         * valops.c (value_arg_coerce): Fix formatting.
10275
10276 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10277
10278         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10279         * gnu-nat.c: Ditto.
10280
10281 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10282
10283         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10284         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10285         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10286         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10287         z8k-coff have not been multi-arched.  Update z8k-coff build
10288         status.
10289
10290 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
10291
10292         * MAINTAINERS: Mark a29k target as obsolete.
10293         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10294         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
10295         comments.
10296         * NEWS: Note that a29k targets are obsolete.
10297         * a29k-tdep.c: Mark as obsolete.
10298         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10299         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10300         a29k-*-vxworks* targets as obsolete.
10301         * remote-adapt.c: Obsolete.
10302         * remote-eb.c: Obsolete.
10303         * remote-mm.c: Obsolete.
10304         * remote-udi.c: Obsolete.
10305         * config/a29k/a29k-udi.mt: Obsolete.
10306         * config/a29k/a29k.mt: Obsolete.
10307         * config/a29k/tm-a29k.h: Obsolete.
10308         * config/a29k/tm-vx29k.h: Obsolete.
10309         * config/a29k/vx29k.mt: Obsolete.
10310
10311 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10312
10313         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10314         with BFD_ENDIAN_BIG.
10315
10316 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10317
10318         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10319         * configure, config.in: Re-generate.
10320         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10321         * defs.h: Do not include <endian.h>.
10322
10323 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
10324
10325         * acconfig.h (HAVE_PT_GETXMMREGS): New.
10326         * config.in: Regenerate.
10327         * configure.in: Update copyright years.
10328         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10329         * configure: Regenerate.
10330         * i386bsd-nat.c: Update copyright years.
10331         (fill_gregset): Use regcache_collect.
10332         (fetch_inferior_registers): Only fetch integer registers
10333         if requested to do so.  Add support for XMM registers
10334         using PT_GETXMMREGS.
10335         (store_inferior_registers): Only store integer registers
10336         if requested to do so.  Add support for XMM registers
10337         using PT_SETXMMREGS.
10338         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10339         (store_inferior_registers): Remove.
10340         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10341         (fetch_elfcore_registers): New function.
10342         (i386nbsd_elfcore_fns): New.
10343         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10344         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10345         i386bsd-nat.o.
10346         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10347         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10348         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10349         * config/i386/tm-nbsd.h: Update copyright years.
10350         (HAVE_SSE_REGS): Define.
10351         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10352         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10353         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10354         (SIGCONTEXT_PC_OFFSET): Remove.
10355         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10356
10357 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
10358
10359         * configure.tgt: Remove powerpc-*-macos* target.
10360         * config/m68k/xm-mpw.h: Delete file.
10361         * config/xm-mpw.h: Delete file.
10362         * ser-mac.c: Delete file.
10363         * mpw-make.sed: Delete file.
10364         * mpw-config.in: Delete file.
10365         * mac-xdep.c: Delete file.
10366         * mac-gdb.r: Delete file.
10367         * mac-defs.h: Delete file.
10368         * mac-nat.c: Delete file.
10369         * config/powerpc/macos.mh: Delete file.
10370         * config/powerpc/macos.mt: Delete file.
10371         * config/powerpc/nm-macos.h: Delete file.
10372         * config/powerpc/tm-macos.h: Delete file.
10373         * source.c (openp, open_source_file): Remove obsolete code.
10374         * top.c (gdb_readline): Ditto.
10375         * utils.c (query): Ditto.
10376         * event-top.c (display_gdb_prompt): Ditto.
10377         * Makefile.in (ser-mac.o): Delete obsolete target.
10378         * NEWS: Update.
10379
10380 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10381
10382         * defs.h (BIG_ENDIAN): Delete macro definition.
10383         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10384         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10385         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10386         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10387         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10388         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10389         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10390         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10391         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10392         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10393         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10394         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10395         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10396         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10397         * gdbarch.c: Re-generate.
10398
10399 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10400
10401         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10402         for core files.
10403
10404 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10405
10406         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10407
10408 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
10409
10410         * value.h (value_ptr): Delete typedef.
10411
10412 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
10413
10414         * i386nbsd-nat.c: Update copyright years.
10415         Include i386-tdep.h.
10416
10417 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
10418
10419         * stabsread.c: Update copyright years.
10420
10421         From Debashis Mahata <debashis.mahata@wipro.com>:
10422         (read_struct_fields): Deal with Sun C compiler erroneous stab
10423         output for structs and unions.
10424         Fix PR gdb/269.
10425
10426 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10427
10428         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10429         prototype.
10430
10431 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10432
10433         * cp-abi.c: Fix whitespace.
10434         (baseclass_offset): New wrapper function.
10435         * cp-abi.h (baseclass_offset): Add prototype.
10436         (struct cp_abi_ops): Add baseclass_offset pointer.
10437
10438         * valops.c (vb_match): Move to...
10439         * gnu-v2-abi.c (vb_match): here.
10440         * valops.c (baseclass_offset): Move to...
10441         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10442
10443         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10444
10445         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10446         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10447         * hpacc-abi.c (init_hpacc_ops): Likewise.
10448
10449 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10450
10451         * valops.c (find_overload_match): Accept obj as a
10452         reference parameter.  Update it before returning.
10453         * value.h (find_overload_match): Update prototype.
10454         * eval.c (evaluate_subexp_standard): Pass object to
10455         find_overload_match by reference.
10456
10457 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
10458
10459         * valarith.c: Replace value_ptr with struct value pointer.  Remove
10460         register attribute from value declarations.
10461         * valops.c: Ditto.
10462         * value.h: Ditto.
10463         * scm-lang.c (scm_lookup_name): Ditto.
10464
10465 2002-01-03  Michael Snyder  <msnyder@redhat.com>
10466
10467         Abstract the functionality of iterating over mapped memory
10468         regions into a general purpose iterator function.
10469         * procfs.c (iterate_over_mappings): New function, general purpose
10470         iterator for memory sections.
10471         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10472         (solib_mappings_callback): New function, callback for above.
10473         (info_proc_mappings): Reimpliment using iterate_over_mappings.
10474         (info_mappings_callback): New function, callback for above.
10475
10476         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10477
10478 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
10479
10480         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10481         * i386-tdep.c: Include "elf-bfd.h".
10482         (process_note_abi_tag_sections): New function.
10483         (i386_gdbarch_init): Add code to recognize various OS/ABI
10484         combinations.
10485
10486         * maint.c (_initialize_maint_cmds): Add missing \ in
10487         string-literal.
10488
10489 For older changes see ChangeLog-2001
10490 \f
10491 Local Variables:
10492 mode: change-log
10493 left-margin: 8
10494 fill-column: 74
10495 version-control: never
10496 End: